diff --git a/README.md b/README.md
index e4b9b14..4d12cf6 100644
--- a/README.md
+++ b/README.md
@@ -8,7 +8,7 @@ To contribute, please raise an issue with a bug report, feature request, feedbac
This Python package 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.41.0-alpha
- Generator version: 7.10.0
- Build package: org.openapitools.codegen.languages.PythonClientCodegen
@@ -76,12 +76,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
@@ -92,11 +86,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# Retrieve Billing Rate for Resource
- api_response = api_instance.retrieve_billing_rate_for_resource(resource_type, id)
- print("The response of CalculateApi->retrieve_billing_rate_for_resource:\n")
+ api_response = api_instance.get_calculate2(resource_type, id)
+ print("The response of CalculateApi->get_calculate2:\n")
pprint(api_response)
except ApiException as e:
- print("Exception when calling CalculateApi->retrieve_billing_rate_for_resource: %s\n" % e)
+ print("Exception when calling CalculateApi->get_calculate2: %s\n" % e)
```
@@ -106,62 +100,96 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Class | Method | HTTP request | Description
------------ | ------------- | ------------- | -------------
-*CalculateApi* | [**retrieve_billing_rate_for_resource**](docs/CalculateApi.md#retrieve_billing_rate_for_resource) | **GET** /pricebook/calculate/resource/{resource_type}/{id} | Retrieve Billing Rate for Resource
-*CustomerContractApi* | [**list_contracts**](docs/CustomerContractApi.md#list_contracts) | **GET** /pricebook/contracts | List Contracts
-*CustomerContractApi* | [**retrieve_contract_details**](docs/CustomerContractApi.md#retrieve_contract_details) | **GET** /pricebook/contracts/{contract_id} | Retrieve Contract Details
-*CustomerContractApi* | [**retrieve_gpu_allocation_graph_for_contract**](docs/CustomerContractApi.md#retrieve_gpu_allocation_graph_for_contract) | **GET** /pricebook/contracts/{contract_id}/gpu_allocation_graph | Retrieve GPU Allocation Graph for Contract
-*PricebookApi* | [**retrive_pricebook**](docs/PricebookApi.md#retrive_pricebook) | **GET** /pricebook |
-*SnapshotsApi* | [**create_an_image_from_a_snapshot**](docs/SnapshotsApi.md#create_an_image_from_a_snapshot) | **POST** /core/snapshots/{snapshot_id}/image | Create an image from a snapshot
+*CalculateApi* | [**get_calculate2**](docs/CalculateApi.md#get_calculate2) | **GET** /pricebook/calculate/resource/{resource_type}/{id} | Retrieve Billing Rate for Resource
+*CustomerContractApi* | [**get_customer_contract**](docs/CustomerContractApi.md#get_customer_contract) | **GET** /pricebook/contracts | List Contracts
+*CustomerContractApi* | [**get_customer_contract_details**](docs/CustomerContractApi.md#get_customer_contract_details) | **GET** /pricebook/contracts/{contract_id} | Retrieve Contract Details
+*CustomerContractApi* | [**get_customer_contract_gpu_allocation_graph**](docs/CustomerContractApi.md#get_customer_contract_gpu_allocation_graph) | **GET** /pricebook/contracts/{contract_id}/gpu_allocation_graph | Retrieve GPU Allocation Graph for Contract
+*PricebookApi* | [**get_pricebook**](docs/PricebookApi.md#get_pricebook) | **GET** /pricebook |
+*SnapshotsApi* | [**create_a_new_custom_image**](docs/SnapshotsApi.md#create_a_new_custom_image) | **POST** /core/snapshots/{snapshot_id}/image | Create an image from a snapshot
*SnapshotsApi* | [**delete_snapshot**](docs/SnapshotsApi.md#delete_snapshot) | **DELETE** /core/snapshots/{id} | Delete snapshot
*SnapshotsApi* | [**fetch_snapshot_name_availability**](docs/SnapshotsApi.md#fetch_snapshot_name_availability) | **GET** /core/snapshots/name-availability/{name} | Fetch snapshot name availability
-*SnapshotsApi* | [**restore_a_snapshot**](docs/SnapshotsApi.md#restore_a_snapshot) | **POST** /core/snapshots/{id}/restore | Restore a snapshot
-*SnapshotsApi* | [**retrieve_a_snapshot**](docs/SnapshotsApi.md#retrieve_a_snapshot) | **GET** /core/snapshots/{id} | Retrieve a snapshot
-*SnapshotsApi* | [**retrieve_list_of_snapshots_with_pagination**](docs/SnapshotsApi.md#retrieve_list_of_snapshots_with_pagination) | **GET** /core/snapshots | Retrieve list of snapshots with pagination
+*SnapshotsApi* | [**get_snapshot**](docs/SnapshotsApi.md#get_snapshot) | **GET** /core/snapshots/{id} | Retrieve a snapshot
+*SnapshotsApi* | [**get_snapshots**](docs/SnapshotsApi.md#get_snapshots) | **GET** /core/snapshots | Retrieve list of snapshots with pagination
+*SnapshotsApi* | [**post_snapshot_restore**](docs/SnapshotsApi.md#post_snapshot_restore) | **POST** /core/snapshots/{id}/restore | Restore a snapshot
*AliveApi* | [**get_alive**](docs/AliveApi.md#get_alive) | **GET** /billing/alive | GET: Alive
+*AliveApi* | [**get_doc**](docs/AliveApi.md#get_doc) | **GET** /billing/alive/doc |
*ApiKeyApi* | [**delete_api_key**](docs/ApiKeyApi.md#delete_api_key) | **DELETE** /api-key/{api_key_id} | Delete API Key
*ApiKeyApi* | [**generate_api_key**](docs/ApiKeyApi.md#generate_api_key) | **POST** /api-key/generate | Generate API Key
-*ApiKeyApi* | [**retrieve_api_keys**](docs/ApiKeyApi.md#retrieve_api_keys) | **GET** /api-key | Retrieve API Keys
+*ApiKeyApi* | [**retrieve_api_key**](docs/ApiKeyApi.md#retrieve_api_key) | **GET** /api-key | Retrieve API Keys
*ApiKeyApi* | [**update_api_key**](docs/ApiKeyApi.md#update_api_key) | **PUT** /api-key/{api_key_id} | Update API Key
-*AssigningMemberRoleApi* | [**assign_rbac_role**](docs/AssigningMemberRoleApi.md#assign_rbac_role) | **PUT** /auth/users/{user_id}/assign-roles | Assign RBAC Role
+*AssigningMemberRoleApi* | [**assign_rbac_role_to_user**](docs/AssigningMemberRoleApi.md#assign_rbac_role_to_user) | **PUT** /auth/users/{user_id}/assign-roles | Assign RBAC Role
*AssigningMemberRoleApi* | [**remove_rbac_role_from_user**](docs/AssigningMemberRoleApi.md#remove_rbac_role_from_user) | **DELETE** /auth/users/{user_id}/roles | Remove RBAC Role From User
+*AuthApi* | [**change_organization_for_token**](docs/AuthApi.md#change_organization_for_token) | **GET** /auth/token/change-org/{org_id} |
+*AuthApi* | [**disable_mfa**](docs/AuthApi.md#disable_mfa) | **GET** /auth/me/mfa/disable |
+*AuthApi* | [**get_user_mfa_status**](docs/AuthApi.md#get_user_mfa_status) | **GET** /auth/me/mfa | Get MFA status for authenticated user
+*AuthApi* | [**get_user_organizations**](docs/AuthApi.md#get_user_organizations) | **GET** /auth/me/organizations | Get User Organizations
*AuthApi* | [**retrieve_authenticated_user_details**](docs/AuthApi.md#retrieve_authenticated_user_details) | **GET** /auth/me | Retrieve Authenticated User Details
-*BillingApi* | [**get_all_thresholds_for_organization**](docs/BillingApi.md#get_all_thresholds_for_organization) | **GET** /billing/billing/threshold | GET: All Thresholds for Organization
-*BillingApi* | [**get_billing_usage**](docs/BillingApi.md#get_billing_usage) | **GET** /billing/billing/usage | GET: Billing usage
+*BetaAccessApi* | [**create_a_beta_access_request**](docs/BetaAccessApi.md#create_a_beta_access_request) | **POST** /auth/beta-access/requests | Create a new beta access request
+*BetaAccessApi* | [**get_beta_access_status**](docs/BetaAccessApi.md#get_beta_access_status) | **GET** /auth/beta-access/requests | Check the status of all beta access requests
+*BetaAccessApi* | [**get_beta_access_status2**](docs/BetaAccessApi.md#get_beta_access_status2) | **GET** /auth/beta-access/requests/{program} | Check the status of beta access requests
*BillingApi* | [**get_last_day_cost**](docs/BillingApi.md#get_last_day_cost) | **GET** /billing/billing/last-day-cost | GET: Last Day Cost
-*BillingApi* | [**retrieve_billing_history_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_billing_history_for_a_specific_billing_cycle) | **GET** /billing/billing/history | Retrieve Billing History for a specific Billing Cycle
-*BillingApi* | [**retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle) | **GET** /billing/billing/history/snapshot/{snapshot_id} | Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
-*BillingApi* | [**retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle) | **GET** /billing/billing/history/virtual-machine/{vm_id} | Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
-*BillingApi* | [**retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle) | **GET** /billing/billing/history/volume/{volume_id} | Retrieve Billing History of a Specific Volume for a specific Billing Cycle
-*BillingApi* | [**retrieve_billing_history_of_contract_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_billing_history_of_contract_for_a_specific_billing_cycle) | **GET** /billing/billing/history/contract | Retrieve Billing History of Contract for a specific Billing Cycle
-*BillingApi* | [**retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle) | **GET** /billing/billing/history/snapshot | Retrieve Billing History of Snapshot for a specific Billing Cycle
-*BillingApi* | [**retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle) | **GET** /billing/billing/history/virtual-machine | Retrieve Billing History of Virtual Machine for a specific Billing Cycle
-*BillingApi* | [**retrieve_billing_history_of_volume_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_billing_history_of_volume_for_a_specific_billing_cycle) | **GET** /billing/billing/history/volume | Retrieve Billing History of Volume for a specific Billing Cycle
-*BillingApi* | [**retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle) | **GET** /billing/billing/history/snapshot/{snapshot_id}/graph | Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
-*BillingApi* | [**retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle) | **GET** /billing/billing/history/virtual-machine/{vm_id}/graph | Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
-*BillingApi* | [**retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle**](docs/BillingApi.md#retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle) | **GET** /billing/billing/history/volume/{volume_id}/graph | Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
-*BillingApi* | [**retrieve_sub_resources_historical_cost_datapoints_of_a_virtual**](docs/BillingApi.md#retrieve_sub_resources_historical_cost_datapoints_of_a_virtual) | **GET** /billing/billing/virtual-machine/{vm_id}/sub-resource/graph | Retrieve Sub-Resources Historical Cost datapoints of a Virtual
-*BillingApi* | [**retrieve_total_costs_and_non_discount_costs_for_sub_resources**](docs/BillingApi.md#retrieve_total_costs_and_non_discount_costs_for_sub_resources) | **GET** /billing/billing/virtual-machine/{vm_id}/sub-resource | Retrieve Total Costs and Non Discount Costs for Sub Resources
-*BillingApi* | [**retrieve_vm_billing_events_history**](docs/BillingApi.md#retrieve_vm_billing_events_history) | **GET** /billing/billing/virtual-machine/{vm_id}/billing-events | Retrieve VM billing events history
-*BillingApi* | [**retrieve_volume_billing_events_history**](docs/BillingApi.md#retrieve_volume_billing_events_history) | **GET** /billing/billing/volume/{volume_id}/billing-events | Retrieve Volume billing events history
-*BillingApi* | [**update_subscribe_or_unsubscribe_notification_threshold**](docs/BillingApi.md#update_subscribe_or_unsubscribe_notification_threshold) | **PUT** /billing/billing/threshold/{threshold_id} | Update: Subscribe or Unsubscribe Notification Threshold
-*CallbacksApi* | [**attach_callback_to_virtual_machine**](docs/CallbacksApi.md#attach_callback_to_virtual_machine) | **POST** /core/virtual-machines/{id}/attach-callback | Attach callback to virtual machine
-*CallbacksApi* | [**attach_callback_to_volume**](docs/CallbacksApi.md#attach_callback_to_volume) | **POST** /core/volumes/{id}/attach-callback | Attach callback to volume
-*CallbacksApi* | [**delete_virtual_machine_callback**](docs/CallbacksApi.md#delete_virtual_machine_callback) | **DELETE** /core/virtual-machines/{id}/delete-callback | Delete virtual machine callback
-*CallbacksApi* | [**delete_volume_callback**](docs/CallbacksApi.md#delete_volume_callback) | **DELETE** /core/volumes/{id}/delete-callback | Delete volume callback
-*CallbacksApi* | [**update_virtual_machine_callback**](docs/CallbacksApi.md#update_virtual_machine_callback) | **PUT** /core/virtual-machines/{id}/update-callback | Update virtual machine callback
-*CallbacksApi* | [**update_volume_callback**](docs/CallbacksApi.md#update_volume_callback) | **PUT** /core/volumes/{id}/update-callback | Update volume callback
+*BillingApi* | [**get_organization_threshold**](docs/BillingApi.md#get_organization_threshold) | **GET** /billing/billing/threshold | GET: All Thresholds for Organization
+*BillingApi* | [**get_usage2**](docs/BillingApi.md#get_usage2) | **GET** /billing/billing/usage | GET: Billing usage
+*BillingApi* | [**get_user_billing_bucket_details_graph**](docs/BillingApi.md#get_user_billing_bucket_details_graph) | **GET** /billing/billing/history/bucket/{bucket_id}/graph | Retrieve hourly cost datapoints of a Specific Bucket for a specific billing cycle
+*BillingApi* | [**get_user_billing_cluster_details_graph**](docs/BillingApi.md#get_user_billing_cluster_details_graph) | **GET** /billing/billing/history/cluster/{cluster_id}/graph | Retrieve hourly cost datapoints of a specific Cluster for a specific billing cycle
+*BillingApi* | [**get_user_billing_data_synthesis_details_graph**](docs/BillingApi.md#get_user_billing_data_synthesis_details_graph) | **GET** /billing/billing/history/data_synthesis/{resource_id}/graph | Retrieve hourly cost datapoints of a Specific Data Synthesis for a specific
+*BillingApi* | [**get_user_billing_fine_tuning_details_graph**](docs/BillingApi.md#get_user_billing_fine_tuning_details_graph) | **GET** /billing/billing/history/fine_tuning/{resource_id}/graph | Retrieve hourly cost datapoints of a Specific Fine Tuning for a specific billing cycle
+*BillingApi* | [**get_user_billing_history2**](docs/BillingApi.md#get_user_billing_history2) | **GET** /billing/billing/history | Retrieve Billing History for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_history_bucket2**](docs/BillingApi.md#get_user_billing_history_bucket2) | **GET** /billing/billing/history/bucket | Retrieve Billing History of Volume for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_history_bucket_details**](docs/BillingApi.md#get_user_billing_history_bucket_details) | **GET** /billing/billing/history/bucket/{bucket_id} | Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_history_cluster**](docs/BillingApi.md#get_user_billing_history_cluster) | **GET** /billing/billing/history/cluster | Retrieve Billing History of Clusters for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_history_cluster_details**](docs/BillingApi.md#get_user_billing_history_cluster_details) | **GET** /billing/billing/history/cluster/{cluster_id} | Retrieve Billing History of a Specific Cluster for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_history_contract**](docs/BillingApi.md#get_user_billing_history_contract) | **GET** /billing/billing/history/contract | Retrieve Billing History of Contract for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_history_data_synthesis**](docs/BillingApi.md#get_user_billing_history_data_synthesis) | **GET** /billing/billing/history/data_synthesis | Retrieve Billing History of data synthesis for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_history_data_synthesis_details**](docs/BillingApi.md#get_user_billing_history_data_synthesis_details) | **GET** /billing/billing/history/data_synthesis/{resource_id} |
+*BillingApi* | [**get_user_billing_history_fine_tuning**](docs/BillingApi.md#get_user_billing_history_fine_tuning) | **GET** /billing/billing/history/fine_tuning | Retrieve Billing History of model evaluation for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_history_fine_tuning_details**](docs/BillingApi.md#get_user_billing_history_fine_tuning_details) | **GET** /billing/billing/history/fine_tuning/{resource_id} | Retrieve Billing History of a Specific Fine Tuning for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_history_model_evaluation**](docs/BillingApi.md#get_user_billing_history_model_evaluation) | **GET** /billing/billing/history/model_evaluation | Retrieve Billing History of model evaluation for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_history_model_evaluation_details**](docs/BillingApi.md#get_user_billing_history_model_evaluation_details) | **GET** /billing/billing/history/model_evaluation/{resource_id} |
+*BillingApi* | [**get_user_billing_history_serverless_inference**](docs/BillingApi.md#get_user_billing_history_serverless_inference) | **GET** /billing/billing/history/serverless_inference | Retrieve Billing History of serverless inference for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_history_serverless_inference_details**](docs/BillingApi.md#get_user_billing_history_serverless_inference_details) | **GET** /billing/billing/history/serverless_inference/{resource_id} |
+*BillingApi* | [**get_user_billing_history_snapshot**](docs/BillingApi.md#get_user_billing_history_snapshot) | **GET** /billing/billing/history/snapshot | Retrieve Billing History of Snapshot for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_history_snapshot_details**](docs/BillingApi.md#get_user_billing_history_snapshot_details) | **GET** /billing/billing/history/snapshot/{snapshot_id} | Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_history_vm2**](docs/BillingApi.md#get_user_billing_history_vm2) | **GET** /billing/billing/history/virtual-machine | Retrieve Billing History of Virtual Machine for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_history_vm_details2**](docs/BillingApi.md#get_user_billing_history_vm_details2) | **GET** /billing/billing/history/virtual-machine/{vm_id} | Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_history_vm_sub_resource_graph2**](docs/BillingApi.md#get_user_billing_history_vm_sub_resource_graph2) | **GET** /billing/billing/virtual-machine/{vm_id}/sub-resource/graph | Retrieve Sub-Resources Historical Cost datapoints of a Virtual
+*BillingApi* | [**get_user_billing_history_vm_total_costs**](docs/BillingApi.md#get_user_billing_history_vm_total_costs) | **GET** /billing/billing/virtual-machine/{vm_id}/sub-resource | Retrieve Total Costs and Non Discount Costs for Sub Resources
+*BillingApi* | [**get_user_billing_history_volume2**](docs/BillingApi.md#get_user_billing_history_volume2) | **GET** /billing/billing/history/volume | Retrieve Billing History of Volume for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_history_volume_details2**](docs/BillingApi.md#get_user_billing_history_volume_details2) | **GET** /billing/billing/history/volume/{volume_id} | Retrieve Billing History of a Specific Volume for a specific Billing Cycle
+*BillingApi* | [**get_user_billing_model_evaluation_details_graph**](docs/BillingApi.md#get_user_billing_model_evaluation_details_graph) | **GET** /billing/billing/history/model_evaluation/{resource_id}/graph | Retrieve hourly cost datapoints of a Specific Model Evaluation for a specific
+*BillingApi* | [**get_user_billing_serverless_inference_details_graph**](docs/BillingApi.md#get_user_billing_serverless_inference_details_graph) | **GET** /billing/billing/history/serverless_inference/{resource_id}/graph | Retrieve hourly cost datapoints of a Specific Serverless Inference for a specific
+*BillingApi* | [**get_user_billing_snapshot_details_graph**](docs/BillingApi.md#get_user_billing_snapshot_details_graph) | **GET** /billing/billing/history/snapshot/{snapshot_id}/graph | Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
+*BillingApi* | [**get_user_billing_vm_details_graph2**](docs/BillingApi.md#get_user_billing_vm_details_graph2) | **GET** /billing/billing/history/virtual-machine/{vm_id}/graph | Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
+*BillingApi* | [**get_user_billing_volume_details_graph**](docs/BillingApi.md#get_user_billing_volume_details_graph) | **GET** /billing/billing/history/volume/{volume_id}/graph | Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
+*BillingApi* | [**get_user_vm_billing_events**](docs/BillingApi.md#get_user_vm_billing_events) | **GET** /billing/billing/virtual-machine/{vm_id}/billing-events | Retrieve VM billing events history
+*BillingApi* | [**get_user_volume_billing_events**](docs/BillingApi.md#get_user_volume_billing_events) | **GET** /billing/billing/volume/{volume_id}/billing-events | Retrieve Volume billing events history
+*BillingApi* | [**put_organization_threshold**](docs/BillingApi.md#put_organization_threshold) | **PUT** /billing/billing/threshold/{threshold_id} | Update: Subscribe or Unsubscribe Notification Threshold
+*CallbacksApi* | [**attach_callback_to_virtual_machine**](docs/CallbacksApi.md#attach_callback_to_virtual_machine) | **POST** /core/virtual-machines/{vm_id}/attach-callback | Attach callback to virtual machine
+*CallbacksApi* | [**attach_callback_to_volume**](docs/CallbacksApi.md#attach_callback_to_volume) | **POST** /core/volumes/{volume_id}/attach-callback | Attach callback to volume
+*CallbacksApi* | [**delete_virtual_machine_callback**](docs/CallbacksApi.md#delete_virtual_machine_callback) | **DELETE** /core/virtual-machines/{vm_id}/delete-callback | Delete virtual machine callback
+*CallbacksApi* | [**delete_volume_callback**](docs/CallbacksApi.md#delete_volume_callback) | **DELETE** /core/volumes/{volume_id}/delete-callback | Delete volume callback
+*CallbacksApi* | [**update_virtual_machine_callback**](docs/CallbacksApi.md#update_virtual_machine_callback) | **PUT** /core/virtual-machines/{vm_id}/update-callback | Update virtual machine callback
+*CallbacksApi* | [**update_volume_callback**](docs/CallbacksApi.md#update_volume_callback) | **PUT** /core/volumes/{volume_id}/update-callback | Update volume callback
*ClusterEventsApi* | [**fetch_all_of_a_cluster_events**](docs/ClusterEventsApi.md#fetch_all_of_a_cluster_events) | **GET** /core/clusters/{cluster_id}/events | Fetch all of a cluster events
*ClustersApi* | [**create_cluster**](docs/ClustersApi.md#create_cluster) | **POST** /core/clusters | Create Cluster
+*ClustersApi* | [**create_node**](docs/ClustersApi.md#create_node) | **POST** /core/clusters/{cluster_id}/nodes | Create Node
+*ClustersApi* | [**create_node_group**](docs/ClustersApi.md#create_node_group) | **POST** /core/clusters/{cluster_id}/node-groups | Create a node group in a cluster
*ClustersApi* | [**delete_a_cluster**](docs/ClustersApi.md#delete_a_cluster) | **DELETE** /core/clusters/{id} | Delete a cluster
+*ClustersApi* | [**delete_a_node_group**](docs/ClustersApi.md#delete_a_node_group) | **DELETE** /core/clusters/{cluster_id}/node-groups/{node_group_id} | Delete a node group
+*ClustersApi* | [**delete_cluster_node**](docs/ClustersApi.md#delete_cluster_node) | **DELETE** /core/clusters/{cluster_id}/nodes/{node_id} | Delete Cluster Node
*ClustersApi* | [**fetch_cluster_name_availability**](docs/ClustersApi.md#fetch_cluster_name_availability) | **GET** /core/clusters/name-availability/{name} | Fetch cluster name availability
-*ClustersApi* | [**get_cluster_versions**](docs/ClustersApi.md#get_cluster_versions) | **GET** /core/clusters/versions | GET Cluster Versions
+*ClustersApi* | [**get_cluster_master_flavors**](docs/ClustersApi.md#get_cluster_master_flavors) | **GET** /core/clusters/master-flavors | Get Cluster Master Flavors
+*ClustersApi* | [**get_cluster_nodes**](docs/ClustersApi.md#get_cluster_nodes) | **GET** /core/clusters/{cluster_id}/nodes | Get Cluster Nodes
+*ClustersApi* | [**get_cluster_versions**](docs/ClustersApi.md#get_cluster_versions) | **GET** /core/clusters/versions | List Cluster Versions
*ClustersApi* | [**getting_cluster_detail**](docs/ClustersApi.md#getting_cluster_detail) | **GET** /core/clusters/{id} | Getting Cluster Detail
*ClustersApi* | [**list_clusters**](docs/ClustersApi.md#list_clusters) | **GET** /core/clusters | List Clusters
+*ClustersApi* | [**list_node_groups**](docs/ClustersApi.md#list_node_groups) | **GET** /core/clusters/{cluster_id}/node-groups | List node groups for a cluster
+*ClustersApi* | [**retrieve_a_node_group**](docs/ClustersApi.md#retrieve_a_node_group) | **GET** /core/clusters/{cluster_id}/node-groups/{node_group_id} | Retrieve a node group in a cluster
*ComplianceApi* | [**create_compliance**](docs/ComplianceApi.md#create_compliance) | **POST** /core/compliance | Create compliance
*ComplianceApi* | [**delete_a_compliance**](docs/ComplianceApi.md#delete_a_compliance) | **DELETE** /core/compliance/{gpu_model} | Delete a compliance
-*ComplianceApi* | [**retrieve_gpu_compliance**](docs/ComplianceApi.md#retrieve_gpu_compliance) | **GET** /core/compliance | Retrieve GPU compliance
+*ComplianceApi* | [**retrieve_compliance**](docs/ComplianceApi.md#retrieve_compliance) | **GET** /core/compliance | Retrieve GPU compliance
*ComplianceApi* | [**update_a_compliance**](docs/ComplianceApi.md#update_a_compliance) | **PUT** /core/compliance | Update a compliance
-*CreditApi* | [**get_view_credit_and_threshold**](docs/CreditApi.md#get_view_credit_and_threshold) | **GET** /billing/user-credit/credit | GET: View credit and threshold
+*CreditApi* | [**get_credit2**](docs/CreditApi.md#get_credit2) | **GET** /billing/user-credit/credit | GET: View credit and threshold
*DashboardApi* | [**retrieve_dashboard**](docs/DashboardApi.md#retrieve_dashboard) | **GET** /core/dashboard | Retrieve Dashboard
*DeploymentApi* | [**delete_deployment**](docs/DeploymentApi.md#delete_deployment) | **DELETE** /core/marketplace/deployments/{id} | Delete Deployment
*DeploymentApi* | [**details_of_deployment_by_id**](docs/DeploymentApi.md#details_of_deployment_by_id) | **GET** /core/marketplace/deployments/{id} | Details of Deployment by ID
@@ -169,25 +197,27 @@ Class | Method | HTTP request | Description
*DeploymentApi* | [**start_deployment**](docs/DeploymentApi.md#start_deployment) | **POST** /core/marketplace/deployments | Start Deployment
*EnvironmentApi* | [**create_environment**](docs/EnvironmentApi.md#create_environment) | **POST** /core/environments | Create environment
*EnvironmentApi* | [**delete_environment**](docs/EnvironmentApi.md#delete_environment) | **DELETE** /core/environments/{id} | Delete environment
+*EnvironmentApi* | [**fetch_environment_name_availability**](docs/EnvironmentApi.md#fetch_environment_name_availability) | **GET** /core/environments/name-availability/{name} | Fetch environment name availability
*EnvironmentApi* | [**list_environments**](docs/EnvironmentApi.md#list_environments) | **GET** /core/environments | List environments
*EnvironmentApi* | [**retrieve_environment**](docs/EnvironmentApi.md#retrieve_environment) | **GET** /core/environments/{id} | Retrieve environment
*EnvironmentApi* | [**update_environment**](docs/EnvironmentApi.md#update_environment) | **PUT** /core/environments/{id} | Update environment
-*FirewallAttachmentApi* | [**attach_firewalls_to_vms**](docs/FirewallAttachmentApi.md#attach_firewalls_to_vms) | **POST** /core/firewalls/{firewall_id}/update-attachments | Attach Firewalls to VMs
-*FirewallsApi* | [**add_firewall_rule_to_firewall**](docs/FirewallsApi.md#add_firewall_rule_to_firewall) | **POST** /core/firewalls/{firewall_id}/firewall-rules | Add firewall rule to firewall
-*FirewallsApi* | [**create_firewall**](docs/FirewallsApi.md#create_firewall) | **POST** /core/firewalls | Create firewall
-*FirewallsApi* | [**delete_firewall**](docs/FirewallsApi.md#delete_firewall) | **DELETE** /core/firewalls/{id} | Delete firewall
-*FirewallsApi* | [**delete_firewall_rules_from_firewall**](docs/FirewallsApi.md#delete_firewall_rules_from_firewall) | **DELETE** /core/firewalls/{firewall_id}/firewall-rules/{firewall_rule_id} | Delete firewall rules from firewall
-*FirewallsApi* | [**list_firewalls**](docs/FirewallsApi.md#list_firewalls) | **GET** /core/firewalls | List firewalls
-*FirewallsApi* | [**retrieve_firewall_details**](docs/FirewallsApi.md#retrieve_firewall_details) | **GET** /core/firewalls/{id} | Retrieve firewall details
+*FirewallAttachmentApi* | [**post_attach_security_groups**](docs/FirewallAttachmentApi.md#post_attach_security_groups) | **POST** /core/firewalls/{firewall_id}/update-attachments | Attach Firewalls to VMs
+*FirewallsApi* | [**delete_security_group_details**](docs/FirewallsApi.md#delete_security_group_details) | **DELETE** /core/firewalls/{id} | Delete firewall
+*FirewallsApi* | [**delete_security_group_rule_delete**](docs/FirewallsApi.md#delete_security_group_rule_delete) | **DELETE** /core/firewalls/{firewall_id}/firewall-rules/{firewall_rule_id} | Delete firewall rules from firewall
+*FirewallsApi* | [**get_security_group**](docs/FirewallsApi.md#get_security_group) | **GET** /core/firewalls | List firewalls
+*FirewallsApi* | [**get_security_group_details**](docs/FirewallsApi.md#get_security_group_details) | **GET** /core/firewalls/{id} | Retrieve firewall details
+*FirewallsApi* | [**post_security_group**](docs/FirewallsApi.md#post_security_group) | **POST** /core/firewalls | Create firewall
+*FirewallsApi* | [**post_security_group_rules**](docs/FirewallsApi.md#post_security_group_rules) | **POST** /core/firewalls/{firewall_id}/firewall-rules | Add firewall rule to firewall
*FlavorApi* | [**list_flavors**](docs/FlavorApi.md#list_flavors) | **GET** /core/flavors | List Flavors
-*FloatingIpApi* | [**attach_public_ip_to_virtual_machine**](docs/FloatingIpApi.md#attach_public_ip_to_virtual_machine) | **POST** /core/virtual-machines/{id}/attach-floatingip | Attach public IP to virtual machine
-*FloatingIpApi* | [**detach_public_ip_from_virtual_machine**](docs/FloatingIpApi.md#detach_public_ip_from_virtual_machine) | **POST** /core/virtual-machines/{id}/detach-floatingip | Detach public IP from virtual machine
+*FloatingIpApi* | [**attach_public_ipto_virtual_machine**](docs/FloatingIpApi.md#attach_public_ipto_virtual_machine) | **POST** /core/virtual-machines/{vm_id}/attach-floatingip | Attach public IP to virtual machine
+*FloatingIpApi* | [**detach_public_ip_from_virtual_machine**](docs/FloatingIpApi.md#detach_public_ip_from_virtual_machine) | **POST** /core/virtual-machines/{vm_id}/detach-floatingip | Detach public IP from virtual machine
*GpuApi* | [**list_gpus**](docs/GpuApi.md#list_gpus) | **GET** /core/gpus | List GPUs
-*ImageApi* | [**delete_an_image**](docs/ImageApi.md#delete_an_image) | **DELETE** /core/images/{id} | Delete an image
-*ImageApi* | [**fetch_name_availability_for_images**](docs/ImageApi.md#fetch_name_availability_for_images) | **GET** /core/image/name-availability/{name} | Fetch name availability for Images
-*ImageApi* | [**get_private_image_details**](docs/ImageApi.md#get_private_image_details) | **GET** /core/images/{id} | Get Private Image Details
-*ImageApi* | [**list_images**](docs/ImageApi.md#list_images) | **GET** /core/images | List Images
-*InviteApi* | [**delete_invite**](docs/InviteApi.md#delete_invite) | **DELETE** /auth/invites/{id} | Delete Invite
+*ImageApi* | [**delete_image**](docs/ImageApi.md#delete_image) | **DELETE** /core/images/{id} | Delete an image
+*ImageApi* | [**fetch_image_name_availability**](docs/ImageApi.md#fetch_image_name_availability) | **GET** /core/image/name-availability/{name} | Fetch name availability for Images
+*ImageApi* | [**get_image_details**](docs/ImageApi.md#get_image_details) | **GET** /core/images/{id} | Get Private Image Details
+*ImageApi* | [**list_images2**](docs/ImageApi.md#list_images2) | **GET** /core/images | List Images
+*InviteApi* | [**accept_invite**](docs/InviteApi.md#accept_invite) | **GET** /auth/invites/{id}/accept | Accept Invite
+*InviteApi* | [**delete_invite**](docs/InviteApi.md#delete_invite) | **DELETE** /auth/invites/{id} | Accept Invite
*InviteApi* | [**invite_user_to_organization**](docs/InviteApi.md#invite_user_to_organization) | **POST** /auth/invites | Invite User to Organization
*InviteApi* | [**list_invites**](docs/InviteApi.md#list_invites) | **GET** /auth/invites | List Invites
*KeypairApi* | [**delete_key_pair**](docs/KeypairApi.md#delete_key_pair) | **DELETE** /core/keypair/{id} | Delete key pair
@@ -197,8 +227,11 @@ Class | Method | HTTP request | Description
*OrganizationApi* | [**remove_organization_member**](docs/OrganizationApi.md#remove_organization_member) | **POST** /auth/organizations/remove-member | Remove Organization Member
*OrganizationApi* | [**retrieve_organization_information**](docs/OrganizationApi.md#retrieve_organization_information) | **GET** /auth/organizations | Retrieve Organization Information
*OrganizationApi* | [**update_organization_information**](docs/OrganizationApi.md#update_organization_information) | **PUT** /auth/organizations/update | Update Organization Information
-*PaymentApi* | [**get_view_payment_details**](docs/PaymentApi.md#get_view_payment_details) | **GET** /billing/payment/payment-details | GET: View payment details
-*PaymentApi* | [**post_initiate_payment**](docs/PaymentApi.md#post_initiate_payment) | **POST** /billing/payment/payment-initiate | POST: Initiate payment
+*PartnerConfigApi* | [**get_partner_config**](docs/PartnerConfigApi.md#get_partner_config) | **GET** /auth/partner-config | Get partner config
+*PartnerConfigApi* | [**get_partner_config_by_domain**](docs/PartnerConfigApi.md#get_partner_config_by_domain) | **GET** /auth/partner-config/docs |
+*PaymentApi* | [**get_details**](docs/PaymentApi.md#get_details) | **GET** /billing/payment/payment-details | GET: View payment details
+*PaymentApi* | [**get_payment_receipt2**](docs/PaymentApi.md#get_payment_receipt2) | **GET** /billing/payment/receipt/{payment_id} | Retrieve Payment Receipt
+*PaymentApi* | [**post_payment**](docs/PaymentApi.md#post_payment) | **POST** /billing/payment/payment-initiate | POST: Initiate payment
*PermissionApi* | [**list_permissions**](docs/PermissionApi.md#list_permissions) | **GET** /auth/permissions | List Permissions
*PolicyApi* | [**list_policies**](docs/PolicyApi.md#list_policies) | **GET** /auth/policies | List Policies
*ProfileApi* | [**create_profile**](docs/ProfileApi.md#create_profile) | **POST** /core/profiles | Create profile
@@ -210,7 +243,7 @@ Class | Method | HTTP request | Description
*RbacRoleApi* | [**list_rbac_roles**](docs/RbacRoleApi.md#list_rbac_roles) | **GET** /auth/roles | List RBAC Roles
*RbacRoleApi* | [**retrieve_rbac_role_details**](docs/RbacRoleApi.md#retrieve_rbac_role_details) | **GET** /auth/roles/{id} | Retrieve RBAC Role Details
*RbacRoleApi* | [**update_rbac_role**](docs/RbacRoleApi.md#update_rbac_role) | **PUT** /auth/roles/{id} | Update RBAC Role
-*RegionApi* | [**list_regions**](docs/RegionApi.md#list_regions) | **GET** /core/regions | List regions
+*RegionApi* | [**list_regions**](docs/RegionApi.md#list_regions) | **GET** /core/regions | List Regions
*SecurityRulesApi* | [**list_firewall_rule_protocols**](docs/SecurityRulesApi.md#list_firewall_rule_protocols) | **GET** /core/sg-rules-protocols | List firewall rule protocols
*SnapshotEventsApi* | [**fetch_all_events_for_a_snapshot**](docs/SnapshotEventsApi.md#fetch_all_events_for_a_snapshot) | **GET** /core/snapshots/{snapshot_id}/events | Fetch all events for a snapshot
*StockApi* | [**retrieve_gpu_stocks**](docs/StockApi.md#retrieve_gpu_stocks) | **GET** /core/stocks | Retrieve GPU stocks
@@ -219,50 +252,53 @@ Class | Method | HTTP request | Description
*TemplateApi* | [**list_templates**](docs/TemplateApi.md#list_templates) | **GET** /core/marketplace/templates | List templates
*TemplateApi* | [**retrieve_template_details**](docs/TemplateApi.md#retrieve_template_details) | **GET** /core/marketplace/templates/{id} | Retrieve template details
*TemplateApi* | [**update_template**](docs/TemplateApi.md#update_template) | **PUT** /core/marketplace/templates/{id} | Update template
-*UserApi* | [**get_fetch_user_info**](docs/UserApi.md#get_fetch_user_info) | **GET** /billing/user/info | GET: Fetch User Info
-*UserApi* | [**post_insert_user_info**](docs/UserApi.md#post_insert_user_info) | **POST** /billing/user/info | POST: Insert user info
-*UserApi* | [**put_update_user_info**](docs/UserApi.md#put_update_user_info) | **PUT** /billing/user/info | PUT: Update user info
+*UserApi* | [**get_user**](docs/UserApi.md#get_user) | **GET** /billing/user/info | GET: Retrieve billing info
+*UserApi* | [**post_user**](docs/UserApi.md#post_user) | **POST** /billing/user/info | POST: Insert billing info
+*UserApi* | [**put_user**](docs/UserApi.md#put_user) | **PUT** /billing/user/info | PUT: Update billing info
*UserDetailChoiceApi* | [**retrieve_default_flavors_and_images**](docs/UserDetailChoiceApi.md#retrieve_default_flavors_and_images) | **GET** /core/user/resources/defaults | Retrieve Default Flavors and Images
*UserPermissionApi* | [**list_my_user_permissions**](docs/UserPermissionApi.md#list_my_user_permissions) | **GET** /auth/users/me/permissions | List My User Permissions
*UserPermissionApi* | [**list_user_permissions**](docs/UserPermissionApi.md#list_user_permissions) | **GET** /auth/users/{id}/permissions | List User Permissions
-*VirtualMachineApi* | [**add_firewall_rule_to_virtual_machine**](docs/VirtualMachineApi.md#add_firewall_rule_to_virtual_machine) | **POST** /core/virtual-machines/{id}/sg-rules | Add firewall rule to virtual machine
-*VirtualMachineApi* | [**attach_firewalls_to_a_virtual_machine**](docs/VirtualMachineApi.md#attach_firewalls_to_a_virtual_machine) | **POST** /core/virtual-machines/{vm_id}/attach-firewalls | Attach firewalls to a virtual machine
-*VirtualMachineApi* | [**create_snapshot_from_a_virtual_machine**](docs/VirtualMachineApi.md#create_snapshot_from_a_virtual_machine) | **POST** /core/virtual-machines/{vm_id}/snapshots | Create snapshot from a virtual machine
-*VirtualMachineApi* | [**create_virtual_machines**](docs/VirtualMachineApi.md#create_virtual_machines) | **POST** /core/virtual-machines | Create virtual machines
-*VirtualMachineApi* | [**delete_firewall_rule_from_virtual_machine**](docs/VirtualMachineApi.md#delete_firewall_rule_from_virtual_machine) | **DELETE** /core/virtual-machines/{virtual_machine_id}/sg-rules/{sg_rule_id} | Delete firewall rule from virtual machine
-*VirtualMachineApi* | [**delete_virtual_machine**](docs/VirtualMachineApi.md#delete_virtual_machine) | **DELETE** /core/virtual-machines/{id} | Delete virtual machine
-*VirtualMachineApi* | [**edit_virtual_machine_labels**](docs/VirtualMachineApi.md#edit_virtual_machine_labels) | **PUT** /core/virtual-machines/{virtual_machine_id}/label | Edit virtual machine labels
+*VirtualMachineApi* | [**delete_instance**](docs/VirtualMachineApi.md#delete_instance) | **DELETE** /core/virtual-machines/{vm_id} | Delete virtual machine
+*VirtualMachineApi* | [**delete_security_rule**](docs/VirtualMachineApi.md#delete_security_rule) | **DELETE** /core/virtual-machines/{vm_id}/sg-rules/{sg_rule_id} | Delete firewall rule from virtual machine
*VirtualMachineApi* | [**fetch_virtual_machine_name_availability**](docs/VirtualMachineApi.md#fetch_virtual_machine_name_availability) | **GET** /core/virtual-machines/name-availability/{name} | Fetch virtual machine name availability
-*VirtualMachineApi* | [**hard_reboot_virtual_machine**](docs/VirtualMachineApi.md#hard_reboot_virtual_machine) | **GET** /core/virtual-machines/{id}/hard-reboot | Hard reboot virtual machine
-*VirtualMachineApi* | [**hibernate_virtual_machine**](docs/VirtualMachineApi.md#hibernate_virtual_machine) | **GET** /core/virtual-machines/{virtual_machine_id}/hibernate | Hibernate virtual machine
-*VirtualMachineApi* | [**list_virtual_machines**](docs/VirtualMachineApi.md#list_virtual_machines) | **GET** /core/virtual-machines | List virtual machines
-*VirtualMachineApi* | [**resize_virtual_machine**](docs/VirtualMachineApi.md#resize_virtual_machine) | **POST** /core/virtual-machines/{virtual_machine_id}/resize | Resize virtual machine
-*VirtualMachineApi* | [**restore_virtual_machine_from_hibernation**](docs/VirtualMachineApi.md#restore_virtual_machine_from_hibernation) | **GET** /core/virtual-machines/{virtual_machine_id}/hibernate-restore | Restore virtual machine from hibernation
-*VirtualMachineApi* | [**retrieve_virtual_machine_details**](docs/VirtualMachineApi.md#retrieve_virtual_machine_details) | **GET** /core/virtual-machines/{id} | Retrieve virtual machine details
-*VirtualMachineApi* | [**retrieve_virtual_machine_performance_metrics**](docs/VirtualMachineApi.md#retrieve_virtual_machine_performance_metrics) | **GET** /core/virtual-machines/{virtual_machine_id}/metrics | Retrieve virtual machine performance metrics
-*VirtualMachineApi* | [**retrieve_virtual_machines_associated_with_a_contract**](docs/VirtualMachineApi.md#retrieve_virtual_machines_associated_with_a_contract) | **GET** /core/virtual-machines/contract/{contract_id}/virtual-machines | Retrieve virtual machines associated with a contract
-*VirtualMachineApi* | [**start_virtual_machine**](docs/VirtualMachineApi.md#start_virtual_machine) | **GET** /core/virtual-machines/{id}/start | Start virtual machine
-*VirtualMachineApi* | [**stop_virtual_machine**](docs/VirtualMachineApi.md#stop_virtual_machine) | **GET** /core/virtual-machines/{id}/stop | Stop virtual machine
-*VirtualMachineEventsApi* | [**list_virtual_machine_events**](docs/VirtualMachineEventsApi.md#list_virtual_machine_events) | **GET** /core/virtual-machines/{virtual_machine_id}/events | List virtual machine events
-*VncUrlApi* | [**get_vnc_console_link**](docs/VncUrlApi.md#get_vnc_console_link) | **GET** /core/virtual-machines/{virtual_machine_id}/console/{job_id} | Get VNC Console Link
-*VncUrlApi* | [**request_instance_console**](docs/VncUrlApi.md#request_instance_console) | **GET** /core/virtual-machines/{id}/request-console | Request Instance Console
+*VirtualMachineApi* | [**get_contract_instances**](docs/VirtualMachineApi.md#get_contract_instances) | **GET** /core/virtual-machines/contract/{contract_id}/virtual-machines | Retrieve virtual machines associated with a contract
+*VirtualMachineApi* | [**get_instance**](docs/VirtualMachineApi.md#get_instance) | **GET** /core/virtual-machines | List virtual machines
+*VirtualMachineApi* | [**get_instance2**](docs/VirtualMachineApi.md#get_instance2) | **GET** /core/virtual-machines/{vm_id} | Retrieve virtual machine details
+*VirtualMachineApi* | [**get_instance3**](docs/VirtualMachineApi.md#get_instance3) | **GET** /core/virtual-machines/{vm_id}/hard-reboot | Hard reboot virtual machine
+*VirtualMachineApi* | [**get_instance4**](docs/VirtualMachineApi.md#get_instance4) | **GET** /core/virtual-machines/{vm_id}/start | Start virtual machine
+*VirtualMachineApi* | [**get_instance5**](docs/VirtualMachineApi.md#get_instance5) | **GET** /core/virtual-machines/{vm_id}/stop | Stop virtual machine
+*VirtualMachineApi* | [**get_instance_hibernate**](docs/VirtualMachineApi.md#get_instance_hibernate) | **GET** /core/virtual-machines/{vm_id}/hibernate | Hibernate virtual machine
+*VirtualMachineApi* | [**get_instance_hibernate_restore**](docs/VirtualMachineApi.md#get_instance_hibernate_restore) | **GET** /core/virtual-machines/{vm_id}/hibernate-restore | Restore virtual machine from hibernation
+*VirtualMachineApi* | [**get_instance_logs**](docs/VirtualMachineApi.md#get_instance_logs) | **GET** /core/virtual-machines/{vm_id}/logs | Get virtual machine logs
+*VirtualMachineApi* | [**get_instance_metrics**](docs/VirtualMachineApi.md#get_instance_metrics) | **GET** /core/virtual-machines/{vm_id}/metrics | Retrieve virtual machine performance metrics
+*VirtualMachineApi* | [**post_instance**](docs/VirtualMachineApi.md#post_instance) | **POST** /core/virtual-machines | Create virtual machines
+*VirtualMachineApi* | [**post_instance_attach_firewalls**](docs/VirtualMachineApi.md#post_instance_attach_firewalls) | **POST** /core/virtual-machines/{vm_id}/attach-firewalls | Attach firewalls to a virtual machine
+*VirtualMachineApi* | [**post_instance_logs**](docs/VirtualMachineApi.md#post_instance_logs) | **POST** /core/virtual-machines/{vm_id}/logs | Request virtual machine logs
+*VirtualMachineApi* | [**post_instance_resize**](docs/VirtualMachineApi.md#post_instance_resize) | **POST** /core/virtual-machines/{vm_id}/resize | Resize virtual machine
+*VirtualMachineApi* | [**post_security_rule**](docs/VirtualMachineApi.md#post_security_rule) | **POST** /core/virtual-machines/{vm_id}/sg-rules | Add firewall rule to virtual machine
+*VirtualMachineApi* | [**post_snapshots**](docs/VirtualMachineApi.md#post_snapshots) | **POST** /core/virtual-machines/{vm_id}/snapshots | Create snapshot from a virtual machine
+*VirtualMachineApi* | [**put_labels**](docs/VirtualMachineApi.md#put_labels) | **PUT** /core/virtual-machines/{vm_id}/label | Edit virtual machine labels
+*VirtualMachineEventsApi* | [**list_virtual_machine_events**](docs/VirtualMachineEventsApi.md#list_virtual_machine_events) | **GET** /core/virtual-machines/{vm_id}/events | List virtual machine events
+*VncUrlApi* | [**get_vnc_url**](docs/VncUrlApi.md#get_vnc_url) | **GET** /core/virtual-machines/{vm_id}/console/{job_id} | Get VNC Console Link
+*VncUrlApi* | [**get_vnc_url2**](docs/VncUrlApi.md#get_vnc_url2) | **GET** /core/virtual-machines/{vm_id}/request-console | Request Instance Console
*VolumeApi* | [**create_volume**](docs/VolumeApi.md#create_volume) | **POST** /core/volumes | Create volume
-*VolumeApi* | [**delete_volume**](docs/VolumeApi.md#delete_volume) | **DELETE** /core/volumes/{id} | Delete volume
-*VolumeApi* | [**fetch_volume_details**](docs/VolumeApi.md#fetch_volume_details) | **GET** /core/volume/{volume_id} | Fetch Volume Details
+*VolumeApi* | [**delete_volume**](docs/VolumeApi.md#delete_volume) | **DELETE** /core/volumes/{volume_id} | Delete volume
+*VolumeApi* | [**fetch_volume_details**](docs/VolumeApi.md#fetch_volume_details) | **GET** /core/volumes/{volume_id} | Fetch Volume Details
*VolumeApi* | [**fetch_volume_name_availability**](docs/VolumeApi.md#fetch_volume_name_availability) | **GET** /core/volume/name-availability/{name} | Fetch volume name availability
*VolumeApi* | [**list_volume_types**](docs/VolumeApi.md#list_volume_types) | **GET** /core/volume-types | List volume types
*VolumeApi* | [**list_volumes**](docs/VolumeApi.md#list_volumes) | **GET** /core/volumes | List volumes
-*VolumeAttachmentApi* | [**attach_volumes_to_virtual_machine**](docs/VolumeAttachmentApi.md#attach_volumes_to_virtual_machine) | **POST** /core/virtual-machines/{virtual_machine_id}/attach-volumes | Attach volumes to virtual machine
-*VolumeAttachmentApi* | [**detach_volumes_from_virtual_machine**](docs/VolumeAttachmentApi.md#detach_volumes_from_virtual_machine) | **POST** /core/virtual-machines/{virtual_machine_id}/detach-volumes | Detach volumes from virtual machine
+*VolumeApi* | [**update_volume**](docs/VolumeApi.md#update_volume) | **PATCH** /core/volumes/{volume_id} | Update volume fields
+*VolumeAttachmentApi* | [**attach_volumes_to_virtual_machine**](docs/VolumeAttachmentApi.md#attach_volumes_to_virtual_machine) | **POST** /core/virtual-machines/{vm_id}/attach-volumes | Attach volumes to virtual machine
+*VolumeAttachmentApi* | [**detach_volumes_from_virtual_machine**](docs/VolumeAttachmentApi.md#detach_volumes_from_virtual_machine) | **POST** /core/virtual-machines/{vm_id}/detach-volumes | Detach volumes from virtual machine
+*VolumeAttachmentApi* | [**update_a_volume_attachment**](docs/VolumeAttachmentApi.md#update_a_volume_attachment) | **PATCH** /core/volume-attachments/{volume_attachment_id} | Update a volume attachment
## Documentation For Models
- - [AddUpdateFlavorOrganizationPayload](docs/AddUpdateFlavorOrganizationPayload.md)
+ - [AccessTokenField](docs/AccessTokenField.md)
- [AddUserInfoSuccessResponseModel](docs/AddUserInfoSuccessResponseModel.md)
- [AllocatedGPUCountGraph](docs/AllocatedGPUCountGraph.md)
- [ApiKeyFields](docs/ApiKeyFields.md)
- - [ApiKeyVerifyFields](docs/ApiKeyVerifyFields.md)
- [AssignRbacRolePayload](docs/AssignRbacRolePayload.md)
- [AttachCallbackPayload](docs/AttachCallbackPayload.md)
- [AttachCallbackResponse](docs/AttachCallbackResponse.md)
@@ -271,21 +307,40 @@ Class | Method | HTTP request | Description
- [AttachVolumeFields](docs/AttachVolumeFields.md)
- [AttachVolumes](docs/AttachVolumes.md)
- [AttachVolumesPayload](docs/AttachVolumesPayload.md)
+ - [AttachmentsFieldsForVolume](docs/AttachmentsFieldsForVolume.md)
+ - [Attributes](docs/Attributes.md)
- [AuthGetTokenResponseModel](docs/AuthGetTokenResponseModel.md)
- - [AuthRequestLoginFields](docs/AuthRequestLoginFields.md)
- - [AuthRequestLoginResponseModel](docs/AuthRequestLoginResponseModel.md)
- [AuthUserFields](docs/AuthUserFields.md)
- [AuthUserInfoResponseModel](docs/AuthUserInfoResponseModel.md)
- - [BillingImmuneResourcesResponse](docs/BillingImmuneResourcesResponse.md)
- - [BillingResponse](docs/BillingResponse.md)
- - [Billingmetricesfields](docs/Billingmetricesfields.md)
- - [Billingmetricesresponse](docs/Billingmetricesresponse.md)
+ - [BetaAccessRequestFields](docs/BetaAccessRequestFields.md)
+ - [BetaAccessRequestPayload](docs/BetaAccessRequestPayload.md)
+ - [BetaAccessRequestResponseModel](docs/BetaAccessRequestResponseModel.md)
+ - [BetaAccessStatusItem](docs/BetaAccessStatusItem.md)
+ - [BetaAccessStatusResponseModel](docs/BetaAccessStatusResponseModel.md)
+ - [BillingHistory](docs/BillingHistory.md)
+ - [BillingHistoryDataSynthesisDetails](docs/BillingHistoryDataSynthesisDetails.md)
+ - [BillingHistoryFineTuning](docs/BillingHistoryFineTuning.md)
+ - [BillingHistoryModelEvalutationDetails](docs/BillingHistoryModelEvalutationDetails.md)
+ - [BillingHistoryServerlessInference](docs/BillingHistoryServerlessInference.md)
+ - [BillingHistoryServerlessInferenceDetails](docs/BillingHistoryServerlessInferenceDetails.md)
+ - [BillingMetricesFields](docs/BillingMetricesFields.md)
+ - [BillingMetricesResponse](docs/BillingMetricesResponse.md)
- [ClusterEvents](docs/ClusterEvents.md)
- [ClusterEventsFields](docs/ClusterEventsFields.md)
- [ClusterFields](docs/ClusterFields.md)
+ - [ClusterFlavorFields](docs/ClusterFlavorFields.md)
- [ClusterListResponse](docs/ClusterListResponse.md)
+ - [ClusterNodeFields](docs/ClusterNodeFields.md)
+ - [ClusterNodeGroupFields](docs/ClusterNodeGroupFields.md)
+ - [ClusterNodeGroupsCreateResponse](docs/ClusterNodeGroupsCreateResponse.md)
+ - [ClusterNodeGroupsGetResponse](docs/ClusterNodeGroupsGetResponse.md)
+ - [ClusterNodeGroupsListResponse](docs/ClusterNodeGroupsListResponse.md)
+ - [ClusterNodeInstanceFields](docs/ClusterNodeInstanceFields.md)
+ - [ClusterNodesListResponse](docs/ClusterNodesListResponse.md)
- [ClusterResponse](docs/ClusterResponse.md)
+ - [ClusterVersion](docs/ClusterVersion.md)
- [ClusterVersions](docs/ClusterVersions.md)
+ - [Colors](docs/Colors.md)
- [CommonResponseModel](docs/CommonResponseModel.md)
- [ComplianceFields](docs/ComplianceFields.md)
- [ComplianceModelFields](docs/ComplianceModelFields.md)
@@ -293,28 +348,16 @@ Class | Method | HTTP request | Description
- [ComplianceResponse](docs/ComplianceResponse.md)
- [ContainerOverviewFields](docs/ContainerOverviewFields.md)
- [Contract](docs/Contract.md)
- - [ContractBillingHistory](docs/ContractBillingHistory.md)
- - [ContractBillingHistoryResponseAttributes](docs/ContractBillingHistoryResponseAttributes.md)
- - [ContractBillingHistoryResponseModel](docs/ContractBillingHistoryResponseModel.md)
- - [ContractChangePayload](docs/ContractChangePayload.md)
- [ContractDiscountPlanFields](docs/ContractDiscountPlanFields.md)
- - [ContractEligibleInstanceFields](docs/ContractEligibleInstanceFields.md)
- - [ContractEligibleInstancesResponse](docs/ContractEligibleInstancesResponse.md)
- - [ContractEventCreateModel](docs/ContractEventCreateModel.md)
- [ContractGPUAllocationGraphResponse](docs/ContractGPUAllocationGraphResponse.md)
- [ContractInstanceFields](docs/ContractInstanceFields.md)
- [ContractInstancesResponse](docs/ContractInstancesResponse.md)
- - [ContractResourcePayload](docs/ContractResourcePayload.md)
- - [ContractlBillingHistoryResponseMetrics](docs/ContractlBillingHistoryResponseMetrics.md)
+ - [CreateClusterNodeFields](docs/CreateClusterNodeFields.md)
+ - [CreateClusterNodeGroupPayload](docs/CreateClusterNodeGroupPayload.md)
- [CreateClusterPayload](docs/CreateClusterPayload.md)
- - [CreateContractFields](docs/CreateContractFields.md)
- - [CreateContractPayload](docs/CreateContractPayload.md)
- - [CreateDiscountResponse](docs/CreateDiscountResponse.md)
- - [CreateDiscountsPayload](docs/CreateDiscountsPayload.md)
- [CreateEnvironment](docs/CreateEnvironment.md)
- [CreateFirewallPayload](docs/CreateFirewallPayload.md)
- [CreateFirewallRulePayload](docs/CreateFirewallRulePayload.md)
- - [CreateGPU](docs/CreateGPU.md)
- [CreateImage](docs/CreateImage.md)
- [CreateImagePayload](docs/CreateImagePayload.md)
- [CreateInstancesPayload](docs/CreateInstancesPayload.md)
@@ -325,44 +368,24 @@ Class | Method | HTTP request | Description
- [CreateSnapshotPayload](docs/CreateSnapshotPayload.md)
- [CreateSnapshotResponse](docs/CreateSnapshotResponse.md)
- [CreateUpdateComplianceResponse](docs/CreateUpdateComplianceResponse.md)
- - [CreateUpdatePermissionPayload](docs/CreateUpdatePermissionPayload.md)
- - [CreateUpdatePermissionResponseModel](docs/CreateUpdatePermissionResponseModel.md)
- - [CreateUpdatePolicyPayload](docs/CreateUpdatePolicyPayload.md)
- - [CreateUpdatePolicyResponseModel](docs/CreateUpdatePolicyResponseModel.md)
- [CreateUpdateRbacRolePayload](docs/CreateUpdateRbacRolePayload.md)
- [CreateVolumePayload](docs/CreateVolumePayload.md)
- - [Creditrechargelimitfield](docs/Creditrechargelimitfield.md)
- - [Creditrechargelimitresponse](docs/Creditrechargelimitresponse.md)
- - [Creditrequestresponse](docs/Creditrequestresponse.md)
- - [Creditrequests](docs/Creditrequests.md)
- [CustomerContractDetailResponseModel](docs/CustomerContractDetailResponseModel.md)
- [CustomerContractFields](docs/CustomerContractFields.md)
- - [CustomerFields](docs/CustomerFields.md)
- - [CustomerPayload](docs/CustomerPayload.md)
- [DashboardInfoResponse](docs/DashboardInfoResponse.md)
- - [Data](docs/Data.md)
+ - [DataSynthesisBillingHistoryDetailsResponseSchema](docs/DataSynthesisBillingHistoryDetailsResponseSchema.md)
- [DeploymentFields](docs/DeploymentFields.md)
- - [DeploymentFieldsforstartdeployments](docs/DeploymentFieldsforstartdeployments.md)
+ - [DeploymentFieldsForStartDeployments](docs/DeploymentFieldsForStartDeployments.md)
- [Deployments](docs/Deployments.md)
- [DetachVolumes](docs/DetachVolumes.md)
- [DetachVolumesPayload](docs/DetachVolumesPayload.md)
- - [DiscountEntityModel](docs/DiscountEntityModel.md)
- - [DiscountFields](docs/DiscountFields.md)
- - [DiscountPlanFields](docs/DiscountPlanFields.md)
- - [DiscountResourceFields](docs/DiscountResourceFields.md)
- - [DiscountResourcePayload](docs/DiscountResourcePayload.md)
- - [EditlabelofanexistingVMPayload](docs/EditlabelofanexistingVMPayload.md)
+ - [EditLabelOfAnExistingVMPayload](docs/EditLabelOfAnExistingVMPayload.md)
- [Environment](docs/Environment.md)
- [EnvironmentFeatures](docs/EnvironmentFeatures.md)
- [EnvironmentFields](docs/EnvironmentFields.md)
- - [EnvironmentFieldsforVolume](docs/EnvironmentFieldsforVolume.md)
+ - [EnvironmentFieldsForVolume](docs/EnvironmentFieldsForVolume.md)
- [Environments](docs/Environments.md)
- [ErrorResponseModel](docs/ErrorResponseModel.md)
- - [ExcludeBillingPostPayload](docs/ExcludeBillingPostPayload.md)
- - [ExcludeBillingPostResponse](docs/ExcludeBillingPostResponse.md)
- - [ExportBillingDataRequest](docs/ExportBillingDataRequest.md)
- - [ExportBillingDataResponse](docs/ExportBillingDataResponse.md)
- - [FieldChange](docs/FieldChange.md)
- [FirewallAttachmentModel](docs/FirewallAttachmentModel.md)
- [FirewallAttachmentVMModel](docs/FirewallAttachmentVMModel.md)
- [FirewallDetailFields](docs/FirewallDetailFields.md)
@@ -374,55 +397,33 @@ Class | Method | HTTP request | Description
- [FirewallsListResponse](docs/FirewallsListResponse.md)
- [FlavorFields](docs/FlavorFields.md)
- [FlavorItemGetResponse](docs/FlavorItemGetResponse.md)
+ - [FlavorLabelFields](docs/FlavorLabelFields.md)
- [FlavorListResponse](docs/FlavorListResponse.md)
- [FlavorObjectFields](docs/FlavorObjectFields.md)
- - [FlavorPayload](docs/FlavorPayload.md)
- - [FlavorResponse](docs/FlavorResponse.md)
- - [FlavorVMFields](docs/FlavorVMFields.md)
- - [FlavorVMsResponse](docs/FlavorVMsResponse.md)
- - [FutureNodeModel](docs/FutureNodeModel.md)
- - [FutureNodeResponseModel](docs/FutureNodeResponseModel.md)
- - [FutureNodeStockModel](docs/FutureNodeStockModel.md)
- - [FutureNodeUpdateModel](docs/FutureNodeUpdateModel.md)
- - [FutureNodesStockModel](docs/FutureNodesStockModel.md)
- - [GPU](docs/GPU.md)
- [GPUFields](docs/GPUFields.md)
- [GPUList](docs/GPUList.md)
- [GPURegionFields](docs/GPURegionFields.md)
- [GenerateUpdateApiKeyPayload](docs/GenerateUpdateApiKeyPayload.md)
- [GenerateUpdateApiKeyResponseModel](docs/GenerateUpdateApiKeyResponseModel.md)
- - [GetAllContractFields](docs/GetAllContractFields.md)
- - [GetAllContractsResponseModel](docs/GetAllContractsResponseModel.md)
- - [GetAllDiscountForAllOrganizationResponse](docs/GetAllDiscountForAllOrganizationResponse.md)
- - [GetAllDiscountsFields](docs/GetAllDiscountsFields.md)
- [GetApiKeysResponseModel](docs/GetApiKeysResponseModel.md)
+ - [GetCreditAndThresholdInfo](docs/GetCreditAndThresholdInfo.md)
+ - [GetCreditAndThresholdInfoInResponse](docs/GetCreditAndThresholdInfoInResponse.md)
- [GetCustomerContractsListResponseModel](docs/GetCustomerContractsListResponseModel.md)
- - [GetDiscountDetailResponse](docs/GetDiscountDetailResponse.md)
- - [GetDiscountResponse](docs/GetDiscountResponse.md)
- - [GetEntityDiscountDetailResponse](docs/GetEntityDiscountDetailResponse.md)
+ - [GetInstanceLogsResponse](docs/GetInstanceLogsResponse.md)
- [GetInvitesResponseModel](docs/GetInvitesResponseModel.md)
- [GetOrganizationResponseModel](docs/GetOrganizationResponseModel.md)
- [GetPermissionsResponseModel](docs/GetPermissionsResponseModel.md)
- [GetPoliciesResponseModel](docs/GetPoliciesResponseModel.md)
- [GetRbacRolesResponseModel](docs/GetRbacRolesResponseModel.md)
- - [GetTokenPayload](docs/GetTokenPayload.md)
- [GetUserPermissionsResponseModel](docs/GetUserPermissionsResponseModel.md)
- - [GetVersionResponse](docs/GetVersionResponse.md)
- - [Getcreditandthresholdinfo](docs/Getcreditandthresholdinfo.md)
- - [Getcreditandthresholdinfoinresponse](docs/Getcreditandthresholdinfoinresponse.md)
- [GraphDatetimeValueModel](docs/GraphDatetimeValueModel.md)
- - [HistoricalInstance](docs/HistoricalInstance.md)
- - [HistoricalInstancesFields](docs/HistoricalInstancesFields.md)
- [Image](docs/Image.md)
- [ImageFields](docs/ImageFields.md)
- [ImageGetResponse](docs/ImageGetResponse.md)
- - [ImageLogos](docs/ImageLogos.md)
- [Images](docs/Images.md)
- [ImportKeypairPayload](docs/ImportKeypairPayload.md)
- [ImportKeypairResponse](docs/ImportKeypairResponse.md)
- - [InfrahubResourceObjectResponse](docs/InfrahubResourceObjectResponse.md)
- [InfrahubResourceObjectResponseForCustomer](docs/InfrahubResourceObjectResponseForCustomer.md)
- - [InsertDiscountPlanFields](docs/InsertDiscountPlanFields.md)
- [Instance](docs/Instance.md)
- [InstanceEnvironmentFields](docs/InstanceEnvironmentFields.md)
- [InstanceEvents](docs/InstanceEvents.md)
@@ -434,56 +435,42 @@ Class | Method | HTTP request | Description
- [InstanceOverviewFields](docs/InstanceOverviewFields.md)
- [InstanceResizePayload](docs/InstanceResizePayload.md)
- [Instances](docs/Instances.md)
- - [InstancesSummaryFields](docs/InstancesSummaryFields.md)
- - [InternalEnvironmentFields](docs/InternalEnvironmentFields.md)
- - [InternalInstanceFields](docs/InternalInstanceFields.md)
- - [InternalInstanceFlavorFields](docs/InternalInstanceFlavorFields.md)
- - [InternalInstanceImageFields](docs/InternalInstanceImageFields.md)
- - [InternalInstanceKeypairFields](docs/InternalInstanceKeypairFields.md)
- - [InternalInstancesResponse](docs/InternalInstancesResponse.md)
- - [InternalSecurityRulesFieldsForInstance](docs/InternalSecurityRulesFieldsForInstance.md)
- - [InternalVolumeAttachmentFields](docs/InternalVolumeAttachmentFields.md)
- - [InternalVolumeFields](docs/InternalVolumeFields.md)
- - [InternalVolumesResponse](docs/InternalVolumesResponse.md)
- [InviteFields](docs/InviteFields.md)
- [InviteUserPayload](docs/InviteUserPayload.md)
- [InviteUserResponseModel](docs/InviteUserResponseModel.md)
+ - [KeypairEnvironmentFeatures](docs/KeypairEnvironmentFeatures.md)
+ - [KeypairEnvironmentFields](docs/KeypairEnvironmentFields.md)
- [KeypairFields](docs/KeypairFields.md)
- [Keypairs](docs/Keypairs.md)
- [LableResonse](docs/LableResonse.md)
- - [Lastdaycostfields](docs/Lastdaycostfields.md)
- - [Lastdaycostresponse](docs/Lastdaycostresponse.md)
- - [LogoGetResponse](docs/LogoGetResponse.md)
- - [LogoutPayload](docs/LogoutPayload.md)
+ - [LastDayCostFields](docs/LastDayCostFields.md)
+ - [LastDayCostResponse](docs/LastDayCostResponse.md)
+ - [Logos](docs/Logos.md)
+ - [MFAStatusFields](docs/MFAStatusFields.md)
+ - [MFAStatusResponse](docs/MFAStatusResponse.md)
+ - [MasterFlavorsResponse](docs/MasterFlavorsResponse.md)
- [MetricItemFields](docs/MetricItemFields.md)
- [MetricsFields](docs/MetricsFields.md)
+ - [ModelEvaluationBillingHistoryDetailsResponseSchema](docs/ModelEvaluationBillingHistoryDetailsResponseSchema.md)
- [NameAvailableModel](docs/NameAvailableModel.md)
- [NewConfigurationsResponse](docs/NewConfigurationsResponse.md)
- [NewModelResponse](docs/NewModelResponse.md)
- [NewStockResponse](docs/NewStockResponse.md)
- [NewStockRetriveResponse](docs/NewStockRetriveResponse.md)
- - [NewStockUpdateResponseModel](docs/NewStockUpdateResponseModel.md)
- - [NodeModel](docs/NodeModel.md)
- - [NodePayloadModel](docs/NodePayloadModel.md)
- - [NodePowerUsageModel](docs/NodePowerUsageModel.md)
- - [NodeResponseModel](docs/NodeResponseModel.md)
- - [NodeStockPayloadModel](docs/NodeStockPayloadModel.md)
- - [NodeStockResponseModel](docs/NodeStockResponseModel.md)
- - [NodeStocksPayload](docs/NodeStocksPayload.md)
- [OrganizationFields](docs/OrganizationFields.md)
- [OrganizationLevelBillingHistory](docs/OrganizationLevelBillingHistory.md)
- [OrganizationLevelBillingHistoryResources](docs/OrganizationLevelBillingHistoryResources.md)
- [OrganizationLevelBillingHistoryResponseAttributes](docs/OrganizationLevelBillingHistoryResponseAttributes.md)
- [OrganizationLevelBillingHistoryResponseMetrics](docs/OrganizationLevelBillingHistoryResponseMetrics.md)
- [OrganizationLevelBillingHistoryResponseModel](docs/OrganizationLevelBillingHistoryResponseModel.md)
- - [OrganizationObjectResponse](docs/OrganizationObjectResponse.md)
- - [OrganizationThresholdfields](docs/OrganizationThresholdfields.md)
+ - [OrganizationThresholdFields](docs/OrganizationThresholdFields.md)
+ - [OrganizationThresholdUpdateResponse](docs/OrganizationThresholdUpdateResponse.md)
+ - [OrganizationThresholdsResponse](docs/OrganizationThresholdsResponse.md)
- [OrganizationUserResponseModel](docs/OrganizationUserResponseModel.md)
- - [Organizationcreditrechargelimitresponse](docs/Organizationcreditrechargelimitresponse.md)
- - [Organizationthresholdsresponse](docs/Organizationthresholdsresponse.md)
- - [Organizationthresholdupdateresponse](docs/Organizationthresholdupdateresponse.md)
- [OverviewInfo](docs/OverviewInfo.md)
+ - [Pagination](docs/Pagination.md)
- [PaginationData](docs/PaginationData.md)
+ - [PartnerConfig](docs/PartnerConfig.md)
- [PaymentDetailsFields](docs/PaymentDetailsFields.md)
- [PaymentDetailsResponse](docs/PaymentDetailsResponse.md)
- [PaymentInitiateFields](docs/PaymentInitiateFields.md)
@@ -492,10 +479,9 @@ Class | Method | HTTP request | Description
- [PermissionFields](docs/PermissionFields.md)
- [PolicyFields](docs/PolicyFields.md)
- [PolicyPermissionFields](docs/PolicyPermissionFields.md)
- - [PowerUsageModel](docs/PowerUsageModel.md)
- [PricebookModel](docs/PricebookModel.md)
- - [PricebookResourceObjectResponse](docs/PricebookResourceObjectResponse.md)
- [PricebookResourceObjectResponseForCustomer](docs/PricebookResourceObjectResponseForCustomer.md)
+ - [PrimaryColor](docs/PrimaryColor.md)
- [ProfileFields](docs/ProfileFields.md)
- [ProfileListResponse](docs/ProfileListResponse.md)
- [ProfileObjectFields](docs/ProfileObjectFields.md)
@@ -503,17 +489,17 @@ Class | Method | HTTP request | Description
- [RbacRoleDetailResponseModelFixed](docs/RbacRoleDetailResponseModelFixed.md)
- [RbacRoleField](docs/RbacRoleField.md)
- [RbacRoleFields](docs/RbacRoleFields.md)
- - [RefreshTokenPayload](docs/RefreshTokenPayload.md)
- [RegionFields](docs/RegionFields.md)
- - [RegionPayload](docs/RegionPayload.md)
- - [RegionResponse](docs/RegionResponse.md)
- [Regions](docs/Regions.md)
- [RemoveMemberFromOrganizationResponseModel](docs/RemoveMemberFromOrganizationResponseModel.md)
- [RemoveMemberPayload](docs/RemoveMemberPayload.md)
- [RequestConsole](docs/RequestConsole.md)
+ - [RequestInstanceLogsPayload](docs/RequestInstanceLogsPayload.md)
+ - [RequestInstanceLogsResponse](docs/RequestInstanceLogsResponse.md)
- [ResourceBillingEventsHistoryMetrics](docs/ResourceBillingEventsHistoryMetrics.md)
- [ResourceBillingEventsHistoryResponse](docs/ResourceBillingEventsHistoryResponse.md)
- [ResourceBillingResponseForCustomer](docs/ResourceBillingResponseForCustomer.md)
+ - [ResourceLevelBillingBucketDetailsResources](docs/ResourceLevelBillingBucketDetailsResources.md)
- [ResourceLevelBillingDetailsAttributes](docs/ResourceLevelBillingDetailsAttributes.md)
- [ResourceLevelBillingDetailsMetrics](docs/ResourceLevelBillingDetailsMetrics.md)
- [ResourceLevelBillingDetailsVM](docs/ResourceLevelBillingDetailsVM.md)
@@ -522,12 +508,19 @@ Class | Method | HTTP request | Description
- [ResourceLevelBillingDetailsVolumeMetrics](docs/ResourceLevelBillingDetailsVolumeMetrics.md)
- [ResourceLevelBillingHistory](docs/ResourceLevelBillingHistory.md)
- [ResourceLevelBillingHistoryResources](docs/ResourceLevelBillingHistoryResources.md)
+ - [ResourceLevelBillingHistoryResourcesCluster](docs/ResourceLevelBillingHistoryResourcesCluster.md)
- [ResourceLevelBillingHistoryResponseAttributes](docs/ResourceLevelBillingHistoryResponseAttributes.md)
- [ResourceLevelBillingHistoryResponseMetrics](docs/ResourceLevelBillingHistoryResponseMetrics.md)
- [ResourceLevelBillingVMDetailsResources](docs/ResourceLevelBillingVMDetailsResources.md)
- [ResourceLevelBillingVolumeDetailsResources](docs/ResourceLevelBillingVolumeDetailsResources.md)
+ - [ResourceLevelBucketBillingDetailsResponseModel](docs/ResourceLevelBucketBillingDetailsResponseModel.md)
+ - [ResourceLevelBucketBillingHistoryResponseModel](docs/ResourceLevelBucketBillingHistoryResponseModel.md)
+ - [ResourceLevelClusterBillingDetailsResponseModel](docs/ResourceLevelClusterBillingDetailsResponseModel.md)
+ - [ResourceLevelClusterBillingHistoryResponseModel](docs/ResourceLevelClusterBillingHistoryResponseModel.md)
+ - [ResourceLevelClusterGraphBillingDetailsResponseModel](docs/ResourceLevelClusterGraphBillingDetailsResponseModel.md)
- [ResourceLevelGraphBillingDetailVolume](docs/ResourceLevelGraphBillingDetailVolume.md)
- [ResourceLevelGraphBillingDetailsAttributes](docs/ResourceLevelGraphBillingDetailsAttributes.md)
+ - [ResourceLevelGraphBillingDetailsBucket](docs/ResourceLevelGraphBillingDetailsBucket.md)
- [ResourceLevelGraphBillingDetailsMetrics](docs/ResourceLevelGraphBillingDetailsMetrics.md)
- [ResourceLevelGraphBillingDetailsVM](docs/ResourceLevelGraphBillingDetailsVM.md)
- [ResourceLevelGraphBillingVMDetailsResources](docs/ResourceLevelGraphBillingVMDetailsResources.md)
@@ -542,12 +535,12 @@ Class | Method | HTTP request | Description
- [ResponseModel](docs/ResponseModel.md)
- [RolePermissionFields](docs/RolePermissionFields.md)
- [RolePolicyFields](docs/RolePolicyFields.md)
+ - [SecondaryColor](docs/SecondaryColor.md)
- [SecurityGroupRule](docs/SecurityGroupRule.md)
- [SecurityGroupRuleFields](docs/SecurityGroupRuleFields.md)
- - [SecurityRulesFieldsforInstance](docs/SecurityRulesFieldsforInstance.md)
+ - [SecurityRulesFieldsForInstance](docs/SecurityRulesFieldsForInstance.md)
- [SecurityRulesProtocolFields](docs/SecurityRulesProtocolFields.md)
- - [SetDefaultsPayload](docs/SetDefaultsPayload.md)
- - [SingleVisibilityUserResponse](docs/SingleVisibilityUserResponse.md)
+ - [ServerlessInferencedBillingHistoryDetailsResponseSchema](docs/ServerlessInferencedBillingHistoryDetailsResponseSchema.md)
- [SnapshotFields](docs/SnapshotFields.md)
- [SnapshotRestoreRequest](docs/SnapshotRestoreRequest.md)
- [SnapshotRetrieve](docs/SnapshotRetrieve.md)
@@ -555,53 +548,43 @@ Class | Method | HTTP request | Description
- [Snapshots](docs/Snapshots.md)
- [StartDeployment](docs/StartDeployment.md)
- [StartDeploymentPayload](docs/StartDeploymentPayload.md)
- - [StockVisibilityUserListResponse](docs/StockVisibilityUserListResponse.md)
- - [StockVisibilityUserPayload](docs/StockVisibilityUserPayload.md)
- [SubResourceGraphBillingDetailsMetrics](docs/SubResourceGraphBillingDetailsMetrics.md)
- [SubResourcesCostsResponseModel](docs/SubResourcesCostsResponseModel.md)
- [SubResourcesGraphBillingHistoryFields](docs/SubResourcesGraphBillingHistoryFields.md)
- [SubResourcesGraphResponseModel](docs/SubResourcesGraphResponseModel.md)
- - [Subscribeorunsubscribeupdatepayload](docs/Subscribeorunsubscribeupdatepayload.md)
- - [SuccessResponseModel](docs/SuccessResponseModel.md)
+ - [SubscribeOrUnsubscribeUpdatePayload](docs/SubscribeOrUnsubscribeUpdatePayload.md)
- [Template](docs/Template.md)
- [TemplateFields](docs/TemplateFields.md)
- [Templates](docs/Templates.md)
- - [TokenFields](docs/TokenFields.md)
- - [UpdateContractPayload](docs/UpdateContractPayload.md)
- - [UpdateDiscountsPayload](docs/UpdateDiscountsPayload.md)
- - [UpdateDiscountsStatusPayload](docs/UpdateDiscountsStatusPayload.md)
+ - [TokenBasedBillingHistoryResponse](docs/TokenBasedBillingHistoryResponse.md)
+ - [URIs](docs/URIs.md)
- [UpdateEnvironment](docs/UpdateEnvironment.md)
- - [UpdateGPU](docs/UpdateGPU.md)
- [UpdateKeypairName](docs/UpdateKeypairName.md)
- - [UpdateKeypairnameresponse](docs/UpdateKeypairnameresponse.md)
+ - [UpdateKeypairNameResponse](docs/UpdateKeypairNameResponse.md)
- [UpdateOrganizationPayload](docs/UpdateOrganizationPayload.md)
- [UpdateOrganizationResponseModel](docs/UpdateOrganizationResponseModel.md)
- [UpdateTemplate](docs/UpdateTemplate.md)
+ - [UpdateVolumeAttachmentPayload](docs/UpdateVolumeAttachmentPayload.md)
+ - [UpdateVolumePayload](docs/UpdateVolumePayload.md)
+ - [UpdateVolumeResponse](docs/UpdateVolumeResponse.md)
- [UserDefaultChoiceForUserFields](docs/UserDefaultChoiceForUserFields.md)
- [UserDefaultChoicesForUserResponse](docs/UserDefaultChoicesForUserResponse.md)
+ - [UserInfoPostPayload](docs/UserInfoPostPayload.md)
+ - [UserOrganizationsResponse](docs/UserOrganizationsResponse.md)
- [UserPermissionFields](docs/UserPermissionFields.md)
- - [UserTransferPayload](docs/UserTransferPayload.md)
- - [Userinfopostpayload](docs/Userinfopostpayload.md)
- [UsersInfoFields](docs/UsersInfoFields.md)
- [UsersInfoListResponse](docs/UsersInfoListResponse.md)
- - [VMUsageRequestPayload](docs/VMUsageRequestPayload.md)
- - [VMUsageResponse](docs/VMUsageResponse.md)
- [VNCURL](docs/VNCURL.md)
- [VNCURLFields](docs/VNCURLFields.md)
- - [VerifyApiKeyPayload](docs/VerifyApiKeyPayload.md)
- - [VerifyApiKeyResponseModel](docs/VerifyApiKeyResponseModel.md)
- - [VirtualMachineUsage](docs/VirtualMachineUsage.md)
- [Volume](docs/Volume.md)
- [VolumeAttachmentFields](docs/VolumeAttachmentFields.md)
- [VolumeFields](docs/VolumeFields.md)
- - [VolumeFieldsforInstance](docs/VolumeFieldsforInstance.md)
+ - [VolumeFieldsForInstance](docs/VolumeFieldsForInstance.md)
- [VolumeOverviewFields](docs/VolumeOverviewFields.md)
- - [VolumeStatusChangeFields](docs/VolumeStatusChangeFields.md)
- [VolumeTypes](docs/VolumeTypes.md)
- [Volumes](docs/Volumes.md)
- - [VolumesLastStatusChangeResponse](docs/VolumesLastStatusChangeResponse.md)
- - [WarningMailLogFields](docs/WarningMailLogFields.md)
- - [WarningMailLogResponse](docs/WarningMailLogResponse.md)
+ - [VolumesFields](docs/VolumesFields.md)
+ - [WorkloadBillingHistoryResponse](docs/WorkloadBillingHistoryResponse.md)
@@ -609,13 +592,6 @@ Class | Method | HTTP request | Description
Authentication schemes defined for the API:
-
-### accessToken
-
-- **Type**: API key
-- **API key parameter name**: Authorization
-- **Location**: HTTP header
-
### apiKey
diff --git a/docs/TokenFields.md b/docs/AccessTokenField.md
similarity index 51%
rename from docs/TokenFields.md
rename to docs/AccessTokenField.md
index 0e047db..27b8cbf 100644
--- a/docs/TokenFields.md
+++ b/docs/AccessTokenField.md
@@ -1,4 +1,4 @@
-# TokenFields
+# AccessTokenField
## Properties
@@ -6,25 +6,23 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**access_token** | **str** | | [optional]
-**id_token** | **str** | | [optional]
-**refresh_token** | **str** | | [optional]
## Example
```python
-from hyperstack.models.token_fields import TokenFields
+from hyperstack.models.access_token_field import AccessTokenField
# TODO update the JSON string below
json = "{}"
-# create an instance of TokenFields from a JSON string
-token_fields_instance = TokenFields.from_json(json)
+# create an instance of AccessTokenField from a JSON string
+access_token_field_instance = AccessTokenField.from_json(json)
# print the JSON string representation of the object
-print(TokenFields.to_json())
+print(AccessTokenField.to_json())
# convert the object into a dict
-token_fields_dict = token_fields_instance.to_dict()
-# create an instance of TokenFields from a dict
-token_fields_from_dict = TokenFields.from_dict(token_fields_dict)
+access_token_field_dict = access_token_field_instance.to_dict()
+# create an instance of AccessTokenField from a dict
+access_token_field_from_dict = AccessTokenField.from_dict(access_token_field_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/AddUpdateFlavorOrganizationPayload.md b/docs/AddUpdateFlavorOrganizationPayload.md
deleted file mode 100644
index fe97561..0000000
--- a/docs/AddUpdateFlavorOrganizationPayload.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# AddUpdateFlavorOrganizationPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**cpu** | **int** | |
-**description** | **str** | | [optional]
-**disk** | **int** | |
-**ephemeral** | **int** | | [optional]
-**gpu_count** | **int** | |
-**gpu_id** | **int** | |
-**is_public** | **bool** | |
-**labels** | **List[str]** | | [optional]
-**name** | **str** | |
-**openstack_id** | **str** | |
-**organizations** | **List[int]** | |
-**ram** | **float** | |
-**region_id** | **int** | |
-
-## Example
-
-```python
-from hyperstack.models.add_update_flavor_organization_payload import AddUpdateFlavorOrganizationPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of AddUpdateFlavorOrganizationPayload from a JSON string
-add_update_flavor_organization_payload_instance = AddUpdateFlavorOrganizationPayload.from_json(json)
-# print the JSON string representation of the object
-print(AddUpdateFlavorOrganizationPayload.to_json())
-
-# convert the object into a dict
-add_update_flavor_organization_payload_dict = add_update_flavor_organization_payload_instance.to_dict()
-# create an instance of AddUpdateFlavorOrganizationPayload from a dict
-add_update_flavor_organization_payload_from_dict = AddUpdateFlavorOrganizationPayload.from_dict(add_update_flavor_organization_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/AliveApi.md b/docs/AliveApi.md
index 8219b1a..dca6367 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
------------- | ------------- | -------------
[**get_alive**](AliveApi.md#get_alive) | **GET** /billing/alive | GET: Alive
+[**get_doc**](AliveApi.md#get_doc) | **GET** /billing/alive/doc |
# **get_alive**
@@ -12,8 +13,11 @@ 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
+* Api Key Authentication (apiKey):
```python
import hyperstack
@@ -26,6 +30,16 @@ configuration = hyperstack.Configuration(
host = "https://infrahub-api.nexgencloud.com/v1"
)
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
@@ -51,7 +65,76 @@ void (empty response body)
### Authorization
-No authorization required
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: Not defined
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_doc**
+> get_doc()
+
+
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.AliveApi(api_client)
+
+ try:
+ api_instance.get_doc()
+ except Exception as e:
+ print("Exception when calling AliveApi->get_doc: %s\n" % e)
+```
+
+
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
### HTTP request headers
diff --git a/docs/ApiKeyApi.md b/docs/ApiKeyApi.md
index 1d909ff..2c6b6fc 100644
--- a/docs/ApiKeyApi.md
+++ b/docs/ApiKeyApi.md
@@ -6,7 +6,7 @@ Method | HTTP request | Description
------------- | ------------- | -------------
[**delete_api_key**](ApiKeyApi.md#delete_api_key) | **DELETE** /api-key/{api_key_id} | Delete API Key
[**generate_api_key**](ApiKeyApi.md#generate_api_key) | **POST** /api-key/generate | Generate API Key
-[**retrieve_api_keys**](ApiKeyApi.md#retrieve_api_keys) | **GET** /api-key | Retrieve API Keys
+[**retrieve_api_key**](ApiKeyApi.md#retrieve_api_key) | **GET** /api-key | Retrieve API Keys
[**update_api_key**](ApiKeyApi.md#update_api_key) | **PUT** /api-key/{api_key_id} | Update API Key
@@ -20,7 +20,6 @@ Delete a specified API key by including the ID of the API key in the path.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -45,12 +44,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -81,7 +74,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -105,11 +98,10 @@ Name | Type | Description | Notes
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
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -124,16 +116,6 @@ configuration = hyperstack.Configuration(
host = "https://infrahub-api.nexgencloud.com/v1"
)
-# The client must configure the authentication and authorization parameters
-# in accordance with the API server security policy.
-# Examples for each auth method are provided below, use the example that
-# satisfies your auth use case.
-
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
@@ -165,7 +147,7 @@ Name | Type | Description | Notes
### Authorization
-[accessToken](../README.md#accessToken)
+No authorization required
### HTTP request headers
@@ -185,17 +167,16 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_api_keys**
-> GetApiKeysResponseModel retrieve_api_keys()
+# **retrieve_api_key**
+> GetApiKeysResponseModel retrieve_api_key()
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -220,12 +201,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -233,11 +208,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# Retrieve API Keys
- api_response = api_instance.retrieve_api_keys()
- print("The response of ApiKeyApi->retrieve_api_keys:\n")
+ api_response = api_instance.retrieve_api_key()
+ print("The response of ApiKeyApi->retrieve_api_key:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling ApiKeyApi->retrieve_api_keys: %s\n" % e)
+ print("Exception when calling ApiKeyApi->retrieve_api_key: %s\n" % e)
```
@@ -252,7 +227,7 @@ This endpoint does not need any parameter.
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -280,7 +255,6 @@ Updates the name and optionally the description of a specified API key. Include
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -306,12 +280,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -344,7 +312,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 4f721ae..0000000
--- a/docs/ApiKeyVerifyFields.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# ApiKeyVerifyFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**org_id** | **int** | | [optional]
-**sub** | **str** | | [optional]
-**user_id** | **int** | | [optional]
-**user_role** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.api_key_verify_fields import ApiKeyVerifyFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of ApiKeyVerifyFields from a JSON string
-api_key_verify_fields_instance = ApiKeyVerifyFields.from_json(json)
-# print the JSON string representation of the object
-print(ApiKeyVerifyFields.to_json())
-
-# convert the object into a dict
-api_key_verify_fields_dict = api_key_verify_fields_instance.to_dict()
-# create an instance of ApiKeyVerifyFields from a dict
-api_key_verify_fields_from_dict = ApiKeyVerifyFields.from_dict(api_key_verify_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/AssigningMemberRoleApi.md b/docs/AssigningMemberRoleApi.md
index 1ed6164..575f351 100644
--- a/docs/AssigningMemberRoleApi.md
+++ b/docs/AssigningMemberRoleApi.md
@@ -4,21 +4,20 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**assign_rbac_role**](AssigningMemberRoleApi.md#assign_rbac_role) | **PUT** /auth/users/{user_id}/assign-roles | Assign RBAC Role
+[**assign_rbac_role_to_user**](AssigningMemberRoleApi.md#assign_rbac_role_to_user) | **PUT** /auth/users/{user_id}/assign-roles | Assign RBAC Role
[**remove_rbac_role_from_user**](AssigningMemberRoleApi.md#remove_rbac_role_from_user) | **DELETE** /auth/users/{user_id}/roles | Remove RBAC Role From User
-# **assign_rbac_role**
-> RbacRoleDetailResponseModel assign_rbac_role(user_id, payload)
+# **assign_rbac_role_to_user**
+> RbacRoleDetailResponseModel assign_rbac_role_to_user(user_id, 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -44,12 +43,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -59,11 +52,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# Assign RBAC Role
- api_response = api_instance.assign_rbac_role(user_id, payload)
- print("The response of AssigningMemberRoleApi->assign_rbac_role:\n")
+ api_response = api_instance.assign_rbac_role_to_user(user_id, payload)
+ print("The response of AssigningMemberRoleApi->assign_rbac_role_to_user:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling AssigningMemberRoleApi->assign_rbac_role: %s\n" % e)
+ print("Exception when calling AssigningMemberRoleApi->assign_rbac_role_to_user: %s\n" % e)
```
@@ -82,7 +75,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -106,12 +99,11 @@ Name | Type | Description | Notes
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -136,12 +128,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -172,7 +158,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 87878a1..a8c1703 100644
--- a/docs/AttachVolumeFields.md
+++ b/docs/AttachVolumeFields.md
@@ -6,8 +6,10 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**created_at** | **datetime** | | [optional]
+**device** | **str** | | [optional]
**id** | **int** | | [optional]
**instance_id** | **int** | | [optional]
+**protected** | **bool** | | [optional]
**status** | **str** | | [optional]
**volume_id** | **int** | | [optional]
diff --git a/docs/AttachVolumesPayload.md b/docs/AttachVolumesPayload.md
index 20ba972..69db7f8 100644
--- a/docs/AttachVolumesPayload.md
+++ b/docs/AttachVolumesPayload.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**protected** | **bool** | | [optional] [default to False]
**volume_ids** | **List[int]** | | [optional]
## Example
diff --git a/docs/AttachmentsFieldsForVolume.md b/docs/AttachmentsFieldsForVolume.md
new file mode 100644
index 0000000..626761d
--- /dev/null
+++ b/docs/AttachmentsFieldsForVolume.md
@@ -0,0 +1,33 @@
+# AttachmentsFieldsForVolume
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**device** | **str** | | [optional]
+**id** | **int** | | [optional]
+**instance_id** | **int** | | [optional]
+**protected** | **bool** | | [optional]
+**status** | **str** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.attachments_fields_for_volume import AttachmentsFieldsForVolume
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of AttachmentsFieldsForVolume from a JSON string
+attachments_fields_for_volume_instance = AttachmentsFieldsForVolume.from_json(json)
+# print the JSON string representation of the object
+print(AttachmentsFieldsForVolume.to_json())
+
+# convert the object into a dict
+attachments_fields_for_volume_dict = attachments_fields_for_volume_instance.to_dict()
+# create an instance of AttachmentsFieldsForVolume from a dict
+attachments_fields_for_volume_from_dict = AttachmentsFieldsForVolume.from_dict(attachments_fields_for_volume_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/Attributes.md b/docs/Attributes.md
new file mode 100644
index 0000000..519576d
--- /dev/null
+++ b/docs/Attributes.md
@@ -0,0 +1,34 @@
+# Attributes
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**base_model** | **str** | | [optional]
+**base_model_display_name** | **str** | | [optional]
+**infrahub_id** | **int** | | [optional]
+**lora_adapter** | **str** | | [optional]
+**resource_name** | **str** | | [optional]
+**status** | **str** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.attributes import Attributes
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of Attributes from a JSON string
+attributes_instance = Attributes.from_json(json)
+# print the JSON string representation of the object
+print(Attributes.to_json())
+
+# convert the object into a dict
+attributes_dict = attributes_instance.to_dict()
+# create an instance of Attributes from a dict
+attributes_from_dict = Attributes.from_dict(attributes_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/AuthApi.md b/docs/AuthApi.md
index 38cff9b..a255856 100644
--- a/docs/AuthApi.md
+++ b/docs/AuthApi.md
@@ -4,20 +4,339 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
+[**change_organization_for_token**](AuthApi.md#change_organization_for_token) | **GET** /auth/token/change-org/{org_id} |
+[**disable_mfa**](AuthApi.md#disable_mfa) | **GET** /auth/me/mfa/disable |
+[**get_user_mfa_status**](AuthApi.md#get_user_mfa_status) | **GET** /auth/me/mfa | Get MFA status for authenticated user
+[**get_user_organizations**](AuthApi.md#get_user_organizations) | **GET** /auth/me/organizations | Get User Organizations
[**retrieve_authenticated_user_details**](AuthApi.md#retrieve_authenticated_user_details) | **GET** /auth/me | Retrieve Authenticated User Details
+# **change_organization_for_token**
+> AuthGetTokenResponseModel change_organization_for_token(org_id)
+
+
+
+Change the organization associated with the current token. This is useful for users who have access to multiple organizations.
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.auth_get_token_response_model import AuthGetTokenResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.AuthApi(api_client)
+ org_id = 56 # int |
+
+ try:
+ api_response = api_instance.change_organization_for_token(org_id)
+ print("The response of AuthApi->change_organization_for_token:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling AuthApi->change_organization_for_token: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **org_id** | **int**| |
+
+### Return type
+
+[**AuthGetTokenResponseModel**](AuthGetTokenResponseModel.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **disable_mfa**
+> CommonResponseModel disable_mfa()
+
+
+
+Disable Multi-Factor Authentication (MFA) for the currently authenticated user. This endpoint is used to turn off MFA.
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.common_response_model import CommonResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.AuthApi(api_client)
+
+ try:
+ api_response = api_instance.disable_mfa()
+ print("The response of AuthApi->disable_mfa:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling AuthApi->disable_mfa: %s\n" % e)
+```
+
+
+
+### 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
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | MFA Disabled | - |
+**401** | Unauthorized | - |
+**404** | User not found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_mfa_status**
+> MFAStatusResponse get_user_mfa_status()
+
+Get MFA status for authenticated user
+
+Retrieve the Multi-Factor Authentication (MFA) status for the currentlyauthenticated user. Includes whether MFA is enabled.
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.mfa_status_response import MFAStatusResponse
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.AuthApi(api_client)
+
+ try:
+ # Get MFA status for authenticated user
+ api_response = api_instance.get_user_mfa_status()
+ print("The response of AuthApi->get_user_mfa_status:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling AuthApi->get_user_mfa_status: %s\n" % e)
+```
+
+
+
+### 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
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | MFA Status | - |
+**401** | Unauthorized | - |
+**404** | User not found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_organizations**
+> UserOrganizationsResponse get_user_organizations()
+
+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
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.user_organizations_response import UserOrganizationsResponse
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.AuthApi(api_client)
+
+ try:
+ # Get User Organizations
+ api_response = api_instance.get_user_organizations()
+ print("The response of AuthApi->get_user_organizations:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling AuthApi->get_user_organizations: %s\n" % e)
+```
+
+
+
+### 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
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
# **retrieve_authenticated_user_details**
> AuthUserInfoResponseModel retrieve_authenticated_user_details()
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -42,12 +361,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -74,7 +387,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 f307a47..3231eed 100644
--- a/docs/AuthGetTokenResponseModel.md
+++ b/docs/AuthGetTokenResponseModel.md
@@ -5,10 +5,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**first_login** | **bool** | | [optional]
**message** | **str** | | [optional]
**status** | **bool** | | [optional]
-**token** | [**TokenFields**](TokenFields.md) | | [optional]
+**token** | [**AccessTokenField**](AccessTokenField.md) | | [optional]
## Example
diff --git a/docs/AuthRequestLoginFields.md b/docs/AuthRequestLoginFields.md
deleted file mode 100644
index ff3a326..0000000
--- a/docs/AuthRequestLoginFields.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# AuthRequestLoginFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**authorization_url** | **str** | | [optional]
-**session_id** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.auth_request_login_fields import AuthRequestLoginFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of AuthRequestLoginFields from a JSON string
-auth_request_login_fields_instance = AuthRequestLoginFields.from_json(json)
-# print the JSON string representation of the object
-print(AuthRequestLoginFields.to_json())
-
-# convert the object into a dict
-auth_request_login_fields_dict = auth_request_login_fields_instance.to_dict()
-# create an instance of AuthRequestLoginFields from a dict
-auth_request_login_fields_from_dict = AuthRequestLoginFields.from_dict(auth_request_login_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/AuthRequestLoginResponseModel.md b/docs/AuthRequestLoginResponseModel.md
deleted file mode 100644
index de76e83..0000000
--- a/docs/AuthRequestLoginResponseModel.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# AuthRequestLoginResponseModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**data** | [**AuthRequestLoginFields**](AuthRequestLoginFields.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.auth_request_login_response_model import AuthRequestLoginResponseModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of AuthRequestLoginResponseModel from a JSON string
-auth_request_login_response_model_instance = AuthRequestLoginResponseModel.from_json(json)
-# print the JSON string representation of the object
-print(AuthRequestLoginResponseModel.to_json())
-
-# convert the object into a dict
-auth_request_login_response_model_dict = auth_request_login_response_model_instance.to_dict()
-# create an instance of AuthRequestLoginResponseModel from a dict
-auth_request_login_response_model_from_dict = AuthRequestLoginResponseModel.from_dict(auth_request_login_response_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/BetaAccessApi.md b/docs/BetaAccessApi.md
new file mode 100644
index 0000000..0f712cf
--- /dev/null
+++ b/docs/BetaAccessApi.md
@@ -0,0 +1,257 @@
+# hyperstack.BetaAccessApi
+
+All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**create_a_beta_access_request**](BetaAccessApi.md#create_a_beta_access_request) | **POST** /auth/beta-access/requests | Create a new beta access request
+[**get_beta_access_status**](BetaAccessApi.md#get_beta_access_status) | **GET** /auth/beta-access/requests | Check the status of all beta access requests
+[**get_beta_access_status2**](BetaAccessApi.md#get_beta_access_status2) | **GET** /auth/beta-access/requests/{program} | Check the status of beta access requests
+
+
+# **create_a_beta_access_request**
+> BetaAccessRequestResponseModel create_a_beta_access_request(payload)
+
+Create a new beta access request
+
+Creates a new beta access request for the current user
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.beta_access_request_payload import BetaAccessRequestPayload
+from hyperstack.models.beta_access_request_response_model import BetaAccessRequestResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BetaAccessApi(api_client)
+ payload = hyperstack.BetaAccessRequestPayload() # BetaAccessRequestPayload |
+
+ try:
+ # Create a new beta access request
+ api_response = api_instance.create_a_beta_access_request(payload)
+ print("The response of BetaAccessApi->create_a_beta_access_request:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BetaAccessApi->create_a_beta_access_request: %s\n" % e)
+```
+
+
+
+### 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
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | Created | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_beta_access_status**
+> BetaAccessStatusResponseModel get_beta_access_status()
+
+Check the status of all beta access requests
+
+Check the status of all beta access requests.
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.beta_access_status_response_model import BetaAccessStatusResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BetaAccessApi(api_client)
+
+ try:
+ # Check the status of all beta access requests
+ api_response = api_instance.get_beta_access_status()
+ print("The response of BetaAccessApi->get_beta_access_status:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BetaAccessApi->get_beta_access_status: %s\n" % e)
+```
+
+
+
+### 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
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_beta_access_status2**
+> BetaAccessStatusResponseModel get_beta_access_status2(program)
+
+Check the status of beta access requests
+
+Check the status of a particular beta access requests.
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.beta_access_status_response_model import BetaAccessStatusResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BetaAccessApi(api_client)
+ program = 'program_example' # str |
+
+ try:
+ # Check the status of beta access requests
+ api_response = api_instance.get_beta_access_status2(program)
+ print("The response of BetaAccessApi->get_beta_access_status2:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BetaAccessApi->get_beta_access_status2: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **program** | **str**| |
+
+### Return type
+
+[**BetaAccessStatusResponseModel**](BetaAccessStatusResponseModel.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/BetaAccessRequestFields.md b/docs/BetaAccessRequestFields.md
new file mode 100644
index 0000000..e3b0e02
--- /dev/null
+++ b/docs/BetaAccessRequestFields.md
@@ -0,0 +1,34 @@
+# BetaAccessRequestFields
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**created_at** | **datetime** | When the request was made | [optional]
+**id** | **int** | Unique identifier for the request | [optional]
+**program_id** | **int** | ID of the beta program | [optional]
+**program_name** | **str** | Name of the beta program | [optional]
+**status** | **str** | Status of the request | [optional]
+**user_id** | **int** | ID of the user who made the request | [optional]
+
+## Example
+
+```python
+from hyperstack.models.beta_access_request_fields import BetaAccessRequestFields
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BetaAccessRequestFields from a JSON string
+beta_access_request_fields_instance = BetaAccessRequestFields.from_json(json)
+# print the JSON string representation of the object
+print(BetaAccessRequestFields.to_json())
+
+# convert the object into a dict
+beta_access_request_fields_dict = beta_access_request_fields_instance.to_dict()
+# create an instance of BetaAccessRequestFields from a dict
+beta_access_request_fields_from_dict = BetaAccessRequestFields.from_dict(beta_access_request_fields_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BetaAccessRequestPayload.md b/docs/BetaAccessRequestPayload.md
new file mode 100644
index 0000000..405aa0b
--- /dev/null
+++ b/docs/BetaAccessRequestPayload.md
@@ -0,0 +1,30 @@
+# BetaAccessRequestPayload
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**metadata** | **object** | Optional metadata for the request | [optional]
+**program** | **str** | Name of the beta program |
+
+## Example
+
+```python
+from hyperstack.models.beta_access_request_payload import BetaAccessRequestPayload
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BetaAccessRequestPayload from a JSON string
+beta_access_request_payload_instance = BetaAccessRequestPayload.from_json(json)
+# print the JSON string representation of the object
+print(BetaAccessRequestPayload.to_json())
+
+# convert the object into a dict
+beta_access_request_payload_dict = beta_access_request_payload_instance.to_dict()
+# create an instance of BetaAccessRequestPayload from a dict
+beta_access_request_payload_from_dict = BetaAccessRequestPayload.from_dict(beta_access_request_payload_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BetaAccessRequestResponseModel.md b/docs/BetaAccessRequestResponseModel.md
new file mode 100644
index 0000000..d275015
--- /dev/null
+++ b/docs/BetaAccessRequestResponseModel.md
@@ -0,0 +1,31 @@
+# BetaAccessRequestResponseModel
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**beta_access_request** | [**BetaAccessRequestFields**](BetaAccessRequestFields.md) | | [optional]
+**message** | **str** | | [optional]
+**status** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.beta_access_request_response_model import BetaAccessRequestResponseModel
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BetaAccessRequestResponseModel from a JSON string
+beta_access_request_response_model_instance = BetaAccessRequestResponseModel.from_json(json)
+# print the JSON string representation of the object
+print(BetaAccessRequestResponseModel.to_json())
+
+# convert the object into a dict
+beta_access_request_response_model_dict = beta_access_request_response_model_instance.to_dict()
+# create an instance of BetaAccessRequestResponseModel from a dict
+beta_access_request_response_model_from_dict = BetaAccessRequestResponseModel.from_dict(beta_access_request_response_model_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BetaAccessStatusItem.md b/docs/BetaAccessStatusItem.md
new file mode 100644
index 0000000..3a999f4
--- /dev/null
+++ b/docs/BetaAccessStatusItem.md
@@ -0,0 +1,31 @@
+# BetaAccessStatusItem
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**program_name** | **str** | Name of the beta program | [optional]
+**request_date** | **datetime** | When the request was made | [optional]
+**status** | **str** | Status of the request (requested, approved, denied, revoked) | [optional]
+
+## Example
+
+```python
+from hyperstack.models.beta_access_status_item import BetaAccessStatusItem
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BetaAccessStatusItem from a JSON string
+beta_access_status_item_instance = BetaAccessStatusItem.from_json(json)
+# print the JSON string representation of the object
+print(BetaAccessStatusItem.to_json())
+
+# convert the object into a dict
+beta_access_status_item_dict = beta_access_status_item_instance.to_dict()
+# create an instance of BetaAccessStatusItem from a dict
+beta_access_status_item_from_dict = BetaAccessStatusItem.from_dict(beta_access_status_item_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BetaAccessStatusResponseModel.md b/docs/BetaAccessStatusResponseModel.md
new file mode 100644
index 0000000..71a68ed
--- /dev/null
+++ b/docs/BetaAccessStatusResponseModel.md
@@ -0,0 +1,31 @@
+# BetaAccessStatusResponseModel
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**beta_access_requests** | [**List[BetaAccessStatusItem]**](BetaAccessStatusItem.md) | List of beta access requests | [optional]
+**message** | **str** | | [optional]
+**status** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.beta_access_status_response_model import BetaAccessStatusResponseModel
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BetaAccessStatusResponseModel from a JSON string
+beta_access_status_response_model_instance = BetaAccessStatusResponseModel.from_json(json)
+# print the JSON string representation of the object
+print(BetaAccessStatusResponseModel.to_json())
+
+# convert the object into a dict
+beta_access_status_response_model_dict = beta_access_status_response_model_instance.to_dict()
+# create an instance of BetaAccessStatusResponseModel from a dict
+beta_access_status_response_model_from_dict = BetaAccessStatusResponseModel.from_dict(beta_access_status_response_model_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BillingApi.md b/docs/BillingApi.md
index 4dbbe5a..2edeca2 100644
--- a/docs/BillingApi.md
+++ b/docs/BillingApi.md
@@ -4,42 +4,1640 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**get_all_thresholds_for_organization**](BillingApi.md#get_all_thresholds_for_organization) | **GET** /billing/billing/threshold | GET: All Thresholds for Organization
-[**get_billing_usage**](BillingApi.md#get_billing_usage) | **GET** /billing/billing/usage | GET: Billing usage
[**get_last_day_cost**](BillingApi.md#get_last_day_cost) | **GET** /billing/billing/last-day-cost | GET: Last Day Cost
-[**retrieve_billing_history_for_a_specific_billing_cycle**](BillingApi.md#retrieve_billing_history_for_a_specific_billing_cycle) | **GET** /billing/billing/history | Retrieve Billing History for a specific Billing Cycle
-[**retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle**](BillingApi.md#retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle) | **GET** /billing/billing/history/snapshot/{snapshot_id} | 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**](BillingApi.md#retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle) | **GET** /billing/billing/history/virtual-machine/{vm_id} | Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
-[**retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle**](BillingApi.md#retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle) | **GET** /billing/billing/history/volume/{volume_id} | Retrieve Billing History of a Specific Volume for a specific Billing Cycle
-[**retrieve_billing_history_of_contract_for_a_specific_billing_cycle**](BillingApi.md#retrieve_billing_history_of_contract_for_a_specific_billing_cycle) | **GET** /billing/billing/history/contract | Retrieve Billing History of Contract for a specific Billing Cycle
-[**retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle**](BillingApi.md#retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle) | **GET** /billing/billing/history/snapshot | Retrieve Billing History of Snapshot for a specific Billing Cycle
-[**retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle**](BillingApi.md#retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle) | **GET** /billing/billing/history/virtual-machine | Retrieve Billing History of Virtual Machine for a specific Billing Cycle
-[**retrieve_billing_history_of_volume_for_a_specific_billing_cycle**](BillingApi.md#retrieve_billing_history_of_volume_for_a_specific_billing_cycle) | **GET** /billing/billing/history/volume | Retrieve Billing History of Volume for a specific Billing Cycle
-[**retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle**](BillingApi.md#retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle) | **GET** /billing/billing/history/snapshot/{snapshot_id}/graph | Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
-[**retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle**](BillingApi.md#retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle) | **GET** /billing/billing/history/virtual-machine/{vm_id}/graph | Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
-[**retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle**](BillingApi.md#retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle) | **GET** /billing/billing/history/volume/{volume_id}/graph | Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
-[**retrieve_sub_resources_historical_cost_datapoints_of_a_virtual**](BillingApi.md#retrieve_sub_resources_historical_cost_datapoints_of_a_virtual) | **GET** /billing/billing/virtual-machine/{vm_id}/sub-resource/graph | Retrieve Sub-Resources Historical Cost datapoints of a Virtual
-[**retrieve_total_costs_and_non_discount_costs_for_sub_resources**](BillingApi.md#retrieve_total_costs_and_non_discount_costs_for_sub_resources) | **GET** /billing/billing/virtual-machine/{vm_id}/sub-resource | Retrieve Total Costs and Non Discount Costs for Sub Resources
-[**retrieve_vm_billing_events_history**](BillingApi.md#retrieve_vm_billing_events_history) | **GET** /billing/billing/virtual-machine/{vm_id}/billing-events | Retrieve VM billing events history
-[**retrieve_volume_billing_events_history**](BillingApi.md#retrieve_volume_billing_events_history) | **GET** /billing/billing/volume/{volume_id}/billing-events | Retrieve Volume billing events history
-[**update_subscribe_or_unsubscribe_notification_threshold**](BillingApi.md#update_subscribe_or_unsubscribe_notification_threshold) | **PUT** /billing/billing/threshold/{threshold_id} | Update: Subscribe or Unsubscribe Notification Threshold
-
-
-# **get_all_thresholds_for_organization**
-> Organizationthresholdsresponse get_all_thresholds_for_organization()
+[**get_organization_threshold**](BillingApi.md#get_organization_threshold) | **GET** /billing/billing/threshold | GET: All Thresholds for Organization
+[**get_usage2**](BillingApi.md#get_usage2) | **GET** /billing/billing/usage | GET: Billing usage
+[**get_user_billing_bucket_details_graph**](BillingApi.md#get_user_billing_bucket_details_graph) | **GET** /billing/billing/history/bucket/{bucket_id}/graph | Retrieve hourly cost datapoints of a Specific Bucket for a specific billing cycle
+[**get_user_billing_cluster_details_graph**](BillingApi.md#get_user_billing_cluster_details_graph) | **GET** /billing/billing/history/cluster/{cluster_id}/graph | Retrieve hourly cost datapoints of a specific Cluster for a specific billing cycle
+[**get_user_billing_data_synthesis_details_graph**](BillingApi.md#get_user_billing_data_synthesis_details_graph) | **GET** /billing/billing/history/data_synthesis/{resource_id}/graph | Retrieve hourly cost datapoints of a Specific Data Synthesis for a specific
+[**get_user_billing_fine_tuning_details_graph**](BillingApi.md#get_user_billing_fine_tuning_details_graph) | **GET** /billing/billing/history/fine_tuning/{resource_id}/graph | Retrieve hourly cost datapoints of a Specific Fine Tuning for a specific billing cycle
+[**get_user_billing_history2**](BillingApi.md#get_user_billing_history2) | **GET** /billing/billing/history | Retrieve Billing History for a specific Billing Cycle
+[**get_user_billing_history_bucket2**](BillingApi.md#get_user_billing_history_bucket2) | **GET** /billing/billing/history/bucket | Retrieve Billing History of Volume for a specific Billing Cycle
+[**get_user_billing_history_bucket_details**](BillingApi.md#get_user_billing_history_bucket_details) | **GET** /billing/billing/history/bucket/{bucket_id} | Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
+[**get_user_billing_history_cluster**](BillingApi.md#get_user_billing_history_cluster) | **GET** /billing/billing/history/cluster | Retrieve Billing History of Clusters for a specific Billing Cycle
+[**get_user_billing_history_cluster_details**](BillingApi.md#get_user_billing_history_cluster_details) | **GET** /billing/billing/history/cluster/{cluster_id} | Retrieve Billing History of a Specific Cluster for a specific Billing Cycle
+[**get_user_billing_history_contract**](BillingApi.md#get_user_billing_history_contract) | **GET** /billing/billing/history/contract | Retrieve Billing History of Contract for a specific Billing Cycle
+[**get_user_billing_history_data_synthesis**](BillingApi.md#get_user_billing_history_data_synthesis) | **GET** /billing/billing/history/data_synthesis | Retrieve Billing History of data synthesis for a specific Billing Cycle
+[**get_user_billing_history_data_synthesis_details**](BillingApi.md#get_user_billing_history_data_synthesis_details) | **GET** /billing/billing/history/data_synthesis/{resource_id} |
+[**get_user_billing_history_fine_tuning**](BillingApi.md#get_user_billing_history_fine_tuning) | **GET** /billing/billing/history/fine_tuning | Retrieve Billing History of model evaluation for a specific Billing Cycle
+[**get_user_billing_history_fine_tuning_details**](BillingApi.md#get_user_billing_history_fine_tuning_details) | **GET** /billing/billing/history/fine_tuning/{resource_id} | Retrieve Billing History of a Specific Fine Tuning for a specific Billing Cycle
+[**get_user_billing_history_model_evaluation**](BillingApi.md#get_user_billing_history_model_evaluation) | **GET** /billing/billing/history/model_evaluation | Retrieve Billing History of model evaluation for a specific Billing Cycle
+[**get_user_billing_history_model_evaluation_details**](BillingApi.md#get_user_billing_history_model_evaluation_details) | **GET** /billing/billing/history/model_evaluation/{resource_id} |
+[**get_user_billing_history_serverless_inference**](BillingApi.md#get_user_billing_history_serverless_inference) | **GET** /billing/billing/history/serverless_inference | Retrieve Billing History of serverless inference for a specific Billing Cycle
+[**get_user_billing_history_serverless_inference_details**](BillingApi.md#get_user_billing_history_serverless_inference_details) | **GET** /billing/billing/history/serverless_inference/{resource_id} |
+[**get_user_billing_history_snapshot**](BillingApi.md#get_user_billing_history_snapshot) | **GET** /billing/billing/history/snapshot | Retrieve Billing History of Snapshot for a specific Billing Cycle
+[**get_user_billing_history_snapshot_details**](BillingApi.md#get_user_billing_history_snapshot_details) | **GET** /billing/billing/history/snapshot/{snapshot_id} | Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
+[**get_user_billing_history_vm2**](BillingApi.md#get_user_billing_history_vm2) | **GET** /billing/billing/history/virtual-machine | Retrieve Billing History of Virtual Machine for a specific Billing Cycle
+[**get_user_billing_history_vm_details2**](BillingApi.md#get_user_billing_history_vm_details2) | **GET** /billing/billing/history/virtual-machine/{vm_id} | Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
+[**get_user_billing_history_vm_sub_resource_graph2**](BillingApi.md#get_user_billing_history_vm_sub_resource_graph2) | **GET** /billing/billing/virtual-machine/{vm_id}/sub-resource/graph | Retrieve Sub-Resources Historical Cost datapoints of a Virtual
+[**get_user_billing_history_vm_total_costs**](BillingApi.md#get_user_billing_history_vm_total_costs) | **GET** /billing/billing/virtual-machine/{vm_id}/sub-resource | Retrieve Total Costs and Non Discount Costs for Sub Resources
+[**get_user_billing_history_volume2**](BillingApi.md#get_user_billing_history_volume2) | **GET** /billing/billing/history/volume | Retrieve Billing History of Volume for a specific Billing Cycle
+[**get_user_billing_history_volume_details2**](BillingApi.md#get_user_billing_history_volume_details2) | **GET** /billing/billing/history/volume/{volume_id} | Retrieve Billing History of a Specific Volume for a specific Billing Cycle
+[**get_user_billing_model_evaluation_details_graph**](BillingApi.md#get_user_billing_model_evaluation_details_graph) | **GET** /billing/billing/history/model_evaluation/{resource_id}/graph | Retrieve hourly cost datapoints of a Specific Model Evaluation for a specific
+[**get_user_billing_serverless_inference_details_graph**](BillingApi.md#get_user_billing_serverless_inference_details_graph) | **GET** /billing/billing/history/serverless_inference/{resource_id}/graph | Retrieve hourly cost datapoints of a Specific Serverless Inference for a specific
+[**get_user_billing_snapshot_details_graph**](BillingApi.md#get_user_billing_snapshot_details_graph) | **GET** /billing/billing/history/snapshot/{snapshot_id}/graph | Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
+[**get_user_billing_vm_details_graph2**](BillingApi.md#get_user_billing_vm_details_graph2) | **GET** /billing/billing/history/virtual-machine/{vm_id}/graph | Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
+[**get_user_billing_volume_details_graph**](BillingApi.md#get_user_billing_volume_details_graph) | **GET** /billing/billing/history/volume/{volume_id}/graph | Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
+[**get_user_vm_billing_events**](BillingApi.md#get_user_vm_billing_events) | **GET** /billing/billing/virtual-machine/{vm_id}/billing-events | Retrieve VM billing events history
+[**get_user_volume_billing_events**](BillingApi.md#get_user_volume_billing_events) | **GET** /billing/billing/volume/{volume_id}/billing-events | Retrieve Volume billing events history
+[**put_organization_threshold**](BillingApi.md#put_organization_threshold) | **PUT** /billing/billing/threshold/{threshold_id} | Update: Subscribe or Unsubscribe Notification Threshold
+
+
+# **get_last_day_cost**
+> LastDayCostResponse get_last_day_cost()
+
+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
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.last_day_cost_response import LastDayCostResponse
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+
+ try:
+ # GET: Last Day Cost
+ api_response = api_instance.get_last_day_cost()
+ print("The response of BillingApi->get_last_day_cost:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_last_day_cost: %s\n" % e)
+```
+
+
+
+### 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
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_organization_threshold**
+> OrganizationThresholdsResponse get_organization_threshold()
GET: All Thresholds for Organization
-Retrieve all the notification thresholds for an organization.
+Retrieve all the notification thresholds for an organization.
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.organization_thresholds_response import OrganizationThresholdsResponse
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+
+ try:
+ # GET: All Thresholds for Organization
+ api_response = api_instance.get_organization_threshold()
+ print("The response of BillingApi->get_organization_threshold:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_organization_threshold: %s\n" % e)
+```
+
+
+
+### 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
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_usage2**
+> BillingMetricesResponse get_usage2(deleted=deleted, environment=environment)
+
+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/)
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.billing_metrices_response import BillingMetricesResponse
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+ deleted = 'deleted_example' # str | `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`) (optional)
+ environment = 'environment_example' # str | Filter resources by environment ID or Name (optional)
+
+ try:
+ # GET: Billing usage
+ api_response = api_instance.get_usage2(deleted=deleted, environment=environment)
+ print("The response of BillingApi->get_usage2:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_usage2: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **deleted** | **str**| `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`) | [optional]
+ **environment** | **str**| Filter resources by environment ID or Name | [optional]
+
+### Return type
+
+[**BillingMetricesResponse**](BillingMetricesResponse.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_billing_bucket_details_graph**
+> ResourceLevelGraphBillingDetailsBucket get_user_billing_bucket_details_graph(bucket_id, start_date=start_date, end_date=end_date)
+
+Retrieve hourly cost datapoints of a Specific Bucket for a specific billing cycle
+
+User will recieve hourly cost datapoints for a Bucket for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.resource_level_graph_billing_details_bucket import ResourceLevelGraphBillingDetailsBucket
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+ bucket_id = 56 # int |
+ start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+
+ try:
+ # Retrieve hourly cost datapoints of a Specific Bucket for a specific billing cycle
+ api_response = api_instance.get_user_billing_bucket_details_graph(bucket_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_bucket_details_graph:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_user_billing_bucket_details_graph: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **bucket_id** | **int**| |
+ **start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| 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
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_billing_cluster_details_graph**
+> ResourceLevelClusterGraphBillingDetailsResponseModel get_user_billing_cluster_details_graph(cluster_id, start_date=start_date, end_date=end_date)
+
+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
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.resource_level_cluster_graph_billing_details_response_model import ResourceLevelClusterGraphBillingDetailsResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+ cluster_id = 56 # int |
+ start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+
+ try:
+ # Retrieve hourly cost datapoints of a specific Cluster for a specific billing cycle
+ api_response = api_instance.get_user_billing_cluster_details_graph(cluster_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_cluster_details_graph:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_user_billing_cluster_details_graph: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **cluster_id** | **int**| |
+ **start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| 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
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_billing_data_synthesis_details_graph**
+> DataSynthesisBillingHistoryDetailsResponseSchema get_user_billing_data_synthesis_details_graph(resource_id, start_date=start_date, end_date=end_date)
+
+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
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.data_synthesis_billing_history_details_response_schema import DataSynthesisBillingHistoryDetailsResponseSchema
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+ resource_id = 56 # int |
+ start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+
+ try:
+ # Retrieve hourly cost datapoints of a Specific Data Synthesis for a specific
+ api_response = api_instance.get_user_billing_data_synthesis_details_graph(resource_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_data_synthesis_details_graph:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_user_billing_data_synthesis_details_graph: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **resource_id** | **int**| |
+ **start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| 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
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_billing_fine_tuning_details_graph**
+> ResourceLevelVolumeGraphBillingDetailsResponseModel get_user_billing_fine_tuning_details_graph(resource_id, start_date=start_date, end_date=end_date)
+
+Retrieve hourly cost datapoints of a Specific Fine Tuning for a specific billing cycle
+
+User will recieve hourly cost datapoints for a Fine Tunings for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.resource_level_volume_graph_billing_details_response_model import ResourceLevelVolumeGraphBillingDetailsResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+ resource_id = 56 # int |
+ start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+
+ try:
+ # Retrieve hourly cost datapoints of a Specific Fine Tuning for a specific billing cycle
+ api_response = api_instance.get_user_billing_fine_tuning_details_graph(resource_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_fine_tuning_details_graph:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_user_billing_fine_tuning_details_graph: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **resource_id** | **int**| |
+ **start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| 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
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_billing_history2**
+> OrganizationLevelBillingHistoryResponseModel get_user_billing_history2(start_date=start_date, end_date=end_date, graph=graph)
+
+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'
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.organization_level_billing_history_response_model import OrganizationLevelBillingHistoryResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+ start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ graph = 'graph_example' # str | Set this value to \"true\" for getting graph value (optional)
+
+ try:
+ # Retrieve Billing History for a specific Billing Cycle
+ api_response = api_instance.get_user_billing_history2(start_date=start_date, end_date=end_date, graph=graph)
+ print("The response of BillingApi->get_user_billing_history2:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_user_billing_history2: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **graph** | **str**| Set this value to \"true\" for getting graph value | [optional]
+
+### Return type
+
+[**OrganizationLevelBillingHistoryResponseModel**](OrganizationLevelBillingHistoryResponseModel.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_billing_history_bucket2**
+> ResourceLevelBucketBillingHistoryResponseModel get_user_billing_history_bucket2(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
+
+Retrieve Billing History of Volume for a specific Billing Cycle
+
+User will recieve 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
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.resource_level_bucket_billing_history_response_model import ResourceLevelBucketBillingHistoryResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+ start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ search = 'search_example' # str | Search by resource \"Name\" or \"ID\" (optional)
+ per_page = 56 # int | Number of items to return per page (optional)
+ page = 56 # int | Page number (optional)
+
+ try:
+ # Retrieve Billing History of Volume for a specific Billing Cycle
+ api_response = api_instance.get_user_billing_history_bucket2(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
+ print("The response of BillingApi->get_user_billing_history_bucket2:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_user_billing_history_bucket2: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **search** | **str**| Search by resource \"Name\" or \"ID\" | [optional]
+ **per_page** | **int**| Number of items to return per page | [optional]
+ **page** | **int**| Page number | [optional]
+
+### Return type
+
+[**ResourceLevelBucketBillingHistoryResponseModel**](ResourceLevelBucketBillingHistoryResponseModel.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_billing_history_bucket_details**
+> ResourceLevelBucketBillingDetailsResponseModel get_user_billing_history_bucket_details(bucket_id, start_date=start_date, end_date=end_date)
+
+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
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.resource_level_bucket_billing_details_response_model import ResourceLevelBucketBillingDetailsResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+ bucket_id = 56 # int |
+ start_date = 'start_date_example' # str | Datetime should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | Datetime should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+
+ try:
+ # Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
+ api_response = api_instance.get_user_billing_history_bucket_details(bucket_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_history_bucket_details:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_user_billing_history_bucket_details: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **bucket_id** | **int**| |
+ **start_date** | **str**| Datetime should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| 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
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_billing_history_cluster**
+> ResourceLevelClusterBillingHistoryResponseModel get_user_billing_history_cluster(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
+
+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'
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.resource_level_cluster_billing_history_response_model import ResourceLevelClusterBillingHistoryResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+ start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ search = 'search_example' # str | Search by resource \"Name\" or \"ID\" (optional)
+ per_page = 56 # int | Number of items to return per page (optional)
+ page = 56 # int | Page number (optional)
+
+ try:
+ # Retrieve Billing History of Clusters for a specific Billing Cycle
+ api_response = api_instance.get_user_billing_history_cluster(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
+ print("The response of BillingApi->get_user_billing_history_cluster:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_user_billing_history_cluster: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **search** | **str**| Search by resource \"Name\" or \"ID\" | [optional]
+ **per_page** | **int**| Number of items to return per page | [optional]
+ **page** | **int**| Page number | [optional]
+
+### Return type
+
+[**ResourceLevelClusterBillingHistoryResponseModel**](ResourceLevelClusterBillingHistoryResponseModel.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_billing_history_cluster_details**
+> ResourceLevelClusterBillingDetailsResponseModel get_user_billing_history_cluster_details(cluster_id, start_date=start_date, end_date=end_date)
+
+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
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.resource_level_cluster_billing_details_response_model import ResourceLevelClusterBillingDetailsResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+ cluster_id = 56 # int |
+ start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+
+ try:
+ # Retrieve Billing History of a Specific Cluster for a specific Billing Cycle
+ api_response = api_instance.get_user_billing_history_cluster_details(cluster_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_history_cluster_details:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_user_billing_history_cluster_details: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **cluster_id** | **int**| |
+ **start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| 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
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_billing_history_contract**
+> get_user_billing_history_contract(start_date=start_date, end_date=end_date, search=search)
+
+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'
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+ start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ search = 'search_example' # str | Search by Contract \"Description\" or \"ID\" (optional)
+
+ try:
+ # Retrieve Billing History of Contract for a specific Billing Cycle
+ api_instance.get_user_billing_history_contract(start_date=start_date, end_date=end_date, search=search)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_user_billing_history_contract: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **search** | **str**| Search by Contract \"Description\" or \"ID\" | [optional]
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_billing_history_data_synthesis**
+> TokenBasedBillingHistoryResponse get_user_billing_history_data_synthesis(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
+
+Retrieve Billing History of data synthesis for a specific Billing Cycle
+
+User will recieve billing history of data_synthesis for the specified billing cycle.
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.token_based_billing_history_response import TokenBasedBillingHistoryResponse
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+ start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ search = 'search_example' # str | Search by resource \"Name\" or \"ID\" (optional)
+ per_page = 56 # int | Number of items to return per page (optional)
+ page = 56 # int | Page number (optional)
+
+ try:
+ # Retrieve Billing History of data synthesis for a specific Billing Cycle
+ api_response = api_instance.get_user_billing_history_data_synthesis(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
+ print("The response of BillingApi->get_user_billing_history_data_synthesis:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_user_billing_history_data_synthesis: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **search** | **str**| Search by resource \"Name\" or \"ID\" | [optional]
+ **per_page** | **int**| Number of items to return per page | [optional]
+ **page** | **int**| Page number | [optional]
+
+### Return type
+
+[**TokenBasedBillingHistoryResponse**](TokenBasedBillingHistoryResponse.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_billing_history_data_synthesis_details**
+> DataSynthesisBillingHistoryDetailsResponseSchema get_user_billing_history_data_synthesis_details(resource_id, start_date=start_date, end_date=end_date)
+
+
+
+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
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.data_synthesis_billing_history_details_response_schema import DataSynthesisBillingHistoryDetailsResponseSchema
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+ resource_id = 56 # int |
+ start_date = 'start_date_example' # str | YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | YYYY-MM-DDTHH:MM:SS (optional)
+
+ try:
+ api_response = api_instance.get_user_billing_history_data_synthesis_details(resource_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_history_data_synthesis_details:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_user_billing_history_data_synthesis_details: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **resource_id** | **int**| |
+ **start_date** | **str**| YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| 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
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_billing_history_fine_tuning**
+> WorkloadBillingHistoryResponse get_user_billing_history_fine_tuning(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
+
+Retrieve Billing History of model evaluation for a specific Billing Cycle
+
+User will recieve billing history of fine_tuning for the specified billing cycle.
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.workload_billing_history_response import WorkloadBillingHistoryResponse
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+ start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ search = 'search_example' # str | Search by resource \"Name\" or \"ID\" (optional)
+ per_page = 56 # int | Number of items to return per page (optional)
+ page = 56 # int | Page number (optional)
+
+ try:
+ # Retrieve Billing History of model evaluation for a specific Billing Cycle
+ api_response = api_instance.get_user_billing_history_fine_tuning(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
+ print("The response of BillingApi->get_user_billing_history_fine_tuning:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_user_billing_history_fine_tuning: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **search** | **str**| Search by resource \"Name\" or \"ID\" | [optional]
+ **per_page** | **int**| Number of items to return per page | [optional]
+ **page** | **int**| Page number | [optional]
+
+### Return type
+
+[**WorkloadBillingHistoryResponse**](WorkloadBillingHistoryResponse.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_billing_history_fine_tuning_details**
+> ResourceLevelVolumeBillingDetailsResponseModel get_user_billing_history_fine_tuning_details(resource_id, start_date=start_date, end_date=end_date)
+
+Retrieve Billing History of a Specific Fine Tuning for a specific Billing Cycle
+
+Retrieve billing history of a specific Fine tunning 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
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.resource_level_volume_billing_details_response_model import ResourceLevelVolumeBillingDetailsResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+ resource_id = 56 # int |
+ start_date = 'start_date_example' # str | Datetime should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | Datetime should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+
+ try:
+ # Retrieve Billing History of a Specific Fine Tuning for a specific Billing Cycle
+ api_response = api_instance.get_user_billing_history_fine_tuning_details(resource_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_history_fine_tuning_details:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_user_billing_history_fine_tuning_details: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **resource_id** | **int**| |
+ **start_date** | **str**| Datetime should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| 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
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_billing_history_model_evaluation**
+> TokenBasedBillingHistoryResponse get_user_billing_history_model_evaluation(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
+
+Retrieve Billing History of model evaluation for a specific Billing Cycle
+
+User will recieve billing history of model_evaluation for the specified billing cycle.
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.token_based_billing_history_response import TokenBasedBillingHistoryResponse
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.BillingApi(api_client)
+ start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ search = 'search_example' # str | Search by resource \"Name\" or \"ID\" (optional)
+ per_page = 56 # int | Number of items to return per page (optional)
+ page = 56 # int | Page number (optional)
+
+ try:
+ # Retrieve Billing History of model evaluation for a specific Billing Cycle
+ api_response = api_instance.get_user_billing_history_model_evaluation(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
+ print("The response of BillingApi->get_user_billing_history_model_evaluation:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling BillingApi->get_user_billing_history_model_evaluation: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **search** | **str**| Search by resource \"Name\" or \"ID\" | [optional]
+ **per_page** | **int**| Number of items to return per page | [optional]
+ **page** | **int**| Page number | [optional]
+
+### Return type
+
+[**TokenBasedBillingHistoryResponse**](TokenBasedBillingHistoryResponse.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_user_billing_history_model_evaluation_details**
+> ModelEvaluationBillingHistoryDetailsResponseSchema get_user_billing_history_model_evaluation_details(resource_id, start_date=start_date, end_date=end_date)
+
+
+
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.organizationthresholdsresponse import Organizationthresholdsresponse
+from hyperstack.models.model_evaluation_billing_history_details_response_schema import ModelEvaluationBillingHistoryDetailsResponseSchema
from hyperstack.rest import ApiException
from pprint import pprint
@@ -60,39 +1658,40 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.BillingApi(api_client)
+ resource_id = 56 # int |
+ start_date = 'start_date_example' # str | YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | YYYY-MM-DDTHH:MM:SS (optional)
try:
- # GET: All Thresholds for Organization
- api_response = api_instance.get_all_thresholds_for_organization()
- print("The response of BillingApi->get_all_thresholds_for_organization:\n")
+ api_response = api_instance.get_user_billing_history_model_evaluation_details(resource_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_history_model_evaluation_details:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->get_all_thresholds_for_organization: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_billing_history_model_evaluation_details: %s\n" % e)
```
### Parameters
-This endpoint does not need any parameter.
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **resource_id** | **int**| |
+ **start_date** | **str**| YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| YYYY-MM-DDTHH:MM:SS | [optional]
### Return type
-[**Organizationthresholdsresponse**](Organizationthresholdsresponse.md)
+[**ModelEvaluationBillingHistoryDetailsResponseSchema**](ModelEvaluationBillingHistoryDetailsResponseSchema.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -112,21 +1711,20 @@ This endpoint does not need any parameter.
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **get_billing_usage**
-> Billingmetricesresponse get_billing_usage(deleted=deleted, environment=environment)
+# **get_user_billing_history_serverless_inference**
+> TokenBasedBillingHistoryResponse get_user_billing_history_serverless_inference(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
-GET: Billing usage
+Retrieve Billing History of serverless inference 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 recieve billing history of serverless_inference for the specified billing cycle.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.billingmetricesresponse import Billingmetricesresponse
+from hyperstack.models.token_based_billing_history_response import TokenBasedBillingHistoryResponse
from hyperstack.rest import ApiException
from pprint import pprint
@@ -147,26 +1745,23 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.BillingApi(api_client)
- deleted = 'deleted_example' # str | `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`) (optional)
- environment = 'environment_example' # str | Filter resources by environment ID or Name (optional)
+ start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ search = 'search_example' # str | Search by resource \"Name\" or \"ID\" (optional)
+ per_page = 56 # int | Number of items to return per page (optional)
+ page = 56 # int | Page number (optional)
try:
- # GET: Billing usage
- api_response = api_instance.get_billing_usage(deleted=deleted, environment=environment)
- print("The response of BillingApi->get_billing_usage:\n")
+ # Retrieve Billing History of serverless inference for a specific Billing Cycle
+ api_response = api_instance.get_user_billing_history_serverless_inference(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
+ print("The response of BillingApi->get_user_billing_history_serverless_inference:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->get_billing_usage: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_billing_history_serverless_inference: %s\n" % e)
```
@@ -176,16 +1771,19 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **deleted** | **str**| `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`) | [optional]
- **environment** | **str**| Filter resources by environment ID or Name | [optional]
+ **start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **search** | **str**| Search by resource \"Name\" or \"ID\" | [optional]
+ **per_page** | **int**| Number of items to return per page | [optional]
+ **page** | **int**| Page number | [optional]
### Return type
-[**Billingmetricesresponse**](Billingmetricesresponse.md)
+[**TokenBasedBillingHistoryResponse**](TokenBasedBillingHistoryResponse.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -205,21 +1803,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **get_last_day_cost**
-> Lastdaycostresponse get_last_day_cost()
+# **get_user_billing_history_serverless_inference_details**
+> ServerlessInferencedBillingHistoryDetailsResponseSchema get_user_billing_history_serverless_inference_details(resource_id, start_date=start_date, end_date=end_date)
+
-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/)
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.lastdaycostresponse import Lastdaycostresponse
+from hyperstack.models.serverless_inferenced_billing_history_details_response_schema import ServerlessInferencedBillingHistoryDetailsResponseSchema
from hyperstack.rest import ApiException
from pprint import pprint
@@ -240,39 +1837,40 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.BillingApi(api_client)
+ resource_id = 56 # int |
+ start_date = 'start_date_example' # str | YYYY-MM-DDTHH:MM:SS (optional)
+ end_date = 'end_date_example' # str | YYYY-MM-DDTHH:MM:SS (optional)
try:
- # GET: Last Day Cost
- api_response = api_instance.get_last_day_cost()
- print("The response of BillingApi->get_last_day_cost:\n")
+ api_response = api_instance.get_user_billing_history_serverless_inference_details(resource_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_history_serverless_inference_details:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->get_last_day_cost: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_billing_history_serverless_inference_details: %s\n" % e)
```
### Parameters
-This endpoint does not need any parameter.
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **resource_id** | **int**| |
+ **start_date** | **str**| YYYY-MM-DDTHH:MM:SS | [optional]
+ **end_date** | **str**| YYYY-MM-DDTHH:MM:SS | [optional]
### Return type
-[**Lastdaycostresponse**](Lastdaycostresponse.md)
+[**ServerlessInferencedBillingHistoryDetailsResponseSchema**](ServerlessInferencedBillingHistoryDetailsResponseSchema.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -292,21 +1890,20 @@ This endpoint does not need any parameter.
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_billing_history_for_a_specific_billing_cycle**
-> OrganizationLevelBillingHistoryResponseModel retrieve_billing_history_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, graph=graph)
+# **get_user_billing_history_snapshot**
+> ResourceLevelVolumeBillingHistoryResponseModel get_user_billing_history_snapshot(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
-Retrieve Billing History for a specific Billing Cycle
+Retrieve Billing History of Snapshot 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 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'
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.organization_level_billing_history_response_model import OrganizationLevelBillingHistoryResponseModel
+from hyperstack.models.resource_level_volume_billing_history_response_model import ResourceLevelVolumeBillingHistoryResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -327,27 +1924,23 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.BillingApi(api_client)
start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
- graph = 'graph_example' # str | Set this value to \"true\" for getting graph value (optional)
+ search = 'search_example' # str | Search by resource \"Name\" or \"ID\" (optional)
+ per_page = 56 # int | Number of items to return per page (optional)
+ page = 56 # int | Page number (optional)
try:
- # Retrieve Billing History for a specific Billing Cycle
- api_response = api_instance.retrieve_billing_history_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, graph=graph)
- print("The response of BillingApi->retrieve_billing_history_for_a_specific_billing_cycle:\n")
+ # Retrieve Billing History of Snapshot for a specific Billing Cycle
+ api_response = api_instance.get_user_billing_history_snapshot(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
+ print("The response of BillingApi->get_user_billing_history_snapshot:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->retrieve_billing_history_for_a_specific_billing_cycle: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_billing_history_snapshot: %s\n" % e)
```
@@ -359,15 +1952,17 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
**end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
- **graph** | **str**| Set this value to \"true\" for getting graph value | [optional]
+ **search** | **str**| Search by resource \"Name\" or \"ID\" | [optional]
+ **per_page** | **int**| Number of items to return per page | [optional]
+ **page** | **int**| Page number | [optional]
### Return type
-[**OrganizationLevelBillingHistoryResponseModel**](OrganizationLevelBillingHistoryResponseModel.md)
+[**ResourceLevelVolumeBillingHistoryResponseModel**](ResourceLevelVolumeBillingHistoryResponseModel.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -387,8 +1982,8 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle**
-> ResourceLevelVolumeBillingDetailsResponseModel retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle(snapshot_id, start_date=start_date, end_date=end_date)
+# **get_user_billing_history_snapshot_details**
+> ResourceLevelVolumeBillingDetailsResponseModel get_user_billing_history_snapshot_details(snapshot_id, start_date=start_date, end_date=end_date)
Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
@@ -397,7 +1992,6 @@ Retrieve billing history of a specific Snapshot for the specified billing cycle.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -422,12 +2016,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -438,11 +2026,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
- api_response = api_instance.retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle(snapshot_id, start_date=start_date, end_date=end_date)
- print("The response of BillingApi->retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle:\n")
+ api_response = api_instance.get_user_billing_history_snapshot_details(snapshot_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_history_snapshot_details:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_billing_history_snapshot_details: %s\n" % e)
```
@@ -462,7 +2050,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -482,21 +2070,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle**
-> ResourceLevelVMBillingDetailsResponseModel retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle(vm_id, start_date=start_date, end_date=end_date)
+# **get_user_billing_history_vm2**
+> ResourceLevelVmBillingHistoryResponseModel get_user_billing_history_vm2(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
-Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
+Retrieve Billing History of 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'
+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'
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.resource_level_vm_billing_details_response_model import ResourceLevelVMBillingDetailsResponseModel
+from hyperstack.models.resource_level_vm_billing_history_response_model import ResourceLevelVmBillingHistoryResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -517,27 +2104,23 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.BillingApi(api_client)
- vm_id = 56 # int |
start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
+ search = 'search_example' # str | Search by resource \"Name\" or \"ID\" (optional)
+ per_page = 56 # int | Number of items to return per page (optional)
+ page = 56 # int | Page number (optional)
try:
- # Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
- api_response = api_instance.retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle(vm_id, start_date=start_date, end_date=end_date)
- print("The response of BillingApi->retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle:\n")
+ # Retrieve Billing History of Virtual Machine for a specific Billing Cycle
+ api_response = api_instance.get_user_billing_history_vm2(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
+ print("The response of BillingApi->get_user_billing_history_vm2:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_billing_history_vm2: %s\n" % e)
```
@@ -547,17 +2130,19 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **vm_id** | **int**| |
**start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
**end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
+ **search** | **str**| Search by resource \"Name\" or \"ID\" | [optional]
+ **per_page** | **int**| Number of items to return per page | [optional]
+ **page** | **int**| Page number | [optional]
### Return type
-[**ResourceLevelVMBillingDetailsResponseModel**](ResourceLevelVMBillingDetailsResponseModel.md)
+[**ResourceLevelVmBillingHistoryResponseModel**](ResourceLevelVmBillingHistoryResponseModel.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -577,21 +2162,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle**
-> ResourceLevelVolumeBillingDetailsResponseModel retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle(volume_id, start_date=start_date, end_date=end_date)
+# **get_user_billing_history_vm_details2**
+> ResourceLevelVMBillingDetailsResponseModel get_user_billing_history_vm_details2(vm_id, start_date=start_date, end_date=end_date)
-Retrieve Billing History of a Specific Volume for a specific Billing Cycle
+Retrieve Billing History 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 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'
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.resource_level_volume_billing_details_response_model import ResourceLevelVolumeBillingDetailsResponseModel
+from hyperstack.models.resource_level_vm_billing_details_response_model import ResourceLevelVMBillingDetailsResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -612,27 +2196,21 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.BillingApi(api_client)
- volume_id = 56 # int |
+ vm_id = 56 # int |
start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
try:
- # Retrieve Billing History of a Specific Volume for a specific Billing Cycle
- api_response = api_instance.retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle(volume_id, start_date=start_date, end_date=end_date)
- print("The response of BillingApi->retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle:\n")
+ # Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
+ api_response = api_instance.get_user_billing_history_vm_details2(vm_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_history_vm_details2:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_billing_history_vm_details2: %s\n" % e)
```
@@ -642,17 +2220,17 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **volume_id** | **int**| |
+ **vm_id** | **int**| |
**start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
**end_date** | **str**| 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
@@ -672,20 +2250,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_billing_history_of_contract_for_a_specific_billing_cycle**
-> retrieve_billing_history_of_contract_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search)
+# **get_user_billing_history_vm_sub_resource_graph2**
+> SubResourcesGraphResponseModel get_user_billing_history_vm_sub_resource_graph2(vm_id, start_date=start_date, end_date=end_date)
-Retrieve Billing History of Contract for a specific Billing Cycle
+Retrieve Sub-Resources Historical Cost datapoints of a Virtual
-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 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
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
+from hyperstack.models.sub_resources_graph_response_model import SubResourcesGraphResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -706,25 +2284,21 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.BillingApi(api_client)
+ vm_id = 56 # int |
start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
- search = 'search_example' # str | Search by Contract \"Description\" or \"ID\" (optional)
try:
- # Retrieve Billing History of Contract for a specific Billing Cycle
- api_instance.retrieve_billing_history_of_contract_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search)
+ # Retrieve Sub-Resources Historical Cost datapoints of a Virtual
+ api_response = api_instance.get_user_billing_history_vm_sub_resource_graph2(vm_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_history_vm_sub_resource_graph2:\n")
+ pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->retrieve_billing_history_of_contract_for_a_specific_billing_cycle: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_billing_history_vm_sub_resource_graph2: %s\n" % e)
```
@@ -734,17 +2308,17 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **vm_id** | **int**| |
**start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
**end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
- **search** | **str**| Search by Contract \"Description\" or \"ID\" | [optional]
### Return type
-void (empty response body)
+[**SubResourcesGraphResponseModel**](SubResourcesGraphResponseModel.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -755,6 +2329,7 @@ void (empty response body)
| Status code | Description | Response headers |
|-------------|-------------|------------------|
+**200** | Success | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**403** | Forbidden | - |
@@ -763,21 +2338,20 @@ void (empty response body)
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle**
-> ResourceLevelVolumeBillingHistoryResponseModel retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search, page=page, per_page=per_page)
+# **get_user_billing_history_vm_total_costs**
+> SubResourcesCostsResponseModel get_user_billing_history_vm_total_costs(vm_id, start_date=start_date, end_date=end_date)
-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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.resource_level_volume_billing_history_response_model import ResourceLevelVolumeBillingHistoryResponseModel
+from hyperstack.models.sub_resources_costs_response_model import SubResourcesCostsResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -798,29 +2372,21 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.BillingApi(api_client)
+ vm_id = 56 # int |
start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
- search = 'search_example' # str | Search by Volume \"Name\" or \"ID\" (optional)
- page = 'page_example' # str | Page number (optional)
- per_page = 'per_page_example' # str | Number of items to return per page (optional)
try:
- # Retrieve Billing History of Snapshot for a specific Billing Cycle
- api_response = api_instance.retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search, page=page, per_page=per_page)
- print("The response of BillingApi->retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle:\n")
+ # Retrieve Total Costs and Non Discount Costs for Sub Resources
+ api_response = api_instance.get_user_billing_history_vm_total_costs(vm_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_history_vm_total_costs:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_billing_history_vm_total_costs: %s\n" % e)
```
@@ -830,19 +2396,17 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **vm_id** | **int**| |
**start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
**end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
- **search** | **str**| Search by Volume \"Name\" or \"ID\" | [optional]
- **page** | **str**| Page number | [optional]
- **per_page** | **str**| 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
@@ -862,21 +2426,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle**
-> ResourceLevelVmBillingHistoryResponseModel retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
+# **get_user_billing_history_volume2**
+> ResourceLevelVolumeBillingHistoryResponseModel get_user_billing_history_volume2(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
-Retrieve Billing History of Virtual Machine for a specific Billing Cycle
+Retrieve Billing History of Volume 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'
+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'
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.resource_level_vm_billing_history_response_model import ResourceLevelVmBillingHistoryResponseModel
+from hyperstack.models.resource_level_volume_billing_history_response_model import ResourceLevelVolumeBillingHistoryResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -897,29 +2460,23 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.BillingApi(api_client)
start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
- search = 'search_example' # str | Search by Virtual Machine \"Name\" or \"ID\" (optional)
- per_page = 'per_page_example' # str | Number of items to return per page (optional)
- page = 'page_example' # str | Page number (optional)
+ search = 'search_example' # str | Search by resource \"Name\" or \"ID\" (optional)
+ per_page = 56 # int | Number of items to return per page (optional)
+ page = 56 # int | Page number (optional)
try:
- # Retrieve Billing History of Virtual Machine for a specific Billing Cycle
- api_response = api_instance.retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
- print("The response of BillingApi->retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle:\n")
+ # Retrieve Billing History of Volume for a specific Billing Cycle
+ api_response = api_instance.get_user_billing_history_volume2(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
+ print("The response of BillingApi->get_user_billing_history_volume2:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_billing_history_volume2: %s\n" % e)
```
@@ -931,17 +2488,17 @@ Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
**end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
- **search** | **str**| Search by Virtual Machine \"Name\" or \"ID\" | [optional]
- **per_page** | **str**| Number of items to return per page | [optional]
- **page** | **str**| Page number | [optional]
+ **search** | **str**| Search by resource \"Name\" or \"ID\" | [optional]
+ **per_page** | **int**| Number of items to return per page | [optional]
+ **page** | **int**| Page number | [optional]
### Return type
-[**ResourceLevelVmBillingHistoryResponseModel**](ResourceLevelVmBillingHistoryResponseModel.md)
+[**ResourceLevelVolumeBillingHistoryResponseModel**](ResourceLevelVolumeBillingHistoryResponseModel.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -961,21 +2518,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_billing_history_of_volume_for_a_specific_billing_cycle**
-> ResourceLevelVolumeBillingHistoryResponseModel retrieve_billing_history_of_volume_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
+# **get_user_billing_history_volume_details2**
+> ResourceLevelVolumeBillingDetailsResponseModel get_user_billing_history_volume_details2(volume_id, start_date=start_date, end_date=end_date)
-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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.resource_level_volume_billing_history_response_model import ResourceLevelVolumeBillingHistoryResponseModel
+from hyperstack.models.resource_level_volume_billing_details_response_model import ResourceLevelVolumeBillingDetailsResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -996,29 +2552,21 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.BillingApi(api_client)
+ volume_id = 56 # int |
start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
- search = 'search_example' # str | Search by Volume \"Name\" or \"ID\" (optional)
- per_page = 'per_page_example' # str | Number of items to return per page (optional)
- page = 'page_example' # str | Page number (optional)
try:
- # Retrieve Billing History of Volume for a specific Billing Cycle
- api_response = api_instance.retrieve_billing_history_of_volume_for_a_specific_billing_cycle(start_date=start_date, end_date=end_date, search=search, per_page=per_page, page=page)
- print("The response of BillingApi->retrieve_billing_history_of_volume_for_a_specific_billing_cycle:\n")
+ # Retrieve Billing History of a Specific Volume for a specific Billing Cycle
+ api_response = api_instance.get_user_billing_history_volume_details2(volume_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_history_volume_details2:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->retrieve_billing_history_of_volume_for_a_specific_billing_cycle: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_billing_history_volume_details2: %s\n" % e)
```
@@ -1028,19 +2576,17 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
+ **volume_id** | **int**| |
**start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
**end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
- **search** | **str**| Search by Volume \"Name\" or \"ID\" | [optional]
- **per_page** | **str**| Number of items to return per page | [optional]
- **page** | **str**| 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
@@ -1060,21 +2606,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle**
-> ResourceLevelVolumeGraphBillingDetailsResponseModel retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle(snapshot_id, start_date=start_date, end_date=end_date)
+# **get_user_billing_model_evaluation_details_graph**
+> ModelEvaluationBillingHistoryDetailsResponseSchema get_user_billing_model_evaluation_details_graph(resource_id, start_date=start_date, end_date=end_date)
-Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
+Retrieve hourly cost datapoints of a Specific Model Evaluation for a specific
-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 hourly cost datapoints for a model evaluation for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.resource_level_volume_graph_billing_details_response_model import ResourceLevelVolumeGraphBillingDetailsResponseModel
+from hyperstack.models.model_evaluation_billing_history_details_response_schema import ModelEvaluationBillingHistoryDetailsResponseSchema
from hyperstack.rest import ApiException
from pprint import pprint
@@ -1095,27 +2640,21 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.BillingApi(api_client)
- snapshot_id = 56 # int |
+ resource_id = 56 # int |
start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
try:
- # Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
- api_response = api_instance.retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle(snapshot_id, start_date=start_date, end_date=end_date)
- print("The response of BillingApi->retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle:\n")
+ # Retrieve hourly cost datapoints of a Specific Model Evaluation for a specific
+ api_response = api_instance.get_user_billing_model_evaluation_details_graph(resource_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_model_evaluation_details_graph:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_billing_model_evaluation_details_graph: %s\n" % e)
```
@@ -1125,17 +2664,17 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **snapshot_id** | **int**| |
+ **resource_id** | **int**| |
**start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
**end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
### Return type
-[**ResourceLevelVolumeGraphBillingDetailsResponseModel**](ResourceLevelVolumeGraphBillingDetailsResponseModel.md)
+[**ModelEvaluationBillingHistoryDetailsResponseSchema**](ModelEvaluationBillingHistoryDetailsResponseSchema.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -1155,21 +2694,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle**
-> ResourceLevelVmGraphBillingDetailsResponseModel retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle(vm_id, start_date=start_date, end_date=end_date)
+# **get_user_billing_serverless_inference_details_graph**
+> ServerlessInferencedBillingHistoryDetailsResponseSchema get_user_billing_serverless_inference_details_graph(resource_id, start_date=start_date, end_date=end_date)
-Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
+Retrieve hourly cost datapoints of a Specific Serverless Inference for a specific
-User will recieve hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+User will recieve hourly cost datapoints for a serverles inference for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.resource_level_vm_graph_billing_details_response_model import ResourceLevelVmGraphBillingDetailsResponseModel
+from hyperstack.models.serverless_inferenced_billing_history_details_response_schema import ServerlessInferencedBillingHistoryDetailsResponseSchema
from hyperstack.rest import ApiException
from pprint import pprint
@@ -1190,27 +2728,21 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.BillingApi(api_client)
- vm_id = 56 # int |
+ resource_id = 56 # int |
start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
try:
- # Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
- api_response = api_instance.retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle(vm_id, start_date=start_date, end_date=end_date)
- print("The response of BillingApi->retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle:\n")
+ # Retrieve hourly cost datapoints of a Specific Serverless Inference for a specific
+ api_response = api_instance.get_user_billing_serverless_inference_details_graph(resource_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_serverless_inference_details_graph:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_billing_serverless_inference_details_graph: %s\n" % e)
```
@@ -1220,17 +2752,17 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **vm_id** | **int**| |
+ **resource_id** | **int**| |
**start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
**end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
### Return type
-[**ResourceLevelVmGraphBillingDetailsResponseModel**](ResourceLevelVmGraphBillingDetailsResponseModel.md)
+[**ServerlessInferencedBillingHistoryDetailsResponseSchema**](ServerlessInferencedBillingHistoryDetailsResponseSchema.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -1250,17 +2782,16 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle**
-> ResourceLevelVolumeGraphBillingDetailsResponseModel retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle(volume_id, start_date=start_date, end_date=end_date)
+# **get_user_billing_snapshot_details_graph**
+> ResourceLevelVolumeGraphBillingDetailsResponseModel get_user_billing_snapshot_details_graph(snapshot_id, start_date=start_date, end_date=end_date)
-Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
+Retrieve hourly cost datapoints of a Specific Snapshot 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 recieve hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -1285,27 +2816,21 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.BillingApi(api_client)
- volume_id = 56 # int |
+ snapshot_id = 56 # int |
start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
try:
- # Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
- api_response = api_instance.retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle(volume_id, start_date=start_date, end_date=end_date)
- print("The response of BillingApi->retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle:\n")
+ # Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
+ api_response = api_instance.get_user_billing_snapshot_details_graph(snapshot_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_snapshot_details_graph:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_billing_snapshot_details_graph: %s\n" % e)
```
@@ -1315,7 +2840,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **volume_id** | **int**| |
+ **snapshot_id** | **int**| |
**start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
**end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
@@ -1325,7 +2850,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -1345,21 +2870,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_sub_resources_historical_cost_datapoints_of_a_virtual**
-> SubResourcesGraphResponseModel retrieve_sub_resources_historical_cost_datapoints_of_a_virtual(vm_id, start_date=start_date, end_date=end_date)
+# **get_user_billing_vm_details_graph2**
+> ResourceLevelVmGraphBillingDetailsResponseModel get_user_billing_vm_details_graph2(vm_id, start_date=start_date, end_date=end_date)
-Retrieve Sub-Resources Historical Cost datapoints of a Virtual
+Retrieve hourly cost datapoints of a Specific Virtual Machine 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 recieve hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.sub_resources_graph_response_model import SubResourcesGraphResponseModel
+from hyperstack.models.resource_level_vm_graph_billing_details_response_model import ResourceLevelVmGraphBillingDetailsResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -1380,12 +2904,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -1395,12 +2913,12 @@ with hyperstack.ApiClient(configuration) as api_client:
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
try:
- # Retrieve Sub-Resources Historical Cost datapoints of a Virtual
- api_response = api_instance.retrieve_sub_resources_historical_cost_datapoints_of_a_virtual(vm_id, start_date=start_date, end_date=end_date)
- print("The response of BillingApi->retrieve_sub_resources_historical_cost_datapoints_of_a_virtual:\n")
+ # Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
+ api_response = api_instance.get_user_billing_vm_details_graph2(vm_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_vm_details_graph2:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->retrieve_sub_resources_historical_cost_datapoints_of_a_virtual: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_billing_vm_details_graph2: %s\n" % e)
```
@@ -1416,11 +2934,11 @@ Name | Type | Description | Notes
### Return type
-[**SubResourcesGraphResponseModel**](SubResourcesGraphResponseModel.md)
+[**ResourceLevelVmGraphBillingDetailsResponseModel**](ResourceLevelVmGraphBillingDetailsResponseModel.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -1440,21 +2958,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_total_costs_and_non_discount_costs_for_sub_resources**
-> SubResourcesCostsResponseModel retrieve_total_costs_and_non_discount_costs_for_sub_resources(vm_id, start_date=start_date, end_date=end_date)
+# **get_user_billing_volume_details_graph**
+> ResourceLevelVolumeGraphBillingDetailsResponseModel get_user_billing_volume_details_graph(volume_id, start_date=start_date, end_date=end_date)
-Retrieve Total Costs and Non Discount Costs for Sub Resources
+Retrieve hourly cost datapoints of a Specific Volume 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 recieve hourly cost datapoints for a Volume for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.sub_resources_costs_response_model import SubResourcesCostsResponseModel
+from hyperstack.models.resource_level_volume_graph_billing_details_response_model import ResourceLevelVolumeGraphBillingDetailsResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -1475,27 +2992,21 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.BillingApi(api_client)
- vm_id = 56 # int |
+ volume_id = 56 # int |
start_date = 'start_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
end_date = 'end_date_example' # str | Date should be formatted in YYYY-MM-DDTHH:MM:SS (optional)
try:
- # Retrieve Total Costs and Non Discount Costs for Sub Resources
- api_response = api_instance.retrieve_total_costs_and_non_discount_costs_for_sub_resources(vm_id, start_date=start_date, end_date=end_date)
- print("The response of BillingApi->retrieve_total_costs_and_non_discount_costs_for_sub_resources:\n")
+ # Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
+ api_response = api_instance.get_user_billing_volume_details_graph(volume_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_billing_volume_details_graph:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->retrieve_total_costs_and_non_discount_costs_for_sub_resources: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_billing_volume_details_graph: %s\n" % e)
```
@@ -1505,17 +3016,17 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **vm_id** | **int**| |
+ **volume_id** | **int**| |
**start_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
**end_date** | **str**| Date should be formatted in YYYY-MM-DDTHH:MM:SS | [optional]
### Return type
-[**SubResourcesCostsResponseModel**](SubResourcesCostsResponseModel.md)
+[**ResourceLevelVolumeGraphBillingDetailsResponseModel**](ResourceLevelVolumeGraphBillingDetailsResponseModel.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -1535,8 +3046,8 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_vm_billing_events_history**
-> ResourceBillingEventsHistoryResponse retrieve_vm_billing_events_history(vm_id, start_date=start_date, end_date=end_date)
+# **get_user_vm_billing_events**
+> ResourceBillingEventsHistoryResponse get_user_vm_billing_events(vm_id, start_date=start_date, end_date=end_date)
Retrieve VM billing events history
@@ -1545,7 +3056,6 @@ User will receive vm billing events history
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -1570,12 +3080,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -1586,11 +3090,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# Retrieve VM billing events history
- api_response = api_instance.retrieve_vm_billing_events_history(vm_id, start_date=start_date, end_date=end_date)
- print("The response of BillingApi->retrieve_vm_billing_events_history:\n")
+ api_response = api_instance.get_user_vm_billing_events(vm_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_vm_billing_events:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->retrieve_vm_billing_events_history: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_vm_billing_events: %s\n" % e)
```
@@ -1610,7 +3114,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -1629,8 +3133,8 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_volume_billing_events_history**
-> ResourceBillingEventsHistoryResponse retrieve_volume_billing_events_history(volume_id, start_date=start_date, end_date=end_date)
+# **get_user_volume_billing_events**
+> ResourceBillingEventsHistoryResponse get_user_volume_billing_events(volume_id, start_date=start_date, end_date=end_date)
Retrieve Volume billing events history
@@ -1639,7 +3143,6 @@ User will receive volume billing events history
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -1664,12 +3167,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -1680,11 +3177,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# Retrieve Volume billing events history
- api_response = api_instance.retrieve_volume_billing_events_history(volume_id, start_date=start_date, end_date=end_date)
- print("The response of BillingApi->retrieve_volume_billing_events_history:\n")
+ api_response = api_instance.get_user_volume_billing_events(volume_id, start_date=start_date, end_date=end_date)
+ print("The response of BillingApi->get_user_volume_billing_events:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->retrieve_volume_billing_events_history: %s\n" % e)
+ print("Exception when calling BillingApi->get_user_volume_billing_events: %s\n" % e)
```
@@ -1704,7 +3201,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -1723,8 +3220,8 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **update_subscribe_or_unsubscribe_notification_threshold**
-> Organizationthresholdupdateresponse update_subscribe_or_unsubscribe_notification_threshold(threshold_id, payload)
+# **put_organization_threshold**
+> OrganizationThresholdUpdateResponse put_organization_threshold(threshold_id, payload)
Update: Subscribe or Unsubscribe Notification Threshold
@@ -1733,12 +3230,11 @@ By default, you are subscribed to all the threshold values and you will be recei
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.organizationthresholdupdateresponse import Organizationthresholdupdateresponse
-from hyperstack.models.subscribeorunsubscribeupdatepayload import Subscribeorunsubscribeupdatepayload
+from hyperstack.models.organization_threshold_update_response import OrganizationThresholdUpdateResponse
+from hyperstack.models.subscribe_or_unsubscribe_update_payload import SubscribeOrUnsubscribeUpdatePayload
from hyperstack.rest import ApiException
from pprint import pprint
@@ -1759,26 +3255,20 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.BillingApi(api_client)
threshold_id = 56 # int |
- payload = hyperstack.Subscribeorunsubscribeupdatepayload() # Subscribeorunsubscribeupdatepayload |
+ payload = hyperstack.SubscribeOrUnsubscribeUpdatePayload() # SubscribeOrUnsubscribeUpdatePayload |
try:
# Update: Subscribe or Unsubscribe Notification Threshold
- api_response = api_instance.update_subscribe_or_unsubscribe_notification_threshold(threshold_id, payload)
- print("The response of BillingApi->update_subscribe_or_unsubscribe_notification_threshold:\n")
+ api_response = api_instance.put_organization_threshold(threshold_id, payload)
+ print("The response of BillingApi->put_organization_threshold:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling BillingApi->update_subscribe_or_unsubscribe_notification_threshold: %s\n" % e)
+ print("Exception when calling BillingApi->put_organization_threshold: %s\n" % e)
```
@@ -1789,15 +3279,15 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**threshold_id** | **int**| |
- **payload** | [**Subscribeorunsubscribeupdatepayload**](Subscribeorunsubscribeupdatepayload.md)| |
+ **payload** | [**SubscribeOrUnsubscribeUpdatePayload**](SubscribeOrUnsubscribeUpdatePayload.md)| |
### Return type
-[**Organizationthresholdupdateresponse**](Organizationthresholdupdateresponse.md)
+[**OrganizationThresholdUpdateResponse**](OrganizationThresholdUpdateResponse.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
diff --git a/docs/BillingHistory.md b/docs/BillingHistory.md
new file mode 100644
index 0000000..73c1a05
--- /dev/null
+++ b/docs/BillingHistory.md
@@ -0,0 +1,30 @@
+# BillingHistory
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**attributes** | [**Attributes**](Attributes.md) | | [optional]
+**metrics** | **object** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.billing_history import BillingHistory
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BillingHistory from a JSON string
+billing_history_instance = BillingHistory.from_json(json)
+# print the JSON string representation of the object
+print(BillingHistory.to_json())
+
+# convert the object into a dict
+billing_history_dict = billing_history_instance.to_dict()
+# create an instance of BillingHistory from a dict
+billing_history_from_dict = BillingHistory.from_dict(billing_history_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BillingHistoryDataSynthesisDetails.md b/docs/BillingHistoryDataSynthesisDetails.md
new file mode 100644
index 0000000..54480fc
--- /dev/null
+++ b/docs/BillingHistoryDataSynthesisDetails.md
@@ -0,0 +1,32 @@
+# BillingHistoryDataSynthesisDetails
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_history** | [**List[BillingHistory]**](BillingHistory.md) | | [optional]
+**org_id** | **int** | | [optional]
+**pagination** | [**Pagination**](Pagination.md) | | [optional]
+**total_count** | **int** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.billing_history_data_synthesis_details import BillingHistoryDataSynthesisDetails
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BillingHistoryDataSynthesisDetails from a JSON string
+billing_history_data_synthesis_details_instance = BillingHistoryDataSynthesisDetails.from_json(json)
+# print the JSON string representation of the object
+print(BillingHistoryDataSynthesisDetails.to_json())
+
+# convert the object into a dict
+billing_history_data_synthesis_details_dict = billing_history_data_synthesis_details_instance.to_dict()
+# create an instance of BillingHistoryDataSynthesisDetails from a dict
+billing_history_data_synthesis_details_from_dict = BillingHistoryDataSynthesisDetails.from_dict(billing_history_data_synthesis_details_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BillingHistoryFineTuning.md b/docs/BillingHistoryFineTuning.md
new file mode 100644
index 0000000..b7889bb
--- /dev/null
+++ b/docs/BillingHistoryFineTuning.md
@@ -0,0 +1,32 @@
+# BillingHistoryFineTuning
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_history** | [**List[BillingHistory]**](BillingHistory.md) | | [optional]
+**org_id** | **int** | | [optional]
+**pagination** | [**Pagination**](Pagination.md) | | [optional]
+**total_count** | **int** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.billing_history_fine_tuning import BillingHistoryFineTuning
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BillingHistoryFineTuning from a JSON string
+billing_history_fine_tuning_instance = BillingHistoryFineTuning.from_json(json)
+# print the JSON string representation of the object
+print(BillingHistoryFineTuning.to_json())
+
+# convert the object into a dict
+billing_history_fine_tuning_dict = billing_history_fine_tuning_instance.to_dict()
+# create an instance of BillingHistoryFineTuning from a dict
+billing_history_fine_tuning_from_dict = BillingHistoryFineTuning.from_dict(billing_history_fine_tuning_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BillingHistoryModelEvalutationDetails.md b/docs/BillingHistoryModelEvalutationDetails.md
new file mode 100644
index 0000000..226e42f
--- /dev/null
+++ b/docs/BillingHistoryModelEvalutationDetails.md
@@ -0,0 +1,32 @@
+# BillingHistoryModelEvalutationDetails
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_history** | [**List[BillingHistory]**](BillingHistory.md) | | [optional]
+**org_id** | **int** | | [optional]
+**pagination** | [**Pagination**](Pagination.md) | | [optional]
+**total_count** | **int** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.billing_history_model_evalutation_details import BillingHistoryModelEvalutationDetails
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BillingHistoryModelEvalutationDetails from a JSON string
+billing_history_model_evalutation_details_instance = BillingHistoryModelEvalutationDetails.from_json(json)
+# print the JSON string representation of the object
+print(BillingHistoryModelEvalutationDetails.to_json())
+
+# convert the object into a dict
+billing_history_model_evalutation_details_dict = billing_history_model_evalutation_details_instance.to_dict()
+# create an instance of BillingHistoryModelEvalutationDetails from a dict
+billing_history_model_evalutation_details_from_dict = BillingHistoryModelEvalutationDetails.from_dict(billing_history_model_evalutation_details_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BillingHistoryServerlessInference.md b/docs/BillingHistoryServerlessInference.md
new file mode 100644
index 0000000..1b15210
--- /dev/null
+++ b/docs/BillingHistoryServerlessInference.md
@@ -0,0 +1,32 @@
+# BillingHistoryServerlessInference
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_history** | [**List[BillingHistory]**](BillingHistory.md) | | [optional]
+**org_id** | **int** | | [optional]
+**pagination** | [**Pagination**](Pagination.md) | | [optional]
+**total_count** | **int** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.billing_history_serverless_inference import BillingHistoryServerlessInference
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BillingHistoryServerlessInference from a JSON string
+billing_history_serverless_inference_instance = BillingHistoryServerlessInference.from_json(json)
+# print the JSON string representation of the object
+print(BillingHistoryServerlessInference.to_json())
+
+# convert the object into a dict
+billing_history_serverless_inference_dict = billing_history_serverless_inference_instance.to_dict()
+# create an instance of BillingHistoryServerlessInference from a dict
+billing_history_serverless_inference_from_dict = BillingHistoryServerlessInference.from_dict(billing_history_serverless_inference_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BillingHistoryServerlessInferenceDetails.md b/docs/BillingHistoryServerlessInferenceDetails.md
new file mode 100644
index 0000000..993ad04
--- /dev/null
+++ b/docs/BillingHistoryServerlessInferenceDetails.md
@@ -0,0 +1,32 @@
+# BillingHistoryServerlessInferenceDetails
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_history** | [**List[BillingHistory]**](BillingHistory.md) | | [optional]
+**org_id** | **int** | | [optional]
+**pagination** | [**Pagination**](Pagination.md) | | [optional]
+**total_count** | **int** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.billing_history_serverless_inference_details import BillingHistoryServerlessInferenceDetails
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of BillingHistoryServerlessInferenceDetails from a JSON string
+billing_history_serverless_inference_details_instance = BillingHistoryServerlessInferenceDetails.from_json(json)
+# print the JSON string representation of the object
+print(BillingHistoryServerlessInferenceDetails.to_json())
+
+# convert the object into a dict
+billing_history_serverless_inference_details_dict = billing_history_serverless_inference_details_instance.to_dict()
+# create an instance of BillingHistoryServerlessInferenceDetails from a dict
+billing_history_serverless_inference_details_from_dict = BillingHistoryServerlessInferenceDetails.from_dict(billing_history_serverless_inference_details_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/BillingImmuneResourcesResponse.md b/docs/BillingImmuneResourcesResponse.md
deleted file mode 100644
index 941b731..0000000
--- a/docs/BillingImmuneResourcesResponse.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# BillingImmuneResourcesResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**data** | [**List[Data]**](Data.md) | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.billing_immune_resources_response import BillingImmuneResourcesResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of BillingImmuneResourcesResponse from a JSON string
-billing_immune_resources_response_instance = BillingImmuneResourcesResponse.from_json(json)
-# print the JSON string representation of the object
-print(BillingImmuneResourcesResponse.to_json())
-
-# convert the object into a dict
-billing_immune_resources_response_dict = billing_immune_resources_response_instance.to_dict()
-# create an instance of BillingImmuneResourcesResponse from a dict
-billing_immune_resources_response_from_dict = BillingImmuneResourcesResponse.from_dict(billing_immune_resources_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/BillingResponse.md b/docs/BillingResponse.md
deleted file mode 100644
index b00788e..0000000
--- a/docs/BillingResponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# BillingResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**calculated_bills** | [**List[OrganizationObjectResponse]**](OrganizationObjectResponse.md) | | [optional]
-**calculation_time** | **datetime** | | [optional]
-**type** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.billing_response import BillingResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of BillingResponse from a JSON string
-billing_response_instance = BillingResponse.from_json(json)
-# print the JSON string representation of the object
-print(BillingResponse.to_json())
-
-# convert the object into a dict
-billing_response_dict = billing_response_instance.to_dict()
-# create an instance of BillingResponse from a dict
-billing_response_from_dict = BillingResponse.from_dict(billing_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/Billingmetricesfields.md b/docs/Billingmetricesfields.md
index 03c7d7f..1c62f31 100644
--- a/docs/Billingmetricesfields.md
+++ b/docs/Billingmetricesfields.md
@@ -1,4 +1,4 @@
-# Billingmetricesfields
+# BillingMetricesFields
## Properties
@@ -20,19 +20,19 @@ Name | Type | Description | Notes
## Example
```python
-from hyperstack.models.billingmetricesfields import Billingmetricesfields
+from hyperstack.models.billing_metrices_fields import BillingMetricesFields
# TODO update the JSON string below
json = "{}"
-# create an instance of Billingmetricesfields from a JSON string
-billingmetricesfields_instance = Billingmetricesfields.from_json(json)
+# create an instance of BillingMetricesFields from a JSON string
+billing_metrices_fields_instance = BillingMetricesFields.from_json(json)
# print the JSON string representation of the object
-print(Billingmetricesfields.to_json())
+print(BillingMetricesFields.to_json())
# convert the object into a dict
-billingmetricesfields_dict = billingmetricesfields_instance.to_dict()
-# create an instance of Billingmetricesfields from a dict
-billingmetricesfields_from_dict = Billingmetricesfields.from_dict(billingmetricesfields_dict)
+billing_metrices_fields_dict = billing_metrices_fields_instance.to_dict()
+# create an instance of BillingMetricesFields from a dict
+billing_metrices_fields_from_dict = BillingMetricesFields.from_dict(billing_metrices_fields_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/Billingmetricesresponse.md b/docs/Billingmetricesresponse.md
index 58d196d..f8c4740 100644
--- a/docs/Billingmetricesresponse.md
+++ b/docs/Billingmetricesresponse.md
@@ -1,30 +1,30 @@
-# Billingmetricesresponse
+# BillingMetricesResponse
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**data** | [**List[Billingmetricesfields]**](Billingmetricesfields.md) | | [optional]
+**data** | [**List[BillingMetricesFields]**](BillingMetricesFields.md) | | [optional]
**message** | **str** | | [optional]
**status** | **bool** | | [optional]
## Example
```python
-from hyperstack.models.billingmetricesresponse import Billingmetricesresponse
+from hyperstack.models.billing_metrices_response import BillingMetricesResponse
# TODO update the JSON string below
json = "{}"
-# create an instance of Billingmetricesresponse from a JSON string
-billingmetricesresponse_instance = Billingmetricesresponse.from_json(json)
+# create an instance of BillingMetricesResponse from a JSON string
+billing_metrices_response_instance = BillingMetricesResponse.from_json(json)
# print the JSON string representation of the object
-print(Billingmetricesresponse.to_json())
+print(BillingMetricesResponse.to_json())
# convert the object into a dict
-billingmetricesresponse_dict = billingmetricesresponse_instance.to_dict()
-# create an instance of Billingmetricesresponse from a dict
-billingmetricesresponse_from_dict = Billingmetricesresponse.from_dict(billingmetricesresponse_dict)
+billing_metrices_response_dict = billing_metrices_response_instance.to_dict()
+# create an instance of BillingMetricesResponse from a dict
+billing_metrices_response_from_dict = BillingMetricesResponse.from_dict(billing_metrices_response_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/CalculateApi.md b/docs/CalculateApi.md
index da1d3f1..04ce82d 100644
--- a/docs/CalculateApi.md
+++ b/docs/CalculateApi.md
@@ -4,11 +4,11 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**retrieve_billing_rate_for_resource**](CalculateApi.md#retrieve_billing_rate_for_resource) | **GET** /pricebook/calculate/resource/{resource_type}/{id} | Retrieve Billing Rate for Resource
+[**get_calculate2**](CalculateApi.md#get_calculate2) | **GET** /pricebook/calculate/resource/{resource_type}/{id} | Retrieve Billing Rate for Resource
-# **retrieve_billing_rate_for_resource**
-> ResourceBillingResponseForCustomer retrieve_billing_rate_for_resource(resource_type, id)
+# **get_calculate2**
+> ResourceBillingResponseForCustomer get_calculate2(resource_type, id)
Retrieve Billing Rate for Resource
@@ -17,7 +17,6 @@ Calculate the hourly billing rate of a specified resource by including the resou
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -42,12 +41,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -57,11 +50,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# Retrieve Billing Rate for Resource
- api_response = api_instance.retrieve_billing_rate_for_resource(resource_type, id)
- print("The response of CalculateApi->retrieve_billing_rate_for_resource:\n")
+ api_response = api_instance.get_calculate2(resource_type, id)
+ print("The response of CalculateApi->get_calculate2:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling CalculateApi->retrieve_billing_rate_for_resource: %s\n" % e)
+ print("Exception when calling CalculateApi->get_calculate2: %s\n" % e)
```
@@ -80,7 +73,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 08e1e35..40fcf8e 100644
--- a/docs/CallbacksApi.md
+++ b/docs/CallbacksApi.md
@@ -4,25 +4,24 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**attach_callback_to_virtual_machine**](CallbacksApi.md#attach_callback_to_virtual_machine) | **POST** /core/virtual-machines/{id}/attach-callback | Attach callback to virtual machine
-[**attach_callback_to_volume**](CallbacksApi.md#attach_callback_to_volume) | **POST** /core/volumes/{id}/attach-callback | Attach callback to volume
-[**delete_virtual_machine_callback**](CallbacksApi.md#delete_virtual_machine_callback) | **DELETE** /core/virtual-machines/{id}/delete-callback | Delete virtual machine callback
-[**delete_volume_callback**](CallbacksApi.md#delete_volume_callback) | **DELETE** /core/volumes/{id}/delete-callback | Delete volume callback
-[**update_virtual_machine_callback**](CallbacksApi.md#update_virtual_machine_callback) | **PUT** /core/virtual-machines/{id}/update-callback | Update virtual machine callback
-[**update_volume_callback**](CallbacksApi.md#update_volume_callback) | **PUT** /core/volumes/{id}/update-callback | Update volume callback
+[**attach_callback_to_virtual_machine**](CallbacksApi.md#attach_callback_to_virtual_machine) | **POST** /core/virtual-machines/{vm_id}/attach-callback | Attach callback to virtual machine
+[**attach_callback_to_volume**](CallbacksApi.md#attach_callback_to_volume) | **POST** /core/volumes/{volume_id}/attach-callback | Attach callback to volume
+[**delete_virtual_machine_callback**](CallbacksApi.md#delete_virtual_machine_callback) | **DELETE** /core/virtual-machines/{vm_id}/delete-callback | Delete virtual machine callback
+[**delete_volume_callback**](CallbacksApi.md#delete_volume_callback) | **DELETE** /core/volumes/{volume_id}/delete-callback | Delete volume callback
+[**update_virtual_machine_callback**](CallbacksApi.md#update_virtual_machine_callback) | **PUT** /core/virtual-machines/{vm_id}/update-callback | Update virtual machine callback
+[**update_volume_callback**](CallbacksApi.md#update_volume_callback) | **PUT** /core/volumes/{volume_id}/update-callback | Update volume callback
# **attach_callback_to_virtual_machine**
-> AttachCallbackResponse attach_callback_to_virtual_machine(id, payload)
+> AttachCallbackResponse attach_callback_to_virtual_machine(vm_id, 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -48,22 +47,16 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.CallbacksApi(api_client)
- id = 56 # int |
+ vm_id = 56 # int |
payload = hyperstack.AttachCallbackPayload() # AttachCallbackPayload |
try:
# Attach callback to virtual machine
- api_response = api_instance.attach_callback_to_virtual_machine(id, payload)
+ api_response = api_instance.attach_callback_to_virtual_machine(vm_id, payload)
print("The response of CallbacksApi->attach_callback_to_virtual_machine:\n")
pprint(api_response)
except Exception as e:
@@ -77,7 +70,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **vm_id** | **int**| |
**payload** | [**AttachCallbackPayload**](AttachCallbackPayload.md)| |
### Return type
@@ -86,7 +79,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -106,16 +99,15 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **attach_callback_to_volume**
-> AttachCallbackResponse attach_callback_to_volume(id, payload)
+> AttachCallbackResponse attach_callback_to_volume(volume_id, 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -141,22 +133,16 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.CallbacksApi(api_client)
- id = 56 # int |
+ volume_id = 56 # int |
payload = hyperstack.AttachCallbackPayload() # AttachCallbackPayload |
try:
# Attach callback to volume
- api_response = api_instance.attach_callback_to_volume(id, payload)
+ api_response = api_instance.attach_callback_to_volume(volume_id, payload)
print("The response of CallbacksApi->attach_callback_to_volume:\n")
pprint(api_response)
except Exception as e:
@@ -170,7 +156,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **volume_id** | **int**| |
**payload** | [**AttachCallbackPayload**](AttachCallbackPayload.md)| |
### Return type
@@ -179,7 +165,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -199,16 +185,15 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **delete_virtual_machine_callback**
-> ResponseModel delete_virtual_machine_callback(id)
+> ResponseModel delete_virtual_machine_callback(vm_id)
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -233,21 +218,15 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.CallbacksApi(api_client)
- id = 56 # int |
+ vm_id = 56 # int |
try:
# Delete virtual machine callback
- api_response = api_instance.delete_virtual_machine_callback(id)
+ api_response = api_instance.delete_virtual_machine_callback(vm_id)
print("The response of CallbacksApi->delete_virtual_machine_callback:\n")
pprint(api_response)
except Exception as e:
@@ -261,7 +240,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **vm_id** | **int**| |
### Return type
@@ -269,7 +248,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -289,16 +268,15 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **delete_volume_callback**
-> ResponseModel delete_volume_callback(id)
+> ResponseModel delete_volume_callback(volume_id)
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -323,21 +301,15 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.CallbacksApi(api_client)
- id = 56 # int |
+ volume_id = 56 # int |
try:
# Delete volume callback
- api_response = api_instance.delete_volume_callback(id)
+ api_response = api_instance.delete_volume_callback(volume_id)
print("The response of CallbacksApi->delete_volume_callback:\n")
pprint(api_response)
except Exception as e:
@@ -351,7 +323,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **volume_id** | **int**| |
### Return type
@@ -359,7 +331,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -379,16 +351,15 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **update_virtual_machine_callback**
-> AttachCallbackResponse update_virtual_machine_callback(id, payload)
+> AttachCallbackResponse update_virtual_machine_callback(vm_id, 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -414,22 +385,16 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.CallbacksApi(api_client)
- id = 56 # int |
+ vm_id = 56 # int |
payload = hyperstack.AttachCallbackPayload() # AttachCallbackPayload |
try:
# Update virtual machine callback
- api_response = api_instance.update_virtual_machine_callback(id, payload)
+ api_response = api_instance.update_virtual_machine_callback(vm_id, payload)
print("The response of CallbacksApi->update_virtual_machine_callback:\n")
pprint(api_response)
except Exception as e:
@@ -443,7 +408,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **vm_id** | **int**| |
**payload** | [**AttachCallbackPayload**](AttachCallbackPayload.md)| |
### Return type
@@ -452,7 +417,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -472,16 +437,15 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **update_volume_callback**
-> AttachCallbackResponse update_volume_callback(id, payload)
+> AttachCallbackResponse update_volume_callback(volume_id, 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -507,22 +471,16 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.CallbacksApi(api_client)
- id = 56 # int |
+ volume_id = 56 # int |
payload = hyperstack.AttachCallbackPayload() # AttachCallbackPayload |
try:
# Update volume callback
- api_response = api_instance.update_volume_callback(id, payload)
+ api_response = api_instance.update_volume_callback(volume_id, payload)
print("The response of CallbacksApi->update_volume_callback:\n")
pprint(api_response)
except Exception as e:
@@ -536,7 +494,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **volume_id** | **int**| |
**payload** | [**AttachCallbackPayload**](AttachCallbackPayload.md)| |
### Return type
@@ -545,7 +503,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 7218344..c09e200 100644
--- a/docs/ClusterEventsApi.md
+++ b/docs/ClusterEventsApi.md
@@ -15,7 +15,6 @@ Fetch all of a cluster events
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -40,12 +39,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -76,7 +69,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 c0e0844..e975377 100644
--- a/docs/ClusterFields.md
+++ b/docs/ClusterFields.md
@@ -12,9 +12,10 @@ Name | Type | Description | Notes
**keypair_name** | **str** | | [optional]
**kube_config** | **str** | | [optional]
**kubernetes_version** | **str** | | [optional]
+**master_flavor** | [**ClusterFlavorFields**](ClusterFlavorFields.md) | | [optional]
**name** | **str** | | [optional]
-**node_count** | **int** | | [optional]
-**node_flavor** | [**InstanceFlavorFields**](InstanceFlavorFields.md) | | [optional]
+**node_groups** | [**List[ClusterNodeGroupFields]**](ClusterNodeGroupFields.md) | | [optional]
+**nodes** | [**List[ClusterNodeFields]**](ClusterNodeFields.md) | | [optional]
**status** | **str** | | [optional]
**status_reason** | **str** | | [optional]
diff --git a/docs/ClusterFlavorFields.md b/docs/ClusterFlavorFields.md
new file mode 100644
index 0000000..fb7afaf
--- /dev/null
+++ b/docs/ClusterFlavorFields.md
@@ -0,0 +1,38 @@
+# ClusterFlavorFields
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**cpu** | **int** | | [optional]
+**disk** | **int** | | [optional]
+**ephemeral** | **int** | | [optional]
+**features** | **object** | | [optional]
+**gpu** | **str** | | [optional]
+**gpu_count** | **int** | | [optional]
+**id** | **int** | | [optional]
+**labels** | [**List[LableResonse]**](LableResonse.md) | | [optional]
+**name** | **str** | | [optional]
+**ram** | **float** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.cluster_flavor_fields import ClusterFlavorFields
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ClusterFlavorFields from a JSON string
+cluster_flavor_fields_instance = ClusterFlavorFields.from_json(json)
+# print the JSON string representation of the object
+print(ClusterFlavorFields.to_json())
+
+# convert the object into a dict
+cluster_flavor_fields_dict = cluster_flavor_fields_instance.to_dict()
+# create an instance of ClusterFlavorFields from a dict
+cluster_flavor_fields_from_dict = ClusterFlavorFields.from_dict(cluster_flavor_fields_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ClusterNodeFields.md b/docs/ClusterNodeFields.md
new file mode 100644
index 0000000..136d966
--- /dev/null
+++ b/docs/ClusterNodeFields.md
@@ -0,0 +1,39 @@
+# ClusterNodeFields
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**created_at** | **datetime** | | [optional]
+**id** | **int** | | [optional]
+**instance** | [**ClusterNodeInstanceFields**](ClusterNodeInstanceFields.md) | | [optional]
+**is_bastion** | **bool** | | [optional]
+**node_group_id** | **int** | | [optional]
+**node_group_name** | **str** | | [optional]
+**requires_public_ip** | **bool** | | [optional]
+**role** | **str** | | [optional]
+**status** | **str** | | [optional]
+**status_reason** | **str** | | [optional]
+**updated_at** | **datetime** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.cluster_node_fields import ClusterNodeFields
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ClusterNodeFields from a JSON string
+cluster_node_fields_instance = ClusterNodeFields.from_json(json)
+# print the JSON string representation of the object
+print(ClusterNodeFields.to_json())
+
+# convert the object into a dict
+cluster_node_fields_dict = cluster_node_fields_instance.to_dict()
+# create an instance of ClusterNodeFields from a dict
+cluster_node_fields_from_dict = ClusterNodeFields.from_dict(cluster_node_fields_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ClusterNodeGroupFields.md b/docs/ClusterNodeGroupFields.md
new file mode 100644
index 0000000..d9f3f13
--- /dev/null
+++ b/docs/ClusterNodeGroupFields.md
@@ -0,0 +1,35 @@
+# ClusterNodeGroupFields
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**count** | **int** | | [optional]
+**created_at** | **datetime** | | [optional]
+**flavor** | [**ClusterFlavorFields**](ClusterFlavorFields.md) | | [optional]
+**id** | **int** | | [optional]
+**name** | **str** | | [optional]
+**role** | **str** | | [optional]
+**updated_at** | **datetime** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.cluster_node_group_fields import ClusterNodeGroupFields
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ClusterNodeGroupFields from a JSON string
+cluster_node_group_fields_instance = ClusterNodeGroupFields.from_json(json)
+# print the JSON string representation of the object
+print(ClusterNodeGroupFields.to_json())
+
+# convert the object into a dict
+cluster_node_group_fields_dict = cluster_node_group_fields_instance.to_dict()
+# create an instance of ClusterNodeGroupFields from a dict
+cluster_node_group_fields_from_dict = ClusterNodeGroupFields.from_dict(cluster_node_group_fields_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ClusterNodeGroupsCreateResponse.md b/docs/ClusterNodeGroupsCreateResponse.md
new file mode 100644
index 0000000..413bfd3
--- /dev/null
+++ b/docs/ClusterNodeGroupsCreateResponse.md
@@ -0,0 +1,32 @@
+# ClusterNodeGroupsCreateResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | | [optional]
+**node_group** | [**ClusterNodeGroupFields**](ClusterNodeGroupFields.md) | | [optional]
+**nodes** | [**List[ClusterNodeFields]**](ClusterNodeFields.md) | | [optional]
+**status** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.cluster_node_groups_create_response import ClusterNodeGroupsCreateResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ClusterNodeGroupsCreateResponse from a JSON string
+cluster_node_groups_create_response_instance = ClusterNodeGroupsCreateResponse.from_json(json)
+# print the JSON string representation of the object
+print(ClusterNodeGroupsCreateResponse.to_json())
+
+# convert the object into a dict
+cluster_node_groups_create_response_dict = cluster_node_groups_create_response_instance.to_dict()
+# create an instance of ClusterNodeGroupsCreateResponse from a dict
+cluster_node_groups_create_response_from_dict = ClusterNodeGroupsCreateResponse.from_dict(cluster_node_groups_create_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ClusterNodeGroupsGetResponse.md b/docs/ClusterNodeGroupsGetResponse.md
new file mode 100644
index 0000000..42eab11
--- /dev/null
+++ b/docs/ClusterNodeGroupsGetResponse.md
@@ -0,0 +1,31 @@
+# ClusterNodeGroupsGetResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | | [optional]
+**node_group** | [**ClusterNodeGroupFields**](ClusterNodeGroupFields.md) | | [optional]
+**status** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.cluster_node_groups_get_response import ClusterNodeGroupsGetResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ClusterNodeGroupsGetResponse from a JSON string
+cluster_node_groups_get_response_instance = ClusterNodeGroupsGetResponse.from_json(json)
+# print the JSON string representation of the object
+print(ClusterNodeGroupsGetResponse.to_json())
+
+# convert the object into a dict
+cluster_node_groups_get_response_dict = cluster_node_groups_get_response_instance.to_dict()
+# create an instance of ClusterNodeGroupsGetResponse from a dict
+cluster_node_groups_get_response_from_dict = ClusterNodeGroupsGetResponse.from_dict(cluster_node_groups_get_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ClusterNodeGroupsListResponse.md b/docs/ClusterNodeGroupsListResponse.md
new file mode 100644
index 0000000..db64e58
--- /dev/null
+++ b/docs/ClusterNodeGroupsListResponse.md
@@ -0,0 +1,31 @@
+# ClusterNodeGroupsListResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | | [optional]
+**node_groups** | [**List[ClusterNodeGroupFields]**](ClusterNodeGroupFields.md) | | [optional]
+**status** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.cluster_node_groups_list_response import ClusterNodeGroupsListResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ClusterNodeGroupsListResponse from a JSON string
+cluster_node_groups_list_response_instance = ClusterNodeGroupsListResponse.from_json(json)
+# print the JSON string representation of the object
+print(ClusterNodeGroupsListResponse.to_json())
+
+# convert the object into a dict
+cluster_node_groups_list_response_dict = cluster_node_groups_list_response_instance.to_dict()
+# create an instance of ClusterNodeGroupsListResponse from a dict
+cluster_node_groups_list_response_from_dict = ClusterNodeGroupsListResponse.from_dict(cluster_node_groups_list_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ClusterNodeInstanceFields.md b/docs/ClusterNodeInstanceFields.md
new file mode 100644
index 0000000..4ccc6ef
--- /dev/null
+++ b/docs/ClusterNodeInstanceFields.md
@@ -0,0 +1,36 @@
+# ClusterNodeInstanceFields
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**contract_id** | **int** | | [optional]
+**fixed_ip** | **str** | | [optional]
+**floating_ip** | **str** | | [optional]
+**floating_ip_status** | **str** | | [optional]
+**id** | **int** | | [optional]
+**image_id** | **int** | | [optional]
+**name** | **str** | | [optional]
+**status** | **str** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.cluster_node_instance_fields import ClusterNodeInstanceFields
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ClusterNodeInstanceFields from a JSON string
+cluster_node_instance_fields_instance = ClusterNodeInstanceFields.from_json(json)
+# print the JSON string representation of the object
+print(ClusterNodeInstanceFields.to_json())
+
+# convert the object into a dict
+cluster_node_instance_fields_dict = cluster_node_instance_fields_instance.to_dict()
+# create an instance of ClusterNodeInstanceFields from a dict
+cluster_node_instance_fields_from_dict = ClusterNodeInstanceFields.from_dict(cluster_node_instance_fields_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ClusterNodesListResponse.md b/docs/ClusterNodesListResponse.md
new file mode 100644
index 0000000..b207b91
--- /dev/null
+++ b/docs/ClusterNodesListResponse.md
@@ -0,0 +1,31 @@
+# ClusterNodesListResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | | [optional]
+**nodes** | [**List[ClusterNodeFields]**](ClusterNodeFields.md) | | [optional]
+**status** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.cluster_nodes_list_response import ClusterNodesListResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ClusterNodesListResponse from a JSON string
+cluster_nodes_list_response_instance = ClusterNodesListResponse.from_json(json)
+# print the JSON string representation of the object
+print(ClusterNodesListResponse.to_json())
+
+# convert the object into a dict
+cluster_nodes_list_response_dict = cluster_nodes_list_response_instance.to_dict()
+# create an instance of ClusterNodesListResponse from a dict
+cluster_nodes_list_response_from_dict = ClusterNodesListResponse.from_dict(cluster_nodes_list_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ClusterVersion.md b/docs/ClusterVersion.md
new file mode 100644
index 0000000..a97ae8d
--- /dev/null
+++ b/docs/ClusterVersion.md
@@ -0,0 +1,34 @@
+# ClusterVersion
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**created_at** | **datetime** | | [optional]
+**id** | **int** | | [optional]
+**image** | **object** | | [optional]
+**region** | **object** | | [optional]
+**updated_at** | **datetime** | | [optional]
+**version** | **str** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.cluster_version import ClusterVersion
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ClusterVersion from a JSON string
+cluster_version_instance = ClusterVersion.from_json(json)
+# print the JSON string representation of the object
+print(ClusterVersion.to_json())
+
+# convert the object into a dict
+cluster_version_dict = cluster_version_instance.to_dict()
+# create an instance of ClusterVersion from a dict
+cluster_version_from_dict = ClusterVersion.from_dict(cluster_version_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ClusterVersions.md b/docs/ClusterVersions.md
index d39763b..5abbebe 100644
--- a/docs/ClusterVersions.md
+++ b/docs/ClusterVersions.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **str** | | [optional]
**status** | **bool** | | [optional]
-**versions** | **List[str]** | | [optional]
+**versions** | [**List[ClusterVersion]**](ClusterVersion.md) | | [optional]
## Example
diff --git a/docs/ClustersApi.md b/docs/ClustersApi.md
index 6c8dbcd..b3f74be 100644
--- a/docs/ClustersApi.md
+++ b/docs/ClustersApi.md
@@ -5,11 +5,19 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
[**create_cluster**](ClustersApi.md#create_cluster) | **POST** /core/clusters | Create Cluster
+[**create_node**](ClustersApi.md#create_node) | **POST** /core/clusters/{cluster_id}/nodes | Create Node
+[**create_node_group**](ClustersApi.md#create_node_group) | **POST** /core/clusters/{cluster_id}/node-groups | Create a node group in a cluster
[**delete_a_cluster**](ClustersApi.md#delete_a_cluster) | **DELETE** /core/clusters/{id} | Delete a cluster
+[**delete_a_node_group**](ClustersApi.md#delete_a_node_group) | **DELETE** /core/clusters/{cluster_id}/node-groups/{node_group_id} | Delete a node group
+[**delete_cluster_node**](ClustersApi.md#delete_cluster_node) | **DELETE** /core/clusters/{cluster_id}/nodes/{node_id} | Delete Cluster Node
[**fetch_cluster_name_availability**](ClustersApi.md#fetch_cluster_name_availability) | **GET** /core/clusters/name-availability/{name} | Fetch cluster name availability
-[**get_cluster_versions**](ClustersApi.md#get_cluster_versions) | **GET** /core/clusters/versions | GET Cluster Versions
+[**get_cluster_master_flavors**](ClustersApi.md#get_cluster_master_flavors) | **GET** /core/clusters/master-flavors | Get Cluster Master Flavors
+[**get_cluster_nodes**](ClustersApi.md#get_cluster_nodes) | **GET** /core/clusters/{cluster_id}/nodes | Get Cluster Nodes
+[**get_cluster_versions**](ClustersApi.md#get_cluster_versions) | **GET** /core/clusters/versions | List Cluster Versions
[**getting_cluster_detail**](ClustersApi.md#getting_cluster_detail) | **GET** /core/clusters/{id} | Getting Cluster Detail
[**list_clusters**](ClustersApi.md#list_clusters) | **GET** /core/clusters | List Clusters
+[**list_node_groups**](ClustersApi.md#list_node_groups) | **GET** /core/clusters/{cluster_id}/node-groups | List node groups for a cluster
+[**retrieve_a_node_group**](ClustersApi.md#retrieve_a_node_group) | **GET** /core/clusters/{cluster_id}/node-groups/{node_group_id} | Retrieve a node group in a cluster
# **create_cluster**
@@ -20,7 +28,6 @@ Create Cluster
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -46,25 +53,522 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.ClustersApi(api_client)
+ payload = hyperstack.CreateClusterPayload() # CreateClusterPayload |
+
+ try:
+ # Create Cluster
+ api_response = api_instance.create_cluster(payload)
+ print("The response of ClustersApi->create_cluster:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ClustersApi->create_cluster: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **payload** | [**CreateClusterPayload**](CreateClusterPayload.md)| |
+
+### Return type
+
+[**ClusterResponse**](ClusterResponse.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**409** | Conflict | - |
+**422** | Unprocessable entity | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **create_node**
+> ClusterNodesListResponse create_node(cluster_id, payload)
+
+Create Node
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.cluster_nodes_list_response import ClusterNodesListResponse
+from hyperstack.models.create_cluster_node_fields import CreateClusterNodeFields
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.ClustersApi(api_client)
+ cluster_id = 56 # int |
+ payload = hyperstack.CreateClusterNodeFields() # CreateClusterNodeFields |
+
+ try:
+ # Create Node
+ api_response = api_instance.create_node(cluster_id, payload)
+ print("The response of ClustersApi->create_node:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ClustersApi->create_node: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **cluster_id** | **int**| |
+ **payload** | [**CreateClusterNodeFields**](CreateClusterNodeFields.md)| |
+
+### Return type
+
+[**ClusterNodesListResponse**](ClusterNodesListResponse.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**409** | Conflict | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **create_node_group**
+> ClusterNodeGroupsCreateResponse create_node_group(cluster_id, payload)
+
+Create a node group in a cluster
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.cluster_node_groups_create_response import ClusterNodeGroupsCreateResponse
+from hyperstack.models.create_cluster_node_group_payload import CreateClusterNodeGroupPayload
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.ClustersApi(api_client)
+ cluster_id = 56 # int |
+ payload = hyperstack.CreateClusterNodeGroupPayload() # CreateClusterNodeGroupPayload |
+
+ try:
+ # Create a node group in a cluster
+ api_response = api_instance.create_node_group(cluster_id, payload)
+ print("The response of ClustersApi->create_node_group:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ClustersApi->create_node_group: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **cluster_id** | **int**| |
+ **payload** | [**CreateClusterNodeGroupPayload**](CreateClusterNodeGroupPayload.md)| |
+
+### Return type
+
+[**ClusterNodeGroupsCreateResponse**](ClusterNodeGroupsCreateResponse.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**201** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**409** | Conflict | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_a_cluster**
+> ResponseModel delete_a_cluster(id)
+
+Delete a cluster
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.response_model import ResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.ClustersApi(api_client)
+ id = 56 # int |
+
+ try:
+ # Delete a cluster
+ api_response = api_instance.delete_a_cluster(id)
+ print("The response of ClustersApi->delete_a_cluster:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ClustersApi->delete_a_cluster: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **int**| |
+
+### Return type
+
+[**ResponseModel**](ResponseModel.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_a_node_group**
+> ResponseModel delete_a_node_group(cluster_id, node_group_id)
+
+Delete a node group
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.response_model import ResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.ClustersApi(api_client)
+ cluster_id = 56 # int |
+ node_group_id = 56 # int |
+
+ try:
+ # Delete a node group
+ api_response = api_instance.delete_a_node_group(cluster_id, node_group_id)
+ print("The response of ClustersApi->delete_a_node_group:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ClustersApi->delete_a_node_group: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **cluster_id** | **int**| |
+ **node_group_id** | **int**| |
+
+### Return type
+
+[**ResponseModel**](ResponseModel.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**409** | Conflict | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_cluster_node**
+> ResponseModel delete_cluster_node(cluster_id, node_id)
+
+Delete Cluster Node
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.response_model import ResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.ClustersApi(api_client)
+ cluster_id = 56 # int |
+ node_id = 56 # int |
+
+ try:
+ # Delete Cluster Node
+ api_response = api_instance.delete_cluster_node(cluster_id, node_id)
+ print("The response of ClustersApi->delete_cluster_node:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ClustersApi->delete_cluster_node: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **cluster_id** | **int**| |
+ **node_id** | **int**| |
+
+### Return type
+
+[**ResponseModel**](ResponseModel.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **fetch_cluster_name_availability**
+> NameAvailableModel fetch_cluster_name_availability(name)
+
+Fetch cluster name availability
+
+Check if a Cluster name is available
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.name_available_model import NameAvailableModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.ClustersApi(api_client)
- payload = hyperstack.CreateClusterPayload() # CreateClusterPayload |
+ name = 'name_example' # str |
try:
- # Create Cluster
- api_response = api_instance.create_cluster(payload)
- print("The response of ClustersApi->create_cluster:\n")
+ # Fetch cluster name availability
+ api_response = api_instance.fetch_cluster_name_availability(name)
+ print("The response of ClustersApi->fetch_cluster_name_availability:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling ClustersApi->create_cluster: %s\n" % e)
+ print("Exception when calling ClustersApi->fetch_cluster_name_availability: %s\n" % e)
```
@@ -74,47 +578,45 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **payload** | [**CreateClusterPayload**](CreateClusterPayload.md)| |
+ **name** | **str**| |
### Return type
-[**ClusterResponse**](ClusterResponse.md)
+[**NameAvailableModel**](NameAvailableModel.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
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Success | - |
+**200** | Success | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**404** | Not Found | - |
-**409** | Conflict | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **delete_a_cluster**
-> ResponseModel delete_a_cluster(id)
+# **get_cluster_master_flavors**
+> MasterFlavorsResponse get_cluster_master_flavors()
-Delete a cluster
+Get Cluster Master Flavors
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.response_model import ResponseModel
+from hyperstack.models.master_flavors_response import MasterFlavorsResponse
from hyperstack.rest import ApiException
from pprint import pprint
@@ -135,43 +637,33 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.ClustersApi(api_client)
- id = 56 # int |
try:
- # Delete a cluster
- api_response = api_instance.delete_a_cluster(id)
- print("The response of ClustersApi->delete_a_cluster:\n")
+ # Get Cluster Master Flavors
+ api_response = api_instance.get_cluster_master_flavors()
+ print("The response of ClustersApi->get_cluster_master_flavors:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling ClustersApi->delete_a_cluster: %s\n" % e)
+ print("Exception when calling ClustersApi->get_cluster_master_flavors: %s\n" % e)
```
### Parameters
-
-Name | Type | Description | Notes
-------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+This endpoint does not need any parameter.
### Return type
-[**ResponseModel**](ResponseModel.md)
+[**MasterFlavorsResponse**](MasterFlavorsResponse.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -182,29 +674,25 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Success | - |
+**200** | Retrieved Flavors. | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
-**404** | Not Found | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **fetch_cluster_name_availability**
-> NameAvailableModel fetch_cluster_name_availability(name)
-
-Fetch cluster name availability
+# **get_cluster_nodes**
+> ClusterNodesListResponse get_cluster_nodes(cluster_id)
-Check if a Cluster name is available
+Get Cluster Nodes
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.name_available_model import NameAvailableModel
+from hyperstack.models.cluster_nodes_list_response import ClusterNodesListResponse
from hyperstack.rest import ApiException
from pprint import pprint
@@ -225,25 +713,19 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.ClustersApi(api_client)
- name = 'name_example' # str |
+ cluster_id = 56 # int |
try:
- # Fetch cluster name availability
- api_response = api_instance.fetch_cluster_name_availability(name)
- print("The response of ClustersApi->fetch_cluster_name_availability:\n")
+ # Get Cluster Nodes
+ api_response = api_instance.get_cluster_nodes(cluster_id)
+ print("The response of ClustersApi->get_cluster_nodes:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling ClustersApi->fetch_cluster_name_availability: %s\n" % e)
+ print("Exception when calling ClustersApi->get_cluster_nodes: %s\n" % e)
```
@@ -253,15 +735,15 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **name** | **str**| |
+ **cluster_id** | **int**| |
### Return type
-[**NameAvailableModel**](NameAvailableModel.md)
+[**ClusterNodesListResponse**](ClusterNodesListResponse.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -281,14 +763,15 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **get_cluster_versions**
-> ClusterVersions get_cluster_versions()
+> ClusterVersions get_cluster_versions(region=region)
-GET Cluster Versions
+List Cluster Versions
+
+Lists available Kubernetes versions, optionally filtered by region.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -313,20 +796,15 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.ClustersApi(api_client)
+ region = 'region_example' # str | Filter versions by region name (optional) (optional)
try:
- # GET Cluster Versions
- api_response = api_instance.get_cluster_versions()
+ # List Cluster Versions
+ api_response = api_instance.get_cluster_versions(region=region)
print("The response of ClustersApi->get_cluster_versions:\n")
pprint(api_response)
except Exception as e:
@@ -337,7 +815,10 @@ with hyperstack.ApiClient(configuration) as api_client:
### Parameters
-This endpoint does not need any parameter.
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **region** | **str**| Filter versions by region name (optional) | [optional]
### Return type
@@ -345,7 +826,7 @@ This endpoint does not need any parameter.
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -371,7 +852,6 @@ Getting Cluster Detail
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -396,12 +876,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -432,7 +906,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -452,14 +926,13 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **list_clusters**
-> ClusterListResponse list_clusters()
+> ClusterListResponse list_clusters(page=page, page_size=page_size, environment=environment, search=search)
List Clusters
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -484,20 +957,18 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.ClustersApi(api_client)
+ page = 56 # int | Page number for pagination (optional)
+ page_size = 56 # int | Number of items per page (optional)
+ environment = 'environment_example' # str | Environment Filter (optional)
+ search = 'search_example' # str | Search query to filter cluster by name (optional)
try:
# List Clusters
- api_response = api_instance.list_clusters()
+ api_response = api_instance.list_clusters(page=page, page_size=page_size, environment=environment, search=search)
print("The response of ClustersApi->list_clusters:\n")
pprint(api_response)
except Exception as e:
@@ -508,7 +979,13 @@ with hyperstack.ApiClient(configuration) as api_client:
### Parameters
-This endpoint does not need any parameter.
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **page** | **int**| Page number for pagination | [optional]
+ **page_size** | **int**| Number of items per page | [optional]
+ **environment** | **str**| Environment Filter | [optional]
+ **search** | **str**| Search query to filter cluster by name | [optional]
### Return type
@@ -516,7 +993,170 @@ 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
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **list_node_groups**
+> ClusterNodeGroupsListResponse list_node_groups(cluster_id)
+
+List node groups for a cluster
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.cluster_node_groups_list_response import ClusterNodeGroupsListResponse
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.ClustersApi(api_client)
+ cluster_id = 56 # int |
+
+ try:
+ # List node groups for a cluster
+ api_response = api_instance.list_node_groups(cluster_id)
+ print("The response of ClustersApi->list_node_groups:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ClustersApi->list_node_groups: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **cluster_id** | **int**| |
+
+### Return type
+
+[**ClusterNodeGroupsListResponse**](ClusterNodeGroupsListResponse.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **retrieve_a_node_group**
+> ClusterNodeGroupsGetResponse retrieve_a_node_group(cluster_id, node_group_id)
+
+Retrieve a node group in a cluster
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.cluster_node_groups_get_response import ClusterNodeGroupsGetResponse
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.ClustersApi(api_client)
+ cluster_id = 56 # int |
+ node_group_id = 56 # int |
+
+ try:
+ # Retrieve a node group in a cluster
+ api_response = api_instance.retrieve_a_node_group(cluster_id, node_group_id)
+ print("The response of ClustersApi->retrieve_a_node_group:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling ClustersApi->retrieve_a_node_group: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **cluster_id** | **int**| |
+ **node_group_id** | **int**| |
+
+### Return type
+
+[**ClusterNodeGroupsGetResponse**](ClusterNodeGroupsGetResponse.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -530,6 +1170,7 @@ This endpoint does not need any parameter.
**200** | Success | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
+**404** | Not Found | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/Colors.md b/docs/Colors.md
new file mode 100644
index 0000000..4303bc5
--- /dev/null
+++ b/docs/Colors.md
@@ -0,0 +1,30 @@
+# Colors
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**primary** | [**PrimaryColor**](PrimaryColor.md) | | [optional]
+**secondary** | [**SecondaryColor**](SecondaryColor.md) | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.colors import Colors
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of Colors from a JSON string
+colors_instance = Colors.from_json(json)
+# print the JSON string representation of the object
+print(Colors.to_json())
+
+# convert the object into a dict
+colors_dict = colors_instance.to_dict()
+# create an instance of Colors from a dict
+colors_from_dict = Colors.from_dict(colors_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ComplianceApi.md b/docs/ComplianceApi.md
index 5a3b1c3..0ab8dbf 100644
--- a/docs/ComplianceApi.md
+++ b/docs/ComplianceApi.md
@@ -6,7 +6,7 @@ Method | HTTP request | Description
------------- | ------------- | -------------
[**create_compliance**](ComplianceApi.md#create_compliance) | **POST** /core/compliance | Create compliance
[**delete_a_compliance**](ComplianceApi.md#delete_a_compliance) | **DELETE** /core/compliance/{gpu_model} | Delete a compliance
-[**retrieve_gpu_compliance**](ComplianceApi.md#retrieve_gpu_compliance) | **GET** /core/compliance | Retrieve GPU compliance
+[**retrieve_compliance**](ComplianceApi.md#retrieve_compliance) | **GET** /core/compliance | Retrieve GPU compliance
[**update_a_compliance**](ComplianceApi.md#update_a_compliance) | **PUT** /core/compliance | Update a compliance
@@ -18,7 +18,6 @@ Create compliance
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -44,12 +43,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -80,7 +73,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -109,7 +102,6 @@ Delete a compliance
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -134,12 +126,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -170,7 +156,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -189,17 +175,16 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_gpu_compliance**
-> ComplianceResponse retrieve_gpu_compliance(gpu=gpu)
+# **retrieve_compliance**
+> ComplianceResponse retrieve_compliance(gpu=gpu)
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -224,12 +209,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -238,11 +217,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# Retrieve GPU compliance
- api_response = api_instance.retrieve_gpu_compliance(gpu=gpu)
- print("The response of ComplianceApi->retrieve_gpu_compliance:\n")
+ api_response = api_instance.retrieve_compliance(gpu=gpu)
+ print("The response of ComplianceApi->retrieve_compliance:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling ComplianceApi->retrieve_gpu_compliance: %s\n" % e)
+ print("Exception when calling ComplianceApi->retrieve_compliance: %s\n" % e)
```
@@ -260,7 +239,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -288,7 +267,6 @@ Update a compliance
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -314,12 +292,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -350,7 +322,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 7c3f97f..0000000
--- a/docs/ContractBillingHistory.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# ContractBillingHistory
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**attributes** | [**ContractBillingHistoryResponseAttributes**](ContractBillingHistoryResponseAttributes.md) | | [optional]
-**metrics** | [**ContractlBillingHistoryResponseMetrics**](ContractlBillingHistoryResponseMetrics.md) | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.contract_billing_history import ContractBillingHistory
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of ContractBillingHistory from a JSON string
-contract_billing_history_instance = ContractBillingHistory.from_json(json)
-# print the JSON string representation of the object
-print(ContractBillingHistory.to_json())
-
-# convert the object into a dict
-contract_billing_history_dict = contract_billing_history_instance.to_dict()
-# create an instance of ContractBillingHistory from a dict
-contract_billing_history_from_dict = ContractBillingHistory.from_dict(contract_billing_history_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ContractBillingHistoryResponseAttributes.md b/docs/ContractBillingHistoryResponseAttributes.md
deleted file mode 100644
index 0052a16..0000000
--- a/docs/ContractBillingHistoryResponseAttributes.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# ContractBillingHistoryResponseAttributes
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**description** | **str** | | [optional]
-**end_date** | **str** | | [optional]
-**gpu_count** | **int** | | [optional]
-**gpu_name** | **str** | | [optional]
-**id** | **str** | | [optional]
-**infrahub_id** | **int** | | [optional]
-**price_per_hour** | **float** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.contract_billing_history_response_attributes import ContractBillingHistoryResponseAttributes
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of ContractBillingHistoryResponseAttributes from a JSON string
-contract_billing_history_response_attributes_instance = ContractBillingHistoryResponseAttributes.from_json(json)
-# print the JSON string representation of the object
-print(ContractBillingHistoryResponseAttributes.to_json())
-
-# convert the object into a dict
-contract_billing_history_response_attributes_dict = contract_billing_history_response_attributes_instance.to_dict()
-# create an instance of ContractBillingHistoryResponseAttributes from a dict
-contract_billing_history_response_attributes_from_dict = ContractBillingHistoryResponseAttributes.from_dict(contract_billing_history_response_attributes_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ContractBillingHistoryResponseModel.md b/docs/ContractBillingHistoryResponseModel.md
deleted file mode 100644
index b3c7b13..0000000
--- a/docs/ContractBillingHistoryResponseModel.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# ContractBillingHistoryResponseModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**billing_history_contract** | [**ContractBillingHistory**](ContractBillingHistory.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.contract_billing_history_response_model import ContractBillingHistoryResponseModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of ContractBillingHistoryResponseModel from a JSON string
-contract_billing_history_response_model_instance = ContractBillingHistoryResponseModel.from_json(json)
-# print the JSON string representation of the object
-print(ContractBillingHistoryResponseModel.to_json())
-
-# convert the object into a dict
-contract_billing_history_response_model_dict = contract_billing_history_response_model_instance.to_dict()
-# create an instance of ContractBillingHistoryResponseModel from a dict
-contract_billing_history_response_model_from_dict = ContractBillingHistoryResponseModel.from_dict(contract_billing_history_response_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ContractChangePayload.md b/docs/ContractChangePayload.md
deleted file mode 100644
index a25139e..0000000
--- a/docs/ContractChangePayload.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# ContractChangePayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**changes** | [**List[FieldChange]**](FieldChange.md) | List of field changes for 'updated' type | [optional]
-**id** | **int** | The ID of the contract |
-**org_id** | **int** | The ORG ID of the contract |
-**type** | **str** | Purpose of the change: created, deleted, expired, or updated |
-
-## Example
-
-```python
-from hyperstack.models.contract_change_payload import ContractChangePayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of ContractChangePayload from a JSON string
-contract_change_payload_instance = ContractChangePayload.from_json(json)
-# print the JSON string representation of the object
-print(ContractChangePayload.to_json())
-
-# convert the object into a dict
-contract_change_payload_dict = contract_change_payload_instance.to_dict()
-# create an instance of ContractChangePayload from a dict
-contract_change_payload_from_dict = ContractChangePayload.from_dict(contract_change_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ContractDiscountPlanFields.md b/docs/ContractDiscountPlanFields.md
index 914afc6..b1b1f73 100644
--- a/docs/ContractDiscountPlanFields.md
+++ b/docs/ContractDiscountPlanFields.md
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
**discount_status** | **str** | | [optional]
**discount_type** | **str** | | [optional]
**id** | **int** | | [optional]
+**remaining_count** | **int** | | [optional]
**resource_count** | **int** | | [optional]
**resource_id** | **int** | | [optional]
**resource_name** | **str** | | [optional]
diff --git a/docs/ContractEligibleInstanceFields.md b/docs/ContractEligibleInstanceFields.md
deleted file mode 100644
index fbab1e7..0000000
--- a/docs/ContractEligibleInstanceFields.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# ContractEligibleInstanceFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**contract_id** | **int** | | [optional]
-**host** | **str** | | [optional]
-**id** | **int** | | [optional]
-**name** | **str** | | [optional]
-**openstack_id** | **str** | | [optional]
-**public_ip** | **str** | | [optional]
-**status** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.contract_eligible_instance_fields import ContractEligibleInstanceFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of ContractEligibleInstanceFields from a JSON string
-contract_eligible_instance_fields_instance = ContractEligibleInstanceFields.from_json(json)
-# print the JSON string representation of the object
-print(ContractEligibleInstanceFields.to_json())
-
-# convert the object into a dict
-contract_eligible_instance_fields_dict = contract_eligible_instance_fields_instance.to_dict()
-# create an instance of ContractEligibleInstanceFields from a dict
-contract_eligible_instance_fields_from_dict = ContractEligibleInstanceFields.from_dict(contract_eligible_instance_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ContractEligibleInstancesResponse.md b/docs/ContractEligibleInstancesResponse.md
deleted file mode 100644
index e19a908..0000000
--- a/docs/ContractEligibleInstancesResponse.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# ContractEligibleInstancesResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**instance_count** | **int** | | [optional]
-**instances** | [**List[ContractEligibleInstanceFields]**](ContractEligibleInstanceFields.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.contract_eligible_instances_response import ContractEligibleInstancesResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of ContractEligibleInstancesResponse from a JSON string
-contract_eligible_instances_response_instance = ContractEligibleInstancesResponse.from_json(json)
-# print the JSON string representation of the object
-print(ContractEligibleInstancesResponse.to_json())
-
-# convert the object into a dict
-contract_eligible_instances_response_dict = contract_eligible_instances_response_instance.to_dict()
-# create an instance of ContractEligibleInstancesResponse from a dict
-contract_eligible_instances_response_from_dict = ContractEligibleInstancesResponse.from_dict(contract_eligible_instances_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ContractEventCreateModel.md b/docs/ContractEventCreateModel.md
deleted file mode 100644
index 5c35102..0000000
--- a/docs/ContractEventCreateModel.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# ContractEventCreateModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **str** | Message for the event |
-**reason** | **str** | Reason for the event |
-**type** | **str** | Event type |
-
-## Example
-
-```python
-from hyperstack.models.contract_event_create_model import ContractEventCreateModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of ContractEventCreateModel from a JSON string
-contract_event_create_model_instance = ContractEventCreateModel.from_json(json)
-# print the JSON string representation of the object
-print(ContractEventCreateModel.to_json())
-
-# convert the object into a dict
-contract_event_create_model_dict = contract_event_create_model_instance.to_dict()
-# create an instance of ContractEventCreateModel from a dict
-contract_event_create_model_from_dict = ContractEventCreateModel.from_dict(contract_event_create_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ContractInstanceFields.md b/docs/ContractInstanceFields.md
index 748520e..d4da129 100644
--- a/docs/ContractInstanceFields.md
+++ b/docs/ContractInstanceFields.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**cluster** | [**ClusterFields**](ClusterFields.md) | | [optional]
**created_at** | **datetime** | | [optional]
**flavor_name** | **str** | | [optional]
**gpu_count** | **int** | | [optional]
diff --git a/docs/ContractResourcePayload.md b/docs/ContractResourcePayload.md
deleted file mode 100644
index 6c71154..0000000
--- a/docs/ContractResourcePayload.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# ContractResourcePayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**discount_amount** | **float** | | [optional]
-**discount_percent** | **float** | | [optional]
-**discount_type** | **str** | |
-**resource_count** | **int** | | [optional]
-**resource_id** | **int** | |
-
-## Example
-
-```python
-from hyperstack.models.contract_resource_payload import ContractResourcePayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of ContractResourcePayload from a JSON string
-contract_resource_payload_instance = ContractResourcePayload.from_json(json)
-# print the JSON string representation of the object
-print(ContractResourcePayload.to_json())
-
-# convert the object into a dict
-contract_resource_payload_dict = contract_resource_payload_instance.to_dict()
-# create an instance of ContractResourcePayload from a dict
-contract_resource_payload_from_dict = ContractResourcePayload.from_dict(contract_resource_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ContractlBillingHistoryResponseMetrics.md b/docs/ContractlBillingHistoryResponseMetrics.md
deleted file mode 100644
index 49aa75e..0000000
--- a/docs/ContractlBillingHistoryResponseMetrics.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# ContractlBillingHistoryResponseMetrics
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**incurred_bill** | **float** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.contractl_billing_history_response_metrics import ContractlBillingHistoryResponseMetrics
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of ContractlBillingHistoryResponseMetrics from a JSON string
-contractl_billing_history_response_metrics_instance = ContractlBillingHistoryResponseMetrics.from_json(json)
-# print the JSON string representation of the object
-print(ContractlBillingHistoryResponseMetrics.to_json())
-
-# convert the object into a dict
-contractl_billing_history_response_metrics_dict = contractl_billing_history_response_metrics_instance.to_dict()
-# create an instance of ContractlBillingHistoryResponseMetrics from a dict
-contractl_billing_history_response_metrics_from_dict = ContractlBillingHistoryResponseMetrics.from_dict(contractl_billing_history_response_metrics_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CreateClusterNodeFields.md b/docs/CreateClusterNodeFields.md
new file mode 100644
index 0000000..6d6fa26
--- /dev/null
+++ b/docs/CreateClusterNodeFields.md
@@ -0,0 +1,31 @@
+# CreateClusterNodeFields
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**count** | **int** | | [optional]
+**node_group** | **str** | | [optional]
+**role** | **str** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.create_cluster_node_fields import CreateClusterNodeFields
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateClusterNodeFields from a JSON string
+create_cluster_node_fields_instance = CreateClusterNodeFields.from_json(json)
+# print the JSON string representation of the object
+print(CreateClusterNodeFields.to_json())
+
+# convert the object into a dict
+create_cluster_node_fields_dict = create_cluster_node_fields_instance.to_dict()
+# create an instance of CreateClusterNodeFields from a dict
+create_cluster_node_fields_from_dict = CreateClusterNodeFields.from_dict(create_cluster_node_fields_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateClusterNodeGroupPayload.md b/docs/CreateClusterNodeGroupPayload.md
new file mode 100644
index 0000000..07933a1
--- /dev/null
+++ b/docs/CreateClusterNodeGroupPayload.md
@@ -0,0 +1,31 @@
+# CreateClusterNodeGroupPayload
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**count** | **int** | | [optional]
+**flavor_name** | **str** | |
+**name** | **str** | |
+
+## Example
+
+```python
+from hyperstack.models.create_cluster_node_group_payload import CreateClusterNodeGroupPayload
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of CreateClusterNodeGroupPayload from a JSON string
+create_cluster_node_group_payload_instance = CreateClusterNodeGroupPayload.from_json(json)
+# print the JSON string representation of the object
+print(CreateClusterNodeGroupPayload.to_json())
+
+# convert the object into a dict
+create_cluster_node_group_payload_dict = create_cluster_node_group_payload_instance.to_dict()
+# create an instance of CreateClusterNodeGroupPayload from a dict
+create_cluster_node_group_payload_from_dict = CreateClusterNodeGroupPayload.from_dict(create_cluster_node_group_payload_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/CreateClusterPayload.md b/docs/CreateClusterPayload.md
index 463c9c8..5b05171 100644
--- a/docs/CreateClusterPayload.md
+++ b/docs/CreateClusterPayload.md
@@ -5,14 +5,16 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**deployment_mode** | **str** | | [optional] [default to 'full']
**environment_name** | **str** | |
-**image_name** | **str** | |
**keypair_name** | **str** | |
**kubernetes_version** | **str** | |
+**master_count** | **int** | | [optional]
**master_flavor_name** | **str** | |
**name** | **str** | |
-**node_count** | **int** | |
-**node_flavor_name** | **str** | |
+**node_count** | **int** | | [optional]
+**node_flavor_name** | **str** | | [optional]
+**node_groups** | [**List[CreateClusterNodeGroupPayload]**](CreateClusterNodeGroupPayload.md) | | [optional]
## Example
diff --git a/docs/CreateContractFields.md b/docs/CreateContractFields.md
deleted file mode 100644
index 4aa15f6..0000000
--- a/docs/CreateContractFields.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# CreateContractFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**created_at** | **datetime** | | [optional]
-**description** | **str** | | [optional]
-**discount_plans** | [**List[ContractDiscountPlanFields]**](ContractDiscountPlanFields.md) | | [optional]
-**end_date** | **datetime** | | [optional]
-**expiration_policy** | **int** | | [optional]
-**id** | **int** | | [optional]
-**org_id** | **int** | | [optional]
-**start_date** | **datetime** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.create_contract_fields import CreateContractFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of CreateContractFields from a JSON string
-create_contract_fields_instance = CreateContractFields.from_json(json)
-# print the JSON string representation of the object
-print(CreateContractFields.to_json())
-
-# convert the object into a dict
-create_contract_fields_dict = create_contract_fields_instance.to_dict()
-# create an instance of CreateContractFields from a dict
-create_contract_fields_from_dict = CreateContractFields.from_dict(create_contract_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CreateContractPayload.md b/docs/CreateContractPayload.md
deleted file mode 100644
index 8971d9d..0000000
--- a/docs/CreateContractPayload.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# CreateContractPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**description** | **str** | | [optional]
-**discount_resources** | [**List[ContractResourcePayload]**](ContractResourcePayload.md) | |
-**end_date** | **datetime** | | [optional]
-**expiration_policy** | **int** | |
-**org_id** | **int** | |
-**start_date** | **datetime** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.create_contract_payload import CreateContractPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of CreateContractPayload from a JSON string
-create_contract_payload_instance = CreateContractPayload.from_json(json)
-# print the JSON string representation of the object
-print(CreateContractPayload.to_json())
-
-# convert the object into a dict
-create_contract_payload_dict = create_contract_payload_instance.to_dict()
-# create an instance of CreateContractPayload from a dict
-create_contract_payload_from_dict = CreateContractPayload.from_dict(create_contract_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CreateDiscountResponse.md b/docs/CreateDiscountResponse.md
deleted file mode 100644
index 391b314..0000000
--- a/docs/CreateDiscountResponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# CreateDiscountResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**discount_plan** | [**InsertDiscountPlanFields**](InsertDiscountPlanFields.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.create_discount_response import CreateDiscountResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of CreateDiscountResponse from a JSON string
-create_discount_response_instance = CreateDiscountResponse.from_json(json)
-# print the JSON string representation of the object
-print(CreateDiscountResponse.to_json())
-
-# convert the object into a dict
-create_discount_response_dict = create_discount_response_instance.to_dict()
-# create an instance of CreateDiscountResponse from a dict
-create_discount_response_from_dict = CreateDiscountResponse.from_dict(create_discount_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CreateDiscountsPayload.md b/docs/CreateDiscountsPayload.md
deleted file mode 100644
index fac9859..0000000
--- a/docs/CreateDiscountsPayload.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# CreateDiscountsPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**customers** | [**List[CustomerPayload]**](CustomerPayload.md) | |
-**discount_resources** | [**List[DiscountResourcePayload]**](DiscountResourcePayload.md) | |
-**discount_status** | **str** | |
-**end_date** | **datetime** | | [optional]
-**start_date** | **datetime** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.create_discounts_payload import CreateDiscountsPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of CreateDiscountsPayload from a JSON string
-create_discounts_payload_instance = CreateDiscountsPayload.from_json(json)
-# print the JSON string representation of the object
-print(CreateDiscountsPayload.to_json())
-
-# convert the object into a dict
-create_discounts_payload_dict = create_discounts_payload_instance.to_dict()
-# create an instance of CreateDiscountsPayload from a dict
-create_discounts_payload_from_dict = CreateDiscountsPayload.from_dict(create_discounts_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CreateEnvironment.md b/docs/CreateEnvironment.md
index aef523e..f89e6a7 100644
--- a/docs/CreateEnvironment.md
+++ b/docs/CreateEnvironment.md
@@ -6,7 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**name** | **str** | The name of the environment being created. |
-**region** | **str** | 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** | **str** | 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). |
## Example
diff --git a/docs/CreateGPU.md b/docs/CreateGPU.md
deleted file mode 100644
index e46e6ac..0000000
--- a/docs/CreateGPU.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# CreateGPU
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**example_metadata** | **str** | A valid JSON string. | [optional]
-**name** | **str** | |
-**regions** | **List[str]** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.create_gpu import CreateGPU
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of CreateGPU from a JSON string
-create_gpu_instance = CreateGPU.from_json(json)
-# print the JSON string representation of the object
-print(CreateGPU.to_json())
-
-# convert the object into a dict
-create_gpu_dict = create_gpu_instance.to_dict()
-# create an instance of CreateGPU from a dict
-create_gpu_from_dict = CreateGPU.from_dict(create_gpu_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CreateInstancesPayload.md b/docs/CreateInstancesPayload.md
index 88da83d..33efc9a 100644
--- a/docs/CreateInstancesPayload.md
+++ b/docs/CreateInstancesPayload.md
@@ -5,21 +5,21 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**assign_floating_ip** | **bool** | 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]
-**callback_url** | **str** | 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]
+**assign_floating_ip** | **bool** | 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]
+**callback_url** | **str** | 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** | **int** | The number of virtual machines to be created. |
**create_bootable_volume** | **bool** | 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]
**enable_port_randomization** | **bool** | Indicates whether to enable port randomization.This setting is only effective if 'assign_floating_ip' is true. Defaults to true. | [optional] [default to True]
-**environment_name** | **str** | The name of the [environment](https://infrahub-doc.nexgencloud.com/docs/features/environments-available-features) in which the virtual machine is to be created. |
+**environment_name** | **str** | 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]
-**flavor_name** | **str** | The name of the GPU hardware configuration ([flavor](https://infrahub-doc.nexgencloud.com/docs/hardware/flavors)) for the virtual machines being created. |
-**image_name** | **str** | 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]
-**key_name** | **str** | 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). |
+**flavor_name** | **str** | The name of the GPU hardware configuration ([flavor](https://docs.hyperstack.cloud/docs/hardware/flavors)) for the virtual machines being created. |
+**image_name** | **str** | 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]
+**key_name** | **str** | 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** | **List[str]** | | [optional]
**name** | **str** | The name of the virtual machine being created. |
**profile** | [**ProfileObjectFields**](ProfileObjectFields.md) | | [optional]
**security_rules** | [**List[CreateSecurityRulePayload]**](CreateSecurityRulePayload.md) | | [optional]
-**user_data** | **str** | 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]
+**user_data** | **str** | 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]
**volume_name** | **str** | The names of the volume(s) to be attached to the virtual machine being created. | [optional]
## Example
diff --git a/docs/CreateProfilePayload.md b/docs/CreateProfilePayload.md
index f6b8237..c58b028 100644
--- a/docs/CreateProfilePayload.md
+++ b/docs/CreateProfilePayload.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**data** | **Dict[str, str]** | The data object which contains the configuration of the virtual machine profile being created. |
+**data** | **Dict[str, str]** | The data object containing the configuration details of the virtual machine profile being created. |
**description** | **str** | The optional description for the profile being created. | [optional]
**name** | **str** | The name of the profile being created. |
diff --git a/docs/CreateSnapshotPayload.md b/docs/CreateSnapshotPayload.md
index fab17d1..931400e 100644
--- a/docs/CreateSnapshotPayload.md
+++ b/docs/CreateSnapshotPayload.md
@@ -6,7 +6,6 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**description** | **str** | description |
-**is_image** | **bool** | Indicates if the snapshot is an image |
**labels** | **List[str]** | Labels associated with snapshot | [optional]
**name** | **str** | Snapshot name |
diff --git a/docs/CreateUpdatePermissionPayload.md b/docs/CreateUpdatePermissionPayload.md
deleted file mode 100644
index 7c88901..0000000
--- a/docs/CreateUpdatePermissionPayload.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# CreateUpdatePermissionPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**endpoint** | **str** | |
-**method** | **str** | |
-**permission** | **str** | |
-**resource** | **str** | |
-
-## Example
-
-```python
-from hyperstack.models.create_update_permission_payload import CreateUpdatePermissionPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of CreateUpdatePermissionPayload from a JSON string
-create_update_permission_payload_instance = CreateUpdatePermissionPayload.from_json(json)
-# print the JSON string representation of the object
-print(CreateUpdatePermissionPayload.to_json())
-
-# convert the object into a dict
-create_update_permission_payload_dict = create_update_permission_payload_instance.to_dict()
-# create an instance of CreateUpdatePermissionPayload from a dict
-create_update_permission_payload_from_dict = CreateUpdatePermissionPayload.from_dict(create_update_permission_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CreateUpdatePermissionResponseModel.md b/docs/CreateUpdatePermissionResponseModel.md
deleted file mode 100644
index 754c42c..0000000
--- a/docs/CreateUpdatePermissionResponseModel.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# CreateUpdatePermissionResponseModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **str** | | [optional]
-**permission** | [**PermissionFields**](PermissionFields.md) | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.create_update_permission_response_model import CreateUpdatePermissionResponseModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of CreateUpdatePermissionResponseModel from a JSON string
-create_update_permission_response_model_instance = CreateUpdatePermissionResponseModel.from_json(json)
-# print the JSON string representation of the object
-print(CreateUpdatePermissionResponseModel.to_json())
-
-# convert the object into a dict
-create_update_permission_response_model_dict = create_update_permission_response_model_instance.to_dict()
-# create an instance of CreateUpdatePermissionResponseModel from a dict
-create_update_permission_response_model_from_dict = CreateUpdatePermissionResponseModel.from_dict(create_update_permission_response_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CreateUpdatePolicyPayload.md b/docs/CreateUpdatePolicyPayload.md
deleted file mode 100644
index 575b3a5..0000000
--- a/docs/CreateUpdatePolicyPayload.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# CreateUpdatePolicyPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**description** | **str** | |
-**is_public** | **bool** | |
-**name** | **str** | |
-**permissions** | **List[int]** | |
-
-## Example
-
-```python
-from hyperstack.models.create_update_policy_payload import CreateUpdatePolicyPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of CreateUpdatePolicyPayload from a JSON string
-create_update_policy_payload_instance = CreateUpdatePolicyPayload.from_json(json)
-# print the JSON string representation of the object
-print(CreateUpdatePolicyPayload.to_json())
-
-# convert the object into a dict
-create_update_policy_payload_dict = create_update_policy_payload_instance.to_dict()
-# create an instance of CreateUpdatePolicyPayload from a dict
-create_update_policy_payload_from_dict = CreateUpdatePolicyPayload.from_dict(create_update_policy_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CreateUpdatePolicyResponseModel.md b/docs/CreateUpdatePolicyResponseModel.md
deleted file mode 100644
index 1b57812..0000000
--- a/docs/CreateUpdatePolicyResponseModel.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# CreateUpdatePolicyResponseModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **str** | | [optional]
-**policy** | [**PolicyFields**](PolicyFields.md) | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.create_update_policy_response_model import CreateUpdatePolicyResponseModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of CreateUpdatePolicyResponseModel from a JSON string
-create_update_policy_response_model_instance = CreateUpdatePolicyResponseModel.from_json(json)
-# print the JSON string representation of the object
-print(CreateUpdatePolicyResponseModel.to_json())
-
-# convert the object into a dict
-create_update_policy_response_model_dict = create_update_policy_response_model_instance.to_dict()
-# create an instance of CreateUpdatePolicyResponseModel from a dict
-create_update_policy_response_model_from_dict = CreateUpdatePolicyResponseModel.from_dict(create_update_policy_response_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CreateVolumePayload.md b/docs/CreateVolumePayload.md
index ba4cc8a..a6ab9eb 100644
--- a/docs/CreateVolumePayload.md
+++ b/docs/CreateVolumePayload.md
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**callback_url** | **str** | 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** | **str** | A brief description or comment about the volume. | [optional]
-**environment_name** | **str** | The name of the [environment](https://infrahub-doc.nexgencloud.com/docs/features/environments-available-features) within which the volume is being created. |
+**environment_name** | **str** | The name of the [environment](https://docs.hyperstack.cloud/docs/api-reference/core-resources/environments/) within which the volume is being created. |
**image_id** | **int** | 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** | **str** | The name of the volume being created. |
**size** | **int** | The size of the volume in GB. 1048576GB storage capacity per volume. |
diff --git a/docs/CreditApi.md b/docs/CreditApi.md
index 162f895..a2579c9 100644
--- a/docs/CreditApi.md
+++ b/docs/CreditApi.md
@@ -4,22 +4,23 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**get_view_credit_and_threshold**](CreditApi.md#get_view_credit_and_threshold) | **GET** /billing/user-credit/credit | GET: View credit and threshold
+[**get_credit2**](CreditApi.md#get_credit2) | **GET** /billing/user-credit/credit | GET: View credit and threshold
-# **get_view_credit_and_threshold**
-> Getcreditandthresholdinfoinresponse get_view_credit_and_threshold()
+# **get_credit2**
+> GetCreditAndThresholdInfoInResponse get_credit2()
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.getcreditandthresholdinfoinresponse import Getcreditandthresholdinfoinresponse
+from hyperstack.models.get_credit_and_threshold_info_in_response import GetCreditAndThresholdInfoInResponse
from hyperstack.rest import ApiException
from pprint import pprint
@@ -40,12 +41,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -53,11 +48,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# GET: View credit and threshold
- api_response = api_instance.get_view_credit_and_threshold()
- print("The response of CreditApi->get_view_credit_and_threshold:\n")
+ api_response = api_instance.get_credit2()
+ print("The response of CreditApi->get_credit2:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling CreditApi->get_view_credit_and_threshold: %s\n" % e)
+ print("Exception when calling CreditApi->get_credit2: %s\n" % e)
```
@@ -68,11 +63,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 4ebaf72..0000000
--- a/docs/Creditrechargelimitfield.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# Creditrechargelimitfield
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**credit_granted** | **float** | | [optional]
-**credit_limit** | **float** | | [optional]
-**organization_id** | **int** | | [optional]
-**user_id** | **int** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.creditrechargelimitfield import Creditrechargelimitfield
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of Creditrechargelimitfield from a JSON string
-creditrechargelimitfield_instance = Creditrechargelimitfield.from_json(json)
-# print the JSON string representation of the object
-print(Creditrechargelimitfield.to_json())
-
-# convert the object into a dict
-creditrechargelimitfield_dict = creditrechargelimitfield_instance.to_dict()
-# create an instance of Creditrechargelimitfield from a dict
-creditrechargelimitfield_from_dict = Creditrechargelimitfield.from_dict(creditrechargelimitfield_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/Creditrechargelimitresponse.md b/docs/Creditrechargelimitresponse.md
deleted file mode 100644
index da63ee6..0000000
--- a/docs/Creditrechargelimitresponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# Creditrechargelimitresponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**data** | [**List[Creditrechargelimitfield]**](Creditrechargelimitfield.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.creditrechargelimitresponse import Creditrechargelimitresponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of Creditrechargelimitresponse from a JSON string
-creditrechargelimitresponse_instance = Creditrechargelimitresponse.from_json(json)
-# print the JSON string representation of the object
-print(Creditrechargelimitresponse.to_json())
-
-# convert the object into a dict
-creditrechargelimitresponse_dict = creditrechargelimitresponse_instance.to_dict()
-# create an instance of Creditrechargelimitresponse from a dict
-creditrechargelimitresponse_from_dict = Creditrechargelimitresponse.from_dict(creditrechargelimitresponse_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/Creditrequestresponse.md b/docs/Creditrequestresponse.md
deleted file mode 100644
index e7412db..0000000
--- a/docs/Creditrequestresponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# Creditrequestresponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**data** | [**List[Creditrequests]**](Creditrequests.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.creditrequestresponse import Creditrequestresponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of Creditrequestresponse from a JSON string
-creditrequestresponse_instance = Creditrequestresponse.from_json(json)
-# print the JSON string representation of the object
-print(Creditrequestresponse.to_json())
-
-# convert the object into a dict
-creditrequestresponse_dict = creditrequestresponse_instance.to_dict()
-# create an instance of Creditrequestresponse from a dict
-creditrequestresponse_from_dict = Creditrequestresponse.from_dict(creditrequestresponse_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/Creditrequests.md b/docs/Creditrequests.md
deleted file mode 100644
index 42a4afb..0000000
--- a/docs/Creditrequests.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# Creditrequests
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**admin_user_id** | **int** | | [optional]
-**amount** | **float** | | [optional]
-**reason** | **str** | | [optional]
-**status** | **str** | | [optional]
-**updated_at** | **datetime** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.creditrequests import Creditrequests
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of Creditrequests from a JSON string
-creditrequests_instance = Creditrequests.from_json(json)
-# print the JSON string representation of the object
-print(Creditrequests.to_json())
-
-# convert the object into a dict
-creditrequests_dict = creditrequests_instance.to_dict()
-# create an instance of Creditrequests from a dict
-creditrequests_from_dict = Creditrequests.from_dict(creditrequests_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CustomerContractApi.md b/docs/CustomerContractApi.md
index d25b4cf..7d2483a 100644
--- a/docs/CustomerContractApi.md
+++ b/docs/CustomerContractApi.md
@@ -4,22 +4,21 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**list_contracts**](CustomerContractApi.md#list_contracts) | **GET** /pricebook/contracts | List Contracts
-[**retrieve_contract_details**](CustomerContractApi.md#retrieve_contract_details) | **GET** /pricebook/contracts/{contract_id} | Retrieve Contract Details
-[**retrieve_gpu_allocation_graph_for_contract**](CustomerContractApi.md#retrieve_gpu_allocation_graph_for_contract) | **GET** /pricebook/contracts/{contract_id}/gpu_allocation_graph | Retrieve GPU Allocation Graph for Contract
+[**get_customer_contract**](CustomerContractApi.md#get_customer_contract) | **GET** /pricebook/contracts | List Contracts
+[**get_customer_contract_details**](CustomerContractApi.md#get_customer_contract_details) | **GET** /pricebook/contracts/{contract_id} | Retrieve Contract Details
+[**get_customer_contract_gpu_allocation_graph**](CustomerContractApi.md#get_customer_contract_gpu_allocation_graph) | **GET** /pricebook/contracts/{contract_id}/gpu_allocation_graph | Retrieve GPU Allocation Graph for Contract
-# **list_contracts**
-> GetCustomerContractsListResponseModel list_contracts(page=page, per_page=per_page)
+# **get_customer_contract**
+> GetCustomerContractsListResponseModel get_customer_contract(page=page, per_page=per_page)
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).
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -44,12 +43,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -59,11 +52,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# List Contracts
- api_response = api_instance.list_contracts(page=page, per_page=per_page)
- print("The response of CustomerContractApi->list_contracts:\n")
+ api_response = api_instance.get_customer_contract(page=page, per_page=per_page)
+ print("The response of CustomerContractApi->get_customer_contract:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling CustomerContractApi->list_contracts: %s\n" % e)
+ print("Exception when calling CustomerContractApi->get_customer_contract: %s\n" % e)
```
@@ -82,7 +75,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -101,17 +94,16 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_contract_details**
-> CustomerContractDetailResponseModel retrieve_contract_details(contract_id)
+# **get_customer_contract_details**
+> CustomerContractDetailResponseModel get_customer_contract_details(contract_id)
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).
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -136,12 +128,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -150,11 +136,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# Retrieve Contract Details
- api_response = api_instance.retrieve_contract_details(contract_id)
- print("The response of CustomerContractApi->retrieve_contract_details:\n")
+ api_response = api_instance.get_customer_contract_details(contract_id)
+ print("The response of CustomerContractApi->get_customer_contract_details:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling CustomerContractApi->retrieve_contract_details: %s\n" % e)
+ print("Exception when calling CustomerContractApi->get_customer_contract_details: %s\n" % e)
```
@@ -172,7 +158,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -192,8 +178,8 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_gpu_allocation_graph_for_contract**
-> ContractGPUAllocationGraphResponse retrieve_gpu_allocation_graph_for_contract(contract_id, start_date=start_date, end_date=end_date)
+# **get_customer_contract_gpu_allocation_graph**
+> ContractGPUAllocationGraphResponse get_customer_contract_gpu_allocation_graph(contract_id, start_date=start_date, end_date=end_date)
Retrieve GPU Allocation Graph for Contract
@@ -202,7 +188,6 @@ Retrieve GPU allocation count graph for a specific contract by providing the con
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -227,12 +212,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -243,11 +222,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# Retrieve GPU Allocation Graph for Contract
- api_response = api_instance.retrieve_gpu_allocation_graph_for_contract(contract_id, start_date=start_date, end_date=end_date)
- print("The response of CustomerContractApi->retrieve_gpu_allocation_graph_for_contract:\n")
+ api_response = api_instance.get_customer_contract_gpu_allocation_graph(contract_id, start_date=start_date, end_date=end_date)
+ print("The response of CustomerContractApi->get_customer_contract_gpu_allocation_graph:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling CustomerContractApi->retrieve_gpu_allocation_graph_for_contract: %s\n" % e)
+ print("Exception when calling CustomerContractApi->get_customer_contract_gpu_allocation_graph: %s\n" % e)
```
@@ -267,7 +246,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/CustomerFields.md b/docs/CustomerFields.md
deleted file mode 100644
index 0740045..0000000
--- a/docs/CustomerFields.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# CustomerFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | | [optional]
-**plan_type** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.customer_fields import CustomerFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of CustomerFields from a JSON string
-customer_fields_instance = CustomerFields.from_json(json)
-# print the JSON string representation of the object
-print(CustomerFields.to_json())
-
-# convert the object into a dict
-customer_fields_dict = customer_fields_instance.to_dict()
-# create an instance of CustomerFields from a dict
-customer_fields_from_dict = CustomerFields.from_dict(customer_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/CustomerPayload.md b/docs/CustomerPayload.md
deleted file mode 100644
index 5ee8fbc..0000000
--- a/docs/CustomerPayload.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# CustomerPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | |
-**plan_type** | **str** | |
-
-## Example
-
-```python
-from hyperstack.models.customer_payload import CustomerPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of CustomerPayload from a JSON string
-customer_payload_instance = CustomerPayload.from_json(json)
-# print the JSON string representation of the object
-print(CustomerPayload.to_json())
-
-# convert the object into a dict
-customer_payload_dict = customer_payload_instance.to_dict()
-# create an instance of CustomerPayload from a dict
-customer_payload_from_dict = CustomerPayload.from_dict(customer_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DashboardApi.md b/docs/DashboardApi.md
index 8e32782..b563449 100644
--- a/docs/DashboardApi.md
+++ b/docs/DashboardApi.md
@@ -12,12 +12,11 @@ Method | HTTP request | Description
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -42,12 +41,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -74,7 +67,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 7f7c50a..0000000
--- a/docs/Data.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# Data
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**organization_id** | **int** | Organization ID associated with the resource. | [optional]
-**resource_id** | **int** | ID of the resource. | [optional]
-**resource_type** | **str** | Type of the resource. | [optional]
-
-## Example
-
-```python
-from hyperstack.models.data import Data
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of Data from a JSON string
-data_instance = Data.from_json(json)
-# print the JSON string representation of the object
-print(Data.to_json())
-
-# convert the object into a dict
-data_dict = data_instance.to_dict()
-# create an instance of Data from a dict
-data_from_dict = Data.from_dict(data_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DataSynthesisBillingHistoryDetailsResponseSchema.md b/docs/DataSynthesisBillingHistoryDetailsResponseSchema.md
new file mode 100644
index 0000000..7e16815
--- /dev/null
+++ b/docs/DataSynthesisBillingHistoryDetailsResponseSchema.md
@@ -0,0 +1,31 @@
+# DataSynthesisBillingHistoryDetailsResponseSchema
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_history_data_synthesis_details** | [**BillingHistoryDataSynthesisDetails**](BillingHistoryDataSynthesisDetails.md) | | [optional]
+**message** | **str** | | [optional]
+**status** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.data_synthesis_billing_history_details_response_schema import DataSynthesisBillingHistoryDetailsResponseSchema
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of DataSynthesisBillingHistoryDetailsResponseSchema from a JSON string
+data_synthesis_billing_history_details_response_schema_instance = DataSynthesisBillingHistoryDetailsResponseSchema.from_json(json)
+# print the JSON string representation of the object
+print(DataSynthesisBillingHistoryDetailsResponseSchema.to_json())
+
+# convert the object into a dict
+data_synthesis_billing_history_details_response_schema_dict = data_synthesis_billing_history_details_response_schema_instance.to_dict()
+# create an instance of DataSynthesisBillingHistoryDetailsResponseSchema from a dict
+data_synthesis_billing_history_details_response_schema_from_dict = DataSynthesisBillingHistoryDetailsResponseSchema.from_dict(data_synthesis_billing_history_details_response_schema_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/DeploymentApi.md b/docs/DeploymentApi.md
index 78d7e4e..e96246b 100644
--- a/docs/DeploymentApi.md
+++ b/docs/DeploymentApi.md
@@ -18,7 +18,6 @@ Delete Deployment
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -43,12 +42,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -79,7 +72,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -106,7 +99,6 @@ Details of Deployment by ID
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -131,12 +123,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -167,7 +153,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -194,7 +180,6 @@ List Deployments
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -219,12 +204,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -251,7 +230,7 @@ This endpoint does not need any parameter.
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -277,7 +256,6 @@ Start Deployment
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -303,12 +281,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -339,7 +311,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
index 75637b2..5679487 100644
--- a/docs/DeploymentFieldsforstartdeployments.md
+++ b/docs/DeploymentFieldsforstartdeployments.md
@@ -1,4 +1,4 @@
-# DeploymentFieldsforstartdeployments
+# DeploymentFieldsForStartDeployments
## Properties
@@ -16,19 +16,19 @@ Name | Type | Description | Notes
## Example
```python
-from hyperstack.models.deployment_fieldsforstartdeployments import DeploymentFieldsforstartdeployments
+from hyperstack.models.deployment_fields_for_start_deployments import DeploymentFieldsForStartDeployments
# TODO update the JSON string below
json = "{}"
-# create an instance of DeploymentFieldsforstartdeployments from a JSON string
-deployment_fieldsforstartdeployments_instance = DeploymentFieldsforstartdeployments.from_json(json)
+# create an instance of DeploymentFieldsForStartDeployments from a JSON string
+deployment_fields_for_start_deployments_instance = DeploymentFieldsForStartDeployments.from_json(json)
# print the JSON string representation of the object
-print(DeploymentFieldsforstartdeployments.to_json())
+print(DeploymentFieldsForStartDeployments.to_json())
# convert the object into a dict
-deployment_fieldsforstartdeployments_dict = deployment_fieldsforstartdeployments_instance.to_dict()
-# create an instance of DeploymentFieldsforstartdeployments from a dict
-deployment_fieldsforstartdeployments_from_dict = DeploymentFieldsforstartdeployments.from_dict(deployment_fieldsforstartdeployments_dict)
+deployment_fields_for_start_deployments_dict = deployment_fields_for_start_deployments_instance.to_dict()
+# create an instance of DeploymentFieldsForStartDeployments from a dict
+deployment_fields_for_start_deployments_from_dict = DeploymentFieldsForStartDeployments.from_dict(deployment_fields_for_start_deployments_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/DiscountEntityModel.md b/docs/DiscountEntityModel.md
deleted file mode 100644
index 77f2570..0000000
--- a/docs/DiscountEntityModel.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# DiscountEntityModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**data** | [**List[DiscountPlanFields]**](DiscountPlanFields.md) | | [optional]
-**entity** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.discount_entity_model import DiscountEntityModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of DiscountEntityModel from a JSON string
-discount_entity_model_instance = DiscountEntityModel.from_json(json)
-# print the JSON string representation of the object
-print(DiscountEntityModel.to_json())
-
-# convert the object into a dict
-discount_entity_model_dict = discount_entity_model_instance.to_dict()
-# create an instance of DiscountEntityModel from a dict
-discount_entity_model_from_dict = DiscountEntityModel.from_dict(discount_entity_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DiscountFields.md b/docs/DiscountFields.md
deleted file mode 100644
index d61270f..0000000
--- a/docs/DiscountFields.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# DiscountFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**discount_status** | **str** | | [optional]
-**end_date** | **datetime** | | [optional]
-**org_id** | **int** | | [optional]
-**org_name** | **str** | | [optional]
-**plan_type** | **str** | | [optional]
-**vm_id** | **int** | | [optional]
-**vm_name** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.discount_fields import DiscountFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of DiscountFields from a JSON string
-discount_fields_instance = DiscountFields.from_json(json)
-# print the JSON string representation of the object
-print(DiscountFields.to_json())
-
-# convert the object into a dict
-discount_fields_dict = discount_fields_instance.to_dict()
-# create an instance of DiscountFields from a dict
-discount_fields_from_dict = DiscountFields.from_dict(discount_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DiscountPlanFields.md b/docs/DiscountPlanFields.md
deleted file mode 100644
index 755c934..0000000
--- a/docs/DiscountPlanFields.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# DiscountPlanFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**discount_amount** | **float** | | [optional]
-**discount_code** | **str** | | [optional]
-**discount_percent** | **float** | | [optional]
-**discount_status** | **str** | | [optional]
-**discount_type** | **str** | | [optional]
-**end_date** | **datetime** | | [optional]
-**id** | **int** | | [optional]
-**resource** | **str** | | [optional]
-**start_date** | **datetime** | | [optional]
-**validity_days** | **int** | | [optional]
-**vm_id** | **int** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.discount_plan_fields import DiscountPlanFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of DiscountPlanFields from a JSON string
-discount_plan_fields_instance = DiscountPlanFields.from_json(json)
-# print the JSON string representation of the object
-print(DiscountPlanFields.to_json())
-
-# convert the object into a dict
-discount_plan_fields_dict = discount_plan_fields_instance.to_dict()
-# create an instance of DiscountPlanFields from a dict
-discount_plan_fields_from_dict = DiscountPlanFields.from_dict(discount_plan_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DiscountResourceFields.md b/docs/DiscountResourceFields.md
deleted file mode 100644
index 2965cc3..0000000
--- a/docs/DiscountResourceFields.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# DiscountResourceFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**discount_amount** | **float** | | [optional]
-**discount_percent** | **float** | | [optional]
-**discount_type** | **str** | | [optional]
-**resource_id** | **int** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.discount_resource_fields import DiscountResourceFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of DiscountResourceFields from a JSON string
-discount_resource_fields_instance = DiscountResourceFields.from_json(json)
-# print the JSON string representation of the object
-print(DiscountResourceFields.to_json())
-
-# convert the object into a dict
-discount_resource_fields_dict = discount_resource_fields_instance.to_dict()
-# create an instance of DiscountResourceFields from a dict
-discount_resource_fields_from_dict = DiscountResourceFields.from_dict(discount_resource_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/DiscountResourcePayload.md b/docs/DiscountResourcePayload.md
deleted file mode 100644
index 2a09225..0000000
--- a/docs/DiscountResourcePayload.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# DiscountResourcePayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**discount_amount** | **float** | |
-**discount_percent** | **float** | |
-**discount_type** | **str** | |
-**resource_id** | **int** | |
-
-## Example
-
-```python
-from hyperstack.models.discount_resource_payload import DiscountResourcePayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of DiscountResourcePayload from a JSON string
-discount_resource_payload_instance = DiscountResourcePayload.from_json(json)
-# print the JSON string representation of the object
-print(DiscountResourcePayload.to_json())
-
-# convert the object into a dict
-discount_resource_payload_dict = discount_resource_payload_instance.to_dict()
-# create an instance of DiscountResourcePayload from a dict
-discount_resource_payload_from_dict = DiscountResourcePayload.from_dict(discount_resource_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/EditlabelofanexistingVMPayload.md b/docs/EditlabelofanexistingVMPayload.md
index f29d3e6..2d78291 100644
--- a/docs/EditlabelofanexistingVMPayload.md
+++ b/docs/EditlabelofanexistingVMPayload.md
@@ -1,4 +1,4 @@
-# EditlabelofanexistingVMPayload
+# EditLabelOfAnExistingVMPayload
## Properties
@@ -10,19 +10,19 @@ Name | Type | Description | Notes
## Example
```python
-from hyperstack.models.editlabelofanexisting_vm_payload import EditlabelofanexistingVMPayload
+from hyperstack.models.edit_label_of_an_existing_vm_payload import EditLabelOfAnExistingVMPayload
# TODO update the JSON string below
json = "{}"
-# create an instance of EditlabelofanexistingVMPayload from a JSON string
-editlabelofanexisting_vm_payload_instance = EditlabelofanexistingVMPayload.from_json(json)
+# create an instance of EditLabelOfAnExistingVMPayload from a JSON string
+edit_label_of_an_existing_vm_payload_instance = EditLabelOfAnExistingVMPayload.from_json(json)
# print the JSON string representation of the object
-print(EditlabelofanexistingVMPayload.to_json())
+print(EditLabelOfAnExistingVMPayload.to_json())
# convert the object into a dict
-editlabelofanexisting_vm_payload_dict = editlabelofanexisting_vm_payload_instance.to_dict()
-# create an instance of EditlabelofanexistingVMPayload from a dict
-editlabelofanexisting_vm_payload_from_dict = EditlabelofanexistingVMPayload.from_dict(editlabelofanexisting_vm_payload_dict)
+edit_label_of_an_existing_vm_payload_dict = edit_label_of_an_existing_vm_payload_instance.to_dict()
+# create an instance of EditLabelOfAnExistingVMPayload from a dict
+edit_label_of_an_existing_vm_payload_from_dict = EditLabelOfAnExistingVMPayload.from_dict(edit_label_of_an_existing_vm_payload_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/EnvironmentApi.md b/docs/EnvironmentApi.md
index 89d5244..1682f33 100644
--- a/docs/EnvironmentApi.md
+++ b/docs/EnvironmentApi.md
@@ -6,6 +6,7 @@ Method | HTTP request | Description
------------- | ------------- | -------------
[**create_environment**](EnvironmentApi.md#create_environment) | **POST** /core/environments | Create environment
[**delete_environment**](EnvironmentApi.md#delete_environment) | **DELETE** /core/environments/{id} | Delete environment
+[**fetch_environment_name_availability**](EnvironmentApi.md#fetch_environment_name_availability) | **GET** /core/environments/name-availability/{name} | Fetch environment name availability
[**list_environments**](EnvironmentApi.md#list_environments) | **GET** /core/environments | List environments
[**retrieve_environment**](EnvironmentApi.md#retrieve_environment) | **GET** /core/environments/{id} | Retrieve environment
[**update_environment**](EnvironmentApi.md#update_environment) | **PUT** /core/environments/{id} | Update environment
@@ -16,12 +17,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -47,12 +47,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -83,7 +77,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -113,7 +107,6 @@ Deletes an environment permanently. Provide the environment ID in the path to re
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -138,12 +131,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -174,7 +161,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -193,17 +180,99 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+# **fetch_environment_name_availability**
+> NameAvailableModel fetch_environment_name_availability(name)
+
+Fetch environment name availability
+
+Check if a Environment name is available
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.name_available_model import NameAvailableModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.EnvironmentApi(api_client)
+ name = 'name_example' # str |
+
+ try:
+ # Fetch environment name availability
+ api_response = api_instance.fetch_environment_name_availability(name)
+ print("The response of EnvironmentApi->fetch_environment_name_availability:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling EnvironmentApi->fetch_environment_name_availability: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **name** | **str**| |
+
+### Return type
+
+[**NameAvailableModel**](NameAvailableModel.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
# **list_environments**
> Environments list_environments(page=page, page_size=page_size, search=search)
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).
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -228,12 +297,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -268,7 +331,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -296,7 +359,6 @@ Retrieves details about a specific environment. Provide the environment ID in th
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -321,12 +383,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -357,7 +413,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -386,7 +442,6 @@ Updates the name of an existing environment. Provide the environment ID in the p
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -412,12 +467,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -450,7 +499,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 868a7bf..041efdc 100644
--- a/docs/EnvironmentFeatures.md
+++ b/docs/EnvironmentFeatures.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**green_status** | **str** | | [optional]
**network_optimised** | **bool** | | [optional]
## Example
diff --git a/docs/EnvironmentFieldsforVolume.md b/docs/EnvironmentFieldsforVolume.md
index 3b34f33..148ae3f 100644
--- a/docs/EnvironmentFieldsforVolume.md
+++ b/docs/EnvironmentFieldsforVolume.md
@@ -1,28 +1,30 @@
-# EnvironmentFieldsforVolume
+# EnvironmentFieldsForVolume
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**features** | **object** | | [optional]
**name** | **str** | | [optional]
+**region** | **str** | | [optional]
## Example
```python
-from hyperstack.models.environment_fieldsfor_volume import EnvironmentFieldsforVolume
+from hyperstack.models.environment_fields_for_volume import EnvironmentFieldsForVolume
# TODO update the JSON string below
json = "{}"
-# create an instance of EnvironmentFieldsforVolume from a JSON string
-environment_fieldsfor_volume_instance = EnvironmentFieldsforVolume.from_json(json)
+# create an instance of EnvironmentFieldsForVolume from a JSON string
+environment_fields_for_volume_instance = EnvironmentFieldsForVolume.from_json(json)
# print the JSON string representation of the object
-print(EnvironmentFieldsforVolume.to_json())
+print(EnvironmentFieldsForVolume.to_json())
# convert the object into a dict
-environment_fieldsfor_volume_dict = environment_fieldsfor_volume_instance.to_dict()
-# create an instance of EnvironmentFieldsforVolume from a dict
-environment_fieldsfor_volume_from_dict = EnvironmentFieldsforVolume.from_dict(environment_fieldsfor_volume_dict)
+environment_fields_for_volume_dict = environment_fields_for_volume_instance.to_dict()
+# create an instance of EnvironmentFieldsForVolume from a dict
+environment_fields_for_volume_from_dict = EnvironmentFieldsForVolume.from_dict(environment_fields_for_volume_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/ExcludeBillingPostPayload.md b/docs/ExcludeBillingPostPayload.md
deleted file mode 100644
index e805708..0000000
--- a/docs/ExcludeBillingPostPayload.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# ExcludeBillingPostPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**exclude** | **bool** | `true` excludes the resource from billing while `false` does not. |
-**resource_id** | **int** | The ID of the resource which is being excluded from billing. |
-**resource_type** | **str** | The type of the resource which is being excluded from billing. |
-
-## Example
-
-```python
-from hyperstack.models.exclude_billing_post_payload import ExcludeBillingPostPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of ExcludeBillingPostPayload from a JSON string
-exclude_billing_post_payload_instance = ExcludeBillingPostPayload.from_json(json)
-# print the JSON string representation of the object
-print(ExcludeBillingPostPayload.to_json())
-
-# convert the object into a dict
-exclude_billing_post_payload_dict = exclude_billing_post_payload_instance.to_dict()
-# create an instance of ExcludeBillingPostPayload from a dict
-exclude_billing_post_payload_from_dict = ExcludeBillingPostPayload.from_dict(exclude_billing_post_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ExcludeBillingPostResponse.md b/docs/ExcludeBillingPostResponse.md
deleted file mode 100644
index b9d019b..0000000
--- a/docs/ExcludeBillingPostResponse.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# ExcludeBillingPostResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**data** | [**Data**](Data.md) | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.exclude_billing_post_response import ExcludeBillingPostResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of ExcludeBillingPostResponse from a JSON string
-exclude_billing_post_response_instance = ExcludeBillingPostResponse.from_json(json)
-# print the JSON string representation of the object
-print(ExcludeBillingPostResponse.to_json())
-
-# convert the object into a dict
-exclude_billing_post_response_dict = exclude_billing_post_response_instance.to_dict()
-# create an instance of ExcludeBillingPostResponse from a dict
-exclude_billing_post_response_from_dict = ExcludeBillingPostResponse.from_dict(exclude_billing_post_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ExportBillingDataRequest.md b/docs/ExportBillingDataRequest.md
deleted file mode 100644
index d3b52b3..0000000
--- a/docs/ExportBillingDataRequest.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# ExportBillingDataRequest
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**end_date** | **datetime** | |
-**org_id** | **int** | | [optional]
-**required_attributes** | **List[str]** | |
-**required_metrics** | **List[str]** | |
-**resource_type** | **str** | |
-**start_date** | **datetime** | |
-
-## Example
-
-```python
-from hyperstack.models.export_billing_data_request import ExportBillingDataRequest
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of ExportBillingDataRequest from a JSON string
-export_billing_data_request_instance = ExportBillingDataRequest.from_json(json)
-# print the JSON string representation of the object
-print(ExportBillingDataRequest.to_json())
-
-# convert the object into a dict
-export_billing_data_request_dict = export_billing_data_request_instance.to_dict()
-# create an instance of ExportBillingDataRequest from a dict
-export_billing_data_request_from_dict = ExportBillingDataRequest.from_dict(export_billing_data_request_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ExportBillingDataResponse.md b/docs/ExportBillingDataResponse.md
deleted file mode 100644
index b47876c..0000000
--- a/docs/ExportBillingDataResponse.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# ExportBillingDataResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**measures** | **List[object]** | | [optional]
-**message** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.export_billing_data_response import ExportBillingDataResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of ExportBillingDataResponse from a JSON string
-export_billing_data_response_instance = ExportBillingDataResponse.from_json(json)
-# print the JSON string representation of the object
-print(ExportBillingDataResponse.to_json())
-
-# convert the object into a dict
-export_billing_data_response_dict = export_billing_data_response_instance.to_dict()
-# create an instance of ExportBillingDataResponse from a dict
-export_billing_data_response_from_dict = ExportBillingDataResponse.from_dict(export_billing_data_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/FieldChange.md b/docs/FieldChange.md
deleted file mode 100644
index 04e4f01..0000000
--- a/docs/FieldChange.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# FieldChange
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**field_name** | **str** | The name of the field that was changed | [optional]
-**new_value** | **str** | The new value of the field | [optional]
-**old_value** | **str** | The old value of the field | [optional]
-
-## Example
-
-```python
-from hyperstack.models.field_change import FieldChange
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of FieldChange from a JSON string
-field_change_instance = FieldChange.from_json(json)
-# print the JSON string representation of the object
-print(FieldChange.to_json())
-
-# convert the object into a dict
-field_change_dict = field_change_instance.to_dict()
-# create an instance of FieldChange from a dict
-field_change_from_dict = FieldChange.from_dict(field_change_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/FirewallAttachmentApi.md b/docs/FirewallAttachmentApi.md
index fee9d5b..04516d0 100644
--- a/docs/FirewallAttachmentApi.md
+++ b/docs/FirewallAttachmentApi.md
@@ -4,18 +4,19 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**attach_firewalls_to_vms**](FirewallAttachmentApi.md#attach_firewalls_to_vms) | **POST** /core/firewalls/{firewall_id}/update-attachments | Attach Firewalls to VMs
+[**post_attach_security_groups**](FirewallAttachmentApi.md#post_attach_security_groups) | **POST** /core/firewalls/{firewall_id}/update-attachments | Attach Firewalls to VMs
-# **attach_firewalls_to_vms**
-> ResponseModel attach_firewalls_to_vms(firewall_id, payload)
+# **post_attach_security_groups**
+> ResponseModel post_attach_security_groups(firewall_id, 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -41,12 +42,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -56,11 +51,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# Attach Firewalls to VMs
- api_response = api_instance.attach_firewalls_to_vms(firewall_id, payload)
- print("The response of FirewallAttachmentApi->attach_firewalls_to_vms:\n")
+ api_response = api_instance.post_attach_security_groups(firewall_id, payload)
+ print("The response of FirewallAttachmentApi->post_attach_security_groups:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling FirewallAttachmentApi->attach_firewalls_to_vms: %s\n" % e)
+ print("Exception when calling FirewallAttachmentApi->post_attach_security_groups: %s\n" % e)
```
@@ -79,7 +74,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 3a280bd..8fd5fad 100644
--- a/docs/FirewallsApi.md
+++ b/docs/FirewallsApi.md
@@ -4,30 +4,28 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**add_firewall_rule_to_firewall**](FirewallsApi.md#add_firewall_rule_to_firewall) | **POST** /core/firewalls/{firewall_id}/firewall-rules | Add firewall rule to firewall
-[**create_firewall**](FirewallsApi.md#create_firewall) | **POST** /core/firewalls | Create firewall
-[**delete_firewall**](FirewallsApi.md#delete_firewall) | **DELETE** /core/firewalls/{id} | Delete firewall
-[**delete_firewall_rules_from_firewall**](FirewallsApi.md#delete_firewall_rules_from_firewall) | **DELETE** /core/firewalls/{firewall_id}/firewall-rules/{firewall_rule_id} | Delete firewall rules from firewall
-[**list_firewalls**](FirewallsApi.md#list_firewalls) | **GET** /core/firewalls | List firewalls
-[**retrieve_firewall_details**](FirewallsApi.md#retrieve_firewall_details) | **GET** /core/firewalls/{id} | Retrieve firewall details
+[**delete_security_group_details**](FirewallsApi.md#delete_security_group_details) | **DELETE** /core/firewalls/{id} | Delete firewall
+[**delete_security_group_rule_delete**](FirewallsApi.md#delete_security_group_rule_delete) | **DELETE** /core/firewalls/{firewall_id}/firewall-rules/{firewall_rule_id} | Delete firewall rules from firewall
+[**get_security_group**](FirewallsApi.md#get_security_group) | **GET** /core/firewalls | List firewalls
+[**get_security_group_details**](FirewallsApi.md#get_security_group_details) | **GET** /core/firewalls/{id} | Retrieve firewall details
+[**post_security_group**](FirewallsApi.md#post_security_group) | **POST** /core/firewalls | Create firewall
+[**post_security_group_rules**](FirewallsApi.md#post_security_group_rules) | **POST** /core/firewalls/{firewall_id}/firewall-rules | Add firewall rule to firewall
-# **add_firewall_rule_to_firewall**
-> FirewallRule add_firewall_rule_to_firewall(firewall_id, payload)
+# **delete_security_group_details**
+> ResponseModel delete_security_group_details(id)
-Add firewall rule to firewall
+Delete 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.
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.create_firewall_rule_payload import CreateFirewallRulePayload
-from hyperstack.models.firewall_rule import FirewallRule
+from hyperstack.models.response_model import ResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -48,26 +46,19 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.FirewallsApi(api_client)
- firewall_id = 56 # int |
- payload = hyperstack.CreateFirewallRulePayload() # CreateFirewallRulePayload |
+ id = 56 # int |
try:
- # Add firewall rule to firewall
- api_response = api_instance.add_firewall_rule_to_firewall(firewall_id, payload)
- print("The response of FirewallsApi->add_firewall_rule_to_firewall:\n")
+ # Delete firewall
+ api_response = api_instance.delete_security_group_details(id)
+ print("The response of FirewallsApi->delete_security_group_details:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling FirewallsApi->add_firewall_rule_to_firewall: %s\n" % e)
+ print("Exception when calling FirewallsApi->delete_security_group_details: %s\n" % e)
```
@@ -77,20 +68,19 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **firewall_id** | **int**| |
- **payload** | [**CreateFirewallRulePayload**](CreateFirewallRulePayload.md)| |
+ **id** | **int**| |
### Return type
-[**FirewallRule**](FirewallRule.md)
+[**ResponseModel**](ResponseModel.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
### HTTP response details
@@ -101,26 +91,26 @@ Name | Type | Description | Notes
**400** | Bad Request | - |
**401** | Unauthorized | - |
**403** | Forbidden | - |
+**404** | Not Found | - |
+**409** | Conflict | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **create_firewall**
-> FirewallResponse create_firewall(payload)
+# **delete_security_group_rule_delete**
+> ResponseModel delete_security_group_rule_delete(firewall_id, firewall_rule_id)
-Create firewall
+Delete firewall rules from 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.
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.create_firewall_payload import CreateFirewallPayload
-from hyperstack.models.firewall_response import FirewallResponse
+from hyperstack.models.response_model import ResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -141,25 +131,20 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.FirewallsApi(api_client)
- payload = hyperstack.CreateFirewallPayload() # CreateFirewallPayload |
+ firewall_id = 56 # int |
+ firewall_rule_id = 56 # int |
try:
- # Create firewall
- api_response = api_instance.create_firewall(payload)
- print("The response of FirewallsApi->create_firewall:\n")
+ # Delete firewall rules from firewall
+ api_response = api_instance.delete_security_group_rule_delete(firewall_id, firewall_rule_id)
+ print("The response of FirewallsApi->delete_security_group_rule_delete:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling FirewallsApi->create_firewall: %s\n" % e)
+ print("Exception when calling FirewallsApi->delete_security_group_rule_delete: %s\n" % e)
```
@@ -169,19 +154,20 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **payload** | [**CreateFirewallPayload**](CreateFirewallPayload.md)| |
+ **firewall_id** | **int**| |
+ **firewall_rule_id** | **int**| |
### Return type
-[**FirewallResponse**](FirewallResponse.md)
+[**ResponseModel**](ResponseModel.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
### HTTP response details
@@ -192,27 +178,26 @@ Name | Type | Description | Notes
**400** | Bad Request | - |
**401** | Unauthorized | - |
**403** | Forbidden | - |
-**404** | Not Found | - |
+**404** | Not Exists | - |
**409** | Conflict | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **delete_firewall**
-> ResponseModel delete_firewall(id)
+# **get_security_group**
+> FirewallsListResponse get_security_group(page=page, page_size=page_size, search=search, environment=environment)
-Delete firewall
+List firewalls
-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).
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.response_model import ResponseModel
+from hyperstack.models.firewalls_list_response import FirewallsListResponse
from hyperstack.rest import ApiException
from pprint import pprint
@@ -233,25 +218,22 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.FirewallsApi(api_client)
- id = 56 # int |
+ page = 56 # int | (optional)
+ page_size = 56 # int | (optional)
+ search = 'search_example' # str | (optional)
+ environment = 'environment_example' # str | Filter Environment ID or Name (optional)
try:
- # Delete firewall
- api_response = api_instance.delete_firewall(id)
- print("The response of FirewallsApi->delete_firewall:\n")
+ # List firewalls
+ api_response = api_instance.get_security_group(page=page, page_size=page_size, search=search, environment=environment)
+ print("The response of FirewallsApi->get_security_group:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling FirewallsApi->delete_firewall: %s\n" % e)
+ print("Exception when calling FirewallsApi->get_security_group: %s\n" % e)
```
@@ -261,15 +243,18 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **page** | **int**| | [optional]
+ **page_size** | **int**| | [optional]
+ **search** | **str**| | [optional]
+ **environment** | **str**| Filter Environment ID or Name | [optional]
### Return type
-[**ResponseModel**](ResponseModel.md)
+[**FirewallsListResponse**](FirewallsListResponse.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -284,27 +269,24 @@ Name | Type | Description | Notes
**400** | Bad Request | - |
**401** | Unauthorized | - |
**403** | Forbidden | - |
-**404** | Not Found | - |
-**409** | Conflict | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **delete_firewall_rules_from_firewall**
-> ResponseModel delete_firewall_rules_from_firewall(firewall_id, firewall_rule_id)
+# **get_security_group_details**
+> FirewallDetailResponse get_security_group_details(id)
-Delete firewall rules from firewall
+Retrieve firewall details
-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).
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.response_model import ResponseModel
+from hyperstack.models.firewall_detail_response import FirewallDetailResponse
from hyperstack.rest import ApiException
from pprint import pprint
@@ -325,26 +307,19 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.FirewallsApi(api_client)
- firewall_id = 56 # int |
- firewall_rule_id = 56 # int |
+ id = 56 # int |
try:
- # Delete firewall rules from firewall
- api_response = api_instance.delete_firewall_rules_from_firewall(firewall_id, firewall_rule_id)
- print("The response of FirewallsApi->delete_firewall_rules_from_firewall:\n")
+ # Retrieve firewall details
+ api_response = api_instance.get_security_group_details(id)
+ print("The response of FirewallsApi->get_security_group_details:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling FirewallsApi->delete_firewall_rules_from_firewall: %s\n" % e)
+ print("Exception when calling FirewallsApi->get_security_group_details: %s\n" % e)
```
@@ -354,16 +329,15 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **firewall_id** | **int**| |
- **firewall_rule_id** | **int**| |
+ **id** | **int**| |
### Return type
-[**ResponseModel**](ResponseModel.md)
+[**FirewallDetailResponse**](FirewallDetailResponse.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -378,27 +352,26 @@ Name | Type | Description | Notes
**400** | Bad Request | - |
**401** | Unauthorized | - |
**403** | Forbidden | - |
-**404** | Not Exists | - |
-**409** | Conflict | - |
+**404** | Not Found | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **list_firewalls**
-> FirewallsListResponse list_firewalls(page=page, page_size=page_size, search=search, environment=environment)
+# **post_security_group**
+> FirewallResponse post_security_group(payload)
-List firewalls
+Create firewall
-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).
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.firewalls_list_response import FirewallsListResponse
+from hyperstack.models.create_firewall_payload import CreateFirewallPayload
+from hyperstack.models.firewall_response import FirewallResponse
from hyperstack.rest import ApiException
from pprint import pprint
@@ -419,28 +392,19 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.FirewallsApi(api_client)
- page = 56 # int | (optional)
- page_size = 56 # int | (optional)
- search = 'search_example' # str | (optional)
- environment = 'environment_example' # str | Filter Environment ID or Name (optional)
+ payload = hyperstack.CreateFirewallPayload() # CreateFirewallPayload |
try:
- # List firewalls
- api_response = api_instance.list_firewalls(page=page, page_size=page_size, search=search, environment=environment)
- print("The response of FirewallsApi->list_firewalls:\n")
+ # Create firewall
+ api_response = api_instance.post_security_group(payload)
+ print("The response of FirewallsApi->post_security_group:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling FirewallsApi->list_firewalls: %s\n" % e)
+ print("Exception when calling FirewallsApi->post_security_group: %s\n" % e)
```
@@ -450,22 +414,19 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **page** | **int**| | [optional]
- **page_size** | **int**| | [optional]
- **search** | **str**| | [optional]
- **environment** | **str**| Filter Environment ID or Name | [optional]
+ **payload** | [**CreateFirewallPayload**](CreateFirewallPayload.md)| |
### Return type
-[**FirewallsListResponse**](FirewallsListResponse.md)
+[**FirewallResponse**](FirewallResponse.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
### HTTP response details
@@ -476,25 +437,27 @@ Name | Type | Description | Notes
**400** | Bad Request | - |
**401** | Unauthorized | - |
**403** | Forbidden | - |
+**404** | Not Found | - |
+**409** | Conflict | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_firewall_details**
-> FirewallDetailResponse retrieve_firewall_details(id)
+# **post_security_group_rules**
+> FirewallRule post_security_group_rules(firewall_id, payload)
-Retrieve firewall details
+Add firewall rule to firewall
-Retrieves the details of an existing firewall, including the security rules it contains and information about the virtual machines to which it is attached.
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.firewall_detail_response import FirewallDetailResponse
+from hyperstack.models.create_firewall_rule_payload import CreateFirewallRulePayload
+from hyperstack.models.firewall_rule import FirewallRule
from hyperstack.rest import ApiException
from pprint import pprint
@@ -515,25 +478,20 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.FirewallsApi(api_client)
- id = 56 # int |
+ firewall_id = 56 # int |
+ payload = hyperstack.CreateFirewallRulePayload() # CreateFirewallRulePayload |
try:
- # Retrieve firewall details
- api_response = api_instance.retrieve_firewall_details(id)
- print("The response of FirewallsApi->retrieve_firewall_details:\n")
+ # Add firewall rule to firewall
+ api_response = api_instance.post_security_group_rules(firewall_id, payload)
+ print("The response of FirewallsApi->post_security_group_rules:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling FirewallsApi->retrieve_firewall_details: %s\n" % e)
+ print("Exception when calling FirewallsApi->post_security_group_rules: %s\n" % e)
```
@@ -543,19 +501,20 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **firewall_id** | **int**| |
+ **payload** | [**CreateFirewallRulePayload**](CreateFirewallRulePayload.md)| |
### Return type
-[**FirewallDetailResponse**](FirewallDetailResponse.md)
+[**FirewallRule**](FirewallRule.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
### HTTP response details
@@ -566,7 +525,6 @@ Name | Type | Description | Notes
**400** | Bad Request | - |
**401** | Unauthorized | - |
**403** | Forbidden | - |
-**404** | Not Found | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/FlavorApi.md b/docs/FlavorApi.md
index 79c5bde..e618974 100644
--- a/docs/FlavorApi.md
+++ b/docs/FlavorApi.md
@@ -12,12 +12,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -42,12 +41,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -78,7 +71,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 d1e9f22..4f4c7da 100644
--- a/docs/FlavorFields.md
+++ b/docs/FlavorFields.md
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
**disk** | **int** | | [optional]
**display_name** | **str** | | [optional]
**ephemeral** | **int** | | [optional]
+**features** | **object** | | [optional]
**gpu** | **str** | | [optional]
**gpu_count** | **int** | | [optional]
**id** | **int** | | [optional]
diff --git a/docs/FlavorLabelFields.md b/docs/FlavorLabelFields.md
new file mode 100644
index 0000000..9127b96
--- /dev/null
+++ b/docs/FlavorLabelFields.md
@@ -0,0 +1,30 @@
+# FlavorLabelFields
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**id** | **int** | | [optional]
+**label** | **str** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.flavor_label_fields import FlavorLabelFields
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of FlavorLabelFields from a JSON string
+flavor_label_fields_instance = FlavorLabelFields.from_json(json)
+# print the JSON string representation of the object
+print(FlavorLabelFields.to_json())
+
+# convert the object into a dict
+flavor_label_fields_dict = flavor_label_fields_instance.to_dict()
+# create an instance of FlavorLabelFields from a dict
+flavor_label_fields_from_dict = FlavorLabelFields.from_dict(flavor_label_fields_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/FlavorPayload.md b/docs/FlavorPayload.md
deleted file mode 100644
index d48e3b0..0000000
--- a/docs/FlavorPayload.md
+++ /dev/null
@@ -1,36 +0,0 @@
-# FlavorPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**cpu** | **int** | |
-**disk** | **int** | |
-**gpu** | **str** | |
-**gpu_count** | **int** | |
-**is_public** | **bool** | |
-**name** | **str** | |
-**ram** | **float** | |
-**region_name** | **str** | |
-
-## Example
-
-```python
-from hyperstack.models.flavor_payload import FlavorPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of FlavorPayload from a JSON string
-flavor_payload_instance = FlavorPayload.from_json(json)
-# print the JSON string representation of the object
-print(FlavorPayload.to_json())
-
-# convert the object into a dict
-flavor_payload_dict = flavor_payload_instance.to_dict()
-# create an instance of FlavorPayload from a dict
-flavor_payload_from_dict = FlavorPayload.from_dict(flavor_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/FlavorResponse.md b/docs/FlavorResponse.md
deleted file mode 100644
index f58efc8..0000000
--- a/docs/FlavorResponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# FlavorResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**flavor** | [**FlavorFields**](FlavorFields.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.flavor_response import FlavorResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of FlavorResponse from a JSON string
-flavor_response_instance = FlavorResponse.from_json(json)
-# print the JSON string representation of the object
-print(FlavorResponse.to_json())
-
-# convert the object into a dict
-flavor_response_dict = flavor_response_instance.to_dict()
-# create an instance of FlavorResponse from a dict
-flavor_response_from_dict = FlavorResponse.from_dict(flavor_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/FlavorVMFields.md b/docs/FlavorVMFields.md
deleted file mode 100644
index ee95870..0000000
--- a/docs/FlavorVMFields.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# FlavorVMFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**created_at** | **datetime** | | [optional]
-**host** | **str** | | [optional]
-**id** | **int** | | [optional]
-**name** | **str** | | [optional]
-**openstack_id** | **str** | | [optional]
-**org_id** | **int** | | [optional]
-**status** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.flavor_vm_fields import FlavorVMFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of FlavorVMFields from a JSON string
-flavor_vm_fields_instance = FlavorVMFields.from_json(json)
-# print the JSON string representation of the object
-print(FlavorVMFields.to_json())
-
-# convert the object into a dict
-flavor_vm_fields_dict = flavor_vm_fields_instance.to_dict()
-# create an instance of FlavorVMFields from a dict
-flavor_vm_fields_from_dict = FlavorVMFields.from_dict(flavor_vm_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/FlavorVMsResponse.md b/docs/FlavorVMsResponse.md
deleted file mode 100644
index 420f8a5..0000000
--- a/docs/FlavorVMsResponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# FlavorVMsResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**flavor_vms** | [**List[FlavorVMFields]**](FlavorVMFields.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.flavor_vms_response import FlavorVMsResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of FlavorVMsResponse from a JSON string
-flavor_vms_response_instance = FlavorVMsResponse.from_json(json)
-# print the JSON string representation of the object
-print(FlavorVMsResponse.to_json())
-
-# convert the object into a dict
-flavor_vms_response_dict = flavor_vms_response_instance.to_dict()
-# create an instance of FlavorVMsResponse from a dict
-flavor_vms_response_from_dict = FlavorVMsResponse.from_dict(flavor_vms_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/FloatingIpApi.md b/docs/FloatingIpApi.md
index 5b6eab5..71d7064 100644
--- a/docs/FloatingIpApi.md
+++ b/docs/FloatingIpApi.md
@@ -4,21 +4,20 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**attach_public_ip_to_virtual_machine**](FloatingIpApi.md#attach_public_ip_to_virtual_machine) | **POST** /core/virtual-machines/{id}/attach-floatingip | Attach public IP to virtual machine
-[**detach_public_ip_from_virtual_machine**](FloatingIpApi.md#detach_public_ip_from_virtual_machine) | **POST** /core/virtual-machines/{id}/detach-floatingip | Detach public IP from virtual machine
+[**attach_public_ipto_virtual_machine**](FloatingIpApi.md#attach_public_ipto_virtual_machine) | **POST** /core/virtual-machines/{vm_id}/attach-floatingip | Attach public IP to virtual machine
+[**detach_public_ip_from_virtual_machine**](FloatingIpApi.md#detach_public_ip_from_virtual_machine) | **POST** /core/virtual-machines/{vm_id}/detach-floatingip | Detach public IP from virtual machine
-# **attach_public_ip_to_virtual_machine**
-> ResponseModel attach_public_ip_to_virtual_machine(id)
+# **attach_public_ipto_virtual_machine**
+> ResponseModel attach_public_ipto_virtual_machine(vm_id)
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -43,25 +42,19 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.FloatingIpApi(api_client)
- id = 56 # int |
+ vm_id = 56 # int |
try:
# Attach public IP to virtual machine
- api_response = api_instance.attach_public_ip_to_virtual_machine(id)
- print("The response of FloatingIpApi->attach_public_ip_to_virtual_machine:\n")
+ api_response = api_instance.attach_public_ipto_virtual_machine(vm_id)
+ print("The response of FloatingIpApi->attach_public_ipto_virtual_machine:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling FloatingIpApi->attach_public_ip_to_virtual_machine: %s\n" % e)
+ print("Exception when calling FloatingIpApi->attach_public_ipto_virtual_machine: %s\n" % e)
```
@@ -71,7 +64,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **vm_id** | **int**| |
### Return type
@@ -79,7 +72,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -91,24 +84,24 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
**200** | Public IP successfully attached to VM. | - |
-**400** | Insufficient balance to create the resource | - |
+**400** | Bad Request | - |
**401** | Unauthorized | - |
+**402** | Insufficient balance to create the resource | - |
**404** | Not Found | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **detach_public_ip_from_virtual_machine**
-> ResponseModel detach_public_ip_from_virtual_machine(id)
+> ResponseModel detach_public_ip_from_virtual_machine(vm_id)
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -133,21 +126,15 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.FloatingIpApi(api_client)
- id = 56 # int |
+ vm_id = 56 # int |
try:
# Detach public IP from virtual machine
- api_response = api_instance.detach_public_ip_from_virtual_machine(id)
+ api_response = api_instance.detach_public_ip_from_virtual_machine(vm_id)
print("The response of FloatingIpApi->detach_public_ip_from_virtual_machine:\n")
pprint(api_response)
except Exception as e:
@@ -161,7 +148,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **vm_id** | **int**| |
### Return type
@@ -169,7 +156,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 2c19492..0000000
--- a/docs/FutureNodeModel.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# FutureNodeModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**expected_provision_date** | **datetime** | Date and time in the format YYYY-MM-DD HH:mm:ss |
-**id** | **int** | | [optional] [readonly]
-**nexgen_name** | **str** | | [optional]
-**openstack_name** | **str** | | [optional]
-**stocks** | [**List[FutureNodeStockModel]**](FutureNodeStockModel.md) | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.future_node_model import FutureNodeModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of FutureNodeModel from a JSON string
-future_node_model_instance = FutureNodeModel.from_json(json)
-# print the JSON string representation of the object
-print(FutureNodeModel.to_json())
-
-# convert the object into a dict
-future_node_model_dict = future_node_model_instance.to_dict()
-# create an instance of FutureNodeModel from a dict
-future_node_model_from_dict = FutureNodeModel.from_dict(future_node_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/FutureNodeResponseModel.md b/docs/FutureNodeResponseModel.md
deleted file mode 100644
index e664492..0000000
--- a/docs/FutureNodeResponseModel.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# FutureNodeResponseModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**nodes** | [**List[FutureNodeModel]**](FutureNodeModel.md) | | [optional]
-**region** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.future_node_response_model import FutureNodeResponseModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of FutureNodeResponseModel from a JSON string
-future_node_response_model_instance = FutureNodeResponseModel.from_json(json)
-# print the JSON string representation of the object
-print(FutureNodeResponseModel.to_json())
-
-# convert the object into a dict
-future_node_response_model_dict = future_node_response_model_instance.to_dict()
-# create an instance of FutureNodeResponseModel from a dict
-future_node_response_model_from_dict = FutureNodeResponseModel.from_dict(future_node_response_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/FutureNodeStockModel.md b/docs/FutureNodeStockModel.md
deleted file mode 100644
index 7398dd7..0000000
--- a/docs/FutureNodeStockModel.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# FutureNodeStockModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**expected_amount** | **int** | |
-**id** | **int** | | [optional] [readonly]
-**name** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.future_node_stock_model import FutureNodeStockModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of FutureNodeStockModel from a JSON string
-future_node_stock_model_instance = FutureNodeStockModel.from_json(json)
-# print the JSON string representation of the object
-print(FutureNodeStockModel.to_json())
-
-# convert the object into a dict
-future_node_stock_model_dict = future_node_stock_model_instance.to_dict()
-# create an instance of FutureNodeStockModel from a dict
-future_node_stock_model_from_dict = FutureNodeStockModel.from_dict(future_node_stock_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/FutureNodeUpdateModel.md b/docs/FutureNodeUpdateModel.md
deleted file mode 100644
index a7dd202..0000000
--- a/docs/FutureNodeUpdateModel.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# FutureNodeUpdateModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**expected_provision_date** | **datetime** | |
-**id** | **int** | | [optional] [readonly]
-**nexgen_name** | **str** | |
-**openstack_name** | **str** | |
-**region_id** | **int** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.future_node_update_model import FutureNodeUpdateModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of FutureNodeUpdateModel from a JSON string
-future_node_update_model_instance = FutureNodeUpdateModel.from_json(json)
-# print the JSON string representation of the object
-print(FutureNodeUpdateModel.to_json())
-
-# convert the object into a dict
-future_node_update_model_dict = future_node_update_model_instance.to_dict()
-# create an instance of FutureNodeUpdateModel from a dict
-future_node_update_model_from_dict = FutureNodeUpdateModel.from_dict(future_node_update_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/FutureNodesStockModel.md b/docs/FutureNodesStockModel.md
deleted file mode 100644
index 7493beb..0000000
--- a/docs/FutureNodesStockModel.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# FutureNodesStockModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**future_stocks** | [**List[FutureNodeResponseModel]**](FutureNodeResponseModel.md) | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.future_nodes_stock_model import FutureNodesStockModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of FutureNodesStockModel from a JSON string
-future_nodes_stock_model_instance = FutureNodesStockModel.from_json(json)
-# print the JSON string representation of the object
-print(FutureNodesStockModel.to_json())
-
-# convert the object into a dict
-future_nodes_stock_model_dict = future_nodes_stock_model_instance.to_dict()
-# create an instance of FutureNodesStockModel from a dict
-future_nodes_stock_model_from_dict = FutureNodesStockModel.from_dict(future_nodes_stock_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/GetAllContractFields.md b/docs/GetAllContractFields.md
deleted file mode 100644
index e4542a6..0000000
--- a/docs/GetAllContractFields.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# GetAllContractFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**created_at** | **datetime** | | [optional]
-**description** | **str** | | [optional]
-**end_date** | **datetime** | | [optional]
-**expiration_policy** | **int** | | [optional]
-**id** | **int** | | [optional]
-**org_id** | **int** | | [optional]
-**start_date** | **datetime** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.get_all_contract_fields import GetAllContractFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of GetAllContractFields from a JSON string
-get_all_contract_fields_instance = GetAllContractFields.from_json(json)
-# print the JSON string representation of the object
-print(GetAllContractFields.to_json())
-
-# convert the object into a dict
-get_all_contract_fields_dict = get_all_contract_fields_instance.to_dict()
-# create an instance of GetAllContractFields from a dict
-get_all_contract_fields_from_dict = GetAllContractFields.from_dict(get_all_contract_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/GetAllContractsResponseModel.md b/docs/GetAllContractsResponseModel.md
deleted file mode 100644
index 48eae55..0000000
--- a/docs/GetAllContractsResponseModel.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# GetAllContractsResponseModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**contracts** | [**List[GetAllContractFields]**](GetAllContractFields.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.get_all_contracts_response_model import GetAllContractsResponseModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of GetAllContractsResponseModel from a JSON string
-get_all_contracts_response_model_instance = GetAllContractsResponseModel.from_json(json)
-# print the JSON string representation of the object
-print(GetAllContractsResponseModel.to_json())
-
-# convert the object into a dict
-get_all_contracts_response_model_dict = get_all_contracts_response_model_instance.to_dict()
-# create an instance of GetAllContractsResponseModel from a dict
-get_all_contracts_response_model_from_dict = GetAllContractsResponseModel.from_dict(get_all_contracts_response_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/GetAllDiscountForAllOrganizationResponse.md b/docs/GetAllDiscountForAllOrganizationResponse.md
deleted file mode 100644
index 85edaec..0000000
--- a/docs/GetAllDiscountForAllOrganizationResponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# GetAllDiscountForAllOrganizationResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**discount_plans** | [**List[GetAllDiscountsFields]**](GetAllDiscountsFields.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.get_all_discount_for_all_organization_response import GetAllDiscountForAllOrganizationResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of GetAllDiscountForAllOrganizationResponse from a JSON string
-get_all_discount_for_all_organization_response_instance = GetAllDiscountForAllOrganizationResponse.from_json(json)
-# print the JSON string representation of the object
-print(GetAllDiscountForAllOrganizationResponse.to_json())
-
-# convert the object into a dict
-get_all_discount_for_all_organization_response_dict = get_all_discount_for_all_organization_response_instance.to_dict()
-# create an instance of GetAllDiscountForAllOrganizationResponse from a dict
-get_all_discount_for_all_organization_response_from_dict = GetAllDiscountForAllOrganizationResponse.from_dict(get_all_discount_for_all_organization_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/GetAllDiscountsFields.md b/docs/GetAllDiscountsFields.md
deleted file mode 100644
index 973d426..0000000
--- a/docs/GetAllDiscountsFields.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# GetAllDiscountsFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**discount_resources** | [**List[DiscountResourceFields]**](DiscountResourceFields.md) | | [optional]
-**discount_status** | **str** | | [optional]
-**end_date** | **datetime** | | [optional]
-**org_id** | **int** | | [optional]
-**org_name** | **str** | | [optional]
-**start_date** | **datetime** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.get_all_discounts_fields import GetAllDiscountsFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of GetAllDiscountsFields from a JSON string
-get_all_discounts_fields_instance = GetAllDiscountsFields.from_json(json)
-# print the JSON string representation of the object
-print(GetAllDiscountsFields.to_json())
-
-# convert the object into a dict
-get_all_discounts_fields_dict = get_all_discounts_fields_instance.to_dict()
-# create an instance of GetAllDiscountsFields from a dict
-get_all_discounts_fields_from_dict = GetAllDiscountsFields.from_dict(get_all_discounts_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/GetDiscountDetailResponse.md b/docs/GetDiscountDetailResponse.md
deleted file mode 100644
index 0836cf8..0000000
--- a/docs/GetDiscountDetailResponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# GetDiscountDetailResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**discounts_entity** | [**DiscountEntityModel**](DiscountEntityModel.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.get_discount_detail_response import GetDiscountDetailResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of GetDiscountDetailResponse from a JSON string
-get_discount_detail_response_instance = GetDiscountDetailResponse.from_json(json)
-# print the JSON string representation of the object
-print(GetDiscountDetailResponse.to_json())
-
-# convert the object into a dict
-get_discount_detail_response_dict = get_discount_detail_response_instance.to_dict()
-# create an instance of GetDiscountDetailResponse from a dict
-get_discount_detail_response_from_dict = GetDiscountDetailResponse.from_dict(get_discount_detail_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/GetDiscountResponse.md b/docs/GetDiscountResponse.md
deleted file mode 100644
index 19b4921..0000000
--- a/docs/GetDiscountResponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# GetDiscountResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**discount_entites** | [**List[DiscountFields]**](DiscountFields.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.get_discount_response import GetDiscountResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of GetDiscountResponse from a JSON string
-get_discount_response_instance = GetDiscountResponse.from_json(json)
-# print the JSON string representation of the object
-print(GetDiscountResponse.to_json())
-
-# convert the object into a dict
-get_discount_response_dict = get_discount_response_instance.to_dict()
-# create an instance of GetDiscountResponse from a dict
-get_discount_response_from_dict = GetDiscountResponse.from_dict(get_discount_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/GetEntityDiscountDetailResponse.md b/docs/GetEntityDiscountDetailResponse.md
deleted file mode 100644
index 7491bd9..0000000
--- a/docs/GetEntityDiscountDetailResponse.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# GetEntityDiscountDetailResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **str** | | [optional]
-**organization** | [**List[DiscountPlanFields]**](DiscountPlanFields.md) | | [optional]
-**status** | **bool** | | [optional]
-**virtual_machine** | [**List[DiscountPlanFields]**](DiscountPlanFields.md) | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.get_entity_discount_detail_response import GetEntityDiscountDetailResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of GetEntityDiscountDetailResponse from a JSON string
-get_entity_discount_detail_response_instance = GetEntityDiscountDetailResponse.from_json(json)
-# print the JSON string representation of the object
-print(GetEntityDiscountDetailResponse.to_json())
-
-# convert the object into a dict
-get_entity_discount_detail_response_dict = get_entity_discount_detail_response_instance.to_dict()
-# create an instance of GetEntityDiscountDetailResponse from a dict
-get_entity_discount_detail_response_from_dict = GetEntityDiscountDetailResponse.from_dict(get_entity_discount_detail_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/GetInstanceLogsResponse.md b/docs/GetInstanceLogsResponse.md
new file mode 100644
index 0000000..385f155
--- /dev/null
+++ b/docs/GetInstanceLogsResponse.md
@@ -0,0 +1,29 @@
+# GetInstanceLogsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**logs** | **str** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.get_instance_logs_response import GetInstanceLogsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of GetInstanceLogsResponse from a JSON string
+get_instance_logs_response_instance = GetInstanceLogsResponse.from_json(json)
+# print the JSON string representation of the object
+print(GetInstanceLogsResponse.to_json())
+
+# convert the object into a dict
+get_instance_logs_response_dict = get_instance_logs_response_instance.to_dict()
+# create an instance of GetInstanceLogsResponse from a dict
+get_instance_logs_response_from_dict = GetInstanceLogsResponse.from_dict(get_instance_logs_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/GetTokenPayload.md b/docs/GetTokenPayload.md
deleted file mode 100644
index a386609..0000000
--- a/docs/GetTokenPayload.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# GetTokenPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**callback_code** | **str** | |
-**session_id** | **str** | |
-
-## Example
-
-```python
-from hyperstack.models.get_token_payload import GetTokenPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of GetTokenPayload from a JSON string
-get_token_payload_instance = GetTokenPayload.from_json(json)
-# print the JSON string representation of the object
-print(GetTokenPayload.to_json())
-
-# convert the object into a dict
-get_token_payload_dict = get_token_payload_instance.to_dict()
-# create an instance of GetTokenPayload from a dict
-get_token_payload_from_dict = GetTokenPayload.from_dict(get_token_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/GetVersionResponse.md b/docs/GetVersionResponse.md
deleted file mode 100644
index 2e7bb33..0000000
--- a/docs/GetVersionResponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# GetVersionResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-**version** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.get_version_response import GetVersionResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of GetVersionResponse from a JSON string
-get_version_response_instance = GetVersionResponse.from_json(json)
-# print the JSON string representation of the object
-print(GetVersionResponse.to_json())
-
-# convert the object into a dict
-get_version_response_dict = get_version_response_instance.to_dict()
-# create an instance of GetVersionResponse from a dict
-get_version_response_from_dict = GetVersionResponse.from_dict(get_version_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/Getcreditandthresholdinfo.md b/docs/Getcreditandthresholdinfo.md
index af7ae01..8dfdac1 100644
--- a/docs/Getcreditandthresholdinfo.md
+++ b/docs/Getcreditandthresholdinfo.md
@@ -1,4 +1,4 @@
-# Getcreditandthresholdinfo
+# GetCreditAndThresholdInfo
## Properties
@@ -12,19 +12,19 @@ Name | Type | Description | Notes
## Example
```python
-from hyperstack.models.getcreditandthresholdinfo import Getcreditandthresholdinfo
+from hyperstack.models.get_credit_and_threshold_info import GetCreditAndThresholdInfo
# TODO update the JSON string below
json = "{}"
-# create an instance of Getcreditandthresholdinfo from a JSON string
-getcreditandthresholdinfo_instance = Getcreditandthresholdinfo.from_json(json)
+# create an instance of GetCreditAndThresholdInfo from a JSON string
+get_credit_and_threshold_info_instance = GetCreditAndThresholdInfo.from_json(json)
# print the JSON string representation of the object
-print(Getcreditandthresholdinfo.to_json())
+print(GetCreditAndThresholdInfo.to_json())
# convert the object into a dict
-getcreditandthresholdinfo_dict = getcreditandthresholdinfo_instance.to_dict()
-# create an instance of Getcreditandthresholdinfo from a dict
-getcreditandthresholdinfo_from_dict = Getcreditandthresholdinfo.from_dict(getcreditandthresholdinfo_dict)
+get_credit_and_threshold_info_dict = get_credit_and_threshold_info_instance.to_dict()
+# create an instance of GetCreditAndThresholdInfo from a dict
+get_credit_and_threshold_info_from_dict = GetCreditAndThresholdInfo.from_dict(get_credit_and_threshold_info_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/Getcreditandthresholdinfoinresponse.md b/docs/Getcreditandthresholdinfoinresponse.md
index cd40076..e7b51df 100644
--- a/docs/Getcreditandthresholdinfoinresponse.md
+++ b/docs/Getcreditandthresholdinfoinresponse.md
@@ -1,30 +1,30 @@
-# Getcreditandthresholdinfoinresponse
+# GetCreditAndThresholdInfoInResponse
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**data** | [**Getcreditandthresholdinfo**](Getcreditandthresholdinfo.md) | | [optional]
+**data** | [**GetCreditAndThresholdInfo**](GetCreditAndThresholdInfo.md) | | [optional]
**message** | **str** | | [optional]
**status** | **bool** | | [optional]
## Example
```python
-from hyperstack.models.getcreditandthresholdinfoinresponse import Getcreditandthresholdinfoinresponse
+from hyperstack.models.get_credit_and_threshold_info_in_response import GetCreditAndThresholdInfoInResponse
# TODO update the JSON string below
json = "{}"
-# create an instance of Getcreditandthresholdinfoinresponse from a JSON string
-getcreditandthresholdinfoinresponse_instance = Getcreditandthresholdinfoinresponse.from_json(json)
+# create an instance of GetCreditAndThresholdInfoInResponse from a JSON string
+get_credit_and_threshold_info_in_response_instance = GetCreditAndThresholdInfoInResponse.from_json(json)
# print the JSON string representation of the object
-print(Getcreditandthresholdinfoinresponse.to_json())
+print(GetCreditAndThresholdInfoInResponse.to_json())
# convert the object into a dict
-getcreditandthresholdinfoinresponse_dict = getcreditandthresholdinfoinresponse_instance.to_dict()
-# create an instance of Getcreditandthresholdinfoinresponse from a dict
-getcreditandthresholdinfoinresponse_from_dict = Getcreditandthresholdinfoinresponse.from_dict(getcreditandthresholdinfoinresponse_dict)
+get_credit_and_threshold_info_in_response_dict = get_credit_and_threshold_info_in_response_instance.to_dict()
+# create an instance of GetCreditAndThresholdInfoInResponse from a dict
+get_credit_and_threshold_info_in_response_from_dict = GetCreditAndThresholdInfoInResponse.from_dict(get_credit_and_threshold_info_in_response_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/GpuApi.md b/docs/GpuApi.md
index 8dd2b86..a90eb91 100644
--- a/docs/GpuApi.md
+++ b/docs/GpuApi.md
@@ -17,7 +17,6 @@ Returns a list of all available GPUs that can be utilized in the creation of cus
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -42,12 +41,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -74,7 +67,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/HistoricalInstance.md b/docs/HistoricalInstance.md
deleted file mode 100644
index fafc87a..0000000
--- a/docs/HistoricalInstance.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# HistoricalInstance
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**instance_count** | **int** | | [optional]
-**instances** | [**List[HistoricalInstancesFields]**](HistoricalInstancesFields.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.historical_instance import HistoricalInstance
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of HistoricalInstance from a JSON string
-historical_instance_instance = HistoricalInstance.from_json(json)
-# print the JSON string representation of the object
-print(HistoricalInstance.to_json())
-
-# convert the object into a dict
-historical_instance_dict = historical_instance_instance.to_dict()
-# create an instance of HistoricalInstance from a dict
-historical_instance_from_dict = HistoricalInstance.from_dict(historical_instance_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/HistoricalInstancesFields.md b/docs/HistoricalInstancesFields.md
deleted file mode 100644
index df5485a..0000000
--- a/docs/HistoricalInstancesFields.md
+++ /dev/null
@@ -1,40 +0,0 @@
-# HistoricalInstancesFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**created_at** | **datetime** | | [optional]
-**environment** | **str** | | [optional]
-**environment_id** | **int** | | [optional]
-**flavor** | **str** | | [optional]
-**flavor_id** | **int** | | [optional]
-**floating_ip** | **str** | | [optional]
-**host** | **str** | | [optional]
-**id** | **int** | | [optional]
-**name** | **str** | | [optional]
-**openstack_id** | **str** | | [optional]
-**status** | **str** | | [optional]
-**updated_at** | **datetime** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.historical_instances_fields import HistoricalInstancesFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of HistoricalInstancesFields from a JSON string
-historical_instances_fields_instance = HistoricalInstancesFields.from_json(json)
-# print the JSON string representation of the object
-print(HistoricalInstancesFields.to_json())
-
-# convert the object into a dict
-historical_instances_fields_dict = historical_instances_fields_instance.to_dict()
-# create an instance of HistoricalInstancesFields from a dict
-historical_instances_fields_from_dict = HistoricalInstancesFields.from_dict(historical_instances_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/ImageApi.md b/docs/ImageApi.md
index 4098a82..b6f61eb 100644
--- a/docs/ImageApi.md
+++ b/docs/ImageApi.md
@@ -4,14 +4,14 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**delete_an_image**](ImageApi.md#delete_an_image) | **DELETE** /core/images/{id} | Delete an image
-[**fetch_name_availability_for_images**](ImageApi.md#fetch_name_availability_for_images) | **GET** /core/image/name-availability/{name} | Fetch name availability for Images
-[**get_private_image_details**](ImageApi.md#get_private_image_details) | **GET** /core/images/{id} | Get Private Image Details
-[**list_images**](ImageApi.md#list_images) | **GET** /core/images | List Images
+[**delete_image**](ImageApi.md#delete_image) | **DELETE** /core/images/{id} | Delete an image
+[**fetch_image_name_availability**](ImageApi.md#fetch_image_name_availability) | **GET** /core/image/name-availability/{name} | Fetch name availability for Images
+[**get_image_details**](ImageApi.md#get_image_details) | **GET** /core/images/{id} | Get Private Image Details
+[**list_images2**](ImageApi.md#list_images2) | **GET** /core/images | List Images
-# **delete_an_image**
-> ResponseModel delete_an_image(id)
+# **delete_image**
+> ResponseModel delete_image(id)
Delete an image
@@ -20,7 +20,6 @@ Deletes an image permanently. Provide the image ID in the path to specify the im
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -45,12 +44,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -59,11 +52,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# Delete an image
- api_response = api_instance.delete_an_image(id)
- print("The response of ImageApi->delete_an_image:\n")
+ api_response = api_instance.delete_image(id)
+ print("The response of ImageApi->delete_image:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling ImageApi->delete_an_image: %s\n" % e)
+ print("Exception when calling ImageApi->delete_image: %s\n" % e)
```
@@ -81,7 +74,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -100,8 +93,8 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **fetch_name_availability_for_images**
-> NameAvailableModel fetch_name_availability_for_images(name)
+# **fetch_image_name_availability**
+> NameAvailableModel fetch_image_name_availability(name)
Fetch name availability for Images
@@ -110,7 +103,6 @@ Check if an Image name is available
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -135,12 +127,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -149,11 +135,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# Fetch name availability for Images
- api_response = api_instance.fetch_name_availability_for_images(name)
- print("The response of ImageApi->fetch_name_availability_for_images:\n")
+ api_response = api_instance.fetch_image_name_availability(name)
+ print("The response of ImageApi->fetch_image_name_availability:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling ImageApi->fetch_name_availability_for_images: %s\n" % e)
+ print("Exception when calling ImageApi->fetch_image_name_availability: %s\n" % e)
```
@@ -171,7 +157,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -190,8 +176,8 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **get_private_image_details**
-> Image get_private_image_details(id, include_related_vms=include_related_vms)
+# **get_image_details**
+> Image get_image_details(id, include_related_vms=include_related_vms)
Get Private Image Details
@@ -200,7 +186,6 @@ Retrieve details of a specific image by providing the image ID.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -225,12 +210,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -240,11 +219,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# Get Private Image Details
- api_response = api_instance.get_private_image_details(id, include_related_vms=include_related_vms)
- print("The response of ImageApi->get_private_image_details:\n")
+ api_response = api_instance.get_image_details(id, include_related_vms=include_related_vms)
+ print("The response of ImageApi->get_image_details:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling ImageApi->get_private_image_details: %s\n" % e)
+ print("Exception when calling ImageApi->get_image_details: %s\n" % e)
```
@@ -263,7 +242,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -282,17 +261,16 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **list_images**
-> Images list_images(region=region, include_public=include_public, search=search, page=page, per_page=per_page)
+# **list_images2**
+> Images list_images2(region=region, include_public=include_public, search=search, page=page, per_page=per_page)
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -317,12 +295,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -335,11 +307,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# List Images
- api_response = api_instance.list_images(region=region, include_public=include_public, search=search, page=page, per_page=per_page)
- print("The response of ImageApi->list_images:\n")
+ api_response = api_instance.list_images2(region=region, include_public=include_public, search=search, page=page, per_page=per_page)
+ print("The response of ImageApi->list_images2:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling ImageApi->list_images: %s\n" % e)
+ print("Exception when calling ImageApi->list_images2: %s\n" % e)
```
@@ -361,7 +333,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/ImageLogos.md b/docs/ImageLogos.md
deleted file mode 100644
index e92565b..0000000
--- a/docs/ImageLogos.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# ImageLogos
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**logos** | [**List[LogoGetResponse]**](LogoGetResponse.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.image_logos import ImageLogos
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of ImageLogos from a JSON string
-image_logos_instance = ImageLogos.from_json(json)
-# print the JSON string representation of the object
-print(ImageLogos.to_json())
-
-# convert the object into a dict
-image_logos_dict = image_logos_instance.to_dict()
-# create an instance of ImageLogos from a dict
-image_logos_from_dict = ImageLogos.from_dict(image_logos_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/InfrahubResourceObjectResponse.md b/docs/InfrahubResourceObjectResponse.md
deleted file mode 100644
index 0177d02..0000000
--- a/docs/InfrahubResourceObjectResponse.md
+++ /dev/null
@@ -1,41 +0,0 @@
-# InfrahubResourceObjectResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**actual_host_price** | **float** | | [optional]
-**actual_price** | **float** | | [optional]
-**contract_id** | **int** | | [optional]
-**host** | **str** | | [optional]
-**host_price** | **float** | | [optional]
-**infrahub_id** | **int** | | [optional]
-**name** | **str** | | [optional]
-**nexgen_actual_price** | **float** | | [optional]
-**nexgen_price** | **float** | | [optional]
-**price** | **float** | | [optional]
-**resources** | [**List[PricebookResourceObjectResponse]**](PricebookResourceObjectResponse.md) | | [optional]
-**status** | **str** | | [optional]
-**type** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.infrahub_resource_object_response import InfrahubResourceObjectResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of InfrahubResourceObjectResponse from a JSON string
-infrahub_resource_object_response_instance = InfrahubResourceObjectResponse.from_json(json)
-# print the JSON string representation of the object
-print(InfrahubResourceObjectResponse.to_json())
-
-# convert the object into a dict
-infrahub_resource_object_response_dict = infrahub_resource_object_response_instance.to_dict()
-# create an instance of InfrahubResourceObjectResponse from a dict
-infrahub_resource_object_response_from_dict = InfrahubResourceObjectResponse.from_dict(infrahub_resource_object_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/InsertDiscountPlanFields.md b/docs/InsertDiscountPlanFields.md
deleted file mode 100644
index fc04db2..0000000
--- a/docs/InsertDiscountPlanFields.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# InsertDiscountPlanFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**customers** | [**List[CustomerFields]**](CustomerFields.md) | | [optional]
-**discount_resources** | [**List[DiscountResourceFields]**](DiscountResourceFields.md) | | [optional]
-**discount_status** | **str** | | [optional]
-**end_date** | **datetime** | | [optional]
-**start_date** | **datetime** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.insert_discount_plan_fields import InsertDiscountPlanFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of InsertDiscountPlanFields from a JSON string
-insert_discount_plan_fields_instance = InsertDiscountPlanFields.from_json(json)
-# print the JSON string representation of the object
-print(InsertDiscountPlanFields.to_json())
-
-# convert the object into a dict
-insert_discount_plan_fields_dict = insert_discount_plan_fields_instance.to_dict()
-# create an instance of InsertDiscountPlanFields from a dict
-insert_discount_plan_fields_from_dict = InsertDiscountPlanFields.from_dict(insert_discount_plan_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/InstanceFields.md b/docs/InstanceFields.md
index b1bbe95..9f24603 100644
--- a/docs/InstanceFields.md
+++ b/docs/InstanceFields.md
@@ -9,6 +9,7 @@ Name | Type | Description | Notes
**contract_id** | **int** | | [optional]
**created_at** | **datetime** | | [optional]
**environment** | [**InstanceEnvironmentFields**](InstanceEnvironmentFields.md) | | [optional]
+**features** | **object** | | [optional]
**fixed_ip** | **str** | | [optional]
**flavor** | [**InstanceFlavorFields**](InstanceFlavorFields.md) | | [optional]
**floating_ip** | **str** | | [optional]
@@ -23,7 +24,8 @@ Name | Type | Description | Notes
**port_randomization** | **bool** | | [optional]
**port_randomization_status** | **str** | | [optional]
**power_state** | **str** | | [optional]
-**security_rules** | [**List[SecurityRulesFieldsforInstance]**](SecurityRulesFieldsforInstance.md) | | [optional]
+**requires_public_ip** | **bool** | | [optional]
+**security_rules** | [**List[SecurityRulesFieldsForInstance]**](SecurityRulesFieldsForInstance.md) | | [optional]
**status** | **str** | | [optional]
**vm_state** | **str** | | [optional]
**volume_attachments** | [**List[VolumeAttachmentFields]**](VolumeAttachmentFields.md) | | [optional]
diff --git a/docs/InstanceFlavorFields.md b/docs/InstanceFlavorFields.md
index 454784f..6fc6818 100644
--- a/docs/InstanceFlavorFields.md
+++ b/docs/InstanceFlavorFields.md
@@ -8,9 +8,11 @@ Name | Type | Description | Notes
**cpu** | **int** | | [optional]
**disk** | **int** | | [optional]
**ephemeral** | **int** | | [optional]
+**features** | **object** | | [optional]
**gpu** | **str** | | [optional]
**gpu_count** | **int** | | [optional]
**id** | **int** | | [optional]
+**labels** | [**List[FlavorLabelFields]**](FlavorLabelFields.md) | | [optional]
**name** | **str** | | [optional]
**ram** | **float** | | [optional]
diff --git a/docs/InstancesSummaryFields.md b/docs/InstancesSummaryFields.md
deleted file mode 100644
index 9e30d79..0000000
--- a/docs/InstancesSummaryFields.md
+++ /dev/null
@@ -1,45 +0,0 @@
-# InstancesSummaryFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**created_at** | **datetime** | | [optional]
-**environment** | **str** | | [optional]
-**environment_id** | **int** | | [optional]
-**fixed_ip** | **str** | | [optional]
-**flavor** | **str** | | [optional]
-**flavor_id** | **int** | | [optional]
-**floating_ip** | **str** | | [optional]
-**floating_ip_status** | **str** | | [optional]
-**id** | **int** | | [optional]
-**image** | **str** | | [optional]
-**image_id** | **int** | | [optional]
-**keypair** | **str** | | [optional]
-**keypair_id** | **int** | | [optional]
-**name** | **str** | | [optional]
-**org_id** | **int** | | [optional]
-**status** | **str** | | [optional]
-**updated_at** | **datetime** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.instances_summary_fields import InstancesSummaryFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of InstancesSummaryFields from a JSON string
-instances_summary_fields_instance = InstancesSummaryFields.from_json(json)
-# print the JSON string representation of the object
-print(InstancesSummaryFields.to_json())
-
-# convert the object into a dict
-instances_summary_fields_dict = instances_summary_fields_instance.to_dict()
-# create an instance of InstancesSummaryFields from a dict
-instances_summary_fields_from_dict = InstancesSummaryFields.from_dict(instances_summary_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/InternalEnvironmentFields.md b/docs/InternalEnvironmentFields.md
deleted file mode 100644
index b5b1514..0000000
--- a/docs/InternalEnvironmentFields.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# InternalEnvironmentFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**created_at** | **datetime** | | [optional]
-**id** | **int** | | [optional]
-**name** | **str** | | [optional]
-**region** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.internal_environment_fields import InternalEnvironmentFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of InternalEnvironmentFields from a JSON string
-internal_environment_fields_instance = InternalEnvironmentFields.from_json(json)
-# print the JSON string representation of the object
-print(InternalEnvironmentFields.to_json())
-
-# convert the object into a dict
-internal_environment_fields_dict = internal_environment_fields_instance.to_dict()
-# create an instance of InternalEnvironmentFields from a dict
-internal_environment_fields_from_dict = InternalEnvironmentFields.from_dict(internal_environment_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/InternalInstanceFields.md b/docs/InternalInstanceFields.md
deleted file mode 100644
index 35145e0..0000000
--- a/docs/InternalInstanceFields.md
+++ /dev/null
@@ -1,47 +0,0 @@
-# InternalInstanceFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**boot_source** | **str** | | [optional]
-**callback_url** | **str** | | [optional]
-**created_at** | **datetime** | | [optional]
-**environment** | [**InternalEnvironmentFields**](InternalEnvironmentFields.md) | | [optional]
-**fixed_ip** | **str** | | [optional]
-**flavor** | [**InternalInstanceFlavorFields**](InternalInstanceFlavorFields.md) | | [optional]
-**floating_ip** | **str** | | [optional]
-**floating_ip_status** | **str** | | [optional]
-**id** | **int** | | [optional]
-**image** | [**InternalInstanceImageFields**](InternalInstanceImageFields.md) | | [optional]
-**keypair** | [**InternalInstanceKeypairFields**](InternalInstanceKeypairFields.md) | | [optional]
-**name** | **str** | | [optional]
-**openstack_id** | **str** | | [optional]
-**power_state** | **str** | | [optional]
-**security_rules** | [**List[InternalSecurityRulesFieldsForInstance]**](InternalSecurityRulesFieldsForInstance.md) | | [optional]
-**status** | **str** | | [optional]
-**user_data** | **str** | | [optional]
-**vm_state** | **str** | | [optional]
-**volume_attachments** | [**List[InternalVolumeAttachmentFields]**](InternalVolumeAttachmentFields.md) | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.internal_instance_fields import InternalInstanceFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of InternalInstanceFields from a JSON string
-internal_instance_fields_instance = InternalInstanceFields.from_json(json)
-# print the JSON string representation of the object
-print(InternalInstanceFields.to_json())
-
-# convert the object into a dict
-internal_instance_fields_dict = internal_instance_fields_instance.to_dict()
-# create an instance of InternalInstanceFields from a dict
-internal_instance_fields_from_dict = InternalInstanceFields.from_dict(internal_instance_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/InternalInstanceFlavorFields.md b/docs/InternalInstanceFlavorFields.md
deleted file mode 100644
index 8531691..0000000
--- a/docs/InternalInstanceFlavorFields.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# InternalInstanceFlavorFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**cpu** | **int** | | [optional]
-**created_at** | **datetime** | | [optional]
-**disk** | **int** | | [optional]
-**gpu** | **str** | | [optional]
-**gpu_count** | **int** | | [optional]
-**id** | **int** | | [optional]
-**name** | **str** | | [optional]
-**ram** | **int** | | [optional]
-**region_name** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.internal_instance_flavor_fields import InternalInstanceFlavorFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of InternalInstanceFlavorFields from a JSON string
-internal_instance_flavor_fields_instance = InternalInstanceFlavorFields.from_json(json)
-# print the JSON string representation of the object
-print(InternalInstanceFlavorFields.to_json())
-
-# convert the object into a dict
-internal_instance_flavor_fields_dict = internal_instance_flavor_fields_instance.to_dict()
-# create an instance of InternalInstanceFlavorFields from a dict
-internal_instance_flavor_fields_from_dict = InternalInstanceFlavorFields.from_dict(internal_instance_flavor_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/InternalInstanceImageFields.md b/docs/InternalInstanceImageFields.md
deleted file mode 100644
index 05b0a11..0000000
--- a/docs/InternalInstanceImageFields.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# InternalInstanceImageFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | | [optional]
-**name** | **str** | | [optional]
-**region_name** | **str** | | [optional]
-**type** | **str** | | [optional]
-**version** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.internal_instance_image_fields import InternalInstanceImageFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of InternalInstanceImageFields from a JSON string
-internal_instance_image_fields_instance = InternalInstanceImageFields.from_json(json)
-# print the JSON string representation of the object
-print(InternalInstanceImageFields.to_json())
-
-# convert the object into a dict
-internal_instance_image_fields_dict = internal_instance_image_fields_instance.to_dict()
-# create an instance of InternalInstanceImageFields from a dict
-internal_instance_image_fields_from_dict = InternalInstanceImageFields.from_dict(internal_instance_image_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/InternalInstanceKeypairFields.md b/docs/InternalInstanceKeypairFields.md
deleted file mode 100644
index 9221a19..0000000
--- a/docs/InternalInstanceKeypairFields.md
+++ /dev/null
@@ -1,34 +0,0 @@
-# InternalInstanceKeypairFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**created_at** | **datetime** | | [optional]
-**environment** | **str** | | [optional]
-**fingerprint** | **str** | | [optional]
-**id** | **int** | | [optional]
-**name** | **str** | | [optional]
-**public_key** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.internal_instance_keypair_fields import InternalInstanceKeypairFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of InternalInstanceKeypairFields from a JSON string
-internal_instance_keypair_fields_instance = InternalInstanceKeypairFields.from_json(json)
-# print the JSON string representation of the object
-print(InternalInstanceKeypairFields.to_json())
-
-# convert the object into a dict
-internal_instance_keypair_fields_dict = internal_instance_keypair_fields_instance.to_dict()
-# create an instance of InternalInstanceKeypairFields from a dict
-internal_instance_keypair_fields_from_dict = InternalInstanceKeypairFields.from_dict(internal_instance_keypair_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/InternalInstancesResponse.md b/docs/InternalInstancesResponse.md
deleted file mode 100644
index 1b072cf..0000000
--- a/docs/InternalInstancesResponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# InternalInstancesResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**instances** | [**List[InternalInstanceFields]**](InternalInstanceFields.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.internal_instances_response import InternalInstancesResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of InternalInstancesResponse from a JSON string
-internal_instances_response_instance = InternalInstancesResponse.from_json(json)
-# print the JSON string representation of the object
-print(InternalInstancesResponse.to_json())
-
-# convert the object into a dict
-internal_instances_response_dict = internal_instances_response_instance.to_dict()
-# create an instance of InternalInstancesResponse from a dict
-internal_instances_response_from_dict = InternalInstancesResponse.from_dict(internal_instances_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/InternalSecurityRulesFieldsForInstance.md b/docs/InternalSecurityRulesFieldsForInstance.md
deleted file mode 100644
index 77843a1..0000000
--- a/docs/InternalSecurityRulesFieldsForInstance.md
+++ /dev/null
@@ -1,37 +0,0 @@
-# InternalSecurityRulesFieldsForInstance
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**created_at** | **datetime** | | [optional]
-**direction** | **str** | | [optional]
-**ethertype** | **str** | | [optional]
-**id** | **int** | | [optional]
-**port_range_max** | **int** | | [optional]
-**port_range_min** | **int** | | [optional]
-**protocol** | **str** | | [optional]
-**remote_ip_prefix** | **str** | | [optional]
-**status** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.internal_security_rules_fields_for_instance import InternalSecurityRulesFieldsForInstance
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of InternalSecurityRulesFieldsForInstance from a JSON string
-internal_security_rules_fields_for_instance_instance = InternalSecurityRulesFieldsForInstance.from_json(json)
-# print the JSON string representation of the object
-print(InternalSecurityRulesFieldsForInstance.to_json())
-
-# convert the object into a dict
-internal_security_rules_fields_for_instance_dict = internal_security_rules_fields_for_instance_instance.to_dict()
-# create an instance of InternalSecurityRulesFieldsForInstance from a dict
-internal_security_rules_fields_for_instance_from_dict = InternalSecurityRulesFieldsForInstance.from_dict(internal_security_rules_fields_for_instance_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/InternalVolumeAttachmentFields.md b/docs/InternalVolumeAttachmentFields.md
deleted file mode 100644
index a928973..0000000
--- a/docs/InternalVolumeAttachmentFields.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# InternalVolumeAttachmentFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**created_at** | **datetime** | | [optional]
-**device** | **str** | | [optional]
-**status** | **str** | | [optional]
-**volume** | [**InternalVolumeFields**](InternalVolumeFields.md) | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.internal_volume_attachment_fields import InternalVolumeAttachmentFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of InternalVolumeAttachmentFields from a JSON string
-internal_volume_attachment_fields_instance = InternalVolumeAttachmentFields.from_json(json)
-# print the JSON string representation of the object
-print(InternalVolumeAttachmentFields.to_json())
-
-# convert the object into a dict
-internal_volume_attachment_fields_dict = internal_volume_attachment_fields_instance.to_dict()
-# create an instance of InternalVolumeAttachmentFields from a dict
-internal_volume_attachment_fields_from_dict = InternalVolumeAttachmentFields.from_dict(internal_volume_attachment_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/InternalVolumeFields.md b/docs/InternalVolumeFields.md
deleted file mode 100644
index c696e03..0000000
--- a/docs/InternalVolumeFields.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# InternalVolumeFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**description** | **str** | | [optional]
-**id** | **int** | | [optional]
-**name** | **str** | | [optional]
-**size** | **int** | | [optional]
-**volume_type** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.internal_volume_fields import InternalVolumeFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of InternalVolumeFields from a JSON string
-internal_volume_fields_instance = InternalVolumeFields.from_json(json)
-# print the JSON string representation of the object
-print(InternalVolumeFields.to_json())
-
-# convert the object into a dict
-internal_volume_fields_dict = internal_volume_fields_instance.to_dict()
-# create an instance of InternalVolumeFields from a dict
-internal_volume_fields_from_dict = InternalVolumeFields.from_dict(internal_volume_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/InternalVolumesResponse.md b/docs/InternalVolumesResponse.md
deleted file mode 100644
index b7c8d72..0000000
--- a/docs/InternalVolumesResponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# InternalVolumesResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-**volumes** | [**List[InternalVolumeFields]**](InternalVolumeFields.md) | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.internal_volumes_response import InternalVolumesResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of InternalVolumesResponse from a JSON string
-internal_volumes_response_instance = InternalVolumesResponse.from_json(json)
-# print the JSON string representation of the object
-print(InternalVolumesResponse.to_json())
-
-# convert the object into a dict
-internal_volumes_response_dict = internal_volumes_response_instance.to_dict()
-# create an instance of InternalVolumesResponse from a dict
-internal_volumes_response_from_dict = InternalVolumesResponse.from_dict(internal_volumes_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/InviteApi.md b/docs/InviteApi.md
index 084bb1c..1297304 100644
--- a/docs/InviteApi.md
+++ b/docs/InviteApi.md
@@ -4,22 +4,22 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**delete_invite**](InviteApi.md#delete_invite) | **DELETE** /auth/invites/{id} | Delete Invite
+[**accept_invite**](InviteApi.md#accept_invite) | **GET** /auth/invites/{id}/accept | Accept Invite
+[**delete_invite**](InviteApi.md#delete_invite) | **DELETE** /auth/invites/{id} | Accept Invite
[**invite_user_to_organization**](InviteApi.md#invite_user_to_organization) | **POST** /auth/invites | Invite User to Organization
[**list_invites**](InviteApi.md#list_invites) | **GET** /auth/invites | List Invites
-# **delete_invite**
-> CommonResponseModel delete_invite(id)
+# **accept_invite**
+> CommonResponseModel accept_invite(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).
+Accept an invitation for a user to join your organization.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -44,11 +44,88 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.InviteApi(api_client)
+ id = 56 # int |
+
+ try:
+ # Accept Invite
+ api_response = api_instance.accept_invite(id)
+ print("The response of InviteApi->accept_invite:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling InviteApi->accept_invite: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **id** | **int**| |
+
+### Return type
+
+[**CommonResponseModel**](CommonResponseModel.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Invite deleted successfully | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **delete_invite**
+> CommonResponseModel delete_invite(id)
+
+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).
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.common_response_model import CommonResponseModel
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
@@ -57,7 +134,7 @@ with hyperstack.ApiClient(configuration) as api_client:
id = 56 # int |
try:
- # Delete Invite
+ # Accept Invite
api_response = api_instance.delete_invite(id)
print("The response of InviteApi->delete_invite:\n")
pprint(api_response)
@@ -80,7 +157,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -91,7 +168,7 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Invite deleted successfully | - |
+**200** | Invite accepted successfully | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**404** | Not Found | - |
@@ -104,12 +181,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -135,12 +211,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -171,7 +241,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -195,12 +265,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -225,12 +294,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -257,7 +320,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 37e55d6..193cf14 100644
--- a/docs/KeypairApi.md
+++ b/docs/KeypairApi.md
@@ -15,12 +15,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -45,12 +44,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -81,7 +74,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -105,12 +98,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -136,12 +128,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -172,7 +158,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -197,12 +183,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -227,12 +212,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -267,7 +246,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -286,21 +265,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **update_key_pair_name**
-> UpdateKeypairnameresponse update_key_pair_name(id, payload)
+> UpdateKeypairNameResponse update_key_pair_name(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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
from hyperstack.models.update_keypair_name import UpdateKeypairName
-from hyperstack.models.update_keypairnameresponse import UpdateKeypairnameresponse
+from hyperstack.models.update_keypair_name_response import UpdateKeypairNameResponse
from hyperstack.rest import ApiException
from pprint import pprint
@@ -321,12 +299,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -355,11 +327,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 0000000..90d4dd6
--- /dev/null
+++ b/docs/KeypairEnvironmentFeatures.md
@@ -0,0 +1,30 @@
+# KeypairEnvironmentFeatures
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**green_status** | **str** | | [optional]
+**network_optimised** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.keypair_environment_features import KeypairEnvironmentFeatures
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of KeypairEnvironmentFeatures from a JSON string
+keypair_environment_features_instance = KeypairEnvironmentFeatures.from_json(json)
+# print the JSON string representation of the object
+print(KeypairEnvironmentFeatures.to_json())
+
+# convert the object into a dict
+keypair_environment_features_dict = keypair_environment_features_instance.to_dict()
+# create an instance of KeypairEnvironmentFeatures from a dict
+keypair_environment_features_from_dict = KeypairEnvironmentFeatures.from_dict(keypair_environment_features_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/KeypairEnvironmentFields.md b/docs/KeypairEnvironmentFields.md
new file mode 100644
index 0000000..25832b1
--- /dev/null
+++ b/docs/KeypairEnvironmentFields.md
@@ -0,0 +1,33 @@
+# KeypairEnvironmentFields
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**created_at** | **datetime** | | [optional]
+**features** | [**KeypairEnvironmentFeatures**](KeypairEnvironmentFeatures.md) | | [optional]
+**id** | **int** | | [optional]
+**name** | **str** | | [optional]
+**region** | **str** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.keypair_environment_fields import KeypairEnvironmentFields
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of KeypairEnvironmentFields from a JSON string
+keypair_environment_fields_instance = KeypairEnvironmentFields.from_json(json)
+# print the JSON string representation of the object
+print(KeypairEnvironmentFields.to_json())
+
+# convert the object into a dict
+keypair_environment_fields_dict = keypair_environment_fields_instance.to_dict()
+# create an instance of KeypairEnvironmentFields from a dict
+keypair_environment_fields_from_dict = KeypairEnvironmentFields.from_dict(keypair_environment_fields_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/KeypairFields.md b/docs/KeypairFields.md
index 4318e0a..a2c964b 100644
--- a/docs/KeypairFields.md
+++ b/docs/KeypairFields.md
@@ -6,7 +6,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**created_at** | **datetime** | | [optional]
-**environment** | **str** | | [optional]
+**environment** | [**KeypairEnvironmentFields**](KeypairEnvironmentFields.md) | | [optional]
**fingerprint** | **str** | | [optional]
**id** | **int** | | [optional]
**name** | **str** | | [optional]
diff --git a/docs/Lastdaycostfields.md b/docs/Lastdaycostfields.md
index 439f616..f12eb97 100644
--- a/docs/Lastdaycostfields.md
+++ b/docs/Lastdaycostfields.md
@@ -1,4 +1,4 @@
-# Lastdaycostfields
+# LastDayCostFields
## Properties
@@ -13,19 +13,19 @@ Name | Type | Description | Notes
## Example
```python
-from hyperstack.models.lastdaycostfields import Lastdaycostfields
+from hyperstack.models.last_day_cost_fields import LastDayCostFields
# TODO update the JSON string below
json = "{}"
-# create an instance of Lastdaycostfields from a JSON string
-lastdaycostfields_instance = Lastdaycostfields.from_json(json)
+# create an instance of LastDayCostFields from a JSON string
+last_day_cost_fields_instance = LastDayCostFields.from_json(json)
# print the JSON string representation of the object
-print(Lastdaycostfields.to_json())
+print(LastDayCostFields.to_json())
# convert the object into a dict
-lastdaycostfields_dict = lastdaycostfields_instance.to_dict()
-# create an instance of Lastdaycostfields from a dict
-lastdaycostfields_from_dict = Lastdaycostfields.from_dict(lastdaycostfields_dict)
+last_day_cost_fields_dict = last_day_cost_fields_instance.to_dict()
+# create an instance of LastDayCostFields from a dict
+last_day_cost_fields_from_dict = LastDayCostFields.from_dict(last_day_cost_fields_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/Lastdaycostresponse.md b/docs/Lastdaycostresponse.md
index 6e3f824..be9abaa 100644
--- a/docs/Lastdaycostresponse.md
+++ b/docs/Lastdaycostresponse.md
@@ -1,30 +1,30 @@
-# Lastdaycostresponse
+# LastDayCostResponse
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**data** | [**Lastdaycostfields**](Lastdaycostfields.md) | | [optional]
+**data** | [**LastDayCostFields**](LastDayCostFields.md) | | [optional]
**message** | **str** | | [optional]
**status** | **bool** | | [optional]
## Example
```python
-from hyperstack.models.lastdaycostresponse import Lastdaycostresponse
+from hyperstack.models.last_day_cost_response import LastDayCostResponse
# TODO update the JSON string below
json = "{}"
-# create an instance of Lastdaycostresponse from a JSON string
-lastdaycostresponse_instance = Lastdaycostresponse.from_json(json)
+# create an instance of LastDayCostResponse from a JSON string
+last_day_cost_response_instance = LastDayCostResponse.from_json(json)
# print the JSON string representation of the object
-print(Lastdaycostresponse.to_json())
+print(LastDayCostResponse.to_json())
# convert the object into a dict
-lastdaycostresponse_dict = lastdaycostresponse_instance.to_dict()
-# create an instance of Lastdaycostresponse from a dict
-lastdaycostresponse_from_dict = Lastdaycostresponse.from_dict(lastdaycostresponse_dict)
+last_day_cost_response_dict = last_day_cost_response_instance.to_dict()
+# create an instance of LastDayCostResponse from a dict
+last_day_cost_response_from_dict = LastDayCostResponse.from_dict(last_day_cost_response_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/LogoGetResponse.md b/docs/LogoGetResponse.md
deleted file mode 100644
index 30e1b24..0000000
--- a/docs/LogoGetResponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# LogoGetResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | | [optional]
-**type** | **str** | | [optional]
-**url** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.logo_get_response import LogoGetResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of LogoGetResponse from a JSON string
-logo_get_response_instance = LogoGetResponse.from_json(json)
-# print the JSON string representation of the object
-print(LogoGetResponse.to_json())
-
-# convert the object into a dict
-logo_get_response_dict = logo_get_response_instance.to_dict()
-# create an instance of LogoGetResponse from a dict
-logo_get_response_from_dict = LogoGetResponse.from_dict(logo_get_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/GPU.md b/docs/Logos.md
similarity index 50%
rename from docs/GPU.md
rename to docs/Logos.md
index ed1f67a..adfb3bb 100644
--- a/docs/GPU.md
+++ b/docs/Logos.md
@@ -1,30 +1,31 @@
-# GPU
+# Logos
## Properties
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**gpu** | [**GPUFields**](GPUFields.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
+**dark** | **str** | | [optional]
+**email** | **str** | | [optional]
+**favicon** | **str** | | [optional]
+**light** | **str** | | [optional]
## Example
```python
-from hyperstack.models.gpu import GPU
+from hyperstack.models.logos import Logos
# TODO update the JSON string below
json = "{}"
-# create an instance of GPU from a JSON string
-gpu_instance = GPU.from_json(json)
+# create an instance of Logos from a JSON string
+logos_instance = Logos.from_json(json)
# print the JSON string representation of the object
-print(GPU.to_json())
+print(Logos.to_json())
# convert the object into a dict
-gpu_dict = gpu_instance.to_dict()
-# create an instance of GPU from a dict
-gpu_from_dict = GPU.from_dict(gpu_dict)
+logos_dict = logos_instance.to_dict()
+# create an instance of Logos from a dict
+logos_from_dict = Logos.from_dict(logos_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/LogoutPayload.md b/docs/LogoutPayload.md
deleted file mode 100644
index 11461b0..0000000
--- a/docs/LogoutPayload.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# LogoutPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**refresh_token** | **str** | |
-
-## Example
-
-```python
-from hyperstack.models.logout_payload import LogoutPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of LogoutPayload from a JSON string
-logout_payload_instance = LogoutPayload.from_json(json)
-# print the JSON string representation of the object
-print(LogoutPayload.to_json())
-
-# convert the object into a dict
-logout_payload_dict = logout_payload_instance.to_dict()
-# create an instance of LogoutPayload from a dict
-logout_payload_from_dict = LogoutPayload.from_dict(logout_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/MFAStatusFields.md b/docs/MFAStatusFields.md
new file mode 100644
index 0000000..1016221
--- /dev/null
+++ b/docs/MFAStatusFields.md
@@ -0,0 +1,29 @@
+# MFAStatusFields
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**mfa_enabled** | **bool** | Whether MFA is enabled for the user |
+
+## Example
+
+```python
+from hyperstack.models.mfa_status_fields import MFAStatusFields
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of MFAStatusFields from a JSON string
+mfa_status_fields_instance = MFAStatusFields.from_json(json)
+# print the JSON string representation of the object
+print(MFAStatusFields.to_json())
+
+# convert the object into a dict
+mfa_status_fields_dict = mfa_status_fields_instance.to_dict()
+# create an instance of MFAStatusFields from a dict
+mfa_status_fields_from_dict = MFAStatusFields.from_dict(mfa_status_fields_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/MFAStatusResponse.md b/docs/MFAStatusResponse.md
new file mode 100644
index 0000000..db65df2
--- /dev/null
+++ b/docs/MFAStatusResponse.md
@@ -0,0 +1,31 @@
+# MFAStatusResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | | [optional]
+**mfa** | [**MFAStatusFields**](MFAStatusFields.md) | | [optional]
+**status** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.mfa_status_response import MFAStatusResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of MFAStatusResponse from a JSON string
+mfa_status_response_instance = MFAStatusResponse.from_json(json)
+# print the JSON string representation of the object
+print(MFAStatusResponse.to_json())
+
+# convert the object into a dict
+mfa_status_response_dict = mfa_status_response_instance.to_dict()
+# create an instance of MFAStatusResponse from a dict
+mfa_status_response_from_dict = MFAStatusResponse.from_dict(mfa_status_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/MasterFlavorsResponse.md b/docs/MasterFlavorsResponse.md
new file mode 100644
index 0000000..df6198a
--- /dev/null
+++ b/docs/MasterFlavorsResponse.md
@@ -0,0 +1,31 @@
+# MasterFlavorsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**flavors** | [**List[ClusterFlavorFields]**](ClusterFlavorFields.md) | | [optional]
+**message** | **str** | | [optional]
+**status** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.master_flavors_response import MasterFlavorsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of MasterFlavorsResponse from a JSON string
+master_flavors_response_instance = MasterFlavorsResponse.from_json(json)
+# print the JSON string representation of the object
+print(MasterFlavorsResponse.to_json())
+
+# convert the object into a dict
+master_flavors_response_dict = master_flavors_response_instance.to_dict()
+# create an instance of MasterFlavorsResponse from a dict
+master_flavors_response_from_dict = MasterFlavorsResponse.from_dict(master_flavors_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ModelEvaluationBillingHistoryDetailsResponseSchema.md b/docs/ModelEvaluationBillingHistoryDetailsResponseSchema.md
new file mode 100644
index 0000000..d2eca23
--- /dev/null
+++ b/docs/ModelEvaluationBillingHistoryDetailsResponseSchema.md
@@ -0,0 +1,31 @@
+# ModelEvaluationBillingHistoryDetailsResponseSchema
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_history_model_evalutation_details** | [**BillingHistoryModelEvalutationDetails**](BillingHistoryModelEvalutationDetails.md) | | [optional]
+**message** | **str** | | [optional]
+**status** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.model_evaluation_billing_history_details_response_schema import ModelEvaluationBillingHistoryDetailsResponseSchema
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ModelEvaluationBillingHistoryDetailsResponseSchema from a JSON string
+model_evaluation_billing_history_details_response_schema_instance = ModelEvaluationBillingHistoryDetailsResponseSchema.from_json(json)
+# print the JSON string representation of the object
+print(ModelEvaluationBillingHistoryDetailsResponseSchema.to_json())
+
+# convert the object into a dict
+model_evaluation_billing_history_details_response_schema_dict = model_evaluation_billing_history_details_response_schema_instance.to_dict()
+# create an instance of ModelEvaluationBillingHistoryDetailsResponseSchema from a dict
+model_evaluation_billing_history_details_response_schema_from_dict = ModelEvaluationBillingHistoryDetailsResponseSchema.from_dict(model_evaluation_billing_history_details_response_schema_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/NewStockUpdateResponseModel.md b/docs/NewStockUpdateResponseModel.md
deleted file mode 100644
index 3956c81..0000000
--- a/docs/NewStockUpdateResponseModel.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# NewStockUpdateResponseModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.new_stock_update_response_model import NewStockUpdateResponseModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of NewStockUpdateResponseModel from a JSON string
-new_stock_update_response_model_instance = NewStockUpdateResponseModel.from_json(json)
-# print the JSON string representation of the object
-print(NewStockUpdateResponseModel.to_json())
-
-# convert the object into a dict
-new_stock_update_response_model_dict = new_stock_update_response_model_instance.to_dict()
-# create an instance of NewStockUpdateResponseModel from a dict
-new_stock_update_response_model_from_dict = NewStockUpdateResponseModel.from_dict(new_stock_update_response_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/NodeModel.md b/docs/NodeModel.md
deleted file mode 100644
index 40b8b39..0000000
--- a/docs/NodeModel.md
+++ /dev/null
@@ -1,38 +0,0 @@
-# NodeModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**flavors** | **List[str]** | | [optional]
-**nexgen_name** | **str** | | [optional]
-**openstack_id** | **str** | |
-**openstack_name** | **str** | | [optional]
-**organizations** | **List[int]** | | [optional]
-**projects** | **List[str]** | | [optional]
-**provision_date** | **datetime** | | [optional]
-**status** | **str** | | [optional]
-**stocks** | [**List[NodeStocksPayload]**](NodeStocksPayload.md) | | [optional]
-**sunset_date** | **datetime** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.node_model import NodeModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of NodeModel from a JSON string
-node_model_instance = NodeModel.from_json(json)
-# print the JSON string representation of the object
-print(NodeModel.to_json())
-
-# convert the object into a dict
-node_model_dict = node_model_instance.to_dict()
-# create an instance of NodeModel from a dict
-node_model_from_dict = NodeModel.from_dict(node_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/NodePayloadModel.md b/docs/NodePayloadModel.md
deleted file mode 100644
index 4cdd45b..0000000
--- a/docs/NodePayloadModel.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# NodePayloadModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**nodes** | [**List[NodePowerUsageModel]**](NodePowerUsageModel.md) | | [optional]
-**region** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.node_payload_model import NodePayloadModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of NodePayloadModel from a JSON string
-node_payload_model_instance = NodePayloadModel.from_json(json)
-# print the JSON string representation of the object
-print(NodePayloadModel.to_json())
-
-# convert the object into a dict
-node_payload_model_dict = node_payload_model_instance.to_dict()
-# create an instance of NodePayloadModel from a dict
-node_payload_model_from_dict = NodePayloadModel.from_dict(node_payload_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/NodePowerUsageModel.md b/docs/NodePowerUsageModel.md
deleted file mode 100644
index dca8cda..0000000
--- a/docs/NodePowerUsageModel.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# NodePowerUsageModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**flavors** | **List[str]** | | [optional]
-**nexgen_name** | **str** | | [optional]
-**openstack_id** | **str** | |
-**openstack_name** | **str** | | [optional]
-**organizations** | **List[int]** | | [optional]
-**power_usages** | [**PowerUsageModel**](PowerUsageModel.md) | | [optional]
-**projects** | **List[str]** | | [optional]
-**provision_date** | **datetime** | | [optional]
-**status** | **str** | | [optional]
-**stocks** | [**List[NodeStocksPayload]**](NodeStocksPayload.md) | | [optional]
-**sunset_date** | **datetime** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.node_power_usage_model import NodePowerUsageModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of NodePowerUsageModel from a JSON string
-node_power_usage_model_instance = NodePowerUsageModel.from_json(json)
-# print the JSON string representation of the object
-print(NodePowerUsageModel.to_json())
-
-# convert the object into a dict
-node_power_usage_model_dict = node_power_usage_model_instance.to_dict()
-# create an instance of NodePowerUsageModel from a dict
-node_power_usage_model_from_dict = NodePowerUsageModel.from_dict(node_power_usage_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/NodeResponseModel.md b/docs/NodeResponseModel.md
deleted file mode 100644
index f21d792..0000000
--- a/docs/NodeResponseModel.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# NodeResponseModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**nodes** | [**List[NodeModel]**](NodeModel.md) | | [optional]
-**region** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.node_response_model import NodeResponseModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of NodeResponseModel from a JSON string
-node_response_model_instance = NodeResponseModel.from_json(json)
-# print the JSON string representation of the object
-print(NodeResponseModel.to_json())
-
-# convert the object into a dict
-node_response_model_dict = node_response_model_instance.to_dict()
-# create an instance of NodeResponseModel from a dict
-node_response_model_from_dict = NodeResponseModel.from_dict(node_response_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/NodeStockPayloadModel.md b/docs/NodeStockPayloadModel.md
deleted file mode 100644
index 31e3cc0..0000000
--- a/docs/NodeStockPayloadModel.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# NodeStockPayloadModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**stocks** | [**List[NodePayloadModel]**](NodePayloadModel.md) | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.node_stock_payload_model import NodeStockPayloadModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of NodeStockPayloadModel from a JSON string
-node_stock_payload_model_instance = NodeStockPayloadModel.from_json(json)
-# print the JSON string representation of the object
-print(NodeStockPayloadModel.to_json())
-
-# convert the object into a dict
-node_stock_payload_model_dict = node_stock_payload_model_instance.to_dict()
-# create an instance of NodeStockPayloadModel from a dict
-node_stock_payload_model_from_dict = NodeStockPayloadModel.from_dict(node_stock_payload_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/NodeStockResponseModel.md b/docs/NodeStockResponseModel.md
deleted file mode 100644
index fdbeee8..0000000
--- a/docs/NodeStockResponseModel.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# NodeStockResponseModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**stocks** | [**List[NodeResponseModel]**](NodeResponseModel.md) | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.node_stock_response_model import NodeStockResponseModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of NodeStockResponseModel from a JSON string
-node_stock_response_model_instance = NodeStockResponseModel.from_json(json)
-# print the JSON string representation of the object
-print(NodeStockResponseModel.to_json())
-
-# convert the object into a dict
-node_stock_response_model_dict = node_stock_response_model_instance.to_dict()
-# create an instance of NodeStockResponseModel from a dict
-node_stock_response_model_from_dict = NodeStockResponseModel.from_dict(node_stock_response_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/NodeStocksPayload.md b/docs/NodeStocksPayload.md
deleted file mode 100644
index 7dab8d0..0000000
--- a/docs/NodeStocksPayload.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# NodeStocksPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**in_use** | **int** | |
-**name** | **str** | | [optional]
-**total** | **int** | |
-**type** | **str** | |
-
-## Example
-
-```python
-from hyperstack.models.node_stocks_payload import NodeStocksPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of NodeStocksPayload from a JSON string
-node_stocks_payload_instance = NodeStocksPayload.from_json(json)
-# print the JSON string representation of the object
-print(NodeStocksPayload.to_json())
-
-# convert the object into a dict
-node_stocks_payload_dict = node_stocks_payload_instance.to_dict()
-# create an instance of NodeStocksPayload from a dict
-node_stocks_payload_from_dict = NodeStocksPayload.from_dict(node_stocks_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/OrganizationApi.md b/docs/OrganizationApi.md
index 7650186..283c3df 100644
--- a/docs/OrganizationApi.md
+++ b/docs/OrganizationApi.md
@@ -14,12 +14,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -45,12 +44,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -81,7 +74,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -104,12 +97,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -134,12 +126,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -166,7 +152,7 @@ This endpoint does not need any parameter.
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -189,12 +175,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -220,12 +205,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -256,7 +235,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 14439f2..0000000
--- a/docs/OrganizationObjectResponse.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# OrganizationObjectResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**org_id** | **int** | | [optional]
-**resources** | [**List[InfrahubResourceObjectResponse]**](InfrahubResourceObjectResponse.md) | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.organization_object_response import OrganizationObjectResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of OrganizationObjectResponse from a JSON string
-organization_object_response_instance = OrganizationObjectResponse.from_json(json)
-# print the JSON string representation of the object
-print(OrganizationObjectResponse.to_json())
-
-# convert the object into a dict
-organization_object_response_dict = organization_object_response_instance.to_dict()
-# create an instance of OrganizationObjectResponse from a dict
-organization_object_response_from_dict = OrganizationObjectResponse.from_dict(organization_object_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/OrganizationThresholdfields.md b/docs/OrganizationThresholdfields.md
index 243c2ab..f64cae8 100644
--- a/docs/OrganizationThresholdfields.md
+++ b/docs/OrganizationThresholdfields.md
@@ -1,4 +1,4 @@
-# OrganizationThresholdfields
+# OrganizationThresholdFields
## Properties
@@ -14,19 +14,19 @@ Name | Type | Description | Notes
## Example
```python
-from hyperstack.models.organization_thresholdfields import OrganizationThresholdfields
+from hyperstack.models.organization_threshold_fields import OrganizationThresholdFields
# TODO update the JSON string below
json = "{}"
-# create an instance of OrganizationThresholdfields from a JSON string
-organization_thresholdfields_instance = OrganizationThresholdfields.from_json(json)
+# create an instance of OrganizationThresholdFields from a JSON string
+organization_threshold_fields_instance = OrganizationThresholdFields.from_json(json)
# print the JSON string representation of the object
-print(OrganizationThresholdfields.to_json())
+print(OrganizationThresholdFields.to_json())
# convert the object into a dict
-organization_thresholdfields_dict = organization_thresholdfields_instance.to_dict()
-# create an instance of OrganizationThresholdfields from a dict
-organization_thresholdfields_from_dict = OrganizationThresholdfields.from_dict(organization_thresholdfields_dict)
+organization_threshold_fields_dict = organization_threshold_fields_instance.to_dict()
+# create an instance of OrganizationThresholdFields from a dict
+organization_threshold_fields_from_dict = OrganizationThresholdFields.from_dict(organization_threshold_fields_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/Organizationcreditrechargelimitresponse.md b/docs/Organizationcreditrechargelimitresponse.md
deleted file mode 100644
index 4ab9ef4..0000000
--- a/docs/Organizationcreditrechargelimitresponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# Organizationcreditrechargelimitresponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**data** | [**Creditrechargelimitfield**](Creditrechargelimitfield.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.organizationcreditrechargelimitresponse import Organizationcreditrechargelimitresponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of Organizationcreditrechargelimitresponse from a JSON string
-organizationcreditrechargelimitresponse_instance = Organizationcreditrechargelimitresponse.from_json(json)
-# print the JSON string representation of the object
-print(Organizationcreditrechargelimitresponse.to_json())
-
-# convert the object into a dict
-organizationcreditrechargelimitresponse_dict = organizationcreditrechargelimitresponse_instance.to_dict()
-# create an instance of Organizationcreditrechargelimitresponse from a dict
-organizationcreditrechargelimitresponse_from_dict = Organizationcreditrechargelimitresponse.from_dict(organizationcreditrechargelimitresponse_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/Organizationthresholdsresponse.md b/docs/Organizationthresholdsresponse.md
index 52a5f69..7af8fc7 100644
--- a/docs/Organizationthresholdsresponse.md
+++ b/docs/Organizationthresholdsresponse.md
@@ -1,4 +1,4 @@
-# Organizationthresholdsresponse
+# OrganizationThresholdsResponse
## Properties
@@ -7,24 +7,24 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **str** | | [optional]
**status** | **bool** | | [optional]
-**thresholds** | [**List[OrganizationThresholdfields]**](OrganizationThresholdfields.md) | | [optional]
+**thresholds** | [**List[OrganizationThresholdFields]**](OrganizationThresholdFields.md) | | [optional]
## Example
```python
-from hyperstack.models.organizationthresholdsresponse import Organizationthresholdsresponse
+from hyperstack.models.organization_thresholds_response import OrganizationThresholdsResponse
# TODO update the JSON string below
json = "{}"
-# create an instance of Organizationthresholdsresponse from a JSON string
-organizationthresholdsresponse_instance = Organizationthresholdsresponse.from_json(json)
+# create an instance of OrganizationThresholdsResponse from a JSON string
+organization_thresholds_response_instance = OrganizationThresholdsResponse.from_json(json)
# print the JSON string representation of the object
-print(Organizationthresholdsresponse.to_json())
+print(OrganizationThresholdsResponse.to_json())
# convert the object into a dict
-organizationthresholdsresponse_dict = organizationthresholdsresponse_instance.to_dict()
-# create an instance of Organizationthresholdsresponse from a dict
-organizationthresholdsresponse_from_dict = Organizationthresholdsresponse.from_dict(organizationthresholdsresponse_dict)
+organization_thresholds_response_dict = organization_thresholds_response_instance.to_dict()
+# create an instance of OrganizationThresholdsResponse from a dict
+organization_thresholds_response_from_dict = OrganizationThresholdsResponse.from_dict(organization_thresholds_response_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/Organizationthresholdupdateresponse.md b/docs/Organizationthresholdupdateresponse.md
index 709a08f..293c4ca 100644
--- a/docs/Organizationthresholdupdateresponse.md
+++ b/docs/Organizationthresholdupdateresponse.md
@@ -1,4 +1,4 @@
-# Organizationthresholdupdateresponse
+# OrganizationThresholdUpdateResponse
## Properties
@@ -7,24 +7,24 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**message** | **str** | | [optional]
**status** | **bool** | | [optional]
-**threshold** | [**OrganizationThresholdfields**](OrganizationThresholdfields.md) | | [optional]
+**threshold** | [**OrganizationThresholdFields**](OrganizationThresholdFields.md) | | [optional]
## Example
```python
-from hyperstack.models.organizationthresholdupdateresponse import Organizationthresholdupdateresponse
+from hyperstack.models.organization_threshold_update_response import OrganizationThresholdUpdateResponse
# TODO update the JSON string below
json = "{}"
-# create an instance of Organizationthresholdupdateresponse from a JSON string
-organizationthresholdupdateresponse_instance = Organizationthresholdupdateresponse.from_json(json)
+# create an instance of OrganizationThresholdUpdateResponse from a JSON string
+organization_threshold_update_response_instance = OrganizationThresholdUpdateResponse.from_json(json)
# print the JSON string representation of the object
-print(Organizationthresholdupdateresponse.to_json())
+print(OrganizationThresholdUpdateResponse.to_json())
# convert the object into a dict
-organizationthresholdupdateresponse_dict = organizationthresholdupdateresponse_instance.to_dict()
-# create an instance of Organizationthresholdupdateresponse from a dict
-organizationthresholdupdateresponse_from_dict = Organizationthresholdupdateresponse.from_dict(organizationthresholdupdateresponse_dict)
+organization_threshold_update_response_dict = organization_threshold_update_response_instance.to_dict()
+# create an instance of OrganizationThresholdUpdateResponse from a dict
+organization_threshold_update_response_from_dict = OrganizationThresholdUpdateResponse.from_dict(organization_threshold_update_response_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/Pagination.md b/docs/Pagination.md
new file mode 100644
index 0000000..bdb5ac1
--- /dev/null
+++ b/docs/Pagination.md
@@ -0,0 +1,31 @@
+# Pagination
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**page** | **int** | | [optional]
+**pages** | **int** | | [optional]
+**per_page** | **int** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.pagination import Pagination
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of Pagination from a JSON string
+pagination_instance = Pagination.from_json(json)
+# print the JSON string representation of the object
+print(Pagination.to_json())
+
+# convert the object into a dict
+pagination_dict = pagination_instance.to_dict()
+# create an instance of Pagination from a dict
+pagination_from_dict = Pagination.from_dict(pagination_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PartnerConfig.md b/docs/PartnerConfig.md
new file mode 100644
index 0000000..ae79bfb
--- /dev/null
+++ b/docs/PartnerConfig.md
@@ -0,0 +1,35 @@
+# PartnerConfig
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**background_image_url** | **str** | | [optional]
+**colors** | [**Colors**](Colors.md) | | [optional]
+**logos** | [**Logos**](Logos.md) | | [optional]
+**name** | **str** | |
+**support_email** | **str** | | [optional]
+**uris** | [**URIs**](URIs.md) | | [optional]
+**user_type** | **str** | |
+
+## Example
+
+```python
+from hyperstack.models.partner_config import PartnerConfig
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of PartnerConfig from a JSON string
+partner_config_instance = PartnerConfig.from_json(json)
+# print the JSON string representation of the object
+print(PartnerConfig.to_json())
+
+# convert the object into a dict
+partner_config_dict = partner_config_instance.to_dict()
+# create an instance of PartnerConfig from a dict
+partner_config_from_dict = PartnerConfig.from_dict(partner_config_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/PartnerConfigApi.md b/docs/PartnerConfigApi.md
new file mode 100644
index 0000000..9b4995a
--- /dev/null
+++ b/docs/PartnerConfigApi.md
@@ -0,0 +1,147 @@
+# hyperstack.PartnerConfigApi
+
+All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
+
+Method | HTTP request | Description
+------------- | ------------- | -------------
+[**get_partner_config**](PartnerConfigApi.md#get_partner_config) | **GET** /auth/partner-config | Get partner config
+[**get_partner_config_by_domain**](PartnerConfigApi.md#get_partner_config_by_domain) | **GET** /auth/partner-config/docs |
+
+
+# **get_partner_config**
+> PartnerConfig get_partner_config()
+
+Get partner config
+
+Fetch the customised customer configuration for Hyperstack.
+
+### Example
+
+
+```python
+import hyperstack
+from hyperstack.models.partner_config import PartnerConfig
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.PartnerConfigApi(api_client)
+
+ try:
+ # Get partner config
+ api_response = api_instance.get_partner_config()
+ print("The response of PartnerConfigApi->get_partner_config:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling PartnerConfigApi->get_partner_config: %s\n" % e)
+```
+
+
+
+### Parameters
+
+This endpoint does not need any parameter.
+
+### Return type
+
+[**PartnerConfig**](PartnerConfig.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_partner_config_by_domain**
+> PartnerConfig get_partner_config_by_domain(domain=domain)
+
+
+
+Fetch the partner config for a given domain.
+
+### Example
+
+
+```python
+import hyperstack
+from hyperstack.models.partner_config import PartnerConfig
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.PartnerConfigApi(api_client)
+ domain = 'domain_example' # str | The domain to look up the partner config for. (optional)
+
+ try:
+ api_response = api_instance.get_partner_config_by_domain(domain=domain)
+ print("The response of PartnerConfigApi->get_partner_config_by_domain:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling PartnerConfigApi->get_partner_config_by_domain: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **domain** | **str**| The domain to look up the partner config for. | [optional]
+
+### Return type
+
+[**PartnerConfig**](PartnerConfig.md)
+
+### Authorization
+
+No authorization required
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/PaymentApi.md b/docs/PaymentApi.md
index 2036c65..78da596 100644
--- a/docs/PaymentApi.md
+++ b/docs/PaymentApi.md
@@ -4,19 +4,21 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**get_view_payment_details**](PaymentApi.md#get_view_payment_details) | **GET** /billing/payment/payment-details | GET: View payment details
-[**post_initiate_payment**](PaymentApi.md#post_initiate_payment) | **POST** /billing/payment/payment-initiate | POST: Initiate payment
+[**get_details**](PaymentApi.md#get_details) | **GET** /billing/payment/payment-details | GET: View payment details
+[**get_payment_receipt2**](PaymentApi.md#get_payment_receipt2) | **GET** /billing/payment/receipt/{payment_id} | Retrieve Payment Receipt
+[**post_payment**](PaymentApi.md#post_payment) | **POST** /billing/payment/payment-initiate | POST: Initiate payment
-# **get_view_payment_details**
-> PaymentDetailsResponse get_view_payment_details()
+# **get_details**
+> PaymentDetailsResponse get_details()
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -41,12 +43,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -54,11 +50,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# GET: View payment details
- api_response = api_instance.get_view_payment_details()
- print("The response of PaymentApi->get_view_payment_details:\n")
+ api_response = api_instance.get_details()
+ print("The response of PaymentApi->get_details:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling PaymentApi->get_view_payment_details: %s\n" % e)
+ print("Exception when calling PaymentApi->get_details: %s\n" % e)
```
@@ -73,7 +69,7 @@ This endpoint does not need any parameter.
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -93,20 +89,19 @@ This endpoint does not need any parameter.
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **post_initiate_payment**
-> PaymentInitiateResponse post_initiate_payment(payload)
+# **get_payment_receipt2**
+> get_payment_receipt2(payment_id)
-POST: Initiate payment
+Retrieve Payment Receipt
+
+Retrieve the payment receipt from Stripe for a specific payment
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.payment_initiate_payload import PaymentInitiatePayload
-from hyperstack.models.payment_initiate_response import PaymentInitiateResponse
from hyperstack.rest import ApiException
from pprint import pprint
@@ -127,11 +122,88 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.PaymentApi(api_client)
+ payment_id = 'payment_id_example' # str |
+
+ try:
+ # Retrieve Payment Receipt
+ api_instance.get_payment_receipt2(payment_id)
+ except Exception as e:
+ print("Exception when calling PaymentApi->get_payment_receipt2: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **payment_id** | **str**| |
+
+### Return type
+
+void (empty response body)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Success | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**403** | Forbidden | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **post_payment**
+> PaymentInitiateResponse post_payment(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
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.payment_initiate_payload import PaymentInitiatePayload
+from hyperstack.models.payment_initiate_response import PaymentInitiateResponse
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
@@ -141,11 +213,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# POST: Initiate payment
- api_response = api_instance.post_initiate_payment(payload)
- print("The response of PaymentApi->post_initiate_payment:\n")
+ api_response = api_instance.post_payment(payload)
+ print("The response of PaymentApi->post_payment:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling PaymentApi->post_initiate_payment: %s\n" % e)
+ print("Exception when calling PaymentApi->post_payment: %s\n" % e)
```
@@ -163,7 +235,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/PaymentDetailsFields.md b/docs/PaymentDetailsFields.md
index 7fb0d5d..0e9cad6 100644
--- a/docs/PaymentDetailsFields.md
+++ b/docs/PaymentDetailsFields.md
@@ -10,9 +10,11 @@ Name | Type | Description | Notes
**currency** | **str** | | [optional]
**description** | **str** | | [optional]
**gateway_response** | **str** | | [optional]
+**invoice** | **str** | | [optional]
**paid_from** | **str** | | [optional]
**payment_id** | **str** | | [optional]
**status** | **str** | | [optional]
+**tax_amount** | **float** | | [optional]
**transaction_id** | **str** | | [optional]
**updated_at** | **datetime** | | [optional]
diff --git a/docs/PermissionApi.md b/docs/PermissionApi.md
index 07f9631..9c81155 100644
--- a/docs/PermissionApi.md
+++ b/docs/PermissionApi.md
@@ -12,12 +12,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -42,12 +41,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -74,7 +67,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 ce7ab48..4c3e372 100644
--- a/docs/PolicyApi.md
+++ b/docs/PolicyApi.md
@@ -12,12 +12,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -42,12 +41,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -74,7 +67,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 83f4272..0000000
--- a/docs/PowerUsageModel.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# PowerUsageModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**unit** | **str** | |
-**value** | **float** | |
-
-## Example
-
-```python
-from hyperstack.models.power_usage_model import PowerUsageModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of PowerUsageModel from a JSON string
-power_usage_model_instance = PowerUsageModel.from_json(json)
-# print the JSON string representation of the object
-print(PowerUsageModel.to_json())
-
-# convert the object into a dict
-power_usage_model_dict = power_usage_model_instance.to_dict()
-# create an instance of PowerUsageModel from a dict
-power_usage_model_from_dict = PowerUsageModel.from_dict(power_usage_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/PricebookApi.md b/docs/PricebookApi.md
index b4d15b7..a05a45a 100644
--- a/docs/PricebookApi.md
+++ b/docs/PricebookApi.md
@@ -4,18 +4,19 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**retrive_pricebook**](PricebookApi.md#retrive_pricebook) | **GET** /pricebook |
+[**get_pricebook**](PricebookApi.md#get_pricebook) | **GET** /pricebook |
-# **retrive_pricebook**
-> List[PricebookModel] retrive_pricebook()
+# **get_pricebook**
+> List[PricebookModel] get_pricebook()
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -40,23 +41,17 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.PricebookApi(api_client)
try:
- api_response = api_instance.retrive_pricebook()
- print("The response of PricebookApi->retrive_pricebook:\n")
+ api_response = api_instance.get_pricebook()
+ print("The response of PricebookApi->get_pricebook:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling PricebookApi->retrive_pricebook: %s\n" % e)
+ print("Exception when calling PricebookApi->get_pricebook: %s\n" % e)
```
@@ -71,7 +66,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 c9fb49f..0000000
--- a/docs/PricebookResourceObjectResponse.md
+++ /dev/null
@@ -1,39 +0,0 @@
-# PricebookResourceObjectResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**actual_price** | **float** | | [optional]
-**amount** | **int** | | [optional]
-**discounted_rate** | **float** | | [optional]
-**host_original_price** | **float** | | [optional]
-**host_price** | **float** | | [optional]
-**name** | **str** | | [optional]
-**nexgen_original_price** | **float** | | [optional]
-**nexgen_price** | **float** | | [optional]
-**price** | **float** | | [optional]
-**rate** | **float** | | [optional]
-**type** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.pricebook_resource_object_response import PricebookResourceObjectResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of PricebookResourceObjectResponse from a JSON string
-pricebook_resource_object_response_instance = PricebookResourceObjectResponse.from_json(json)
-# print the JSON string representation of the object
-print(PricebookResourceObjectResponse.to_json())
-
-# convert the object into a dict
-pricebook_resource_object_response_dict = pricebook_resource_object_response_instance.to_dict()
-# create an instance of PricebookResourceObjectResponse from a dict
-pricebook_resource_object_response_from_dict = PricebookResourceObjectResponse.from_dict(pricebook_resource_object_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/PrimaryColor.md b/docs/PrimaryColor.md
new file mode 100644
index 0000000..ddc11c3
--- /dev/null
+++ b/docs/PrimaryColor.md
@@ -0,0 +1,30 @@
+# PrimaryColor
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**dark** | **str** | | [optional]
+**light** | **str** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.primary_color import PrimaryColor
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of PrimaryColor from a JSON string
+primary_color_instance = PrimaryColor.from_json(json)
+# print the JSON string representation of the object
+print(PrimaryColor.to_json())
+
+# convert the object into a dict
+primary_color_dict = primary_color_instance.to_dict()
+# create an instance of PrimaryColor from a dict
+primary_color_from_dict = PrimaryColor.from_dict(primary_color_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ProfileApi.md b/docs/ProfileApi.md
index 01e569c..4ed5a3f 100644
--- a/docs/ProfileApi.md
+++ b/docs/ProfileApi.md
@@ -15,12 +15,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -46,12 +45,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -82,7 +75,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -111,7 +104,6 @@ Permanently deletes a provisioning profile. Supply the profile ID in the path to
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -136,12 +128,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -172,7 +158,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -196,12 +182,11 @@ Name | Type | Description | Notes
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).
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -226,12 +211,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -258,7 +237,7 @@ This endpoint does not need any parameter.
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -281,12 +260,11 @@ This endpoint does not need any parameter.
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).
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -311,12 +289,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -347,7 +319,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/RbacRoleApi.md b/docs/RbacRoleApi.md
index 815c4bb..9d7a8bc 100644
--- a/docs/RbacRoleApi.md
+++ b/docs/RbacRoleApi.md
@@ -16,12 +16,11 @@ Method | HTTP request | Description
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -47,12 +46,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -83,7 +76,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -107,12 +100,11 @@ Name | Type | Description | Notes
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -137,12 +129,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -173,7 +159,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -197,12 +183,11 @@ Name | Type | Description | Notes
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -227,12 +212,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -259,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
@@ -282,12 +261,11 @@ This endpoint does not need any parameter.
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -312,12 +290,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -348,7 +320,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -372,12 +344,11 @@ Name | Type | Description | Notes
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -403,12 +374,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -441,7 +406,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/RefreshTokenPayload.md b/docs/RefreshTokenPayload.md
deleted file mode 100644
index 3514d3a..0000000
--- a/docs/RefreshTokenPayload.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# RefreshTokenPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id_token** | **str** | |
-**refresh_token** | **str** | |
-
-## Example
-
-```python
-from hyperstack.models.refresh_token_payload import RefreshTokenPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of RefreshTokenPayload from a JSON string
-refresh_token_payload_instance = RefreshTokenPayload.from_json(json)
-# print the JSON string representation of the object
-print(RefreshTokenPayload.to_json())
-
-# convert the object into a dict
-refresh_token_payload_dict = refresh_token_payload_instance.to_dict()
-# create an instance of RefreshTokenPayload from a dict
-refresh_token_payload_from_dict = RefreshTokenPayload.from_dict(refresh_token_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/RegionApi.md b/docs/RegionApi.md
index 9d91d24..6e2bff0 100644
--- a/docs/RegionApi.md
+++ b/docs/RegionApi.md
@@ -4,20 +4,19 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**list_regions**](RegionApi.md#list_regions) | **GET** /core/regions | List regions
+[**list_regions**](RegionApi.md#list_regions) | **GET** /core/regions | List Regions
# **list_regions**
> Regions list_regions()
-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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -42,19 +41,13 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.RegionApi(api_client)
try:
- # List regions
+ # List Regions
api_response = api_instance.list_regions()
print("The response of RegionApi->list_regions:\n")
pprint(api_response)
@@ -74,7 +67,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 f1a87e9..cb2b56d 100644
--- a/docs/RegionFields.md
+++ b/docs/RegionFields.md
@@ -5,7 +5,9 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**country** | **str** | | [optional]
**description** | **str** | | [optional]
+**green_status** | **str** | Green status | [optional]
**id** | **int** | | [optional]
**name** | **str** | | [optional]
diff --git a/docs/RegionPayload.md b/docs/RegionPayload.md
deleted file mode 100644
index b79d48e..0000000
--- a/docs/RegionPayload.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# RegionPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**description** | **str** | | [optional]
-**name** | **str** | |
-
-## Example
-
-```python
-from hyperstack.models.region_payload import RegionPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of RegionPayload from a JSON string
-region_payload_instance = RegionPayload.from_json(json)
-# print the JSON string representation of the object
-print(RegionPayload.to_json())
-
-# convert the object into a dict
-region_payload_dict = region_payload_instance.to_dict()
-# create an instance of RegionPayload from a dict
-region_payload_from_dict = RegionPayload.from_dict(region_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/RegionResponse.md b/docs/RegionResponse.md
deleted file mode 100644
index 414ed1c..0000000
--- a/docs/RegionResponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# RegionResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **str** | | [optional]
-**region** | [**RegionFields**](RegionFields.md) | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.region_response import RegionResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of RegionResponse from a JSON string
-region_response_instance = RegionResponse.from_json(json)
-# print the JSON string representation of the object
-print(RegionResponse.to_json())
-
-# convert the object into a dict
-region_response_dict = region_response_instance.to_dict()
-# create an instance of RegionResponse from a dict
-region_response_from_dict = RegionResponse.from_dict(region_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/RequestInstanceLogsPayload.md b/docs/RequestInstanceLogsPayload.md
new file mode 100644
index 0000000..a8bff15
--- /dev/null
+++ b/docs/RequestInstanceLogsPayload.md
@@ -0,0 +1,29 @@
+# RequestInstanceLogsPayload
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**length** | **int** | The amount of lines to fetch | [optional]
+
+## Example
+
+```python
+from hyperstack.models.request_instance_logs_payload import RequestInstanceLogsPayload
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of RequestInstanceLogsPayload from a JSON string
+request_instance_logs_payload_instance = RequestInstanceLogsPayload.from_json(json)
+# print the JSON string representation of the object
+print(RequestInstanceLogsPayload.to_json())
+
+# convert the object into a dict
+request_instance_logs_payload_dict = request_instance_logs_payload_instance.to_dict()
+# create an instance of RequestInstanceLogsPayload from a dict
+request_instance_logs_payload_from_dict = RequestInstanceLogsPayload.from_dict(request_instance_logs_payload_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/RequestInstanceLogsResponse.md b/docs/RequestInstanceLogsResponse.md
new file mode 100644
index 0000000..0915b39
--- /dev/null
+++ b/docs/RequestInstanceLogsResponse.md
@@ -0,0 +1,29 @@
+# RequestInstanceLogsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**request_id** | **int** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.request_instance_logs_response import RequestInstanceLogsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of RequestInstanceLogsResponse from a JSON string
+request_instance_logs_response_instance = RequestInstanceLogsResponse.from_json(json)
+# print the JSON string representation of the object
+print(RequestInstanceLogsResponse.to_json())
+
+# convert the object into a dict
+request_instance_logs_response_dict = request_instance_logs_response_instance.to_dict()
+# create an instance of RequestInstanceLogsResponse from a dict
+request_instance_logs_response_from_dict = RequestInstanceLogsResponse.from_dict(request_instance_logs_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ResourceLevelBillingBucketDetailsResources.md b/docs/ResourceLevelBillingBucketDetailsResources.md
new file mode 100644
index 0000000..798f67c
--- /dev/null
+++ b/docs/ResourceLevelBillingBucketDetailsResources.md
@@ -0,0 +1,30 @@
+# ResourceLevelBillingBucketDetailsResources
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**attributes** | [**ResourceLevelBillingDetailsAttributes**](ResourceLevelBillingDetailsAttributes.md) | | [optional]
+**metrics** | [**ResourceLevelBillingDetailsMetrics**](ResourceLevelBillingDetailsMetrics.md) | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.resource_level_billing_bucket_details_resources import ResourceLevelBillingBucketDetailsResources
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ResourceLevelBillingBucketDetailsResources from a JSON string
+resource_level_billing_bucket_details_resources_instance = ResourceLevelBillingBucketDetailsResources.from_json(json)
+# print the JSON string representation of the object
+print(ResourceLevelBillingBucketDetailsResources.to_json())
+
+# convert the object into a dict
+resource_level_billing_bucket_details_resources_dict = resource_level_billing_bucket_details_resources_instance.to_dict()
+# create an instance of ResourceLevelBillingBucketDetailsResources from a dict
+resource_level_billing_bucket_details_resources_from_dict = ResourceLevelBillingBucketDetailsResources.from_dict(resource_level_billing_bucket_details_resources_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ResourceLevelBillingHistoryResourcesCluster.md b/docs/ResourceLevelBillingHistoryResourcesCluster.md
new file mode 100644
index 0000000..36be08d
--- /dev/null
+++ b/docs/ResourceLevelBillingHistoryResourcesCluster.md
@@ -0,0 +1,31 @@
+# ResourceLevelBillingHistoryResourcesCluster
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**attributes** | [**ResourceLevelBillingHistoryResponseAttributes**](ResourceLevelBillingHistoryResponseAttributes.md) | | [optional]
+**metrics** | [**ResourceLevelBillingHistoryResponseMetrics**](ResourceLevelBillingHistoryResponseMetrics.md) | | [optional]
+**nodes** | [**List[ResourceLevelBillingHistoryResources]**](ResourceLevelBillingHistoryResources.md) | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.resource_level_billing_history_resources_cluster import ResourceLevelBillingHistoryResourcesCluster
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ResourceLevelBillingHistoryResourcesCluster from a JSON string
+resource_level_billing_history_resources_cluster_instance = ResourceLevelBillingHistoryResourcesCluster.from_json(json)
+# print the JSON string representation of the object
+print(ResourceLevelBillingHistoryResourcesCluster.to_json())
+
+# convert the object into a dict
+resource_level_billing_history_resources_cluster_dict = resource_level_billing_history_resources_cluster_instance.to_dict()
+# create an instance of ResourceLevelBillingHistoryResourcesCluster from a dict
+resource_level_billing_history_resources_cluster_from_dict = ResourceLevelBillingHistoryResourcesCluster.from_dict(resource_level_billing_history_resources_cluster_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ResourceLevelBillingHistoryResponseAttributes.md b/docs/ResourceLevelBillingHistoryResponseAttributes.md
index 651b7a7..a09b87a 100644
--- a/docs/ResourceLevelBillingHistoryResponseAttributes.md
+++ b/docs/ResourceLevelBillingHistoryResponseAttributes.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**contract_id** | **int** | | [optional]
**id** | **str** | | [optional]
**infrahub_id** | **int** | | [optional]
**resource_name** | **str** | | [optional]
diff --git a/docs/ResourceLevelBucketBillingDetailsResponseModel.md b/docs/ResourceLevelBucketBillingDetailsResponseModel.md
new file mode 100644
index 0000000..bf52fa0
--- /dev/null
+++ b/docs/ResourceLevelBucketBillingDetailsResponseModel.md
@@ -0,0 +1,31 @@
+# ResourceLevelBucketBillingDetailsResponseModel
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_history_bucket_details** | [**ResourceLevelBillingBucketDetailsResources**](ResourceLevelBillingBucketDetailsResources.md) | | [optional]
+**message** | **str** | | [optional]
+**status** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.resource_level_bucket_billing_details_response_model import ResourceLevelBucketBillingDetailsResponseModel
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ResourceLevelBucketBillingDetailsResponseModel from a JSON string
+resource_level_bucket_billing_details_response_model_instance = ResourceLevelBucketBillingDetailsResponseModel.from_json(json)
+# print the JSON string representation of the object
+print(ResourceLevelBucketBillingDetailsResponseModel.to_json())
+
+# convert the object into a dict
+resource_level_bucket_billing_details_response_model_dict = resource_level_bucket_billing_details_response_model_instance.to_dict()
+# create an instance of ResourceLevelBucketBillingDetailsResponseModel from a dict
+resource_level_bucket_billing_details_response_model_from_dict = ResourceLevelBucketBillingDetailsResponseModel.from_dict(resource_level_bucket_billing_details_response_model_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ResourceLevelBucketBillingHistoryResponseModel.md b/docs/ResourceLevelBucketBillingHistoryResponseModel.md
new file mode 100644
index 0000000..edd189d
--- /dev/null
+++ b/docs/ResourceLevelBucketBillingHistoryResponseModel.md
@@ -0,0 +1,31 @@
+# ResourceLevelBucketBillingHistoryResponseModel
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_history_bucket** | [**ResourceLevelBillingHistory**](ResourceLevelBillingHistory.md) | | [optional]
+**message** | **str** | | [optional]
+**status** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.resource_level_bucket_billing_history_response_model import ResourceLevelBucketBillingHistoryResponseModel
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ResourceLevelBucketBillingHistoryResponseModel from a JSON string
+resource_level_bucket_billing_history_response_model_instance = ResourceLevelBucketBillingHistoryResponseModel.from_json(json)
+# print the JSON string representation of the object
+print(ResourceLevelBucketBillingHistoryResponseModel.to_json())
+
+# convert the object into a dict
+resource_level_bucket_billing_history_response_model_dict = resource_level_bucket_billing_history_response_model_instance.to_dict()
+# create an instance of ResourceLevelBucketBillingHistoryResponseModel from a dict
+resource_level_bucket_billing_history_response_model_from_dict = ResourceLevelBucketBillingHistoryResponseModel.from_dict(resource_level_bucket_billing_history_response_model_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ResourceLevelClusterBillingDetailsResponseModel.md b/docs/ResourceLevelClusterBillingDetailsResponseModel.md
new file mode 100644
index 0000000..a4c78f3
--- /dev/null
+++ b/docs/ResourceLevelClusterBillingDetailsResponseModel.md
@@ -0,0 +1,31 @@
+# ResourceLevelClusterBillingDetailsResponseModel
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_history_cluster_details** | [**ResourceLevelBillingHistoryResourcesCluster**](ResourceLevelBillingHistoryResourcesCluster.md) | | [optional]
+**message** | **str** | | [optional]
+**status** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.resource_level_cluster_billing_details_response_model import ResourceLevelClusterBillingDetailsResponseModel
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ResourceLevelClusterBillingDetailsResponseModel from a JSON string
+resource_level_cluster_billing_details_response_model_instance = ResourceLevelClusterBillingDetailsResponseModel.from_json(json)
+# print the JSON string representation of the object
+print(ResourceLevelClusterBillingDetailsResponseModel.to_json())
+
+# convert the object into a dict
+resource_level_cluster_billing_details_response_model_dict = resource_level_cluster_billing_details_response_model_instance.to_dict()
+# create an instance of ResourceLevelClusterBillingDetailsResponseModel from a dict
+resource_level_cluster_billing_details_response_model_from_dict = ResourceLevelClusterBillingDetailsResponseModel.from_dict(resource_level_cluster_billing_details_response_model_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ResourceLevelClusterBillingHistoryResponseModel.md b/docs/ResourceLevelClusterBillingHistoryResponseModel.md
new file mode 100644
index 0000000..b19e02d
--- /dev/null
+++ b/docs/ResourceLevelClusterBillingHistoryResponseModel.md
@@ -0,0 +1,31 @@
+# ResourceLevelClusterBillingHistoryResponseModel
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_history_cluster** | [**ResourceLevelBillingHistory**](ResourceLevelBillingHistory.md) | | [optional]
+**message** | **str** | | [optional]
+**status** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.resource_level_cluster_billing_history_response_model import ResourceLevelClusterBillingHistoryResponseModel
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ResourceLevelClusterBillingHistoryResponseModel from a JSON string
+resource_level_cluster_billing_history_response_model_instance = ResourceLevelClusterBillingHistoryResponseModel.from_json(json)
+# print the JSON string representation of the object
+print(ResourceLevelClusterBillingHistoryResponseModel.to_json())
+
+# convert the object into a dict
+resource_level_cluster_billing_history_response_model_dict = resource_level_cluster_billing_history_response_model_instance.to_dict()
+# create an instance of ResourceLevelClusterBillingHistoryResponseModel from a dict
+resource_level_cluster_billing_history_response_model_from_dict = ResourceLevelClusterBillingHistoryResponseModel.from_dict(resource_level_cluster_billing_history_response_model_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ResourceLevelClusterGraphBillingDetailsResponseModel.md b/docs/ResourceLevelClusterGraphBillingDetailsResponseModel.md
new file mode 100644
index 0000000..32981a1
--- /dev/null
+++ b/docs/ResourceLevelClusterGraphBillingDetailsResponseModel.md
@@ -0,0 +1,31 @@
+# ResourceLevelClusterGraphBillingDetailsResponseModel
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_history_cluster_details** | [**ResourceLevelGraphBillingDetailVolume**](ResourceLevelGraphBillingDetailVolume.md) | | [optional]
+**message** | **str** | | [optional]
+**status** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.resource_level_cluster_graph_billing_details_response_model import ResourceLevelClusterGraphBillingDetailsResponseModel
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ResourceLevelClusterGraphBillingDetailsResponseModel from a JSON string
+resource_level_cluster_graph_billing_details_response_model_instance = ResourceLevelClusterGraphBillingDetailsResponseModel.from_json(json)
+# print the JSON string representation of the object
+print(ResourceLevelClusterGraphBillingDetailsResponseModel.to_json())
+
+# convert the object into a dict
+resource_level_cluster_graph_billing_details_response_model_dict = resource_level_cluster_graph_billing_details_response_model_instance.to_dict()
+# create an instance of ResourceLevelClusterGraphBillingDetailsResponseModel from a dict
+resource_level_cluster_graph_billing_details_response_model_from_dict = ResourceLevelClusterGraphBillingDetailsResponseModel.from_dict(resource_level_cluster_graph_billing_details_response_model_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/ResourceLevelGraphBillingDetailsBucket.md b/docs/ResourceLevelGraphBillingDetailsBucket.md
new file mode 100644
index 0000000..70405c9
--- /dev/null
+++ b/docs/ResourceLevelGraphBillingDetailsBucket.md
@@ -0,0 +1,32 @@
+# ResourceLevelGraphBillingDetailsBucket
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_history** | [**List[ResourceLevelBillingBucketDetailsResources]**](ResourceLevelBillingBucketDetailsResources.md) | | [optional]
+**granularity** | **int** | | [optional]
+**org_id** | **int** | | [optional]
+**total_count** | **int** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.resource_level_graph_billing_details_bucket import ResourceLevelGraphBillingDetailsBucket
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ResourceLevelGraphBillingDetailsBucket from a JSON string
+resource_level_graph_billing_details_bucket_instance = ResourceLevelGraphBillingDetailsBucket.from_json(json)
+# print the JSON string representation of the object
+print(ResourceLevelGraphBillingDetailsBucket.to_json())
+
+# convert the object into a dict
+resource_level_graph_billing_details_bucket_dict = resource_level_graph_billing_details_bucket_instance.to_dict()
+# create an instance of ResourceLevelGraphBillingDetailsBucket from a dict
+resource_level_graph_billing_details_bucket_from_dict = ResourceLevelGraphBillingDetailsBucket.from_dict(resource_level_graph_billing_details_bucket_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/SecondaryColor.md b/docs/SecondaryColor.md
new file mode 100644
index 0000000..8d18fc2
--- /dev/null
+++ b/docs/SecondaryColor.md
@@ -0,0 +1,30 @@
+# SecondaryColor
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**dark** | **str** | | [optional]
+**light** | **str** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.secondary_color import SecondaryColor
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of SecondaryColor from a JSON string
+secondary_color_instance = SecondaryColor.from_json(json)
+# print the JSON string representation of the object
+print(SecondaryColor.to_json())
+
+# convert the object into a dict
+secondary_color_dict = secondary_color_instance.to_dict()
+# create an instance of SecondaryColor from a dict
+secondary_color_from_dict = SecondaryColor.from_dict(secondary_color_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/SecurityRulesApi.md b/docs/SecurityRulesApi.md
index 47f0a31..be48a05 100644
--- a/docs/SecurityRulesApi.md
+++ b/docs/SecurityRulesApi.md
@@ -17,7 +17,6 @@ Returns a list of all available protocols that can be used in the creation of fi
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -42,12 +41,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -74,7 +67,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
index b05744f..79ad4e0 100644
--- a/docs/SecurityRulesFieldsforInstance.md
+++ b/docs/SecurityRulesFieldsforInstance.md
@@ -1,4 +1,4 @@
-# SecurityRulesFieldsforInstance
+# SecurityRulesFieldsForInstance
## Properties
@@ -18,19 +18,19 @@ Name | Type | Description | Notes
## Example
```python
-from hyperstack.models.security_rules_fieldsfor_instance import SecurityRulesFieldsforInstance
+from hyperstack.models.security_rules_fields_for_instance import SecurityRulesFieldsForInstance
# TODO update the JSON string below
json = "{}"
-# create an instance of SecurityRulesFieldsforInstance from a JSON string
-security_rules_fieldsfor_instance_instance = SecurityRulesFieldsforInstance.from_json(json)
+# create an instance of SecurityRulesFieldsForInstance from a JSON string
+security_rules_fields_for_instance_instance = SecurityRulesFieldsForInstance.from_json(json)
# print the JSON string representation of the object
-print(SecurityRulesFieldsforInstance.to_json())
+print(SecurityRulesFieldsForInstance.to_json())
# convert the object into a dict
-security_rules_fieldsfor_instance_dict = security_rules_fieldsfor_instance_instance.to_dict()
-# create an instance of SecurityRulesFieldsforInstance from a dict
-security_rules_fieldsfor_instance_from_dict = SecurityRulesFieldsforInstance.from_dict(security_rules_fieldsfor_instance_dict)
+security_rules_fields_for_instance_dict = security_rules_fields_for_instance_instance.to_dict()
+# create an instance of SecurityRulesFieldsForInstance from a dict
+security_rules_fields_for_instance_from_dict = SecurityRulesFieldsForInstance.from_dict(security_rules_fields_for_instance_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/ServerlessInferencedBillingHistoryDetailsResponseSchema.md b/docs/ServerlessInferencedBillingHistoryDetailsResponseSchema.md
new file mode 100644
index 0000000..c37da5d
--- /dev/null
+++ b/docs/ServerlessInferencedBillingHistoryDetailsResponseSchema.md
@@ -0,0 +1,31 @@
+# ServerlessInferencedBillingHistoryDetailsResponseSchema
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_history_serverless_inference_details** | [**BillingHistoryServerlessInferenceDetails**](BillingHistoryServerlessInferenceDetails.md) | | [optional]
+**message** | **str** | | [optional]
+**status** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.serverless_inferenced_billing_history_details_response_schema import ServerlessInferencedBillingHistoryDetailsResponseSchema
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of ServerlessInferencedBillingHistoryDetailsResponseSchema from a JSON string
+serverless_inferenced_billing_history_details_response_schema_instance = ServerlessInferencedBillingHistoryDetailsResponseSchema.from_json(json)
+# print the JSON string representation of the object
+print(ServerlessInferencedBillingHistoryDetailsResponseSchema.to_json())
+
+# convert the object into a dict
+serverless_inferenced_billing_history_details_response_schema_dict = serverless_inferenced_billing_history_details_response_schema_instance.to_dict()
+# create an instance of ServerlessInferencedBillingHistoryDetailsResponseSchema from a dict
+serverless_inferenced_billing_history_details_response_schema_from_dict = ServerlessInferencedBillingHistoryDetailsResponseSchema.from_dict(serverless_inferenced_billing_history_details_response_schema_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/SetDefaultsPayload.md b/docs/SetDefaultsPayload.md
deleted file mode 100644
index 70301f0..0000000
--- a/docs/SetDefaultsPayload.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# SetDefaultsPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**flavors** | **List[int]** | |
-**images** | **List[int]** | |
-
-## Example
-
-```python
-from hyperstack.models.set_defaults_payload import SetDefaultsPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of SetDefaultsPayload from a JSON string
-set_defaults_payload_instance = SetDefaultsPayload.from_json(json)
-# print the JSON string representation of the object
-print(SetDefaultsPayload.to_json())
-
-# convert the object into a dict
-set_defaults_payload_dict = set_defaults_payload_instance.to_dict()
-# create an instance of SetDefaultsPayload from a dict
-set_defaults_payload_from_dict = SetDefaultsPayload.from_dict(set_defaults_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/SingleVisibilityUserResponse.md b/docs/SingleVisibilityUserResponse.md
deleted file mode 100644
index 59df5a9..0000000
--- a/docs/SingleVisibilityUserResponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# SingleVisibilityUserResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | |
-**stock_visible** | **bool** | |
-**user_id** | **int** | |
-
-## Example
-
-```python
-from hyperstack.models.single_visibility_user_response import SingleVisibilityUserResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of SingleVisibilityUserResponse from a JSON string
-single_visibility_user_response_instance = SingleVisibilityUserResponse.from_json(json)
-# print the JSON string representation of the object
-print(SingleVisibilityUserResponse.to_json())
-
-# convert the object into a dict
-single_visibility_user_response_dict = single_visibility_user_response_instance.to_dict()
-# create an instance of SingleVisibilityUserResponse from a dict
-single_visibility_user_response_from_dict = SingleVisibilityUserResponse.from_dict(single_visibility_user_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/SnapshotEventsApi.md b/docs/SnapshotEventsApi.md
index 50a9f20..eb8c98c 100644
--- a/docs/SnapshotEventsApi.md
+++ b/docs/SnapshotEventsApi.md
@@ -17,7 +17,6 @@ Retrieves a list of all events for a Snapshot's history, which records actions p
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -41,12 +40,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -75,7 +68,7 @@ void (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 c0453b2..3c9e8ba 100644
--- a/docs/SnapshotFields.md
+++ b/docs/SnapshotFields.md
@@ -5,6 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**created_at** | **datetime** | Creation timestamp |
**description** | **str** | Description of the snapshot |
**has_floating_ip** | **bool** | Indicates if the VM had a floating IP assigned | [optional]
**id** | **int** | Snapshot ID |
@@ -14,6 +15,7 @@ Name | Type | Description | Notes
**region_id** | **int** | Region where the snapshot will be available |
**size** | **int** | Size in GB of the snapshot |
**status** | **str** | Status of the snapshot |
+**updated_at** | **datetime** | Last update timestamp |
**vm_id** | **int** | ID of the VM from which the snapshot is created |
## Example
diff --git a/docs/SnapshotRetrieveFields.md b/docs/SnapshotRetrieveFields.md
index 61437dc..3fbbf7c 100644
--- a/docs/SnapshotRetrieveFields.md
+++ b/docs/SnapshotRetrieveFields.md
@@ -5,15 +5,28 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**created_at** | **datetime** | Creation timestamp |
+**custom_image** | **str** | | [optional]
**description** | **str** | Description of the snapshot |
**has_floating_ip** | **bool** | Indicates if the VM had a floating IP assigned | [optional]
**id** | **int** | Snapshot ID |
**is_image** | **bool** | Indicates if the snapshot is an image |
+**labels** | **str** | | [optional]
**name** | **str** | Snapshot name |
+**region** | **str** | | [optional]
**region_id** | **int** | Region where the snapshot will be available |
**size** | **int** | Size in GB of the snapshot |
**status** | **str** | Status of the snapshot |
+**updated_at** | **datetime** | Last update timestamp |
+**vm_environment** | **str** | | [optional]
+**vm_flavor** | **str** | | [optional]
**vm_id** | **int** | ID of the VM from which the snapshot is created |
+**vm_image** | **str** | | [optional]
+**vm_keypair** | **str** | | [optional]
+**vm_name** | **str** | | [optional]
+**vm_status** | **str** | | [optional]
+**volume_id** | **str** | | [optional]
+**volume_name** | **str** | | [optional]
## Example
diff --git a/docs/SnapshotsApi.md b/docs/SnapshotsApi.md
index 3414b27..898ef23 100644
--- a/docs/SnapshotsApi.md
+++ b/docs/SnapshotsApi.md
@@ -4,16 +4,16 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**create_an_image_from_a_snapshot**](SnapshotsApi.md#create_an_image_from_a_snapshot) | **POST** /core/snapshots/{snapshot_id}/image | Create an image from a snapshot
+[**create_a_new_custom_image**](SnapshotsApi.md#create_a_new_custom_image) | **POST** /core/snapshots/{snapshot_id}/image | Create an image from a snapshot
[**delete_snapshot**](SnapshotsApi.md#delete_snapshot) | **DELETE** /core/snapshots/{id} | Delete snapshot
[**fetch_snapshot_name_availability**](SnapshotsApi.md#fetch_snapshot_name_availability) | **GET** /core/snapshots/name-availability/{name} | Fetch snapshot name availability
-[**restore_a_snapshot**](SnapshotsApi.md#restore_a_snapshot) | **POST** /core/snapshots/{id}/restore | Restore a snapshot
-[**retrieve_a_snapshot**](SnapshotsApi.md#retrieve_a_snapshot) | **GET** /core/snapshots/{id} | Retrieve a snapshot
-[**retrieve_list_of_snapshots_with_pagination**](SnapshotsApi.md#retrieve_list_of_snapshots_with_pagination) | **GET** /core/snapshots | Retrieve list of snapshots with pagination
+[**get_snapshot**](SnapshotsApi.md#get_snapshot) | **GET** /core/snapshots/{id} | Retrieve a snapshot
+[**get_snapshots**](SnapshotsApi.md#get_snapshots) | **GET** /core/snapshots | Retrieve list of snapshots with pagination
+[**post_snapshot_restore**](SnapshotsApi.md#post_snapshot_restore) | **POST** /core/snapshots/{id}/restore | Restore a snapshot
-# **create_an_image_from_a_snapshot**
-> CreateImage create_an_image_from_a_snapshot(snapshot_id, payload)
+# **create_a_new_custom_image**
+> CreateImage create_a_new_custom_image(snapshot_id, payload)
Create an image from a snapshot
@@ -22,7 +22,6 @@ Create a new custom image from an existing snapshot.Requires a name and any labe
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -48,12 +47,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -63,11 +56,11 @@ with hyperstack.ApiClient(configuration) as api_client:
try:
# Create an image from a snapshot
- api_response = api_instance.create_an_image_from_a_snapshot(snapshot_id, payload)
- print("The response of SnapshotsApi->create_an_image_from_a_snapshot:\n")
+ api_response = api_instance.create_a_new_custom_image(snapshot_id, payload)
+ print("The response of SnapshotsApi->create_a_new_custom_image:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling SnapshotsApi->create_an_image_from_a_snapshot: %s\n" % e)
+ print("Exception when calling SnapshotsApi->create_a_new_custom_image: %s\n" % e)
```
@@ -86,7 +79,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -116,7 +109,6 @@ Delete a snapshot. Provide the snapshot ID in the path to delete the specified s
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -141,12 +133,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -177,7 +163,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -207,7 +193,6 @@ Check if a Snapshot name is available
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -232,12 +217,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -268,7 +247,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -287,22 +266,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **restore_a_snapshot**
-> Instance restore_a_snapshot(id, payload)
+# **get_snapshot**
+> SnapshotRetrieve get_snapshot(id)
-Restore a snapshot
+Retrieve a snapshot
-Restore a snapshot.
+Retrieve a snapshot.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.instance import Instance
-from hyperstack.models.snapshot_restore_request import SnapshotRestoreRequest
+from hyperstack.models.snapshot_retrieve import SnapshotRetrieve
from hyperstack.rest import ApiException
from pprint import pprint
@@ -323,26 +300,19 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.SnapshotsApi(api_client)
id = 56 # int |
- payload = hyperstack.SnapshotRestoreRequest() # SnapshotRestoreRequest |
try:
- # Restore a snapshot
- api_response = api_instance.restore_a_snapshot(id, payload)
- print("The response of SnapshotsApi->restore_a_snapshot:\n")
+ # Retrieve a snapshot
+ api_response = api_instance.get_snapshot(id)
+ print("The response of SnapshotsApi->get_snapshot:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling SnapshotsApi->restore_a_snapshot: %s\n" % e)
+ print("Exception when calling SnapshotsApi->get_snapshot: %s\n" % e)
```
@@ -353,19 +323,18 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**id** | **int**| |
- **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
### HTTP response details
@@ -379,21 +348,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_a_snapshot**
-> SnapshotRetrieve retrieve_a_snapshot(id)
+# **get_snapshots**
+> Snapshots get_snapshots(page=page, page_size=page_size, search=search)
-Retrieve a snapshot
+Retrieve list of snapshots with pagination
-Retrieve a snapshot.
+Retrieves a list of snapshot, providing details such as snapshot name, timestamp, VM ID, and other relevant information.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.snapshot_retrieve import SnapshotRetrieve
+from hyperstack.models.snapshots import Snapshots
from hyperstack.rest import ApiException
from pprint import pprint
@@ -414,25 +382,21 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.SnapshotsApi(api_client)
- id = 56 # int |
+ page = 'page_example' # str | Page Number (optional)
+ page_size = 'page_size_example' # str | Data Per Page (optional)
+ search = 'search_example' # str | Search By Snapshot ID or Name (optional)
try:
- # Retrieve a snapshot
- api_response = api_instance.retrieve_a_snapshot(id)
- print("The response of SnapshotsApi->retrieve_a_snapshot:\n")
+ # Retrieve list of snapshots with pagination
+ api_response = api_instance.get_snapshots(page=page, page_size=page_size, search=search)
+ print("The response of SnapshotsApi->get_snapshots:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling SnapshotsApi->retrieve_a_snapshot: %s\n" % e)
+ print("Exception when calling SnapshotsApi->get_snapshots: %s\n" % e)
```
@@ -442,15 +406,17 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **page** | **str**| Page Number | [optional]
+ **page_size** | **str**| Data Per Page | [optional]
+ **search** | **str**| 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
@@ -468,21 +434,21 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_list_of_snapshots_with_pagination**
-> Snapshots retrieve_list_of_snapshots_with_pagination(page=page, page_size=page_size, search=search)
+# **post_snapshot_restore**
+> Instance post_snapshot_restore(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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.snapshots import Snapshots
+from hyperstack.models.instance import Instance
+from hyperstack.models.snapshot_restore_request import SnapshotRestoreRequest
from hyperstack.rest import ApiException
from pprint import pprint
@@ -503,27 +469,20 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.SnapshotsApi(api_client)
- page = 'page_example' # str | Page Number (optional)
- page_size = 'page_size_example' # str | Data Per Page (optional)
- search = 'search_example' # str | Search By Snapshot ID or Name (optional)
+ id = 56 # int |
+ payload = hyperstack.SnapshotRestoreRequest() # SnapshotRestoreRequest |
try:
- # Retrieve list of snapshots with pagination
- api_response = api_instance.retrieve_list_of_snapshots_with_pagination(page=page, page_size=page_size, search=search)
- print("The response of SnapshotsApi->retrieve_list_of_snapshots_with_pagination:\n")
+ # Restore a snapshot
+ api_response = api_instance.post_snapshot_restore(id, payload)
+ print("The response of SnapshotsApi->post_snapshot_restore:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling SnapshotsApi->retrieve_list_of_snapshots_with_pagination: %s\n" % e)
+ print("Exception when calling SnapshotsApi->post_snapshot_restore: %s\n" % e)
```
@@ -533,21 +492,20 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **page** | **str**| Page Number | [optional]
- **page_size** | **str**| Data Per Page | [optional]
- **search** | **str**| Search By Snapshot ID or Name | [optional]
+ **id** | **int**| |
+ **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
### HTTP response details
diff --git a/docs/StartDeployment.md b/docs/StartDeployment.md
index 16edbf8..5687d4e 100644
--- a/docs/StartDeployment.md
+++ b/docs/StartDeployment.md
@@ -5,7 +5,7 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
-**deployment** | [**DeploymentFieldsforstartdeployments**](DeploymentFieldsforstartdeployments.md) | | [optional]
+**deployment** | [**DeploymentFieldsForStartDeployments**](DeploymentFieldsForStartDeployments.md) | | [optional]
**message** | **str** | | [optional]
**status** | **bool** | | [optional]
diff --git a/docs/StockApi.md b/docs/StockApi.md
index 81d5129..cb9c665 100644
--- a/docs/StockApi.md
+++ b/docs/StockApi.md
@@ -12,12 +12,11 @@ Method | HTTP request | Description
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -42,12 +41,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -74,7 +67,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 6b3107c..0000000
--- a/docs/StockVisibilityUserListResponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# StockVisibilityUserListResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-**users** | [**List[SingleVisibilityUserResponse]**](SingleVisibilityUserResponse.md) | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.stock_visibility_user_list_response import StockVisibilityUserListResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of StockVisibilityUserListResponse from a JSON string
-stock_visibility_user_list_response_instance = StockVisibilityUserListResponse.from_json(json)
-# print the JSON string representation of the object
-print(StockVisibilityUserListResponse.to_json())
-
-# convert the object into a dict
-stock_visibility_user_list_response_dict = stock_visibility_user_list_response_instance.to_dict()
-# create an instance of StockVisibilityUserListResponse from a dict
-stock_visibility_user_list_response_from_dict = StockVisibilityUserListResponse.from_dict(stock_visibility_user_list_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/StockVisibilityUserPayload.md b/docs/StockVisibilityUserPayload.md
deleted file mode 100644
index f9329c7..0000000
--- a/docs/StockVisibilityUserPayload.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# StockVisibilityUserPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**user_ids** | **List[int]** | |
-
-## Example
-
-```python
-from hyperstack.models.stock_visibility_user_payload import StockVisibilityUserPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of StockVisibilityUserPayload from a JSON string
-stock_visibility_user_payload_instance = StockVisibilityUserPayload.from_json(json)
-# print the JSON string representation of the object
-print(StockVisibilityUserPayload.to_json())
-
-# convert the object into a dict
-stock_visibility_user_payload_dict = stock_visibility_user_payload_instance.to_dict()
-# create an instance of StockVisibilityUserPayload from a dict
-stock_visibility_user_payload_from_dict = StockVisibilityUserPayload.from_dict(stock_visibility_user_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/Subscribeorunsubscribeupdatepayload.md b/docs/Subscribeorunsubscribeupdatepayload.md
index f831af7..3c8dcb0 100644
--- a/docs/Subscribeorunsubscribeupdatepayload.md
+++ b/docs/Subscribeorunsubscribeupdatepayload.md
@@ -1,4 +1,4 @@
-# Subscribeorunsubscribeupdatepayload
+# SubscribeOrUnsubscribeUpdatePayload
## Properties
@@ -10,19 +10,19 @@ Name | Type | Description | Notes
## Example
```python
-from hyperstack.models.subscribeorunsubscribeupdatepayload import Subscribeorunsubscribeupdatepayload
+from hyperstack.models.subscribe_or_unsubscribe_update_payload import SubscribeOrUnsubscribeUpdatePayload
# TODO update the JSON string below
json = "{}"
-# create an instance of Subscribeorunsubscribeupdatepayload from a JSON string
-subscribeorunsubscribeupdatepayload_instance = Subscribeorunsubscribeupdatepayload.from_json(json)
+# create an instance of SubscribeOrUnsubscribeUpdatePayload from a JSON string
+subscribe_or_unsubscribe_update_payload_instance = SubscribeOrUnsubscribeUpdatePayload.from_json(json)
# print the JSON string representation of the object
-print(Subscribeorunsubscribeupdatepayload.to_json())
+print(SubscribeOrUnsubscribeUpdatePayload.to_json())
# convert the object into a dict
-subscribeorunsubscribeupdatepayload_dict = subscribeorunsubscribeupdatepayload_instance.to_dict()
-# create an instance of Subscribeorunsubscribeupdatepayload from a dict
-subscribeorunsubscribeupdatepayload_from_dict = Subscribeorunsubscribeupdatepayload.from_dict(subscribeorunsubscribeupdatepayload_dict)
+subscribe_or_unsubscribe_update_payload_dict = subscribe_or_unsubscribe_update_payload_instance.to_dict()
+# create an instance of SubscribeOrUnsubscribeUpdatePayload from a dict
+subscribe_or_unsubscribe_update_payload_from_dict = SubscribeOrUnsubscribeUpdatePayload.from_dict(subscribe_or_unsubscribe_update_payload_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/SuccessResponseModel.md b/docs/SuccessResponseModel.md
deleted file mode 100644
index 186115e..0000000
--- a/docs/SuccessResponseModel.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# SuccessResponseModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional] [default to False]
-
-## Example
-
-```python
-from hyperstack.models.success_response_model import SuccessResponseModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of SuccessResponseModel from a JSON string
-success_response_model_instance = SuccessResponseModel.from_json(json)
-# print the JSON string representation of the object
-print(SuccessResponseModel.to_json())
-
-# convert the object into a dict
-success_response_model_dict = success_response_model_instance.to_dict()
-# create an instance of SuccessResponseModel from a dict
-success_response_model_from_dict = SuccessResponseModel.from_dict(success_response_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/TemplateApi.md b/docs/TemplateApi.md
index febfacb..9aad01e 100644
--- a/docs/TemplateApi.md
+++ b/docs/TemplateApi.md
@@ -21,7 +21,6 @@ Creates a resource template for deployment.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -46,12 +45,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -88,7 +81,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -116,7 +109,6 @@ Permanently deletes a template. Supply the template ID in the path to delete the
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -141,12 +133,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -177,7 +163,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -201,12 +187,11 @@ Name | Type | Description | Notes
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).
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -231,12 +216,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -267,7 +246,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -291,12 +270,11 @@ Name | Type | Description | Notes
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).
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -321,12 +299,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -357,7 +329,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -381,12 +353,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -412,12 +383,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -450,7 +415,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 0000000..725b8ea
--- /dev/null
+++ b/docs/TokenBasedBillingHistoryResponse.md
@@ -0,0 +1,31 @@
+# TokenBasedBillingHistoryResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_history_serverless_inference** | [**BillingHistoryServerlessInference**](BillingHistoryServerlessInference.md) | | [optional]
+**message** | **str** | | [optional]
+**success** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.token_based_billing_history_response import TokenBasedBillingHistoryResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of TokenBasedBillingHistoryResponse from a JSON string
+token_based_billing_history_response_instance = TokenBasedBillingHistoryResponse.from_json(json)
+# print the JSON string representation of the object
+print(TokenBasedBillingHistoryResponse.to_json())
+
+# convert the object into a dict
+token_based_billing_history_response_dict = token_based_billing_history_response_instance.to_dict()
+# create an instance of TokenBasedBillingHistoryResponse from a dict
+token_based_billing_history_response_from_dict = TokenBasedBillingHistoryResponse.from_dict(token_based_billing_history_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/URIs.md b/docs/URIs.md
new file mode 100644
index 0000000..8215699
--- /dev/null
+++ b/docs/URIs.md
@@ -0,0 +1,35 @@
+# URIs
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**api_doc** | **str** | | [optional]
+**api_uri** | **str** | | [optional]
+**auth** | **str** | | [optional]
+**console** | **str** | | [optional]
+**contact_us** | **str** | | [optional]
+**doc** | **str** | | [optional]
+**landing_page** | **str** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.uris import URIs
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of URIs from a JSON string
+uris_instance = URIs.from_json(json)
+# print the JSON string representation of the object
+print(URIs.to_json())
+
+# convert the object into a dict
+uris_dict = uris_instance.to_dict()
+# create an instance of URIs from a dict
+uris_from_dict = URIs.from_dict(uris_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateContractPayload.md b/docs/UpdateContractPayload.md
deleted file mode 100644
index 46f0175..0000000
--- a/docs/UpdateContractPayload.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# UpdateContractPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**description** | **str** | | [optional]
-**discount_resources** | [**List[ContractResourcePayload]**](ContractResourcePayload.md) | |
-**end_date** | **datetime** | | [optional]
-**expiration_policy** | **int** | |
-**start_date** | **datetime** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.update_contract_payload import UpdateContractPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of UpdateContractPayload from a JSON string
-update_contract_payload_instance = UpdateContractPayload.from_json(json)
-# print the JSON string representation of the object
-print(UpdateContractPayload.to_json())
-
-# convert the object into a dict
-update_contract_payload_dict = update_contract_payload_instance.to_dict()
-# create an instance of UpdateContractPayload from a dict
-update_contract_payload_from_dict = UpdateContractPayload.from_dict(update_contract_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/UpdateDiscountsPayload.md b/docs/UpdateDiscountsPayload.md
deleted file mode 100644
index 0749451..0000000
--- a/docs/UpdateDiscountsPayload.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# UpdateDiscountsPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**discount_resources** | [**List[DiscountResourcePayload]**](DiscountResourcePayload.md) | |
-**discount_status** | **str** | |
-**end_date** | **datetime** | | [optional]
-**start_date** | **datetime** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.update_discounts_payload import UpdateDiscountsPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of UpdateDiscountsPayload from a JSON string
-update_discounts_payload_instance = UpdateDiscountsPayload.from_json(json)
-# print the JSON string representation of the object
-print(UpdateDiscountsPayload.to_json())
-
-# convert the object into a dict
-update_discounts_payload_dict = update_discounts_payload_instance.to_dict()
-# create an instance of UpdateDiscountsPayload from a dict
-update_discounts_payload_from_dict = UpdateDiscountsPayload.from_dict(update_discounts_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/UpdateDiscountsStatusPayload.md b/docs/UpdateDiscountsStatusPayload.md
deleted file mode 100644
index 4420f97..0000000
--- a/docs/UpdateDiscountsStatusPayload.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# UpdateDiscountsStatusPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**discount_status** | **str** | |
-
-## Example
-
-```python
-from hyperstack.models.update_discounts_status_payload import UpdateDiscountsStatusPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of UpdateDiscountsStatusPayload from a JSON string
-update_discounts_status_payload_instance = UpdateDiscountsStatusPayload.from_json(json)
-# print the JSON string representation of the object
-print(UpdateDiscountsStatusPayload.to_json())
-
-# convert the object into a dict
-update_discounts_status_payload_dict = update_discounts_status_payload_instance.to_dict()
-# create an instance of UpdateDiscountsStatusPayload from a dict
-update_discounts_status_payload_from_dict = UpdateDiscountsStatusPayload.from_dict(update_discounts_status_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/UpdateGPU.md b/docs/UpdateGPU.md
deleted file mode 100644
index 56a0bb1..0000000
--- a/docs/UpdateGPU.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# UpdateGPU
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**example_metadata** | **str** | A valid JSON string. | [optional]
-**name** | **str** | | [optional]
-**regions** | **List[str]** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.update_gpu import UpdateGPU
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of UpdateGPU from a JSON string
-update_gpu_instance = UpdateGPU.from_json(json)
-# print the JSON string representation of the object
-print(UpdateGPU.to_json())
-
-# convert the object into a dict
-update_gpu_dict = update_gpu_instance.to_dict()
-# create an instance of UpdateGPU from a dict
-update_gpu_from_dict = UpdateGPU.from_dict(update_gpu_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/UpdateKeypairnameresponse.md b/docs/UpdateKeypairnameresponse.md
index 3086f22..504e595 100644
--- a/docs/UpdateKeypairnameresponse.md
+++ b/docs/UpdateKeypairnameresponse.md
@@ -1,4 +1,4 @@
-# UpdateKeypairnameresponse
+# UpdateKeypairNameResponse
## Properties
@@ -12,19 +12,19 @@ Name | Type | Description | Notes
## Example
```python
-from hyperstack.models.update_keypairnameresponse import UpdateKeypairnameresponse
+from hyperstack.models.update_keypair_name_response import UpdateKeypairNameResponse
# TODO update the JSON string below
json = "{}"
-# create an instance of UpdateKeypairnameresponse from a JSON string
-update_keypairnameresponse_instance = UpdateKeypairnameresponse.from_json(json)
+# create an instance of UpdateKeypairNameResponse from a JSON string
+update_keypair_name_response_instance = UpdateKeypairNameResponse.from_json(json)
# print the JSON string representation of the object
-print(UpdateKeypairnameresponse.to_json())
+print(UpdateKeypairNameResponse.to_json())
# convert the object into a dict
-update_keypairnameresponse_dict = update_keypairnameresponse_instance.to_dict()
-# create an instance of UpdateKeypairnameresponse from a dict
-update_keypairnameresponse_from_dict = UpdateKeypairnameresponse.from_dict(update_keypairnameresponse_dict)
+update_keypair_name_response_dict = update_keypair_name_response_instance.to_dict()
+# create an instance of UpdateKeypairNameResponse from a dict
+update_keypair_name_response_from_dict = UpdateKeypairNameResponse.from_dict(update_keypair_name_response_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/UpdateVolumeAttachmentPayload.md b/docs/UpdateVolumeAttachmentPayload.md
new file mode 100644
index 0000000..cda5094
--- /dev/null
+++ b/docs/UpdateVolumeAttachmentPayload.md
@@ -0,0 +1,29 @@
+# UpdateVolumeAttachmentPayload
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**protected** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.update_volume_attachment_payload import UpdateVolumeAttachmentPayload
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateVolumeAttachmentPayload from a JSON string
+update_volume_attachment_payload_instance = UpdateVolumeAttachmentPayload.from_json(json)
+# print the JSON string representation of the object
+print(UpdateVolumeAttachmentPayload.to_json())
+
+# convert the object into a dict
+update_volume_attachment_payload_dict = update_volume_attachment_payload_instance.to_dict()
+# create an instance of UpdateVolumeAttachmentPayload from a dict
+update_volume_attachment_payload_from_dict = UpdateVolumeAttachmentPayload.from_dict(update_volume_attachment_payload_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateVolumePayload.md b/docs/UpdateVolumePayload.md
new file mode 100644
index 0000000..8c99c7f
--- /dev/null
+++ b/docs/UpdateVolumePayload.md
@@ -0,0 +1,29 @@
+# UpdateVolumePayload
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**environment_name** | **str** | The name of the target environment to move the volume to. The target environment must be in the same region as the current environment. |
+
+## Example
+
+```python
+from hyperstack.models.update_volume_payload import UpdateVolumePayload
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateVolumePayload from a JSON string
+update_volume_payload_instance = UpdateVolumePayload.from_json(json)
+# print the JSON string representation of the object
+print(UpdateVolumePayload.to_json())
+
+# convert the object into a dict
+update_volume_payload_dict = update_volume_payload_instance.to_dict()
+# create an instance of UpdateVolumePayload from a dict
+update_volume_payload_from_dict = UpdateVolumePayload.from_dict(update_volume_payload_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UpdateVolumeResponse.md b/docs/UpdateVolumeResponse.md
new file mode 100644
index 0000000..19c8b59
--- /dev/null
+++ b/docs/UpdateVolumeResponse.md
@@ -0,0 +1,32 @@
+# UpdateVolumeResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**message** | **str** | | [optional]
+**status** | **bool** | | [optional]
+**updates** | **object** | Summary of fields that were updated | [optional]
+**volume** | [**VolumeFields**](VolumeFields.md) | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.update_volume_response import UpdateVolumeResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UpdateVolumeResponse from a JSON string
+update_volume_response_instance = UpdateVolumeResponse.from_json(json)
+# print the JSON string representation of the object
+print(UpdateVolumeResponse.to_json())
+
+# convert the object into a dict
+update_volume_response_dict = update_volume_response_instance.to_dict()
+# create an instance of UpdateVolumeResponse from a dict
+update_volume_response_from_dict = UpdateVolumeResponse.from_dict(update_volume_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UserApi.md b/docs/UserApi.md
index 1dcff58..8ce4590 100644
--- a/docs/UserApi.md
+++ b/docs/UserApi.md
@@ -4,20 +4,21 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**get_fetch_user_info**](UserApi.md#get_fetch_user_info) | **GET** /billing/user/info | GET: Fetch User Info
-[**post_insert_user_info**](UserApi.md#post_insert_user_info) | **POST** /billing/user/info | POST: Insert user info
-[**put_update_user_info**](UserApi.md#put_update_user_info) | **PUT** /billing/user/info | PUT: Update user info
+[**get_user**](UserApi.md#get_user) | **GET** /billing/user/info | GET: Retrieve billing info
+[**post_user**](UserApi.md#post_user) | **POST** /billing/user/info | POST: Insert billing info
+[**put_user**](UserApi.md#put_user) | **PUT** /billing/user/info | PUT: Update billing info
-# **get_fetch_user_info**
-> UsersInfoListResponse get_fetch_user_info()
+# **get_user**
+> UsersInfoListResponse get_user()
-GET: Fetch User Info
+GET: Retrieve billing info
+
+Retrieve the billing details associated with your organization.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -42,24 +43,18 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.UserApi(api_client)
try:
- # GET: Fetch User Info
- api_response = api_instance.get_fetch_user_info()
- print("The response of UserApi->get_fetch_user_info:\n")
+ # GET: Retrieve billing info
+ api_response = api_instance.get_user()
+ print("The response of UserApi->get_user:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling UserApi->get_fetch_user_info: %s\n" % e)
+ print("Exception when calling UserApi->get_user: %s\n" % e)
```
@@ -74,7 +69,7 @@ This endpoint does not need any parameter.
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -94,20 +89,21 @@ This endpoint does not need any parameter.
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **post_insert_user_info**
-> AddUserInfoSuccessResponseModel post_insert_user_info(payload)
+# **post_user**
+> AddUserInfoSuccessResponseModel post_user(payload)
+
+POST: Insert billing info
-POST: Insert user info
+Add billing details associated with your organization in the request body.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
from hyperstack.models.add_user_info_success_response_model import AddUserInfoSuccessResponseModel
-from hyperstack.models.userinfopostpayload import Userinfopostpayload
+from hyperstack.models.user_info_post_payload import UserInfoPostPayload
from hyperstack.rest import ApiException
from pprint import pprint
@@ -128,25 +124,19 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.UserApi(api_client)
- payload = hyperstack.Userinfopostpayload() # Userinfopostpayload |
+ payload = hyperstack.UserInfoPostPayload() # UserInfoPostPayload |
try:
- # POST: Insert user info
- api_response = api_instance.post_insert_user_info(payload)
- print("The response of UserApi->post_insert_user_info:\n")
+ # POST: Insert billing info
+ api_response = api_instance.post_user(payload)
+ print("The response of UserApi->post_user:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling UserApi->post_insert_user_info: %s\n" % e)
+ print("Exception when calling UserApi->post_user: %s\n" % e)
```
@@ -156,7 +146,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **payload** | [**Userinfopostpayload**](Userinfopostpayload.md)| |
+ **payload** | [**UserInfoPostPayload**](UserInfoPostPayload.md)| |
### Return type
@@ -164,7 +154,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -184,20 +174,21 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **put_update_user_info**
-> AddUserInfoSuccessResponseModel put_update_user_info(payload)
+# **put_user**
+> AddUserInfoSuccessResponseModel put_user(payload)
+
+PUT: Update billing info
-PUT: Update user info
+Update the billing information for your organization in the request body.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
from hyperstack.models.add_user_info_success_response_model import AddUserInfoSuccessResponseModel
-from hyperstack.models.userinfopostpayload import Userinfopostpayload
+from hyperstack.models.user_info_post_payload import UserInfoPostPayload
from hyperstack.rest import ApiException
from pprint import pprint
@@ -218,25 +209,19 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.UserApi(api_client)
- payload = hyperstack.Userinfopostpayload() # Userinfopostpayload |
+ payload = hyperstack.UserInfoPostPayload() # UserInfoPostPayload |
try:
- # PUT: Update user info
- api_response = api_instance.put_update_user_info(payload)
- print("The response of UserApi->put_update_user_info:\n")
+ # PUT: Update billing info
+ api_response = api_instance.put_user(payload)
+ print("The response of UserApi->put_user:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling UserApi->put_update_user_info: %s\n" % e)
+ print("Exception when calling UserApi->put_user: %s\n" % e)
```
@@ -246,7 +231,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **payload** | [**Userinfopostpayload**](Userinfopostpayload.md)| |
+ **payload** | [**UserInfoPostPayload**](UserInfoPostPayload.md)| |
### Return type
@@ -254,7 +239,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 27a0aa0..3b93e19 100644
--- a/docs/UserDetailChoiceApi.md
+++ b/docs/UserDetailChoiceApi.md
@@ -17,7 +17,6 @@ Retrieve the default choices for virtual machine deployment, including the defau
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -42,12 +41,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -74,7 +67,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/UserOrganizationsResponse.md b/docs/UserOrganizationsResponse.md
new file mode 100644
index 0000000..f64fc5f
--- /dev/null
+++ b/docs/UserOrganizationsResponse.md
@@ -0,0 +1,29 @@
+# UserOrganizationsResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**organizations** | [**List[OrganizationFields]**](OrganizationFields.md) | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.user_organizations_response import UserOrganizationsResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of UserOrganizationsResponse from a JSON string
+user_organizations_response_instance = UserOrganizationsResponse.from_json(json)
+# print the JSON string representation of the object
+print(UserOrganizationsResponse.to_json())
+
+# convert the object into a dict
+user_organizations_response_dict = user_organizations_response_instance.to_dict()
+# create an instance of UserOrganizationsResponse from a dict
+user_organizations_response_from_dict = UserOrganizationsResponse.from_dict(user_organizations_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/UserPermissionApi.md b/docs/UserPermissionApi.md
index 98dbce3..6879ed3 100644
--- a/docs/UserPermissionApi.md
+++ b/docs/UserPermissionApi.md
@@ -13,12 +13,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -43,12 +42,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -75,7 +68,7 @@ This endpoint does not need any parameter.
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -98,12 +91,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -128,12 +120,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -164,7 +150,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 c6ed436..0000000
--- a/docs/UserTransferPayload.md
+++ /dev/null
@@ -1,30 +0,0 @@
-# UserTransferPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**org_id** | **int** | |
-**role** | **str** | |
-
-## Example
-
-```python
-from hyperstack.models.user_transfer_payload import UserTransferPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of UserTransferPayload from a JSON string
-user_transfer_payload_instance = UserTransferPayload.from_json(json)
-# print the JSON string representation of the object
-print(UserTransferPayload.to_json())
-
-# convert the object into a dict
-user_transfer_payload_dict = user_transfer_payload_instance.to_dict()
-# create an instance of UserTransferPayload from a dict
-user_transfer_payload_from_dict = UserTransferPayload.from_dict(user_transfer_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/Userinfopostpayload.md b/docs/Userinfopostpayload.md
index a3709b1..0c84be5 100644
--- a/docs/Userinfopostpayload.md
+++ b/docs/Userinfopostpayload.md
@@ -1,4 +1,4 @@
-# Userinfopostpayload
+# UserInfoPostPayload
## Properties
@@ -20,19 +20,19 @@ Name | Type | Description | Notes
## Example
```python
-from hyperstack.models.userinfopostpayload import Userinfopostpayload
+from hyperstack.models.user_info_post_payload import UserInfoPostPayload
# TODO update the JSON string below
json = "{}"
-# create an instance of Userinfopostpayload from a JSON string
-userinfopostpayload_instance = Userinfopostpayload.from_json(json)
+# create an instance of UserInfoPostPayload from a JSON string
+user_info_post_payload_instance = UserInfoPostPayload.from_json(json)
# print the JSON string representation of the object
-print(Userinfopostpayload.to_json())
+print(UserInfoPostPayload.to_json())
# convert the object into a dict
-userinfopostpayload_dict = userinfopostpayload_instance.to_dict()
-# create an instance of Userinfopostpayload from a dict
-userinfopostpayload_from_dict = Userinfopostpayload.from_dict(userinfopostpayload_dict)
+user_info_post_payload_dict = user_info_post_payload_instance.to_dict()
+# create an instance of UserInfoPostPayload from a dict
+user_info_post_payload_from_dict = UserInfoPostPayload.from_dict(user_info_post_payload_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/UsersInfoFields.md b/docs/UsersInfoFields.md
index 32e3b9f..0226081 100644
--- a/docs/UsersInfoFields.md
+++ b/docs/UsersInfoFields.md
@@ -17,6 +17,7 @@ Name | Type | Description | Notes
**organization_id** | **int** | | [optional]
**phone** | **str** | | [optional]
**state** | **str** | | [optional]
+**stripe_user_id** | **str** | | [optional]
**vat_number** | **str** | | [optional]
**zip_code** | **str** | | [optional]
diff --git a/docs/VMUsageRequestPayload.md b/docs/VMUsageRequestPayload.md
deleted file mode 100644
index a68317c..0000000
--- a/docs/VMUsageRequestPayload.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# VMUsageRequestPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**vm_ids** | **List[int]** | List of virtual machine IDs |
-
-## Example
-
-```python
-from hyperstack.models.vm_usage_request_payload import VMUsageRequestPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of VMUsageRequestPayload from a JSON string
-vm_usage_request_payload_instance = VMUsageRequestPayload.from_json(json)
-# print the JSON string representation of the object
-print(VMUsageRequestPayload.to_json())
-
-# convert the object into a dict
-vm_usage_request_payload_dict = vm_usage_request_payload_instance.to_dict()
-# create an instance of VMUsageRequestPayload from a dict
-vm_usage_request_payload_from_dict = VMUsageRequestPayload.from_dict(vm_usage_request_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/VMUsageResponse.md b/docs/VMUsageResponse.md
deleted file mode 100644
index cfe1dab..0000000
--- a/docs/VMUsageResponse.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# VMUsageResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **str** | | [optional]
-**org_id** | **int** | | [optional]
-**status** | **bool** | | [optional]
-**virtual_machines** | [**List[VirtualMachineUsage]**](VirtualMachineUsage.md) | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.vm_usage_response import VMUsageResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of VMUsageResponse from a JSON string
-vm_usage_response_instance = VMUsageResponse.from_json(json)
-# print the JSON string representation of the object
-print(VMUsageResponse.to_json())
-
-# convert the object into a dict
-vm_usage_response_dict = vm_usage_response_instance.to_dict()
-# create an instance of VMUsageResponse from a dict
-vm_usage_response_from_dict = VMUsageResponse.from_dict(vm_usage_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/VerifyApiKeyPayload.md b/docs/VerifyApiKeyPayload.md
deleted file mode 100644
index 26afe7c..0000000
--- a/docs/VerifyApiKeyPayload.md
+++ /dev/null
@@ -1,29 +0,0 @@
-# VerifyApiKeyPayload
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**api_key** | **str** | The direction of traffic that the firewall rule applies to. |
-
-## Example
-
-```python
-from hyperstack.models.verify_api_key_payload import VerifyApiKeyPayload
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of VerifyApiKeyPayload from a JSON string
-verify_api_key_payload_instance = VerifyApiKeyPayload.from_json(json)
-# print the JSON string representation of the object
-print(VerifyApiKeyPayload.to_json())
-
-# convert the object into a dict
-verify_api_key_payload_dict = verify_api_key_payload_instance.to_dict()
-# create an instance of VerifyApiKeyPayload from a dict
-verify_api_key_payload_from_dict = VerifyApiKeyPayload.from_dict(verify_api_key_payload_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/VerifyApiKeyResponseModel.md b/docs/VerifyApiKeyResponseModel.md
deleted file mode 100644
index ba0833d..0000000
--- a/docs/VerifyApiKeyResponseModel.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# VerifyApiKeyResponseModel
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**api_key** | [**ApiKeyVerifyFields**](ApiKeyVerifyFields.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.verify_api_key_response_model import VerifyApiKeyResponseModel
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of VerifyApiKeyResponseModel from a JSON string
-verify_api_key_response_model_instance = VerifyApiKeyResponseModel.from_json(json)
-# print the JSON string representation of the object
-print(VerifyApiKeyResponseModel.to_json())
-
-# convert the object into a dict
-verify_api_key_response_model_dict = verify_api_key_response_model_instance.to_dict()
-# create an instance of VerifyApiKeyResponseModel from a dict
-verify_api_key_response_model_from_dict = VerifyApiKeyResponseModel.from_dict(verify_api_key_response_model_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/VirtualMachineApi.md b/docs/VirtualMachineApi.md
index c00b491..0e88c77 100644
--- a/docs/VirtualMachineApi.md
+++ b/docs/VirtualMachineApi.md
@@ -4,42 +4,42 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**add_firewall_rule_to_virtual_machine**](VirtualMachineApi.md#add_firewall_rule_to_virtual_machine) | **POST** /core/virtual-machines/{id}/sg-rules | Add firewall rule to virtual machine
-[**attach_firewalls_to_a_virtual_machine**](VirtualMachineApi.md#attach_firewalls_to_a_virtual_machine) | **POST** /core/virtual-machines/{vm_id}/attach-firewalls | Attach firewalls to a virtual machine
-[**create_snapshot_from_a_virtual_machine**](VirtualMachineApi.md#create_snapshot_from_a_virtual_machine) | **POST** /core/virtual-machines/{vm_id}/snapshots | Create snapshot from a virtual machine
-[**create_virtual_machines**](VirtualMachineApi.md#create_virtual_machines) | **POST** /core/virtual-machines | Create virtual machines
-[**delete_firewall_rule_from_virtual_machine**](VirtualMachineApi.md#delete_firewall_rule_from_virtual_machine) | **DELETE** /core/virtual-machines/{virtual_machine_id}/sg-rules/{sg_rule_id} | Delete firewall rule from virtual machine
-[**delete_virtual_machine**](VirtualMachineApi.md#delete_virtual_machine) | **DELETE** /core/virtual-machines/{id} | Delete virtual machine
-[**edit_virtual_machine_labels**](VirtualMachineApi.md#edit_virtual_machine_labels) | **PUT** /core/virtual-machines/{virtual_machine_id}/label | Edit virtual machine labels
+[**delete_instance**](VirtualMachineApi.md#delete_instance) | **DELETE** /core/virtual-machines/{vm_id} | Delete virtual machine
+[**delete_security_rule**](VirtualMachineApi.md#delete_security_rule) | **DELETE** /core/virtual-machines/{vm_id}/sg-rules/{sg_rule_id} | Delete firewall rule from virtual machine
[**fetch_virtual_machine_name_availability**](VirtualMachineApi.md#fetch_virtual_machine_name_availability) | **GET** /core/virtual-machines/name-availability/{name} | Fetch virtual machine name availability
-[**hard_reboot_virtual_machine**](VirtualMachineApi.md#hard_reboot_virtual_machine) | **GET** /core/virtual-machines/{id}/hard-reboot | Hard reboot virtual machine
-[**hibernate_virtual_machine**](VirtualMachineApi.md#hibernate_virtual_machine) | **GET** /core/virtual-machines/{virtual_machine_id}/hibernate | Hibernate virtual machine
-[**list_virtual_machines**](VirtualMachineApi.md#list_virtual_machines) | **GET** /core/virtual-machines | List virtual machines
-[**resize_virtual_machine**](VirtualMachineApi.md#resize_virtual_machine) | **POST** /core/virtual-machines/{virtual_machine_id}/resize | Resize virtual machine
-[**restore_virtual_machine_from_hibernation**](VirtualMachineApi.md#restore_virtual_machine_from_hibernation) | **GET** /core/virtual-machines/{virtual_machine_id}/hibernate-restore | Restore virtual machine from hibernation
-[**retrieve_virtual_machine_details**](VirtualMachineApi.md#retrieve_virtual_machine_details) | **GET** /core/virtual-machines/{id} | Retrieve virtual machine details
-[**retrieve_virtual_machine_performance_metrics**](VirtualMachineApi.md#retrieve_virtual_machine_performance_metrics) | **GET** /core/virtual-machines/{virtual_machine_id}/metrics | Retrieve virtual machine performance metrics
-[**retrieve_virtual_machines_associated_with_a_contract**](VirtualMachineApi.md#retrieve_virtual_machines_associated_with_a_contract) | **GET** /core/virtual-machines/contract/{contract_id}/virtual-machines | Retrieve virtual machines associated with a contract
-[**start_virtual_machine**](VirtualMachineApi.md#start_virtual_machine) | **GET** /core/virtual-machines/{id}/start | Start virtual machine
-[**stop_virtual_machine**](VirtualMachineApi.md#stop_virtual_machine) | **GET** /core/virtual-machines/{id}/stop | Stop virtual machine
+[**get_contract_instances**](VirtualMachineApi.md#get_contract_instances) | **GET** /core/virtual-machines/contract/{contract_id}/virtual-machines | Retrieve virtual machines associated with a contract
+[**get_instance**](VirtualMachineApi.md#get_instance) | **GET** /core/virtual-machines | List virtual machines
+[**get_instance2**](VirtualMachineApi.md#get_instance2) | **GET** /core/virtual-machines/{vm_id} | Retrieve virtual machine details
+[**get_instance3**](VirtualMachineApi.md#get_instance3) | **GET** /core/virtual-machines/{vm_id}/hard-reboot | Hard reboot virtual machine
+[**get_instance4**](VirtualMachineApi.md#get_instance4) | **GET** /core/virtual-machines/{vm_id}/start | Start virtual machine
+[**get_instance5**](VirtualMachineApi.md#get_instance5) | **GET** /core/virtual-machines/{vm_id}/stop | Stop virtual machine
+[**get_instance_hibernate**](VirtualMachineApi.md#get_instance_hibernate) | **GET** /core/virtual-machines/{vm_id}/hibernate | Hibernate virtual machine
+[**get_instance_hibernate_restore**](VirtualMachineApi.md#get_instance_hibernate_restore) | **GET** /core/virtual-machines/{vm_id}/hibernate-restore | Restore virtual machine from hibernation
+[**get_instance_logs**](VirtualMachineApi.md#get_instance_logs) | **GET** /core/virtual-machines/{vm_id}/logs | Get virtual machine logs
+[**get_instance_metrics**](VirtualMachineApi.md#get_instance_metrics) | **GET** /core/virtual-machines/{vm_id}/metrics | Retrieve virtual machine performance metrics
+[**post_instance**](VirtualMachineApi.md#post_instance) | **POST** /core/virtual-machines | Create virtual machines
+[**post_instance_attach_firewalls**](VirtualMachineApi.md#post_instance_attach_firewalls) | **POST** /core/virtual-machines/{vm_id}/attach-firewalls | Attach firewalls to a virtual machine
+[**post_instance_logs**](VirtualMachineApi.md#post_instance_logs) | **POST** /core/virtual-machines/{vm_id}/logs | Request virtual machine logs
+[**post_instance_resize**](VirtualMachineApi.md#post_instance_resize) | **POST** /core/virtual-machines/{vm_id}/resize | Resize virtual machine
+[**post_security_rule**](VirtualMachineApi.md#post_security_rule) | **POST** /core/virtual-machines/{vm_id}/sg-rules | Add firewall rule to virtual machine
+[**post_snapshots**](VirtualMachineApi.md#post_snapshots) | **POST** /core/virtual-machines/{vm_id}/snapshots | Create snapshot from a virtual machine
+[**put_labels**](VirtualMachineApi.md#put_labels) | **PUT** /core/virtual-machines/{vm_id}/label | Edit virtual machine labels
+
+
+# **delete_instance**
+> ResponseModel delete_instance(vm_id)
+Delete virtual machine
-# **add_firewall_rule_to_virtual_machine**
-> SecurityGroupRule add_firewall_rule_to_virtual_machine(id, 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://infrahub-doc.nexgencloud.com/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
+Permanently deletes a virtual machine. Provide the virtual machine ID in the path to delete the specified virtual machine.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.create_security_rule_payload import CreateSecurityRulePayload
-from hyperstack.models.security_group_rule import SecurityGroupRule
+from hyperstack.models.response_model import ResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -60,26 +60,19 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- id = 56 # int |
- payload = hyperstack.CreateSecurityRulePayload() # CreateSecurityRulePayload |
+ vm_id = 56 # int |
try:
- # Add firewall rule to virtual machine
- api_response = api_instance.add_firewall_rule_to_virtual_machine(id, payload)
- print("The response of VirtualMachineApi->add_firewall_rule_to_virtual_machine:\n")
+ # Delete virtual machine
+ api_response = api_instance.delete_instance(vm_id)
+ print("The response of VirtualMachineApi->delete_instance:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->add_firewall_rule_to_virtual_machine: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->delete_instance: %s\n" % e)
```
@@ -89,27 +82,26 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
- **payload** | [**CreateSecurityRulePayload**](CreateSecurityRulePayload.md)| |
+ **vm_id** | **int**| |
### Return type
-[**SecurityGroupRule**](SecurityGroupRule.md)
+[**ResponseModel**](ResponseModel.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
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | The firewall rule has been successfully added to the virtual machine. | - |
+**200** | Virtual machine deleted successfully. | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**404** | Not Found | - |
@@ -118,21 +110,19 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **attach_firewalls_to_a_virtual_machine**
-> ResponseModel attach_firewalls_to_a_virtual_machine(vm_id, payload)
+# **delete_security_rule**
+> ResponseModel delete_security_rule(vm_id, sg_rule_id)
-Attach firewalls to a virtual machine
+Delete firewall rule from virtual machine
-Attach firewalls to a virtual machine by providing the virtual machine ID in the path and the IDs of the firewalls in the request body; any firewalls not included will be detached.
+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.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.attach_firewalls_to_vm_payload import AttachFirewallsToVMPayload
from hyperstack.models.response_model import ResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -154,26 +144,20 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
vm_id = 56 # int |
- payload = hyperstack.AttachFirewallsToVMPayload() # AttachFirewallsToVMPayload |
+ sg_rule_id = 56 # int |
try:
- # Attach firewalls to a virtual machine
- api_response = api_instance.attach_firewalls_to_a_virtual_machine(vm_id, payload)
- print("The response of VirtualMachineApi->attach_firewalls_to_a_virtual_machine:\n")
+ # Delete firewall rule from virtual machine
+ api_response = api_instance.delete_security_rule(vm_id, sg_rule_id)
+ print("The response of VirtualMachineApi->delete_security_rule:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->attach_firewalls_to_a_virtual_machine: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->delete_security_rule: %s\n" % e)
```
@@ -184,7 +168,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
**vm_id** | **int**| |
- **payload** | [**AttachFirewallsToVMPayload**](AttachFirewallsToVMPayload.md)| |
+ **sg_rule_id** | **int**| |
### Return type
@@ -192,18 +176,18 @@ 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
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Success | - |
+**200** | The firewall rule has been successfully removed from the virtual machine. | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**404** | Not Found | - |
@@ -211,22 +195,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **create_snapshot_from_a_virtual_machine**
-> CreateSnapshotResponse create_snapshot_from_a_virtual_machine(vm_id, payload)
+# **fetch_virtual_machine_name_availability**
+> NameAvailableModel fetch_virtual_machine_name_availability(name)
-Create snapshot from a virtual machine
+Fetch virtual machine name availability
-Create snapshots of a virtual machine by providing the virtual machine ID in the path
+Check if a Virtual Machine name is available
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.create_snapshot_payload import CreateSnapshotPayload
-from hyperstack.models.create_snapshot_response import CreateSnapshotResponse
+from hyperstack.models.name_available_model import NameAvailableModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -247,26 +229,19 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- vm_id = 56 # int |
- payload = hyperstack.CreateSnapshotPayload() # CreateSnapshotPayload |
+ name = 'name_example' # str |
try:
- # Create snapshot from a virtual machine
- api_response = api_instance.create_snapshot_from_a_virtual_machine(vm_id, payload)
- print("The response of VirtualMachineApi->create_snapshot_from_a_virtual_machine:\n")
+ # Fetch virtual machine name availability
+ api_response = api_instance.fetch_virtual_machine_name_availability(name)
+ print("The response of VirtualMachineApi->fetch_virtual_machine_name_availability:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->create_snapshot_from_a_virtual_machine: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->fetch_virtual_machine_name_availability: %s\n" % e)
```
@@ -276,27 +251,26 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **vm_id** | **int**| |
- **payload** | [**CreateSnapshotPayload**](CreateSnapshotPayload.md)| |
+ **name** | **str**| |
### Return type
-[**CreateSnapshotResponse**](CreateSnapshotResponse.md)
+[**NameAvailableModel**](NameAvailableModel.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
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**201** | Success | - |
+**200** | Success | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**404** | Not Found | - |
@@ -304,22 +278,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **create_virtual_machines**
-> CreateInstancesResponse create_virtual_machines(payload)
+# **get_contract_instances**
+> ContractInstancesResponse get_contract_instances(contract_id, page=page, page_size=page_size, search=search)
-Create virtual machines
+Retrieve virtual machines associated with a contract
-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).
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.create_instances_payload import CreateInstancesPayload
-from hyperstack.models.create_instances_response import CreateInstancesResponse
+from hyperstack.models.contract_instances_response import ContractInstancesResponse
from hyperstack.rest import ApiException
from pprint import pprint
@@ -340,25 +312,22 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- payload = hyperstack.CreateInstancesPayload() # CreateInstancesPayload |
+ contract_id = 56 # int |
+ page = 'page_example' # str | Page Number (optional)
+ page_size = 'page_size_example' # str | Data Per Page (optional)
+ search = 'search_example' # str | Search By Instance ID or Name (optional)
try:
- # Create virtual machines
- api_response = api_instance.create_virtual_machines(payload)
- print("The response of VirtualMachineApi->create_virtual_machines:\n")
+ # Retrieve virtual machines associated with a contract
+ api_response = api_instance.get_contract_instances(contract_id, page=page, page_size=page_size, search=search)
+ print("The response of VirtualMachineApi->get_contract_instances:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->create_virtual_machines: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->get_contract_instances: %s\n" % e)
```
@@ -368,50 +337,49 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **payload** | [**CreateInstancesPayload**](CreateInstancesPayload.md)| |
+ **contract_id** | **int**| |
+ **page** | **str**| Page Number | [optional]
+ **page_size** | **str**| Data Per Page | [optional]
+ **search** | **str**| Search By Instance ID or Name | [optional]
### Return type
-[**CreateInstancesResponse**](CreateInstancesResponse.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
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Virtual machine(s) created successfully. | - |
+**200** | Success | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
-**404** | Not Found | - |
-**405** | Method Not Allowed | - |
-**409** | Conflict | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **delete_firewall_rule_from_virtual_machine**
-> ResponseModel delete_firewall_rule_from_virtual_machine(virtual_machine_id, sg_rule_id)
+# **get_instance**
+> Instances get_instance(page=page, page_size=page_size, search=search, environment=environment, exclude_firewalls=exclude_firewalls)
-Delete firewall rule from virtual machine
+List virtual machines
-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.
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.response_model import ResponseModel
+from hyperstack.models.instances import Instances
from hyperstack.rest import ApiException
from pprint import pprint
@@ -432,26 +400,23 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- virtual_machine_id = 56 # int |
- sg_rule_id = 56 # int |
+ page = 56 # int | (optional)
+ page_size = 56 # int | (optional)
+ search = 'search_example' # str | (optional)
+ environment = 'environment_example' # str | (optional)
+ exclude_firewalls = [56] # List[int] | Comma-separated list of Security Group IDs to ignore instances attached (optional)
try:
- # Delete firewall rule from virtual machine
- api_response = api_instance.delete_firewall_rule_from_virtual_machine(virtual_machine_id, sg_rule_id)
- print("The response of VirtualMachineApi->delete_firewall_rule_from_virtual_machine:\n")
+ # List virtual machines
+ api_response = api_instance.get_instance(page=page, page_size=page_size, search=search, environment=environment, exclude_firewalls=exclude_firewalls)
+ print("The response of VirtualMachineApi->get_instance:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->delete_firewall_rule_from_virtual_machine: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->get_instance: %s\n" % e)
```
@@ -461,16 +426,19 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **virtual_machine_id** | **int**| |
- **sg_rule_id** | **int**| |
+ **page** | **int**| | [optional]
+ **page_size** | **int**| | [optional]
+ **search** | **str**| | [optional]
+ **environment** | **str**| | [optional]
+ **exclude_firewalls** | [**List[int]**](int.md)| Comma-separated list of Security Group IDs to ignore instances attached | [optional]
### Return type
-[**ResponseModel**](ResponseModel.md)
+[**Instances**](Instances.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -481,29 +449,27 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | The firewall rule has been successfully removed from the virtual machine. | - |
+**200** | Success | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
-**404** | Not Found | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **delete_virtual_machine**
-> ResponseModel delete_virtual_machine(id)
+# **get_instance2**
+> Instance get_instance2(vm_id)
-Delete virtual machine
+Retrieve virtual machine details
-Permanently deletes a virtual machine. Provide the virtual machine ID in the path to delete the specified virtual machine.
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.response_model import ResponseModel
+from hyperstack.models.instance import Instance
from hyperstack.rest import ApiException
from pprint import pprint
@@ -524,25 +490,19 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- id = 56 # int |
+ vm_id = 56 # int |
try:
- # Delete virtual machine
- api_response = api_instance.delete_virtual_machine(id)
- print("The response of VirtualMachineApi->delete_virtual_machine:\n")
+ # Retrieve virtual machine details
+ api_response = api_instance.get_instance2(vm_id)
+ print("The response of VirtualMachineApi->get_instance2:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->delete_virtual_machine: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->get_instance2: %s\n" % e)
```
@@ -552,15 +512,15 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **vm_id** | **int**| |
### Return type
-[**ResponseModel**](ResponseModel.md)
+[**Instance**](Instance.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -571,30 +531,27 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Virtual machine deleted successfully. | - |
+**200** | Virtual machine details retrieved successfully. | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**404** | Not Found | - |
-**409** | Conflict | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **edit_virtual_machine_labels**
-> ResponseModel edit_virtual_machine_labels(virtual_machine_id, payload)
+# **get_instance3**
+> ResponseModel get_instance3(vm_id)
-Edit virtual machine labels
+Hard reboot virtual machine
-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.
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.editlabelofanexisting_vm_payload import EditlabelofanexistingVMPayload
from hyperstack.models.response_model import ResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -616,26 +573,19 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- virtual_machine_id = 56 # int |
- payload = hyperstack.EditlabelofanexistingVMPayload() # EditlabelofanexistingVMPayload |
+ vm_id = 56 # int |
try:
- # Edit virtual machine labels
- api_response = api_instance.edit_virtual_machine_labels(virtual_machine_id, payload)
- print("The response of VirtualMachineApi->edit_virtual_machine_labels:\n")
+ # Hard reboot virtual machine
+ api_response = api_instance.get_instance3(vm_id)
+ print("The response of VirtualMachineApi->get_instance3:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->edit_virtual_machine_labels: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->get_instance3: %s\n" % e)
```
@@ -645,8 +595,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **virtual_machine_id** | **int**| |
- **payload** | [**EditlabelofanexistingVMPayload**](EditlabelofanexistingVMPayload.md)| |
+ **vm_id** | **int**| |
### Return type
@@ -654,41 +603,39 @@ 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
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Labels edited successfully | - |
+**200** | Hard reboot process has been successfully initiated. | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**404** | Not Found | - |
-**409** | Conflict | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **fetch_virtual_machine_name_availability**
-> NameAvailableModel fetch_virtual_machine_name_availability(name)
+# **get_instance4**
+> ResponseModel get_instance4(vm_id)
-Fetch virtual machine name availability
+Start virtual machine
-Check if a Virtual Machine name is available
+Initiates the startup of a virtual machine. Provide the virtual machine ID in the path to initiate the starting of the specified virtual machine.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.name_available_model import NameAvailableModel
+from hyperstack.models.response_model import ResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -709,25 +656,19 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- name = 'name_example' # str |
+ vm_id = 56 # int |
try:
- # Fetch virtual machine name availability
- api_response = api_instance.fetch_virtual_machine_name_availability(name)
- print("The response of VirtualMachineApi->fetch_virtual_machine_name_availability:\n")
+ # Start virtual machine
+ api_response = api_instance.get_instance4(vm_id)
+ print("The response of VirtualMachineApi->get_instance4:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->fetch_virtual_machine_name_availability: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->get_instance4: %s\n" % e)
```
@@ -737,15 +678,15 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **name** | **str**| |
+ **vm_id** | **int**| |
### Return type
-[**NameAvailableModel**](NameAvailableModel.md)
+[**ResponseModel**](ResponseModel.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -756,7 +697,7 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Success | - |
+**200** | Virtual machine started successfully. | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**404** | Not Found | - |
@@ -764,17 +705,16 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **hard_reboot_virtual_machine**
-> ResponseModel hard_reboot_virtual_machine(id)
+# **get_instance5**
+> ResponseModel get_instance5(vm_id)
-Hard reboot virtual machine
+Stop 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.
+Shuts down a virtual machine. Provide the virtual machine ID in the path to initiate the shutdown process for the specified virtual machine.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -799,25 +739,19 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- id = 56 # int |
+ vm_id = 56 # int |
try:
- # Hard reboot virtual machine
- api_response = api_instance.hard_reboot_virtual_machine(id)
- print("The response of VirtualMachineApi->hard_reboot_virtual_machine:\n")
+ # Stop virtual machine
+ api_response = api_instance.get_instance5(vm_id)
+ print("The response of VirtualMachineApi->get_instance5:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->hard_reboot_virtual_machine: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->get_instance5: %s\n" % e)
```
@@ -827,7 +761,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **vm_id** | **int**| |
### Return type
@@ -835,7 +769,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -846,7 +780,7 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Hard reboot process has been successfully initiated. | - |
+**200** | Virtual machine shut down successfully. | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**404** | Not Found | - |
@@ -854,8 +788,8 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **hibernate_virtual_machine**
-> ResponseModel hibernate_virtual_machine(virtual_machine_id)
+# **get_instance_hibernate**
+> ResponseModel get_instance_hibernate(vm_id)
Hibernate virtual machine
@@ -864,7 +798,6 @@ Initiates the hibernation of a virtual machine, saving its current state to disk
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -889,25 +822,19 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- virtual_machine_id = 56 # int |
+ vm_id = 56 # int |
try:
# Hibernate virtual machine
- api_response = api_instance.hibernate_virtual_machine(virtual_machine_id)
- print("The response of VirtualMachineApi->hibernate_virtual_machine:\n")
+ api_response = api_instance.get_instance_hibernate(vm_id)
+ print("The response of VirtualMachineApi->get_instance_hibernate:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->hibernate_virtual_machine: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->get_instance_hibernate: %s\n" % e)
```
@@ -917,7 +844,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **virtual_machine_id** | **int**| |
+ **vm_id** | **int**| |
### Return type
@@ -925,7 +852,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -944,21 +871,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **list_virtual_machines**
-> Instances list_virtual_machines(page=page, page_size=page_size, search=search, environment=environment)
+# **get_instance_hibernate_restore**
+> ResponseModel get_instance_hibernate_restore(vm_id)
-List virtual machines
+Restore virtual machine 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.
+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.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.instances import Instances
+from hyperstack.models.response_model import ResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -979,28 +905,103 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.VirtualMachineApi(api_client)
+ vm_id = 56 # int |
+
+ try:
+ # Restore virtual machine from hibernation
+ api_response = api_instance.get_instance_hibernate_restore(vm_id)
+ print("The response of VirtualMachineApi->get_instance_hibernate_restore:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling VirtualMachineApi->get_instance_hibernate_restore: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **vm_id** | **int**| |
+
+### Return type
+
+[**ResponseModel**](ResponseModel.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | The request to restore the virtual machine from hibernation was successful. | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **get_instance_logs**
+> GetInstanceLogsResponse get_instance_logs(vm_id, request_id)
+
+Get virtual machine logs
+
+Retrieve console logs for a virtual machine
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.get_instance_logs_response import GetInstanceLogsResponse
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- page = 'page_example' # str | Page Number (optional)
- page_size = 'page_size_example' # str | Data Per Page (optional)
- search = 'search_example' # str | (optional)
- environment = 'environment_example' # str | Filter Environment ID or Name (optional)
+ vm_id = 56 # int |
+ request_id = 56 # int |
try:
- # List virtual machines
- api_response = api_instance.list_virtual_machines(page=page, page_size=page_size, search=search, environment=environment)
- print("The response of VirtualMachineApi->list_virtual_machines:\n")
+ # Get virtual machine logs
+ api_response = api_instance.get_instance_logs(vm_id, request_id)
+ print("The response of VirtualMachineApi->get_instance_logs:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->list_virtual_machines: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->get_instance_logs: %s\n" % e)
```
@@ -1010,18 +1011,16 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **page** | **str**| Page Number | [optional]
- **page_size** | **str**| Data Per Page | [optional]
- **search** | **str**| | [optional]
- **environment** | **str**| Filter Environment ID or Name | [optional]
+ **vm_id** | **int**| |
+ **request_id** | **int**| |
### Return type
-[**Instances**](Instances.md)
+[**GetInstanceLogsResponse**](GetInstanceLogsResponse.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -1032,29 +1031,29 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Success | - |
+**200** | Logs were successfully retrieved | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
+**404** | Not Found | - |
+**405** | Method Not Allowed | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **resize_virtual_machine**
-> ResponseModel resize_virtual_machine(virtual_machine_id, payload)
+# **get_instance_metrics**
+> MetricsFields get_instance_metrics(vm_id, duration=duration)
-Resize virtual machine
+Retrieve virtual machine 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://infrahub-doc.nexgencloud.com/docs/hardware/flavors#modify-the-flavor-of-an-existing-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://docs.hyperstack.cloud/docs/virtual-machines/vm-performance-metrics-and-events-history#performance-metrics).
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.instance_resize_payload import InstanceResizePayload
-from hyperstack.models.response_model import ResponseModel
+from hyperstack.models.metrics_fields import MetricsFields
from hyperstack.rest import ApiException
from pprint import pprint
@@ -1075,26 +1074,106 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.VirtualMachineApi(api_client)
+ vm_id = 56 # int |
+ duration = 'duration_example' # str | (optional)
+
+ try:
+ # Retrieve virtual machine performance metrics
+ api_response = api_instance.get_instance_metrics(vm_id, duration=duration)
+ print("The response of VirtualMachineApi->get_instance_metrics:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling VirtualMachineApi->get_instance_metrics: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **vm_id** | **int**| |
+ **duration** | **str**| | [optional]
+
+### Return type
+
+[**MetricsFields**](MetricsFields.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: Not defined
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Virtual machine performance metrics have been successfully retrieved. | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**406** | Not Acceptable | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
+# **post_instance**
+> CreateInstancesResponse post_instance(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://docs.hyperstack.cloud/docs/virtual-machines/virtual-machine-features#create-a-virtual-machine-with-custom-features).
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.create_instances_payload import CreateInstancesPayload
+from hyperstack.models.create_instances_response import CreateInstancesResponse
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- virtual_machine_id = 56 # int |
- payload = hyperstack.InstanceResizePayload() # InstanceResizePayload |
+ payload = hyperstack.CreateInstancesPayload() # CreateInstancesPayload |
try:
- # Resize virtual machine
- api_response = api_instance.resize_virtual_machine(virtual_machine_id, payload)
- print("The response of VirtualMachineApi->resize_virtual_machine:\n")
+ # Create virtual machines
+ api_response = api_instance.post_instance(payload)
+ print("The response of VirtualMachineApi->post_instance:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->resize_virtual_machine: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->post_instance: %s\n" % e)
```
@@ -1104,16 +1183,15 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **virtual_machine_id** | **int**| |
- **payload** | [**InstanceResizePayload**](InstanceResizePayload.md)| |
+ **payload** | [**CreateInstancesPayload**](CreateInstancesPayload.md)| |
### Return type
-[**ResponseModel**](ResponseModel.md)
+[**CreateInstancesResponse**](CreateInstancesResponse.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -1124,29 +1202,30 @@ Name | Type | Description | Notes
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | The resizing of the virtual machine configuration was successful. | - |
+**200** | Virtual machine(s) created successfully. | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**404** | Not Found | - |
**405** | Method Not Allowed | - |
+**409** | Conflict | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **restore_virtual_machine_from_hibernation**
-> ResponseModel restore_virtual_machine_from_hibernation(virtual_machine_id)
+# **post_instance_attach_firewalls**
+> ResponseModel post_instance_attach_firewalls(vm_id, payload)
-Restore virtual machine from hibernation
+Attach firewalls to a virtual machine
-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.
+Attach firewalls to a virtual machine by providing the virtual machine ID in the path and the IDs of the firewalls in the request body; any firewalls not included will be detached.
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
+from hyperstack.models.attach_firewalls_to_vm_payload import AttachFirewallsToVMPayload
from hyperstack.models.response_model import ResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -1168,25 +1247,20 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- virtual_machine_id = 56 # int |
+ vm_id = 56 # int |
+ payload = hyperstack.AttachFirewallsToVMPayload() # AttachFirewallsToVMPayload |
try:
- # Restore virtual machine from hibernation
- api_response = api_instance.restore_virtual_machine_from_hibernation(virtual_machine_id)
- print("The response of VirtualMachineApi->restore_virtual_machine_from_hibernation:\n")
+ # Attach firewalls to a virtual machine
+ api_response = api_instance.post_instance_attach_firewalls(vm_id, payload)
+ print("The response of VirtualMachineApi->post_instance_attach_firewalls:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->restore_virtual_machine_from_hibernation: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->post_instance_attach_firewalls: %s\n" % e)
```
@@ -1196,7 +1270,8 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **virtual_machine_id** | **int**| |
+ **vm_id** | **int**| |
+ **payload** | [**AttachFirewallsToVMPayload**](AttachFirewallsToVMPayload.md)| |
### Return type
@@ -1204,18 +1279,18 @@ Name | Type | Description | Notes
### 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
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | The request to restore the virtual machine from hibernation was successful. | - |
+**200** | Success | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**404** | Not Found | - |
@@ -1223,21 +1298,21 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_virtual_machine_details**
-> Instance retrieve_virtual_machine_details(id)
+# **post_instance_logs**
+> RequestInstanceLogsResponse post_instance_logs(vm_id, 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.instance import Instance
+from hyperstack.models.request_instance_logs_payload import RequestInstanceLogsPayload
+from hyperstack.models.request_instance_logs_response import RequestInstanceLogsResponse
from hyperstack.rest import ApiException
from pprint import pprint
@@ -1258,25 +1333,20 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- id = 56 # int |
+ vm_id = 56 # int |
+ payload = hyperstack.RequestInstanceLogsPayload() # RequestInstanceLogsPayload |
try:
- # Retrieve virtual machine details
- api_response = api_instance.retrieve_virtual_machine_details(id)
- print("The response of VirtualMachineApi->retrieve_virtual_machine_details:\n")
+ # Request virtual machine logs
+ api_response = api_instance.post_instance_logs(vm_id, payload)
+ print("The response of VirtualMachineApi->post_instance_logs:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->retrieve_virtual_machine_details: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->post_instance_logs: %s\n" % e)
```
@@ -1286,48 +1356,50 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **vm_id** | **int**| |
+ **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
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Virtual machine details retrieved successfully. | - |
+**200** | Logs were successfully requested | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**404** | Not Found | - |
+**405** | Method Not Allowed | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_virtual_machine_performance_metrics**
-> MetricsFields retrieve_virtual_machine_performance_metrics(virtual_machine_id, duration=duration)
+# **post_instance_resize**
+> ResponseModel post_instance_resize(vm_id, 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.metrics_fields import MetricsFields
+from hyperstack.models.instance_resize_payload import InstanceResizePayload
+from hyperstack.models.response_model import ResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -1348,26 +1420,20 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- virtual_machine_id = 56 # int |
- duration = 'duration_example' # str | (optional)
+ vm_id = 56 # int |
+ payload = hyperstack.InstanceResizePayload() # InstanceResizePayload |
try:
- # Retrieve virtual machine performance metrics
- api_response = api_instance.retrieve_virtual_machine_performance_metrics(virtual_machine_id, duration=duration)
- print("The response of VirtualMachineApi->retrieve_virtual_machine_performance_metrics:\n")
+ # Resize virtual machine
+ api_response = api_instance.post_instance_resize(vm_id, payload)
+ print("The response of VirtualMachineApi->post_instance_resize:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->retrieve_virtual_machine_performance_metrics: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->post_instance_resize: %s\n" % e)
```
@@ -1377,50 +1443,50 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **virtual_machine_id** | **int**| |
- **duration** | **str**| | [optional]
+ **vm_id** | **int**| |
+ **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
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Virtual machine performance metrics have been successfully retrieved. | - |
+**200** | The resizing of the virtual machine configuration was successful. | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**404** | Not Found | - |
-**406** | Not Acceptable | - |
+**405** | Method Not Allowed | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **retrieve_virtual_machines_associated_with_a_contract**
-> ContractInstancesResponse retrieve_virtual_machines_associated_with_a_contract(contract_id, page=page, page_size=page_size, search=search)
+# **post_security_rule**
+> SecurityGroupRule post_security_rule(vm_id, payload)
-Retrieve virtual machines associated with a contract
+Add firewall rule to virtual machine
-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.
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.contract_instances_response import ContractInstancesResponse
+from hyperstack.models.create_security_rule_payload import CreateSecurityRulePayload
+from hyperstack.models.security_group_rule import SecurityGroupRule
from hyperstack.rest import ApiException
from pprint import pprint
@@ -1441,28 +1507,20 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- contract_id = 56 # int |
- page = 'page_example' # str | Page Number (optional)
- page_size = 'page_size_example' # str | Data Per Page (optional)
- search = 'search_example' # str | Search By Instance ID or Name (optional)
+ vm_id = 56 # int |
+ payload = hyperstack.CreateSecurityRulePayload() # CreateSecurityRulePayload |
try:
- # Retrieve virtual machines associated with a contract
- api_response = api_instance.retrieve_virtual_machines_associated_with_a_contract(contract_id, page=page, page_size=page_size, search=search)
- print("The response of VirtualMachineApi->retrieve_virtual_machines_associated_with_a_contract:\n")
+ # Add firewall rule to virtual machine
+ api_response = api_instance.post_security_rule(vm_id, payload)
+ print("The response of VirtualMachineApi->post_security_rule:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->retrieve_virtual_machines_associated_with_a_contract: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->post_security_rule: %s\n" % e)
```
@@ -1472,50 +1530,50 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **contract_id** | **int**| |
- **page** | **str**| Page Number | [optional]
- **page_size** | **str**| Data Per Page | [optional]
- **search** | **str**| Search By Instance ID or Name | [optional]
+ **vm_id** | **int**| |
+ **payload** | [**CreateSecurityRulePayload**](CreateSecurityRulePayload.md)| |
### Return type
-[**ContractInstancesResponse**](ContractInstancesResponse.md)
+[**SecurityGroupRule**](SecurityGroupRule.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
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Success | - |
+**200** | The firewall rule has been successfully added to the virtual machine. | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
+**404** | Not Found | - |
+**409** | Conflict | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **start_virtual_machine**
-> ResponseModel start_virtual_machine(id)
+# **post_snapshots**
+> CreateSnapshotResponse post_snapshots(vm_id, payload)
-Start virtual machine
+Create snapshot from a 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.
+Create snapshots of a virtual machine by providing the virtual machine ID in the path
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.response_model import ResponseModel
+from hyperstack.models.create_snapshot_payload import CreateSnapshotPayload
+from hyperstack.models.create_snapshot_response import CreateSnapshotResponse
from hyperstack.rest import ApiException
from pprint import pprint
@@ -1536,25 +1594,20 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- id = 56 # int |
+ vm_id = 56 # int |
+ payload = hyperstack.CreateSnapshotPayload() # CreateSnapshotPayload |
try:
- # Start virtual machine
- api_response = api_instance.start_virtual_machine(id)
- print("The response of VirtualMachineApi->start_virtual_machine:\n")
+ # Create snapshot from a virtual machine
+ api_response = api_instance.post_snapshots(vm_id, payload)
+ print("The response of VirtualMachineApi->post_snapshots:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->start_virtual_machine: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->post_snapshots: %s\n" % e)
```
@@ -1564,26 +1617,27 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **vm_id** | **int**| |
+ **payload** | [**CreateSnapshotPayload**](CreateSnapshotPayload.md)| |
### Return type
-[**ResponseModel**](ResponseModel.md)
+[**CreateSnapshotResponse**](CreateSnapshotResponse.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
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Virtual machine started successfully. | - |
+**201** | Success | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**404** | Not Found | - |
@@ -1591,20 +1645,20 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **stop_virtual_machine**
-> ResponseModel stop_virtual_machine(id)
+# **put_labels**
+> ResponseModel put_labels(vm_id, payload)
-Stop virtual machine
+Edit virtual machine labels
-Shuts down a virtual machine. Provide the virtual machine ID in the path to initiate the shutdown process for the specified virtual machine.
+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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
+from hyperstack.models.edit_label_of_an_existing_vm_payload import EditLabelOfAnExistingVMPayload
from hyperstack.models.response_model import ResponseModel
from hyperstack.rest import ApiException
from pprint import pprint
@@ -1626,25 +1680,20 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineApi(api_client)
- id = 56 # int |
+ vm_id = 56 # int |
+ payload = hyperstack.EditLabelOfAnExistingVMPayload() # EditLabelOfAnExistingVMPayload |
try:
- # Stop virtual machine
- api_response = api_instance.stop_virtual_machine(id)
- print("The response of VirtualMachineApi->stop_virtual_machine:\n")
+ # Edit virtual machine labels
+ api_response = api_instance.put_labels(vm_id, payload)
+ print("The response of VirtualMachineApi->put_labels:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VirtualMachineApi->stop_virtual_machine: %s\n" % e)
+ print("Exception when calling VirtualMachineApi->put_labels: %s\n" % e)
```
@@ -1654,7 +1703,8 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **vm_id** | **int**| |
+ **payload** | [**EditLabelOfAnExistingVMPayload**](EditLabelOfAnExistingVMPayload.md)| |
### Return type
@@ -1662,21 +1712,22 @@ Name | Type | Description | Notes
### 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
### HTTP response details
| Status code | Description | Response headers |
|-------------|-------------|------------------|
-**200** | Virtual machine shut down successfully. | - |
+**200** | Labels edited successfully | - |
**400** | Bad Request | - |
**401** | Unauthorized | - |
**404** | Not Found | - |
+**409** | Conflict | - |
**500** | Internal Server Error | - |
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
diff --git a/docs/VirtualMachineEventsApi.md b/docs/VirtualMachineEventsApi.md
index 6fe7202..16b010c 100644
--- a/docs/VirtualMachineEventsApi.md
+++ b/docs/VirtualMachineEventsApi.md
@@ -4,20 +4,19 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**list_virtual_machine_events**](VirtualMachineEventsApi.md#list_virtual_machine_events) | **GET** /core/virtual-machines/{virtual_machine_id}/events | List virtual machine events
+[**list_virtual_machine_events**](VirtualMachineEventsApi.md#list_virtual_machine_events) | **GET** /core/virtual-machines/{vm_id}/events | List virtual machine events
# **list_virtual_machine_events**
-> InstanceEvents list_virtual_machine_events(virtual_machine_id)
+> InstanceEvents list_virtual_machine_events(vm_id)
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -42,21 +41,15 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VirtualMachineEventsApi(api_client)
- virtual_machine_id = 'virtual_machine_id_example' # str |
+ vm_id = 56 # int |
try:
# List virtual machine events
- api_response = api_instance.list_virtual_machine_events(virtual_machine_id)
+ api_response = api_instance.list_virtual_machine_events(vm_id)
print("The response of VirtualMachineEventsApi->list_virtual_machine_events:\n")
pprint(api_response)
except Exception as e:
@@ -70,7 +63,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **virtual_machine_id** | **str**| |
+ **vm_id** | **int**| |
### Return type
@@ -78,7 +71,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 49aa756..0000000
--- a/docs/VirtualMachineUsage.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# VirtualMachineUsage
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**id** | **int** | | [optional]
-**name** | **str** | | [optional]
-**status** | **str** | | [optional]
-**total_usage_time** | **int** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.virtual_machine_usage import VirtualMachineUsage
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of VirtualMachineUsage from a JSON string
-virtual_machine_usage_instance = VirtualMachineUsage.from_json(json)
-# print the JSON string representation of the object
-print(VirtualMachineUsage.to_json())
-
-# convert the object into a dict
-virtual_machine_usage_dict = virtual_machine_usage_instance.to_dict()
-# create an instance of VirtualMachineUsage from a dict
-virtual_machine_usage_from_dict = VirtualMachineUsage.from_dict(virtual_machine_usage_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/VncUrlApi.md b/docs/VncUrlApi.md
index 15cde92..c67eca7 100644
--- a/docs/VncUrlApi.md
+++ b/docs/VncUrlApi.md
@@ -4,19 +4,20 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**get_vnc_console_link**](VncUrlApi.md#get_vnc_console_link) | **GET** /core/virtual-machines/{virtual_machine_id}/console/{job_id} | Get VNC Console Link
-[**request_instance_console**](VncUrlApi.md#request_instance_console) | **GET** /core/virtual-machines/{id}/request-console | Request Instance Console
+[**get_vnc_url**](VncUrlApi.md#get_vnc_url) | **GET** /core/virtual-machines/{vm_id}/console/{job_id} | Get VNC Console Link
+[**get_vnc_url2**](VncUrlApi.md#get_vnc_url2) | **GET** /core/virtual-machines/{vm_id}/request-console | Request Instance Console
-# **get_vnc_console_link**
-> VNCURL get_vnc_console_link(virtual_machine_id, job_id)
+# **get_vnc_url**
+> VNCURL get_vnc_url(vm_id, job_id)
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -41,26 +42,20 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VncUrlApi(api_client)
- virtual_machine_id = 56 # int |
+ vm_id = 56 # int |
job_id = 56 # int |
try:
# Get VNC Console Link
- api_response = api_instance.get_vnc_console_link(virtual_machine_id, job_id)
- print("The response of VncUrlApi->get_vnc_console_link:\n")
+ api_response = api_instance.get_vnc_url(vm_id, job_id)
+ print("The response of VncUrlApi->get_vnc_url:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VncUrlApi->get_vnc_console_link: %s\n" % e)
+ print("Exception when calling VncUrlApi->get_vnc_url: %s\n" % e)
```
@@ -70,7 +65,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **virtual_machine_id** | **int**| |
+ **vm_id** | **int**| |
**job_id** | **int**| |
### Return type
@@ -79,7 +74,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -98,15 +93,16 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
-# **request_instance_console**
-> RequestConsole request_instance_console(id)
+# **get_vnc_url2**
+> RequestConsole get_vnc_url2(vm_id)
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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -131,25 +127,19 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VncUrlApi(api_client)
- id = 56 # int |
+ vm_id = 56 # int |
try:
# Request Instance Console
- api_response = api_instance.request_instance_console(id)
- print("The response of VncUrlApi->request_instance_console:\n")
+ api_response = api_instance.get_vnc_url2(vm_id)
+ print("The response of VncUrlApi->get_vnc_url2:\n")
pprint(api_response)
except Exception as e:
- print("Exception when calling VncUrlApi->request_instance_console: %s\n" % e)
+ print("Exception when calling VncUrlApi->get_vnc_url2: %s\n" % e)
```
@@ -159,7 +149,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **vm_id** | **int**| |
### Return type
@@ -167,7 +157,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 8e25015..4ca9495 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
------------- | ------------- | -------------
[**create_volume**](VolumeApi.md#create_volume) | **POST** /core/volumes | Create volume
-[**delete_volume**](VolumeApi.md#delete_volume) | **DELETE** /core/volumes/{id} | Delete volume
-[**fetch_volume_details**](VolumeApi.md#fetch_volume_details) | **GET** /core/volume/{volume_id} | Fetch Volume Details
+[**delete_volume**](VolumeApi.md#delete_volume) | **DELETE** /core/volumes/{volume_id} | Delete volume
+[**fetch_volume_details**](VolumeApi.md#fetch_volume_details) | **GET** /core/volumes/{volume_id} | Fetch Volume Details
[**fetch_volume_name_availability**](VolumeApi.md#fetch_volume_name_availability) | **GET** /core/volume/name-availability/{name} | Fetch volume name availability
[**list_volume_types**](VolumeApi.md#list_volume_types) | **GET** /core/volume-types | List volume types
[**list_volumes**](VolumeApi.md#list_volumes) | **GET** /core/volumes | List volumes
+[**update_volume**](VolumeApi.md#update_volume) | **PATCH** /core/volumes/{volume_id} | Update volume fields
# **create_volume**
@@ -17,12 +18,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -48,12 +48,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -84,7 +78,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -106,7 +100,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **delete_volume**
-> ResponseModel delete_volume(id)
+> ResponseModel delete_volume(volume_id)
Delete volume
@@ -115,7 +109,6 @@ Deletes a volume permanently. Provide the volume ID in the path to specify the v
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -140,21 +133,15 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VolumeApi(api_client)
- id = 56 # int |
+ volume_id = 56 # int |
try:
# Delete volume
- api_response = api_instance.delete_volume(id)
+ api_response = api_instance.delete_volume(volume_id)
print("The response of VolumeApi->delete_volume:\n")
pprint(api_response)
except Exception as e:
@@ -168,7 +155,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **id** | **int**| |
+ **volume_id** | **int**| |
### Return type
@@ -176,7 +163,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -196,7 +183,7 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **fetch_volume_details**
-> Volumes fetch_volume_details(volume_id)
+> Volume fetch_volume_details(volume_id)
Fetch Volume Details
@@ -205,11 +192,10 @@ Fetch volume details for specific volume. This endpoint returns id, name, volume
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
-from hyperstack.models.volumes import Volumes
+from hyperstack.models.volume import Volume
from hyperstack.rest import ApiException
from pprint import pprint
@@ -230,12 +216,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -262,11 +242,11 @@ Name | Type | Description | Notes
### Return type
-[**Volumes**](Volumes.md)
+[**Volume**](Volume.md)
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -296,7 +276,6 @@ Check if a Volume name is available
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -321,12 +300,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -357,7 +330,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -386,7 +359,6 @@ Retrieves a list of available volume types that can be used in the creation of a
### Example
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -411,12 +383,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -443,7 +409,7 @@ This endpoint does not need any parameter.
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -466,12 +432,11 @@ 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -496,12 +461,6 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
@@ -538,7 +497,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -556,3 +515,90 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+# **update_volume**
+> UpdateVolumeResponse update_volume(volume_id, 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
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.update_volume_payload import UpdateVolumePayload
+from hyperstack.models.update_volume_response import UpdateVolumeResponse
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.VolumeApi(api_client)
+ volume_id = 56 # int |
+ payload = hyperstack.UpdateVolumePayload() # UpdateVolumePayload |
+
+ try:
+ # Update volume fields
+ api_response = api_instance.update_volume(volume_id, payload)
+ print("The response of VolumeApi->update_volume:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling VolumeApi->update_volume: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **volume_id** | **int**| |
+ **payload** | [**UpdateVolumePayload**](UpdateVolumePayload.md)| |
+
+### Return type
+
+[**UpdateVolumeResponse**](UpdateVolumeResponse.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Volume successfully updated. | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**409** | Conflict | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/VolumeAttachmentApi.md b/docs/VolumeAttachmentApi.md
index a72cc2f..6b726a5 100644
--- a/docs/VolumeAttachmentApi.md
+++ b/docs/VolumeAttachmentApi.md
@@ -4,21 +4,21 @@ All URIs are relative to *https://infrahub-api.nexgencloud.com/v1*
Method | HTTP request | Description
------------- | ------------- | -------------
-[**attach_volumes_to_virtual_machine**](VolumeAttachmentApi.md#attach_volumes_to_virtual_machine) | **POST** /core/virtual-machines/{virtual_machine_id}/attach-volumes | Attach volumes to virtual machine
-[**detach_volumes_from_virtual_machine**](VolumeAttachmentApi.md#detach_volumes_from_virtual_machine) | **POST** /core/virtual-machines/{virtual_machine_id}/detach-volumes | Detach volumes from virtual machine
+[**attach_volumes_to_virtual_machine**](VolumeAttachmentApi.md#attach_volumes_to_virtual_machine) | **POST** /core/virtual-machines/{vm_id}/attach-volumes | Attach volumes to virtual machine
+[**detach_volumes_from_virtual_machine**](VolumeAttachmentApi.md#detach_volumes_from_virtual_machine) | **POST** /core/virtual-machines/{vm_id}/detach-volumes | Detach volumes from virtual machine
+[**update_a_volume_attachment**](VolumeAttachmentApi.md#update_a_volume_attachment) | **PATCH** /core/volume-attachments/{volume_attachment_id} | Update a volume attachment
# **attach_volumes_to_virtual_machine**
-> AttachVolumes attach_volumes_to_virtual_machine(virtual_machine_id, payload)
+> AttachVolumes attach_volumes_to_virtual_machine(vm_id, 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -44,22 +44,16 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VolumeAttachmentApi(api_client)
- virtual_machine_id = 56 # int |
+ vm_id = 56 # int |
payload = hyperstack.AttachVolumesPayload() # AttachVolumesPayload |
try:
# Attach volumes to virtual machine
- api_response = api_instance.attach_volumes_to_virtual_machine(virtual_machine_id, payload)
+ api_response = api_instance.attach_volumes_to_virtual_machine(vm_id, payload)
print("The response of VolumeAttachmentApi->attach_volumes_to_virtual_machine:\n")
pprint(api_response)
except Exception as e:
@@ -73,7 +67,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **virtual_machine_id** | **int**| |
+ **vm_id** | **int**| |
**payload** | [**AttachVolumesPayload**](AttachVolumesPayload.md)| |
### Return type
@@ -82,7 +76,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -103,16 +97,15 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
# **detach_volumes_from_virtual_machine**
-> DetachVolumes detach_volumes_from_virtual_machine(virtual_machine_id, payload)
+> DetachVolumes detach_volumes_from_virtual_machine(vm_id, 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
* Api Key Authentication (apiKey):
-* Api Key Authentication (accessToken):
```python
import hyperstack
@@ -138,22 +131,16 @@ configuration.api_key['apiKey'] = os.environ["API_KEY"]
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['apiKey'] = 'Bearer'
-# Configure API key authorization: accessToken
-configuration.api_key['accessToken'] = os.environ["API_KEY"]
-
-# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
-# configuration.api_key_prefix['accessToken'] = 'Bearer'
-
# Enter a context with an instance of the API client
with hyperstack.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = hyperstack.VolumeAttachmentApi(api_client)
- virtual_machine_id = 56 # int |
+ vm_id = 56 # int |
payload = hyperstack.DetachVolumesPayload() # DetachVolumesPayload |
try:
# Detach volumes from virtual machine
- api_response = api_instance.detach_volumes_from_virtual_machine(virtual_machine_id, payload)
+ api_response = api_instance.detach_volumes_from_virtual_machine(vm_id, payload)
print("The response of VolumeAttachmentApi->detach_volumes_from_virtual_machine:\n")
pprint(api_response)
except Exception as e:
@@ -167,7 +154,7 @@ with hyperstack.ApiClient(configuration) as api_client:
Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
- **virtual_machine_id** | **int**| |
+ **vm_id** | **int**| |
**payload** | [**DetachVolumesPayload**](DetachVolumesPayload.md)| |
### Return type
@@ -176,7 +163,7 @@ Name | Type | Description | Notes
### Authorization
-[apiKey](../README.md#apiKey), [accessToken](../README.md#accessToken)
+[apiKey](../README.md#apiKey)
### HTTP request headers
@@ -196,3 +183,88 @@ Name | Type | Description | Notes
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+# **update_a_volume_attachment**
+> AttachVolumes update_a_volume_attachment(volume_attachment_id, payload)
+
+Update a volume attachment
+
+### Example
+
+* Api Key Authentication (apiKey):
+
+```python
+import hyperstack
+from hyperstack.models.attach_volumes import AttachVolumes
+from hyperstack.models.update_volume_attachment_payload import UpdateVolumeAttachmentPayload
+from hyperstack.rest import ApiException
+from pprint import pprint
+
+# Defining the host is optional and defaults to https://infrahub-api.nexgencloud.com/v1
+# See configuration.py for a list of all supported configuration parameters.
+configuration = hyperstack.Configuration(
+ host = "https://infrahub-api.nexgencloud.com/v1"
+)
+
+# The client must configure the authentication and authorization parameters
+# in accordance with the API server security policy.
+# Examples for each auth method are provided below, use the example that
+# satisfies your auth use case.
+
+# Configure API key authorization: apiKey
+configuration.api_key['apiKey'] = os.environ["API_KEY"]
+
+# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
+# configuration.api_key_prefix['apiKey'] = 'Bearer'
+
+# Enter a context with an instance of the API client
+with hyperstack.ApiClient(configuration) as api_client:
+ # Create an instance of the API class
+ api_instance = hyperstack.VolumeAttachmentApi(api_client)
+ volume_attachment_id = 56 # int |
+ payload = hyperstack.UpdateVolumeAttachmentPayload() # UpdateVolumeAttachmentPayload |
+
+ try:
+ # Update a volume attachment
+ api_response = api_instance.update_a_volume_attachment(volume_attachment_id, payload)
+ print("The response of VolumeAttachmentApi->update_a_volume_attachment:\n")
+ pprint(api_response)
+ except Exception as e:
+ print("Exception when calling VolumeAttachmentApi->update_a_volume_attachment: %s\n" % e)
+```
+
+
+
+### Parameters
+
+
+Name | Type | Description | Notes
+------------- | ------------- | ------------- | -------------
+ **volume_attachment_id** | **int**| |
+ **payload** | [**UpdateVolumeAttachmentPayload**](UpdateVolumeAttachmentPayload.md)| |
+
+### Return type
+
+[**AttachVolumes**](AttachVolumes.md)
+
+### Authorization
+
+[apiKey](../README.md#apiKey)
+
+### HTTP request headers
+
+ - **Content-Type**: application/json
+ - **Accept**: application/json
+
+### HTTP response details
+
+| Status code | Description | Response headers |
+|-------------|-------------|------------------|
+**200** | Volume attachment has been updated | - |
+**400** | Bad Request | - |
+**401** | Unauthorized | - |
+**404** | Not Found | - |
+**405** | Method Not Allowed | - |
+**500** | Internal Server Error | - |
+
+[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
+
diff --git a/docs/VolumeAttachmentFields.md b/docs/VolumeAttachmentFields.md
index 3e29ef8..03dfb59 100644
--- a/docs/VolumeAttachmentFields.md
+++ b/docs/VolumeAttachmentFields.md
@@ -7,8 +7,10 @@ Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**created_at** | **datetime** | | [optional]
**device** | **str** | | [optional]
+**id** | **int** | | [optional]
+**protected** | **bool** | | [optional]
**status** | **str** | | [optional]
-**volume** | [**VolumeFieldsforInstance**](VolumeFieldsforInstance.md) | | [optional]
+**volume** | [**VolumeFieldsForInstance**](VolumeFieldsForInstance.md) | | [optional]
## Example
diff --git a/docs/VolumeFields.md b/docs/VolumeFields.md
index e586eaf..224bb71 100644
--- a/docs/VolumeFields.md
+++ b/docs/VolumeFields.md
@@ -5,11 +5,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**attachments** | [**List[AttachmentsFieldsForVolume]**](AttachmentsFieldsForVolume.md) | | [optional]
**bootable** | **bool** | | [optional]
**callback_url** | **str** | | [optional]
**created_at** | **datetime** | | [optional]
**description** | **str** | | [optional]
-**environment** | [**EnvironmentFieldsforVolume**](EnvironmentFieldsforVolume.md) | | [optional]
+**environment** | [**EnvironmentFieldsForVolume**](EnvironmentFieldsForVolume.md) | | [optional]
**id** | **int** | | [optional]
**image_id** | **int** | | [optional]
**name** | **str** | | [optional]
diff --git a/docs/VolumeFieldsforInstance.md b/docs/VolumeFieldsforInstance.md
index e628906..9ed9da0 100644
--- a/docs/VolumeFieldsforInstance.md
+++ b/docs/VolumeFieldsforInstance.md
@@ -1,4 +1,4 @@
-# VolumeFieldsforInstance
+# VolumeFieldsForInstance
## Properties
@@ -15,19 +15,19 @@ Name | Type | Description | Notes
## Example
```python
-from hyperstack.models.volume_fieldsfor_instance import VolumeFieldsforInstance
+from hyperstack.models.volume_fields_for_instance import VolumeFieldsForInstance
# TODO update the JSON string below
json = "{}"
-# create an instance of VolumeFieldsforInstance from a JSON string
-volume_fieldsfor_instance_instance = VolumeFieldsforInstance.from_json(json)
+# create an instance of VolumeFieldsForInstance from a JSON string
+volume_fields_for_instance_instance = VolumeFieldsForInstance.from_json(json)
# print the JSON string representation of the object
-print(VolumeFieldsforInstance.to_json())
+print(VolumeFieldsForInstance.to_json())
# convert the object into a dict
-volume_fieldsfor_instance_dict = volume_fieldsfor_instance_instance.to_dict()
-# create an instance of VolumeFieldsforInstance from a dict
-volume_fieldsfor_instance_from_dict = VolumeFieldsforInstance.from_dict(volume_fieldsfor_instance_dict)
+volume_fields_for_instance_dict = volume_fields_for_instance_instance.to_dict()
+# create an instance of VolumeFieldsForInstance from a dict
+volume_fields_for_instance_from_dict = VolumeFieldsForInstance.from_dict(volume_fields_for_instance_dict)
```
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
diff --git a/docs/VolumeStatusChangeFields.md b/docs/VolumeStatusChangeFields.md
deleted file mode 100644
index 285fd0c..0000000
--- a/docs/VolumeStatusChangeFields.md
+++ /dev/null
@@ -1,33 +0,0 @@
-# VolumeStatusChangeFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**created_at** | **datetime** | | [optional]
-**current_status** | **str** | | [optional]
-**id** | **int** | | [optional]
-**previous_status** | **str** | | [optional]
-**volume_id** | **int** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.volume_status_change_fields import VolumeStatusChangeFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of VolumeStatusChangeFields from a JSON string
-volume_status_change_fields_instance = VolumeStatusChangeFields.from_json(json)
-# print the JSON string representation of the object
-print(VolumeStatusChangeFields.to_json())
-
-# convert the object into a dict
-volume_status_change_fields_dict = volume_status_change_fields_instance.to_dict()
-# create an instance of VolumeStatusChangeFields from a dict
-volume_status_change_fields_from_dict = VolumeStatusChangeFields.from_dict(volume_status_change_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/Volumes.md b/docs/Volumes.md
index aebbf3d..ca374aa 100644
--- a/docs/Volumes.md
+++ b/docs/Volumes.md
@@ -5,9 +5,12 @@
Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
+**count** | **int** | | [optional]
**message** | **str** | | [optional]
+**page** | **int** | | [optional]
+**page_size** | **int** | | [optional]
**status** | **bool** | | [optional]
-**volume** | [**List[VolumeFields]**](VolumeFields.md) | | [optional]
+**volumes** | [**List[VolumesFields]**](VolumesFields.md) | | [optional]
## Example
diff --git a/docs/VolumesFields.md b/docs/VolumesFields.md
new file mode 100644
index 0000000..ed3c6b7
--- /dev/null
+++ b/docs/VolumesFields.md
@@ -0,0 +1,41 @@
+# VolumesFields
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**attachments** | [**List[AttachmentsFieldsForVolume]**](AttachmentsFieldsForVolume.md) | | [optional]
+**bootable** | **bool** | | [optional]
+**callback_url** | **str** | | [optional]
+**created_at** | **datetime** | | [optional]
+**description** | **str** | | [optional]
+**environment** | [**EnvironmentFieldsForVolume**](EnvironmentFieldsForVolume.md) | | [optional]
+**id** | **int** | | [optional]
+**image_id** | **int** | | [optional]
+**name** | **str** | | [optional]
+**size** | **int** | | [optional]
+**status** | **str** | | [optional]
+**updated_at** | **datetime** | | [optional]
+**volume_type** | **str** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.volumes_fields import VolumesFields
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of VolumesFields from a JSON string
+volumes_fields_instance = VolumesFields.from_json(json)
+# print the JSON string representation of the object
+print(VolumesFields.to_json())
+
+# convert the object into a dict
+volumes_fields_dict = volumes_fields_instance.to_dict()
+# create an instance of VolumesFields from a dict
+volumes_fields_from_dict = VolumesFields.from_dict(volumes_fields_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/docs/VolumesLastStatusChangeResponse.md b/docs/VolumesLastStatusChangeResponse.md
deleted file mode 100644
index 2500bd5..0000000
--- a/docs/VolumesLastStatusChangeResponse.md
+++ /dev/null
@@ -1,31 +0,0 @@
-# VolumesLastStatusChangeResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-**volume_status_list** | [**List[VolumeStatusChangeFields]**](VolumeStatusChangeFields.md) | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.volumes_last_status_change_response import VolumesLastStatusChangeResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of VolumesLastStatusChangeResponse from a JSON string
-volumes_last_status_change_response_instance = VolumesLastStatusChangeResponse.from_json(json)
-# print the JSON string representation of the object
-print(VolumesLastStatusChangeResponse.to_json())
-
-# convert the object into a dict
-volumes_last_status_change_response_dict = volumes_last_status_change_response_instance.to_dict()
-# create an instance of VolumesLastStatusChangeResponse from a dict
-volumes_last_status_change_response_from_dict = VolumesLastStatusChangeResponse.from_dict(volumes_last_status_change_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/WarningMailLogFields.md b/docs/WarningMailLogFields.md
deleted file mode 100644
index e6eb254..0000000
--- a/docs/WarningMailLogFields.md
+++ /dev/null
@@ -1,35 +0,0 @@
-# WarningMailLogFields
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**content** | **str** | | [optional]
-**created_at** | **str** | | [optional]
-**id** | **int** | | [optional]
-**organization_id** | **int** | | [optional]
-**threshold** | **int** | | [optional]
-**topic** | **str** | | [optional]
-**updated_at** | **str** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.warning_mail_log_fields import WarningMailLogFields
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of WarningMailLogFields from a JSON string
-warning_mail_log_fields_instance = WarningMailLogFields.from_json(json)
-# print the JSON string representation of the object
-print(WarningMailLogFields.to_json())
-
-# convert the object into a dict
-warning_mail_log_fields_dict = warning_mail_log_fields_instance.to_dict()
-# create an instance of WarningMailLogFields from a dict
-warning_mail_log_fields_from_dict = WarningMailLogFields.from_dict(warning_mail_log_fields_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/WarningMailLogResponse.md b/docs/WarningMailLogResponse.md
deleted file mode 100644
index fc05416..0000000
--- a/docs/WarningMailLogResponse.md
+++ /dev/null
@@ -1,32 +0,0 @@
-# WarningMailLogResponse
-
-
-## Properties
-
-Name | Type | Description | Notes
------------- | ------------- | ------------- | -------------
-**data** | [**List[WarningMailLogFields]**](WarningMailLogFields.md) | | [optional]
-**message** | **str** | | [optional]
-**status** | **bool** | | [optional]
-**total** | **int** | | [optional]
-
-## Example
-
-```python
-from hyperstack.models.warning_mail_log_response import WarningMailLogResponse
-
-# TODO update the JSON string below
-json = "{}"
-# create an instance of WarningMailLogResponse from a JSON string
-warning_mail_log_response_instance = WarningMailLogResponse.from_json(json)
-# print the JSON string representation of the object
-print(WarningMailLogResponse.to_json())
-
-# convert the object into a dict
-warning_mail_log_response_dict = warning_mail_log_response_instance.to_dict()
-# create an instance of WarningMailLogResponse from a dict
-warning_mail_log_response_from_dict = WarningMailLogResponse.from_dict(warning_mail_log_response_dict)
-```
-[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
-
-
diff --git a/docs/WorkloadBillingHistoryResponse.md b/docs/WorkloadBillingHistoryResponse.md
new file mode 100644
index 0000000..8056655
--- /dev/null
+++ b/docs/WorkloadBillingHistoryResponse.md
@@ -0,0 +1,31 @@
+# WorkloadBillingHistoryResponse
+
+
+## Properties
+
+Name | Type | Description | Notes
+------------ | ------------- | ------------- | -------------
+**billing_history_fine_tuning** | [**BillingHistoryFineTuning**](BillingHistoryFineTuning.md) | | [optional]
+**message** | **str** | | [optional]
+**success** | **bool** | | [optional]
+
+## Example
+
+```python
+from hyperstack.models.workload_billing_history_response import WorkloadBillingHistoryResponse
+
+# TODO update the JSON string below
+json = "{}"
+# create an instance of WorkloadBillingHistoryResponse from a JSON string
+workload_billing_history_response_instance = WorkloadBillingHistoryResponse.from_json(json)
+# print the JSON string representation of the object
+print(WorkloadBillingHistoryResponse.to_json())
+
+# convert the object into a dict
+workload_billing_history_response_dict = workload_billing_history_response_instance.to_dict()
+# create an instance of WorkloadBillingHistoryResponse from a dict
+workload_billing_history_response_from_dict = WorkloadBillingHistoryResponse.from_dict(workload_billing_history_response_dict)
+```
+[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
+
+
diff --git a/hyperstack/__init__.py b/hyperstack/__init__.py
index 038efbc..49f278f 100644
--- a/hyperstack/__init__.py
+++ b/hyperstack/__init__.py
@@ -14,7 +14,7 @@
""" # noqa: E501
-__version__ = "v1.25.0-alpha"
+__version__ = "v1.41.0-alpha"
# import apis into sdk package
from .api.calculate_api import CalculateApi
@@ -25,6 +25,7 @@
from .api.api_key_api import ApiKeyApi
from .api.assigning_member_role_api import AssigningMemberRoleApi
from .api.auth_api import AuthApi
+from .api.beta_access_api import BetaAccessApi
from .api.billing_api import BillingApi
from .api.callbacks_api import CallbacksApi
from .api.cluster_events_api import ClusterEventsApi
@@ -43,6 +44,7 @@
from .api.invite_api import InviteApi
from .api.keypair_api import KeypairApi
from .api.organization_api import OrganizationApi
+from .api.partner_config_api import PartnerConfigApi
from .api.payment_api import PaymentApi
from .api.permission_api import PermissionApi
from .api.policy_api import PolicyApi
@@ -74,11 +76,10 @@
from .exceptions import ApiException
# import models into sdk package
-from .models.add_update_flavor_organization_payload import AddUpdateFlavorOrganizationPayload
+from .models.access_token_field import AccessTokenField
from .models.add_user_info_success_response_model import AddUserInfoSuccessResponseModel
from .models.allocated_gpu_count_graph import AllocatedGPUCountGraph
from .models.api_key_fields import ApiKeyFields
-from .models.api_key_verify_fields import ApiKeyVerifyFields
from .models.assign_rbac_role_payload import AssignRbacRolePayload
from .models.attach_callback_payload import AttachCallbackPayload
from .models.attach_callback_response import AttachCallbackResponse
@@ -87,21 +88,40 @@
from .models.attach_volume_fields import AttachVolumeFields
from .models.attach_volumes import AttachVolumes
from .models.attach_volumes_payload import AttachVolumesPayload
+from .models.attachments_fields_for_volume import AttachmentsFieldsForVolume
+from .models.attributes import Attributes
from .models.auth_get_token_response_model import AuthGetTokenResponseModel
-from .models.auth_request_login_fields import AuthRequestLoginFields
-from .models.auth_request_login_response_model import AuthRequestLoginResponseModel
from .models.auth_user_fields import AuthUserFields
from .models.auth_user_info_response_model import AuthUserInfoResponseModel
-from .models.billing_immune_resources_response import BillingImmuneResourcesResponse
-from .models.billing_response import BillingResponse
-from .models.billingmetricesfields import Billingmetricesfields
-from .models.billingmetricesresponse import Billingmetricesresponse
+from .models.beta_access_request_fields import BetaAccessRequestFields
+from .models.beta_access_request_payload import BetaAccessRequestPayload
+from .models.beta_access_request_response_model import BetaAccessRequestResponseModel
+from .models.beta_access_status_item import BetaAccessStatusItem
+from .models.beta_access_status_response_model import BetaAccessStatusResponseModel
+from .models.billing_history import BillingHistory
+from .models.billing_history_data_synthesis_details import BillingHistoryDataSynthesisDetails
+from .models.billing_history_fine_tuning import BillingHistoryFineTuning
+from .models.billing_history_model_evalutation_details import BillingHistoryModelEvalutationDetails
+from .models.billing_history_serverless_inference import BillingHistoryServerlessInference
+from .models.billing_history_serverless_inference_details import BillingHistoryServerlessInferenceDetails
+from .models.billing_metrices_fields import BillingMetricesFields
+from .models.billing_metrices_response import BillingMetricesResponse
from .models.cluster_events import ClusterEvents
from .models.cluster_events_fields import ClusterEventsFields
from .models.cluster_fields import ClusterFields
+from .models.cluster_flavor_fields import ClusterFlavorFields
from .models.cluster_list_response import ClusterListResponse
+from .models.cluster_node_fields import ClusterNodeFields
+from .models.cluster_node_group_fields import ClusterNodeGroupFields
+from .models.cluster_node_groups_create_response import ClusterNodeGroupsCreateResponse
+from .models.cluster_node_groups_get_response import ClusterNodeGroupsGetResponse
+from .models.cluster_node_groups_list_response import ClusterNodeGroupsListResponse
+from .models.cluster_node_instance_fields import ClusterNodeInstanceFields
+from .models.cluster_nodes_list_response import ClusterNodesListResponse
from .models.cluster_response import ClusterResponse
+from .models.cluster_version import ClusterVersion
from .models.cluster_versions import ClusterVersions
+from .models.colors import Colors
from .models.common_response_model import CommonResponseModel
from .models.compliance_fields import ComplianceFields
from .models.compliance_model_fields import ComplianceModelFields
@@ -109,28 +129,16 @@
from .models.compliance_response import ComplianceResponse
from .models.container_overview_fields import ContainerOverviewFields
from .models.contract import Contract
-from .models.contract_billing_history import ContractBillingHistory
-from .models.contract_billing_history_response_attributes import ContractBillingHistoryResponseAttributes
-from .models.contract_billing_history_response_model import ContractBillingHistoryResponseModel
-from .models.contract_change_payload import ContractChangePayload
from .models.contract_discount_plan_fields import ContractDiscountPlanFields
-from .models.contract_eligible_instance_fields import ContractEligibleInstanceFields
-from .models.contract_eligible_instances_response import ContractEligibleInstancesResponse
-from .models.contract_event_create_model import ContractEventCreateModel
from .models.contract_gpu_allocation_graph_response import ContractGPUAllocationGraphResponse
from .models.contract_instance_fields import ContractInstanceFields
from .models.contract_instances_response import ContractInstancesResponse
-from .models.contract_resource_payload import ContractResourcePayload
-from .models.contractl_billing_history_response_metrics import ContractlBillingHistoryResponseMetrics
+from .models.create_cluster_node_fields import CreateClusterNodeFields
+from .models.create_cluster_node_group_payload import CreateClusterNodeGroupPayload
from .models.create_cluster_payload import CreateClusterPayload
-from .models.create_contract_fields import CreateContractFields
-from .models.create_contract_payload import CreateContractPayload
-from .models.create_discount_response import CreateDiscountResponse
-from .models.create_discounts_payload import CreateDiscountsPayload
from .models.create_environment import CreateEnvironment
from .models.create_firewall_payload import CreateFirewallPayload
from .models.create_firewall_rule_payload import CreateFirewallRulePayload
-from .models.create_gpu import CreateGPU
from .models.create_image import CreateImage
from .models.create_image_payload import CreateImagePayload
from .models.create_instances_payload import CreateInstancesPayload
@@ -141,44 +149,24 @@
from .models.create_snapshot_payload import CreateSnapshotPayload
from .models.create_snapshot_response import CreateSnapshotResponse
from .models.create_update_compliance_response import CreateUpdateComplianceResponse
-from .models.create_update_permission_payload import CreateUpdatePermissionPayload
-from .models.create_update_permission_response_model import CreateUpdatePermissionResponseModel
-from .models.create_update_policy_payload import CreateUpdatePolicyPayload
-from .models.create_update_policy_response_model import CreateUpdatePolicyResponseModel
from .models.create_update_rbac_role_payload import CreateUpdateRbacRolePayload
from .models.create_volume_payload import CreateVolumePayload
-from .models.creditrechargelimitfield import Creditrechargelimitfield
-from .models.creditrechargelimitresponse import Creditrechargelimitresponse
-from .models.creditrequestresponse import Creditrequestresponse
-from .models.creditrequests import Creditrequests
from .models.customer_contract_detail_response_model import CustomerContractDetailResponseModel
from .models.customer_contract_fields import CustomerContractFields
-from .models.customer_fields import CustomerFields
-from .models.customer_payload import CustomerPayload
from .models.dashboard_info_response import DashboardInfoResponse
-from .models.data import Data
+from .models.data_synthesis_billing_history_details_response_schema import DataSynthesisBillingHistoryDetailsResponseSchema
from .models.deployment_fields import DeploymentFields
-from .models.deployment_fieldsforstartdeployments import DeploymentFieldsforstartdeployments
+from .models.deployment_fields_for_start_deployments import DeploymentFieldsForStartDeployments
from .models.deployments import Deployments
from .models.detach_volumes import DetachVolumes
from .models.detach_volumes_payload import DetachVolumesPayload
-from .models.discount_entity_model import DiscountEntityModel
-from .models.discount_fields import DiscountFields
-from .models.discount_plan_fields import DiscountPlanFields
-from .models.discount_resource_fields import DiscountResourceFields
-from .models.discount_resource_payload import DiscountResourcePayload
-from .models.editlabelofanexisting_vm_payload import EditlabelofanexistingVMPayload
+from .models.edit_label_of_an_existing_vm_payload import EditLabelOfAnExistingVMPayload
from .models.environment import Environment
from .models.environment_features import EnvironmentFeatures
from .models.environment_fields import EnvironmentFields
-from .models.environment_fieldsfor_volume import EnvironmentFieldsforVolume
+from .models.environment_fields_for_volume import EnvironmentFieldsForVolume
from .models.environments import Environments
from .models.error_response_model import ErrorResponseModel
-from .models.exclude_billing_post_payload import ExcludeBillingPostPayload
-from .models.exclude_billing_post_response import ExcludeBillingPostResponse
-from .models.export_billing_data_request import ExportBillingDataRequest
-from .models.export_billing_data_response import ExportBillingDataResponse
-from .models.field_change import FieldChange
from .models.firewall_attachment_model import FirewallAttachmentModel
from .models.firewall_attachment_vm_model import FirewallAttachmentVMModel
from .models.firewall_detail_fields import FirewallDetailFields
@@ -190,55 +178,33 @@
from .models.firewalls_list_response import FirewallsListResponse
from .models.flavor_fields import FlavorFields
from .models.flavor_item_get_response import FlavorItemGetResponse
+from .models.flavor_label_fields import FlavorLabelFields
from .models.flavor_list_response import FlavorListResponse
from .models.flavor_object_fields import FlavorObjectFields
-from .models.flavor_payload import FlavorPayload
-from .models.flavor_response import FlavorResponse
-from .models.flavor_vm_fields import FlavorVMFields
-from .models.flavor_vms_response import FlavorVMsResponse
-from .models.future_node_model import FutureNodeModel
-from .models.future_node_response_model import FutureNodeResponseModel
-from .models.future_node_stock_model import FutureNodeStockModel
-from .models.future_node_update_model import FutureNodeUpdateModel
-from .models.future_nodes_stock_model import FutureNodesStockModel
-from .models.gpu import GPU
from .models.gpu_fields import GPUFields
from .models.gpu_list import GPUList
from .models.gpu_region_fields import GPURegionFields
from .models.generate_update_api_key_payload import GenerateUpdateApiKeyPayload
from .models.generate_update_api_key_response_model import GenerateUpdateApiKeyResponseModel
-from .models.get_all_contract_fields import GetAllContractFields
-from .models.get_all_contracts_response_model import GetAllContractsResponseModel
-from .models.get_all_discount_for_all_organization_response import GetAllDiscountForAllOrganizationResponse
-from .models.get_all_discounts_fields import GetAllDiscountsFields
from .models.get_api_keys_response_model import GetApiKeysResponseModel
+from .models.get_credit_and_threshold_info import GetCreditAndThresholdInfo
+from .models.get_credit_and_threshold_info_in_response import GetCreditAndThresholdInfoInResponse
from .models.get_customer_contracts_list_response_model import GetCustomerContractsListResponseModel
-from .models.get_discount_detail_response import GetDiscountDetailResponse
-from .models.get_discount_response import GetDiscountResponse
-from .models.get_entity_discount_detail_response import GetEntityDiscountDetailResponse
+from .models.get_instance_logs_response import GetInstanceLogsResponse
from .models.get_invites_response_model import GetInvitesResponseModel
from .models.get_organization_response_model import GetOrganizationResponseModel
from .models.get_permissions_response_model import GetPermissionsResponseModel
from .models.get_policies_response_model import GetPoliciesResponseModel
from .models.get_rbac_roles_response_model import GetRbacRolesResponseModel
-from .models.get_token_payload import GetTokenPayload
from .models.get_user_permissions_response_model import GetUserPermissionsResponseModel
-from .models.get_version_response import GetVersionResponse
-from .models.getcreditandthresholdinfo import Getcreditandthresholdinfo
-from .models.getcreditandthresholdinfoinresponse import Getcreditandthresholdinfoinresponse
from .models.graph_datetime_value_model import GraphDatetimeValueModel
-from .models.historical_instance import HistoricalInstance
-from .models.historical_instances_fields import HistoricalInstancesFields
from .models.image import Image
from .models.image_fields import ImageFields
from .models.image_get_response import ImageGetResponse
-from .models.image_logos import ImageLogos
from .models.images import Images
from .models.import_keypair_payload import ImportKeypairPayload
from .models.import_keypair_response import ImportKeypairResponse
-from .models.infrahub_resource_object_response import InfrahubResourceObjectResponse
from .models.infrahub_resource_object_response_for_customer import InfrahubResourceObjectResponseForCustomer
-from .models.insert_discount_plan_fields import InsertDiscountPlanFields
from .models.instance import Instance
from .models.instance_environment_fields import InstanceEnvironmentFields
from .models.instance_events import InstanceEvents
@@ -250,56 +216,42 @@
from .models.instance_overview_fields import InstanceOverviewFields
from .models.instance_resize_payload import InstanceResizePayload
from .models.instances import Instances
-from .models.instances_summary_fields import InstancesSummaryFields
-from .models.internal_environment_fields import InternalEnvironmentFields
-from .models.internal_instance_fields import InternalInstanceFields
-from .models.internal_instance_flavor_fields import InternalInstanceFlavorFields
-from .models.internal_instance_image_fields import InternalInstanceImageFields
-from .models.internal_instance_keypair_fields import InternalInstanceKeypairFields
-from .models.internal_instances_response import InternalInstancesResponse
-from .models.internal_security_rules_fields_for_instance import InternalSecurityRulesFieldsForInstance
-from .models.internal_volume_attachment_fields import InternalVolumeAttachmentFields
-from .models.internal_volume_fields import InternalVolumeFields
-from .models.internal_volumes_response import InternalVolumesResponse
from .models.invite_fields import InviteFields
from .models.invite_user_payload import InviteUserPayload
from .models.invite_user_response_model import InviteUserResponseModel
+from .models.keypair_environment_features import KeypairEnvironmentFeatures
+from .models.keypair_environment_fields import KeypairEnvironmentFields
from .models.keypair_fields import KeypairFields
from .models.keypairs import Keypairs
from .models.lable_resonse import LableResonse
-from .models.lastdaycostfields import Lastdaycostfields
-from .models.lastdaycostresponse import Lastdaycostresponse
-from .models.logo_get_response import LogoGetResponse
-from .models.logout_payload import LogoutPayload
+from .models.last_day_cost_fields import LastDayCostFields
+from .models.last_day_cost_response import LastDayCostResponse
+from .models.logos import Logos
+from .models.mfa_status_fields import MFAStatusFields
+from .models.mfa_status_response import MFAStatusResponse
+from .models.master_flavors_response import MasterFlavorsResponse
from .models.metric_item_fields import MetricItemFields
from .models.metrics_fields import MetricsFields
+from .models.model_evaluation_billing_history_details_response_schema import ModelEvaluationBillingHistoryDetailsResponseSchema
from .models.name_available_model import NameAvailableModel
from .models.new_configurations_response import NewConfigurationsResponse
from .models.new_model_response import NewModelResponse
from .models.new_stock_response import NewStockResponse
from .models.new_stock_retrive_response import NewStockRetriveResponse
-from .models.new_stock_update_response_model import NewStockUpdateResponseModel
-from .models.node_model import NodeModel
-from .models.node_payload_model import NodePayloadModel
-from .models.node_power_usage_model import NodePowerUsageModel
-from .models.node_response_model import NodeResponseModel
-from .models.node_stock_payload_model import NodeStockPayloadModel
-from .models.node_stock_response_model import NodeStockResponseModel
-from .models.node_stocks_payload import NodeStocksPayload
from .models.organization_fields import OrganizationFields
from .models.organization_level_billing_history import OrganizationLevelBillingHistory
from .models.organization_level_billing_history_resources import OrganizationLevelBillingHistoryResources
from .models.organization_level_billing_history_response_attributes import OrganizationLevelBillingHistoryResponseAttributes
from .models.organization_level_billing_history_response_metrics import OrganizationLevelBillingHistoryResponseMetrics
from .models.organization_level_billing_history_response_model import OrganizationLevelBillingHistoryResponseModel
-from .models.organization_object_response import OrganizationObjectResponse
-from .models.organization_thresholdfields import OrganizationThresholdfields
+from .models.organization_threshold_fields import OrganizationThresholdFields
+from .models.organization_threshold_update_response import OrganizationThresholdUpdateResponse
+from .models.organization_thresholds_response import OrganizationThresholdsResponse
from .models.organization_user_response_model import OrganizationUserResponseModel
-from .models.organizationcreditrechargelimitresponse import Organizationcreditrechargelimitresponse
-from .models.organizationthresholdsresponse import Organizationthresholdsresponse
-from .models.organizationthresholdupdateresponse import Organizationthresholdupdateresponse
from .models.overview_info import OverviewInfo
+from .models.pagination import Pagination
from .models.pagination_data import PaginationData
+from .models.partner_config import PartnerConfig
from .models.payment_details_fields import PaymentDetailsFields
from .models.payment_details_response import PaymentDetailsResponse
from .models.payment_initiate_fields import PaymentInitiateFields
@@ -308,10 +260,9 @@
from .models.permission_fields import PermissionFields
from .models.policy_fields import PolicyFields
from .models.policy_permission_fields import PolicyPermissionFields
-from .models.power_usage_model import PowerUsageModel
from .models.pricebook_model import PricebookModel
-from .models.pricebook_resource_object_response import PricebookResourceObjectResponse
from .models.pricebook_resource_object_response_for_customer import PricebookResourceObjectResponseForCustomer
+from .models.primary_color import PrimaryColor
from .models.profile_fields import ProfileFields
from .models.profile_list_response import ProfileListResponse
from .models.profile_object_fields import ProfileObjectFields
@@ -319,17 +270,17 @@
from .models.rbac_role_detail_response_model_fixed import RbacRoleDetailResponseModelFixed
from .models.rbac_role_field import RbacRoleField
from .models.rbac_role_fields import RbacRoleFields
-from .models.refresh_token_payload import RefreshTokenPayload
from .models.region_fields import RegionFields
-from .models.region_payload import RegionPayload
-from .models.region_response import RegionResponse
from .models.regions import Regions
from .models.remove_member_from_organization_response_model import RemoveMemberFromOrganizationResponseModel
from .models.remove_member_payload import RemoveMemberPayload
from .models.request_console import RequestConsole
+from .models.request_instance_logs_payload import RequestInstanceLogsPayload
+from .models.request_instance_logs_response import RequestInstanceLogsResponse
from .models.resource_billing_events_history_metrics import ResourceBillingEventsHistoryMetrics
from .models.resource_billing_events_history_response import ResourceBillingEventsHistoryResponse
from .models.resource_billing_response_for_customer import ResourceBillingResponseForCustomer
+from .models.resource_level_billing_bucket_details_resources import ResourceLevelBillingBucketDetailsResources
from .models.resource_level_billing_details_attributes import ResourceLevelBillingDetailsAttributes
from .models.resource_level_billing_details_metrics import ResourceLevelBillingDetailsMetrics
from .models.resource_level_billing_details_vm import ResourceLevelBillingDetailsVM
@@ -338,12 +289,19 @@
from .models.resource_level_billing_details_volume_metrics import ResourceLevelBillingDetailsVolumeMetrics
from .models.resource_level_billing_history import ResourceLevelBillingHistory
from .models.resource_level_billing_history_resources import ResourceLevelBillingHistoryResources
+from .models.resource_level_billing_history_resources_cluster import ResourceLevelBillingHistoryResourcesCluster
from .models.resource_level_billing_history_response_attributes import ResourceLevelBillingHistoryResponseAttributes
from .models.resource_level_billing_history_response_metrics import ResourceLevelBillingHistoryResponseMetrics
from .models.resource_level_billing_vm_details_resources import ResourceLevelBillingVMDetailsResources
from .models.resource_level_billing_volume_details_resources import ResourceLevelBillingVolumeDetailsResources
+from .models.resource_level_bucket_billing_details_response_model import ResourceLevelBucketBillingDetailsResponseModel
+from .models.resource_level_bucket_billing_history_response_model import ResourceLevelBucketBillingHistoryResponseModel
+from .models.resource_level_cluster_billing_details_response_model import ResourceLevelClusterBillingDetailsResponseModel
+from .models.resource_level_cluster_billing_history_response_model import ResourceLevelClusterBillingHistoryResponseModel
+from .models.resource_level_cluster_graph_billing_details_response_model import ResourceLevelClusterGraphBillingDetailsResponseModel
from .models.resource_level_graph_billing_detail_volume import ResourceLevelGraphBillingDetailVolume
from .models.resource_level_graph_billing_details_attributes import ResourceLevelGraphBillingDetailsAttributes
+from .models.resource_level_graph_billing_details_bucket import ResourceLevelGraphBillingDetailsBucket
from .models.resource_level_graph_billing_details_metrics import ResourceLevelGraphBillingDetailsMetrics
from .models.resource_level_graph_billing_details_vm import ResourceLevelGraphBillingDetailsVM
from .models.resource_level_graph_billing_vm_details_resources import ResourceLevelGraphBillingVMDetailsResources
@@ -358,12 +316,12 @@
from .models.response_model import ResponseModel
from .models.role_permission_fields import RolePermissionFields
from .models.role_policy_fields import RolePolicyFields
+from .models.secondary_color import SecondaryColor
from .models.security_group_rule import SecurityGroupRule
from .models.security_group_rule_fields import SecurityGroupRuleFields
-from .models.security_rules_fieldsfor_instance import SecurityRulesFieldsforInstance
+from .models.security_rules_fields_for_instance import SecurityRulesFieldsForInstance
from .models.security_rules_protocol_fields import SecurityRulesProtocolFields
-from .models.set_defaults_payload import SetDefaultsPayload
-from .models.single_visibility_user_response import SingleVisibilityUserResponse
+from .models.serverless_inferenced_billing_history_details_response_schema import ServerlessInferencedBillingHistoryDetailsResponseSchema
from .models.snapshot_fields import SnapshotFields
from .models.snapshot_restore_request import SnapshotRestoreRequest
from .models.snapshot_retrieve import SnapshotRetrieve
@@ -371,50 +329,40 @@
from .models.snapshots import Snapshots
from .models.start_deployment import StartDeployment
from .models.start_deployment_payload import StartDeploymentPayload
-from .models.stock_visibility_user_list_response import StockVisibilityUserListResponse
-from .models.stock_visibility_user_payload import StockVisibilityUserPayload
from .models.sub_resource_graph_billing_details_metrics import SubResourceGraphBillingDetailsMetrics
from .models.sub_resources_costs_response_model import SubResourcesCostsResponseModel
from .models.sub_resources_graph_billing_history_fields import SubResourcesGraphBillingHistoryFields
from .models.sub_resources_graph_response_model import SubResourcesGraphResponseModel
-from .models.subscribeorunsubscribeupdatepayload import Subscribeorunsubscribeupdatepayload
-from .models.success_response_model import SuccessResponseModel
+from .models.subscribe_or_unsubscribe_update_payload import SubscribeOrUnsubscribeUpdatePayload
from .models.template import Template
from .models.template_fields import TemplateFields
from .models.templates import Templates
-from .models.token_fields import TokenFields
-from .models.update_contract_payload import UpdateContractPayload
-from .models.update_discounts_payload import UpdateDiscountsPayload
-from .models.update_discounts_status_payload import UpdateDiscountsStatusPayload
+from .models.token_based_billing_history_response import TokenBasedBillingHistoryResponse
+from .models.uris import URIs
from .models.update_environment import UpdateEnvironment
-from .models.update_gpu import UpdateGPU
from .models.update_keypair_name import UpdateKeypairName
-from .models.update_keypairnameresponse import UpdateKeypairnameresponse
+from .models.update_keypair_name_response import UpdateKeypairNameResponse
from .models.update_organization_payload import UpdateOrganizationPayload
from .models.update_organization_response_model import UpdateOrganizationResponseModel
from .models.update_template import UpdateTemplate
+from .models.update_volume_attachment_payload import UpdateVolumeAttachmentPayload
+from .models.update_volume_payload import UpdateVolumePayload
+from .models.update_volume_response import UpdateVolumeResponse
from .models.user_default_choice_for_user_fields import UserDefaultChoiceForUserFields
from .models.user_default_choices_for_user_response import UserDefaultChoicesForUserResponse
+from .models.user_info_post_payload import UserInfoPostPayload
+from .models.user_organizations_response import UserOrganizationsResponse
from .models.user_permission_fields import UserPermissionFields
-from .models.user_transfer_payload import UserTransferPayload
-from .models.userinfopostpayload import Userinfopostpayload
from .models.users_info_fields import UsersInfoFields
from .models.users_info_list_response import UsersInfoListResponse
-from .models.vm_usage_request_payload import VMUsageRequestPayload
-from .models.vm_usage_response import VMUsageResponse
from .models.vncurl import VNCURL
from .models.vncurl_fields import VNCURLFields
-from .models.verify_api_key_payload import VerifyApiKeyPayload
-from .models.verify_api_key_response_model import VerifyApiKeyResponseModel
-from .models.virtual_machine_usage import VirtualMachineUsage
from .models.volume import Volume
from .models.volume_attachment_fields import VolumeAttachmentFields
from .models.volume_fields import VolumeFields
-from .models.volume_fieldsfor_instance import VolumeFieldsforInstance
+from .models.volume_fields_for_instance import VolumeFieldsForInstance
from .models.volume_overview_fields import VolumeOverviewFields
-from .models.volume_status_change_fields import VolumeStatusChangeFields
from .models.volume_types import VolumeTypes
from .models.volumes import Volumes
-from .models.volumes_last_status_change_response import VolumesLastStatusChangeResponse
-from .models.warning_mail_log_fields import WarningMailLogFields
-from .models.warning_mail_log_response import WarningMailLogResponse
+from .models.volumes_fields import VolumesFields
+from .models.workload_billing_history_response import WorkloadBillingHistoryResponse
diff --git a/hyperstack/__init__.py.bak b/hyperstack/__init__.py.bak
index 1887eab..52eb8dc 100644
--- a/hyperstack/__init__.py.bak
+++ b/hyperstack/__init__.py.bak
@@ -14,7 +14,7 @@
""" # noqa: E501
-__version__ = "v1.25.0-alpha"
+__version__ = "v1.41.0-alpha"
# import apis into sdk package
from hyperstack.api.calculate_api import CalculateApi
@@ -25,6 +25,7 @@ from hyperstack.api.alive_api import AliveApi
from hyperstack.api.api_key_api import ApiKeyApi
from hyperstack.api.assigning_member_role_api import AssigningMemberRoleApi
from hyperstack.api.auth_api import AuthApi
+from hyperstack.api.beta_access_api import BetaAccessApi
from hyperstack.api.billing_api import BillingApi
from hyperstack.api.callbacks_api import CallbacksApi
from hyperstack.api.cluster_events_api import ClusterEventsApi
@@ -43,6 +44,7 @@ from hyperstack.api.image_api import ImageApi
from hyperstack.api.invite_api import InviteApi
from hyperstack.api.keypair_api import KeypairApi
from hyperstack.api.organization_api import OrganizationApi
+from hyperstack.api.partner_config_api import PartnerConfigApi
from hyperstack.api.payment_api import PaymentApi
from hyperstack.api.permission_api import PermissionApi
from hyperstack.api.policy_api import PolicyApi
@@ -74,11 +76,10 @@ from hyperstack.exceptions import ApiAttributeError
from hyperstack.exceptions import ApiException
# import models into sdk package
-from hyperstack.models.add_update_flavor_organization_payload import AddUpdateFlavorOrganizationPayload
+from hyperstack.models.access_token_field import AccessTokenField
from hyperstack.models.add_user_info_success_response_model import AddUserInfoSuccessResponseModel
from hyperstack.models.allocated_gpu_count_graph import AllocatedGPUCountGraph
from hyperstack.models.api_key_fields import ApiKeyFields
-from hyperstack.models.api_key_verify_fields import ApiKeyVerifyFields
from hyperstack.models.assign_rbac_role_payload import AssignRbacRolePayload
from hyperstack.models.attach_callback_payload import AttachCallbackPayload
from hyperstack.models.attach_callback_response import AttachCallbackResponse
@@ -87,21 +88,40 @@ from hyperstack.models.attach_firewalls_to_vm_payload import AttachFirewallsToVM
from hyperstack.models.attach_volume_fields import AttachVolumeFields
from hyperstack.models.attach_volumes import AttachVolumes
from hyperstack.models.attach_volumes_payload import AttachVolumesPayload
+from hyperstack.models.attachments_fields_for_volume import AttachmentsFieldsForVolume
+from hyperstack.models.attributes import Attributes
from hyperstack.models.auth_get_token_response_model import AuthGetTokenResponseModel
-from hyperstack.models.auth_request_login_fields import AuthRequestLoginFields
-from hyperstack.models.auth_request_login_response_model import AuthRequestLoginResponseModel
from hyperstack.models.auth_user_fields import AuthUserFields
from hyperstack.models.auth_user_info_response_model import AuthUserInfoResponseModel
-from hyperstack.models.billing_immune_resources_response import BillingImmuneResourcesResponse
-from hyperstack.models.billing_response import BillingResponse
-from hyperstack.models.billingmetricesfields import Billingmetricesfields
-from hyperstack.models.billingmetricesresponse import Billingmetricesresponse
+from hyperstack.models.beta_access_request_fields import BetaAccessRequestFields
+from hyperstack.models.beta_access_request_payload import BetaAccessRequestPayload
+from hyperstack.models.beta_access_request_response_model import BetaAccessRequestResponseModel
+from hyperstack.models.beta_access_status_item import BetaAccessStatusItem
+from hyperstack.models.beta_access_status_response_model import BetaAccessStatusResponseModel
+from hyperstack.models.billing_history import BillingHistory
+from hyperstack.models.billing_history_data_synthesis_details import BillingHistoryDataSynthesisDetails
+from hyperstack.models.billing_history_fine_tuning import BillingHistoryFineTuning
+from hyperstack.models.billing_history_model_evalutation_details import BillingHistoryModelEvalutationDetails
+from hyperstack.models.billing_history_serverless_inference import BillingHistoryServerlessInference
+from hyperstack.models.billing_history_serverless_inference_details import BillingHistoryServerlessInferenceDetails
+from hyperstack.models.billing_metrices_fields import BillingMetricesFields
+from hyperstack.models.billing_metrices_response import BillingMetricesResponse
from hyperstack.models.cluster_events import ClusterEvents
from hyperstack.models.cluster_events_fields import ClusterEventsFields
from hyperstack.models.cluster_fields import ClusterFields
+from hyperstack.models.cluster_flavor_fields import ClusterFlavorFields
from hyperstack.models.cluster_list_response import ClusterListResponse
+from hyperstack.models.cluster_node_fields import ClusterNodeFields
+from hyperstack.models.cluster_node_group_fields import ClusterNodeGroupFields
+from hyperstack.models.cluster_node_groups_create_response import ClusterNodeGroupsCreateResponse
+from hyperstack.models.cluster_node_groups_get_response import ClusterNodeGroupsGetResponse
+from hyperstack.models.cluster_node_groups_list_response import ClusterNodeGroupsListResponse
+from hyperstack.models.cluster_node_instance_fields import ClusterNodeInstanceFields
+from hyperstack.models.cluster_nodes_list_response import ClusterNodesListResponse
from hyperstack.models.cluster_response import ClusterResponse
+from hyperstack.models.cluster_version import ClusterVersion
from hyperstack.models.cluster_versions import ClusterVersions
+from hyperstack.models.colors import Colors
from hyperstack.models.common_response_model import CommonResponseModel
from hyperstack.models.compliance_fields import ComplianceFields
from hyperstack.models.compliance_model_fields import ComplianceModelFields
@@ -109,28 +129,16 @@ from hyperstack.models.compliance_payload import CompliancePayload
from hyperstack.models.compliance_response import ComplianceResponse
from hyperstack.models.container_overview_fields import ContainerOverviewFields
from hyperstack.models.contract import Contract
-from hyperstack.models.contract_billing_history import ContractBillingHistory
-from hyperstack.models.contract_billing_history_response_attributes import ContractBillingHistoryResponseAttributes
-from hyperstack.models.contract_billing_history_response_model import ContractBillingHistoryResponseModel
-from hyperstack.models.contract_change_payload import ContractChangePayload
from hyperstack.models.contract_discount_plan_fields import ContractDiscountPlanFields
-from hyperstack.models.contract_eligible_instance_fields import ContractEligibleInstanceFields
-from hyperstack.models.contract_eligible_instances_response import ContractEligibleInstancesResponse
-from hyperstack.models.contract_event_create_model import ContractEventCreateModel
from hyperstack.models.contract_gpu_allocation_graph_response import ContractGPUAllocationGraphResponse
from hyperstack.models.contract_instance_fields import ContractInstanceFields
from hyperstack.models.contract_instances_response import ContractInstancesResponse
-from hyperstack.models.contract_resource_payload import ContractResourcePayload
-from hyperstack.models.contractl_billing_history_response_metrics import ContractlBillingHistoryResponseMetrics
+from hyperstack.models.create_cluster_node_fields import CreateClusterNodeFields
+from hyperstack.models.create_cluster_node_group_payload import CreateClusterNodeGroupPayload
from hyperstack.models.create_cluster_payload import CreateClusterPayload
-from hyperstack.models.create_contract_fields import CreateContractFields
-from hyperstack.models.create_contract_payload import CreateContractPayload
-from hyperstack.models.create_discount_response import CreateDiscountResponse
-from hyperstack.models.create_discounts_payload import CreateDiscountsPayload
from hyperstack.models.create_environment import CreateEnvironment
from hyperstack.models.create_firewall_payload import CreateFirewallPayload
from hyperstack.models.create_firewall_rule_payload import CreateFirewallRulePayload
-from hyperstack.models.create_gpu import CreateGPU
from hyperstack.models.create_image import CreateImage
from hyperstack.models.create_image_payload import CreateImagePayload
from hyperstack.models.create_instances_payload import CreateInstancesPayload
@@ -141,44 +149,24 @@ from hyperstack.models.create_security_rule_payload import CreateSecurityRulePay
from hyperstack.models.create_snapshot_payload import CreateSnapshotPayload
from hyperstack.models.create_snapshot_response import CreateSnapshotResponse
from hyperstack.models.create_update_compliance_response import CreateUpdateComplianceResponse
-from hyperstack.models.create_update_permission_payload import CreateUpdatePermissionPayload
-from hyperstack.models.create_update_permission_response_model import CreateUpdatePermissionResponseModel
-from hyperstack.models.create_update_policy_payload import CreateUpdatePolicyPayload
-from hyperstack.models.create_update_policy_response_model import CreateUpdatePolicyResponseModel
from hyperstack.models.create_update_rbac_role_payload import CreateUpdateRbacRolePayload
from hyperstack.models.create_volume_payload import CreateVolumePayload
-from hyperstack.models.creditrechargelimitfield import Creditrechargelimitfield
-from hyperstack.models.creditrechargelimitresponse import Creditrechargelimitresponse
-from hyperstack.models.creditrequestresponse import Creditrequestresponse
-from hyperstack.models.creditrequests import Creditrequests
from hyperstack.models.customer_contract_detail_response_model import CustomerContractDetailResponseModel
from hyperstack.models.customer_contract_fields import CustomerContractFields
-from hyperstack.models.customer_fields import CustomerFields
-from hyperstack.models.customer_payload import CustomerPayload
from hyperstack.models.dashboard_info_response import DashboardInfoResponse
-from hyperstack.models.data import Data
+from hyperstack.models.data_synthesis_billing_history_details_response_schema import DataSynthesisBillingHistoryDetailsResponseSchema
from hyperstack.models.deployment_fields import DeploymentFields
-from hyperstack.models.deployment_fieldsforstartdeployments import DeploymentFieldsforstartdeployments
+from hyperstack.models.deployment_fields_for_start_deployments import DeploymentFieldsForStartDeployments
from hyperstack.models.deployments import Deployments
from hyperstack.models.detach_volumes import DetachVolumes
from hyperstack.models.detach_volumes_payload import DetachVolumesPayload
-from hyperstack.models.discount_entity_model import DiscountEntityModel
-from hyperstack.models.discount_fields import DiscountFields
-from hyperstack.models.discount_plan_fields import DiscountPlanFields
-from hyperstack.models.discount_resource_fields import DiscountResourceFields
-from hyperstack.models.discount_resource_payload import DiscountResourcePayload
-from hyperstack.models.editlabelofanexisting_vm_payload import EditlabelofanexistingVMPayload
+from hyperstack.models.edit_label_of_an_existing_vm_payload import EditLabelOfAnExistingVMPayload
from hyperstack.models.environment import Environment
from hyperstack.models.environment_features import EnvironmentFeatures
from hyperstack.models.environment_fields import EnvironmentFields
-from hyperstack.models.environment_fieldsfor_volume import EnvironmentFieldsforVolume
+from hyperstack.models.environment_fields_for_volume import EnvironmentFieldsForVolume
from hyperstack.models.environments import Environments
from hyperstack.models.error_response_model import ErrorResponseModel
-from hyperstack.models.exclude_billing_post_payload import ExcludeBillingPostPayload
-from hyperstack.models.exclude_billing_post_response import ExcludeBillingPostResponse
-from hyperstack.models.export_billing_data_request import ExportBillingDataRequest
-from hyperstack.models.export_billing_data_response import ExportBillingDataResponse
-from hyperstack.models.field_change import FieldChange
from hyperstack.models.firewall_attachment_model import FirewallAttachmentModel
from hyperstack.models.firewall_attachment_vm_model import FirewallAttachmentVMModel
from hyperstack.models.firewall_detail_fields import FirewallDetailFields
@@ -190,55 +178,33 @@ from hyperstack.models.firewall_rule import FirewallRule
from hyperstack.models.firewalls_list_response import FirewallsListResponse
from hyperstack.models.flavor_fields import FlavorFields
from hyperstack.models.flavor_item_get_response import FlavorItemGetResponse
+from hyperstack.models.flavor_label_fields import FlavorLabelFields
from hyperstack.models.flavor_list_response import FlavorListResponse
from hyperstack.models.flavor_object_fields import FlavorObjectFields
-from hyperstack.models.flavor_payload import FlavorPayload
-from hyperstack.models.flavor_response import FlavorResponse
-from hyperstack.models.flavor_vm_fields import FlavorVMFields
-from hyperstack.models.flavor_vms_response import FlavorVMsResponse
-from hyperstack.models.future_node_model import FutureNodeModel
-from hyperstack.models.future_node_response_model import FutureNodeResponseModel
-from hyperstack.models.future_node_stock_model import FutureNodeStockModel
-from hyperstack.models.future_node_update_model import FutureNodeUpdateModel
-from hyperstack.models.future_nodes_stock_model import FutureNodesStockModel
-from hyperstack.models.gpu import GPU
from hyperstack.models.gpu_fields import GPUFields
from hyperstack.models.gpu_list import GPUList
from hyperstack.models.gpu_region_fields import GPURegionFields
from hyperstack.models.generate_update_api_key_payload import GenerateUpdateApiKeyPayload
from hyperstack.models.generate_update_api_key_response_model import GenerateUpdateApiKeyResponseModel
-from hyperstack.models.get_all_contract_fields import GetAllContractFields
-from hyperstack.models.get_all_contracts_response_model import GetAllContractsResponseModel
-from hyperstack.models.get_all_discount_for_all_organization_response import GetAllDiscountForAllOrganizationResponse
-from hyperstack.models.get_all_discounts_fields import GetAllDiscountsFields
from hyperstack.models.get_api_keys_response_model import GetApiKeysResponseModel
+from hyperstack.models.get_credit_and_threshold_info import GetCreditAndThresholdInfo
+from hyperstack.models.get_credit_and_threshold_info_in_response import GetCreditAndThresholdInfoInResponse
from hyperstack.models.get_customer_contracts_list_response_model import GetCustomerContractsListResponseModel
-from hyperstack.models.get_discount_detail_response import GetDiscountDetailResponse
-from hyperstack.models.get_discount_response import GetDiscountResponse
-from hyperstack.models.get_entity_discount_detail_response import GetEntityDiscountDetailResponse
+from hyperstack.models.get_instance_logs_response import GetInstanceLogsResponse
from hyperstack.models.get_invites_response_model import GetInvitesResponseModel
from hyperstack.models.get_organization_response_model import GetOrganizationResponseModel
from hyperstack.models.get_permissions_response_model import GetPermissionsResponseModel
from hyperstack.models.get_policies_response_model import GetPoliciesResponseModel
from hyperstack.models.get_rbac_roles_response_model import GetRbacRolesResponseModel
-from hyperstack.models.get_token_payload import GetTokenPayload
from hyperstack.models.get_user_permissions_response_model import GetUserPermissionsResponseModel
-from hyperstack.models.get_version_response import GetVersionResponse
-from hyperstack.models.getcreditandthresholdinfo import Getcreditandthresholdinfo
-from hyperstack.models.getcreditandthresholdinfoinresponse import Getcreditandthresholdinfoinresponse
from hyperstack.models.graph_datetime_value_model import GraphDatetimeValueModel
-from hyperstack.models.historical_instance import HistoricalInstance
-from hyperstack.models.historical_instances_fields import HistoricalInstancesFields
from hyperstack.models.image import Image
from hyperstack.models.image_fields import ImageFields
from hyperstack.models.image_get_response import ImageGetResponse
-from hyperstack.models.image_logos import ImageLogos
from hyperstack.models.images import Images
from hyperstack.models.import_keypair_payload import ImportKeypairPayload
from hyperstack.models.import_keypair_response import ImportKeypairResponse
-from hyperstack.models.infrahub_resource_object_response import InfrahubResourceObjectResponse
from hyperstack.models.infrahub_resource_object_response_for_customer import InfrahubResourceObjectResponseForCustomer
-from hyperstack.models.insert_discount_plan_fields import InsertDiscountPlanFields
from hyperstack.models.instance import Instance
from hyperstack.models.instance_environment_fields import InstanceEnvironmentFields
from hyperstack.models.instance_events import InstanceEvents
@@ -250,56 +216,42 @@ from hyperstack.models.instance_keypair_fields import InstanceKeypairFields
from hyperstack.models.instance_overview_fields import InstanceOverviewFields
from hyperstack.models.instance_resize_payload import InstanceResizePayload
from hyperstack.models.instances import Instances
-from hyperstack.models.instances_summary_fields import InstancesSummaryFields
-from hyperstack.models.internal_environment_fields import InternalEnvironmentFields
-from hyperstack.models.internal_instance_fields import InternalInstanceFields
-from hyperstack.models.internal_instance_flavor_fields import InternalInstanceFlavorFields
-from hyperstack.models.internal_instance_image_fields import InternalInstanceImageFields
-from hyperstack.models.internal_instance_keypair_fields import InternalInstanceKeypairFields
-from hyperstack.models.internal_instances_response import InternalInstancesResponse
-from hyperstack.models.internal_security_rules_fields_for_instance import InternalSecurityRulesFieldsForInstance
-from hyperstack.models.internal_volume_attachment_fields import InternalVolumeAttachmentFields
-from hyperstack.models.internal_volume_fields import InternalVolumeFields
-from hyperstack.models.internal_volumes_response import InternalVolumesResponse
from hyperstack.models.invite_fields import InviteFields
from hyperstack.models.invite_user_payload import InviteUserPayload
from hyperstack.models.invite_user_response_model import InviteUserResponseModel
+from hyperstack.models.keypair_environment_features import KeypairEnvironmentFeatures
+from hyperstack.models.keypair_environment_fields import KeypairEnvironmentFields
from hyperstack.models.keypair_fields import KeypairFields
from hyperstack.models.keypairs import Keypairs
from hyperstack.models.lable_resonse import LableResonse
-from hyperstack.models.lastdaycostfields import Lastdaycostfields
-from hyperstack.models.lastdaycostresponse import Lastdaycostresponse
-from hyperstack.models.logo_get_response import LogoGetResponse
-from hyperstack.models.logout_payload import LogoutPayload
+from hyperstack.models.last_day_cost_fields import LastDayCostFields
+from hyperstack.models.last_day_cost_response import LastDayCostResponse
+from hyperstack.models.logos import Logos
+from hyperstack.models.mfa_status_fields import MFAStatusFields
+from hyperstack.models.mfa_status_response import MFAStatusResponse
+from hyperstack.models.master_flavors_response import MasterFlavorsResponse
from hyperstack.models.metric_item_fields import MetricItemFields
from hyperstack.models.metrics_fields import MetricsFields
+from hyperstack.models.model_evaluation_billing_history_details_response_schema import ModelEvaluationBillingHistoryDetailsResponseSchema
from hyperstack.models.name_available_model import NameAvailableModel
from hyperstack.models.new_configurations_response import NewConfigurationsResponse
from hyperstack.models.new_model_response import NewModelResponse
from hyperstack.models.new_stock_response import NewStockResponse
from hyperstack.models.new_stock_retrive_response import NewStockRetriveResponse
-from hyperstack.models.new_stock_update_response_model import NewStockUpdateResponseModel
-from hyperstack.models.node_model import NodeModel
-from hyperstack.models.node_payload_model import NodePayloadModel
-from hyperstack.models.node_power_usage_model import NodePowerUsageModel
-from hyperstack.models.node_response_model import NodeResponseModel
-from hyperstack.models.node_stock_payload_model import NodeStockPayloadModel
-from hyperstack.models.node_stock_response_model import NodeStockResponseModel
-from hyperstack.models.node_stocks_payload import NodeStocksPayload
from hyperstack.models.organization_fields import OrganizationFields
from hyperstack.models.organization_level_billing_history import OrganizationLevelBillingHistory
from hyperstack.models.organization_level_billing_history_resources import OrganizationLevelBillingHistoryResources
from hyperstack.models.organization_level_billing_history_response_attributes import OrganizationLevelBillingHistoryResponseAttributes
from hyperstack.models.organization_level_billing_history_response_metrics import OrganizationLevelBillingHistoryResponseMetrics
from hyperstack.models.organization_level_billing_history_response_model import OrganizationLevelBillingHistoryResponseModel
-from hyperstack.models.organization_object_response import OrganizationObjectResponse
-from hyperstack.models.organization_thresholdfields import OrganizationThresholdfields
+from hyperstack.models.organization_threshold_fields import OrganizationThresholdFields
+from hyperstack.models.organization_threshold_update_response import OrganizationThresholdUpdateResponse
+from hyperstack.models.organization_thresholds_response import OrganizationThresholdsResponse
from hyperstack.models.organization_user_response_model import OrganizationUserResponseModel
-from hyperstack.models.organizationcreditrechargelimitresponse import Organizationcreditrechargelimitresponse
-from hyperstack.models.organizationthresholdsresponse import Organizationthresholdsresponse
-from hyperstack.models.organizationthresholdupdateresponse import Organizationthresholdupdateresponse
from hyperstack.models.overview_info import OverviewInfo
+from hyperstack.models.pagination import Pagination
from hyperstack.models.pagination_data import PaginationData
+from hyperstack.models.partner_config import PartnerConfig
from hyperstack.models.payment_details_fields import PaymentDetailsFields
from hyperstack.models.payment_details_response import PaymentDetailsResponse
from hyperstack.models.payment_initiate_fields import PaymentInitiateFields
@@ -308,10 +260,9 @@ from hyperstack.models.payment_initiate_response import PaymentInitiateResponse
from hyperstack.models.permission_fields import PermissionFields
from hyperstack.models.policy_fields import PolicyFields
from hyperstack.models.policy_permission_fields import PolicyPermissionFields
-from hyperstack.models.power_usage_model import PowerUsageModel
from hyperstack.models.pricebook_model import PricebookModel
-from hyperstack.models.pricebook_resource_object_response import PricebookResourceObjectResponse
from hyperstack.models.pricebook_resource_object_response_for_customer import PricebookResourceObjectResponseForCustomer
+from hyperstack.models.primary_color import PrimaryColor
from hyperstack.models.profile_fields import ProfileFields
from hyperstack.models.profile_list_response import ProfileListResponse
from hyperstack.models.profile_object_fields import ProfileObjectFields
@@ -319,17 +270,17 @@ from hyperstack.models.rbac_role_detail_response_model import RbacRoleDetailResp
from hyperstack.models.rbac_role_detail_response_model_fixed import RbacRoleDetailResponseModelFixed
from hyperstack.models.rbac_role_field import RbacRoleField
from hyperstack.models.rbac_role_fields import RbacRoleFields
-from hyperstack.models.refresh_token_payload import RefreshTokenPayload
from hyperstack.models.region_fields import RegionFields
-from hyperstack.models.region_payload import RegionPayload
-from hyperstack.models.region_response import RegionResponse
from hyperstack.models.regions import Regions
from hyperstack.models.remove_member_from_organization_response_model import RemoveMemberFromOrganizationResponseModel
from hyperstack.models.remove_member_payload import RemoveMemberPayload
from hyperstack.models.request_console import RequestConsole
+from hyperstack.models.request_instance_logs_payload import RequestInstanceLogsPayload
+from hyperstack.models.request_instance_logs_response import RequestInstanceLogsResponse
from hyperstack.models.resource_billing_events_history_metrics import ResourceBillingEventsHistoryMetrics
from hyperstack.models.resource_billing_events_history_response import ResourceBillingEventsHistoryResponse
from hyperstack.models.resource_billing_response_for_customer import ResourceBillingResponseForCustomer
+from hyperstack.models.resource_level_billing_bucket_details_resources import ResourceLevelBillingBucketDetailsResources
from hyperstack.models.resource_level_billing_details_attributes import ResourceLevelBillingDetailsAttributes
from hyperstack.models.resource_level_billing_details_metrics import ResourceLevelBillingDetailsMetrics
from hyperstack.models.resource_level_billing_details_vm import ResourceLevelBillingDetailsVM
@@ -338,12 +289,19 @@ from hyperstack.models.resource_level_billing_details_volume_attributes import R
from hyperstack.models.resource_level_billing_details_volume_metrics import ResourceLevelBillingDetailsVolumeMetrics
from hyperstack.models.resource_level_billing_history import ResourceLevelBillingHistory
from hyperstack.models.resource_level_billing_history_resources import ResourceLevelBillingHistoryResources
+from hyperstack.models.resource_level_billing_history_resources_cluster import ResourceLevelBillingHistoryResourcesCluster
from hyperstack.models.resource_level_billing_history_response_attributes import ResourceLevelBillingHistoryResponseAttributes
from hyperstack.models.resource_level_billing_history_response_metrics import ResourceLevelBillingHistoryResponseMetrics
from hyperstack.models.resource_level_billing_vm_details_resources import ResourceLevelBillingVMDetailsResources
from hyperstack.models.resource_level_billing_volume_details_resources import ResourceLevelBillingVolumeDetailsResources
+from hyperstack.models.resource_level_bucket_billing_details_response_model import ResourceLevelBucketBillingDetailsResponseModel
+from hyperstack.models.resource_level_bucket_billing_history_response_model import ResourceLevelBucketBillingHistoryResponseModel
+from hyperstack.models.resource_level_cluster_billing_details_response_model import ResourceLevelClusterBillingDetailsResponseModel
+from hyperstack.models.resource_level_cluster_billing_history_response_model import ResourceLevelClusterBillingHistoryResponseModel
+from hyperstack.models.resource_level_cluster_graph_billing_details_response_model import ResourceLevelClusterGraphBillingDetailsResponseModel
from hyperstack.models.resource_level_graph_billing_detail_volume import ResourceLevelGraphBillingDetailVolume
from hyperstack.models.resource_level_graph_billing_details_attributes import ResourceLevelGraphBillingDetailsAttributes
+from hyperstack.models.resource_level_graph_billing_details_bucket import ResourceLevelGraphBillingDetailsBucket
from hyperstack.models.resource_level_graph_billing_details_metrics import ResourceLevelGraphBillingDetailsMetrics
from hyperstack.models.resource_level_graph_billing_details_vm import ResourceLevelGraphBillingDetailsVM
from hyperstack.models.resource_level_graph_billing_vm_details_resources import ResourceLevelGraphBillingVMDetailsResources
@@ -358,12 +316,12 @@ from hyperstack.models.resource_object_response_for_customer import ResourceObje
from hyperstack.models.response_model import ResponseModel
from hyperstack.models.role_permission_fields import RolePermissionFields
from hyperstack.models.role_policy_fields import RolePolicyFields
+from hyperstack.models.secondary_color import SecondaryColor
from hyperstack.models.security_group_rule import SecurityGroupRule
from hyperstack.models.security_group_rule_fields import SecurityGroupRuleFields
-from hyperstack.models.security_rules_fieldsfor_instance import SecurityRulesFieldsforInstance
+from hyperstack.models.security_rules_fields_for_instance import SecurityRulesFieldsForInstance
from hyperstack.models.security_rules_protocol_fields import SecurityRulesProtocolFields
-from hyperstack.models.set_defaults_payload import SetDefaultsPayload
-from hyperstack.models.single_visibility_user_response import SingleVisibilityUserResponse
+from hyperstack.models.serverless_inferenced_billing_history_details_response_schema import ServerlessInferencedBillingHistoryDetailsResponseSchema
from hyperstack.models.snapshot_fields import SnapshotFields
from hyperstack.models.snapshot_restore_request import SnapshotRestoreRequest
from hyperstack.models.snapshot_retrieve import SnapshotRetrieve
@@ -371,50 +329,40 @@ from hyperstack.models.snapshot_retrieve_fields import SnapshotRetrieveFields
from hyperstack.models.snapshots import Snapshots
from hyperstack.models.start_deployment import StartDeployment
from hyperstack.models.start_deployment_payload import StartDeploymentPayload
-from hyperstack.models.stock_visibility_user_list_response import StockVisibilityUserListResponse
-from hyperstack.models.stock_visibility_user_payload import StockVisibilityUserPayload
from hyperstack.models.sub_resource_graph_billing_details_metrics import SubResourceGraphBillingDetailsMetrics
from hyperstack.models.sub_resources_costs_response_model import SubResourcesCostsResponseModel
from hyperstack.models.sub_resources_graph_billing_history_fields import SubResourcesGraphBillingHistoryFields
from hyperstack.models.sub_resources_graph_response_model import SubResourcesGraphResponseModel
-from hyperstack.models.subscribeorunsubscribeupdatepayload import Subscribeorunsubscribeupdatepayload
-from hyperstack.models.success_response_model import SuccessResponseModel
+from hyperstack.models.subscribe_or_unsubscribe_update_payload import SubscribeOrUnsubscribeUpdatePayload
from hyperstack.models.template import Template
from hyperstack.models.template_fields import TemplateFields
from hyperstack.models.templates import Templates
-from hyperstack.models.token_fields import TokenFields
-from hyperstack.models.update_contract_payload import UpdateContractPayload
-from hyperstack.models.update_discounts_payload import UpdateDiscountsPayload
-from hyperstack.models.update_discounts_status_payload import UpdateDiscountsStatusPayload
+from hyperstack.models.token_based_billing_history_response import TokenBasedBillingHistoryResponse
+from hyperstack.models.uris import URIs
from hyperstack.models.update_environment import UpdateEnvironment
-from hyperstack.models.update_gpu import UpdateGPU
from hyperstack.models.update_keypair_name import UpdateKeypairName
-from hyperstack.models.update_keypairnameresponse import UpdateKeypairnameresponse
+from hyperstack.models.update_keypair_name_response import UpdateKeypairNameResponse
from hyperstack.models.update_organization_payload import UpdateOrganizationPayload
from hyperstack.models.update_organization_response_model import UpdateOrganizationResponseModel
from hyperstack.models.update_template import UpdateTemplate
+from hyperstack.models.update_volume_attachment_payload import UpdateVolumeAttachmentPayload
+from hyperstack.models.update_volume_payload import UpdateVolumePayload
+from hyperstack.models.update_volume_response import UpdateVolumeResponse
from hyperstack.models.user_default_choice_for_user_fields import UserDefaultChoiceForUserFields
from hyperstack.models.user_default_choices_for_user_response import UserDefaultChoicesForUserResponse
+from hyperstack.models.user_info_post_payload import UserInfoPostPayload
+from hyperstack.models.user_organizations_response import UserOrganizationsResponse
from hyperstack.models.user_permission_fields import UserPermissionFields
-from hyperstack.models.user_transfer_payload import UserTransferPayload
-from hyperstack.models.userinfopostpayload import Userinfopostpayload
from hyperstack.models.users_info_fields import UsersInfoFields
from hyperstack.models.users_info_list_response import UsersInfoListResponse
-from hyperstack.models.vm_usage_request_payload import VMUsageRequestPayload
-from hyperstack.models.vm_usage_response import VMUsageResponse
from hyperstack.models.vncurl import VNCURL
from hyperstack.models.vncurl_fields import VNCURLFields
-from hyperstack.models.verify_api_key_payload import VerifyApiKeyPayload
-from hyperstack.models.verify_api_key_response_model import VerifyApiKeyResponseModel
-from hyperstack.models.virtual_machine_usage import VirtualMachineUsage
from hyperstack.models.volume import Volume
from hyperstack.models.volume_attachment_fields import VolumeAttachmentFields
from hyperstack.models.volume_fields import VolumeFields
-from hyperstack.models.volume_fieldsfor_instance import VolumeFieldsforInstance
+from hyperstack.models.volume_fields_for_instance import VolumeFieldsForInstance
from hyperstack.models.volume_overview_fields import VolumeOverviewFields
-from hyperstack.models.volume_status_change_fields import VolumeStatusChangeFields
from hyperstack.models.volume_types import VolumeTypes
from hyperstack.models.volumes import Volumes
-from hyperstack.models.volumes_last_status_change_response import VolumesLastStatusChangeResponse
-from hyperstack.models.warning_mail_log_fields import WarningMailLogFields
-from hyperstack.models.warning_mail_log_response import WarningMailLogResponse
+from hyperstack.models.volumes_fields import VolumesFields
+from hyperstack.models.workload_billing_history_response import WorkloadBillingHistoryResponse
diff --git a/hyperstack/api/__init__.py b/hyperstack/api/__init__.py
index 480e5cd..f8073ea 100644
--- a/hyperstack/api/__init__.py
+++ b/hyperstack/api/__init__.py
@@ -9,6 +9,7 @@
from .api_key_api import ApiKeyApi
from .assigning_member_role_api import AssigningMemberRoleApi
from .auth_api import AuthApi
+from .beta_access_api import BetaAccessApi
from .billing_api import BillingApi
from .callbacks_api import CallbacksApi
from .cluster_events_api import ClusterEventsApi
@@ -27,6 +28,7 @@
from .invite_api import InviteApi
from .keypair_api import KeypairApi
from .organization_api import OrganizationApi
+from .partner_config_api import PartnerConfigApi
from .payment_api import PaymentApi
from .permission_api import PermissionApi
from .policy_api import PolicyApi
diff --git a/hyperstack/api/alive_api.py b/hyperstack/api/alive_api.py
index 1706820..c8167cd 100644
--- a/hyperstack/api/alive_api.py
+++ b/hyperstack/api/alive_api.py
@@ -53,6 +53,7 @@ def get_alive(
) -> None:
"""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/).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -115,6 +116,7 @@ def get_alive_with_http_info(
) -> ApiResponse[None]:
"""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/).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -177,6 +179,7 @@ def get_alive_without_preload_content(
) -> RESTResponseType:
"""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/).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -250,6 +253,7 @@ def _get_alive_serialize(
# authentication setting
_auth_settings: List[str] = [
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -268,3 +272,239 @@ def _get_alive_serialize(
)
+
+
+ @validate_call
+ def get_doc(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """get_doc
+
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_doc_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_doc_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """get_doc
+
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_doc_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_doc_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_doc
+
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_doc_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_doc_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/alive/doc',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/hyperstack/api/api_key_api.py b/hyperstack/api/api_key_api.py
index e95e93a..c5bdb43 100644
--- a/hyperstack/api/api_key_api.py
+++ b/hyperstack/api/api_key_api.py
@@ -292,8 +292,7 @@ def _delete_api_key_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -333,7 +332,7 @@ def generate_api_key(
) -> GenerateUpdateApiKeyResponseModel:
"""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...cloud/docs/api-reference/auth-resources/api-key/generate-api-key).
:param payload: (required)
:type payload: GenerateUpdateApiKeyPayload
@@ -405,7 +404,7 @@ def generate_api_key_with_http_info(
) -> ApiResponse[GenerateUpdateApiKeyResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/api-key/generate-api-key).
:param payload: (required)
:type payload: GenerateUpdateApiKeyPayload
@@ -477,7 +476,7 @@ def generate_api_key_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/api-key/generate-api-key).
:param payload: (required)
:type payload: GenerateUpdateApiKeyPayload
@@ -582,7 +581,6 @@ def _generate_api_key_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'accessToken'
]
return self.api_client.param_serialize(
@@ -604,7 +602,7 @@ def _generate_api_key_serialize(
@validate_call
- def retrieve_api_keys(
+ def retrieve_api_key(
self,
_request_timeout: Union[
None,
@@ -621,7 +619,7 @@ def retrieve_api_keys(
) -> GetApiKeysResponseModel:
"""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...cloud/docs/api-reference/auth-resources/api-key/retrieve-api-key).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -645,7 +643,7 @@ def retrieve_api_keys(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_api_keys_serialize(
+ _param = self._retrieve_api_key_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -670,7 +668,7 @@ def retrieve_api_keys(
@validate_call
- def retrieve_api_keys_with_http_info(
+ def retrieve_api_key_with_http_info(
self,
_request_timeout: Union[
None,
@@ -687,7 +685,7 @@ def retrieve_api_keys_with_http_info(
) -> ApiResponse[GetApiKeysResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/api-key/retrieve-api-key).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -711,7 +709,7 @@ def retrieve_api_keys_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_api_keys_serialize(
+ _param = self._retrieve_api_key_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -736,7 +734,7 @@ def retrieve_api_keys_with_http_info(
@validate_call
- def retrieve_api_keys_without_preload_content(
+ def retrieve_api_key_without_preload_content(
self,
_request_timeout: Union[
None,
@@ -753,7 +751,7 @@ def retrieve_api_keys_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/api-key/retrieve-api-key).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -777,7 +775,7 @@ def retrieve_api_keys_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_api_keys_serialize(
+ _param = self._retrieve_api_key_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -797,7 +795,7 @@ def retrieve_api_keys_without_preload_content(
return response_data.response
- def _retrieve_api_keys_serialize(
+ def _retrieve_api_key_serialize(
self,
_request_auth,
_content_type,
@@ -837,8 +835,7 @@ def _retrieve_api_keys_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -1139,8 +1136,7 @@ def _update_api_key_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/assigning_member_role_api.py b/hyperstack/api/assigning_member_role_api.py
index 46515cb..d13f7f2 100644
--- a/hyperstack/api/assigning_member_role_api.py
+++ b/hyperstack/api/assigning_member_role_api.py
@@ -40,7 +40,7 @@ def __init__(self, api_client=None) -> None:
@validate_call
- def assign_rbac_role(
+ def assign_rbac_role_to_user(
self,
user_id: StrictInt,
payload: AssignRbacRolePayload,
@@ -59,7 +59,7 @@ def assign_rbac_role(
) -> RbacRoleDetailResponseModel:
"""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...cloud/docs/api-reference/auth-resources/rbac/manage-member-roles/assign-rbac-role).
:param user_id: (required)
:type user_id: int
@@ -87,7 +87,7 @@ def assign_rbac_role(
:return: Returns the result object.
""" # noqa: E501
- _param = self._assign_rbac_role_serialize(
+ _param = self._assign_rbac_role_to_user_serialize(
user_id=user_id,
payload=payload,
_request_auth=_request_auth,
@@ -115,7 +115,7 @@ def assign_rbac_role(
@validate_call
- def assign_rbac_role_with_http_info(
+ def assign_rbac_role_to_user_with_http_info(
self,
user_id: StrictInt,
payload: AssignRbacRolePayload,
@@ -134,7 +134,7 @@ def assign_rbac_role_with_http_info(
) -> ApiResponse[RbacRoleDetailResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/rbac/manage-member-roles/assign-rbac-role).
:param user_id: (required)
:type user_id: int
@@ -162,7 +162,7 @@ def assign_rbac_role_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._assign_rbac_role_serialize(
+ _param = self._assign_rbac_role_to_user_serialize(
user_id=user_id,
payload=payload,
_request_auth=_request_auth,
@@ -190,7 +190,7 @@ def assign_rbac_role_with_http_info(
@validate_call
- def assign_rbac_role_without_preload_content(
+ def assign_rbac_role_to_user_without_preload_content(
self,
user_id: StrictInt,
payload: AssignRbacRolePayload,
@@ -209,7 +209,7 @@ def assign_rbac_role_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/rbac/manage-member-roles/assign-rbac-role).
:param user_id: (required)
:type user_id: int
@@ -237,7 +237,7 @@ def assign_rbac_role_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._assign_rbac_role_serialize(
+ _param = self._assign_rbac_role_to_user_serialize(
user_id=user_id,
payload=payload,
_request_auth=_request_auth,
@@ -260,7 +260,7 @@ def assign_rbac_role_without_preload_content(
return response_data.response
- def _assign_rbac_role_serialize(
+ def _assign_rbac_role_to_user_serialize(
self,
user_id,
payload,
@@ -319,8 +319,7 @@ def _assign_rbac_role_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -360,7 +359,7 @@ def remove_rbac_role_from_user(
) -> CommonResponseModel:
"""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...cloud/docs/api-reference/auth-resources/rbac/manage-member-roles/revoke-rbac-role).
:param user_id: (required)
:type user_id: int
@@ -431,7 +430,7 @@ def remove_rbac_role_from_user_with_http_info(
) -> ApiResponse[CommonResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/rbac/manage-member-roles/revoke-rbac-role).
:param user_id: (required)
:type user_id: int
@@ -502,7 +501,7 @@ def remove_rbac_role_from_user_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/rbac/manage-member-roles/revoke-rbac-role).
:param user_id: (required)
:type user_id: int
@@ -593,8 +592,7 @@ def _remove_rbac_role_from_user_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/auth_api.py b/hyperstack/api/auth_api.py
index dd6ed34..b54c97b 100644
--- a/hyperstack/api/auth_api.py
+++ b/hyperstack/api/auth_api.py
@@ -16,7 +16,12 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated
+from pydantic import StrictInt
+from ..models.auth_get_token_response_model import AuthGetTokenResponseModel
from ..models.auth_user_info_response_model import AuthUserInfoResponseModel
+from ..models.common_response_model import CommonResponseModel
+from ..models.mfa_status_response import MFAStatusResponse
+from ..models.user_organizations_response import UserOrganizationsResponse
from ..api_client import ApiClient, RequestSerialized
from ..api_response import ApiResponse
@@ -36,6 +41,1047 @@ def __init__(self, api_client=None) -> None:
self.api_client = api_client
+ @validate_call
+ def change_organization_for_token(
+ self,
+ org_id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> AuthGetTokenResponseModel:
+ """change_organization_for_token
+
+ Change the organization associated with the current token. This is useful for users who have access to multiple organizations.
+
+ :param org_id: (required)
+ :type org_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._change_organization_for_token_serialize(
+ org_id=org_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AuthGetTokenResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def change_organization_for_token_with_http_info(
+ self,
+ org_id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[AuthGetTokenResponseModel]:
+ """change_organization_for_token
+
+ Change the organization associated with the current token. This is useful for users who have access to multiple organizations.
+
+ :param org_id: (required)
+ :type org_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._change_organization_for_token_serialize(
+ org_id=org_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AuthGetTokenResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def change_organization_for_token_without_preload_content(
+ self,
+ org_id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """change_organization_for_token
+
+ Change the organization associated with the current token. This is useful for users who have access to multiple organizations.
+
+ :param org_id: (required)
+ :type org_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._change_organization_for_token_serialize(
+ org_id=org_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AuthGetTokenResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _change_organization_for_token_serialize(
+ self,
+ org_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if org_id is not None:
+ _path_params['org_id'] = org_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/auth/token/change-org/{org_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def disable_mfa(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CommonResponseModel:
+ """disable_mfa
+
+ Disable Multi-Factor Authentication (MFA) for the currently authenticated user. This endpoint is used to turn off MFA.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._disable_mfa_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommonResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': "ErrorResponseModel",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def disable_mfa_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CommonResponseModel]:
+ """disable_mfa
+
+ Disable Multi-Factor Authentication (MFA) for the currently authenticated user. This endpoint is used to turn off MFA.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._disable_mfa_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommonResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': "ErrorResponseModel",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def disable_mfa_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """disable_mfa
+
+ Disable Multi-Factor Authentication (MFA) for the currently authenticated user. This endpoint is used to turn off MFA.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._disable_mfa_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommonResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': "ErrorResponseModel",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _disable_mfa_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/auth/me/mfa/disable',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_mfa_status(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MFAStatusResponse:
+ """Get MFA status for authenticated user
+
+ Retrieve the Multi-Factor Authentication (MFA) status for the currentlyauthenticated user. Includes whether MFA is enabled.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_mfa_status_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MFAStatusResponse",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': "ErrorResponseModel",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_mfa_status_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MFAStatusResponse]:
+ """Get MFA status for authenticated user
+
+ Retrieve the Multi-Factor Authentication (MFA) status for the currentlyauthenticated user. Includes whether MFA is enabled.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_mfa_status_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MFAStatusResponse",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': "ErrorResponseModel",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_mfa_status_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get MFA status for authenticated user
+
+ Retrieve the Multi-Factor Authentication (MFA) status for the currentlyauthenticated user. Includes whether MFA is enabled.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_mfa_status_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MFAStatusResponse",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': "ErrorResponseModel",
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_mfa_status_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/auth/me/mfa',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_organizations(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> UserOrganizationsResponse:
+ """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.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_organizations_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UserOrganizationsResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_organizations_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[UserOrganizationsResponse]:
+ """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.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_organizations_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UserOrganizationsResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_organizations_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """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.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_organizations_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UserOrganizationsResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_organizations_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/auth/me/organizations',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
@validate_call
def retrieve_authenticated_user_details(
self,
@@ -54,7 +1100,7 @@ def retrieve_authenticated_user_details(
) -> AuthUserInfoResponseModel:
"""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...cloud/docs/api-reference/auth-resources/auth).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -120,7 +1166,7 @@ def retrieve_authenticated_user_details_with_http_info(
) -> ApiResponse[AuthUserInfoResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/auth).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -186,7 +1232,7 @@ def retrieve_authenticated_user_details_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/auth).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -270,8 +1316,7 @@ def _retrieve_authenticated_user_details_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/beta_access_api.py b/hyperstack/api/beta_access_api.py
new file mode 100644
index 0000000..870a9b1
--- /dev/null
+++ b/hyperstack/api/beta_access_api.py
@@ -0,0 +1,856 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import StrictStr
+from ..models.beta_access_request_payload import BetaAccessRequestPayload
+from ..models.beta_access_request_response_model import BetaAccessRequestResponseModel
+from ..models.beta_access_status_response_model import BetaAccessStatusResponseModel
+
+from ..api_client import ApiClient, RequestSerialized
+from ..api_response import ApiResponse
+from ..rest import RESTResponseType
+
+
+class BetaAccessApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def create_a_beta_access_request(
+ self,
+ payload: BetaAccessRequestPayload,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> BetaAccessRequestResponseModel:
+ """Create a new beta access request
+
+ Creates a new beta access request for the current user
+
+ :param payload: (required)
+ :type payload: BetaAccessRequestPayload
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_a_beta_access_request_serialize(
+ payload=payload,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "BetaAccessRequestResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def create_a_beta_access_request_with_http_info(
+ self,
+ payload: BetaAccessRequestPayload,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[BetaAccessRequestResponseModel]:
+ """Create a new beta access request
+
+ Creates a new beta access request for the current user
+
+ :param payload: (required)
+ :type payload: BetaAccessRequestPayload
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_a_beta_access_request_serialize(
+ payload=payload,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "BetaAccessRequestResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def create_a_beta_access_request_without_preload_content(
+ self,
+ payload: BetaAccessRequestPayload,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Create a new beta access request
+
+ Creates a new beta access request for the current user
+
+ :param payload: (required)
+ :type payload: BetaAccessRequestPayload
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._create_a_beta_access_request_serialize(
+ payload=payload,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '201': "BetaAccessRequestResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _create_a_beta_access_request_serialize(
+ self,
+ payload,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if payload is not None:
+ _body_params = payload
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/auth/beta-access/requests',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_beta_access_status(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> BetaAccessStatusResponseModel:
+ """Check the status of all beta access requests
+
+ Check the status of all beta access requests.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_beta_access_status_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BetaAccessStatusResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_beta_access_status_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[BetaAccessStatusResponseModel]:
+ """Check the status of all beta access requests
+
+ Check the status of all beta access requests.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_beta_access_status_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BetaAccessStatusResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_beta_access_status_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Check the status of all beta access requests
+
+ Check the status of all beta access requests.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_beta_access_status_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BetaAccessStatusResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_beta_access_status_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/auth/beta-access/requests',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_beta_access_status2(
+ self,
+ program: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> BetaAccessStatusResponseModel:
+ """Check the status of beta access requests
+
+ Check the status of a particular beta access requests.
+
+ :param program: (required)
+ :type program: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_beta_access_status2_serialize(
+ program=program,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BetaAccessStatusResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_beta_access_status2_with_http_info(
+ self,
+ program: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[BetaAccessStatusResponseModel]:
+ """Check the status of beta access requests
+
+ Check the status of a particular beta access requests.
+
+ :param program: (required)
+ :type program: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_beta_access_status2_serialize(
+ program=program,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BetaAccessStatusResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_beta_access_status2_without_preload_content(
+ self,
+ program: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Check the status of beta access requests
+
+ Check the status of a particular beta access requests.
+
+ :param program: (required)
+ :type program: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_beta_access_status2_serialize(
+ program=program,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "BetaAccessStatusResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_beta_access_status2_serialize(
+ self,
+ program,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if program is not None:
+ _path_params['program'] = program
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/auth/beta-access/requests/{program}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/hyperstack/api/billing_api.py b/hyperstack/api/billing_api.py
index fdda6ad..095ac47 100644
--- a/hyperstack/api/billing_api.py
+++ b/hyperstack/api/billing_api.py
@@ -19,21 +19,32 @@
from pydantic import Field, StrictInt, StrictStr
from typing import Optional
from typing_extensions import Annotated
-from ..models.billingmetricesresponse import Billingmetricesresponse
-from ..models.lastdaycostresponse import Lastdaycostresponse
+from ..models.billing_metrices_response import BillingMetricesResponse
+from ..models.data_synthesis_billing_history_details_response_schema import DataSynthesisBillingHistoryDetailsResponseSchema
+from ..models.last_day_cost_response import LastDayCostResponse
+from ..models.model_evaluation_billing_history_details_response_schema import ModelEvaluationBillingHistoryDetailsResponseSchema
from ..models.organization_level_billing_history_response_model import OrganizationLevelBillingHistoryResponseModel
-from ..models.organizationthresholdsresponse import Organizationthresholdsresponse
-from ..models.organizationthresholdupdateresponse import Organizationthresholdupdateresponse
+from ..models.organization_threshold_update_response import OrganizationThresholdUpdateResponse
+from ..models.organization_thresholds_response import OrganizationThresholdsResponse
from ..models.resource_billing_events_history_response import ResourceBillingEventsHistoryResponse
+from ..models.resource_level_bucket_billing_details_response_model import ResourceLevelBucketBillingDetailsResponseModel
+from ..models.resource_level_bucket_billing_history_response_model import ResourceLevelBucketBillingHistoryResponseModel
+from ..models.resource_level_cluster_billing_details_response_model import ResourceLevelClusterBillingDetailsResponseModel
+from ..models.resource_level_cluster_billing_history_response_model import ResourceLevelClusterBillingHistoryResponseModel
+from ..models.resource_level_cluster_graph_billing_details_response_model import ResourceLevelClusterGraphBillingDetailsResponseModel
+from ..models.resource_level_graph_billing_details_bucket import ResourceLevelGraphBillingDetailsBucket
from ..models.resource_level_vm_billing_details_response_model import ResourceLevelVMBillingDetailsResponseModel
from ..models.resource_level_vm_billing_history_response_model import ResourceLevelVmBillingHistoryResponseModel
from ..models.resource_level_vm_graph_billing_details_response_model import ResourceLevelVmGraphBillingDetailsResponseModel
from ..models.resource_level_volume_billing_details_response_model import ResourceLevelVolumeBillingDetailsResponseModel
from ..models.resource_level_volume_billing_history_response_model import ResourceLevelVolumeBillingHistoryResponseModel
from ..models.resource_level_volume_graph_billing_details_response_model import ResourceLevelVolumeGraphBillingDetailsResponseModel
+from ..models.serverless_inferenced_billing_history_details_response_schema import ServerlessInferencedBillingHistoryDetailsResponseSchema
from ..models.sub_resources_costs_response_model import SubResourcesCostsResponseModel
from ..models.sub_resources_graph_response_model import SubResourcesGraphResponseModel
-from ..models.subscribeorunsubscribeupdatepayload import Subscribeorunsubscribeupdatepayload
+from ..models.subscribe_or_unsubscribe_update_payload import SubscribeOrUnsubscribeUpdatePayload
+from ..models.token_based_billing_history_response import TokenBasedBillingHistoryResponse
+from ..models.workload_billing_history_response import WorkloadBillingHistoryResponse
from ..api_client import ApiClient, RequestSerialized
from ..api_response import ApiResponse
@@ -54,7 +65,7 @@ def __init__(self, api_client=None) -> None:
@validate_call
- def get_all_thresholds_for_organization(
+ def get_last_day_cost(
self,
_request_timeout: Union[
None,
@@ -68,10 +79,10 @@ def get_all_thresholds_for_organization(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Organizationthresholdsresponse:
- """GET: All Thresholds for Organization
+ ) -> LastDayCostResponse:
+ """GET: Last Day Cost
- Retrieve all the notification thresholds for an organization.
+ 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/)
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -95,7 +106,7 @@ def get_all_thresholds_for_organization(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_all_thresholds_for_organization_serialize(
+ _param = self._get_last_day_cost_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -103,7 +114,7 @@ def get_all_thresholds_for_organization(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Organizationthresholdsresponse",
+ '200': "LastDayCostResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -122,7 +133,7 @@ def get_all_thresholds_for_organization(
@validate_call
- def get_all_thresholds_for_organization_with_http_info(
+ def get_last_day_cost_with_http_info(
self,
_request_timeout: Union[
None,
@@ -136,10 +147,10 @@ def get_all_thresholds_for_organization_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Organizationthresholdsresponse]:
- """GET: All Thresholds for Organization
+ ) -> ApiResponse[LastDayCostResponse]:
+ """GET: Last Day Cost
- Retrieve all the notification thresholds for an organization.
+ 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/)
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -163,7 +174,7 @@ def get_all_thresholds_for_organization_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_all_thresholds_for_organization_serialize(
+ _param = self._get_last_day_cost_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -171,7 +182,7 @@ def get_all_thresholds_for_organization_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Organizationthresholdsresponse",
+ '200': "LastDayCostResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -190,7 +201,7 @@ def get_all_thresholds_for_organization_with_http_info(
@validate_call
- def get_all_thresholds_for_organization_without_preload_content(
+ def get_last_day_cost_without_preload_content(
self,
_request_timeout: Union[
None,
@@ -205,9 +216,9 @@ def get_all_thresholds_for_organization_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """GET: All Thresholds for Organization
+ """GET: Last Day Cost
- Retrieve all the notification thresholds for an organization.
+ 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/)
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -231,7 +242,7 @@ def get_all_thresholds_for_organization_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_all_thresholds_for_organization_serialize(
+ _param = self._get_last_day_cost_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -239,7 +250,7 @@ def get_all_thresholds_for_organization_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Organizationthresholdsresponse",
+ '200': "LastDayCostResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -253,7 +264,7 @@ def get_all_thresholds_for_organization_without_preload_content(
return response_data.response
- def _get_all_thresholds_for_organization_serialize(
+ def _get_last_day_cost_serialize(
self,
_request_auth,
_content_type,
@@ -293,13 +304,12 @@ def _get_all_thresholds_for_organization_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/billing/billing/threshold',
+ resource_path='/billing/billing/last-day-cost',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -316,10 +326,8 @@ def _get_all_thresholds_for_organization_serialize(
@validate_call
- def get_billing_usage(
+ def get_organization_threshold(
self,
- deleted: Annotated[Optional[StrictStr], Field(description="`true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)")] = None,
- environment: Annotated[Optional[StrictStr], Field(description="Filter resources by environment ID or Name")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -332,15 +340,11 @@ def get_billing_usage(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Billingmetricesresponse:
- """GET: Billing usage
+ ) -> OrganizationThresholdsResponse:
+ """GET: All Thresholds for Organization
- 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 all the notification thresholds for an organization.
- :param deleted: `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
- :type deleted: str
- :param environment: Filter resources by environment ID or Name
- :type environment: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -363,9 +367,7 @@ def get_billing_usage(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_billing_usage_serialize(
- deleted=deleted,
- environment=environment,
+ _param = self._get_organization_threshold_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -373,7 +375,7 @@ def get_billing_usage(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Billingmetricesresponse",
+ '200': "OrganizationThresholdsResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -392,10 +394,8 @@ def get_billing_usage(
@validate_call
- def get_billing_usage_with_http_info(
+ def get_organization_threshold_with_http_info(
self,
- deleted: Annotated[Optional[StrictStr], Field(description="`true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)")] = None,
- environment: Annotated[Optional[StrictStr], Field(description="Filter resources by environment ID or Name")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -408,15 +408,11 @@ def get_billing_usage_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Billingmetricesresponse]:
- """GET: Billing usage
+ ) -> ApiResponse[OrganizationThresholdsResponse]:
+ """GET: All Thresholds for Organization
- 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 all the notification thresholds for an organization.
- :param deleted: `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
- :type deleted: str
- :param environment: Filter resources by environment ID or Name
- :type environment: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -439,9 +435,7 @@ def get_billing_usage_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_billing_usage_serialize(
- deleted=deleted,
- environment=environment,
+ _param = self._get_organization_threshold_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -449,7 +443,7 @@ def get_billing_usage_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Billingmetricesresponse",
+ '200': "OrganizationThresholdsResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -468,10 +462,8 @@ def get_billing_usage_with_http_info(
@validate_call
- def get_billing_usage_without_preload_content(
+ def get_organization_threshold_without_preload_content(
self,
- deleted: Annotated[Optional[StrictStr], Field(description="`true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)")] = None,
- environment: Annotated[Optional[StrictStr], Field(description="Filter resources by environment ID or Name")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -485,14 +477,10 @@ def get_billing_usage_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """GET: Billing usage
+ """GET: All Thresholds for Organization
- 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 all the notification thresholds for an organization.
- :param deleted: `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
- :type deleted: str
- :param environment: Filter resources by environment ID or Name
- :type environment: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -515,9 +503,7 @@ def get_billing_usage_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_billing_usage_serialize(
- deleted=deleted,
- environment=environment,
+ _param = self._get_organization_threshold_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -525,7 +511,7 @@ def get_billing_usage_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Billingmetricesresponse",
+ '200': "OrganizationThresholdsResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -539,10 +525,8 @@ def get_billing_usage_without_preload_content(
return response_data.response
- def _get_billing_usage_serialize(
+ def _get_organization_threshold_serialize(
self,
- deleted,
- environment,
_request_auth,
_content_type,
_headers,
@@ -565,14 +549,6 @@ def _get_billing_usage_serialize(
# process the path parameters
# process the query parameters
- if deleted is not None:
-
- _query_params.append(('deleted', deleted))
-
- if environment is not None:
-
- _query_params.append(('environment', environment))
-
# process the header parameters
# process the form parameters
# process the body parameter
@@ -589,13 +565,12 @@ def _get_billing_usage_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/billing/billing/usage',
+ resource_path='/billing/billing/threshold',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -612,8 +587,10 @@ def _get_billing_usage_serialize(
@validate_call
- def get_last_day_cost(
+ def get_usage2(
self,
+ deleted: Annotated[Optional[StrictStr], Field(description="`true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)")] = None,
+ environment: Annotated[Optional[StrictStr], Field(description="Filter resources by environment ID or Name")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -626,11 +603,15 @@ def get_last_day_cost(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Lastdaycostresponse:
- """GET: Last Day Cost
+ ) -> BillingMetricesResponse:
+ """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/)
+ :param deleted: `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
+ :type deleted: str
+ :param environment: Filter resources by environment ID or Name
+ :type environment: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -653,7 +634,9 @@ def get_last_day_cost(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_last_day_cost_serialize(
+ _param = self._get_usage2_serialize(
+ deleted=deleted,
+ environment=environment,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -661,7 +644,7 @@ def get_last_day_cost(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Lastdaycostresponse",
+ '200': "BillingMetricesResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -680,8 +663,10 @@ def get_last_day_cost(
@validate_call
- def get_last_day_cost_with_http_info(
+ def get_usage2_with_http_info(
self,
+ deleted: Annotated[Optional[StrictStr], Field(description="`true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)")] = None,
+ environment: Annotated[Optional[StrictStr], Field(description="Filter resources by environment ID or Name")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -694,11 +679,15 @@ def get_last_day_cost_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Lastdaycostresponse]:
- """GET: Last Day Cost
+ ) -> ApiResponse[BillingMetricesResponse]:
+ """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/)
+ :param deleted: `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
+ :type deleted: str
+ :param environment: Filter resources by environment ID or Name
+ :type environment: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -721,7 +710,9 @@ def get_last_day_cost_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_last_day_cost_serialize(
+ _param = self._get_usage2_serialize(
+ deleted=deleted,
+ environment=environment,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -729,7 +720,7 @@ def get_last_day_cost_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Lastdaycostresponse",
+ '200': "BillingMetricesResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -748,8 +739,10 @@ def get_last_day_cost_with_http_info(
@validate_call
- def get_last_day_cost_without_preload_content(
+ def get_usage2_without_preload_content(
self,
+ deleted: Annotated[Optional[StrictStr], Field(description="`true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)")] = None,
+ environment: Annotated[Optional[StrictStr], Field(description="Filter resources by environment ID or Name")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -763,10 +756,14 @@ def get_last_day_cost_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """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/)
+ :param deleted: `true` will return inactive resources and `false` will return active resources. By defualt(`deleted=false`)
+ :type deleted: str
+ :param environment: Filter resources by environment ID or Name
+ :type environment: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -789,7 +786,9 @@ def get_last_day_cost_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_last_day_cost_serialize(
+ _param = self._get_usage2_serialize(
+ deleted=deleted,
+ environment=environment,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -797,7 +796,7 @@ def get_last_day_cost_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Lastdaycostresponse",
+ '200': "BillingMetricesResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -811,8 +810,10 @@ def get_last_day_cost_without_preload_content(
return response_data.response
- def _get_last_day_cost_serialize(
+ def _get_usage2_serialize(
self,
+ deleted,
+ environment,
_request_auth,
_content_type,
_headers,
@@ -835,6 +836,14 @@ def _get_last_day_cost_serialize(
# process the path parameters
# process the query parameters
+ if deleted is not None:
+
+ _query_params.append(('deleted', deleted))
+
+ if environment is not None:
+
+ _query_params.append(('environment', environment))
+
# process the header parameters
# process the form parameters
# process the body parameter
@@ -851,13 +860,12 @@ def _get_last_day_cost_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/billing/billing/last-day-cost',
+ resource_path='/billing/billing/usage',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -874,11 +882,11 @@ def _get_last_day_cost_serialize(
@validate_call
- def retrieve_billing_history_for_a_specific_billing_cycle(
+ def get_user_billing_bucket_details_graph(
self,
+ bucket_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- graph: Annotated[Optional[StrictStr], Field(description="Set this value to \"true\" for getting graph value")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -891,17 +899,17 @@ def retrieve_billing_history_for_a_specific_billing_cycle(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> OrganizationLevelBillingHistoryResponseModel:
- """Retrieve Billing History for a specific Billing Cycle
+ ) -> ResourceLevelGraphBillingDetailsBucket:
+ """Retrieve hourly cost datapoints of a Specific Bucket 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 recieve hourly cost datapoints for a Bucket for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+ :param bucket_id: (required)
+ :type bucket_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
- :param graph: Set this value to \"true\" for getting graph value
- :type graph: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -924,10 +932,10 @@ def retrieve_billing_history_for_a_specific_billing_cycle(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_for_a_specific_billing_cycle_serialize(
+ _param = self._get_user_billing_bucket_details_graph_serialize(
+ bucket_id=bucket_id,
start_date=start_date,
end_date=end_date,
- graph=graph,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -935,7 +943,7 @@ def retrieve_billing_history_for_a_specific_billing_cycle(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "OrganizationLevelBillingHistoryResponseModel",
+ '200': "ResourceLevelGraphBillingDetailsBucket",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -954,11 +962,11 @@ def retrieve_billing_history_for_a_specific_billing_cycle(
@validate_call
- def retrieve_billing_history_for_a_specific_billing_cycle_with_http_info(
+ def get_user_billing_bucket_details_graph_with_http_info(
self,
+ bucket_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- graph: Annotated[Optional[StrictStr], Field(description="Set this value to \"true\" for getting graph value")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -971,17 +979,17 @@ def retrieve_billing_history_for_a_specific_billing_cycle_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[OrganizationLevelBillingHistoryResponseModel]:
- """Retrieve Billing History for a specific Billing Cycle
+ ) -> ApiResponse[ResourceLevelGraphBillingDetailsBucket]:
+ """Retrieve hourly cost datapoints of a Specific Bucket 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 recieve hourly cost datapoints for a Bucket for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+ :param bucket_id: (required)
+ :type bucket_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
- :param graph: Set this value to \"true\" for getting graph value
- :type graph: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1004,10 +1012,10 @@ def retrieve_billing_history_for_a_specific_billing_cycle_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_for_a_specific_billing_cycle_serialize(
+ _param = self._get_user_billing_bucket_details_graph_serialize(
+ bucket_id=bucket_id,
start_date=start_date,
end_date=end_date,
- graph=graph,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1015,7 +1023,7 @@ def retrieve_billing_history_for_a_specific_billing_cycle_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "OrganizationLevelBillingHistoryResponseModel",
+ '200': "ResourceLevelGraphBillingDetailsBucket",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -1034,11 +1042,11 @@ def retrieve_billing_history_for_a_specific_billing_cycle_with_http_info(
@validate_call
- def retrieve_billing_history_for_a_specific_billing_cycle_without_preload_content(
+ def get_user_billing_bucket_details_graph_without_preload_content(
self,
+ bucket_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- graph: Annotated[Optional[StrictStr], Field(description="Set this value to \"true\" for getting graph value")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1052,16 +1060,16 @@ def retrieve_billing_history_for_a_specific_billing_cycle_without_preload_conten
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve Billing History for a specific Billing Cycle
+ """Retrieve hourly cost datapoints of a Specific Bucket 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 recieve hourly cost datapoints for a Bucket for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+ :param bucket_id: (required)
+ :type bucket_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
- :param graph: Set this value to \"true\" for getting graph value
- :type graph: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1084,10 +1092,10 @@ def retrieve_billing_history_for_a_specific_billing_cycle_without_preload_conten
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_for_a_specific_billing_cycle_serialize(
+ _param = self._get_user_billing_bucket_details_graph_serialize(
+ bucket_id=bucket_id,
start_date=start_date,
end_date=end_date,
- graph=graph,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1095,7 +1103,7 @@ def retrieve_billing_history_for_a_specific_billing_cycle_without_preload_conten
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "OrganizationLevelBillingHistoryResponseModel",
+ '200': "ResourceLevelGraphBillingDetailsBucket",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -1109,11 +1117,11 @@ def retrieve_billing_history_for_a_specific_billing_cycle_without_preload_conten
return response_data.response
- def _retrieve_billing_history_for_a_specific_billing_cycle_serialize(
+ def _get_user_billing_bucket_details_graph_serialize(
self,
+ bucket_id,
start_date,
end_date,
- graph,
_request_auth,
_content_type,
_headers,
@@ -1135,6 +1143,8 @@ def _retrieve_billing_history_for_a_specific_billing_cycle_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
+ if bucket_id is not None:
+ _path_params['bucket_id'] = bucket_id
# process the query parameters
if start_date is not None:
@@ -1144,10 +1154,6 @@ def _retrieve_billing_history_for_a_specific_billing_cycle_serialize(
_query_params.append(('end_date', end_date))
- if graph is not None:
-
- _query_params.append(('graph', graph))
-
# process the header parameters
# process the form parameters
# process the body parameter
@@ -1164,13 +1170,12 @@ def _retrieve_billing_history_for_a_specific_billing_cycle_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/billing/billing/history',
+ resource_path='/billing/billing/history/bucket/{bucket_id}/graph',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1187,11 +1192,11 @@ def _retrieve_billing_history_for_a_specific_billing_cycle_serialize(
@validate_call
- def retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle(
+ def get_user_billing_cluster_details_graph(
self,
- snapshot_id: StrictInt,
- start_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- end_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ cluster_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1204,16 +1209,16 @@ def retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ResourceLevelVolumeBillingDetailsResponseModel:
- """Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
+ ) -> ResourceLevelClusterGraphBillingDetailsResponseModel:
+ """Retrieve hourly cost datapoints of a specific Cluster 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 hourly cost datapoints for a Cluster for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- :param snapshot_id: (required)
- :type snapshot_id: int
- :param start_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
- :param end_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -1237,8 +1242,8 @@ def retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle_serialize(
- snapshot_id=snapshot_id,
+ _param = self._get_user_billing_cluster_details_graph_serialize(
+ cluster_id=cluster_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -1248,7 +1253,7 @@ def retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVolumeBillingDetailsResponseModel",
+ '200': "ResourceLevelClusterGraphBillingDetailsResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -1267,11 +1272,11 @@ def retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle
@validate_call
- def retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle_with_http_info(
+ def get_user_billing_cluster_details_graph_with_http_info(
self,
- snapshot_id: StrictInt,
- start_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- end_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ cluster_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1284,16 +1289,16 @@ def retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ResourceLevelVolumeBillingDetailsResponseModel]:
- """Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
+ ) -> ApiResponse[ResourceLevelClusterGraphBillingDetailsResponseModel]:
+ """Retrieve hourly cost datapoints of a specific Cluster 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 hourly cost datapoints for a Cluster for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- :param snapshot_id: (required)
- :type snapshot_id: int
- :param start_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
- :param end_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -1317,8 +1322,8 @@ def retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle_serialize(
- snapshot_id=snapshot_id,
+ _param = self._get_user_billing_cluster_details_graph_serialize(
+ cluster_id=cluster_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -1328,7 +1333,7 @@ def retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVolumeBillingDetailsResponseModel",
+ '200': "ResourceLevelClusterGraphBillingDetailsResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -1347,11 +1352,11 @@ def retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle
@validate_call
- def retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle_without_preload_content(
+ def get_user_billing_cluster_details_graph_without_preload_content(
self,
- snapshot_id: StrictInt,
- start_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- end_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ cluster_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1365,15 +1370,15 @@ def retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
+ """Retrieve hourly cost datapoints of a specific Cluster 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 hourly cost datapoints for a Cluster for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- :param snapshot_id: (required)
- :type snapshot_id: int
- :param start_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
- :param end_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -1397,8 +1402,8 @@ def retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle_serialize(
- snapshot_id=snapshot_id,
+ _param = self._get_user_billing_cluster_details_graph_serialize(
+ cluster_id=cluster_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -1408,7 +1413,7 @@ def retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVolumeBillingDetailsResponseModel",
+ '200': "ResourceLevelClusterGraphBillingDetailsResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -1422,9 +1427,9 @@ def retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle
return response_data.response
- def _retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle_serialize(
+ def _get_user_billing_cluster_details_graph_serialize(
self,
- snapshot_id,
+ cluster_id,
start_date,
end_date,
_request_auth,
@@ -1448,8 +1453,8 @@ def _retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycl
_body_params: Optional[bytes] = None
# process the path parameters
- if snapshot_id is not None:
- _path_params['snapshot_id'] = snapshot_id
+ if cluster_id is not None:
+ _path_params['cluster_id'] = cluster_id
# process the query parameters
if start_date is not None:
@@ -1475,13 +1480,12 @@ def _retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycl
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/billing/billing/history/snapshot/{snapshot_id}',
+ resource_path='/billing/billing/history/cluster/{cluster_id}/graph',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1498,9 +1502,9 @@ def _retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycl
@validate_call
- def retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle(
+ def get_user_billing_data_synthesis_details_graph(
self,
- vm_id: StrictInt,
+ resource_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -1515,13 +1519,13 @@ def retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billin
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ResourceLevelVMBillingDetailsResponseModel:
- """Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
+ ) -> DataSynthesisBillingHistoryDetailsResponseSchema:
+ """Retrieve hourly cost datapoints of a Specific Data Synthesis for a specific
- 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 hourly cost datapoints for a data synthesis job for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
- :param vm_id: (required)
- :type vm_id: int
+ :param resource_id: (required)
+ :type resource_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -1548,8 +1552,8 @@ def retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billin
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle_serialize(
- vm_id=vm_id,
+ _param = self._get_user_billing_data_synthesis_details_graph_serialize(
+ resource_id=resource_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -1559,7 +1563,7 @@ def retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billin
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVMBillingDetailsResponseModel",
+ '200': "DataSynthesisBillingHistoryDetailsResponseSchema",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -1578,9 +1582,9 @@ def retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billin
@validate_call
- def retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle_with_http_info(
+ def get_user_billing_data_synthesis_details_graph_with_http_info(
self,
- vm_id: StrictInt,
+ resource_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -1595,13 +1599,13 @@ def retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billin
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ResourceLevelVMBillingDetailsResponseModel]:
- """Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
+ ) -> ApiResponse[DataSynthesisBillingHistoryDetailsResponseSchema]:
+ """Retrieve hourly cost datapoints of a Specific Data Synthesis for a specific
- 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 hourly cost datapoints for a data synthesis job for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
- :param vm_id: (required)
- :type vm_id: int
+ :param resource_id: (required)
+ :type resource_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -1628,8 +1632,8 @@ def retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billin
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle_serialize(
- vm_id=vm_id,
+ _param = self._get_user_billing_data_synthesis_details_graph_serialize(
+ resource_id=resource_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -1639,7 +1643,7 @@ def retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billin
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVMBillingDetailsResponseModel",
+ '200': "DataSynthesisBillingHistoryDetailsResponseSchema",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -1658,9 +1662,9 @@ def retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billin
@validate_call
- def retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle_without_preload_content(
+ def get_user_billing_data_synthesis_details_graph_without_preload_content(
self,
- vm_id: StrictInt,
+ resource_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -1676,12 +1680,12 @@ def retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billin
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
+ """Retrieve hourly cost datapoints of a Specific Data Synthesis for a specific
- 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 hourly cost datapoints for a data synthesis job for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
- :param vm_id: (required)
- :type vm_id: int
+ :param resource_id: (required)
+ :type resource_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -1708,8 +1712,8 @@ def retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billin
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle_serialize(
- vm_id=vm_id,
+ _param = self._get_user_billing_data_synthesis_details_graph_serialize(
+ resource_id=resource_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -1719,7 +1723,7 @@ def retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billin
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVMBillingDetailsResponseModel",
+ '200': "DataSynthesisBillingHistoryDetailsResponseSchema",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -1733,9 +1737,9 @@ def retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billin
return response_data.response
- def _retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle_serialize(
+ def _get_user_billing_data_synthesis_details_graph_serialize(
self,
- vm_id,
+ resource_id,
start_date,
end_date,
_request_auth,
@@ -1759,8 +1763,8 @@ def _retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billi
_body_params: Optional[bytes] = None
# process the path parameters
- if vm_id is not None:
- _path_params['vm_id'] = vm_id
+ if resource_id is not None:
+ _path_params['resource_id'] = resource_id
# process the query parameters
if start_date is not None:
@@ -1786,13 +1790,12 @@ def _retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billi
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/billing/billing/history/virtual-machine/{vm_id}',
+ resource_path='/billing/billing/history/data_synthesis/{resource_id}/graph',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1809,9 +1812,9 @@ def _retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billi
@validate_call
- def retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle(
+ def get_user_billing_fine_tuning_details_graph(
self,
- volume_id: StrictInt,
+ resource_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -1826,13 +1829,13 @@ def retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ResourceLevelVolumeBillingDetailsResponseModel:
- """Retrieve Billing History of a Specific Volume for a specific Billing Cycle
+ ) -> ResourceLevelVolumeGraphBillingDetailsResponseModel:
+ """Retrieve hourly cost datapoints of a Specific Fine Tuning 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 recieve hourly cost datapoints for a Fine Tunings for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- :param volume_id: (required)
- :type volume_id: int
+ :param resource_id: (required)
+ :type resource_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -1859,8 +1862,8 @@ def retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_serialize(
- volume_id=volume_id,
+ _param = self._get_user_billing_fine_tuning_details_graph_serialize(
+ resource_id=resource_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -1870,7 +1873,7 @@ def retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVolumeBillingDetailsResponseModel",
+ '200': "ResourceLevelVolumeGraphBillingDetailsResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -1889,9 +1892,9 @@ def retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle(
@validate_call
- def retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_with_http_info(
+ def get_user_billing_fine_tuning_details_graph_with_http_info(
self,
- volume_id: StrictInt,
+ resource_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -1906,13 +1909,13 @@ def retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_w
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ResourceLevelVolumeBillingDetailsResponseModel]:
- """Retrieve Billing History of a Specific Volume for a specific Billing Cycle
+ ) -> ApiResponse[ResourceLevelVolumeGraphBillingDetailsResponseModel]:
+ """Retrieve hourly cost datapoints of a Specific Fine Tuning 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 recieve hourly cost datapoints for a Fine Tunings for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- :param volume_id: (required)
- :type volume_id: int
+ :param resource_id: (required)
+ :type resource_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -1939,8 +1942,8 @@ def retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_w
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_serialize(
- volume_id=volume_id,
+ _param = self._get_user_billing_fine_tuning_details_graph_serialize(
+ resource_id=resource_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -1950,7 +1953,7 @@ def retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_w
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVolumeBillingDetailsResponseModel",
+ '200': "ResourceLevelVolumeGraphBillingDetailsResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -1969,9 +1972,9 @@ def retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_w
@validate_call
- def retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_without_preload_content(
+ def get_user_billing_fine_tuning_details_graph_without_preload_content(
self,
- volume_id: StrictInt,
+ resource_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -1987,12 +1990,12 @@ def retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_w
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve Billing History of a Specific Volume for a specific Billing Cycle
+ """Retrieve hourly cost datapoints of a Specific Fine Tuning 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 recieve hourly cost datapoints for a Fine Tunings for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- :param volume_id: (required)
- :type volume_id: int
+ :param resource_id: (required)
+ :type resource_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -2019,8 +2022,8 @@ def retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_w
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_serialize(
- volume_id=volume_id,
+ _param = self._get_user_billing_fine_tuning_details_graph_serialize(
+ resource_id=resource_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -2030,7 +2033,7 @@ def retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_w
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVolumeBillingDetailsResponseModel",
+ '200': "ResourceLevelVolumeGraphBillingDetailsResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -2044,9 +2047,9 @@ def retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_w
return response_data.response
- def _retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_serialize(
+ def _get_user_billing_fine_tuning_details_graph_serialize(
self,
- volume_id,
+ resource_id,
start_date,
end_date,
_request_auth,
@@ -2070,8 +2073,8 @@ def _retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_
_body_params: Optional[bytes] = None
# process the path parameters
- if volume_id is not None:
- _path_params['volume_id'] = volume_id
+ if resource_id is not None:
+ _path_params['resource_id'] = resource_id
# process the query parameters
if start_date is not None:
@@ -2097,13 +2100,12 @@ def _retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/billing/billing/history/volume/{volume_id}',
+ resource_path='/billing/billing/history/fine_tuning/{resource_id}/graph',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2120,11 +2122,11 @@ def _retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle_
@validate_call
- def retrieve_billing_history_of_contract_for_a_specific_billing_cycle(
+ def get_user_billing_history2(
self,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search by Contract \"Description\" or \"ID\"")] = None,
+ graph: Annotated[Optional[StrictStr], Field(description="Set this value to \"true\" for getting graph value")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2137,17 +2139,17 @@ def retrieve_billing_history_of_contract_for_a_specific_billing_cycle(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> None:
- """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'
+ ) -> OrganizationLevelBillingHistoryResponseModel:
+ """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 start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
- :param search: Search by Contract \"Description\" or \"ID\"
- :type search: str
+ :param graph: Set this value to \"true\" for getting graph value
+ :type graph: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2170,10 +2172,10 @@ def retrieve_billing_history_of_contract_for_a_specific_billing_cycle(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_contract_for_a_specific_billing_cycle_serialize(
+ _param = self._get_user_billing_history2_serialize(
start_date=start_date,
end_date=end_date,
- search=search,
+ graph=graph,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2181,6 +2183,7 @@ def retrieve_billing_history_of_contract_for_a_specific_billing_cycle(
)
_response_types_map: Dict[str, Optional[str]] = {
+ '200': "OrganizationLevelBillingHistoryResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -2199,11 +2202,11 @@ def retrieve_billing_history_of_contract_for_a_specific_billing_cycle(
@validate_call
- def retrieve_billing_history_of_contract_for_a_specific_billing_cycle_with_http_info(
+ def get_user_billing_history2_with_http_info(
self,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search by Contract \"Description\" or \"ID\"")] = None,
+ graph: Annotated[Optional[StrictStr], Field(description="Set this value to \"true\" for getting graph value")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2216,17 +2219,17 @@ def retrieve_billing_history_of_contract_for_a_specific_billing_cycle_with_http_
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[None]:
- """Retrieve Billing History of Contract for a specific Billing Cycle
+ ) -> ApiResponse[OrganizationLevelBillingHistoryResponseModel]:
+ """Retrieve Billing History 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 recieve billing history for the specified billing cycle. This data will include 'incurred_bill', 'non_discounted_bill', 'vm_cost', 'volume_cost'
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
- :param search: Search by Contract \"Description\" or \"ID\"
- :type search: str
+ :param graph: Set this value to \"true\" for getting graph value
+ :type graph: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2249,10 +2252,10 @@ def retrieve_billing_history_of_contract_for_a_specific_billing_cycle_with_http_
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_contract_for_a_specific_billing_cycle_serialize(
+ _param = self._get_user_billing_history2_serialize(
start_date=start_date,
end_date=end_date,
- search=search,
+ graph=graph,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2260,6 +2263,7 @@ def retrieve_billing_history_of_contract_for_a_specific_billing_cycle_with_http_
)
_response_types_map: Dict[str, Optional[str]] = {
+ '200': "OrganizationLevelBillingHistoryResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -2278,11 +2282,11 @@ def retrieve_billing_history_of_contract_for_a_specific_billing_cycle_with_http_
@validate_call
- def retrieve_billing_history_of_contract_for_a_specific_billing_cycle_without_preload_content(
+ def get_user_billing_history2_without_preload_content(
self,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search by Contract \"Description\" or \"ID\"")] = None,
+ graph: Annotated[Optional[StrictStr], Field(description="Set this value to \"true\" for getting graph value")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2296,16 +2300,16 @@ def retrieve_billing_history_of_contract_for_a_specific_billing_cycle_without_pr
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve Billing History of Contract for a specific Billing Cycle
+ """Retrieve Billing History 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 recieve billing history for the specified billing cycle. This data will include 'incurred_bill', 'non_discounted_bill', 'vm_cost', 'volume_cost'
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
- :param search: Search by Contract \"Description\" or \"ID\"
- :type search: str
+ :param graph: Set this value to \"true\" for getting graph value
+ :type graph: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2328,10 +2332,10 @@ def retrieve_billing_history_of_contract_for_a_specific_billing_cycle_without_pr
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_contract_for_a_specific_billing_cycle_serialize(
+ _param = self._get_user_billing_history2_serialize(
start_date=start_date,
end_date=end_date,
- search=search,
+ graph=graph,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2339,6 +2343,7 @@ def retrieve_billing_history_of_contract_for_a_specific_billing_cycle_without_pr
)
_response_types_map: Dict[str, Optional[str]] = {
+ '200': "OrganizationLevelBillingHistoryResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -2352,11 +2357,11 @@ def retrieve_billing_history_of_contract_for_a_specific_billing_cycle_without_pr
return response_data.response
- def _retrieve_billing_history_of_contract_for_a_specific_billing_cycle_serialize(
+ def _get_user_billing_history2_serialize(
self,
start_date,
end_date,
- search,
+ graph,
_request_auth,
_content_type,
_headers,
@@ -2387,9 +2392,9 @@ def _retrieve_billing_history_of_contract_for_a_specific_billing_cycle_serialize
_query_params.append(('end_date', end_date))
- if search is not None:
+ if graph is not None:
- _query_params.append(('search', search))
+ _query_params.append(('graph', graph))
# process the header parameters
# process the form parameters
@@ -2407,13 +2412,12 @@ def _retrieve_billing_history_of_contract_for_a_specific_billing_cycle_serialize
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/billing/billing/history/contract',
+ resource_path='/billing/billing/history',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2430,13 +2434,13 @@ def _retrieve_billing_history_of_contract_for_a_specific_billing_cycle_serialize
@validate_call
- def retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle(
+ def get_user_billing_history_bucket2(
self,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search by Volume \"Name\" or \"ID\"")] = None,
- page: Annotated[Optional[StrictStr], Field(description="Page number")] = None,
- per_page: Annotated[Optional[StrictStr], Field(description="Number of items to return per page")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2449,21 +2453,21 @@ def retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ResourceLevelVolumeBillingHistoryResponseModel:
- """Retrieve Billing History of Snapshot for a specific Billing Cycle
+ ) -> ResourceLevelBucketBillingHistoryResponseModel:
+ """Retrieve Billing History of Volume 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'
+ User will recieve 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 start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
- :param search: Search by Volume \"Name\" or \"ID\"
+ :param search: Search by resource \"Name\" or \"ID\"
:type search: str
- :param page: Page number
- :type page: str
:param per_page: Number of items to return per page
- :type per_page: str
+ :type per_page: int
+ :param page: Page number
+ :type page: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2486,12 +2490,12 @@ def retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_serialize(
+ _param = self._get_user_billing_history_bucket2_serialize(
start_date=start_date,
end_date=end_date,
search=search,
- page=page,
per_page=per_page,
+ page=page,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2499,7 +2503,7 @@ def retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVolumeBillingHistoryResponseModel",
+ '200': "ResourceLevelBucketBillingHistoryResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -2518,13 +2522,13 @@ def retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle(
@validate_call
- def retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_with_http_info(
+ def get_user_billing_history_bucket2_with_http_info(
self,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search by Volume \"Name\" or \"ID\"")] = None,
- page: Annotated[Optional[StrictStr], Field(description="Page number")] = None,
- per_page: Annotated[Optional[StrictStr], Field(description="Number of items to return per page")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2537,21 +2541,21 @@ def retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_with_http_
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ResourceLevelVolumeBillingHistoryResponseModel]:
- """Retrieve Billing History of Snapshot for a specific Billing Cycle
+ ) -> ApiResponse[ResourceLevelBucketBillingHistoryResponseModel]:
+ """Retrieve Billing History of Volume 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'
+ User will recieve 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 start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
- :param search: Search by Volume \"Name\" or \"ID\"
+ :param search: Search by resource \"Name\" or \"ID\"
:type search: str
- :param page: Page number
- :type page: str
:param per_page: Number of items to return per page
- :type per_page: str
+ :type per_page: int
+ :param page: Page number
+ :type page: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2574,12 +2578,12 @@ def retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_with_http_
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_serialize(
+ _param = self._get_user_billing_history_bucket2_serialize(
start_date=start_date,
end_date=end_date,
search=search,
- page=page,
per_page=per_page,
+ page=page,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2587,7 +2591,7 @@ def retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_with_http_
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVolumeBillingHistoryResponseModel",
+ '200': "ResourceLevelBucketBillingHistoryResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -2606,13 +2610,13 @@ def retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_with_http_
@validate_call
- def retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_without_preload_content(
+ def get_user_billing_history_bucket2_without_preload_content(
self,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search by Volume \"Name\" or \"ID\"")] = None,
- page: Annotated[Optional[StrictStr], Field(description="Page number")] = None,
- per_page: Annotated[Optional[StrictStr], Field(description="Number of items to return per page")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2626,20 +2630,20 @@ def retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_without_pr
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve Billing History of Snapshot for a specific Billing Cycle
+ """Retrieve Billing History of Volume 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'
+ User will recieve 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 start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
- :param search: Search by Volume \"Name\" or \"ID\"
+ :param search: Search by resource \"Name\" or \"ID\"
:type search: str
- :param page: Page number
- :type page: str
:param per_page: Number of items to return per page
- :type per_page: str
+ :type per_page: int
+ :param page: Page number
+ :type page: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2662,12 +2666,12 @@ def retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_without_pr
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_serialize(
+ _param = self._get_user_billing_history_bucket2_serialize(
start_date=start_date,
end_date=end_date,
search=search,
- page=page,
per_page=per_page,
+ page=page,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2675,7 +2679,7 @@ def retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_without_pr
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVolumeBillingHistoryResponseModel",
+ '200': "ResourceLevelBucketBillingHistoryResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -2689,13 +2693,13 @@ def retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_without_pr
return response_data.response
- def _retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_serialize(
+ def _get_user_billing_history_bucket2_serialize(
self,
start_date,
end_date,
search,
- page,
per_page,
+ page,
_request_auth,
_content_type,
_headers,
@@ -2730,14 +2734,14 @@ def _retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_serialize
_query_params.append(('search', search))
- if page is not None:
-
- _query_params.append(('page', page))
-
if per_page is not None:
_query_params.append(('per_page', per_page))
+ if page is not None:
+
+ _query_params.append(('page', page))
+
# process the header parameters
# process the form parameters
# process the body parameter
@@ -2754,13 +2758,12 @@ def _retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_serialize
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/billing/billing/history/snapshot',
+ resource_path='/billing/billing/history/bucket',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2777,13 +2780,11 @@ def _retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle_serialize
@validate_call
- def retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle(
+ def get_user_billing_history_bucket_details(
self,
- start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search by Virtual Machine \"Name\" or \"ID\"")] = None,
- per_page: Annotated[Optional[StrictStr], Field(description="Number of items to return per page")] = None,
- page: Annotated[Optional[StrictStr], Field(description="Page number")] = None,
+ bucket_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2796,21 +2797,17 @@ def retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ResourceLevelVmBillingHistoryResponseModel:
- """Retrieve Billing History of Virtual Machine for a specific Billing Cycle
+ ) -> ResourceLevelBucketBillingDetailsResponseModel:
+ """Retrieve Billing History of a Specific Snapshot 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 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 start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :param bucket_id: (required)
+ :type bucket_id: int
+ :param start_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
- :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :param end_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
- :param search: Search by Virtual Machine \"Name\" or \"ID\"
- :type search: str
- :param per_page: Number of items to return per page
- :type per_page: str
- :param page: Page number
- :type page: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2833,12 +2830,10 @@ def retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle_serialize(
+ _param = self._get_user_billing_history_bucket_details_serialize(
+ bucket_id=bucket_id,
start_date=start_date,
end_date=end_date,
- search=search,
- per_page=per_page,
- page=page,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2846,7 +2841,7 @@ def retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVmBillingHistoryResponseModel",
+ '200': "ResourceLevelBucketBillingDetailsResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -2865,13 +2860,11 @@ def retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle(
@validate_call
- def retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle_with_http_info(
+ def get_user_billing_history_bucket_details_with_http_info(
self,
- start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search by Virtual Machine \"Name\" or \"ID\"")] = None,
- per_page: Annotated[Optional[StrictStr], Field(description="Number of items to return per page")] = None,
- page: Annotated[Optional[StrictStr], Field(description="Page number")] = None,
+ bucket_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2884,21 +2877,17 @@ def retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle_wit
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ResourceLevelVmBillingHistoryResponseModel]:
- """Retrieve Billing History of Virtual Machine for a specific Billing Cycle
+ ) -> ApiResponse[ResourceLevelBucketBillingDetailsResponseModel]:
+ """Retrieve Billing History of a Specific Snapshot 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 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 start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :param bucket_id: (required)
+ :type bucket_id: int
+ :param start_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
- :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :param end_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
- :param search: Search by Virtual Machine \"Name\" or \"ID\"
- :type search: str
- :param per_page: Number of items to return per page
- :type per_page: str
- :param page: Page number
- :type page: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2921,12 +2910,10 @@ def retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle_wit
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle_serialize(
+ _param = self._get_user_billing_history_bucket_details_serialize(
+ bucket_id=bucket_id,
start_date=start_date,
end_date=end_date,
- search=search,
- per_page=per_page,
- page=page,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2934,7 +2921,5854 @@ def retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle_wit
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVmBillingHistoryResponseModel",
+ '200': "ResourceLevelBucketBillingDetailsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_bucket_details_without_preload_content(
+ self,
+ bucket_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """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 bucket_id: (required)
+ :type bucket_id: int
+ :param start_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_bucket_details_serialize(
+ bucket_id=bucket_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelBucketBillingDetailsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_bucket_details_serialize(
+ self,
+ bucket_id,
+ start_date,
+ end_date,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if bucket_id is not None:
+ _path_params['bucket_id'] = bucket_id
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/history/bucket/{bucket_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_cluster(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ResourceLevelClusterBillingHistoryResponseModel:
+ """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 start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_cluster_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelClusterBillingHistoryResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_cluster_with_http_info(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ResourceLevelClusterBillingHistoryResponseModel]:
+ """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 start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_cluster_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelClusterBillingHistoryResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_cluster_without_preload_content(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """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 start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_cluster_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelClusterBillingHistoryResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_cluster_serialize(
+ self,
+ start_date,
+ end_date,
+ search,
+ per_page,
+ page,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ if search is not None:
+
+ _query_params.append(('search', search))
+
+ if per_page is not None:
+
+ _query_params.append(('per_page', per_page))
+
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/history/cluster',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_cluster_details(
+ self,
+ cluster_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ResourceLevelClusterBillingDetailsResponseModel:
+ """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 cluster_id: (required)
+ :type cluster_id: int
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_cluster_details_serialize(
+ cluster_id=cluster_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelClusterBillingDetailsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_cluster_details_with_http_info(
+ self,
+ cluster_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ResourceLevelClusterBillingDetailsResponseModel]:
+ """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 cluster_id: (required)
+ :type cluster_id: int
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_cluster_details_serialize(
+ cluster_id=cluster_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelClusterBillingDetailsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_cluster_details_without_preload_content(
+ self,
+ cluster_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """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 cluster_id: (required)
+ :type cluster_id: int
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_cluster_details_serialize(
+ cluster_id=cluster_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelClusterBillingDetailsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_cluster_details_serialize(
+ self,
+ cluster_id,
+ start_date,
+ end_date,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if cluster_id is not None:
+ _path_params['cluster_id'] = cluster_id
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/history/cluster/{cluster_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_contract(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by Contract \"Description\" or \"ID\"")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """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'
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by Contract \"Description\" or \"ID\"
+ :type search: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_contract_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_contract_with_http_info(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by Contract \"Description\" or \"ID\"")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """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'
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by Contract \"Description\" or \"ID\"
+ :type search: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_contract_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_contract_without_preload_content(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by Contract \"Description\" or \"ID\"")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """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'
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by Contract \"Description\" or \"ID\"
+ :type search: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_contract_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_contract_serialize(
+ self,
+ start_date,
+ end_date,
+ search,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ if search is not None:
+
+ _query_params.append(('search', search))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/history/contract',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_data_synthesis(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> TokenBasedBillingHistoryResponse:
+ """Retrieve Billing History of data synthesis for a specific Billing Cycle
+
+ User will recieve billing history of data_synthesis for the specified billing cycle.
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_data_synthesis_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TokenBasedBillingHistoryResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_data_synthesis_with_http_info(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[TokenBasedBillingHistoryResponse]:
+ """Retrieve Billing History of data synthesis for a specific Billing Cycle
+
+ User will recieve billing history of data_synthesis for the specified billing cycle.
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_data_synthesis_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TokenBasedBillingHistoryResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_data_synthesis_without_preload_content(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Retrieve Billing History of data synthesis for a specific Billing Cycle
+
+ User will recieve billing history of data_synthesis for the specified billing cycle.
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_data_synthesis_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TokenBasedBillingHistoryResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_data_synthesis_serialize(
+ self,
+ start_date,
+ end_date,
+ search,
+ per_page,
+ page,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ if search is not None:
+
+ _query_params.append(('search', search))
+
+ if per_page is not None:
+
+ _query_params.append(('per_page', per_page))
+
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/history/data_synthesis',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_data_synthesis_details(
+ self,
+ resource_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> DataSynthesisBillingHistoryDetailsResponseSchema:
+ """get_user_billing_history_data_synthesis_details
+
+ 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 resource_id: (required)
+ :type resource_id: int
+ :param start_date: YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_data_synthesis_details_serialize(
+ resource_id=resource_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataSynthesisBillingHistoryDetailsResponseSchema",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_data_synthesis_details_with_http_info(
+ self,
+ resource_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[DataSynthesisBillingHistoryDetailsResponseSchema]:
+ """get_user_billing_history_data_synthesis_details
+
+ 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 resource_id: (required)
+ :type resource_id: int
+ :param start_date: YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_data_synthesis_details_serialize(
+ resource_id=resource_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataSynthesisBillingHistoryDetailsResponseSchema",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_data_synthesis_details_without_preload_content(
+ self,
+ resource_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_user_billing_history_data_synthesis_details
+
+ 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 resource_id: (required)
+ :type resource_id: int
+ :param start_date: YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_data_synthesis_details_serialize(
+ resource_id=resource_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "DataSynthesisBillingHistoryDetailsResponseSchema",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_data_synthesis_details_serialize(
+ self,
+ resource_id,
+ start_date,
+ end_date,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if resource_id is not None:
+ _path_params['resource_id'] = resource_id
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/history/data_synthesis/{resource_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_fine_tuning(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> WorkloadBillingHistoryResponse:
+ """Retrieve Billing History of model evaluation for a specific Billing Cycle
+
+ User will recieve billing history of fine_tuning for the specified billing cycle.
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_fine_tuning_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "WorkloadBillingHistoryResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_fine_tuning_with_http_info(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[WorkloadBillingHistoryResponse]:
+ """Retrieve Billing History of model evaluation for a specific Billing Cycle
+
+ User will recieve billing history of fine_tuning for the specified billing cycle.
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_fine_tuning_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "WorkloadBillingHistoryResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_fine_tuning_without_preload_content(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Retrieve Billing History of model evaluation for a specific Billing Cycle
+
+ User will recieve billing history of fine_tuning for the specified billing cycle.
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_fine_tuning_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "WorkloadBillingHistoryResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_fine_tuning_serialize(
+ self,
+ start_date,
+ end_date,
+ search,
+ per_page,
+ page,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ if search is not None:
+
+ _query_params.append(('search', search))
+
+ if per_page is not None:
+
+ _query_params.append(('per_page', per_page))
+
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/history/fine_tuning',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_fine_tuning_details(
+ self,
+ resource_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ResourceLevelVolumeBillingDetailsResponseModel:
+ """Retrieve Billing History of a Specific Fine Tuning for a specific Billing Cycle
+
+ Retrieve billing history of a specific Fine tunning 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 resource_id: (required)
+ :type resource_id: int
+ :param start_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_fine_tuning_details_serialize(
+ resource_id=resource_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVolumeBillingDetailsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_fine_tuning_details_with_http_info(
+ self,
+ resource_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ResourceLevelVolumeBillingDetailsResponseModel]:
+ """Retrieve Billing History of a Specific Fine Tuning for a specific Billing Cycle
+
+ Retrieve billing history of a specific Fine tunning 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 resource_id: (required)
+ :type resource_id: int
+ :param start_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_fine_tuning_details_serialize(
+ resource_id=resource_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVolumeBillingDetailsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_fine_tuning_details_without_preload_content(
+ self,
+ resource_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Retrieve Billing History of a Specific Fine Tuning for a specific Billing Cycle
+
+ Retrieve billing history of a specific Fine tunning 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 resource_id: (required)
+ :type resource_id: int
+ :param start_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_fine_tuning_details_serialize(
+ resource_id=resource_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVolumeBillingDetailsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_fine_tuning_details_serialize(
+ self,
+ resource_id,
+ start_date,
+ end_date,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if resource_id is not None:
+ _path_params['resource_id'] = resource_id
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/history/fine_tuning/{resource_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_model_evaluation(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> TokenBasedBillingHistoryResponse:
+ """Retrieve Billing History of model evaluation for a specific Billing Cycle
+
+ User will recieve billing history of model_evaluation for the specified billing cycle.
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_model_evaluation_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TokenBasedBillingHistoryResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_model_evaluation_with_http_info(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[TokenBasedBillingHistoryResponse]:
+ """Retrieve Billing History of model evaluation for a specific Billing Cycle
+
+ User will recieve billing history of model_evaluation for the specified billing cycle.
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_model_evaluation_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TokenBasedBillingHistoryResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_model_evaluation_without_preload_content(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Retrieve Billing History of model evaluation for a specific Billing Cycle
+
+ User will recieve billing history of model_evaluation for the specified billing cycle.
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_model_evaluation_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TokenBasedBillingHistoryResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_model_evaluation_serialize(
+ self,
+ start_date,
+ end_date,
+ search,
+ per_page,
+ page,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ if search is not None:
+
+ _query_params.append(('search', search))
+
+ if per_page is not None:
+
+ _query_params.append(('per_page', per_page))
+
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/history/model_evaluation',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_model_evaluation_details(
+ self,
+ resource_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ModelEvaluationBillingHistoryDetailsResponseSchema:
+ """get_user_billing_history_model_evaluation_details
+
+ 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 resource_id: (required)
+ :type resource_id: int
+ :param start_date: YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_model_evaluation_details_serialize(
+ resource_id=resource_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ModelEvaluationBillingHistoryDetailsResponseSchema",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_model_evaluation_details_with_http_info(
+ self,
+ resource_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ModelEvaluationBillingHistoryDetailsResponseSchema]:
+ """get_user_billing_history_model_evaluation_details
+
+ 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 resource_id: (required)
+ :type resource_id: int
+ :param start_date: YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_model_evaluation_details_serialize(
+ resource_id=resource_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ModelEvaluationBillingHistoryDetailsResponseSchema",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_model_evaluation_details_without_preload_content(
+ self,
+ resource_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_user_billing_history_model_evaluation_details
+
+ 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 resource_id: (required)
+ :type resource_id: int
+ :param start_date: YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_model_evaluation_details_serialize(
+ resource_id=resource_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ModelEvaluationBillingHistoryDetailsResponseSchema",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_model_evaluation_details_serialize(
+ self,
+ resource_id,
+ start_date,
+ end_date,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if resource_id is not None:
+ _path_params['resource_id'] = resource_id
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/history/model_evaluation/{resource_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_serverless_inference(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> TokenBasedBillingHistoryResponse:
+ """Retrieve Billing History of serverless inference for a specific Billing Cycle
+
+ User will recieve billing history of serverless_inference for the specified billing cycle.
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_serverless_inference_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TokenBasedBillingHistoryResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_serverless_inference_with_http_info(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[TokenBasedBillingHistoryResponse]:
+ """Retrieve Billing History of serverless inference for a specific Billing Cycle
+
+ User will recieve billing history of serverless_inference for the specified billing cycle.
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_serverless_inference_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TokenBasedBillingHistoryResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_serverless_inference_without_preload_content(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Retrieve Billing History of serverless inference for a specific Billing Cycle
+
+ User will recieve billing history of serverless_inference for the specified billing cycle.
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_serverless_inference_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "TokenBasedBillingHistoryResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_serverless_inference_serialize(
+ self,
+ start_date,
+ end_date,
+ search,
+ per_page,
+ page,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ if search is not None:
+
+ _query_params.append(('search', search))
+
+ if per_page is not None:
+
+ _query_params.append(('per_page', per_page))
+
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/history/serverless_inference',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_serverless_inference_details(
+ self,
+ resource_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ServerlessInferencedBillingHistoryDetailsResponseSchema:
+ """get_user_billing_history_serverless_inference_details
+
+ 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 resource_id: (required)
+ :type resource_id: int
+ :param start_date: YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_serverless_inference_details_serialize(
+ resource_id=resource_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ServerlessInferencedBillingHistoryDetailsResponseSchema",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_serverless_inference_details_with_http_info(
+ self,
+ resource_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ServerlessInferencedBillingHistoryDetailsResponseSchema]:
+ """get_user_billing_history_serverless_inference_details
+
+ 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 resource_id: (required)
+ :type resource_id: int
+ :param start_date: YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_serverless_inference_details_serialize(
+ resource_id=resource_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ServerlessInferencedBillingHistoryDetailsResponseSchema",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_serverless_inference_details_without_preload_content(
+ self,
+ resource_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_user_billing_history_serverless_inference_details
+
+ 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 resource_id: (required)
+ :type resource_id: int
+ :param start_date: YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_serverless_inference_details_serialize(
+ resource_id=resource_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ServerlessInferencedBillingHistoryDetailsResponseSchema",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_serverless_inference_details_serialize(
+ self,
+ resource_id,
+ start_date,
+ end_date,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if resource_id is not None:
+ _path_params['resource_id'] = resource_id
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/history/serverless_inference/{resource_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_snapshot(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ResourceLevelVolumeBillingHistoryResponseModel:
+ """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'
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_snapshot_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVolumeBillingHistoryResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_snapshot_with_http_info(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ResourceLevelVolumeBillingHistoryResponseModel]:
+ """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'
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_snapshot_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVolumeBillingHistoryResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_snapshot_without_preload_content(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """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'
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_snapshot_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVolumeBillingHistoryResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_snapshot_serialize(
+ self,
+ start_date,
+ end_date,
+ search,
+ per_page,
+ page,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ if search is not None:
+
+ _query_params.append(('search', search))
+
+ if per_page is not None:
+
+ _query_params.append(('per_page', per_page))
+
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/history/snapshot',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_snapshot_details(
+ self,
+ snapshot_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ResourceLevelVolumeBillingDetailsResponseModel:
+ """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 snapshot_id: (required)
+ :type snapshot_id: int
+ :param start_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_snapshot_details_serialize(
+ snapshot_id=snapshot_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVolumeBillingDetailsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_snapshot_details_with_http_info(
+ self,
+ snapshot_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ResourceLevelVolumeBillingDetailsResponseModel]:
+ """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 snapshot_id: (required)
+ :type snapshot_id: int
+ :param start_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_snapshot_details_serialize(
+ snapshot_id=snapshot_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVolumeBillingDetailsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_snapshot_details_without_preload_content(
+ self,
+ snapshot_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Datetime should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """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 snapshot_id: (required)
+ :type snapshot_id: int
+ :param start_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Datetime should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_snapshot_details_serialize(
+ snapshot_id=snapshot_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVolumeBillingDetailsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_snapshot_details_serialize(
+ self,
+ snapshot_id,
+ start_date,
+ end_date,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if snapshot_id is not None:
+ _path_params['snapshot_id'] = snapshot_id
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/history/snapshot/{snapshot_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_vm2(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ResourceLevelVmBillingHistoryResponseModel:
+ """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 start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_vm2_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVmBillingHistoryResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_vm2_with_http_info(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ResourceLevelVmBillingHistoryResponseModel]:
+ """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 start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_vm2_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVmBillingHistoryResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_vm2_without_preload_content(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """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 start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_vm2_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVmBillingHistoryResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_vm2_serialize(
+ self,
+ start_date,
+ end_date,
+ search,
+ per_page,
+ page,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ if search is not None:
+
+ _query_params.append(('search', search))
+
+ if per_page is not None:
+
+ _query_params.append(('per_page', per_page))
+
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/history/virtual-machine',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_vm_details2(
+ self,
+ vm_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ResourceLevelVMBillingDetailsResponseModel:
+ """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 vm_id: (required)
+ :type vm_id: int
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_vm_details2_serialize(
+ vm_id=vm_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVMBillingDetailsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_vm_details2_with_http_info(
+ self,
+ vm_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ResourceLevelVMBillingDetailsResponseModel]:
+ """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 vm_id: (required)
+ :type vm_id: int
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_vm_details2_serialize(
+ vm_id=vm_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVMBillingDetailsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_vm_details2_without_preload_content(
+ self,
+ vm_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """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 vm_id: (required)
+ :type vm_id: int
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_vm_details2_serialize(
+ vm_id=vm_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVMBillingDetailsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_vm_details2_serialize(
+ self,
+ vm_id,
+ start_date,
+ end_date,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/history/virtual-machine/{vm_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_vm_sub_resource_graph2(
+ self,
+ vm_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SubResourcesGraphResponseModel:
+ """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 vm_id: (required)
+ :type vm_id: int
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_vm_sub_resource_graph2_serialize(
+ vm_id=vm_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SubResourcesGraphResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_vm_sub_resource_graph2_with_http_info(
+ self,
+ vm_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SubResourcesGraphResponseModel]:
+ """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 vm_id: (required)
+ :type vm_id: int
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_vm_sub_resource_graph2_serialize(
+ vm_id=vm_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SubResourcesGraphResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_vm_sub_resource_graph2_without_preload_content(
+ self,
+ vm_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """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 vm_id: (required)
+ :type vm_id: int
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_vm_sub_resource_graph2_serialize(
+ vm_id=vm_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SubResourcesGraphResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_vm_sub_resource_graph2_serialize(
+ self,
+ vm_id,
+ start_date,
+ end_date,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/virtual-machine/{vm_id}/sub-resource/graph',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_vm_total_costs(
+ self,
+ vm_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SubResourcesCostsResponseModel:
+ """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 vm_id: (required)
+ :type vm_id: int
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_vm_total_costs_serialize(
+ vm_id=vm_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SubResourcesCostsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_vm_total_costs_with_http_info(
+ self,
+ vm_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SubResourcesCostsResponseModel]:
+ """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 vm_id: (required)
+ :type vm_id: int
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_vm_total_costs_serialize(
+ vm_id=vm_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SubResourcesCostsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_user_billing_history_vm_total_costs_without_preload_content(
+ self,
+ vm_id: StrictInt,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """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 vm_id: (required)
+ :type vm_id: int
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_vm_total_costs_serialize(
+ vm_id=vm_id,
+ start_date=start_date,
+ end_date=end_date,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SubResourcesCostsResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_user_billing_history_vm_total_costs_serialize(
+ self,
+ vm_id,
+ start_date,
+ end_date,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
+ # process the query parameters
+ if start_date is not None:
+
+ _query_params.append(('start_date', start_date))
+
+ if end_date is not None:
+
+ _query_params.append(('end_date', end_date))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/billing/virtual-machine/{vm_id}/sub-resource',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_user_billing_history_volume2(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ResourceLevelVolumeBillingHistoryResponseModel:
+ """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'
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_volume2_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVolumeBillingHistoryResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_user_billing_history_volume2_with_http_info(
+ self,
+ start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ResourceLevelVolumeBillingHistoryResponseModel]:
+ """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'
+
+ :param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type start_date: str
+ :param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
+ :type end_date: str
+ :param search: Search by resource \"Name\" or \"ID\"
+ :type search: str
+ :param per_page: Number of items to return per page
+ :type per_page: int
+ :param page: Page number
+ :type page: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_user_billing_history_volume2_serialize(
+ start_date=start_date,
+ end_date=end_date,
+ search=search,
+ per_page=per_page,
+ page=page,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResourceLevelVolumeBillingHistoryResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -2953,13 +8787,13 @@ def retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle_wit
@validate_call
- def retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle_without_preload_content(
+ def get_user_billing_history_volume2_without_preload_content(
self,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search by Virtual Machine \"Name\" or \"ID\"")] = None,
- per_page: Annotated[Optional[StrictStr], Field(description="Number of items to return per page")] = None,
- page: Annotated[Optional[StrictStr], Field(description="Page number")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search by resource \"Name\" or \"ID\"")] = None,
+ per_page: Annotated[Optional[StrictInt], Field(description="Number of items to return per page")] = None,
+ page: Annotated[Optional[StrictInt], Field(description="Page number")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2973,20 +8807,20 @@ def retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle_wit
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve Billing History of Virtual Machine for a specific Billing Cycle
+ """Retrieve Billing History of Volume 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'
+ 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'
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
- :param search: Search by Virtual Machine \"Name\" or \"ID\"
+ :param search: Search by resource \"Name\" or \"ID\"
:type search: str
:param per_page: Number of items to return per page
- :type per_page: str
+ :type per_page: int
:param page: Page number
- :type page: str
+ :type page: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3009,7 +8843,7 @@ def retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle_wit
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle_serialize(
+ _param = self._get_user_billing_history_volume2_serialize(
start_date=start_date,
end_date=end_date,
search=search,
@@ -3022,7 +8856,7 @@ def retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle_wit
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVmBillingHistoryResponseModel",
+ '200': "ResourceLevelVolumeBillingHistoryResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -3036,7 +8870,7 @@ def retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle_wit
return response_data.response
- def _retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle_serialize(
+ def _get_user_billing_history_volume2_serialize(
self,
start_date,
end_date,
@@ -3101,13 +8935,12 @@ def _retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle_se
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/billing/billing/history/virtual-machine',
+ resource_path='/billing/billing/history/volume',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -3124,13 +8957,11 @@ def _retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle_se
@validate_call
- def retrieve_billing_history_of_volume_for_a_specific_billing_cycle(
+ def get_user_billing_history_volume_details2(
self,
+ volume_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search by Volume \"Name\" or \"ID\"")] = None,
- per_page: Annotated[Optional[StrictStr], Field(description="Number of items to return per page")] = None,
- page: Annotated[Optional[StrictStr], Field(description="Page number")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -3143,21 +8974,17 @@ def retrieve_billing_history_of_volume_for_a_specific_billing_cycle(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ResourceLevelVolumeBillingHistoryResponseModel:
- """Retrieve Billing History of Volume for a specific Billing Cycle
+ ) -> ResourceLevelVolumeBillingDetailsResponseModel:
+ """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'.
+ :param volume_id: (required)
+ :type volume_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
- :param search: Search by Volume \"Name\" or \"ID\"
- :type search: str
- :param per_page: Number of items to return per page
- :type per_page: str
- :param page: Page number
- :type page: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3180,12 +9007,10 @@ def retrieve_billing_history_of_volume_for_a_specific_billing_cycle(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_volume_for_a_specific_billing_cycle_serialize(
+ _param = self._get_user_billing_history_volume_details2_serialize(
+ volume_id=volume_id,
start_date=start_date,
end_date=end_date,
- search=search,
- per_page=per_page,
- page=page,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -3193,7 +9018,7 @@ def retrieve_billing_history_of_volume_for_a_specific_billing_cycle(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVolumeBillingHistoryResponseModel",
+ '200': "ResourceLevelVolumeBillingDetailsResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -3212,13 +9037,11 @@ def retrieve_billing_history_of_volume_for_a_specific_billing_cycle(
@validate_call
- def retrieve_billing_history_of_volume_for_a_specific_billing_cycle_with_http_info(
+ def get_user_billing_history_volume_details2_with_http_info(
self,
+ volume_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search by Volume \"Name\" or \"ID\"")] = None,
- per_page: Annotated[Optional[StrictStr], Field(description="Number of items to return per page")] = None,
- page: Annotated[Optional[StrictStr], Field(description="Page number")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -3231,21 +9054,17 @@ def retrieve_billing_history_of_volume_for_a_specific_billing_cycle_with_http_in
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ResourceLevelVolumeBillingHistoryResponseModel]:
- """Retrieve Billing History of Volume for a specific Billing Cycle
+ ) -> ApiResponse[ResourceLevelVolumeBillingDetailsResponseModel]:
+ """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'.
+ :param volume_id: (required)
+ :type volume_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
- :param search: Search by Volume \"Name\" or \"ID\"
- :type search: str
- :param per_page: Number of items to return per page
- :type per_page: str
- :param page: Page number
- :type page: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3268,12 +9087,10 @@ def retrieve_billing_history_of_volume_for_a_specific_billing_cycle_with_http_in
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_volume_for_a_specific_billing_cycle_serialize(
+ _param = self._get_user_billing_history_volume_details2_serialize(
+ volume_id=volume_id,
start_date=start_date,
end_date=end_date,
- search=search,
- per_page=per_page,
- page=page,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -3281,7 +9098,7 @@ def retrieve_billing_history_of_volume_for_a_specific_billing_cycle_with_http_in
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVolumeBillingHistoryResponseModel",
+ '200': "ResourceLevelVolumeBillingDetailsResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -3300,13 +9117,11 @@ def retrieve_billing_history_of_volume_for_a_specific_billing_cycle_with_http_in
@validate_call
- def retrieve_billing_history_of_volume_for_a_specific_billing_cycle_without_preload_content(
+ def get_user_billing_history_volume_details2_without_preload_content(
self,
+ volume_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search by Volume \"Name\" or \"ID\"")] = None,
- per_page: Annotated[Optional[StrictStr], Field(description="Number of items to return per page")] = None,
- page: Annotated[Optional[StrictStr], Field(description="Page number")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -3320,20 +9135,16 @@ def retrieve_billing_history_of_volume_for_a_specific_billing_cycle_without_prel
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """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'.
+ :param volume_id: (required)
+ :type volume_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type end_date: str
- :param search: Search by Volume \"Name\" or \"ID\"
- :type search: str
- :param per_page: Number of items to return per page
- :type per_page: str
- :param page: Page number
- :type page: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3356,12 +9167,10 @@ def retrieve_billing_history_of_volume_for_a_specific_billing_cycle_without_prel
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_history_of_volume_for_a_specific_billing_cycle_serialize(
+ _param = self._get_user_billing_history_volume_details2_serialize(
+ volume_id=volume_id,
start_date=start_date,
end_date=end_date,
- search=search,
- per_page=per_page,
- page=page,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -3369,7 +9178,7 @@ def retrieve_billing_history_of_volume_for_a_specific_billing_cycle_without_prel
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVolumeBillingHistoryResponseModel",
+ '200': "ResourceLevelVolumeBillingDetailsResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -3383,13 +9192,11 @@ def retrieve_billing_history_of_volume_for_a_specific_billing_cycle_without_prel
return response_data.response
- def _retrieve_billing_history_of_volume_for_a_specific_billing_cycle_serialize(
+ def _get_user_billing_history_volume_details2_serialize(
self,
+ volume_id,
start_date,
end_date,
- search,
- per_page,
- page,
_request_auth,
_content_type,
_headers,
@@ -3411,6 +9218,8 @@ def _retrieve_billing_history_of_volume_for_a_specific_billing_cycle_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
+ if volume_id is not None:
+ _path_params['volume_id'] = volume_id
# process the query parameters
if start_date is not None:
@@ -3420,18 +9229,6 @@ def _retrieve_billing_history_of_volume_for_a_specific_billing_cycle_serialize(
_query_params.append(('end_date', end_date))
- if search is not None:
-
- _query_params.append(('search', search))
-
- if per_page is not None:
-
- _query_params.append(('per_page', per_page))
-
- if page is not None:
-
- _query_params.append(('page', page))
-
# process the header parameters
# process the form parameters
# process the body parameter
@@ -3448,13 +9245,12 @@ def _retrieve_billing_history_of_volume_for_a_specific_billing_cycle_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/billing/billing/history/volume',
+ resource_path='/billing/billing/history/volume/{volume_id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -3471,9 +9267,9 @@ def _retrieve_billing_history_of_volume_for_a_specific_billing_cycle_serialize(
@validate_call
- def retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle(
+ def get_user_billing_model_evaluation_details_graph(
self,
- snapshot_id: StrictInt,
+ resource_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -3488,13 +9284,13 @@ def retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billin
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ResourceLevelVolumeGraphBillingDetailsResponseModel:
- """Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
+ ) -> ModelEvaluationBillingHistoryDetailsResponseSchema:
+ """Retrieve hourly cost datapoints of a Specific Model Evaluation for a specific
- 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 hourly cost datapoints for a model evaluation for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
- :param snapshot_id: (required)
- :type snapshot_id: int
+ :param resource_id: (required)
+ :type resource_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -3521,8 +9317,8 @@ def retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billin
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle_serialize(
- snapshot_id=snapshot_id,
+ _param = self._get_user_billing_model_evaluation_details_graph_serialize(
+ resource_id=resource_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -3532,7 +9328,7 @@ def retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billin
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVolumeGraphBillingDetailsResponseModel",
+ '200': "ModelEvaluationBillingHistoryDetailsResponseSchema",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -3551,9 +9347,9 @@ def retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billin
@validate_call
- def retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle_with_http_info(
+ def get_user_billing_model_evaluation_details_graph_with_http_info(
self,
- snapshot_id: StrictInt,
+ resource_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -3568,13 +9364,13 @@ def retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billin
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ResourceLevelVolumeGraphBillingDetailsResponseModel]:
- """Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
+ ) -> ApiResponse[ModelEvaluationBillingHistoryDetailsResponseSchema]:
+ """Retrieve hourly cost datapoints of a Specific Model Evaluation for a specific
- 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 hourly cost datapoints for a model evaluation for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
- :param snapshot_id: (required)
- :type snapshot_id: int
+ :param resource_id: (required)
+ :type resource_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -3601,8 +9397,8 @@ def retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billin
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle_serialize(
- snapshot_id=snapshot_id,
+ _param = self._get_user_billing_model_evaluation_details_graph_serialize(
+ resource_id=resource_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -3612,7 +9408,7 @@ def retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billin
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVolumeGraphBillingDetailsResponseModel",
+ '200': "ModelEvaluationBillingHistoryDetailsResponseSchema",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -3631,9 +9427,9 @@ def retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billin
@validate_call
- def retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle_without_preload_content(
+ def get_user_billing_model_evaluation_details_graph_without_preload_content(
self,
- snapshot_id: StrictInt,
+ resource_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -3649,12 +9445,12 @@ def retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billin
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
+ """Retrieve hourly cost datapoints of a Specific Model Evaluation for a specific
- 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 hourly cost datapoints for a model evaluation for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
- :param snapshot_id: (required)
- :type snapshot_id: int
+ :param resource_id: (required)
+ :type resource_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -3681,8 +9477,8 @@ def retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billin
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle_serialize(
- snapshot_id=snapshot_id,
+ _param = self._get_user_billing_model_evaluation_details_graph_serialize(
+ resource_id=resource_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -3692,7 +9488,7 @@ def retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billin
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVolumeGraphBillingDetailsResponseModel",
+ '200': "ModelEvaluationBillingHistoryDetailsResponseSchema",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -3706,9 +9502,9 @@ def retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billin
return response_data.response
- def _retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle_serialize(
+ def _get_user_billing_model_evaluation_details_graph_serialize(
self,
- snapshot_id,
+ resource_id,
start_date,
end_date,
_request_auth,
@@ -3732,8 +9528,8 @@ def _retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billi
_body_params: Optional[bytes] = None
# process the path parameters
- if snapshot_id is not None:
- _path_params['snapshot_id'] = snapshot_id
+ if resource_id is not None:
+ _path_params['resource_id'] = resource_id
# process the query parameters
if start_date is not None:
@@ -3759,13 +9555,12 @@ def _retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billi
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/billing/billing/history/snapshot/{snapshot_id}/graph',
+ resource_path='/billing/billing/history/model_evaluation/{resource_id}/graph',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -3782,9 +9577,9 @@ def _retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billi
@validate_call
- def retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle(
+ def get_user_billing_serverless_inference_details_graph(
self,
- vm_id: StrictInt,
+ resource_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -3799,13 +9594,13 @@ def retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ResourceLevelVmGraphBillingDetailsResponseModel:
- """Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
+ ) -> ServerlessInferencedBillingHistoryDetailsResponseSchema:
+ """Retrieve hourly cost datapoints of a Specific Serverless Inference for a specific
- User will recieve hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+ User will recieve hourly cost datapoints for a serverles inference for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
- :param vm_id: (required)
- :type vm_id: int
+ :param resource_id: (required)
+ :type resource_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -3832,8 +9627,8 @@ def retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle_serialize(
- vm_id=vm_id,
+ _param = self._get_user_billing_serverless_inference_details_graph_serialize(
+ resource_id=resource_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -3843,7 +9638,7 @@ def retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVmGraphBillingDetailsResponseModel",
+ '200': "ServerlessInferencedBillingHistoryDetailsResponseSchema",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -3862,9 +9657,9 @@ def retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific
@validate_call
- def retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle_with_http_info(
+ def get_user_billing_serverless_inference_details_graph_with_http_info(
self,
- vm_id: StrictInt,
+ resource_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -3879,13 +9674,13 @@ def retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ResourceLevelVmGraphBillingDetailsResponseModel]:
- """Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
+ ) -> ApiResponse[ServerlessInferencedBillingHistoryDetailsResponseSchema]:
+ """Retrieve hourly cost datapoints of a Specific Serverless Inference for a specific
- User will recieve hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+ User will recieve hourly cost datapoints for a serverles inference for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
- :param vm_id: (required)
- :type vm_id: int
+ :param resource_id: (required)
+ :type resource_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -3912,8 +9707,8 @@ def retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle_serialize(
- vm_id=vm_id,
+ _param = self._get_user_billing_serverless_inference_details_graph_serialize(
+ resource_id=resource_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -3923,7 +9718,7 @@ def retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVmGraphBillingDetailsResponseModel",
+ '200': "ServerlessInferencedBillingHistoryDetailsResponseSchema",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -3942,9 +9737,9 @@ def retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific
@validate_call
- def retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle_without_preload_content(
+ def get_user_billing_serverless_inference_details_graph_without_preload_content(
self,
- vm_id: StrictInt,
+ resource_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -3960,12 +9755,12 @@ def retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
+ """Retrieve hourly cost datapoints of a Specific Serverless Inference for a specific
- User will recieve hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
+ User will recieve hourly cost datapoints for a serverles inference for a specified billing cycle. This data will include 'incurred_bill' graph datapoints. billing cycle
- :param vm_id: (required)
- :type vm_id: int
+ :param resource_id: (required)
+ :type resource_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -3992,8 +9787,8 @@ def retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle_serialize(
- vm_id=vm_id,
+ _param = self._get_user_billing_serverless_inference_details_graph_serialize(
+ resource_id=resource_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -4003,7 +9798,7 @@ def retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResourceLevelVmGraphBillingDetailsResponseModel",
+ '200': "ServerlessInferencedBillingHistoryDetailsResponseSchema",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -4017,9 +9812,9 @@ def retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific
return response_data.response
- def _retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle_serialize(
+ def _get_user_billing_serverless_inference_details_graph_serialize(
self,
- vm_id,
+ resource_id,
start_date,
end_date,
_request_auth,
@@ -4043,8 +9838,8 @@ def _retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specifi
_body_params: Optional[bytes] = None
# process the path parameters
- if vm_id is not None:
- _path_params['vm_id'] = vm_id
+ if resource_id is not None:
+ _path_params['resource_id'] = resource_id
# process the query parameters
if start_date is not None:
@@ -4070,13 +9865,12 @@ def _retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specifi
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/billing/billing/history/virtual-machine/{vm_id}/graph',
+ resource_path='/billing/billing/history/serverless_inference/{resource_id}/graph',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -4093,9 +9887,9 @@ def _retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specifi
@validate_call
- def retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle(
+ def get_user_billing_snapshot_details_graph(
self,
- volume_id: StrictInt,
+ snapshot_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -4111,12 +9905,12 @@ def retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ResourceLevelVolumeGraphBillingDetailsResponseModel:
- """Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
+ """Retrieve hourly cost datapoints of a Specific Snapshot 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 recieve hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- :param volume_id: (required)
- :type volume_id: int
+ :param snapshot_id: (required)
+ :type snapshot_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -4143,8 +9937,8 @@ def retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle_serialize(
- volume_id=volume_id,
+ _param = self._get_user_billing_snapshot_details_graph_serialize(
+ snapshot_id=snapshot_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -4173,9 +9967,9 @@ def retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_
@validate_call
- def retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle_with_http_info(
+ def get_user_billing_snapshot_details_graph_with_http_info(
self,
- volume_id: StrictInt,
+ snapshot_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -4191,12 +9985,12 @@ def retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[ResourceLevelVolumeGraphBillingDetailsResponseModel]:
- """Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
+ """Retrieve hourly cost datapoints of a Specific Snapshot 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 recieve hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- :param volume_id: (required)
- :type volume_id: int
+ :param snapshot_id: (required)
+ :type snapshot_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -4223,8 +10017,8 @@ def retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle_serialize(
- volume_id=volume_id,
+ _param = self._get_user_billing_snapshot_details_graph_serialize(
+ snapshot_id=snapshot_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -4253,9 +10047,9 @@ def retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_
@validate_call
- def retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle_without_preload_content(
+ def get_user_billing_snapshot_details_graph_without_preload_content(
self,
- volume_id: StrictInt,
+ snapshot_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -4271,12 +10065,12 @@ def retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
+ """Retrieve hourly cost datapoints of a Specific Snapshot 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 recieve hourly cost datapoints for a Snapshot for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- :param volume_id: (required)
- :type volume_id: int
+ :param snapshot_id: (required)
+ :type snapshot_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -4303,8 +10097,8 @@ def retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle_serialize(
- volume_id=volume_id,
+ _param = self._get_user_billing_snapshot_details_graph_serialize(
+ snapshot_id=snapshot_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -4328,9 +10122,9 @@ def retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_
return response_data.response
- def _retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle_serialize(
+ def _get_user_billing_snapshot_details_graph_serialize(
self,
- volume_id,
+ snapshot_id,
start_date,
end_date,
_request_auth,
@@ -4354,8 +10148,8 @@ def _retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing
_body_params: Optional[bytes] = None
# process the path parameters
- if volume_id is not None:
- _path_params['volume_id'] = volume_id
+ if snapshot_id is not None:
+ _path_params['snapshot_id'] = snapshot_id
# process the query parameters
if start_date is not None:
@@ -4381,13 +10175,12 @@ def _retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/billing/billing/history/volume/{volume_id}/graph',
+ resource_path='/billing/billing/history/snapshot/{snapshot_id}/graph',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -4404,7 +10197,7 @@ def _retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing
@validate_call
- def retrieve_sub_resources_historical_cost_datapoints_of_a_virtual(
+ def get_user_billing_vm_details_graph2(
self,
vm_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
@@ -4421,10 +10214,10 @@ def retrieve_sub_resources_historical_cost_datapoints_of_a_virtual(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> SubResourcesGraphResponseModel:
- """Retrieve Sub-Resources Historical Cost datapoints of a Virtual
+ ) -> ResourceLevelVmGraphBillingDetailsResponseModel:
+ """Retrieve hourly cost datapoints of a Specific Virtual Machine 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 recieve hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
:param vm_id: (required)
:type vm_id: int
@@ -4454,7 +10247,7 @@ def retrieve_sub_resources_historical_cost_datapoints_of_a_virtual(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_sub_resources_historical_cost_datapoints_of_a_virtual_serialize(
+ _param = self._get_user_billing_vm_details_graph2_serialize(
vm_id=vm_id,
start_date=start_date,
end_date=end_date,
@@ -4465,7 +10258,7 @@ def retrieve_sub_resources_historical_cost_datapoints_of_a_virtual(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "SubResourcesGraphResponseModel",
+ '200': "ResourceLevelVmGraphBillingDetailsResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -4484,7 +10277,7 @@ def retrieve_sub_resources_historical_cost_datapoints_of_a_virtual(
@validate_call
- def retrieve_sub_resources_historical_cost_datapoints_of_a_virtual_with_http_info(
+ def get_user_billing_vm_details_graph2_with_http_info(
self,
vm_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
@@ -4501,10 +10294,10 @@ def retrieve_sub_resources_historical_cost_datapoints_of_a_virtual_with_http_inf
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[SubResourcesGraphResponseModel]:
- """Retrieve Sub-Resources Historical Cost datapoints of a Virtual
+ ) -> ApiResponse[ResourceLevelVmGraphBillingDetailsResponseModel]:
+ """Retrieve hourly cost datapoints of a Specific Virtual Machine 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 recieve hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
:param vm_id: (required)
:type vm_id: int
@@ -4534,7 +10327,7 @@ def retrieve_sub_resources_historical_cost_datapoints_of_a_virtual_with_http_inf
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_sub_resources_historical_cost_datapoints_of_a_virtual_serialize(
+ _param = self._get_user_billing_vm_details_graph2_serialize(
vm_id=vm_id,
start_date=start_date,
end_date=end_date,
@@ -4545,7 +10338,7 @@ def retrieve_sub_resources_historical_cost_datapoints_of_a_virtual_with_http_inf
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "SubResourcesGraphResponseModel",
+ '200': "ResourceLevelVmGraphBillingDetailsResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -4564,7 +10357,7 @@ def retrieve_sub_resources_historical_cost_datapoints_of_a_virtual_with_http_inf
@validate_call
- def retrieve_sub_resources_historical_cost_datapoints_of_a_virtual_without_preload_content(
+ def get_user_billing_vm_details_graph2_without_preload_content(
self,
vm_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
@@ -4582,9 +10375,9 @@ def retrieve_sub_resources_historical_cost_datapoints_of_a_virtual_without_prelo
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve Sub-Resources Historical Cost datapoints of a Virtual
+ """Retrieve hourly cost datapoints of a Specific Virtual Machine 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 recieve hourly cost datapoints for a VM for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
:param vm_id: (required)
:type vm_id: int
@@ -4614,7 +10407,7 @@ def retrieve_sub_resources_historical_cost_datapoints_of_a_virtual_without_prelo
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_sub_resources_historical_cost_datapoints_of_a_virtual_serialize(
+ _param = self._get_user_billing_vm_details_graph2_serialize(
vm_id=vm_id,
start_date=start_date,
end_date=end_date,
@@ -4625,7 +10418,7 @@ def retrieve_sub_resources_historical_cost_datapoints_of_a_virtual_without_prelo
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "SubResourcesGraphResponseModel",
+ '200': "ResourceLevelVmGraphBillingDetailsResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -4639,7 +10432,7 @@ def retrieve_sub_resources_historical_cost_datapoints_of_a_virtual_without_prelo
return response_data.response
- def _retrieve_sub_resources_historical_cost_datapoints_of_a_virtual_serialize(
+ def _get_user_billing_vm_details_graph2_serialize(
self,
vm_id,
start_date,
@@ -4692,13 +10485,12 @@ def _retrieve_sub_resources_historical_cost_datapoints_of_a_virtual_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/billing/billing/virtual-machine/{vm_id}/sub-resource/graph',
+ resource_path='/billing/billing/history/virtual-machine/{vm_id}/graph',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -4715,9 +10507,9 @@ def _retrieve_sub_resources_historical_cost_datapoints_of_a_virtual_serialize(
@validate_call
- def retrieve_total_costs_and_non_discount_costs_for_sub_resources(
+ def get_user_billing_volume_details_graph(
self,
- vm_id: StrictInt,
+ volume_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -4732,13 +10524,13 @@ def retrieve_total_costs_and_non_discount_costs_for_sub_resources(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> SubResourcesCostsResponseModel:
- """Retrieve Total Costs and Non Discount Costs for Sub Resources
+ ) -> ResourceLevelVolumeGraphBillingDetailsResponseModel:
+ """Retrieve hourly cost datapoints of a Specific Volume 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 recieve hourly cost datapoints for a Volume for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- :param vm_id: (required)
- :type vm_id: int
+ :param volume_id: (required)
+ :type volume_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -4765,8 +10557,8 @@ def retrieve_total_costs_and_non_discount_costs_for_sub_resources(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_total_costs_and_non_discount_costs_for_sub_resources_serialize(
- vm_id=vm_id,
+ _param = self._get_user_billing_volume_details_graph_serialize(
+ volume_id=volume_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -4776,7 +10568,7 @@ def retrieve_total_costs_and_non_discount_costs_for_sub_resources(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "SubResourcesCostsResponseModel",
+ '200': "ResourceLevelVolumeGraphBillingDetailsResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -4795,9 +10587,9 @@ def retrieve_total_costs_and_non_discount_costs_for_sub_resources(
@validate_call
- def retrieve_total_costs_and_non_discount_costs_for_sub_resources_with_http_info(
+ def get_user_billing_volume_details_graph_with_http_info(
self,
- vm_id: StrictInt,
+ volume_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -4812,13 +10604,13 @@ def retrieve_total_costs_and_non_discount_costs_for_sub_resources_with_http_info
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[SubResourcesCostsResponseModel]:
- """Retrieve Total Costs and Non Discount Costs for Sub Resources
+ ) -> ApiResponse[ResourceLevelVolumeGraphBillingDetailsResponseModel]:
+ """Retrieve hourly cost datapoints of a Specific Volume 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 recieve hourly cost datapoints for a Volume for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- :param vm_id: (required)
- :type vm_id: int
+ :param volume_id: (required)
+ :type volume_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -4845,8 +10637,8 @@ def retrieve_total_costs_and_non_discount_costs_for_sub_resources_with_http_info
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_total_costs_and_non_discount_costs_for_sub_resources_serialize(
- vm_id=vm_id,
+ _param = self._get_user_billing_volume_details_graph_serialize(
+ volume_id=volume_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -4856,7 +10648,7 @@ def retrieve_total_costs_and_non_discount_costs_for_sub_resources_with_http_info
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "SubResourcesCostsResponseModel",
+ '200': "ResourceLevelVolumeGraphBillingDetailsResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -4875,9 +10667,9 @@ def retrieve_total_costs_and_non_discount_costs_for_sub_resources_with_http_info
@validate_call
- def retrieve_total_costs_and_non_discount_costs_for_sub_resources_without_preload_content(
+ def get_user_billing_volume_details_graph_without_preload_content(
self,
- vm_id: StrictInt,
+ volume_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
end_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
_request_timeout: Union[
@@ -4893,12 +10685,12 @@ def retrieve_total_costs_and_non_discount_costs_for_sub_resources_without_preloa
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve Total Costs and Non Discount Costs for Sub Resources
+ """Retrieve hourly cost datapoints of a Specific Volume 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 recieve hourly cost datapoints for a Volume for a specified billing cycle. This data will include 'incurred_bill' graph datapoints.
- :param vm_id: (required)
- :type vm_id: int
+ :param volume_id: (required)
+ :type volume_id: int
:param start_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
:type start_date: str
:param end_date: Date should be formatted in YYYY-MM-DDTHH:MM:SS
@@ -4925,8 +10717,8 @@ def retrieve_total_costs_and_non_discount_costs_for_sub_resources_without_preloa
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_total_costs_and_non_discount_costs_for_sub_resources_serialize(
- vm_id=vm_id,
+ _param = self._get_user_billing_volume_details_graph_serialize(
+ volume_id=volume_id,
start_date=start_date,
end_date=end_date,
_request_auth=_request_auth,
@@ -4936,7 +10728,7 @@ def retrieve_total_costs_and_non_discount_costs_for_sub_resources_without_preloa
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "SubResourcesCostsResponseModel",
+ '200': "ResourceLevelVolumeGraphBillingDetailsResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -4950,9 +10742,9 @@ def retrieve_total_costs_and_non_discount_costs_for_sub_resources_without_preloa
return response_data.response
- def _retrieve_total_costs_and_non_discount_costs_for_sub_resources_serialize(
+ def _get_user_billing_volume_details_graph_serialize(
self,
- vm_id,
+ volume_id,
start_date,
end_date,
_request_auth,
@@ -4976,8 +10768,8 @@ def _retrieve_total_costs_and_non_discount_costs_for_sub_resources_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if vm_id is not None:
- _path_params['vm_id'] = vm_id
+ if volume_id is not None:
+ _path_params['volume_id'] = volume_id
# process the query parameters
if start_date is not None:
@@ -5003,13 +10795,12 @@ def _retrieve_total_costs_and_non_discount_costs_for_sub_resources_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/billing/billing/virtual-machine/{vm_id}/sub-resource',
+ resource_path='/billing/billing/history/volume/{volume_id}/graph',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -5026,7 +10817,7 @@ def _retrieve_total_costs_and_non_discount_costs_for_sub_resources_serialize(
@validate_call
- def retrieve_vm_billing_events_history(
+ def get_user_vm_billing_events(
self,
vm_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
@@ -5076,7 +10867,7 @@ def retrieve_vm_billing_events_history(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_vm_billing_events_history_serialize(
+ _param = self._get_user_vm_billing_events_serialize(
vm_id=vm_id,
start_date=start_date,
end_date=end_date,
@@ -5105,7 +10896,7 @@ def retrieve_vm_billing_events_history(
@validate_call
- def retrieve_vm_billing_events_history_with_http_info(
+ def get_user_vm_billing_events_with_http_info(
self,
vm_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
@@ -5155,7 +10946,7 @@ def retrieve_vm_billing_events_history_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_vm_billing_events_history_serialize(
+ _param = self._get_user_vm_billing_events_serialize(
vm_id=vm_id,
start_date=start_date,
end_date=end_date,
@@ -5184,7 +10975,7 @@ def retrieve_vm_billing_events_history_with_http_info(
@validate_call
- def retrieve_vm_billing_events_history_without_preload_content(
+ def get_user_vm_billing_events_without_preload_content(
self,
vm_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
@@ -5234,7 +11025,7 @@ def retrieve_vm_billing_events_history_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_vm_billing_events_history_serialize(
+ _param = self._get_user_vm_billing_events_serialize(
vm_id=vm_id,
start_date=start_date,
end_date=end_date,
@@ -5258,7 +11049,7 @@ def retrieve_vm_billing_events_history_without_preload_content(
return response_data.response
- def _retrieve_vm_billing_events_history_serialize(
+ def _get_user_vm_billing_events_serialize(
self,
vm_id,
start_date,
@@ -5311,8 +11102,7 @@ def _retrieve_vm_billing_events_history_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -5334,7 +11124,7 @@ def _retrieve_vm_billing_events_history_serialize(
@validate_call
- def retrieve_volume_billing_events_history(
+ def get_user_volume_billing_events(
self,
volume_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
@@ -5384,7 +11174,7 @@ def retrieve_volume_billing_events_history(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_volume_billing_events_history_serialize(
+ _param = self._get_user_volume_billing_events_serialize(
volume_id=volume_id,
start_date=start_date,
end_date=end_date,
@@ -5413,7 +11203,7 @@ def retrieve_volume_billing_events_history(
@validate_call
- def retrieve_volume_billing_events_history_with_http_info(
+ def get_user_volume_billing_events_with_http_info(
self,
volume_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
@@ -5463,7 +11253,7 @@ def retrieve_volume_billing_events_history_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_volume_billing_events_history_serialize(
+ _param = self._get_user_volume_billing_events_serialize(
volume_id=volume_id,
start_date=start_date,
end_date=end_date,
@@ -5492,7 +11282,7 @@ def retrieve_volume_billing_events_history_with_http_info(
@validate_call
- def retrieve_volume_billing_events_history_without_preload_content(
+ def get_user_volume_billing_events_without_preload_content(
self,
volume_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
@@ -5542,7 +11332,7 @@ def retrieve_volume_billing_events_history_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_volume_billing_events_history_serialize(
+ _param = self._get_user_volume_billing_events_serialize(
volume_id=volume_id,
start_date=start_date,
end_date=end_date,
@@ -5566,7 +11356,7 @@ def retrieve_volume_billing_events_history_without_preload_content(
return response_data.response
- def _retrieve_volume_billing_events_history_serialize(
+ def _get_user_volume_billing_events_serialize(
self,
volume_id,
start_date,
@@ -5619,8 +11409,7 @@ def _retrieve_volume_billing_events_history_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -5642,10 +11431,10 @@ def _retrieve_volume_billing_events_history_serialize(
@validate_call
- def update_subscribe_or_unsubscribe_notification_threshold(
+ def put_organization_threshold(
self,
threshold_id: StrictInt,
- payload: Subscribeorunsubscribeupdatepayload,
+ payload: SubscribeOrUnsubscribeUpdatePayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -5658,7 +11447,7 @@ def update_subscribe_or_unsubscribe_notification_threshold(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Organizationthresholdupdateresponse:
+ ) -> OrganizationThresholdUpdateResponse:
"""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.
@@ -5666,7 +11455,7 @@ def update_subscribe_or_unsubscribe_notification_threshold(
:param threshold_id: (required)
:type threshold_id: int
:param payload: (required)
- :type payload: Subscribeorunsubscribeupdatepayload
+ :type payload: SubscribeOrUnsubscribeUpdatePayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -5689,7 +11478,7 @@ def update_subscribe_or_unsubscribe_notification_threshold(
:return: Returns the result object.
""" # noqa: E501
- _param = self._update_subscribe_or_unsubscribe_notification_threshold_serialize(
+ _param = self._put_organization_threshold_serialize(
threshold_id=threshold_id,
payload=payload,
_request_auth=_request_auth,
@@ -5699,7 +11488,7 @@ def update_subscribe_or_unsubscribe_notification_threshold(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Organizationthresholdupdateresponse",
+ '200': "OrganizationThresholdUpdateResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -5718,10 +11507,10 @@ def update_subscribe_or_unsubscribe_notification_threshold(
@validate_call
- def update_subscribe_or_unsubscribe_notification_threshold_with_http_info(
+ def put_organization_threshold_with_http_info(
self,
threshold_id: StrictInt,
- payload: Subscribeorunsubscribeupdatepayload,
+ payload: SubscribeOrUnsubscribeUpdatePayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -5734,7 +11523,7 @@ def update_subscribe_or_unsubscribe_notification_threshold_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Organizationthresholdupdateresponse]:
+ ) -> ApiResponse[OrganizationThresholdUpdateResponse]:
"""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.
@@ -5742,7 +11531,7 @@ def update_subscribe_or_unsubscribe_notification_threshold_with_http_info(
:param threshold_id: (required)
:type threshold_id: int
:param payload: (required)
- :type payload: Subscribeorunsubscribeupdatepayload
+ :type payload: SubscribeOrUnsubscribeUpdatePayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -5765,7 +11554,7 @@ def update_subscribe_or_unsubscribe_notification_threshold_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._update_subscribe_or_unsubscribe_notification_threshold_serialize(
+ _param = self._put_organization_threshold_serialize(
threshold_id=threshold_id,
payload=payload,
_request_auth=_request_auth,
@@ -5775,7 +11564,7 @@ def update_subscribe_or_unsubscribe_notification_threshold_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Organizationthresholdupdateresponse",
+ '200': "OrganizationThresholdUpdateResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -5794,10 +11583,10 @@ def update_subscribe_or_unsubscribe_notification_threshold_with_http_info(
@validate_call
- def update_subscribe_or_unsubscribe_notification_threshold_without_preload_content(
+ def put_organization_threshold_without_preload_content(
self,
threshold_id: StrictInt,
- payload: Subscribeorunsubscribeupdatepayload,
+ payload: SubscribeOrUnsubscribeUpdatePayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -5818,7 +11607,7 @@ def update_subscribe_or_unsubscribe_notification_threshold_without_preload_conte
:param threshold_id: (required)
:type threshold_id: int
:param payload: (required)
- :type payload: Subscribeorunsubscribeupdatepayload
+ :type payload: SubscribeOrUnsubscribeUpdatePayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -5841,7 +11630,7 @@ def update_subscribe_or_unsubscribe_notification_threshold_without_preload_conte
:return: Returns the result object.
""" # noqa: E501
- _param = self._update_subscribe_or_unsubscribe_notification_threshold_serialize(
+ _param = self._put_organization_threshold_serialize(
threshold_id=threshold_id,
payload=payload,
_request_auth=_request_auth,
@@ -5851,7 +11640,7 @@ def update_subscribe_or_unsubscribe_notification_threshold_without_preload_conte
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Organizationthresholdupdateresponse",
+ '200': "OrganizationThresholdUpdateResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -5865,7 +11654,7 @@ def update_subscribe_or_unsubscribe_notification_threshold_without_preload_conte
return response_data.response
- def _update_subscribe_or_unsubscribe_notification_threshold_serialize(
+ def _put_organization_threshold_serialize(
self,
threshold_id,
payload,
@@ -5924,8 +11713,7 @@ def _update_subscribe_or_unsubscribe_notification_threshold_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/calculate_api.py b/hyperstack/api/calculate_api.py
index 2847afa..942a71d 100644
--- a/hyperstack/api/calculate_api.py
+++ b/hyperstack/api/calculate_api.py
@@ -38,7 +38,7 @@ def __init__(self, api_client=None) -> None:
@validate_call
- def retrieve_billing_rate_for_resource(
+ def get_calculate2(
self,
resource_type: StrictStr,
id: StrictInt,
@@ -85,7 +85,7 @@ def retrieve_billing_rate_for_resource(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_rate_for_resource_serialize(
+ _param = self._get_calculate2_serialize(
resource_type=resource_type,
id=id,
_request_auth=_request_auth,
@@ -113,7 +113,7 @@ def retrieve_billing_rate_for_resource(
@validate_call
- def retrieve_billing_rate_for_resource_with_http_info(
+ def get_calculate2_with_http_info(
self,
resource_type: StrictStr,
id: StrictInt,
@@ -160,7 +160,7 @@ def retrieve_billing_rate_for_resource_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_rate_for_resource_serialize(
+ _param = self._get_calculate2_serialize(
resource_type=resource_type,
id=id,
_request_auth=_request_auth,
@@ -188,7 +188,7 @@ def retrieve_billing_rate_for_resource_with_http_info(
@validate_call
- def retrieve_billing_rate_for_resource_without_preload_content(
+ def get_calculate2_without_preload_content(
self,
resource_type: StrictStr,
id: StrictInt,
@@ -235,7 +235,7 @@ def retrieve_billing_rate_for_resource_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_billing_rate_for_resource_serialize(
+ _param = self._get_calculate2_serialize(
resource_type=resource_type,
id=id,
_request_auth=_request_auth,
@@ -258,7 +258,7 @@ def retrieve_billing_rate_for_resource_without_preload_content(
return response_data.response
- def _retrieve_billing_rate_for_resource_serialize(
+ def _get_calculate2_serialize(
self,
resource_type,
id,
@@ -304,8 +304,7 @@ def _retrieve_billing_rate_for_resource_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/callbacks_api.py b/hyperstack/api/callbacks_api.py
index a40f6dc..24edda3 100644
--- a/hyperstack/api/callbacks_api.py
+++ b/hyperstack/api/callbacks_api.py
@@ -42,7 +42,7 @@ def __init__(self, api_client=None) -> None:
@validate_call
def attach_callback_to_virtual_machine(
self,
- id: StrictInt,
+ vm_id: StrictInt,
payload: AttachCallbackPayload,
_request_timeout: Union[
None,
@@ -59,10 +59,10 @@ def attach_callback_to_virtual_machine(
) -> AttachCallbackResponse:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/attach-callback-vm).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param payload: (required)
:type payload: AttachCallbackPayload
:param _request_timeout: timeout setting for this request. If one
@@ -88,7 +88,7 @@ def attach_callback_to_virtual_machine(
""" # noqa: E501
_param = self._attach_callback_to_virtual_machine_serialize(
- id=id,
+ vm_id=vm_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -117,7 +117,7 @@ def attach_callback_to_virtual_machine(
@validate_call
def attach_callback_to_virtual_machine_with_http_info(
self,
- id: StrictInt,
+ vm_id: StrictInt,
payload: AttachCallbackPayload,
_request_timeout: Union[
None,
@@ -134,10 +134,10 @@ def attach_callback_to_virtual_machine_with_http_info(
) -> ApiResponse[AttachCallbackResponse]:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/attach-callback-vm).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param payload: (required)
:type payload: AttachCallbackPayload
:param _request_timeout: timeout setting for this request. If one
@@ -163,7 +163,7 @@ def attach_callback_to_virtual_machine_with_http_info(
""" # noqa: E501
_param = self._attach_callback_to_virtual_machine_serialize(
- id=id,
+ vm_id=vm_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -192,7 +192,7 @@ def attach_callback_to_virtual_machine_with_http_info(
@validate_call
def attach_callback_to_virtual_machine_without_preload_content(
self,
- id: StrictInt,
+ vm_id: StrictInt,
payload: AttachCallbackPayload,
_request_timeout: Union[
None,
@@ -209,10 +209,10 @@ def attach_callback_to_virtual_machine_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/attach-callback-vm).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param payload: (required)
:type payload: AttachCallbackPayload
:param _request_timeout: timeout setting for this request. If one
@@ -238,7 +238,7 @@ def attach_callback_to_virtual_machine_without_preload_content(
""" # noqa: E501
_param = self._attach_callback_to_virtual_machine_serialize(
- id=id,
+ vm_id=vm_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -262,7 +262,7 @@ def attach_callback_to_virtual_machine_without_preload_content(
def _attach_callback_to_virtual_machine_serialize(
self,
- id,
+ vm_id,
payload,
_request_auth,
_content_type,
@@ -285,8 +285,8 @@ def _attach_callback_to_virtual_machine_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -319,13 +319,12 @@ def _attach_callback_to_virtual_machine_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='POST',
- resource_path='/core/virtual-machines/{id}/attach-callback',
+ resource_path='/core/virtual-machines/{vm_id}/attach-callback',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -344,7 +343,7 @@ def _attach_callback_to_virtual_machine_serialize(
@validate_call
def attach_callback_to_volume(
self,
- id: StrictInt,
+ volume_id: StrictInt,
payload: AttachCallbackPayload,
_request_timeout: Union[
None,
@@ -361,10 +360,10 @@ def attach_callback_to_volume(
) -> AttachCallbackResponse:
"""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...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/attach-callback-volume).
- :param id: (required)
- :type id: int
+ :param volume_id: (required)
+ :type volume_id: int
:param payload: (required)
:type payload: AttachCallbackPayload
:param _request_timeout: timeout setting for this request. If one
@@ -390,7 +389,7 @@ def attach_callback_to_volume(
""" # noqa: E501
_param = self._attach_callback_to_volume_serialize(
- id=id,
+ volume_id=volume_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -419,7 +418,7 @@ def attach_callback_to_volume(
@validate_call
def attach_callback_to_volume_with_http_info(
self,
- id: StrictInt,
+ volume_id: StrictInt,
payload: AttachCallbackPayload,
_request_timeout: Union[
None,
@@ -436,10 +435,10 @@ def attach_callback_to_volume_with_http_info(
) -> ApiResponse[AttachCallbackResponse]:
"""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...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/attach-callback-volume).
- :param id: (required)
- :type id: int
+ :param volume_id: (required)
+ :type volume_id: int
:param payload: (required)
:type payload: AttachCallbackPayload
:param _request_timeout: timeout setting for this request. If one
@@ -465,7 +464,7 @@ def attach_callback_to_volume_with_http_info(
""" # noqa: E501
_param = self._attach_callback_to_volume_serialize(
- id=id,
+ volume_id=volume_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -494,7 +493,7 @@ def attach_callback_to_volume_with_http_info(
@validate_call
def attach_callback_to_volume_without_preload_content(
self,
- id: StrictInt,
+ volume_id: StrictInt,
payload: AttachCallbackPayload,
_request_timeout: Union[
None,
@@ -511,10 +510,10 @@ def attach_callback_to_volume_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/attach-callback-volume).
- :param id: (required)
- :type id: int
+ :param volume_id: (required)
+ :type volume_id: int
:param payload: (required)
:type payload: AttachCallbackPayload
:param _request_timeout: timeout setting for this request. If one
@@ -540,7 +539,7 @@ def attach_callback_to_volume_without_preload_content(
""" # noqa: E501
_param = self._attach_callback_to_volume_serialize(
- id=id,
+ volume_id=volume_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -564,7 +563,7 @@ def attach_callback_to_volume_without_preload_content(
def _attach_callback_to_volume_serialize(
self,
- id,
+ volume_id,
payload,
_request_auth,
_content_type,
@@ -587,8 +586,8 @@ def _attach_callback_to_volume_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if volume_id is not None:
+ _path_params['volume_id'] = volume_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -621,13 +620,12 @@ def _attach_callback_to_volume_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='POST',
- resource_path='/core/volumes/{id}/attach-callback',
+ resource_path='/core/volumes/{volume_id}/attach-callback',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -646,7 +644,7 @@ def _attach_callback_to_volume_serialize(
@validate_call
def delete_virtual_machine_callback(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -662,10 +660,10 @@ def delete_virtual_machine_callback(
) -> ResponseModel:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/delete-callback-vm).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -689,7 +687,7 @@ def delete_virtual_machine_callback(
""" # noqa: E501
_param = self._delete_virtual_machine_callback_serialize(
- id=id,
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -717,7 +715,7 @@ def delete_virtual_machine_callback(
@validate_call
def delete_virtual_machine_callback_with_http_info(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -733,10 +731,10 @@ def delete_virtual_machine_callback_with_http_info(
) -> ApiResponse[ResponseModel]:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/delete-callback-vm).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -760,7 +758,7 @@ def delete_virtual_machine_callback_with_http_info(
""" # noqa: E501
_param = self._delete_virtual_machine_callback_serialize(
- id=id,
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -788,7 +786,7 @@ def delete_virtual_machine_callback_with_http_info(
@validate_call
def delete_virtual_machine_callback_without_preload_content(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -804,10 +802,10 @@ def delete_virtual_machine_callback_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/delete-callback-vm).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -831,7 +829,7 @@ def delete_virtual_machine_callback_without_preload_content(
""" # noqa: E501
_param = self._delete_virtual_machine_callback_serialize(
- id=id,
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -854,7 +852,7 @@ def delete_virtual_machine_callback_without_preload_content(
def _delete_virtual_machine_callback_serialize(
self,
- id,
+ vm_id,
_request_auth,
_content_type,
_headers,
@@ -876,8 +874,8 @@ def _delete_virtual_machine_callback_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -895,13 +893,12 @@ def _delete_virtual_machine_callback_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='DELETE',
- resource_path='/core/virtual-machines/{id}/delete-callback',
+ resource_path='/core/virtual-machines/{vm_id}/delete-callback',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -920,7 +917,7 @@ def _delete_virtual_machine_callback_serialize(
@validate_call
def delete_volume_callback(
self,
- id: StrictInt,
+ volume_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -936,10 +933,10 @@ def delete_volume_callback(
) -> ResponseModel:
"""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...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/delete-callback-volume).
- :param id: (required)
- :type id: int
+ :param volume_id: (required)
+ :type volume_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -963,7 +960,7 @@ def delete_volume_callback(
""" # noqa: E501
_param = self._delete_volume_callback_serialize(
- id=id,
+ volume_id=volume_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -991,7 +988,7 @@ def delete_volume_callback(
@validate_call
def delete_volume_callback_with_http_info(
self,
- id: StrictInt,
+ volume_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1007,10 +1004,10 @@ def delete_volume_callback_with_http_info(
) -> ApiResponse[ResponseModel]:
"""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...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/delete-callback-volume).
- :param id: (required)
- :type id: int
+ :param volume_id: (required)
+ :type volume_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1034,7 +1031,7 @@ def delete_volume_callback_with_http_info(
""" # noqa: E501
_param = self._delete_volume_callback_serialize(
- id=id,
+ volume_id=volume_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1062,7 +1059,7 @@ def delete_volume_callback_with_http_info(
@validate_call
def delete_volume_callback_without_preload_content(
self,
- id: StrictInt,
+ volume_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1078,10 +1075,10 @@ def delete_volume_callback_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/delete-callback-volume).
- :param id: (required)
- :type id: int
+ :param volume_id: (required)
+ :type volume_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1105,7 +1102,7 @@ def delete_volume_callback_without_preload_content(
""" # noqa: E501
_param = self._delete_volume_callback_serialize(
- id=id,
+ volume_id=volume_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1128,7 +1125,7 @@ def delete_volume_callback_without_preload_content(
def _delete_volume_callback_serialize(
self,
- id,
+ volume_id,
_request_auth,
_content_type,
_headers,
@@ -1150,8 +1147,8 @@ def _delete_volume_callback_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if volume_id is not None:
+ _path_params['volume_id'] = volume_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -1169,13 +1166,12 @@ def _delete_volume_callback_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='DELETE',
- resource_path='/core/volumes/{id}/delete-callback',
+ resource_path='/core/volumes/{volume_id}/delete-callback',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1194,7 +1190,7 @@ def _delete_volume_callback_serialize(
@validate_call
def update_virtual_machine_callback(
self,
- id: StrictInt,
+ vm_id: StrictInt,
payload: AttachCallbackPayload,
_request_timeout: Union[
None,
@@ -1211,10 +1207,10 @@ def update_virtual_machine_callback(
) -> AttachCallbackResponse:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param payload: (required)
:type payload: AttachCallbackPayload
:param _request_timeout: timeout setting for this request. If one
@@ -1240,7 +1236,7 @@ def update_virtual_machine_callback(
""" # noqa: E501
_param = self._update_virtual_machine_callback_serialize(
- id=id,
+ vm_id=vm_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -1269,7 +1265,7 @@ def update_virtual_machine_callback(
@validate_call
def update_virtual_machine_callback_with_http_info(
self,
- id: StrictInt,
+ vm_id: StrictInt,
payload: AttachCallbackPayload,
_request_timeout: Union[
None,
@@ -1286,10 +1282,10 @@ def update_virtual_machine_callback_with_http_info(
) -> ApiResponse[AttachCallbackResponse]:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param payload: (required)
:type payload: AttachCallbackPayload
:param _request_timeout: timeout setting for this request. If one
@@ -1315,7 +1311,7 @@ def update_virtual_machine_callback_with_http_info(
""" # noqa: E501
_param = self._update_virtual_machine_callback_serialize(
- id=id,
+ vm_id=vm_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -1344,7 +1340,7 @@ def update_virtual_machine_callback_with_http_info(
@validate_call
def update_virtual_machine_callback_without_preload_content(
self,
- id: StrictInt,
+ vm_id: StrictInt,
payload: AttachCallbackPayload,
_request_timeout: Union[
None,
@@ -1361,10 +1357,10 @@ def update_virtual_machine_callback_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param payload: (required)
:type payload: AttachCallbackPayload
:param _request_timeout: timeout setting for this request. If one
@@ -1390,7 +1386,7 @@ def update_virtual_machine_callback_without_preload_content(
""" # noqa: E501
_param = self._update_virtual_machine_callback_serialize(
- id=id,
+ vm_id=vm_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -1414,7 +1410,7 @@ def update_virtual_machine_callback_without_preload_content(
def _update_virtual_machine_callback_serialize(
self,
- id,
+ vm_id,
payload,
_request_auth,
_content_type,
@@ -1437,8 +1433,8 @@ def _update_virtual_machine_callback_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -1471,13 +1467,12 @@ def _update_virtual_machine_callback_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='PUT',
- resource_path='/core/virtual-machines/{id}/update-callback',
+ resource_path='/core/virtual-machines/{vm_id}/update-callback',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1496,7 +1491,7 @@ def _update_virtual_machine_callback_serialize(
@validate_call
def update_volume_callback(
self,
- id: StrictInt,
+ volume_id: StrictInt,
payload: AttachCallbackPayload,
_request_timeout: Union[
None,
@@ -1513,10 +1508,10 @@ def update_volume_callback(
) -> AttachCallbackResponse:
"""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...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/update-callback-volume/).
- :param id: (required)
- :type id: int
+ :param volume_id: (required)
+ :type volume_id: int
:param payload: (required)
:type payload: AttachCallbackPayload
:param _request_timeout: timeout setting for this request. If one
@@ -1542,7 +1537,7 @@ def update_volume_callback(
""" # noqa: E501
_param = self._update_volume_callback_serialize(
- id=id,
+ volume_id=volume_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -1571,7 +1566,7 @@ def update_volume_callback(
@validate_call
def update_volume_callback_with_http_info(
self,
- id: StrictInt,
+ volume_id: StrictInt,
payload: AttachCallbackPayload,
_request_timeout: Union[
None,
@@ -1588,10 +1583,10 @@ def update_volume_callback_with_http_info(
) -> ApiResponse[AttachCallbackResponse]:
"""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...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/update-callback-volume/).
- :param id: (required)
- :type id: int
+ :param volume_id: (required)
+ :type volume_id: int
:param payload: (required)
:type payload: AttachCallbackPayload
:param _request_timeout: timeout setting for this request. If one
@@ -1617,7 +1612,7 @@ def update_volume_callback_with_http_info(
""" # noqa: E501
_param = self._update_volume_callback_serialize(
- id=id,
+ volume_id=volume_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -1646,7 +1641,7 @@ def update_volume_callback_with_http_info(
@validate_call
def update_volume_callback_without_preload_content(
self,
- id: StrictInt,
+ volume_id: StrictInt,
payload: AttachCallbackPayload,
_request_timeout: Union[
None,
@@ -1663,10 +1658,10 @@ def update_volume_callback_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/core-resources/volumes/volume-callbacks/update-callback-volume/).
- :param id: (required)
- :type id: int
+ :param volume_id: (required)
+ :type volume_id: int
:param payload: (required)
:type payload: AttachCallbackPayload
:param _request_timeout: timeout setting for this request. If one
@@ -1692,7 +1687,7 @@ def update_volume_callback_without_preload_content(
""" # noqa: E501
_param = self._update_volume_callback_serialize(
- id=id,
+ volume_id=volume_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -1716,7 +1711,7 @@ def update_volume_callback_without_preload_content(
def _update_volume_callback_serialize(
self,
- id,
+ volume_id,
payload,
_request_auth,
_content_type,
@@ -1739,8 +1734,8 @@ def _update_volume_callback_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if volume_id is not None:
+ _path_params['volume_id'] = volume_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -1773,13 +1768,12 @@ def _update_volume_callback_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='PUT',
- resource_path='/core/volumes/{id}/update-callback',
+ resource_path='/core/volumes/{volume_id}/update-callback',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
diff --git a/hyperstack/api/cluster_events_api.py b/hyperstack/api/cluster_events_api.py
index 30568ec..678202a 100644
--- a/hyperstack/api/cluster_events_api.py
+++ b/hyperstack/api/cluster_events_api.py
@@ -286,8 +286,7 @@ def _fetch_all_of_a_cluster_events_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/clusters_api.py b/hyperstack/api/clusters_api.py
index 4dd40a3..7eed370 100644
--- a/hyperstack/api/clusters_api.py
+++ b/hyperstack/api/clusters_api.py
@@ -16,11 +16,20 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated
-from pydantic import StrictInt, StrictStr
+from pydantic import Field, StrictInt, StrictStr
+from typing import Optional
+from typing_extensions import Annotated
from ..models.cluster_list_response import ClusterListResponse
+from ..models.cluster_node_groups_create_response import ClusterNodeGroupsCreateResponse
+from ..models.cluster_node_groups_get_response import ClusterNodeGroupsGetResponse
+from ..models.cluster_node_groups_list_response import ClusterNodeGroupsListResponse
+from ..models.cluster_nodes_list_response import ClusterNodesListResponse
from ..models.cluster_response import ClusterResponse
from ..models.cluster_versions import ClusterVersions
+from ..models.create_cluster_node_fields import CreateClusterNodeFields
+from ..models.create_cluster_node_group_payload import CreateClusterNodeGroupPayload
from ..models.create_cluster_payload import CreateClusterPayload
+from ..models.master_flavors_response import MasterFlavorsResponse
from ..models.name_available_model import NameAvailableModel
from ..models.response_model import ResponseModel
@@ -100,6 +109,7 @@ def create_cluster(
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
'409': "ErrorResponseModel",
+ '422': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -171,6 +181,7 @@ def create_cluster_with_http_info(
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
'409': "ErrorResponseModel",
+ '422': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -242,6 +253,7 @@ def create_cluster_without_preload_content(
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
'409': "ErrorResponseModel",
+ '422': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -307,8 +319,7 @@ def _create_cluster_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -330,9 +341,10 @@ def _create_cluster_serialize(
@validate_call
- def delete_a_cluster(
+ def create_node(
self,
- id: StrictInt,
+ cluster_id: StrictInt,
+ payload: CreateClusterNodeFields,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -345,12 +357,14 @@ def delete_a_cluster(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ResponseModel:
- """Delete a cluster
+ ) -> ClusterNodesListResponse:
+ """Create Node
- :param id: (required)
- :type id: int
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param payload: (required)
+ :type payload: CreateClusterNodeFields
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -373,8 +387,9 @@ def delete_a_cluster(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_a_cluster_serialize(
- id=id,
+ _param = self._create_node_serialize(
+ cluster_id=cluster_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -382,10 +397,11 @@ def delete_a_cluster(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '201': "ClusterNodesListResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -400,9 +416,10 @@ def delete_a_cluster(
@validate_call
- def delete_a_cluster_with_http_info(
+ def create_node_with_http_info(
self,
- id: StrictInt,
+ cluster_id: StrictInt,
+ payload: CreateClusterNodeFields,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -415,12 +432,14 @@ def delete_a_cluster_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ResponseModel]:
- """Delete a cluster
+ ) -> ApiResponse[ClusterNodesListResponse]:
+ """Create Node
- :param id: (required)
- :type id: int
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param payload: (required)
+ :type payload: CreateClusterNodeFields
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -443,8 +462,9 @@ def delete_a_cluster_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_a_cluster_serialize(
- id=id,
+ _param = self._create_node_serialize(
+ cluster_id=cluster_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -452,10 +472,11 @@ def delete_a_cluster_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '201': "ClusterNodesListResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -470,9 +491,10 @@ def delete_a_cluster_with_http_info(
@validate_call
- def delete_a_cluster_without_preload_content(
+ def create_node_without_preload_content(
self,
- id: StrictInt,
+ cluster_id: StrictInt,
+ payload: CreateClusterNodeFields,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -486,11 +508,13 @@ def delete_a_cluster_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Delete a cluster
+ """Create Node
- :param id: (required)
- :type id: int
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param payload: (required)
+ :type payload: CreateClusterNodeFields
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -513,8 +537,9 @@ def delete_a_cluster_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_a_cluster_serialize(
- id=id,
+ _param = self._create_node_serialize(
+ cluster_id=cluster_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -522,10 +547,11 @@ def delete_a_cluster_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '201': "ClusterNodesListResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -535,9 +561,10 @@ def delete_a_cluster_without_preload_content(
return response_data.response
- def _delete_a_cluster_serialize(
+ def _create_node_serialize(
self,
- id,
+ cluster_id,
+ payload,
_request_auth,
_content_type,
_headers,
@@ -559,12 +586,14 @@ def _delete_a_cluster_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if cluster_id is not None:
+ _path_params['cluster_id'] = cluster_id
# process the query parameters
# process the header parameters
# process the form parameters
# process the body parameter
+ if payload is not None:
+ _body_params = payload
# set the HTTP header `Accept`
@@ -575,16 +604,28 @@ def _delete_a_cluster_serialize(
]
)
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='DELETE',
- resource_path='/core/clusters/{id}',
+ method='POST',
+ resource_path='/core/clusters/{cluster_id}/nodes',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -601,9 +642,10 @@ def _delete_a_cluster_serialize(
@validate_call
- def fetch_cluster_name_availability(
+ def create_node_group(
self,
- name: StrictStr,
+ cluster_id: StrictInt,
+ payload: CreateClusterNodeGroupPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -616,13 +658,14 @@ def fetch_cluster_name_availability(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> NameAvailableModel:
- """Fetch cluster name availability
+ ) -> ClusterNodeGroupsCreateResponse:
+ """Create a node group in a cluster
- Check if a Cluster name is available
- :param name: (required)
- :type name: str
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param payload: (required)
+ :type payload: CreateClusterNodeGroupPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -645,8 +688,9 @@ def fetch_cluster_name_availability(
:return: Returns the result object.
""" # noqa: E501
- _param = self._fetch_cluster_name_availability_serialize(
- name=name,
+ _param = self._create_node_group_serialize(
+ cluster_id=cluster_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -654,10 +698,11 @@ def fetch_cluster_name_availability(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "NameAvailableModel",
+ '201': "ClusterNodeGroupsCreateResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -672,9 +717,10 @@ def fetch_cluster_name_availability(
@validate_call
- def fetch_cluster_name_availability_with_http_info(
+ def create_node_group_with_http_info(
self,
- name: StrictStr,
+ cluster_id: StrictInt,
+ payload: CreateClusterNodeGroupPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -687,13 +733,14 @@ def fetch_cluster_name_availability_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[NameAvailableModel]:
- """Fetch cluster name availability
+ ) -> ApiResponse[ClusterNodeGroupsCreateResponse]:
+ """Create a node group in a cluster
- Check if a Cluster name is available
- :param name: (required)
- :type name: str
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param payload: (required)
+ :type payload: CreateClusterNodeGroupPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -716,8 +763,9 @@ def fetch_cluster_name_availability_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._fetch_cluster_name_availability_serialize(
- name=name,
+ _param = self._create_node_group_serialize(
+ cluster_id=cluster_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -725,10 +773,11 @@ def fetch_cluster_name_availability_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "NameAvailableModel",
+ '201': "ClusterNodeGroupsCreateResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -743,9 +792,10 @@ def fetch_cluster_name_availability_with_http_info(
@validate_call
- def fetch_cluster_name_availability_without_preload_content(
+ def create_node_group_without_preload_content(
self,
- name: StrictStr,
+ cluster_id: StrictInt,
+ payload: CreateClusterNodeGroupPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -759,12 +809,13 @@ def fetch_cluster_name_availability_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Fetch cluster name availability
+ """Create a node group in a cluster
- Check if a Cluster name is available
- :param name: (required)
- :type name: str
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param payload: (required)
+ :type payload: CreateClusterNodeGroupPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -787,8 +838,9 @@ def fetch_cluster_name_availability_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._fetch_cluster_name_availability_serialize(
- name=name,
+ _param = self._create_node_group_serialize(
+ cluster_id=cluster_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -796,10 +848,11 @@ def fetch_cluster_name_availability_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "NameAvailableModel",
+ '201': "ClusterNodeGroupsCreateResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -809,9 +862,10 @@ def fetch_cluster_name_availability_without_preload_content(
return response_data.response
- def _fetch_cluster_name_availability_serialize(
+ def _create_node_group_serialize(
self,
- name,
+ cluster_id,
+ payload,
_request_auth,
_content_type,
_headers,
@@ -833,12 +887,14 @@ def _fetch_cluster_name_availability_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if name is not None:
- _path_params['name'] = name
+ if cluster_id is not None:
+ _path_params['cluster_id'] = cluster_id
# process the query parameters
# process the header parameters
# process the form parameters
# process the body parameter
+ if payload is not None:
+ _body_params = payload
# set the HTTP header `Accept`
@@ -849,16 +905,28 @@ def _fetch_cluster_name_availability_serialize(
]
)
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='GET',
- resource_path='/core/clusters/name-availability/{name}',
+ method='POST',
+ resource_path='/core/clusters/{cluster_id}/node-groups',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -875,8 +943,9 @@ def _fetch_cluster_name_availability_serialize(
@validate_call
- def get_cluster_versions(
+ def delete_a_cluster(
self,
+ id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -889,10 +958,12 @@ def get_cluster_versions(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ClusterVersions:
- """GET Cluster Versions
+ ) -> ResponseModel:
+ """Delete a cluster
+ :param id: (required)
+ :type id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -915,7 +986,8 @@ def get_cluster_versions(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_cluster_versions_serialize(
+ _param = self._delete_a_cluster_serialize(
+ id=id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -923,9 +995,10 @@ def get_cluster_versions(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ClusterVersions",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -940,8 +1013,9 @@ def get_cluster_versions(
@validate_call
- def get_cluster_versions_with_http_info(
+ def delete_a_cluster_with_http_info(
self,
+ id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -954,10 +1028,12 @@ def get_cluster_versions_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ClusterVersions]:
- """GET Cluster Versions
+ ) -> ApiResponse[ResponseModel]:
+ """Delete a cluster
+ :param id: (required)
+ :type id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -980,7 +1056,8 @@ def get_cluster_versions_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_cluster_versions_serialize(
+ _param = self._delete_a_cluster_serialize(
+ id=id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -988,9 +1065,10 @@ def get_cluster_versions_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ClusterVersions",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1005,8 +1083,9 @@ def get_cluster_versions_with_http_info(
@validate_call
- def get_cluster_versions_without_preload_content(
+ def delete_a_cluster_without_preload_content(
self,
+ id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1020,9 +1099,11 @@ def get_cluster_versions_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """GET Cluster Versions
+ """Delete a cluster
+ :param id: (required)
+ :type id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1045,7 +1126,8 @@ def get_cluster_versions_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_cluster_versions_serialize(
+ _param = self._delete_a_cluster_serialize(
+ id=id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1053,9 +1135,10 @@ def get_cluster_versions_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ClusterVersions",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1065,8 +1148,9 @@ def get_cluster_versions_without_preload_content(
return response_data.response
- def _get_cluster_versions_serialize(
+ def _delete_a_cluster_serialize(
self,
+ id,
_request_auth,
_content_type,
_headers,
@@ -1088,6 +1172,8 @@ def _get_cluster_versions_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
+ if id is not None:
+ _path_params['id'] = id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -1105,13 +1191,12 @@ def _get_cluster_versions_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='GET',
- resource_path='/core/clusters/versions',
+ method='DELETE',
+ resource_path='/core/clusters/{id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1128,9 +1213,10 @@ def _get_cluster_versions_serialize(
@validate_call
- def getting_cluster_detail(
+ def delete_a_node_group(
self,
- id: StrictInt,
+ cluster_id: StrictInt,
+ node_group_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1143,12 +1229,14 @@ def getting_cluster_detail(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ClusterResponse:
- """Getting Cluster Detail
+ ) -> ResponseModel:
+ """Delete a node group
- :param id: (required)
- :type id: int
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param node_group_id: (required)
+ :type node_group_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1171,8 +1259,9 @@ def getting_cluster_detail(
:return: Returns the result object.
""" # noqa: E501
- _param = self._getting_cluster_detail_serialize(
- id=id,
+ _param = self._delete_a_node_group_serialize(
+ cluster_id=cluster_id,
+ node_group_id=node_group_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1180,10 +1269,11 @@ def getting_cluster_detail(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ClusterResponse",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1198,9 +1288,10 @@ def getting_cluster_detail(
@validate_call
- def getting_cluster_detail_with_http_info(
+ def delete_a_node_group_with_http_info(
self,
- id: StrictInt,
+ cluster_id: StrictInt,
+ node_group_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1213,12 +1304,14 @@ def getting_cluster_detail_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ClusterResponse]:
- """Getting Cluster Detail
+ ) -> ApiResponse[ResponseModel]:
+ """Delete a node group
- :param id: (required)
- :type id: int
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param node_group_id: (required)
+ :type node_group_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1241,8 +1334,9 @@ def getting_cluster_detail_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._getting_cluster_detail_serialize(
- id=id,
+ _param = self._delete_a_node_group_serialize(
+ cluster_id=cluster_id,
+ node_group_id=node_group_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1250,10 +1344,11 @@ def getting_cluster_detail_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ClusterResponse",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1268,9 +1363,10 @@ def getting_cluster_detail_with_http_info(
@validate_call
- def getting_cluster_detail_without_preload_content(
+ def delete_a_node_group_without_preload_content(
self,
- id: StrictInt,
+ cluster_id: StrictInt,
+ node_group_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1284,11 +1380,13 @@ def getting_cluster_detail_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Getting Cluster Detail
+ """Delete a node group
- :param id: (required)
- :type id: int
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param node_group_id: (required)
+ :type node_group_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1311,8 +1409,9 @@ def getting_cluster_detail_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._getting_cluster_detail_serialize(
- id=id,
+ _param = self._delete_a_node_group_serialize(
+ cluster_id=cluster_id,
+ node_group_id=node_group_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1320,10 +1419,11 @@ def getting_cluster_detail_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ClusterResponse",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1333,9 +1433,10 @@ def getting_cluster_detail_without_preload_content(
return response_data.response
- def _getting_cluster_detail_serialize(
+ def _delete_a_node_group_serialize(
self,
- id,
+ cluster_id,
+ node_group_id,
_request_auth,
_content_type,
_headers,
@@ -1357,8 +1458,10 @@ def _getting_cluster_detail_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if cluster_id is not None:
+ _path_params['cluster_id'] = cluster_id
+ if node_group_id is not None:
+ _path_params['node_group_id'] = node_group_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -1376,13 +1479,12 @@ def _getting_cluster_detail_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='GET',
- resource_path='/core/clusters/{id}',
+ method='DELETE',
+ resource_path='/core/clusters/{cluster_id}/node-groups/{node_group_id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1399,8 +1501,10 @@ def _getting_cluster_detail_serialize(
@validate_call
- def list_clusters(
+ def delete_cluster_node(
self,
+ cluster_id: StrictInt,
+ node_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1413,10 +1517,14 @@ def list_clusters(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ClusterListResponse:
- """List Clusters
+ ) -> ResponseModel:
+ """Delete Cluster Node
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param node_id: (required)
+ :type node_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1439,7 +1547,9 @@ def list_clusters(
:return: Returns the result object.
""" # noqa: E501
- _param = self._list_clusters_serialize(
+ _param = self._delete_cluster_node_serialize(
+ cluster_id=cluster_id,
+ node_id=node_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1447,9 +1557,10 @@ def list_clusters(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ClusterListResponse",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1464,8 +1575,10 @@ def list_clusters(
@validate_call
- def list_clusters_with_http_info(
+ def delete_cluster_node_with_http_info(
self,
+ cluster_id: StrictInt,
+ node_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1478,10 +1591,14 @@ def list_clusters_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ClusterListResponse]:
- """List Clusters
+ ) -> ApiResponse[ResponseModel]:
+ """Delete Cluster Node
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param node_id: (required)
+ :type node_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1504,7 +1621,9 @@ def list_clusters_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._list_clusters_serialize(
+ _param = self._delete_cluster_node_serialize(
+ cluster_id=cluster_id,
+ node_id=node_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1512,9 +1631,10 @@ def list_clusters_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ClusterListResponse",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1529,8 +1649,10 @@ def list_clusters_with_http_info(
@validate_call
- def list_clusters_without_preload_content(
+ def delete_cluster_node_without_preload_content(
self,
+ cluster_id: StrictInt,
+ node_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1544,9 +1666,13 @@ def list_clusters_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """List Clusters
+ """Delete Cluster Node
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param node_id: (required)
+ :type node_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1569,7 +1695,9 @@ def list_clusters_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._list_clusters_serialize(
+ _param = self._delete_cluster_node_serialize(
+ cluster_id=cluster_id,
+ node_id=node_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1577,9 +1705,10 @@ def list_clusters_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ClusterListResponse",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1589,8 +1718,10 @@ def list_clusters_without_preload_content(
return response_data.response
- def _list_clusters_serialize(
+ def _delete_cluster_node_serialize(
self,
+ cluster_id,
+ node_id,
_request_auth,
_content_type,
_headers,
@@ -1612,6 +1743,10 @@ def _list_clusters_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
+ if cluster_id is not None:
+ _path_params['cluster_id'] = cluster_id
+ if node_id is not None:
+ _path_params['node_id'] = node_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -1629,13 +1764,2224 @@ def _list_clusters_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='GET',
- resource_path='/core/clusters',
+ method='DELETE',
+ resource_path='/core/clusters/{cluster_id}/nodes/{node_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def fetch_cluster_name_availability(
+ self,
+ name: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> NameAvailableModel:
+ """Fetch cluster name availability
+
+ Check if a Cluster name is available
+
+ :param name: (required)
+ :type name: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._fetch_cluster_name_availability_serialize(
+ name=name,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "NameAvailableModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def fetch_cluster_name_availability_with_http_info(
+ self,
+ name: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[NameAvailableModel]:
+ """Fetch cluster name availability
+
+ Check if a Cluster name is available
+
+ :param name: (required)
+ :type name: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._fetch_cluster_name_availability_serialize(
+ name=name,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "NameAvailableModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def fetch_cluster_name_availability_without_preload_content(
+ self,
+ name: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Fetch cluster name availability
+
+ Check if a Cluster name is available
+
+ :param name: (required)
+ :type name: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._fetch_cluster_name_availability_serialize(
+ name=name,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "NameAvailableModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _fetch_cluster_name_availability_serialize(
+ self,
+ name,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if name is not None:
+ _path_params['name'] = name
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/core/clusters/name-availability/{name}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_cluster_master_flavors(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> MasterFlavorsResponse:
+ """Get Cluster Master Flavors
+
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_cluster_master_flavors_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MasterFlavorsResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_cluster_master_flavors_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[MasterFlavorsResponse]:
+ """Get Cluster Master Flavors
+
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_cluster_master_flavors_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MasterFlavorsResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_cluster_master_flavors_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get Cluster Master Flavors
+
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_cluster_master_flavors_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "MasterFlavorsResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_cluster_master_flavors_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/core/clusters/master-flavors',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_cluster_nodes(
+ self,
+ cluster_id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ClusterNodesListResponse:
+ """Get Cluster Nodes
+
+
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_cluster_nodes_serialize(
+ cluster_id=cluster_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterNodesListResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_cluster_nodes_with_http_info(
+ self,
+ cluster_id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ClusterNodesListResponse]:
+ """Get Cluster Nodes
+
+
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_cluster_nodes_serialize(
+ cluster_id=cluster_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterNodesListResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_cluster_nodes_without_preload_content(
+ self,
+ cluster_id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get Cluster Nodes
+
+
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_cluster_nodes_serialize(
+ cluster_id=cluster_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterNodesListResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_cluster_nodes_serialize(
+ self,
+ cluster_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if cluster_id is not None:
+ _path_params['cluster_id'] = cluster_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/core/clusters/{cluster_id}/nodes',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_cluster_versions(
+ self,
+ region: Annotated[Optional[StrictStr], Field(description="Filter versions by region name (optional)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ClusterVersions:
+ """List Cluster Versions
+
+ Lists available Kubernetes versions, optionally filtered by region.
+
+ :param region: Filter versions by region name (optional)
+ :type region: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_cluster_versions_serialize(
+ region=region,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterVersions",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_cluster_versions_with_http_info(
+ self,
+ region: Annotated[Optional[StrictStr], Field(description="Filter versions by region name (optional)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ClusterVersions]:
+ """List Cluster Versions
+
+ Lists available Kubernetes versions, optionally filtered by region.
+
+ :param region: Filter versions by region name (optional)
+ :type region: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_cluster_versions_serialize(
+ region=region,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterVersions",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_cluster_versions_without_preload_content(
+ self,
+ region: Annotated[Optional[StrictStr], Field(description="Filter versions by region name (optional)")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List Cluster Versions
+
+ Lists available Kubernetes versions, optionally filtered by region.
+
+ :param region: Filter versions by region name (optional)
+ :type region: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_cluster_versions_serialize(
+ region=region,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterVersions",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_cluster_versions_serialize(
+ self,
+ region,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if region is not None:
+
+ _query_params.append(('region', region))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/core/clusters/versions',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def getting_cluster_detail(
+ self,
+ id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ClusterResponse:
+ """Getting Cluster Detail
+
+
+ :param id: (required)
+ :type id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._getting_cluster_detail_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def getting_cluster_detail_with_http_info(
+ self,
+ id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ClusterResponse]:
+ """Getting Cluster Detail
+
+
+ :param id: (required)
+ :type id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._getting_cluster_detail_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def getting_cluster_detail_without_preload_content(
+ self,
+ id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Getting Cluster Detail
+
+
+ :param id: (required)
+ :type id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._getting_cluster_detail_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _getting_cluster_detail_serialize(
+ self,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/core/clusters/{id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def list_clusters(
+ self,
+ page: Annotated[Optional[StrictInt], Field(description="Page number for pagination")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of items per page")] = None,
+ environment: Annotated[Optional[StrictStr], Field(description="Environment Filter")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search query to filter cluster by name")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ClusterListResponse:
+ """List Clusters
+
+
+ :param page: Page number for pagination
+ :type page: int
+ :param page_size: Number of items per page
+ :type page_size: int
+ :param environment: Environment Filter
+ :type environment: str
+ :param search: Search query to filter cluster by name
+ :type search: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._list_clusters_serialize(
+ page=page,
+ page_size=page_size,
+ environment=environment,
+ search=search,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterListResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def list_clusters_with_http_info(
+ self,
+ page: Annotated[Optional[StrictInt], Field(description="Page number for pagination")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of items per page")] = None,
+ environment: Annotated[Optional[StrictStr], Field(description="Environment Filter")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search query to filter cluster by name")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ClusterListResponse]:
+ """List Clusters
+
+
+ :param page: Page number for pagination
+ :type page: int
+ :param page_size: Number of items per page
+ :type page_size: int
+ :param environment: Environment Filter
+ :type environment: str
+ :param search: Search query to filter cluster by name
+ :type search: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._list_clusters_serialize(
+ page=page,
+ page_size=page_size,
+ environment=environment,
+ search=search,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterListResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def list_clusters_without_preload_content(
+ self,
+ page: Annotated[Optional[StrictInt], Field(description="Page number for pagination")] = None,
+ page_size: Annotated[Optional[StrictInt], Field(description="Number of items per page")] = None,
+ environment: Annotated[Optional[StrictStr], Field(description="Environment Filter")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search query to filter cluster by name")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List Clusters
+
+
+ :param page: Page number for pagination
+ :type page: int
+ :param page_size: Number of items per page
+ :type page_size: int
+ :param environment: Environment Filter
+ :type environment: str
+ :param search: Search query to filter cluster by name
+ :type search: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._list_clusters_serialize(
+ page=page,
+ page_size=page_size,
+ environment=environment,
+ search=search,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterListResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _list_clusters_serialize(
+ self,
+ page,
+ page_size,
+ environment,
+ search,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if page_size is not None:
+
+ _query_params.append(('pageSize', page_size))
+
+ if environment is not None:
+
+ _query_params.append(('environment', environment))
+
+ if search is not None:
+
+ _query_params.append(('search', search))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/core/clusters',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def list_node_groups(
+ self,
+ cluster_id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ClusterNodeGroupsListResponse:
+ """List node groups for a cluster
+
+
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._list_node_groups_serialize(
+ cluster_id=cluster_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterNodeGroupsListResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def list_node_groups_with_http_info(
+ self,
+ cluster_id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ClusterNodeGroupsListResponse]:
+ """List node groups for a cluster
+
+
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._list_node_groups_serialize(
+ cluster_id=cluster_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterNodeGroupsListResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def list_node_groups_without_preload_content(
+ self,
+ cluster_id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """List node groups for a cluster
+
+
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._list_node_groups_serialize(
+ cluster_id=cluster_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterNodeGroupsListResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _list_node_groups_serialize(
+ self,
+ cluster_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if cluster_id is not None:
+ _path_params['cluster_id'] = cluster_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/core/clusters/{cluster_id}/node-groups',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def retrieve_a_node_group(
+ self,
+ cluster_id: StrictInt,
+ node_group_id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ClusterNodeGroupsGetResponse:
+ """Retrieve a node group in a cluster
+
+
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param node_group_id: (required)
+ :type node_group_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._retrieve_a_node_group_serialize(
+ cluster_id=cluster_id,
+ node_group_id=node_group_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterNodeGroupsGetResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def retrieve_a_node_group_with_http_info(
+ self,
+ cluster_id: StrictInt,
+ node_group_id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ClusterNodeGroupsGetResponse]:
+ """Retrieve a node group in a cluster
+
+
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param node_group_id: (required)
+ :type node_group_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._retrieve_a_node_group_serialize(
+ cluster_id=cluster_id,
+ node_group_id=node_group_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterNodeGroupsGetResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def retrieve_a_node_group_without_preload_content(
+ self,
+ cluster_id: StrictInt,
+ node_group_id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Retrieve a node group in a cluster
+
+
+ :param cluster_id: (required)
+ :type cluster_id: int
+ :param node_group_id: (required)
+ :type node_group_id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._retrieve_a_node_group_serialize(
+ cluster_id=cluster_id,
+ node_group_id=node_group_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ClusterNodeGroupsGetResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _retrieve_a_node_group_serialize(
+ self,
+ cluster_id,
+ node_group_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if cluster_id is not None:
+ _path_params['cluster_id'] = cluster_id
+ if node_group_id is not None:
+ _path_params['node_group_id'] = node_group_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/core/clusters/{cluster_id}/node-groups/{node_group_id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
diff --git a/hyperstack/api/compliance_api.py b/hyperstack/api/compliance_api.py
index b2a9731..d163ea7 100644
--- a/hyperstack/api/compliance_api.py
+++ b/hyperstack/api/compliance_api.py
@@ -310,8 +310,7 @@ def _create_compliance_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -581,8 +580,7 @@ def _delete_a_compliance_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -604,7 +602,7 @@ def _delete_a_compliance_serialize(
@validate_call
- def retrieve_gpu_compliance(
+ def retrieve_compliance(
self,
gpu: Annotated[Optional[StrictStr], Field(description="This is for gpu model")] = None,
_request_timeout: Union[
@@ -622,7 +620,7 @@ def retrieve_gpu_compliance(
) -> ComplianceResponse:
"""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...cloud/docs/hardware/flavors#adhering-to-gpu-compliance).
:param gpu: This is for gpu model
:type gpu: str
@@ -648,7 +646,7 @@ def retrieve_gpu_compliance(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_gpu_compliance_serialize(
+ _param = self._retrieve_compliance_serialize(
gpu=gpu,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -676,7 +674,7 @@ def retrieve_gpu_compliance(
@validate_call
- def retrieve_gpu_compliance_with_http_info(
+ def retrieve_compliance_with_http_info(
self,
gpu: Annotated[Optional[StrictStr], Field(description="This is for gpu model")] = None,
_request_timeout: Union[
@@ -694,7 +692,7 @@ def retrieve_gpu_compliance_with_http_info(
) -> ApiResponse[ComplianceResponse]:
"""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...cloud/docs/hardware/flavors#adhering-to-gpu-compliance).
:param gpu: This is for gpu model
:type gpu: str
@@ -720,7 +718,7 @@ def retrieve_gpu_compliance_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_gpu_compliance_serialize(
+ _param = self._retrieve_compliance_serialize(
gpu=gpu,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -748,7 +746,7 @@ def retrieve_gpu_compliance_with_http_info(
@validate_call
- def retrieve_gpu_compliance_without_preload_content(
+ def retrieve_compliance_without_preload_content(
self,
gpu: Annotated[Optional[StrictStr], Field(description="This is for gpu model")] = None,
_request_timeout: Union[
@@ -766,7 +764,7 @@ def retrieve_gpu_compliance_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/hardware/flavors#adhering-to-gpu-compliance).
:param gpu: This is for gpu model
:type gpu: str
@@ -792,7 +790,7 @@ def retrieve_gpu_compliance_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_gpu_compliance_serialize(
+ _param = self._retrieve_compliance_serialize(
gpu=gpu,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -815,7 +813,7 @@ def retrieve_gpu_compliance_without_preload_content(
return response_data.response
- def _retrieve_gpu_compliance_serialize(
+ def _retrieve_compliance_serialize(
self,
gpu,
_request_auth,
@@ -860,8 +858,7 @@ def _retrieve_gpu_compliance_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -1147,8 +1144,7 @@ def _update_a_compliance_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/credit_api.py b/hyperstack/api/credit_api.py
index f6ce125..e196e15 100644
--- a/hyperstack/api/credit_api.py
+++ b/hyperstack/api/credit_api.py
@@ -16,7 +16,7 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated
-from ..models.getcreditandthresholdinfoinresponse import Getcreditandthresholdinfoinresponse
+from ..models.get_credit_and_threshold_info_in_response import GetCreditAndThresholdInfoInResponse
from ..api_client import ApiClient, RequestSerialized
from ..api_response import ApiResponse
@@ -37,7 +37,7 @@ def __init__(self, api_client=None) -> None:
@validate_call
- def get_view_credit_and_threshold(
+ def get_credit2(
self,
_request_timeout: Union[
None,
@@ -51,9 +51,10 @@ def get_view_credit_and_threshold(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Getcreditandthresholdinfoinresponse:
+ ) -> GetCreditAndThresholdInfoInResponse:
"""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/).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -77,7 +78,7 @@ def get_view_credit_and_threshold(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_view_credit_and_threshold_serialize(
+ _param = self._get_credit2_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -85,7 +86,7 @@ def get_view_credit_and_threshold(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Getcreditandthresholdinfoinresponse",
+ '200': "GetCreditAndThresholdInfoInResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -104,7 +105,7 @@ def get_view_credit_and_threshold(
@validate_call
- def get_view_credit_and_threshold_with_http_info(
+ def get_credit2_with_http_info(
self,
_request_timeout: Union[
None,
@@ -118,9 +119,10 @@ def get_view_credit_and_threshold_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Getcreditandthresholdinfoinresponse]:
+ ) -> ApiResponse[GetCreditAndThresholdInfoInResponse]:
"""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/).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -144,7 +146,7 @@ def get_view_credit_and_threshold_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_view_credit_and_threshold_serialize(
+ _param = self._get_credit2_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -152,7 +154,7 @@ def get_view_credit_and_threshold_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Getcreditandthresholdinfoinresponse",
+ '200': "GetCreditAndThresholdInfoInResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -171,7 +173,7 @@ def get_view_credit_and_threshold_with_http_info(
@validate_call
- def get_view_credit_and_threshold_without_preload_content(
+ def get_credit2_without_preload_content(
self,
_request_timeout: Union[
None,
@@ -188,6 +190,7 @@ def get_view_credit_and_threshold_without_preload_content(
) -> RESTResponseType:
"""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/).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -211,7 +214,7 @@ def get_view_credit_and_threshold_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_view_credit_and_threshold_serialize(
+ _param = self._get_credit2_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -219,7 +222,7 @@ def get_view_credit_and_threshold_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Getcreditandthresholdinfoinresponse",
+ '200': "GetCreditAndThresholdInfoInResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -233,7 +236,7 @@ def get_view_credit_and_threshold_without_preload_content(
return response_data.response
- def _get_view_credit_and_threshold_serialize(
+ def _get_credit2_serialize(
self,
_request_auth,
_content_type,
@@ -273,8 +276,7 @@ def _get_view_credit_and_threshold_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/customer_contract_api.py b/hyperstack/api/customer_contract_api.py
index 6992f5f..2ed4e6b 100644
--- a/hyperstack/api/customer_contract_api.py
+++ b/hyperstack/api/customer_contract_api.py
@@ -42,7 +42,7 @@ def __init__(self, api_client=None) -> None:
@validate_call
- def list_contracts(
+ def get_customer_contract(
self,
page: Optional[StrictInt] = None,
per_page: Optional[StrictInt] = None,
@@ -61,7 +61,7 @@ def list_contracts(
) -> GetCustomerContractsListResponseModel:
"""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).
+ 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 page:
:type page: int
@@ -89,7 +89,7 @@ def list_contracts(
:return: Returns the result object.
""" # noqa: E501
- _param = self._list_contracts_serialize(
+ _param = self._get_customer_contract_serialize(
page=page,
per_page=per_page,
_request_auth=_request_auth,
@@ -117,7 +117,7 @@ def list_contracts(
@validate_call
- def list_contracts_with_http_info(
+ def get_customer_contract_with_http_info(
self,
page: Optional[StrictInt] = None,
per_page: Optional[StrictInt] = None,
@@ -136,7 +136,7 @@ def list_contracts_with_http_info(
) -> ApiResponse[GetCustomerContractsListResponseModel]:
"""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).
+ 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 page:
:type page: int
@@ -164,7 +164,7 @@ def list_contracts_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._list_contracts_serialize(
+ _param = self._get_customer_contract_serialize(
page=page,
per_page=per_page,
_request_auth=_request_auth,
@@ -192,7 +192,7 @@ def list_contracts_with_http_info(
@validate_call
- def list_contracts_without_preload_content(
+ def get_customer_contract_without_preload_content(
self,
page: Optional[StrictInt] = None,
per_page: Optional[StrictInt] = None,
@@ -211,7 +211,7 @@ def list_contracts_without_preload_content(
) -> RESTResponseType:
"""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).
+ 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 page:
:type page: int
@@ -239,7 +239,7 @@ def list_contracts_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._list_contracts_serialize(
+ _param = self._get_customer_contract_serialize(
page=page,
per_page=per_page,
_request_auth=_request_auth,
@@ -262,7 +262,7 @@ def list_contracts_without_preload_content(
return response_data.response
- def _list_contracts_serialize(
+ def _get_customer_contract_serialize(
self,
page,
per_page,
@@ -312,8 +312,7 @@ def _list_contracts_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -335,7 +334,7 @@ def _list_contracts_serialize(
@validate_call
- def retrieve_contract_details(
+ def get_customer_contract_details(
self,
contract_id: StrictInt,
_request_timeout: Union[
@@ -353,7 +352,7 @@ def retrieve_contract_details(
) -> CustomerContractDetailResponseModel:
"""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).
+ 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 contract_id: (required)
:type contract_id: int
@@ -379,7 +378,7 @@ def retrieve_contract_details(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_contract_details_serialize(
+ _param = self._get_customer_contract_details_serialize(
contract_id=contract_id,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -407,7 +406,7 @@ def retrieve_contract_details(
@validate_call
- def retrieve_contract_details_with_http_info(
+ def get_customer_contract_details_with_http_info(
self,
contract_id: StrictInt,
_request_timeout: Union[
@@ -425,7 +424,7 @@ def retrieve_contract_details_with_http_info(
) -> ApiResponse[CustomerContractDetailResponseModel]:
"""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).
+ 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 contract_id: (required)
:type contract_id: int
@@ -451,7 +450,7 @@ def retrieve_contract_details_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_contract_details_serialize(
+ _param = self._get_customer_contract_details_serialize(
contract_id=contract_id,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -479,7 +478,7 @@ def retrieve_contract_details_with_http_info(
@validate_call
- def retrieve_contract_details_without_preload_content(
+ def get_customer_contract_details_without_preload_content(
self,
contract_id: StrictInt,
_request_timeout: Union[
@@ -497,7 +496,7 @@ def retrieve_contract_details_without_preload_content(
) -> RESTResponseType:
"""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).
+ 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 contract_id: (required)
:type contract_id: int
@@ -523,7 +522,7 @@ def retrieve_contract_details_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_contract_details_serialize(
+ _param = self._get_customer_contract_details_serialize(
contract_id=contract_id,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -546,7 +545,7 @@ def retrieve_contract_details_without_preload_content(
return response_data.response
- def _retrieve_contract_details_serialize(
+ def _get_customer_contract_details_serialize(
self,
contract_id,
_request_auth,
@@ -589,8 +588,7 @@ def _retrieve_contract_details_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -612,7 +610,7 @@ def _retrieve_contract_details_serialize(
@validate_call
- def retrieve_gpu_allocation_graph_for_contract(
+ def get_customer_contract_gpu_allocation_graph(
self,
contract_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
@@ -662,7 +660,7 @@ def retrieve_gpu_allocation_graph_for_contract(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_gpu_allocation_graph_for_contract_serialize(
+ _param = self._get_customer_contract_gpu_allocation_graph_serialize(
contract_id=contract_id,
start_date=start_date,
end_date=end_date,
@@ -692,7 +690,7 @@ def retrieve_gpu_allocation_graph_for_contract(
@validate_call
- def retrieve_gpu_allocation_graph_for_contract_with_http_info(
+ def get_customer_contract_gpu_allocation_graph_with_http_info(
self,
contract_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
@@ -742,7 +740,7 @@ def retrieve_gpu_allocation_graph_for_contract_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_gpu_allocation_graph_for_contract_serialize(
+ _param = self._get_customer_contract_gpu_allocation_graph_serialize(
contract_id=contract_id,
start_date=start_date,
end_date=end_date,
@@ -772,7 +770,7 @@ def retrieve_gpu_allocation_graph_for_contract_with_http_info(
@validate_call
- def retrieve_gpu_allocation_graph_for_contract_without_preload_content(
+ def get_customer_contract_gpu_allocation_graph_without_preload_content(
self,
contract_id: StrictInt,
start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
@@ -822,7 +820,7 @@ def retrieve_gpu_allocation_graph_for_contract_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_gpu_allocation_graph_for_contract_serialize(
+ _param = self._get_customer_contract_gpu_allocation_graph_serialize(
contract_id=contract_id,
start_date=start_date,
end_date=end_date,
@@ -847,7 +845,7 @@ def retrieve_gpu_allocation_graph_for_contract_without_preload_content(
return response_data.response
- def _retrieve_gpu_allocation_graph_for_contract_serialize(
+ def _get_customer_contract_gpu_allocation_graph_serialize(
self,
contract_id,
start_date,
@@ -900,8 +898,7 @@ def _retrieve_gpu_allocation_graph_for_contract_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/dashboard_api.py b/hyperstack/api/dashboard_api.py
index 691a7a9..992b97c 100644
--- a/hyperstack/api/dashboard_api.py
+++ b/hyperstack/api/dashboard_api.py
@@ -54,7 +54,7 @@ def retrieve_dashboard(
) -> DashboardInfoResponse:
"""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...cloud/docs/resource-management/dashboard/).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -120,7 +120,7 @@ def retrieve_dashboard_with_http_info(
) -> ApiResponse[DashboardInfoResponse]:
"""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...cloud/docs/resource-management/dashboard/).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -186,7 +186,7 @@ def retrieve_dashboard_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/resource-management/dashboard/).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -270,8 +270,7 @@ def _retrieve_dashboard_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/deployment_api.py b/hyperstack/api/deployment_api.py
index 849c1e8..f56a8cb 100644
--- a/hyperstack/api/deployment_api.py
+++ b/hyperstack/api/deployment_api.py
@@ -289,8 +289,7 @@ def _delete_deployment_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -560,8 +559,7 @@ def _details_of_deployment_by_id_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -813,8 +811,7 @@ def _list_deployments_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -1100,8 +1097,7 @@ def _start_deployment_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/environment_api.py b/hyperstack/api/environment_api.py
index f0e575e..b8fed18 100644
--- a/hyperstack/api/environment_api.py
+++ b/hyperstack/api/environment_api.py
@@ -22,6 +22,7 @@
from ..models.create_environment import CreateEnvironment
from ..models.environment import Environment
from ..models.environments import Environments
+from ..models.name_available_model import NameAvailableModel
from ..models.response_model import ResponseModel
from ..models.update_environment import UpdateEnvironment
@@ -62,7 +63,7 @@ def create_environment(
) -> Environment:
"""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...cloud/docs/resource-management/regions/) in the request body.
:param payload: (required)
:type payload: CreateEnvironment
@@ -134,7 +135,7 @@ def create_environment_with_http_info(
) -> ApiResponse[Environment]:
"""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...cloud/docs/resource-management/regions/) in the request body.
:param payload: (required)
:type payload: CreateEnvironment
@@ -206,7 +207,7 @@ def create_environment_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/resource-management/regions/) in the request body.
:param payload: (required)
:type payload: CreateEnvironment
@@ -311,8 +312,7 @@ def _create_environment_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -585,8 +585,7 @@ def _delete_environment_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -607,6 +606,279 @@ def _delete_environment_serialize(
+ @validate_call
+ def fetch_environment_name_availability(
+ self,
+ name: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> NameAvailableModel:
+ """Fetch environment name availability
+
+ Check if a Environment name is available
+
+ :param name: (required)
+ :type name: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._fetch_environment_name_availability_serialize(
+ name=name,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "NameAvailableModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def fetch_environment_name_availability_with_http_info(
+ self,
+ name: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[NameAvailableModel]:
+ """Fetch environment name availability
+
+ Check if a Environment name is available
+
+ :param name: (required)
+ :type name: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._fetch_environment_name_availability_serialize(
+ name=name,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "NameAvailableModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def fetch_environment_name_availability_without_preload_content(
+ self,
+ name: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Fetch environment name availability
+
+ Check if a Environment name is available
+
+ :param name: (required)
+ :type name: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._fetch_environment_name_availability_serialize(
+ name=name,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "NameAvailableModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _fetch_environment_name_availability_serialize(
+ self,
+ name,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if name is not None:
+ _path_params['name'] = name
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/core/environments/name-availability/{name}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
@validate_call
def list_environments(
self,
@@ -628,7 +900,7 @@ def list_environments(
) -> Environments:
"""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).
+ Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs...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 page: Page Number
:type page: str
@@ -706,7 +978,7 @@ def list_environments_with_http_info(
) -> ApiResponse[Environments]:
"""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).
+ Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs...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 page: Page Number
:type page: str
@@ -784,7 +1056,7 @@ def list_environments_without_preload_content(
) -> RESTResponseType:
"""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).
+ Returns a list of your existing environments, providing the following details for each; environment ID, name, [**region**](https://docs...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 page: Page Number
:type page: str
@@ -892,8 +1164,7 @@ def _list_environments_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -1166,8 +1437,7 @@ def _retrieve_environment_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -1468,8 +1738,7 @@ def _update_environment_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/firewall_attachment_api.py b/hyperstack/api/firewall_attachment_api.py
index 6116dc7..d1560f0 100644
--- a/hyperstack/api/firewall_attachment_api.py
+++ b/hyperstack/api/firewall_attachment_api.py
@@ -39,7 +39,7 @@ def __init__(self, api_client=None) -> None:
@validate_call
- def attach_firewalls_to_vms(
+ def post_attach_security_groups(
self,
firewall_id: StrictInt,
payload: AttachFirewallWithVM,
@@ -58,6 +58,7 @@ def attach_firewalls_to_vms(
) -> ResponseModel:
"""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...cloud/docs/api-reference/core-resources/firewalls/attach-firewall-to-vms).
:param firewall_id: (required)
:type firewall_id: int
@@ -85,7 +86,7 @@ def attach_firewalls_to_vms(
:return: Returns the result object.
""" # noqa: E501
- _param = self._attach_firewalls_to_vms_serialize(
+ _param = self._post_attach_security_groups_serialize(
firewall_id=firewall_id,
payload=payload,
_request_auth=_request_auth,
@@ -115,7 +116,7 @@ def attach_firewalls_to_vms(
@validate_call
- def attach_firewalls_to_vms_with_http_info(
+ def post_attach_security_groups_with_http_info(
self,
firewall_id: StrictInt,
payload: AttachFirewallWithVM,
@@ -134,6 +135,7 @@ def attach_firewalls_to_vms_with_http_info(
) -> ApiResponse[ResponseModel]:
"""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...cloud/docs/api-reference/core-resources/firewalls/attach-firewall-to-vms).
:param firewall_id: (required)
:type firewall_id: int
@@ -161,7 +163,7 @@ def attach_firewalls_to_vms_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._attach_firewalls_to_vms_serialize(
+ _param = self._post_attach_security_groups_serialize(
firewall_id=firewall_id,
payload=payload,
_request_auth=_request_auth,
@@ -191,7 +193,7 @@ def attach_firewalls_to_vms_with_http_info(
@validate_call
- def attach_firewalls_to_vms_without_preload_content(
+ def post_attach_security_groups_without_preload_content(
self,
firewall_id: StrictInt,
payload: AttachFirewallWithVM,
@@ -210,6 +212,7 @@ def attach_firewalls_to_vms_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/core-resources/firewalls/attach-firewall-to-vms).
:param firewall_id: (required)
:type firewall_id: int
@@ -237,7 +240,7 @@ def attach_firewalls_to_vms_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._attach_firewalls_to_vms_serialize(
+ _param = self._post_attach_security_groups_serialize(
firewall_id=firewall_id,
payload=payload,
_request_auth=_request_auth,
@@ -262,7 +265,7 @@ def attach_firewalls_to_vms_without_preload_content(
return response_data.response
- def _attach_firewalls_to_vms_serialize(
+ def _post_attach_security_groups_serialize(
self,
firewall_id,
payload,
@@ -321,8 +324,7 @@ def _attach_firewalls_to_vms_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/firewalls_api.py b/hyperstack/api/firewalls_api.py
index 1f1d814..fa17534 100644
--- a/hyperstack/api/firewalls_api.py
+++ b/hyperstack/api/firewalls_api.py
@@ -46,10 +46,9 @@ def __init__(self, api_client=None) -> None:
@validate_call
- def add_firewall_rule_to_firewall(
+ def delete_security_group_details(
self,
- firewall_id: StrictInt,
- payload: CreateFirewallRulePayload,
+ id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -62,15 +61,13 @@ def add_firewall_rule_to_firewall(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> FirewallRule:
- """Add firewall rule to firewall
+ ) -> ResponseModel:
+ """Delete 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.
+ 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...cloud/docs/api-reference/core-resources/firewalls/delete-firewall).
- :param firewall_id: (required)
- :type firewall_id: int
- :param payload: (required)
- :type payload: CreateFirewallRulePayload
+ :param id: (required)
+ :type id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -93,9 +90,8 @@ def add_firewall_rule_to_firewall(
:return: Returns the result object.
""" # noqa: E501
- _param = self._add_firewall_rule_to_firewall_serialize(
- firewall_id=firewall_id,
- payload=payload,
+ _param = self._delete_security_group_details_serialize(
+ id=id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -103,10 +99,12 @@ def add_firewall_rule_to_firewall(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "FirewallRule",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -121,10 +119,9 @@ def add_firewall_rule_to_firewall(
@validate_call
- def add_firewall_rule_to_firewall_with_http_info(
+ def delete_security_group_details_with_http_info(
self,
- firewall_id: StrictInt,
- payload: CreateFirewallRulePayload,
+ id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -137,15 +134,13 @@ def add_firewall_rule_to_firewall_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[FirewallRule]:
- """Add firewall rule to firewall
+ ) -> ApiResponse[ResponseModel]:
+ """Delete 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.
+ 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...cloud/docs/api-reference/core-resources/firewalls/delete-firewall).
- :param firewall_id: (required)
- :type firewall_id: int
- :param payload: (required)
- :type payload: CreateFirewallRulePayload
+ :param id: (required)
+ :type id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -168,9 +163,8 @@ def add_firewall_rule_to_firewall_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._add_firewall_rule_to_firewall_serialize(
- firewall_id=firewall_id,
- payload=payload,
+ _param = self._delete_security_group_details_serialize(
+ id=id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -178,10 +172,12 @@ def add_firewall_rule_to_firewall_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "FirewallRule",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -196,10 +192,9 @@ def add_firewall_rule_to_firewall_with_http_info(
@validate_call
- def add_firewall_rule_to_firewall_without_preload_content(
+ def delete_security_group_details_without_preload_content(
self,
- firewall_id: StrictInt,
- payload: CreateFirewallRulePayload,
+ id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -213,14 +208,12 @@ def add_firewall_rule_to_firewall_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Add firewall rule to firewall
+ """Delete 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.
+ 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...cloud/docs/api-reference/core-resources/firewalls/delete-firewall).
- :param firewall_id: (required)
- :type firewall_id: int
- :param payload: (required)
- :type payload: CreateFirewallRulePayload
+ :param id: (required)
+ :type id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -243,9 +236,8 @@ def add_firewall_rule_to_firewall_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._add_firewall_rule_to_firewall_serialize(
- firewall_id=firewall_id,
- payload=payload,
+ _param = self._delete_security_group_details_serialize(
+ id=id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -253,10 +245,12 @@ def add_firewall_rule_to_firewall_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "FirewallRule",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -266,10 +260,9 @@ def add_firewall_rule_to_firewall_without_preload_content(
return response_data.response
- def _add_firewall_rule_to_firewall_serialize(
+ def _delete_security_group_details_serialize(
self,
- firewall_id,
- payload,
+ id,
_request_auth,
_content_type,
_headers,
@@ -291,14 +284,12 @@ def _add_firewall_rule_to_firewall_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if firewall_id is not None:
- _path_params['firewall_id'] = firewall_id
+ if id is not None:
+ _path_params['id'] = id
# process the query parameters
# process the header parameters
# process the form parameters
# process the body parameter
- if payload is not None:
- _body_params = payload
# set the HTTP header `Accept`
@@ -309,29 +300,15 @@ def _add_firewall_rule_to_firewall_serialize(
]
)
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='POST',
- resource_path='/core/firewalls/{firewall_id}/firewall-rules',
+ method='DELETE',
+ resource_path='/core/firewalls/{id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -348,9 +325,10 @@ def _add_firewall_rule_to_firewall_serialize(
@validate_call
- def create_firewall(
+ def delete_security_group_rule_delete(
self,
- payload: CreateFirewallPayload,
+ firewall_id: StrictInt,
+ firewall_rule_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -363,13 +341,15 @@ def create_firewall(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> FirewallResponse:
- """Create firewall
+ ) -> ResponseModel:
+ """Delete firewall rules from 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.
+ 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...cloud/docs/api-reference/core-resources/firewalls/remove-firewall-rule-from-firewall).
- :param payload: (required)
- :type payload: CreateFirewallPayload
+ :param firewall_id: (required)
+ :type firewall_id: int
+ :param firewall_rule_id: (required)
+ :type firewall_rule_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -392,8 +372,9 @@ def create_firewall(
:return: Returns the result object.
""" # noqa: E501
- _param = self._create_firewall_serialize(
- payload=payload,
+ _param = self._delete_security_group_rule_delete_serialize(
+ firewall_id=firewall_id,
+ firewall_rule_id=firewall_rule_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -401,7 +382,7 @@ def create_firewall(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "FirewallResponse",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -421,9 +402,10 @@ def create_firewall(
@validate_call
- def create_firewall_with_http_info(
+ def delete_security_group_rule_delete_with_http_info(
self,
- payload: CreateFirewallPayload,
+ firewall_id: StrictInt,
+ firewall_rule_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -436,13 +418,15 @@ def create_firewall_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[FirewallResponse]:
- """Create firewall
+ ) -> ApiResponse[ResponseModel]:
+ """Delete firewall rules from 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.
+ 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...cloud/docs/api-reference/core-resources/firewalls/remove-firewall-rule-from-firewall).
- :param payload: (required)
- :type payload: CreateFirewallPayload
+ :param firewall_id: (required)
+ :type firewall_id: int
+ :param firewall_rule_id: (required)
+ :type firewall_rule_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -465,8 +449,9 @@ def create_firewall_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._create_firewall_serialize(
- payload=payload,
+ _param = self._delete_security_group_rule_delete_serialize(
+ firewall_id=firewall_id,
+ firewall_rule_id=firewall_rule_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -474,7 +459,7 @@ def create_firewall_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "FirewallResponse",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -494,9 +479,10 @@ def create_firewall_with_http_info(
@validate_call
- def create_firewall_without_preload_content(
+ def delete_security_group_rule_delete_without_preload_content(
self,
- payload: CreateFirewallPayload,
+ firewall_id: StrictInt,
+ firewall_rule_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -510,12 +496,14 @@ def create_firewall_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Create firewall
+ """Delete firewall rules from 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.
+ 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...cloud/docs/api-reference/core-resources/firewalls/remove-firewall-rule-from-firewall).
- :param payload: (required)
- :type payload: CreateFirewallPayload
+ :param firewall_id: (required)
+ :type firewall_id: int
+ :param firewall_rule_id: (required)
+ :type firewall_rule_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -538,8 +526,9 @@ def create_firewall_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._create_firewall_serialize(
- payload=payload,
+ _param = self._delete_security_group_rule_delete_serialize(
+ firewall_id=firewall_id,
+ firewall_rule_id=firewall_rule_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -547,7 +536,7 @@ def create_firewall_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "FirewallResponse",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -562,9 +551,10 @@ def create_firewall_without_preload_content(
return response_data.response
- def _create_firewall_serialize(
+ def _delete_security_group_rule_delete_serialize(
self,
- payload,
+ firewall_id,
+ firewall_rule_id,
_request_auth,
_content_type,
_headers,
@@ -586,12 +576,14 @@ def _create_firewall_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
+ if firewall_id is not None:
+ _path_params['firewall_id'] = firewall_id
+ if firewall_rule_id is not None:
+ _path_params['firewall_rule_id'] = firewall_rule_id
# process the query parameters
# process the header parameters
# process the form parameters
# process the body parameter
- if payload is not None:
- _body_params = payload
# set the HTTP header `Accept`
@@ -602,29 +594,15 @@ def _create_firewall_serialize(
]
)
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='POST',
- resource_path='/core/firewalls',
+ method='DELETE',
+ resource_path='/core/firewalls/{firewall_id}/firewall-rules/{firewall_rule_id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -641,9 +619,12 @@ def _create_firewall_serialize(
@validate_call
- def delete_firewall(
+ def get_security_group(
self,
- id: StrictInt,
+ page: Optional[StrictInt] = None,
+ page_size: Optional[StrictInt] = None,
+ search: Optional[StrictStr] = None,
+ environment: Annotated[Optional[StrictStr], Field(description="Filter Environment ID or Name")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -656,13 +637,19 @@ def delete_firewall(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ResponseModel:
- """Delete firewall
+ ) -> FirewallsListResponse:
+ """List firewalls
- 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).
+ 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...cloud/docs/network-security/security-groups).
- :param id: (required)
- :type id: int
+ :param page:
+ :type page: int
+ :param page_size:
+ :type page_size: int
+ :param search:
+ :type search: str
+ :param environment: Filter Environment ID or Name
+ :type environment: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -685,8 +672,11 @@ def delete_firewall(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_firewall_serialize(
- id=id,
+ _param = self._get_security_group_serialize(
+ page=page,
+ page_size=page_size,
+ search=search,
+ environment=environment,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -694,12 +684,10 @@ def delete_firewall(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "FirewallsListResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
- '404': "ErrorResponseModel",
- '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -714,9 +702,12 @@ def delete_firewall(
@validate_call
- def delete_firewall_with_http_info(
+ def get_security_group_with_http_info(
self,
- id: StrictInt,
+ page: Optional[StrictInt] = None,
+ page_size: Optional[StrictInt] = None,
+ search: Optional[StrictStr] = None,
+ environment: Annotated[Optional[StrictStr], Field(description="Filter Environment ID or Name")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -729,13 +720,19 @@ def delete_firewall_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ResponseModel]:
- """Delete firewall
+ ) -> ApiResponse[FirewallsListResponse]:
+ """List firewalls
- 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).
+ 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...cloud/docs/network-security/security-groups).
- :param id: (required)
- :type id: int
+ :param page:
+ :type page: int
+ :param page_size:
+ :type page_size: int
+ :param search:
+ :type search: str
+ :param environment: Filter Environment ID or Name
+ :type environment: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -758,8 +755,11 @@ def delete_firewall_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_firewall_serialize(
- id=id,
+ _param = self._get_security_group_serialize(
+ page=page,
+ page_size=page_size,
+ search=search,
+ environment=environment,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -767,12 +767,10 @@ def delete_firewall_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "FirewallsListResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
- '404': "ErrorResponseModel",
- '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -787,9 +785,12 @@ def delete_firewall_with_http_info(
@validate_call
- def delete_firewall_without_preload_content(
+ def get_security_group_without_preload_content(
self,
- id: StrictInt,
+ page: Optional[StrictInt] = None,
+ page_size: Optional[StrictInt] = None,
+ search: Optional[StrictStr] = None,
+ environment: Annotated[Optional[StrictStr], Field(description="Filter Environment ID or Name")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -803,12 +804,18 @@ def delete_firewall_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Delete firewall
+ """List firewalls
- 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).
+ 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...cloud/docs/network-security/security-groups).
- :param id: (required)
- :type id: int
+ :param page:
+ :type page: int
+ :param page_size:
+ :type page_size: int
+ :param search:
+ :type search: str
+ :param environment: Filter Environment ID or Name
+ :type environment: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -831,8 +838,11 @@ def delete_firewall_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_firewall_serialize(
- id=id,
+ _param = self._get_security_group_serialize(
+ page=page,
+ page_size=page_size,
+ search=search,
+ environment=environment,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -840,12 +850,10 @@ def delete_firewall_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "FirewallsListResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
- '404': "ErrorResponseModel",
- '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -855,9 +863,12 @@ def delete_firewall_without_preload_content(
return response_data.response
- def _delete_firewall_serialize(
+ def _get_security_group_serialize(
self,
- id,
+ page,
+ page_size,
+ search,
+ environment,
_request_auth,
_content_type,
_headers,
@@ -879,14 +890,28 @@ def _delete_firewall_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
# process the query parameters
- # process the header parameters
- # process the form parameters
- # process the body parameter
-
-
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if page_size is not None:
+
+ _query_params.append(('pageSize', page_size))
+
+ if search is not None:
+
+ _query_params.append(('search', search))
+
+ if environment is not None:
+
+ _query_params.append(('environment', environment))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
# set the HTTP header `Accept`
if 'Accept' not in _header_params:
_header_params['Accept'] = self.api_client.select_header_accept(
@@ -898,13 +923,12 @@ def _delete_firewall_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='DELETE',
- resource_path='/core/firewalls/{id}',
+ method='GET',
+ resource_path='/core/firewalls',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -921,10 +945,9 @@ def _delete_firewall_serialize(
@validate_call
- def delete_firewall_rules_from_firewall(
+ def get_security_group_details(
self,
- firewall_id: StrictInt,
- firewall_rule_id: StrictInt,
+ id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -937,15 +960,13 @@ def delete_firewall_rules_from_firewall(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ResponseModel:
- """Delete firewall rules from firewall
+ ) -> FirewallDetailResponse:
+ """Retrieve firewall details
- 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).
+ 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 firewall_id: (required)
- :type firewall_id: int
- :param firewall_rule_id: (required)
- :type firewall_rule_id: int
+ :param id: (required)
+ :type id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -968,9 +989,8 @@ def delete_firewall_rules_from_firewall(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_firewall_rules_from_firewall_serialize(
- firewall_id=firewall_id,
- firewall_rule_id=firewall_rule_id,
+ _param = self._get_security_group_details_serialize(
+ id=id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -978,12 +998,11 @@ def delete_firewall_rules_from_firewall(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "FirewallDetailResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
'404': "ErrorResponseModel",
- '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -998,10 +1017,9 @@ def delete_firewall_rules_from_firewall(
@validate_call
- def delete_firewall_rules_from_firewall_with_http_info(
+ def get_security_group_details_with_http_info(
self,
- firewall_id: StrictInt,
- firewall_rule_id: StrictInt,
+ id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1014,15 +1032,13 @@ def delete_firewall_rules_from_firewall_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ResponseModel]:
- """Delete firewall rules from firewall
+ ) -> ApiResponse[FirewallDetailResponse]:
+ """Retrieve firewall details
- 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).
+ 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 firewall_id: (required)
- :type firewall_id: int
- :param firewall_rule_id: (required)
- :type firewall_rule_id: int
+ :param id: (required)
+ :type id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1045,9 +1061,8 @@ def delete_firewall_rules_from_firewall_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_firewall_rules_from_firewall_serialize(
- firewall_id=firewall_id,
- firewall_rule_id=firewall_rule_id,
+ _param = self._get_security_group_details_serialize(
+ id=id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1055,12 +1070,11 @@ def delete_firewall_rules_from_firewall_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "FirewallDetailResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
'404': "ErrorResponseModel",
- '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1075,10 +1089,9 @@ def delete_firewall_rules_from_firewall_with_http_info(
@validate_call
- def delete_firewall_rules_from_firewall_without_preload_content(
+ def get_security_group_details_without_preload_content(
self,
- firewall_id: StrictInt,
- firewall_rule_id: StrictInt,
+ id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1092,14 +1105,12 @@ def delete_firewall_rules_from_firewall_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Delete firewall rules from firewall
+ """Retrieve firewall details
- 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).
+ 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 firewall_id: (required)
- :type firewall_id: int
- :param firewall_rule_id: (required)
- :type firewall_rule_id: int
+ :param id: (required)
+ :type id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1122,9 +1133,8 @@ def delete_firewall_rules_from_firewall_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_firewall_rules_from_firewall_serialize(
- firewall_id=firewall_id,
- firewall_rule_id=firewall_rule_id,
+ _param = self._get_security_group_details_serialize(
+ id=id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1132,12 +1142,11 @@ def delete_firewall_rules_from_firewall_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "FirewallDetailResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
'404': "ErrorResponseModel",
- '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1147,10 +1156,9 @@ def delete_firewall_rules_from_firewall_without_preload_content(
return response_data.response
- def _delete_firewall_rules_from_firewall_serialize(
+ def _get_security_group_details_serialize(
self,
- firewall_id,
- firewall_rule_id,
+ id,
_request_auth,
_content_type,
_headers,
@@ -1172,10 +1180,8 @@ def _delete_firewall_rules_from_firewall_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if firewall_id is not None:
- _path_params['firewall_id'] = firewall_id
- if firewall_rule_id is not None:
- _path_params['firewall_rule_id'] = firewall_rule_id
+ if id is not None:
+ _path_params['id'] = id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -1193,13 +1199,12 @@ def _delete_firewall_rules_from_firewall_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='DELETE',
- resource_path='/core/firewalls/{firewall_id}/firewall-rules/{firewall_rule_id}',
+ method='GET',
+ resource_path='/core/firewalls/{id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1216,12 +1221,9 @@ def _delete_firewall_rules_from_firewall_serialize(
@validate_call
- def list_firewalls(
+ def post_security_group(
self,
- page: Optional[StrictInt] = None,
- page_size: Optional[StrictInt] = None,
- search: Optional[StrictStr] = None,
- environment: Annotated[Optional[StrictStr], Field(description="Filter Environment ID or Name")] = None,
+ payload: CreateFirewallPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1234,19 +1236,13 @@ def list_firewalls(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> FirewallsListResponse:
- """List firewalls
+ ) -> FirewallResponse:
+ """Create firewall
- 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).
+ 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...cloud/docs/api-reference/core-resources/environments/list-environments) endpoint.
- :param page:
- :type page: int
- :param page_size:
- :type page_size: int
- :param search:
- :type search: str
- :param environment: Filter Environment ID or Name
- :type environment: str
+ :param payload: (required)
+ :type payload: CreateFirewallPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1269,11 +1265,8 @@ def list_firewalls(
:return: Returns the result object.
""" # noqa: E501
- _param = self._list_firewalls_serialize(
- page=page,
- page_size=page_size,
- search=search,
- environment=environment,
+ _param = self._post_security_group_serialize(
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1281,10 +1274,12 @@ def list_firewalls(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "FirewallsListResponse",
+ '200': "FirewallResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1299,12 +1294,9 @@ def list_firewalls(
@validate_call
- def list_firewalls_with_http_info(
+ def post_security_group_with_http_info(
self,
- page: Optional[StrictInt] = None,
- page_size: Optional[StrictInt] = None,
- search: Optional[StrictStr] = None,
- environment: Annotated[Optional[StrictStr], Field(description="Filter Environment ID or Name")] = None,
+ payload: CreateFirewallPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1317,19 +1309,13 @@ def list_firewalls_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[FirewallsListResponse]:
- """List firewalls
+ ) -> ApiResponse[FirewallResponse]:
+ """Create firewall
- 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).
+ 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...cloud/docs/api-reference/core-resources/environments/list-environments) endpoint.
- :param page:
- :type page: int
- :param page_size:
- :type page_size: int
- :param search:
- :type search: str
- :param environment: Filter Environment ID or Name
- :type environment: str
+ :param payload: (required)
+ :type payload: CreateFirewallPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1352,11 +1338,8 @@ def list_firewalls_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._list_firewalls_serialize(
- page=page,
- page_size=page_size,
- search=search,
- environment=environment,
+ _param = self._post_security_group_serialize(
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1364,10 +1347,12 @@ def list_firewalls_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "FirewallsListResponse",
+ '200': "FirewallResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1382,12 +1367,9 @@ def list_firewalls_with_http_info(
@validate_call
- def list_firewalls_without_preload_content(
+ def post_security_group_without_preload_content(
self,
- page: Optional[StrictInt] = None,
- page_size: Optional[StrictInt] = None,
- search: Optional[StrictStr] = None,
- environment: Annotated[Optional[StrictStr], Field(description="Filter Environment ID or Name")] = None,
+ payload: CreateFirewallPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1401,18 +1383,12 @@ def list_firewalls_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """List firewalls
+ """Create firewall
- 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).
+ 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...cloud/docs/api-reference/core-resources/environments/list-environments) endpoint.
- :param page:
- :type page: int
- :param page_size:
- :type page_size: int
- :param search:
- :type search: str
- :param environment: Filter Environment ID or Name
- :type environment: str
+ :param payload: (required)
+ :type payload: CreateFirewallPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1435,11 +1411,8 @@ def list_firewalls_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._list_firewalls_serialize(
- page=page,
- page_size=page_size,
- search=search,
- environment=environment,
+ _param = self._post_security_group_serialize(
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1447,10 +1420,12 @@ def list_firewalls_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "FirewallsListResponse",
+ '200': "FirewallResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1460,12 +1435,9 @@ def list_firewalls_without_preload_content(
return response_data.response
- def _list_firewalls_serialize(
+ def _post_security_group_serialize(
self,
- page,
- page_size,
- search,
- environment,
+ payload,
_request_auth,
_content_type,
_headers,
@@ -1488,25 +1460,11 @@ def _list_firewalls_serialize(
# process the path parameters
# process the query parameters
- if page is not None:
-
- _query_params.append(('page', page))
-
- if page_size is not None:
-
- _query_params.append(('pageSize', page_size))
-
- if search is not None:
-
- _query_params.append(('search', search))
-
- if environment is not None:
-
- _query_params.append(('environment', environment))
-
# process the header parameters
# process the form parameters
# process the body parameter
+ if payload is not None:
+ _body_params = payload
# set the HTTP header `Accept`
@@ -1517,15 +1475,27 @@ def _list_firewalls_serialize(
]
)
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='GET',
+ method='POST',
resource_path='/core/firewalls',
path_params=_path_params,
query_params=_query_params,
@@ -1543,9 +1513,10 @@ def _list_firewalls_serialize(
@validate_call
- def retrieve_firewall_details(
+ def post_security_group_rules(
self,
- id: StrictInt,
+ firewall_id: StrictInt,
+ payload: CreateFirewallRulePayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1558,13 +1529,15 @@ def retrieve_firewall_details(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> FirewallDetailResponse:
- """Retrieve firewall details
+ ) -> FirewallRule:
+ """Add firewall rule to firewall
- Retrieves the details of an existing firewall, including the security rules it contains and information about the virtual machines to which it is attached.
+ Creates a [**firewall rule**](https://docs...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 id: (required)
- :type id: int
+ :param firewall_id: (required)
+ :type firewall_id: int
+ :param payload: (required)
+ :type payload: CreateFirewallRulePayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1587,8 +1560,9 @@ def retrieve_firewall_details(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_firewall_details_serialize(
- id=id,
+ _param = self._post_security_group_rules_serialize(
+ firewall_id=firewall_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1596,11 +1570,10 @@ def retrieve_firewall_details(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "FirewallDetailResponse",
+ '200': "FirewallRule",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
- '404': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1615,9 +1588,10 @@ def retrieve_firewall_details(
@validate_call
- def retrieve_firewall_details_with_http_info(
+ def post_security_group_rules_with_http_info(
self,
- id: StrictInt,
+ firewall_id: StrictInt,
+ payload: CreateFirewallRulePayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1630,13 +1604,15 @@ def retrieve_firewall_details_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[FirewallDetailResponse]:
- """Retrieve firewall details
+ ) -> ApiResponse[FirewallRule]:
+ """Add firewall rule to firewall
- Retrieves the details of an existing firewall, including the security rules it contains and information about the virtual machines to which it is attached.
+ Creates a [**firewall rule**](https://docs...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 id: (required)
- :type id: int
+ :param firewall_id: (required)
+ :type firewall_id: int
+ :param payload: (required)
+ :type payload: CreateFirewallRulePayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1659,8 +1635,9 @@ def retrieve_firewall_details_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_firewall_details_serialize(
- id=id,
+ _param = self._post_security_group_rules_serialize(
+ firewall_id=firewall_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1668,11 +1645,10 @@ def retrieve_firewall_details_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "FirewallDetailResponse",
+ '200': "FirewallRule",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
- '404': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1687,9 +1663,10 @@ def retrieve_firewall_details_with_http_info(
@validate_call
- def retrieve_firewall_details_without_preload_content(
+ def post_security_group_rules_without_preload_content(
self,
- id: StrictInt,
+ firewall_id: StrictInt,
+ payload: CreateFirewallRulePayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1703,12 +1680,14 @@ def retrieve_firewall_details_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve firewall details
+ """Add firewall rule to firewall
- Retrieves the details of an existing firewall, including the security rules it contains and information about the virtual machines to which it is attached.
+ Creates a [**firewall rule**](https://docs...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 id: (required)
- :type id: int
+ :param firewall_id: (required)
+ :type firewall_id: int
+ :param payload: (required)
+ :type payload: CreateFirewallRulePayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1731,8 +1710,9 @@ def retrieve_firewall_details_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_firewall_details_serialize(
- id=id,
+ _param = self._post_security_group_rules_serialize(
+ firewall_id=firewall_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1740,11 +1720,10 @@ def retrieve_firewall_details_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "FirewallDetailResponse",
+ '200': "FirewallRule",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
- '404': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1754,9 +1733,10 @@ def retrieve_firewall_details_without_preload_content(
return response_data.response
- def _retrieve_firewall_details_serialize(
+ def _post_security_group_rules_serialize(
self,
- id,
+ firewall_id,
+ payload,
_request_auth,
_content_type,
_headers,
@@ -1778,12 +1758,14 @@ def _retrieve_firewall_details_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if firewall_id is not None:
+ _path_params['firewall_id'] = firewall_id
# process the query parameters
# process the header parameters
# process the form parameters
# process the body parameter
+ if payload is not None:
+ _body_params = payload
# set the HTTP header `Accept`
@@ -1794,16 +1776,28 @@ def _retrieve_firewall_details_serialize(
]
)
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='GET',
- resource_path='/core/firewalls/{id}',
+ method='POST',
+ resource_path='/core/firewalls/{firewall_id}/firewall-rules',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
diff --git a/hyperstack/api/flavor_api.py b/hyperstack/api/flavor_api.py
index db2ec4d..4114d95 100644
--- a/hyperstack/api/flavor_api.py
+++ b/hyperstack/api/flavor_api.py
@@ -58,7 +58,7 @@ def list_flavors(
) -> FlavorListResponse:
"""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...cloud/docs/hardware/flavors).
:param region: Region Name
:type region: str
@@ -129,7 +129,7 @@ def list_flavors_with_http_info(
) -> ApiResponse[FlavorListResponse]:
"""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...cloud/docs/hardware/flavors).
:param region: Region Name
:type region: str
@@ -200,7 +200,7 @@ def list_flavors_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/hardware/flavors).
:param region: Region Name
:type region: str
@@ -293,8 +293,7 @@ def _list_flavors_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/floating_ip_api.py b/hyperstack/api/floating_ip_api.py
index cac18dd..10f44b0 100644
--- a/hyperstack/api/floating_ip_api.py
+++ b/hyperstack/api/floating_ip_api.py
@@ -38,9 +38,9 @@ def __init__(self, api_client=None) -> None:
@validate_call
- def attach_public_ip_to_virtual_machine(
+ def attach_public_ipto_virtual_machine(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -56,10 +56,10 @@ def attach_public_ip_to_virtual_machine(
) -> ResponseModel:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/floating-ip/attach-floating-ip/).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -82,8 +82,8 @@ def attach_public_ip_to_virtual_machine(
:return: Returns the result object.
""" # noqa: E501
- _param = self._attach_public_ip_to_virtual_machine_serialize(
- id=id,
+ _param = self._attach_public_ipto_virtual_machine_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -94,6 +94,7 @@ def attach_public_ip_to_virtual_machine(
'200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
+ '402': "ErrorResponseModel",
'404': "ErrorResponseModel",
'500': None,
}
@@ -109,9 +110,9 @@ def attach_public_ip_to_virtual_machine(
@validate_call
- def attach_public_ip_to_virtual_machine_with_http_info(
+ def attach_public_ipto_virtual_machine_with_http_info(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -127,10 +128,10 @@ def attach_public_ip_to_virtual_machine_with_http_info(
) -> ApiResponse[ResponseModel]:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/floating-ip/attach-floating-ip/).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -153,8 +154,8 @@ def attach_public_ip_to_virtual_machine_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._attach_public_ip_to_virtual_machine_serialize(
- id=id,
+ _param = self._attach_public_ipto_virtual_machine_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -165,6 +166,7 @@ def attach_public_ip_to_virtual_machine_with_http_info(
'200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
+ '402': "ErrorResponseModel",
'404': "ErrorResponseModel",
'500': None,
}
@@ -180,9 +182,9 @@ def attach_public_ip_to_virtual_machine_with_http_info(
@validate_call
- def attach_public_ip_to_virtual_machine_without_preload_content(
+ def attach_public_ipto_virtual_machine_without_preload_content(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -198,10 +200,10 @@ def attach_public_ip_to_virtual_machine_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/floating-ip/attach-floating-ip/).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -224,8 +226,8 @@ def attach_public_ip_to_virtual_machine_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._attach_public_ip_to_virtual_machine_serialize(
- id=id,
+ _param = self._attach_public_ipto_virtual_machine_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -236,6 +238,7 @@ def attach_public_ip_to_virtual_machine_without_preload_content(
'200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
+ '402': "ErrorResponseModel",
'404': "ErrorResponseModel",
'500': None,
}
@@ -246,9 +249,9 @@ def attach_public_ip_to_virtual_machine_without_preload_content(
return response_data.response
- def _attach_public_ip_to_virtual_machine_serialize(
+ def _attach_public_ipto_virtual_machine_serialize(
self,
- id,
+ vm_id,
_request_auth,
_content_type,
_headers,
@@ -270,8 +273,8 @@ def _attach_public_ip_to_virtual_machine_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -289,13 +292,12 @@ def _attach_public_ip_to_virtual_machine_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='POST',
- resource_path='/core/virtual-machines/{id}/attach-floatingip',
+ resource_path='/core/virtual-machines/{vm_id}/attach-floatingip',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -314,7 +316,7 @@ def _attach_public_ip_to_virtual_machine_serialize(
@validate_call
def detach_public_ip_from_virtual_machine(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -330,10 +332,10 @@ def detach_public_ip_from_virtual_machine(
) -> ResponseModel:
"""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...cloud/docs/virtual-machines/public-ip).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -357,7 +359,7 @@ def detach_public_ip_from_virtual_machine(
""" # noqa: E501
_param = self._detach_public_ip_from_virtual_machine_serialize(
- id=id,
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -385,7 +387,7 @@ def detach_public_ip_from_virtual_machine(
@validate_call
def detach_public_ip_from_virtual_machine_with_http_info(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -401,10 +403,10 @@ def detach_public_ip_from_virtual_machine_with_http_info(
) -> ApiResponse[ResponseModel]:
"""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...cloud/docs/virtual-machines/public-ip).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -428,7 +430,7 @@ def detach_public_ip_from_virtual_machine_with_http_info(
""" # noqa: E501
_param = self._detach_public_ip_from_virtual_machine_serialize(
- id=id,
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -456,7 +458,7 @@ def detach_public_ip_from_virtual_machine_with_http_info(
@validate_call
def detach_public_ip_from_virtual_machine_without_preload_content(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -472,10 +474,10 @@ def detach_public_ip_from_virtual_machine_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/virtual-machines/public-ip).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -499,7 +501,7 @@ def detach_public_ip_from_virtual_machine_without_preload_content(
""" # noqa: E501
_param = self._detach_public_ip_from_virtual_machine_serialize(
- id=id,
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -522,7 +524,7 @@ def detach_public_ip_from_virtual_machine_without_preload_content(
def _detach_public_ip_from_virtual_machine_serialize(
self,
- id,
+ vm_id,
_request_auth,
_content_type,
_headers,
@@ -544,8 +546,8 @@ def _detach_public_ip_from_virtual_machine_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -563,13 +565,12 @@ def _detach_public_ip_from_virtual_machine_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='POST',
- resource_path='/core/virtual-machines/{id}/detach-floatingip',
+ resource_path='/core/virtual-machines/{vm_id}/detach-floatingip',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
diff --git a/hyperstack/api/gpu_api.py b/hyperstack/api/gpu_api.py
index 0fbda59..76df961 100644
--- a/hyperstack/api/gpu_api.py
+++ b/hyperstack/api/gpu_api.py
@@ -270,8 +270,7 @@ def _list_gpus_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/image_api.py b/hyperstack/api/image_api.py
index c7b3925..190ffbf 100644
--- a/hyperstack/api/image_api.py
+++ b/hyperstack/api/image_api.py
@@ -43,7 +43,7 @@ def __init__(self, api_client=None) -> None:
@validate_call
- def delete_an_image(
+ def delete_image(
self,
id: StrictInt,
_request_timeout: Union[
@@ -87,7 +87,7 @@ def delete_an_image(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_an_image_serialize(
+ _param = self._delete_image_serialize(
id=id,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -114,7 +114,7 @@ def delete_an_image(
@validate_call
- def delete_an_image_with_http_info(
+ def delete_image_with_http_info(
self,
id: StrictInt,
_request_timeout: Union[
@@ -158,7 +158,7 @@ def delete_an_image_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_an_image_serialize(
+ _param = self._delete_image_serialize(
id=id,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -185,7 +185,7 @@ def delete_an_image_with_http_info(
@validate_call
- def delete_an_image_without_preload_content(
+ def delete_image_without_preload_content(
self,
id: StrictInt,
_request_timeout: Union[
@@ -229,7 +229,7 @@ def delete_an_image_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_an_image_serialize(
+ _param = self._delete_image_serialize(
id=id,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -251,7 +251,7 @@ def delete_an_image_without_preload_content(
return response_data.response
- def _delete_an_image_serialize(
+ def _delete_image_serialize(
self,
id,
_request_auth,
@@ -294,8 +294,7 @@ def _delete_an_image_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -317,7 +316,7 @@ def _delete_an_image_serialize(
@validate_call
- def fetch_name_availability_for_images(
+ def fetch_image_name_availability(
self,
name: StrictStr,
_request_timeout: Union[
@@ -361,7 +360,7 @@ def fetch_name_availability_for_images(
:return: Returns the result object.
""" # noqa: E501
- _param = self._fetch_name_availability_for_images_serialize(
+ _param = self._fetch_image_name_availability_serialize(
name=name,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -388,7 +387,7 @@ def fetch_name_availability_for_images(
@validate_call
- def fetch_name_availability_for_images_with_http_info(
+ def fetch_image_name_availability_with_http_info(
self,
name: StrictStr,
_request_timeout: Union[
@@ -432,7 +431,7 @@ def fetch_name_availability_for_images_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._fetch_name_availability_for_images_serialize(
+ _param = self._fetch_image_name_availability_serialize(
name=name,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -459,7 +458,7 @@ def fetch_name_availability_for_images_with_http_info(
@validate_call
- def fetch_name_availability_for_images_without_preload_content(
+ def fetch_image_name_availability_without_preload_content(
self,
name: StrictStr,
_request_timeout: Union[
@@ -503,7 +502,7 @@ def fetch_name_availability_for_images_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._fetch_name_availability_for_images_serialize(
+ _param = self._fetch_image_name_availability_serialize(
name=name,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -525,7 +524,7 @@ def fetch_name_availability_for_images_without_preload_content(
return response_data.response
- def _fetch_name_availability_for_images_serialize(
+ def _fetch_image_name_availability_serialize(
self,
name,
_request_auth,
@@ -568,8 +567,7 @@ def _fetch_name_availability_for_images_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -591,7 +589,7 @@ def _fetch_name_availability_for_images_serialize(
@validate_call
- def get_private_image_details(
+ def get_image_details(
self,
id: StrictInt,
include_related_vms: Optional[StrictBool] = None,
@@ -638,7 +636,7 @@ def get_private_image_details(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_private_image_details_serialize(
+ _param = self._get_image_details_serialize(
id=id,
include_related_vms=include_related_vms,
_request_auth=_request_auth,
@@ -666,7 +664,7 @@ def get_private_image_details(
@validate_call
- def get_private_image_details_with_http_info(
+ def get_image_details_with_http_info(
self,
id: StrictInt,
include_related_vms: Optional[StrictBool] = None,
@@ -713,7 +711,7 @@ def get_private_image_details_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_private_image_details_serialize(
+ _param = self._get_image_details_serialize(
id=id,
include_related_vms=include_related_vms,
_request_auth=_request_auth,
@@ -741,7 +739,7 @@ def get_private_image_details_with_http_info(
@validate_call
- def get_private_image_details_without_preload_content(
+ def get_image_details_without_preload_content(
self,
id: StrictInt,
include_related_vms: Optional[StrictBool] = None,
@@ -788,7 +786,7 @@ def get_private_image_details_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_private_image_details_serialize(
+ _param = self._get_image_details_serialize(
id=id,
include_related_vms=include_related_vms,
_request_auth=_request_auth,
@@ -811,7 +809,7 @@ def get_private_image_details_without_preload_content(
return response_data.response
- def _get_private_image_details_serialize(
+ def _get_image_details_serialize(
self,
id,
include_related_vms,
@@ -859,8 +857,7 @@ def _get_private_image_details_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -882,7 +879,7 @@ def _get_private_image_details_serialize(
@validate_call
- def list_images(
+ def list_images2(
self,
region: Annotated[Optional[StrictStr], Field(description="Region Name")] = None,
include_public: Annotated[Optional[StrictBool], Field(description="Flag to include public images in the response (true/false). Default is true.")] = None,
@@ -904,7 +901,7 @@ def list_images(
) -> Images:
"""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...cloud/docs/virtual-machines/images).
:param region: Region Name
:type region: str
@@ -938,7 +935,7 @@ def list_images(
:return: Returns the result object.
""" # noqa: E501
- _param = self._list_images_serialize(
+ _param = self._list_images2_serialize(
region=region,
include_public=include_public,
search=search,
@@ -970,7 +967,7 @@ def list_images(
@validate_call
- def list_images_with_http_info(
+ def list_images2_with_http_info(
self,
region: Annotated[Optional[StrictStr], Field(description="Region Name")] = None,
include_public: Annotated[Optional[StrictBool], Field(description="Flag to include public images in the response (true/false). Default is true.")] = None,
@@ -992,7 +989,7 @@ def list_images_with_http_info(
) -> ApiResponse[Images]:
"""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...cloud/docs/virtual-machines/images).
:param region: Region Name
:type region: str
@@ -1026,7 +1023,7 @@ def list_images_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._list_images_serialize(
+ _param = self._list_images2_serialize(
region=region,
include_public=include_public,
search=search,
@@ -1058,7 +1055,7 @@ def list_images_with_http_info(
@validate_call
- def list_images_without_preload_content(
+ def list_images2_without_preload_content(
self,
region: Annotated[Optional[StrictStr], Field(description="Region Name")] = None,
include_public: Annotated[Optional[StrictBool], Field(description="Flag to include public images in the response (true/false). Default is true.")] = None,
@@ -1080,7 +1077,7 @@ def list_images_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/virtual-machines/images).
:param region: Region Name
:type region: str
@@ -1114,7 +1111,7 @@ def list_images_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._list_images_serialize(
+ _param = self._list_images2_serialize(
region=region,
include_public=include_public,
search=search,
@@ -1141,7 +1138,7 @@ def list_images_without_preload_content(
return response_data.response
- def _list_images_serialize(
+ def _list_images2_serialize(
self,
region,
include_public,
@@ -1206,8 +1203,7 @@ def _list_images_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/invite_api.py b/hyperstack/api/invite_api.py
index 04d307c..e22fe29 100644
--- a/hyperstack/api/invite_api.py
+++ b/hyperstack/api/invite_api.py
@@ -40,6 +40,279 @@ def __init__(self, api_client=None) -> None:
self.api_client = api_client
+ @validate_call
+ def accept_invite(
+ self,
+ id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> CommonResponseModel:
+ """Accept Invite
+
+ Accept an invitation for a user to join your organization.
+
+ :param id: (required)
+ :type id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._accept_invite_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommonResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def accept_invite_with_http_info(
+ self,
+ id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[CommonResponseModel]:
+ """Accept Invite
+
+ Accept an invitation for a user to join your organization.
+
+ :param id: (required)
+ :type id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._accept_invite_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommonResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def accept_invite_without_preload_content(
+ self,
+ id: StrictInt,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Accept Invite
+
+ Accept an invitation for a user to join your organization.
+
+ :param id: (required)
+ :type id: int
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._accept_invite_serialize(
+ id=id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "CommonResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _accept_invite_serialize(
+ self,
+ id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if id is not None:
+ _path_params['id'] = id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/auth/invites/{id}/accept',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
@validate_call
def delete_invite(
self,
@@ -57,9 +330,9 @@ def delete_invite(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> CommonResponseModel:
- """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...cloud/docs/api-reference/auth-resources/organization/invites/delete-invite).
:param id: (required)
:type id: int
@@ -128,9 +401,9 @@ def delete_invite_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[CommonResponseModel]:
- """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...cloud/docs/api-reference/auth-resources/organization/invites/delete-invite).
:param id: (required)
:type id: int
@@ -199,9 +472,9 @@ def delete_invite_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """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...cloud/docs/api-reference/auth-resources/organization/invites/delete-invite).
:param id: (required)
:type id: int
@@ -292,8 +565,7 @@ def _delete_invite_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -333,7 +605,7 @@ def invite_user_to_organization(
) -> InviteUserResponseModel:
"""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...cloud/docs/api-reference/auth-resources/organization/invites/invite-member).
:param payload: (required)
:type payload: InviteUserPayload
@@ -404,7 +676,7 @@ def invite_user_to_organization_with_http_info(
) -> ApiResponse[InviteUserResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/organization/invites/invite-member).
:param payload: (required)
:type payload: InviteUserPayload
@@ -475,7 +747,7 @@ def invite_user_to_organization_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/organization/invites/invite-member).
:param payload: (required)
:type payload: InviteUserPayload
@@ -579,8 +851,7 @@ def _invite_user_to_organization_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -619,7 +890,7 @@ def list_invites(
) -> GetInvitesResponseModel:
"""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...cloud/docs/api-reference/auth-resources/organization/invites/list-invites).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -685,7 +956,7 @@ def list_invites_with_http_info(
) -> ApiResponse[GetInvitesResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/organization/invites/list-invites).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -751,7 +1022,7 @@ def list_invites_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/organization/invites/list-invites).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -835,8 +1106,7 @@ def _list_invites_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/keypair_api.py b/hyperstack/api/keypair_api.py
index 18f3f29..1cde1b5 100644
--- a/hyperstack/api/keypair_api.py
+++ b/hyperstack/api/keypair_api.py
@@ -24,7 +24,7 @@
from ..models.keypairs import Keypairs
from ..models.response_model import ResponseModel
from ..models.update_keypair_name import UpdateKeypairName
-from ..models.update_keypairnameresponse import UpdateKeypairnameresponse
+from ..models.update_keypair_name_response import UpdateKeypairNameResponse
from ..api_client import ApiClient, RequestSerialized
from ..api_response import ApiResponse
@@ -63,7 +63,7 @@ def delete_key_pair(
) -> ResponseModel:
"""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 id: (required)
:type id: int
@@ -134,7 +134,7 @@ def delete_key_pair_with_http_info(
) -> ApiResponse[ResponseModel]:
"""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 id: (required)
:type id: int
@@ -205,7 +205,7 @@ def delete_key_pair_without_preload_content(
) -> RESTResponseType:
"""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 id: (required)
:type id: int
@@ -296,8 +296,7 @@ def _delete_key_pair_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -337,7 +336,7 @@ def import_key_pair(
) -> ImportKeypairResponse:
"""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...cloud/docs/api-reference/core-resources/keypairs/import-keypair).
:param payload: (required)
:type payload: ImportKeypairPayload
@@ -409,7 +408,7 @@ def import_key_pair_with_http_info(
) -> ApiResponse[ImportKeypairResponse]:
"""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...cloud/docs/api-reference/core-resources/keypairs/import-keypair).
:param payload: (required)
:type payload: ImportKeypairPayload
@@ -481,7 +480,7 @@ def import_key_pair_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/core-resources/keypairs/import-keypair).
:param payload: (required)
:type payload: ImportKeypairPayload
@@ -586,8 +585,7 @@ def _import_key_pair_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -629,7 +627,7 @@ def list_key_pairs(
) -> Keypairs:
"""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...cloud/docs/api-reference/core-resources/keypairs/).
:param page: Page Number
:type page: str
@@ -707,7 +705,7 @@ def list_key_pairs_with_http_info(
) -> ApiResponse[Keypairs]:
"""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...cloud/docs/api-reference/core-resources/keypairs/).
:param page: Page Number
:type page: str
@@ -785,7 +783,7 @@ def list_key_pairs_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/core-resources/keypairs/).
:param page: Page Number
:type page: str
@@ -893,8 +891,7 @@ def _list_key_pairs_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -932,10 +929,10 @@ def update_key_pair_name(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> UpdateKeypairnameresponse:
+ ) -> UpdateKeypairNameResponse:
"""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 id: (required)
:type id: int
@@ -973,7 +970,7 @@ def update_key_pair_name(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "UpdateKeypairnameresponse",
+ '200': "UpdateKeypairNameResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -1007,10 +1004,10 @@ def update_key_pair_name_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[UpdateKeypairnameresponse]:
+ ) -> ApiResponse[UpdateKeypairNameResponse]:
"""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 id: (required)
:type id: int
@@ -1048,7 +1045,7 @@ def update_key_pair_name_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "UpdateKeypairnameresponse",
+ '200': "UpdateKeypairNameResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -1085,7 +1082,7 @@ def update_key_pair_name_without_preload_content(
) -> RESTResponseType:
"""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 id: (required)
:type id: int
@@ -1123,7 +1120,7 @@ def update_key_pair_name_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "UpdateKeypairnameresponse",
+ '200': "UpdateKeypairNameResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -1195,8 +1192,7 @@ def _update_key_pair_name_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/organization_api.py b/hyperstack/api/organization_api.py
index 6512489..f0985b7 100644
--- a/hyperstack/api/organization_api.py
+++ b/hyperstack/api/organization_api.py
@@ -59,7 +59,7 @@ def remove_organization_member(
) -> RemoveMemberFromOrganizationResponseModel:
"""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...cloud/docs/api-reference/auth-resources/organization/remove-member).
:param payload: (required)
:type payload: RemoveMemberPayload
@@ -129,7 +129,7 @@ def remove_organization_member_with_http_info(
) -> ApiResponse[RemoveMemberFromOrganizationResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/organization/remove-member).
:param payload: (required)
:type payload: RemoveMemberPayload
@@ -199,7 +199,7 @@ def remove_organization_member_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/organization/remove-member).
:param payload: (required)
:type payload: RemoveMemberPayload
@@ -302,8 +302,7 @@ def _remove_organization_member_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -342,7 +341,7 @@ def retrieve_organization_information(
) -> GetOrganizationResponseModel:
"""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...cloud/docs/api-reference/auth-resources/organization/retrieve-org-details).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -408,7 +407,7 @@ def retrieve_organization_information_with_http_info(
) -> ApiResponse[GetOrganizationResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/organization/retrieve-org-details).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -474,7 +473,7 @@ def retrieve_organization_information_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/organization/retrieve-org-details).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -558,8 +557,7 @@ def _retrieve_organization_information_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -599,7 +597,7 @@ def update_organization_information(
) -> UpdateOrganizationResponseModel:
"""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...cloud/docs/api-reference/auth-resources/organization/update-org-name).
:param payload: (required)
:type payload: UpdateOrganizationPayload
@@ -669,7 +667,7 @@ def update_organization_information_with_http_info(
) -> ApiResponse[UpdateOrganizationResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/organization/update-org-name).
:param payload: (required)
:type payload: UpdateOrganizationPayload
@@ -739,7 +737,7 @@ def update_organization_information_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/organization/update-org-name).
:param payload: (required)
:type payload: UpdateOrganizationPayload
@@ -842,8 +840,7 @@ def _update_organization_information_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/partner_config_api.py b/hyperstack/api/partner_config_api.py
new file mode 100644
index 0000000..75bbc6f
--- /dev/null
+++ b/hyperstack/api/partner_config_api.py
@@ -0,0 +1,564 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+import warnings
+from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
+from typing import Any, Dict, List, Optional, Tuple, Union
+from typing_extensions import Annotated
+
+from pydantic import Field, StrictStr
+from typing import Optional
+from typing_extensions import Annotated
+from ..models.partner_config import PartnerConfig
+
+from ..api_client import ApiClient, RequestSerialized
+from ..api_response import ApiResponse
+from ..rest import RESTResponseType
+
+
+class PartnerConfigApi:
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None) -> None:
+ if api_client is None:
+ api_client = ApiClient.get_default()
+ self.api_client = api_client
+
+
+ @validate_call
+ def get_partner_config(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> PartnerConfig:
+ """Get partner config
+
+ Fetch the customised customer configuration for Hyperstack.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_partner_config_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "PartnerConfig",
+ '400': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_partner_config_with_http_info(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[PartnerConfig]:
+ """Get partner config
+
+ Fetch the customised customer configuration for Hyperstack.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_partner_config_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "PartnerConfig",
+ '400': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_partner_config_without_preload_content(
+ self,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Get partner config
+
+ Fetch the customised customer configuration for Hyperstack.
+
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_partner_config_serialize(
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "PartnerConfig",
+ '400': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_partner_config_serialize(
+ self,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/auth/partner-config',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def get_partner_config_by_domain(
+ self,
+ domain: Annotated[Optional[StrictStr], Field(description="The domain to look up the partner config for.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> PartnerConfig:
+ """get_partner_config_by_domain
+
+ Fetch the partner config for a given domain.
+
+ :param domain: The domain to look up the partner config for.
+ :type domain: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_partner_config_by_domain_serialize(
+ domain=domain,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "PartnerConfig",
+ '400': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_partner_config_by_domain_with_http_info(
+ self,
+ domain: Annotated[Optional[StrictStr], Field(description="The domain to look up the partner config for.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[PartnerConfig]:
+ """get_partner_config_by_domain
+
+ Fetch the partner config for a given domain.
+
+ :param domain: The domain to look up the partner config for.
+ :type domain: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_partner_config_by_domain_serialize(
+ domain=domain,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "PartnerConfig",
+ '400': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_partner_config_by_domain_without_preload_content(
+ self,
+ domain: Annotated[Optional[StrictStr], Field(description="The domain to look up the partner config for.")] = None,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """get_partner_config_by_domain
+
+ Fetch the partner config for a given domain.
+
+ :param domain: The domain to look up the partner config for.
+ :type domain: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_partner_config_by_domain_serialize(
+ domain=domain,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "PartnerConfig",
+ '400': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_partner_config_by_domain_serialize(
+ self,
+ domain,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ # process the query parameters
+ if domain is not None:
+
+ _query_params.append(('domain', domain))
+
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/auth/partner-config/docs',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/hyperstack/api/payment_api.py b/hyperstack/api/payment_api.py
index 1185aff..e9965f0 100644
--- a/hyperstack/api/payment_api.py
+++ b/hyperstack/api/payment_api.py
@@ -16,6 +16,7 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated
+from pydantic import StrictStr
from ..models.payment_details_response import PaymentDetailsResponse
from ..models.payment_initiate_payload import PaymentInitiatePayload
from ..models.payment_initiate_response import PaymentInitiateResponse
@@ -39,7 +40,7 @@ def __init__(self, api_client=None) -> None:
@validate_call
- def get_view_payment_details(
+ def get_details(
self,
_request_timeout: Union[
None,
@@ -56,6 +57,7 @@ def get_view_payment_details(
) -> PaymentDetailsResponse:
"""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/).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -79,7 +81,7 @@ def get_view_payment_details(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_view_payment_details_serialize(
+ _param = self._get_details_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -106,7 +108,7 @@ def get_view_payment_details(
@validate_call
- def get_view_payment_details_with_http_info(
+ def get_details_with_http_info(
self,
_request_timeout: Union[
None,
@@ -123,6 +125,7 @@ def get_view_payment_details_with_http_info(
) -> ApiResponse[PaymentDetailsResponse]:
"""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/).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -146,7 +149,7 @@ def get_view_payment_details_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_view_payment_details_serialize(
+ _param = self._get_details_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -173,7 +176,7 @@ def get_view_payment_details_with_http_info(
@validate_call
- def get_view_payment_details_without_preload_content(
+ def get_details_without_preload_content(
self,
_request_timeout: Union[
None,
@@ -190,6 +193,7 @@ def get_view_payment_details_without_preload_content(
) -> RESTResponseType:
"""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/).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -213,7 +217,7 @@ def get_view_payment_details_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_view_payment_details_serialize(
+ _param = self._get_details_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -235,7 +239,7 @@ def get_view_payment_details_without_preload_content(
return response_data.response
- def _get_view_payment_details_serialize(
+ def _get_details_serialize(
self,
_request_auth,
_content_type,
@@ -275,8 +279,7 @@ def _get_view_payment_details_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -298,7 +301,283 @@ def _get_view_payment_details_serialize(
@validate_call
- def post_initiate_payment(
+ def get_payment_receipt2(
+ self,
+ payment_id: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> None:
+ """Retrieve Payment Receipt
+
+ Retrieve the payment receipt from Stripe for a specific payment
+
+ :param payment_id: (required)
+ :type payment_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_payment_receipt2_serialize(
+ payment_id=payment_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def get_payment_receipt2_with_http_info(
+ self,
+ payment_id: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[None]:
+ """Retrieve Payment Receipt
+
+ Retrieve the payment receipt from Stripe for a specific payment
+
+ :param payment_id: (required)
+ :type payment_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_payment_receipt2_serialize(
+ payment_id=payment_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def get_payment_receipt2_without_preload_content(
+ self,
+ payment_id: StrictStr,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Retrieve Payment Receipt
+
+ Retrieve the payment receipt from Stripe for a specific payment
+
+ :param payment_id: (required)
+ :type payment_id: str
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._get_payment_receipt2_serialize(
+ payment_id=payment_id,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': None,
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '403': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _get_payment_receipt2_serialize(
+ self,
+ payment_id,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if payment_id is not None:
+ _path_params['payment_id'] = payment_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='GET',
+ resource_path='/billing/payment/receipt/{payment_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def post_payment(
self,
payload: PaymentInitiatePayload,
_request_timeout: Union[
@@ -316,6 +595,7 @@ def post_initiate_payment(
) -> PaymentInitiateResponse:
"""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 payload: (required)
:type payload: PaymentInitiatePayload
@@ -341,7 +621,7 @@ def post_initiate_payment(
:return: Returns the result object.
""" # noqa: E501
- _param = self._post_initiate_payment_serialize(
+ _param = self._post_payment_serialize(
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -369,7 +649,7 @@ def post_initiate_payment(
@validate_call
- def post_initiate_payment_with_http_info(
+ def post_payment_with_http_info(
self,
payload: PaymentInitiatePayload,
_request_timeout: Union[
@@ -387,6 +667,7 @@ def post_initiate_payment_with_http_info(
) -> ApiResponse[PaymentInitiateResponse]:
"""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 payload: (required)
:type payload: PaymentInitiatePayload
@@ -412,7 +693,7 @@ def post_initiate_payment_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._post_initiate_payment_serialize(
+ _param = self._post_payment_serialize(
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -440,7 +721,7 @@ def post_initiate_payment_with_http_info(
@validate_call
- def post_initiate_payment_without_preload_content(
+ def post_payment_without_preload_content(
self,
payload: PaymentInitiatePayload,
_request_timeout: Union[
@@ -458,6 +739,7 @@ def post_initiate_payment_without_preload_content(
) -> RESTResponseType:
"""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 payload: (required)
:type payload: PaymentInitiatePayload
@@ -483,7 +765,7 @@ def post_initiate_payment_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._post_initiate_payment_serialize(
+ _param = self._post_payment_serialize(
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -506,7 +788,7 @@ def post_initiate_payment_without_preload_content(
return response_data.response
- def _post_initiate_payment_serialize(
+ def _post_payment_serialize(
self,
payload,
_request_auth,
@@ -562,8 +844,7 @@ def _post_initiate_payment_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/permission_api.py b/hyperstack/api/permission_api.py
index 68ed720..515025d 100644
--- a/hyperstack/api/permission_api.py
+++ b/hyperstack/api/permission_api.py
@@ -54,7 +54,7 @@ def list_permissions(
) -> GetPermissionsResponseModel:
"""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...cloud/docs/api-reference/auth-resources/permission/permissions).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -120,7 +120,7 @@ def list_permissions_with_http_info(
) -> ApiResponse[GetPermissionsResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/permission/permissions).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -186,7 +186,7 @@ def list_permissions_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/permission/permissions).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -270,8 +270,7 @@ def _list_permissions_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/policy_api.py b/hyperstack/api/policy_api.py
index 818304b..2c4a459 100644
--- a/hyperstack/api/policy_api.py
+++ b/hyperstack/api/policy_api.py
@@ -54,7 +54,7 @@ def list_policies(
) -> GetPoliciesResponseModel:
"""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...cloud/docs/api-reference/auth-resources/policies).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -120,7 +120,7 @@ def list_policies_with_http_info(
) -> ApiResponse[GetPoliciesResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/policies).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -186,7 +186,7 @@ def list_policies_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/policies).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -270,8 +270,7 @@ def _list_policies_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/pricebook_api.py b/hyperstack/api/pricebook_api.py
index f14c5ae..a637cc6 100644
--- a/hyperstack/api/pricebook_api.py
+++ b/hyperstack/api/pricebook_api.py
@@ -38,7 +38,7 @@ def __init__(self, api_client=None) -> None:
@validate_call
- def retrive_pricebook(
+ def get_pricebook(
self,
_request_timeout: Union[
None,
@@ -53,8 +53,9 @@ def retrive_pricebook(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> List[PricebookModel]:
- """retrive_pricebook
+ """get_pricebook
+ 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/).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -78,7 +79,7 @@ def retrive_pricebook(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrive_pricebook_serialize(
+ _param = self._get_pricebook_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -104,7 +105,7 @@ def retrive_pricebook(
@validate_call
- def retrive_pricebook_with_http_info(
+ def get_pricebook_with_http_info(
self,
_request_timeout: Union[
None,
@@ -119,8 +120,9 @@ def retrive_pricebook_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[List[PricebookModel]]:
- """retrive_pricebook
+ """get_pricebook
+ 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/).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -144,7 +146,7 @@ def retrive_pricebook_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrive_pricebook_serialize(
+ _param = self._get_pricebook_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -170,7 +172,7 @@ def retrive_pricebook_with_http_info(
@validate_call
- def retrive_pricebook_without_preload_content(
+ def get_pricebook_without_preload_content(
self,
_request_timeout: Union[
None,
@@ -185,8 +187,9 @@ def retrive_pricebook_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """retrive_pricebook
+ """get_pricebook
+ 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/).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -210,7 +213,7 @@ def retrive_pricebook_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrive_pricebook_serialize(
+ _param = self._get_pricebook_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -231,7 +234,7 @@ def retrive_pricebook_without_preload_content(
return response_data.response
- def _retrive_pricebook_serialize(
+ def _get_pricebook_serialize(
self,
_request_auth,
_content_type,
@@ -271,8 +274,7 @@ def _retrive_pricebook_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/profile_api.py b/hyperstack/api/profile_api.py
index cc44f0b..cf11733 100644
--- a/hyperstack/api/profile_api.py
+++ b/hyperstack/api/profile_api.py
@@ -59,7 +59,7 @@ def create_profile(
) -> CreateProfileResponse:
"""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...cloud/docs/virtual-machines/provisioning-profiles).
:param payload: (required)
:type payload: CreateProfilePayload
@@ -130,7 +130,7 @@ def create_profile_with_http_info(
) -> ApiResponse[CreateProfileResponse]:
"""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...cloud/docs/virtual-machines/provisioning-profiles).
:param payload: (required)
:type payload: CreateProfilePayload
@@ -201,7 +201,7 @@ def create_profile_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/virtual-machines/provisioning-profiles).
:param payload: (required)
:type payload: CreateProfilePayload
@@ -305,8 +305,7 @@ def _create_profile_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -579,8 +578,7 @@ def _delete_profile_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -619,7 +617,7 @@ def list_profiles(
) -> ProfileListResponse:
"""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).
+ Returns a list of your existing provisioning profiles, providing virtual machine configuration details for each. For additional information about profiles,[**click here**](https://docs...cloud/docs/virtual-machines/provisioning-profiles#load-a-provisioning-profile).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -685,7 +683,7 @@ def list_profiles_with_http_info(
) -> ApiResponse[ProfileListResponse]:
"""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).
+ Returns a list of your existing provisioning profiles, providing virtual machine configuration details for each. For additional information about profiles,[**click here**](https://docs...cloud/docs/virtual-machines/provisioning-profiles#load-a-provisioning-profile).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -751,7 +749,7 @@ def list_profiles_without_preload_content(
) -> RESTResponseType:
"""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).
+ Returns a list of your existing provisioning profiles, providing virtual machine configuration details for each. For additional information about profiles,[**click here**](https://docs...cloud/docs/virtual-machines/provisioning-profiles#load-a-provisioning-profile).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -835,8 +833,7 @@ def _list_profiles_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -876,7 +873,7 @@ def retrieve_profile_details(
) -> CreateProfileResponse:
"""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).
+ 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...cloud/docs/virtual-machines/provisioning-profiles).
:param id: (required)
:type id: int
@@ -947,7 +944,7 @@ def retrieve_profile_details_with_http_info(
) -> ApiResponse[CreateProfileResponse]:
"""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).
+ 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...cloud/docs/virtual-machines/provisioning-profiles).
:param id: (required)
:type id: int
@@ -1018,7 +1015,7 @@ def retrieve_profile_details_without_preload_content(
) -> RESTResponseType:
"""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).
+ 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...cloud/docs/virtual-machines/provisioning-profiles).
:param id: (required)
:type id: int
@@ -1109,8 +1106,7 @@ def _retrieve_profile_details_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/rbac_role_api.py b/hyperstack/api/rbac_role_api.py
index 967efdf..5969666 100644
--- a/hyperstack/api/rbac_role_api.py
+++ b/hyperstack/api/rbac_role_api.py
@@ -60,7 +60,7 @@ def create_rbac_role(
) -> RbacRoleDetailResponseModel:
"""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...cloud/docs/api-reference/auth-resources/rbac/create-rbac-role).
:param payload: (required)
:type payload: CreateUpdateRbacRolePayload
@@ -131,7 +131,7 @@ def create_rbac_role_with_http_info(
) -> ApiResponse[RbacRoleDetailResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/rbac/create-rbac-role).
:param payload: (required)
:type payload: CreateUpdateRbacRolePayload
@@ -202,7 +202,7 @@ def create_rbac_role_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/rbac/create-rbac-role).
:param payload: (required)
:type payload: CreateUpdateRbacRolePayload
@@ -306,8 +306,7 @@ def _create_rbac_role_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -347,7 +346,7 @@ def delete_rbac_role(
) -> CommonResponseModel:
"""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...cloud/docs/api-reference/auth-resources/rbac/delete-rbac-role).
:param id: (required)
:type id: int
@@ -418,7 +417,7 @@ def delete_rbac_role_with_http_info(
) -> ApiResponse[CommonResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/rbac/delete-rbac-role).
:param id: (required)
:type id: int
@@ -489,7 +488,7 @@ def delete_rbac_role_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/rbac/delete-rbac-role).
:param id: (required)
:type id: int
@@ -580,8 +579,7 @@ def _delete_rbac_role_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -620,7 +618,7 @@ def list_rbac_roles(
) -> GetRbacRolesResponseModel:
"""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...cloud/docs/api-reference/auth-resources/rbac/list-rbac-roles).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -686,7 +684,7 @@ def list_rbac_roles_with_http_info(
) -> ApiResponse[GetRbacRolesResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/rbac/list-rbac-roles).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -752,7 +750,7 @@ def list_rbac_roles_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/rbac/list-rbac-roles).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -836,8 +834,7 @@ def _list_rbac_roles_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -877,7 +874,7 @@ def retrieve_rbac_role_details(
) -> RbacRoleDetailResponseModelFixed:
"""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...cloud/docs/api-reference/auth-resources/rbac/retrieve-rbac-details).
:param id: (required)
:type id: int
@@ -948,7 +945,7 @@ def retrieve_rbac_role_details_with_http_info(
) -> ApiResponse[RbacRoleDetailResponseModelFixed]:
"""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...cloud/docs/api-reference/auth-resources/rbac/retrieve-rbac-details).
:param id: (required)
:type id: int
@@ -1019,7 +1016,7 @@ def retrieve_rbac_role_details_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/rbac/retrieve-rbac-details).
:param id: (required)
:type id: int
@@ -1110,8 +1107,7 @@ def _retrieve_rbac_role_details_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -1152,7 +1148,7 @@ def update_rbac_role(
) -> RbacRoleDetailResponseModel:
"""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...cloud/docs/api-reference/auth-resources/rbac/update-rbac-role).
:param id: (required)
:type id: int
@@ -1227,7 +1223,7 @@ def update_rbac_role_with_http_info(
) -> ApiResponse[RbacRoleDetailResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/rbac/update-rbac-role).
:param id: (required)
:type id: int
@@ -1302,7 +1298,7 @@ def update_rbac_role_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/rbac/update-rbac-role).
:param id: (required)
:type id: int
@@ -1412,8 +1408,7 @@ def _update_rbac_role_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/region_api.py b/hyperstack/api/region_api.py
index d6a2628..269d492 100644
--- a/hyperstack/api/region_api.py
+++ b/hyperstack/api/region_api.py
@@ -52,9 +52,9 @@ def list_regions(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> Regions:
- """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...cloud/docs/resource-management/regions).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -118,9 +118,9 @@ def list_regions_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[Regions]:
- """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...cloud/docs/resource-management/regions).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -184,9 +184,9 @@ def list_regions_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """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...cloud/docs/resource-management/regions).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -270,8 +270,7 @@ def _list_regions_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/security_rules_api.py b/hyperstack/api/security_rules_api.py
index 4e757a1..e78edf2 100644
--- a/hyperstack/api/security_rules_api.py
+++ b/hyperstack/api/security_rules_api.py
@@ -270,8 +270,7 @@ def _list_firewall_rule_protocols_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/snapshot_events_api.py b/hyperstack/api/snapshot_events_api.py
index dee48bd..b04404a 100644
--- a/hyperstack/api/snapshot_events_api.py
+++ b/hyperstack/api/snapshot_events_api.py
@@ -269,8 +269,7 @@ def _fetch_all_events_for_a_snapshot_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/snapshots_api.py b/hyperstack/api/snapshots_api.py
index 6aa0ea3..dbf48d1 100644
--- a/hyperstack/api/snapshots_api.py
+++ b/hyperstack/api/snapshots_api.py
@@ -47,7 +47,7 @@ def __init__(self, api_client=None) -> None:
@validate_call
- def create_an_image_from_a_snapshot(
+ def create_a_new_custom_image(
self,
snapshot_id: StrictInt,
payload: CreateImagePayload,
@@ -94,7 +94,7 @@ def create_an_image_from_a_snapshot(
:return: Returns the result object.
""" # noqa: E501
- _param = self._create_an_image_from_a_snapshot_serialize(
+ _param = self._create_a_new_custom_image_serialize(
snapshot_id=snapshot_id,
payload=payload,
_request_auth=_request_auth,
@@ -123,7 +123,7 @@ def create_an_image_from_a_snapshot(
@validate_call
- def create_an_image_from_a_snapshot_with_http_info(
+ def create_a_new_custom_image_with_http_info(
self,
snapshot_id: StrictInt,
payload: CreateImagePayload,
@@ -170,7 +170,7 @@ def create_an_image_from_a_snapshot_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._create_an_image_from_a_snapshot_serialize(
+ _param = self._create_a_new_custom_image_serialize(
snapshot_id=snapshot_id,
payload=payload,
_request_auth=_request_auth,
@@ -199,7 +199,7 @@ def create_an_image_from_a_snapshot_with_http_info(
@validate_call
- def create_an_image_from_a_snapshot_without_preload_content(
+ def create_a_new_custom_image_without_preload_content(
self,
snapshot_id: StrictInt,
payload: CreateImagePayload,
@@ -246,7 +246,7 @@ def create_an_image_from_a_snapshot_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._create_an_image_from_a_snapshot_serialize(
+ _param = self._create_a_new_custom_image_serialize(
snapshot_id=snapshot_id,
payload=payload,
_request_auth=_request_auth,
@@ -270,7 +270,7 @@ def create_an_image_from_a_snapshot_without_preload_content(
return response_data.response
- def _create_an_image_from_a_snapshot_serialize(
+ def _create_a_new_custom_image_serialize(
self,
snapshot_id,
payload,
@@ -329,8 +329,7 @@ def _create_an_image_from_a_snapshot_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -606,8 +605,7 @@ def _delete_snapshot_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -880,8 +878,7 @@ def _fetch_snapshot_name_availability_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -903,10 +900,9 @@ def _fetch_snapshot_name_availability_serialize(
@validate_call
- def restore_a_snapshot(
+ def get_snapshot(
self,
id: StrictInt,
- payload: SnapshotRestoreRequest,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -919,15 +915,13 @@ def restore_a_snapshot(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Instance:
- """Restore a snapshot
+ ) -> SnapshotRetrieve:
+ """Retrieve a snapshot
- Restore a snapshot.
+ Retrieve a snapshot.
:param id: (required)
:type id: int
- :param payload: (required)
- :type payload: SnapshotRestoreRequest
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -950,9 +944,8 @@ def restore_a_snapshot(
:return: Returns the result object.
""" # noqa: E501
- _param = self._restore_a_snapshot_serialize(
+ _param = self._get_snapshot_serialize(
id=id,
- payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -960,7 +953,7 @@ def restore_a_snapshot(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Instance",
+ '200': "SnapshotRetrieve",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'500': None,
@@ -977,10 +970,9 @@ def restore_a_snapshot(
@validate_call
- def restore_a_snapshot_with_http_info(
+ def get_snapshot_with_http_info(
self,
id: StrictInt,
- payload: SnapshotRestoreRequest,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -993,15 +985,13 @@ def restore_a_snapshot_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Instance]:
- """Restore a snapshot
+ ) -> ApiResponse[SnapshotRetrieve]:
+ """Retrieve a snapshot
- Restore a snapshot.
+ Retrieve a snapshot.
:param id: (required)
:type id: int
- :param payload: (required)
- :type payload: SnapshotRestoreRequest
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1024,9 +1014,8 @@ def restore_a_snapshot_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._restore_a_snapshot_serialize(
+ _param = self._get_snapshot_serialize(
id=id,
- payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1034,7 +1023,7 @@ def restore_a_snapshot_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Instance",
+ '200': "SnapshotRetrieve",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'500': None,
@@ -1051,10 +1040,9 @@ def restore_a_snapshot_with_http_info(
@validate_call
- def restore_a_snapshot_without_preload_content(
+ def get_snapshot_without_preload_content(
self,
id: StrictInt,
- payload: SnapshotRestoreRequest,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1068,14 +1056,12 @@ def restore_a_snapshot_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Restore a snapshot
+ """Retrieve a snapshot
- Restore a snapshot.
+ Retrieve a snapshot.
:param id: (required)
:type id: int
- :param payload: (required)
- :type payload: SnapshotRestoreRequest
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1098,9 +1084,8 @@ def restore_a_snapshot_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._restore_a_snapshot_serialize(
+ _param = self._get_snapshot_serialize(
id=id,
- payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1108,7 +1093,7 @@ def restore_a_snapshot_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Instance",
+ '200': "SnapshotRetrieve",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'500': None,
@@ -1120,10 +1105,9 @@ def restore_a_snapshot_without_preload_content(
return response_data.response
- def _restore_a_snapshot_serialize(
+ def _get_snapshot_serialize(
self,
id,
- payload,
_request_auth,
_content_type,
_headers,
@@ -1151,8 +1135,6 @@ def _restore_a_snapshot_serialize(
# process the header parameters
# process the form parameters
# process the body parameter
- if payload is not None:
- _body_params = payload
# set the HTTP header `Accept`
@@ -1163,29 +1145,15 @@ def _restore_a_snapshot_serialize(
]
)
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='POST',
- resource_path='/core/snapshots/{id}/restore',
+ method='GET',
+ resource_path='/core/snapshots/{id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1202,9 +1170,11 @@ def _restore_a_snapshot_serialize(
@validate_call
- def retrieve_a_snapshot(
+ def get_snapshots(
self,
- id: StrictInt,
+ page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
+ page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search By Snapshot ID or Name")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1217,13 +1187,17 @@ def retrieve_a_snapshot(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> SnapshotRetrieve:
- """Retrieve a snapshot
+ ) -> Snapshots:
+ """Retrieve list of snapshots with pagination
- Retrieve a snapshot.
+ Retrieves a list of snapshot, providing details such as snapshot name, timestamp, VM ID, and other relevant information.
- :param id: (required)
- :type id: int
+ :param page: Page Number
+ :type page: str
+ :param page_size: Data Per Page
+ :type page_size: str
+ :param search: Search By Snapshot ID or Name
+ :type search: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1246,8 +1220,10 @@ def retrieve_a_snapshot(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_a_snapshot_serialize(
- id=id,
+ _param = self._get_snapshots_serialize(
+ page=page,
+ page_size=page_size,
+ search=search,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1255,7 +1231,7 @@ def retrieve_a_snapshot(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "SnapshotRetrieve",
+ '200': "Snapshots",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'500': None,
@@ -1272,9 +1248,11 @@ def retrieve_a_snapshot(
@validate_call
- def retrieve_a_snapshot_with_http_info(
+ def get_snapshots_with_http_info(
self,
- id: StrictInt,
+ page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
+ page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search By Snapshot ID or Name")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1287,13 +1265,17 @@ def retrieve_a_snapshot_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[SnapshotRetrieve]:
- """Retrieve a snapshot
+ ) -> ApiResponse[Snapshots]:
+ """Retrieve list of snapshots with pagination
- Retrieve a snapshot.
+ Retrieves a list of snapshot, providing details such as snapshot name, timestamp, VM ID, and other relevant information.
- :param id: (required)
- :type id: int
+ :param page: Page Number
+ :type page: str
+ :param page_size: Data Per Page
+ :type page_size: str
+ :param search: Search By Snapshot ID or Name
+ :type search: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1316,8 +1298,10 @@ def retrieve_a_snapshot_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_a_snapshot_serialize(
- id=id,
+ _param = self._get_snapshots_serialize(
+ page=page,
+ page_size=page_size,
+ search=search,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1325,7 +1309,7 @@ def retrieve_a_snapshot_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "SnapshotRetrieve",
+ '200': "Snapshots",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'500': None,
@@ -1342,9 +1326,11 @@ def retrieve_a_snapshot_with_http_info(
@validate_call
- def retrieve_a_snapshot_without_preload_content(
+ def get_snapshots_without_preload_content(
self,
- id: StrictInt,
+ page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
+ page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search By Snapshot ID or Name")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1358,12 +1344,16 @@ def retrieve_a_snapshot_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve a snapshot
+ """Retrieve list of snapshots with pagination
- Retrieve a snapshot.
+ Retrieves a list of snapshot, providing details such as snapshot name, timestamp, VM ID, and other relevant information.
- :param id: (required)
- :type id: int
+ :param page: Page Number
+ :type page: str
+ :param page_size: Data Per Page
+ :type page_size: str
+ :param search: Search By Snapshot ID or Name
+ :type search: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1386,8 +1376,10 @@ def retrieve_a_snapshot_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_a_snapshot_serialize(
- id=id,
+ _param = self._get_snapshots_serialize(
+ page=page,
+ page_size=page_size,
+ search=search,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1395,7 +1387,7 @@ def retrieve_a_snapshot_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "SnapshotRetrieve",
+ '200': "Snapshots",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'500': None,
@@ -1407,9 +1399,11 @@ def retrieve_a_snapshot_without_preload_content(
return response_data.response
- def _retrieve_a_snapshot_serialize(
+ def _get_snapshots_serialize(
self,
- id,
+ page,
+ page_size,
+ search,
_request_auth,
_content_type,
_headers,
@@ -1431,9 +1425,19 @@ def _retrieve_a_snapshot_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
# process the query parameters
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if page_size is not None:
+
+ _query_params.append(('pageSize', page_size))
+
+ if search is not None:
+
+ _query_params.append(('search', search))
+
# process the header parameters
# process the form parameters
# process the body parameter
@@ -1450,13 +1454,12 @@ def _retrieve_a_snapshot_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/core/snapshots/{id}',
+ resource_path='/core/snapshots',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1473,11 +1476,10 @@ def _retrieve_a_snapshot_serialize(
@validate_call
- def retrieve_list_of_snapshots_with_pagination(
+ def post_snapshot_restore(
self,
- page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
- page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search By Snapshot ID or Name")] = None,
+ id: StrictInt,
+ payload: SnapshotRestoreRequest,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1490,17 +1492,15 @@ def retrieve_list_of_snapshots_with_pagination(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Snapshots:
- """Retrieve list of snapshots with pagination
+ ) -> Instance:
+ """Restore a snapshot
- Retrieves a list of snapshot, providing details such as snapshot name, timestamp, VM ID, and other relevant information.
+ Restore a snapshot.
- :param page: Page Number
- :type page: str
- :param page_size: Data Per Page
- :type page_size: str
- :param search: Search By Snapshot ID or Name
- :type search: str
+ :param id: (required)
+ :type id: int
+ :param payload: (required)
+ :type payload: SnapshotRestoreRequest
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1523,10 +1523,9 @@ def retrieve_list_of_snapshots_with_pagination(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_list_of_snapshots_with_pagination_serialize(
- page=page,
- page_size=page_size,
- search=search,
+ _param = self._post_snapshot_restore_serialize(
+ id=id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1534,7 +1533,7 @@ def retrieve_list_of_snapshots_with_pagination(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Snapshots",
+ '200': "Instance",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'500': None,
@@ -1551,11 +1550,10 @@ def retrieve_list_of_snapshots_with_pagination(
@validate_call
- def retrieve_list_of_snapshots_with_pagination_with_http_info(
+ def post_snapshot_restore_with_http_info(
self,
- page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
- page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search By Snapshot ID or Name")] = None,
+ id: StrictInt,
+ payload: SnapshotRestoreRequest,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1568,17 +1566,15 @@ def retrieve_list_of_snapshots_with_pagination_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Snapshots]:
- """Retrieve list of snapshots with pagination
+ ) -> ApiResponse[Instance]:
+ """Restore a snapshot
- Retrieves a list of snapshot, providing details such as snapshot name, timestamp, VM ID, and other relevant information.
+ Restore a snapshot.
- :param page: Page Number
- :type page: str
- :param page_size: Data Per Page
- :type page_size: str
- :param search: Search By Snapshot ID or Name
- :type search: str
+ :param id: (required)
+ :type id: int
+ :param payload: (required)
+ :type payload: SnapshotRestoreRequest
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1601,10 +1597,9 @@ def retrieve_list_of_snapshots_with_pagination_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_list_of_snapshots_with_pagination_serialize(
- page=page,
- page_size=page_size,
- search=search,
+ _param = self._post_snapshot_restore_serialize(
+ id=id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1612,7 +1607,7 @@ def retrieve_list_of_snapshots_with_pagination_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Snapshots",
+ '200': "Instance",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'500': None,
@@ -1629,11 +1624,10 @@ def retrieve_list_of_snapshots_with_pagination_with_http_info(
@validate_call
- def retrieve_list_of_snapshots_with_pagination_without_preload_content(
+ def post_snapshot_restore_without_preload_content(
self,
- page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
- page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search By Snapshot ID or Name")] = None,
+ id: StrictInt,
+ payload: SnapshotRestoreRequest,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1647,16 +1641,14 @@ def retrieve_list_of_snapshots_with_pagination_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """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.
- :param page: Page Number
- :type page: str
- :param page_size: Data Per Page
- :type page_size: str
- :param search: Search By Snapshot ID or Name
- :type search: str
+ :param id: (required)
+ :type id: int
+ :param payload: (required)
+ :type payload: SnapshotRestoreRequest
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1679,10 +1671,9 @@ def retrieve_list_of_snapshots_with_pagination_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_list_of_snapshots_with_pagination_serialize(
- page=page,
- page_size=page_size,
- search=search,
+ _param = self._post_snapshot_restore_serialize(
+ id=id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1690,7 +1681,7 @@ def retrieve_list_of_snapshots_with_pagination_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Snapshots",
+ '200': "Instance",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'500': None,
@@ -1702,11 +1693,10 @@ def retrieve_list_of_snapshots_with_pagination_without_preload_content(
return response_data.response
- def _retrieve_list_of_snapshots_with_pagination_serialize(
+ def _post_snapshot_restore_serialize(
self,
- page,
- page_size,
- search,
+ id,
+ payload,
_request_auth,
_content_type,
_headers,
@@ -1728,22 +1718,14 @@ def _retrieve_list_of_snapshots_with_pagination_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
+ if id is not None:
+ _path_params['id'] = id
# process the query parameters
- if page is not None:
-
- _query_params.append(('page', page))
-
- if page_size is not None:
-
- _query_params.append(('pageSize', page_size))
-
- if search is not None:
-
- _query_params.append(('search', search))
-
# process the header parameters
# process the form parameters
# process the body parameter
+ if payload is not None:
+ _body_params = payload
# set the HTTP header `Accept`
@@ -1754,16 +1736,28 @@ def _retrieve_list_of_snapshots_with_pagination_serialize(
]
)
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='GET',
- resource_path='/core/snapshots',
+ method='POST',
+ resource_path='/core/snapshots/{id}/restore',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
diff --git a/hyperstack/api/stock_api.py b/hyperstack/api/stock_api.py
index b01f121..d13fd8a 100644
--- a/hyperstack/api/stock_api.py
+++ b/hyperstack/api/stock_api.py
@@ -54,7 +54,7 @@ def retrieve_gpu_stocks(
) -> NewStockRetriveResponse:
"""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...cloud/docs/hardware/gpu-stock-information).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -120,7 +120,7 @@ def retrieve_gpu_stocks_with_http_info(
) -> ApiResponse[NewStockRetriveResponse]:
"""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...cloud/docs/hardware/gpu-stock-information).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -186,7 +186,7 @@ def retrieve_gpu_stocks_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/hardware/gpu-stock-information).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -270,8 +270,7 @@ def _retrieve_gpu_stocks_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/template_api.py b/hyperstack/api/template_api.py
index 3f9f764..e17beb3 100644
--- a/hyperstack/api/template_api.py
+++ b/hyperstack/api/template_api.py
@@ -349,8 +349,7 @@ def _create_template_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -623,8 +622,7 @@ def _delete_template_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -664,7 +662,7 @@ def list_templates(
) -> Templates:
"""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...cloud/docs/features/templates#view-a-list-of-templates).
:param visibility: Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility.
:type visibility: str
@@ -735,7 +733,7 @@ def list_templates_with_http_info(
) -> ApiResponse[Templates]:
"""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...cloud/docs/features/templates#view-a-list-of-templates).
:param visibility: Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility.
:type visibility: str
@@ -806,7 +804,7 @@ def list_templates_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/features/templates#view-a-list-of-templates).
:param visibility: Specify the `visibility` status as either `public` or `private` to filter and retrieve templates with the desired visibility.
:type visibility: str
@@ -899,8 +897,7 @@ def _list_templates_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -940,7 +937,7 @@ def retrieve_template_details(
) -> Template:
"""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).
+ 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...cloud/docs/api-references/).
:param id: (required)
:type id: int
@@ -1011,7 +1008,7 @@ def retrieve_template_details_with_http_info(
) -> ApiResponse[Template]:
"""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).
+ 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...cloud/docs/api-references/).
:param id: (required)
:type id: int
@@ -1082,7 +1079,7 @@ def retrieve_template_details_without_preload_content(
) -> RESTResponseType:
"""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).
+ 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...cloud/docs/api-references/).
:param id: (required)
:type id: int
@@ -1173,8 +1170,7 @@ def _retrieve_template_details_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -1215,7 +1211,7 @@ def update_template(
) -> Template:
"""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 id: (required)
:type id: int
@@ -1290,7 +1286,7 @@ def update_template_with_http_info(
) -> ApiResponse[Template]:
"""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 id: (required)
:type id: int
@@ -1365,7 +1361,7 @@ def update_template_without_preload_content(
) -> RESTResponseType:
"""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 id: (required)
:type id: int
@@ -1475,8 +1471,7 @@ def _update_template_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/user_api.py b/hyperstack/api/user_api.py
index a93e3a4..4e1b886 100644
--- a/hyperstack/api/user_api.py
+++ b/hyperstack/api/user_api.py
@@ -17,7 +17,7 @@
from typing_extensions import Annotated
from ..models.add_user_info_success_response_model import AddUserInfoSuccessResponseModel
-from ..models.userinfopostpayload import Userinfopostpayload
+from ..models.user_info_post_payload import UserInfoPostPayload
from ..models.users_info_list_response import UsersInfoListResponse
from ..api_client import ApiClient, RequestSerialized
@@ -39,7 +39,7 @@ def __init__(self, api_client=None) -> None:
@validate_call
- def get_fetch_user_info(
+ def get_user(
self,
_request_timeout: Union[
None,
@@ -54,8 +54,9 @@ def get_fetch_user_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> UsersInfoListResponse:
- """GET: Fetch User Info
+ """GET: Retrieve billing info
+ Retrieve the billing details associated with your organization.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -79,7 +80,7 @@ def get_fetch_user_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_fetch_user_info_serialize(
+ _param = self._get_user_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -106,7 +107,7 @@ def get_fetch_user_info(
@validate_call
- def get_fetch_user_info_with_http_info(
+ def get_user_with_http_info(
self,
_request_timeout: Union[
None,
@@ -121,8 +122,9 @@ def get_fetch_user_info_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[UsersInfoListResponse]:
- """GET: Fetch User Info
+ """GET: Retrieve billing info
+ Retrieve the billing details associated with your organization.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -146,7 +148,7 @@ def get_fetch_user_info_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_fetch_user_info_serialize(
+ _param = self._get_user_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -173,7 +175,7 @@ def get_fetch_user_info_with_http_info(
@validate_call
- def get_fetch_user_info_without_preload_content(
+ def get_user_without_preload_content(
self,
_request_timeout: Union[
None,
@@ -188,8 +190,9 @@ def get_fetch_user_info_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """GET: Fetch User Info
+ """GET: Retrieve billing info
+ Retrieve the billing details associated with your organization.
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -213,7 +216,7 @@ def get_fetch_user_info_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_fetch_user_info_serialize(
+ _param = self._get_user_serialize(
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -235,7 +238,7 @@ def get_fetch_user_info_without_preload_content(
return response_data.response
- def _get_fetch_user_info_serialize(
+ def _get_user_serialize(
self,
_request_auth,
_content_type,
@@ -275,8 +278,7 @@ def _get_fetch_user_info_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -298,9 +300,9 @@ def _get_fetch_user_info_serialize(
@validate_call
- def post_insert_user_info(
+ def post_user(
self,
- payload: Userinfopostpayload,
+ payload: UserInfoPostPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -314,11 +316,12 @@ def post_insert_user_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> AddUserInfoSuccessResponseModel:
- """POST: Insert user info
+ """POST: Insert billing info
+ Add billing details associated with your organization in the request body.
:param payload: (required)
- :type payload: Userinfopostpayload
+ :type payload: UserInfoPostPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -341,7 +344,7 @@ def post_insert_user_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._post_insert_user_info_serialize(
+ _param = self._post_user_serialize(
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -369,9 +372,9 @@ def post_insert_user_info(
@validate_call
- def post_insert_user_info_with_http_info(
+ def post_user_with_http_info(
self,
- payload: Userinfopostpayload,
+ payload: UserInfoPostPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -385,11 +388,12 @@ def post_insert_user_info_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[AddUserInfoSuccessResponseModel]:
- """POST: Insert user info
+ """POST: Insert billing info
+ Add billing details associated with your organization in the request body.
:param payload: (required)
- :type payload: Userinfopostpayload
+ :type payload: UserInfoPostPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -412,7 +416,7 @@ def post_insert_user_info_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._post_insert_user_info_serialize(
+ _param = self._post_user_serialize(
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -440,9 +444,9 @@ def post_insert_user_info_with_http_info(
@validate_call
- def post_insert_user_info_without_preload_content(
+ def post_user_without_preload_content(
self,
- payload: Userinfopostpayload,
+ payload: UserInfoPostPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -456,11 +460,12 @@ def post_insert_user_info_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """POST: Insert user info
+ """POST: Insert billing info
+ Add billing details associated with your organization in the request body.
:param payload: (required)
- :type payload: Userinfopostpayload
+ :type payload: UserInfoPostPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -483,7 +488,7 @@ def post_insert_user_info_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._post_insert_user_info_serialize(
+ _param = self._post_user_serialize(
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -506,7 +511,7 @@ def post_insert_user_info_without_preload_content(
return response_data.response
- def _post_insert_user_info_serialize(
+ def _post_user_serialize(
self,
payload,
_request_auth,
@@ -562,8 +567,7 @@ def _post_insert_user_info_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -585,9 +589,9 @@ def _post_insert_user_info_serialize(
@validate_call
- def put_update_user_info(
+ def put_user(
self,
- payload: Userinfopostpayload,
+ payload: UserInfoPostPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -601,11 +605,12 @@ def put_update_user_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> AddUserInfoSuccessResponseModel:
- """PUT: Update user info
+ """PUT: Update billing info
+ Update the billing information for your organization in the request body.
:param payload: (required)
- :type payload: Userinfopostpayload
+ :type payload: UserInfoPostPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -628,7 +633,7 @@ def put_update_user_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._put_update_user_info_serialize(
+ _param = self._put_user_serialize(
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -656,9 +661,9 @@ def put_update_user_info(
@validate_call
- def put_update_user_info_with_http_info(
+ def put_user_with_http_info(
self,
- payload: Userinfopostpayload,
+ payload: UserInfoPostPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -672,11 +677,12 @@ def put_update_user_info_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[AddUserInfoSuccessResponseModel]:
- """PUT: Update user info
+ """PUT: Update billing info
+ Update the billing information for your organization in the request body.
:param payload: (required)
- :type payload: Userinfopostpayload
+ :type payload: UserInfoPostPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -699,7 +705,7 @@ def put_update_user_info_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._put_update_user_info_serialize(
+ _param = self._put_user_serialize(
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -727,9 +733,9 @@ def put_update_user_info_with_http_info(
@validate_call
- def put_update_user_info_without_preload_content(
+ def put_user_without_preload_content(
self,
- payload: Userinfopostpayload,
+ payload: UserInfoPostPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -743,11 +749,12 @@ def put_update_user_info_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """PUT: Update user info
+ """PUT: Update billing info
+ Update the billing information for your organization in the request body.
:param payload: (required)
- :type payload: Userinfopostpayload
+ :type payload: UserInfoPostPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -770,7 +777,7 @@ def put_update_user_info_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._put_update_user_info_serialize(
+ _param = self._put_user_serialize(
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -793,7 +800,7 @@ def put_update_user_info_without_preload_content(
return response_data.response
- def _put_update_user_info_serialize(
+ def _put_user_serialize(
self,
payload,
_request_auth,
@@ -849,8 +856,7 @@ def _put_update_user_info_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/user_detail_choice_api.py b/hyperstack/api/user_detail_choice_api.py
index 7fd166c..e6fb05c 100644
--- a/hyperstack/api/user_detail_choice_api.py
+++ b/hyperstack/api/user_detail_choice_api.py
@@ -273,8 +273,7 @@ def _retrieve_default_flavors_and_images_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/user_permission_api.py b/hyperstack/api/user_permission_api.py
index ad5f5ab..19c7009 100644
--- a/hyperstack/api/user_permission_api.py
+++ b/hyperstack/api/user_permission_api.py
@@ -55,7 +55,7 @@ def list_my_user_permissions(
) -> GetUserPermissionsResponseModel:
"""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...cloud/docs/api-reference/auth-resources/permission/list-my-permissions).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -121,7 +121,7 @@ def list_my_user_permissions_with_http_info(
) -> ApiResponse[GetUserPermissionsResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/permission/list-my-permissions).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -187,7 +187,7 @@ def list_my_user_permissions_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/permission/list-my-permissions).
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
@@ -271,8 +271,7 @@ def _list_my_user_permissions_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -312,7 +311,7 @@ def list_user_permissions(
) -> GetUserPermissionsResponseModel:
"""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...cloud/docs/api-reference/auth-resources/permission/list-user-permissions).
:param id: (required)
:type id: int
@@ -383,7 +382,7 @@ def list_user_permissions_with_http_info(
) -> ApiResponse[GetUserPermissionsResponseModel]:
"""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...cloud/docs/api-reference/auth-resources/permission/list-user-permissions).
:param id: (required)
:type id: int
@@ -454,7 +453,7 @@ def list_user_permissions_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/auth-resources/permission/list-user-permissions).
:param id: (required)
:type id: int
@@ -545,8 +544,7 @@ def _list_user_permissions_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
diff --git a/hyperstack/api/virtual_machine_api.py b/hyperstack/api/virtual_machine_api.py
index 456a541..706668c 100644
--- a/hyperstack/api/virtual_machine_api.py
+++ b/hyperstack/api/virtual_machine_api.py
@@ -17,7 +17,7 @@
from typing_extensions import Annotated
from pydantic import Field, StrictInt, StrictStr, field_validator
-from typing import Optional
+from typing import List, Optional
from typing_extensions import Annotated
from ..models.attach_firewalls_to_vm_payload import AttachFirewallsToVMPayload
from ..models.contract_instances_response import ContractInstancesResponse
@@ -26,12 +26,15 @@
from ..models.create_security_rule_payload import CreateSecurityRulePayload
from ..models.create_snapshot_payload import CreateSnapshotPayload
from ..models.create_snapshot_response import CreateSnapshotResponse
-from ..models.editlabelofanexisting_vm_payload import EditlabelofanexistingVMPayload
+from ..models.edit_label_of_an_existing_vm_payload import EditLabelOfAnExistingVMPayload
+from ..models.get_instance_logs_response import GetInstanceLogsResponse
from ..models.instance import Instance
from ..models.instance_resize_payload import InstanceResizePayload
from ..models.instances import Instances
from ..models.metrics_fields import MetricsFields
from ..models.name_available_model import NameAvailableModel
+from ..models.request_instance_logs_payload import RequestInstanceLogsPayload
+from ..models.request_instance_logs_response import RequestInstanceLogsResponse
from ..models.response_model import ResponseModel
from ..models.security_group_rule import SecurityGroupRule
@@ -54,10 +57,9 @@ def __init__(self, api_client=None) -> None:
@validate_call
- def add_firewall_rule_to_virtual_machine(
+ def delete_instance(
self,
- id: StrictInt,
- payload: CreateSecurityRulePayload,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -70,15 +72,13 @@ def add_firewall_rule_to_virtual_machine(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> SecurityGroupRule:
- """Add firewall rule to virtual machine
+ ) -> ResponseModel:
+ """Delete 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).
+ Permanently deletes a virtual machine. Provide the virtual machine ID in the path to delete the specified virtual machine.
- :param id: (required)
- :type id: int
- :param payload: (required)
- :type payload: CreateSecurityRulePayload
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -101,9 +101,8 @@ def add_firewall_rule_to_virtual_machine(
:return: Returns the result object.
""" # noqa: E501
- _param = self._add_firewall_rule_to_virtual_machine_serialize(
- id=id,
- payload=payload,
+ _param = self._delete_instance_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -111,7 +110,7 @@ def add_firewall_rule_to_virtual_machine(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "SecurityGroupRule",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -130,10 +129,9 @@ def add_firewall_rule_to_virtual_machine(
@validate_call
- def add_firewall_rule_to_virtual_machine_with_http_info(
+ def delete_instance_with_http_info(
self,
- id: StrictInt,
- payload: CreateSecurityRulePayload,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -146,15 +144,13 @@ def add_firewall_rule_to_virtual_machine_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[SecurityGroupRule]:
- """Add firewall rule to virtual machine
+ ) -> ApiResponse[ResponseModel]:
+ """Delete 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).
+ Permanently deletes a virtual machine. Provide the virtual machine ID in the path to delete the specified virtual machine.
- :param id: (required)
- :type id: int
- :param payload: (required)
- :type payload: CreateSecurityRulePayload
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -177,9 +173,8 @@ def add_firewall_rule_to_virtual_machine_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._add_firewall_rule_to_virtual_machine_serialize(
- id=id,
- payload=payload,
+ _param = self._delete_instance_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -187,7 +182,7 @@ def add_firewall_rule_to_virtual_machine_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "SecurityGroupRule",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -206,10 +201,9 @@ def add_firewall_rule_to_virtual_machine_with_http_info(
@validate_call
- def add_firewall_rule_to_virtual_machine_without_preload_content(
+ def delete_instance_without_preload_content(
self,
- id: StrictInt,
- payload: CreateSecurityRulePayload,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -223,14 +217,12 @@ def add_firewall_rule_to_virtual_machine_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Add firewall rule to virtual machine
+ """Delete 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).
+ Permanently deletes a virtual machine. Provide the virtual machine ID in the path to delete the specified virtual machine.
- :param id: (required)
- :type id: int
- :param payload: (required)
- :type payload: CreateSecurityRulePayload
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -253,9 +245,8 @@ def add_firewall_rule_to_virtual_machine_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._add_firewall_rule_to_virtual_machine_serialize(
- id=id,
- payload=payload,
+ _param = self._delete_instance_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -263,7 +254,7 @@ def add_firewall_rule_to_virtual_machine_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "SecurityGroupRule",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -277,10 +268,9 @@ def add_firewall_rule_to_virtual_machine_without_preload_content(
return response_data.response
- def _add_firewall_rule_to_virtual_machine_serialize(
+ def _delete_instance_serialize(
self,
- id,
- payload,
+ vm_id,
_request_auth,
_content_type,
_headers,
@@ -302,14 +292,12 @@ def _add_firewall_rule_to_virtual_machine_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
# process the body parameter
- if payload is not None:
- _body_params = payload
# set the HTTP header `Accept`
@@ -320,29 +308,15 @@ def _add_firewall_rule_to_virtual_machine_serialize(
]
)
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='POST',
- resource_path='/core/virtual-machines/{id}/sg-rules',
+ method='DELETE',
+ resource_path='/core/virtual-machines/{vm_id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -359,10 +333,10 @@ def _add_firewall_rule_to_virtual_machine_serialize(
@validate_call
- def attach_firewalls_to_a_virtual_machine(
+ def delete_security_rule(
self,
vm_id: StrictInt,
- payload: AttachFirewallsToVMPayload,
+ sg_rule_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -376,14 +350,14 @@ def attach_firewalls_to_a_virtual_machine(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ResponseModel:
- """Attach firewalls to a virtual machine
+ """Delete firewall rule from virtual machine
- Attach firewalls to a virtual machine by providing the virtual machine ID in the path and the IDs of the firewalls in the request body; any firewalls not included will be detached.
+ 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 vm_id: (required)
:type vm_id: int
- :param payload: (required)
- :type payload: AttachFirewallsToVMPayload
+ :param sg_rule_id: (required)
+ :type sg_rule_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -406,9 +380,9 @@ def attach_firewalls_to_a_virtual_machine(
:return: Returns the result object.
""" # noqa: E501
- _param = self._attach_firewalls_to_a_virtual_machine_serialize(
+ _param = self._delete_security_rule_serialize(
vm_id=vm_id,
- payload=payload,
+ sg_rule_id=sg_rule_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -434,10 +408,10 @@ def attach_firewalls_to_a_virtual_machine(
@validate_call
- def attach_firewalls_to_a_virtual_machine_with_http_info(
+ def delete_security_rule_with_http_info(
self,
vm_id: StrictInt,
- payload: AttachFirewallsToVMPayload,
+ sg_rule_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -451,14 +425,14 @@ def attach_firewalls_to_a_virtual_machine_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[ResponseModel]:
- """Attach firewalls to a virtual machine
+ """Delete firewall rule from virtual machine
- Attach firewalls to a virtual machine by providing the virtual machine ID in the path and the IDs of the firewalls in the request body; any firewalls not included will be detached.
+ 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 vm_id: (required)
:type vm_id: int
- :param payload: (required)
- :type payload: AttachFirewallsToVMPayload
+ :param sg_rule_id: (required)
+ :type sg_rule_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -481,9 +455,9 @@ def attach_firewalls_to_a_virtual_machine_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._attach_firewalls_to_a_virtual_machine_serialize(
+ _param = self._delete_security_rule_serialize(
vm_id=vm_id,
- payload=payload,
+ sg_rule_id=sg_rule_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -509,10 +483,10 @@ def attach_firewalls_to_a_virtual_machine_with_http_info(
@validate_call
- def attach_firewalls_to_a_virtual_machine_without_preload_content(
+ def delete_security_rule_without_preload_content(
self,
vm_id: StrictInt,
- payload: AttachFirewallsToVMPayload,
+ sg_rule_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -526,14 +500,14 @@ def attach_firewalls_to_a_virtual_machine_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Attach firewalls to a virtual machine
+ """Delete firewall rule from virtual machine
- Attach firewalls to a virtual machine by providing the virtual machine ID in the path and the IDs of the firewalls in the request body; any firewalls not included will be detached.
+ 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 vm_id: (required)
:type vm_id: int
- :param payload: (required)
- :type payload: AttachFirewallsToVMPayload
+ :param sg_rule_id: (required)
+ :type sg_rule_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -556,9 +530,9 @@ def attach_firewalls_to_a_virtual_machine_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._attach_firewalls_to_a_virtual_machine_serialize(
+ _param = self._delete_security_rule_serialize(
vm_id=vm_id,
- payload=payload,
+ sg_rule_id=sg_rule_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -579,10 +553,10 @@ def attach_firewalls_to_a_virtual_machine_without_preload_content(
return response_data.response
- def _attach_firewalls_to_a_virtual_machine_serialize(
+ def _delete_security_rule_serialize(
self,
vm_id,
- payload,
+ sg_rule_id,
_request_auth,
_content_type,
_headers,
@@ -606,12 +580,12 @@ def _attach_firewalls_to_a_virtual_machine_serialize(
# process the path parameters
if vm_id is not None:
_path_params['vm_id'] = vm_id
+ if sg_rule_id is not None:
+ _path_params['sg_rule_id'] = sg_rule_id
# process the query parameters
# process the header parameters
# process the form parameters
# process the body parameter
- if payload is not None:
- _body_params = payload
# set the HTTP header `Accept`
@@ -622,29 +596,15 @@ def _attach_firewalls_to_a_virtual_machine_serialize(
]
)
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='POST',
- resource_path='/core/virtual-machines/{vm_id}/attach-firewalls',
+ method='DELETE',
+ resource_path='/core/virtual-machines/{vm_id}/sg-rules/{sg_rule_id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -661,10 +621,9 @@ def _attach_firewalls_to_a_virtual_machine_serialize(
@validate_call
- def create_snapshot_from_a_virtual_machine(
+ def fetch_virtual_machine_name_availability(
self,
- vm_id: StrictInt,
- payload: CreateSnapshotPayload,
+ name: StrictStr,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -677,15 +636,13 @@ def create_snapshot_from_a_virtual_machine(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> CreateSnapshotResponse:
- """Create snapshot from a virtual machine
+ ) -> NameAvailableModel:
+ """Fetch virtual machine name availability
- Create snapshots of a virtual machine by providing the virtual machine ID in the path
+ Check if a Virtual Machine name is available
- :param vm_id: (required)
- :type vm_id: int
- :param payload: (required)
- :type payload: CreateSnapshotPayload
+ :param name: (required)
+ :type name: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -708,9 +665,8 @@ def create_snapshot_from_a_virtual_machine(
:return: Returns the result object.
""" # noqa: E501
- _param = self._create_snapshot_from_a_virtual_machine_serialize(
- vm_id=vm_id,
- payload=payload,
+ _param = self._fetch_virtual_machine_name_availability_serialize(
+ name=name,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -718,7 +674,7 @@ def create_snapshot_from_a_virtual_machine(
)
_response_types_map: Dict[str, Optional[str]] = {
- '201': "CreateSnapshotResponse",
+ '200': "NameAvailableModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -736,10 +692,9 @@ def create_snapshot_from_a_virtual_machine(
@validate_call
- def create_snapshot_from_a_virtual_machine_with_http_info(
+ def fetch_virtual_machine_name_availability_with_http_info(
self,
- vm_id: StrictInt,
- payload: CreateSnapshotPayload,
+ name: StrictStr,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -752,15 +707,13 @@ def create_snapshot_from_a_virtual_machine_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[CreateSnapshotResponse]:
- """Create snapshot from a virtual machine
+ ) -> ApiResponse[NameAvailableModel]:
+ """Fetch virtual machine name availability
- Create snapshots of a virtual machine by providing the virtual machine ID in the path
+ Check if a Virtual Machine name is available
- :param vm_id: (required)
- :type vm_id: int
- :param payload: (required)
- :type payload: CreateSnapshotPayload
+ :param name: (required)
+ :type name: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -783,9 +736,8 @@ def create_snapshot_from_a_virtual_machine_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._create_snapshot_from_a_virtual_machine_serialize(
- vm_id=vm_id,
- payload=payload,
+ _param = self._fetch_virtual_machine_name_availability_serialize(
+ name=name,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -793,7 +745,7 @@ def create_snapshot_from_a_virtual_machine_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '201': "CreateSnapshotResponse",
+ '200': "NameAvailableModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -811,10 +763,9 @@ def create_snapshot_from_a_virtual_machine_with_http_info(
@validate_call
- def create_snapshot_from_a_virtual_machine_without_preload_content(
+ def fetch_virtual_machine_name_availability_without_preload_content(
self,
- vm_id: StrictInt,
- payload: CreateSnapshotPayload,
+ name: StrictStr,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -828,14 +779,12 @@ def create_snapshot_from_a_virtual_machine_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Create snapshot from a virtual machine
+ """Fetch virtual machine name availability
- Create snapshots of a virtual machine by providing the virtual machine ID in the path
+ Check if a Virtual Machine name is available
- :param vm_id: (required)
- :type vm_id: int
- :param payload: (required)
- :type payload: CreateSnapshotPayload
+ :param name: (required)
+ :type name: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -858,9 +807,8 @@ def create_snapshot_from_a_virtual_machine_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._create_snapshot_from_a_virtual_machine_serialize(
- vm_id=vm_id,
- payload=payload,
+ _param = self._fetch_virtual_machine_name_availability_serialize(
+ name=name,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -868,7 +816,7 @@ def create_snapshot_from_a_virtual_machine_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '201': "CreateSnapshotResponse",
+ '200': "NameAvailableModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -881,10 +829,9 @@ def create_snapshot_from_a_virtual_machine_without_preload_content(
return response_data.response
- def _create_snapshot_from_a_virtual_machine_serialize(
+ def _fetch_virtual_machine_name_availability_serialize(
self,
- vm_id,
- payload,
+ name,
_request_auth,
_content_type,
_headers,
@@ -906,14 +853,12 @@ def _create_snapshot_from_a_virtual_machine_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if vm_id is not None:
- _path_params['vm_id'] = vm_id
+ if name is not None:
+ _path_params['name'] = name
# process the query parameters
# process the header parameters
# process the form parameters
# process the body parameter
- if payload is not None:
- _body_params = payload
# set the HTTP header `Accept`
@@ -924,29 +869,15 @@ def _create_snapshot_from_a_virtual_machine_serialize(
]
)
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='POST',
- resource_path='/core/virtual-machines/{vm_id}/snapshots',
+ method='GET',
+ resource_path='/core/virtual-machines/name-availability/{name}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -963,9 +894,12 @@ def _create_snapshot_from_a_virtual_machine_serialize(
@validate_call
- def create_virtual_machines(
+ def get_contract_instances(
self,
- payload: CreateInstancesPayload,
+ contract_id: StrictInt,
+ page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
+ page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search By Instance ID or Name")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -978,13 +912,19 @@ def create_virtual_machines(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> CreateInstancesResponse:
- """Create virtual machines
+ ) -> ContractInstancesResponse:
+ """Retrieve virtual machines associated with a contract
- 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).
+ 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 payload: (required)
- :type payload: CreateInstancesPayload
+ :param contract_id: (required)
+ :type contract_id: int
+ :param page: Page Number
+ :type page: str
+ :param page_size: Data Per Page
+ :type page_size: str
+ :param search: Search By Instance ID or Name
+ :type search: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1007,8 +947,11 @@ def create_virtual_machines(
:return: Returns the result object.
""" # noqa: E501
- _param = self._create_virtual_machines_serialize(
- payload=payload,
+ _param = self._get_contract_instances_serialize(
+ contract_id=contract_id,
+ page=page,
+ page_size=page_size,
+ search=search,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1016,12 +959,9 @@ def create_virtual_machines(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "CreateInstancesResponse",
+ '200': "ContractInstancesResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
- '404': "ErrorResponseModel",
- '405': "ErrorResponseModel",
- '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1036,9 +976,12 @@ def create_virtual_machines(
@validate_call
- def create_virtual_machines_with_http_info(
+ def get_contract_instances_with_http_info(
self,
- payload: CreateInstancesPayload,
+ contract_id: StrictInt,
+ page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
+ page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search By Instance ID or Name")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1051,14 +994,20 @@ def create_virtual_machines_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[CreateInstancesResponse]:
- """Create virtual machines
+ ) -> ApiResponse[ContractInstancesResponse]:
+ """Retrieve virtual machines associated with a contract
- 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).
+ 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 payload: (required)
- :type payload: CreateInstancesPayload
- :param _request_timeout: timeout setting for this request. If one
+ :param contract_id: (required)
+ :type contract_id: int
+ :param page: Page Number
+ :type page: str
+ :param page_size: Data Per Page
+ :type page_size: str
+ :param search: Search By Instance ID or Name
+ :type search: str
+ :param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
@@ -1080,8 +1029,11 @@ def create_virtual_machines_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._create_virtual_machines_serialize(
- payload=payload,
+ _param = self._get_contract_instances_serialize(
+ contract_id=contract_id,
+ page=page,
+ page_size=page_size,
+ search=search,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1089,12 +1041,9 @@ def create_virtual_machines_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "CreateInstancesResponse",
+ '200': "ContractInstancesResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
- '404': "ErrorResponseModel",
- '405': "ErrorResponseModel",
- '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1109,9 +1058,12 @@ def create_virtual_machines_with_http_info(
@validate_call
- def create_virtual_machines_without_preload_content(
+ def get_contract_instances_without_preload_content(
self,
- payload: CreateInstancesPayload,
+ contract_id: StrictInt,
+ page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
+ page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
+ search: Annotated[Optional[StrictStr], Field(description="Search By Instance ID or Name")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1125,12 +1077,18 @@ def create_virtual_machines_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Create virtual machines
+ """Retrieve virtual machines associated with a contract
- 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).
+ 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 payload: (required)
- :type payload: CreateInstancesPayload
+ :param contract_id: (required)
+ :type contract_id: int
+ :param page: Page Number
+ :type page: str
+ :param page_size: Data Per Page
+ :type page_size: str
+ :param search: Search By Instance ID or Name
+ :type search: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1153,8 +1111,11 @@ def create_virtual_machines_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._create_virtual_machines_serialize(
- payload=payload,
+ _param = self._get_contract_instances_serialize(
+ contract_id=contract_id,
+ page=page,
+ page_size=page_size,
+ search=search,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1162,12 +1123,9 @@ def create_virtual_machines_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "CreateInstancesResponse",
+ '200': "ContractInstancesResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
- '404': "ErrorResponseModel",
- '405': "ErrorResponseModel",
- '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1177,9 +1135,12 @@ def create_virtual_machines_without_preload_content(
return response_data.response
- def _create_virtual_machines_serialize(
+ def _get_contract_instances_serialize(
self,
- payload,
+ contract_id,
+ page,
+ page_size,
+ search,
_request_auth,
_content_type,
_headers,
@@ -1201,12 +1162,24 @@ def _create_virtual_machines_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
+ if contract_id is not None:
+ _path_params['contract_id'] = contract_id
# process the query parameters
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if page_size is not None:
+
+ _query_params.append(('pageSize', page_size))
+
+ if search is not None:
+
+ _query_params.append(('search', search))
+
# process the header parameters
# process the form parameters
# process the body parameter
- if payload is not None:
- _body_params = payload
# set the HTTP header `Accept`
@@ -1217,29 +1190,15 @@ def _create_virtual_machines_serialize(
]
)
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='POST',
- resource_path='/core/virtual-machines',
+ method='GET',
+ resource_path='/core/virtual-machines/contract/{contract_id}/virtual-machines',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1256,10 +1215,13 @@ def _create_virtual_machines_serialize(
@validate_call
- def delete_firewall_rule_from_virtual_machine(
+ def get_instance(
self,
- virtual_machine_id: StrictInt,
- sg_rule_id: StrictInt,
+ page: Optional[StrictInt] = None,
+ page_size: Optional[StrictInt] = None,
+ search: Optional[StrictStr] = None,
+ environment: Optional[StrictStr] = None,
+ exclude_firewalls: Annotated[Optional[List[StrictInt]], Field(description="Comma-separated list of Security Group IDs to ignore instances attached")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1272,15 +1234,21 @@ def delete_firewall_rule_from_virtual_machine(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ResponseModel:
- """Delete firewall rule from virtual machine
+ ) -> Instances:
+ """List virtual machines
- 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.
+ 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 virtual_machine_id: (required)
- :type virtual_machine_id: int
- :param sg_rule_id: (required)
- :type sg_rule_id: int
+ :param page:
+ :type page: int
+ :param page_size:
+ :type page_size: int
+ :param search:
+ :type search: str
+ :param environment:
+ :type environment: str
+ :param exclude_firewalls: Comma-separated list of Security Group IDs to ignore instances attached
+ :type exclude_firewalls: List[int]
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1303,9 +1271,12 @@ def delete_firewall_rule_from_virtual_machine(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_firewall_rule_from_virtual_machine_serialize(
- virtual_machine_id=virtual_machine_id,
- sg_rule_id=sg_rule_id,
+ _param = self._get_instance_serialize(
+ page=page,
+ page_size=page_size,
+ search=search,
+ environment=environment,
+ exclude_firewalls=exclude_firewalls,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1313,10 +1284,9 @@ def delete_firewall_rule_from_virtual_machine(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "Instances",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
- '404': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1331,10 +1301,13 @@ def delete_firewall_rule_from_virtual_machine(
@validate_call
- def delete_firewall_rule_from_virtual_machine_with_http_info(
+ def get_instance_with_http_info(
self,
- virtual_machine_id: StrictInt,
- sg_rule_id: StrictInt,
+ page: Optional[StrictInt] = None,
+ page_size: Optional[StrictInt] = None,
+ search: Optional[StrictStr] = None,
+ environment: Optional[StrictStr] = None,
+ exclude_firewalls: Annotated[Optional[List[StrictInt]], Field(description="Comma-separated list of Security Group IDs to ignore instances attached")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1347,15 +1320,21 @@ def delete_firewall_rule_from_virtual_machine_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ResponseModel]:
- """Delete firewall rule from virtual machine
+ ) -> ApiResponse[Instances]:
+ """List virtual machines
- 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.
+ 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 virtual_machine_id: (required)
- :type virtual_machine_id: int
- :param sg_rule_id: (required)
- :type sg_rule_id: int
+ :param page:
+ :type page: int
+ :param page_size:
+ :type page_size: int
+ :param search:
+ :type search: str
+ :param environment:
+ :type environment: str
+ :param exclude_firewalls: Comma-separated list of Security Group IDs to ignore instances attached
+ :type exclude_firewalls: List[int]
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1378,9 +1357,12 @@ def delete_firewall_rule_from_virtual_machine_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_firewall_rule_from_virtual_machine_serialize(
- virtual_machine_id=virtual_machine_id,
- sg_rule_id=sg_rule_id,
+ _param = self._get_instance_serialize(
+ page=page,
+ page_size=page_size,
+ search=search,
+ environment=environment,
+ exclude_firewalls=exclude_firewalls,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1388,10 +1370,9 @@ def delete_firewall_rule_from_virtual_machine_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "Instances",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
- '404': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1406,10 +1387,13 @@ def delete_firewall_rule_from_virtual_machine_with_http_info(
@validate_call
- def delete_firewall_rule_from_virtual_machine_without_preload_content(
+ def get_instance_without_preload_content(
self,
- virtual_machine_id: StrictInt,
- sg_rule_id: StrictInt,
+ page: Optional[StrictInt] = None,
+ page_size: Optional[StrictInt] = None,
+ search: Optional[StrictStr] = None,
+ environment: Optional[StrictStr] = None,
+ exclude_firewalls: Annotated[Optional[List[StrictInt]], Field(description="Comma-separated list of Security Group IDs to ignore instances attached")] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1423,14 +1407,20 @@ def delete_firewall_rule_from_virtual_machine_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Delete firewall rule from virtual machine
+ """List virtual machines
- 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.
+ 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 virtual_machine_id: (required)
- :type virtual_machine_id: int
- :param sg_rule_id: (required)
- :type sg_rule_id: int
+ :param page:
+ :type page: int
+ :param page_size:
+ :type page_size: int
+ :param search:
+ :type search: str
+ :param environment:
+ :type environment: str
+ :param exclude_firewalls: Comma-separated list of Security Group IDs to ignore instances attached
+ :type exclude_firewalls: List[int]
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1453,9 +1443,12 @@ def delete_firewall_rule_from_virtual_machine_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_firewall_rule_from_virtual_machine_serialize(
- virtual_machine_id=virtual_machine_id,
- sg_rule_id=sg_rule_id,
+ _param = self._get_instance_serialize(
+ page=page,
+ page_size=page_size,
+ search=search,
+ environment=environment,
+ exclude_firewalls=exclude_firewalls,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1463,10 +1456,9 @@ def delete_firewall_rule_from_virtual_machine_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "Instances",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
- '404': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1476,10 +1468,13 @@ def delete_firewall_rule_from_virtual_machine_without_preload_content(
return response_data.response
- def _delete_firewall_rule_from_virtual_machine_serialize(
+ def _get_instance_serialize(
self,
- virtual_machine_id,
- sg_rule_id,
+ page,
+ page_size,
+ search,
+ environment,
+ exclude_firewalls,
_request_auth,
_content_type,
_headers,
@@ -1489,6 +1484,7 @@ def _delete_firewall_rule_from_virtual_machine_serialize(
_host = None
_collection_formats: Dict[str, str] = {
+ 'exclude_firewalls': 'multi',
}
_path_params: Dict[str, str] = {}
@@ -1501,11 +1497,27 @@ def _delete_firewall_rule_from_virtual_machine_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if virtual_machine_id is not None:
- _path_params['virtual_machine_id'] = virtual_machine_id
- if sg_rule_id is not None:
- _path_params['sg_rule_id'] = sg_rule_id
# process the query parameters
+ if page is not None:
+
+ _query_params.append(('page', page))
+
+ if page_size is not None:
+
+ _query_params.append(('pageSize', page_size))
+
+ if search is not None:
+
+ _query_params.append(('search', search))
+
+ if environment is not None:
+
+ _query_params.append(('environment', environment))
+
+ if exclude_firewalls is not None:
+
+ _query_params.append(('exclude_firewalls', exclude_firewalls))
+
# process the header parameters
# process the form parameters
# process the body parameter
@@ -1522,13 +1534,12 @@ def _delete_firewall_rule_from_virtual_machine_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='DELETE',
- resource_path='/core/virtual-machines/{virtual_machine_id}/sg-rules/{sg_rule_id}',
+ method='GET',
+ resource_path='/core/virtual-machines',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1545,9 +1556,9 @@ def _delete_firewall_rule_from_virtual_machine_serialize(
@validate_call
- def delete_virtual_machine(
+ def get_instance2(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1560,13 +1571,13 @@ def delete_virtual_machine(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ResponseModel:
- """Delete virtual machine
+ ) -> Instance:
+ """Retrieve virtual machine details
- Permanently deletes a virtual machine. Provide the virtual machine ID in the path to delete the specified virtual machine.
+ 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 id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1589,8 +1600,8 @@ def delete_virtual_machine(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_virtual_machine_serialize(
- id=id,
+ _param = self._get_instance2_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1598,11 +1609,10 @@ def delete_virtual_machine(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "Instance",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
- '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1617,9 +1627,9 @@ def delete_virtual_machine(
@validate_call
- def delete_virtual_machine_with_http_info(
+ def get_instance2_with_http_info(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1632,13 +1642,13 @@ def delete_virtual_machine_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ResponseModel]:
- """Delete virtual machine
+ ) -> ApiResponse[Instance]:
+ """Retrieve virtual machine details
- Permanently deletes a virtual machine. Provide the virtual machine ID in the path to delete the specified virtual machine.
+ 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 id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1661,8 +1671,8 @@ def delete_virtual_machine_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_virtual_machine_serialize(
- id=id,
+ _param = self._get_instance2_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1670,11 +1680,10 @@ def delete_virtual_machine_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "Instance",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
- '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1689,9 +1698,9 @@ def delete_virtual_machine_with_http_info(
@validate_call
- def delete_virtual_machine_without_preload_content(
+ def get_instance2_without_preload_content(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1705,12 +1714,12 @@ def delete_virtual_machine_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Delete virtual machine
+ """Retrieve virtual machine details
- Permanently deletes a virtual machine. Provide the virtual machine ID in the path to delete the specified virtual machine.
+ 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 id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1733,8 +1742,8 @@ def delete_virtual_machine_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._delete_virtual_machine_serialize(
- id=id,
+ _param = self._get_instance2_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1742,11 +1751,10 @@ def delete_virtual_machine_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "Instance",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
- '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1756,9 +1764,9 @@ def delete_virtual_machine_without_preload_content(
return response_data.response
- def _delete_virtual_machine_serialize(
+ def _get_instance2_serialize(
self,
- id,
+ vm_id,
_request_auth,
_content_type,
_headers,
@@ -1780,8 +1788,8 @@ def _delete_virtual_machine_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -1799,13 +1807,12 @@ def _delete_virtual_machine_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='DELETE',
- resource_path='/core/virtual-machines/{id}',
+ method='GET',
+ resource_path='/core/virtual-machines/{vm_id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1822,10 +1829,9 @@ def _delete_virtual_machine_serialize(
@validate_call
- def edit_virtual_machine_labels(
+ def get_instance3(
self,
- virtual_machine_id: StrictInt,
- payload: EditlabelofanexistingVMPayload,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1839,14 +1845,12 @@ def edit_virtual_machine_labels(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ResponseModel:
- """Edit virtual machine labels
+ """Hard reboot virtual machine
- 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.
+ 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 virtual_machine_id: (required)
- :type virtual_machine_id: int
- :param payload: (required)
- :type payload: EditlabelofanexistingVMPayload
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1869,9 +1873,8 @@ def edit_virtual_machine_labels(
:return: Returns the result object.
""" # noqa: E501
- _param = self._edit_virtual_machine_labels_serialize(
- virtual_machine_id=virtual_machine_id,
- payload=payload,
+ _param = self._get_instance3_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1883,7 +1886,6 @@ def edit_virtual_machine_labels(
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
- '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1898,10 +1900,9 @@ def edit_virtual_machine_labels(
@validate_call
- def edit_virtual_machine_labels_with_http_info(
+ def get_instance3_with_http_info(
self,
- virtual_machine_id: StrictInt,
- payload: EditlabelofanexistingVMPayload,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1915,14 +1916,12 @@ def edit_virtual_machine_labels_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[ResponseModel]:
- """Edit virtual machine labels
+ """Hard reboot virtual machine
- 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.
+ 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 virtual_machine_id: (required)
- :type virtual_machine_id: int
- :param payload: (required)
- :type payload: EditlabelofanexistingVMPayload
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -1945,9 +1944,8 @@ def edit_virtual_machine_labels_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._edit_virtual_machine_labels_serialize(
- virtual_machine_id=virtual_machine_id,
- payload=payload,
+ _param = self._get_instance3_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -1959,7 +1957,6 @@ def edit_virtual_machine_labels_with_http_info(
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
- '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -1974,10 +1971,9 @@ def edit_virtual_machine_labels_with_http_info(
@validate_call
- def edit_virtual_machine_labels_without_preload_content(
+ def get_instance3_without_preload_content(
self,
- virtual_machine_id: StrictInt,
- payload: EditlabelofanexistingVMPayload,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -1991,14 +1987,12 @@ def edit_virtual_machine_labels_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Edit virtual machine labels
+ """Hard reboot virtual machine
- 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.
+ 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 virtual_machine_id: (required)
- :type virtual_machine_id: int
- :param payload: (required)
- :type payload: EditlabelofanexistingVMPayload
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2021,9 +2015,8 @@ def edit_virtual_machine_labels_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._edit_virtual_machine_labels_serialize(
- virtual_machine_id=virtual_machine_id,
- payload=payload,
+ _param = self._get_instance3_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2035,7 +2028,6 @@ def edit_virtual_machine_labels_without_preload_content(
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
- '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -2045,10 +2037,9 @@ def edit_virtual_machine_labels_without_preload_content(
return response_data.response
- def _edit_virtual_machine_labels_serialize(
+ def _get_instance3_serialize(
self,
- virtual_machine_id,
- payload,
+ vm_id,
_request_auth,
_content_type,
_headers,
@@ -2070,14 +2061,12 @@ def _edit_virtual_machine_labels_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if virtual_machine_id is not None:
- _path_params['virtual_machine_id'] = virtual_machine_id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
# process the body parameter
- if payload is not None:
- _body_params = payload
# set the HTTP header `Accept`
@@ -2088,29 +2077,15 @@ def _edit_virtual_machine_labels_serialize(
]
)
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='PUT',
- resource_path='/core/virtual-machines/{virtual_machine_id}/label',
+ method='GET',
+ resource_path='/core/virtual-machines/{vm_id}/hard-reboot',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2127,9 +2102,9 @@ def _edit_virtual_machine_labels_serialize(
@validate_call
- def fetch_virtual_machine_name_availability(
+ def get_instance4(
self,
- name: StrictStr,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2142,13 +2117,13 @@ def fetch_virtual_machine_name_availability(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> NameAvailableModel:
- """Fetch virtual machine name availability
+ ) -> ResponseModel:
+ """Start virtual machine
- Check if a Virtual Machine name is available
+ 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 name: (required)
- :type name: str
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2171,8 +2146,8 @@ def fetch_virtual_machine_name_availability(
:return: Returns the result object.
""" # noqa: E501
- _param = self._fetch_virtual_machine_name_availability_serialize(
- name=name,
+ _param = self._get_instance4_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2180,7 +2155,7 @@ def fetch_virtual_machine_name_availability(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "NameAvailableModel",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -2198,9 +2173,9 @@ def fetch_virtual_machine_name_availability(
@validate_call
- def fetch_virtual_machine_name_availability_with_http_info(
+ def get_instance4_with_http_info(
self,
- name: StrictStr,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2213,13 +2188,13 @@ def fetch_virtual_machine_name_availability_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[NameAvailableModel]:
- """Fetch virtual machine name availability
+ ) -> ApiResponse[ResponseModel]:
+ """Start virtual machine
- Check if a Virtual Machine name is available
+ 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 name: (required)
- :type name: str
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2242,8 +2217,8 @@ def fetch_virtual_machine_name_availability_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._fetch_virtual_machine_name_availability_serialize(
- name=name,
+ _param = self._get_instance4_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2251,7 +2226,7 @@ def fetch_virtual_machine_name_availability_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "NameAvailableModel",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -2269,9 +2244,9 @@ def fetch_virtual_machine_name_availability_with_http_info(
@validate_call
- def fetch_virtual_machine_name_availability_without_preload_content(
+ def get_instance4_without_preload_content(
self,
- name: StrictStr,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2285,12 +2260,12 @@ def fetch_virtual_machine_name_availability_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Fetch virtual machine name availability
+ """Start virtual machine
- Check if a Virtual Machine name is available
+ 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 name: (required)
- :type name: str
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2313,8 +2288,8 @@ def fetch_virtual_machine_name_availability_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._fetch_virtual_machine_name_availability_serialize(
- name=name,
+ _param = self._get_instance4_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2322,7 +2297,7 @@ def fetch_virtual_machine_name_availability_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "NameAvailableModel",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -2335,9 +2310,9 @@ def fetch_virtual_machine_name_availability_without_preload_content(
return response_data.response
- def _fetch_virtual_machine_name_availability_serialize(
+ def _get_instance4_serialize(
self,
- name,
+ vm_id,
_request_auth,
_content_type,
_headers,
@@ -2359,8 +2334,8 @@ def _fetch_virtual_machine_name_availability_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if name is not None:
- _path_params['name'] = name
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -2378,13 +2353,12 @@ def _fetch_virtual_machine_name_availability_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/core/virtual-machines/name-availability/{name}',
+ resource_path='/core/virtual-machines/{vm_id}/start',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2401,9 +2375,9 @@ def _fetch_virtual_machine_name_availability_serialize(
@validate_call
- def hard_reboot_virtual_machine(
+ def get_instance5(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2417,12 +2391,12 @@ def hard_reboot_virtual_machine(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ResponseModel:
- """Hard reboot virtual machine
+ """Stop 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.
+ Shuts down a virtual machine. Provide the virtual machine ID in the path to initiate the shutdown process for the specified virtual machine.
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2445,8 +2419,8 @@ def hard_reboot_virtual_machine(
:return: Returns the result object.
""" # noqa: E501
- _param = self._hard_reboot_virtual_machine_serialize(
- id=id,
+ _param = self._get_instance5_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2472,9 +2446,9 @@ def hard_reboot_virtual_machine(
@validate_call
- def hard_reboot_virtual_machine_with_http_info(
+ def get_instance5_with_http_info(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2488,12 +2462,12 @@ def hard_reboot_virtual_machine_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[ResponseModel]:
- """Hard reboot virtual machine
+ """Stop 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.
+ Shuts down a virtual machine. Provide the virtual machine ID in the path to initiate the shutdown process for the specified virtual machine.
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2516,8 +2490,8 @@ def hard_reboot_virtual_machine_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._hard_reboot_virtual_machine_serialize(
- id=id,
+ _param = self._get_instance5_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2543,9 +2517,9 @@ def hard_reboot_virtual_machine_with_http_info(
@validate_call
- def hard_reboot_virtual_machine_without_preload_content(
+ def get_instance5_without_preload_content(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2559,12 +2533,12 @@ def hard_reboot_virtual_machine_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Hard reboot virtual machine
+ """Stop 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.
+ Shuts down a virtual machine. Provide the virtual machine ID in the path to initiate the shutdown process for the specified virtual machine.
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2587,8 +2561,8 @@ def hard_reboot_virtual_machine_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._hard_reboot_virtual_machine_serialize(
- id=id,
+ _param = self._get_instance5_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2609,9 +2583,9 @@ def hard_reboot_virtual_machine_without_preload_content(
return response_data.response
- def _hard_reboot_virtual_machine_serialize(
+ def _get_instance5_serialize(
self,
- id,
+ vm_id,
_request_auth,
_content_type,
_headers,
@@ -2633,8 +2607,8 @@ def _hard_reboot_virtual_machine_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -2652,13 +2626,12 @@ def _hard_reboot_virtual_machine_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/core/virtual-machines/{id}/hard-reboot',
+ resource_path='/core/virtual-machines/{vm_id}/stop',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2675,9 +2648,9 @@ def _hard_reboot_virtual_machine_serialize(
@validate_call
- def hibernate_virtual_machine(
+ def get_instance_hibernate(
self,
- virtual_machine_id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2695,8 +2668,8 @@ def 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 virtual_machine_id: (required)
- :type virtual_machine_id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2719,8 +2692,8 @@ def hibernate_virtual_machine(
:return: Returns the result object.
""" # noqa: E501
- _param = self._hibernate_virtual_machine_serialize(
- virtual_machine_id=virtual_machine_id,
+ _param = self._get_instance_hibernate_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2746,9 +2719,9 @@ def hibernate_virtual_machine(
@validate_call
- def hibernate_virtual_machine_with_http_info(
+ def get_instance_hibernate_with_http_info(
self,
- virtual_machine_id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2766,8 +2739,8 @@ def hibernate_virtual_machine_with_http_info(
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 virtual_machine_id: (required)
- :type virtual_machine_id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2790,8 +2763,8 @@ def hibernate_virtual_machine_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._hibernate_virtual_machine_serialize(
- virtual_machine_id=virtual_machine_id,
+ _param = self._get_instance_hibernate_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2817,9 +2790,9 @@ def hibernate_virtual_machine_with_http_info(
@validate_call
- def hibernate_virtual_machine_without_preload_content(
+ def get_instance_hibernate_without_preload_content(
self,
- virtual_machine_id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2837,8 +2810,8 @@ def hibernate_virtual_machine_without_preload_content(
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 virtual_machine_id: (required)
- :type virtual_machine_id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -2861,8 +2834,8 @@ def hibernate_virtual_machine_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._hibernate_virtual_machine_serialize(
- virtual_machine_id=virtual_machine_id,
+ _param = self._get_instance_hibernate_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -2883,9 +2856,9 @@ def hibernate_virtual_machine_without_preload_content(
return response_data.response
- def _hibernate_virtual_machine_serialize(
+ def _get_instance_hibernate_serialize(
self,
- virtual_machine_id,
+ vm_id,
_request_auth,
_content_type,
_headers,
@@ -2907,8 +2880,8 @@ def _hibernate_virtual_machine_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if virtual_machine_id is not None:
- _path_params['virtual_machine_id'] = virtual_machine_id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -2926,13 +2899,12 @@ def _hibernate_virtual_machine_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/core/virtual-machines/{virtual_machine_id}/hibernate',
+ resource_path='/core/virtual-machines/{vm_id}/hibernate',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -2949,12 +2921,9 @@ def _hibernate_virtual_machine_serialize(
@validate_call
- def list_virtual_machines(
+ def get_instance_hibernate_restore(
self,
- page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
- page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
- search: Optional[StrictStr] = None,
- environment: Annotated[Optional[StrictStr], Field(description="Filter Environment ID or Name")] = None,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -2967,19 +2936,13 @@ def list_virtual_machines(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Instances:
- """List virtual machines
+ ) -> ResponseModel:
+ """Restore virtual machine 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.
+ 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 page: Page Number
- :type page: str
- :param page_size: Data Per Page
- :type page_size: str
- :param search:
- :type search: str
- :param environment: Filter Environment ID or Name
- :type environment: str
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3002,11 +2965,8 @@ def list_virtual_machines(
:return: Returns the result object.
""" # noqa: E501
- _param = self._list_virtual_machines_serialize(
- page=page,
- page_size=page_size,
- search=search,
- environment=environment,
+ _param = self._get_instance_hibernate_restore_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -3014,9 +2974,10 @@ def list_virtual_machines(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Instances",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -3031,12 +2992,9 @@ def list_virtual_machines(
@validate_call
- def list_virtual_machines_with_http_info(
+ def get_instance_hibernate_restore_with_http_info(
self,
- page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
- page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
- search: Optional[StrictStr] = None,
- environment: Annotated[Optional[StrictStr], Field(description="Filter Environment ID or Name")] = None,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -3049,19 +3007,13 @@ def list_virtual_machines_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Instances]:
- """List virtual machines
+ ) -> ApiResponse[ResponseModel]:
+ """Restore virtual machine 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.
+ 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 page: Page Number
- :type page: str
- :param page_size: Data Per Page
- :type page_size: str
- :param search:
- :type search: str
- :param environment: Filter Environment ID or Name
- :type environment: str
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3084,11 +3036,8 @@ def list_virtual_machines_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._list_virtual_machines_serialize(
- page=page,
- page_size=page_size,
- search=search,
- environment=environment,
+ _param = self._get_instance_hibernate_restore_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -3096,9 +3045,10 @@ def list_virtual_machines_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Instances",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -3113,12 +3063,9 @@ def list_virtual_machines_with_http_info(
@validate_call
- def list_virtual_machines_without_preload_content(
+ def get_instance_hibernate_restore_without_preload_content(
self,
- page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
- page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
- search: Optional[StrictStr] = None,
- environment: Annotated[Optional[StrictStr], Field(description="Filter Environment ID or Name")] = None,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -3132,18 +3079,12 @@ def list_virtual_machines_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """List virtual machines
+ """Restore virtual machine 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.
+ 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 page: Page Number
- :type page: str
- :param page_size: Data Per Page
- :type page_size: str
- :param search:
- :type search: str
- :param environment: Filter Environment ID or Name
- :type environment: str
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3166,11 +3107,8 @@ def list_virtual_machines_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._list_virtual_machines_serialize(
- page=page,
- page_size=page_size,
- search=search,
- environment=environment,
+ _param = self._get_instance_hibernate_restore_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -3178,9 +3116,10 @@ def list_virtual_machines_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Instances",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -3190,12 +3129,9 @@ def list_virtual_machines_without_preload_content(
return response_data.response
- def _list_virtual_machines_serialize(
+ def _get_instance_hibernate_restore_serialize(
self,
- page,
- page_size,
- search,
- environment,
+ vm_id,
_request_auth,
_content_type,
_headers,
@@ -3217,23 +3153,9 @@ def _list_virtual_machines_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
- if page is not None:
-
- _query_params.append(('page', page))
-
- if page_size is not None:
-
- _query_params.append(('pageSize', page_size))
-
- if search is not None:
-
- _query_params.append(('search', search))
-
- if environment is not None:
-
- _query_params.append(('environment', environment))
-
# process the header parameters
# process the form parameters
# process the body parameter
@@ -3250,13 +3172,12 @@ def _list_virtual_machines_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/core/virtual-machines',
+ resource_path='/core/virtual-machines/{vm_id}/hibernate-restore',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -3273,10 +3194,10 @@ def _list_virtual_machines_serialize(
@validate_call
- def resize_virtual_machine(
+ def get_instance_logs(
self,
- virtual_machine_id: StrictInt,
- payload: InstanceResizePayload,
+ vm_id: StrictInt,
+ request_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -3289,15 +3210,15 @@ def resize_virtual_machine(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ResponseModel:
- """Resize virtual machine
+ ) -> GetInstanceLogsResponse:
+ """Get virtual machine logs
- 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).
+ Retrieve console logs for a virtual machine
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
- :param payload: (required)
- :type payload: InstanceResizePayload
+ :param vm_id: (required)
+ :type vm_id: int
+ :param request_id: (required)
+ :type request_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3320,9 +3241,9 @@ def resize_virtual_machine(
:return: Returns the result object.
""" # noqa: E501
- _param = self._resize_virtual_machine_serialize(
- virtual_machine_id=virtual_machine_id,
- payload=payload,
+ _param = self._get_instance_logs_serialize(
+ vm_id=vm_id,
+ request_id=request_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -3330,7 +3251,7 @@ def resize_virtual_machine(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "GetInstanceLogsResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -3349,10 +3270,10 @@ def resize_virtual_machine(
@validate_call
- def resize_virtual_machine_with_http_info(
+ def get_instance_logs_with_http_info(
self,
- virtual_machine_id: StrictInt,
- payload: InstanceResizePayload,
+ vm_id: StrictInt,
+ request_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -3365,15 +3286,15 @@ def resize_virtual_machine_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ResponseModel]:
- """Resize virtual machine
+ ) -> ApiResponse[GetInstanceLogsResponse]:
+ """Get virtual machine logs
- 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).
+ Retrieve console logs for a virtual machine
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
- :param payload: (required)
- :type payload: InstanceResizePayload
+ :param vm_id: (required)
+ :type vm_id: int
+ :param request_id: (required)
+ :type request_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3396,9 +3317,9 @@ def resize_virtual_machine_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._resize_virtual_machine_serialize(
- virtual_machine_id=virtual_machine_id,
- payload=payload,
+ _param = self._get_instance_logs_serialize(
+ vm_id=vm_id,
+ request_id=request_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -3406,7 +3327,7 @@ def resize_virtual_machine_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "GetInstanceLogsResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -3425,10 +3346,10 @@ def resize_virtual_machine_with_http_info(
@validate_call
- def resize_virtual_machine_without_preload_content(
+ def get_instance_logs_without_preload_content(
self,
- virtual_machine_id: StrictInt,
- payload: InstanceResizePayload,
+ vm_id: StrictInt,
+ request_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -3442,14 +3363,14 @@ def resize_virtual_machine_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Resize virtual machine
+ """Get virtual machine logs
- 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).
+ Retrieve console logs for a virtual machine
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
- :param payload: (required)
- :type payload: InstanceResizePayload
+ :param vm_id: (required)
+ :type vm_id: int
+ :param request_id: (required)
+ :type request_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3472,9 +3393,9 @@ def resize_virtual_machine_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._resize_virtual_machine_serialize(
- virtual_machine_id=virtual_machine_id,
- payload=payload,
+ _param = self._get_instance_logs_serialize(
+ vm_id=vm_id,
+ request_id=request_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -3482,7 +3403,7 @@ def resize_virtual_machine_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "GetInstanceLogsResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -3496,10 +3417,10 @@ def resize_virtual_machine_without_preload_content(
return response_data.response
- def _resize_virtual_machine_serialize(
+ def _get_instance_logs_serialize(
self,
- virtual_machine_id,
- payload,
+ vm_id,
+ request_id,
_request_auth,
_content_type,
_headers,
@@ -3521,14 +3442,16 @@ def _resize_virtual_machine_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if virtual_machine_id is not None:
- _path_params['virtual_machine_id'] = virtual_machine_id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
- # process the header parameters
+ if request_id is not None:
+
+ _query_params.append(('request_id', request_id))
+
+ # process the header parameters
# process the form parameters
# process the body parameter
- if payload is not None:
- _body_params = payload
# set the HTTP header `Accept`
@@ -3539,29 +3462,15 @@ def _resize_virtual_machine_serialize(
]
)
- # set the HTTP header `Content-Type`
- if _content_type:
- _header_params['Content-Type'] = _content_type
- else:
- _default_content_type = (
- self.api_client.select_header_content_type(
- [
- 'application/json'
- ]
- )
- )
- if _default_content_type is not None:
- _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='POST',
- resource_path='/core/virtual-machines/{virtual_machine_id}/resize',
+ method='GET',
+ resource_path='/core/virtual-machines/{vm_id}/logs',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -3578,9 +3487,10 @@ def _resize_virtual_machine_serialize(
@validate_call
- def restore_virtual_machine_from_hibernation(
+ def get_instance_metrics(
self,
- virtual_machine_id: StrictInt,
+ vm_id: StrictInt,
+ duration: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -3593,13 +3503,15 @@ def restore_virtual_machine_from_hibernation(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ResponseModel:
- """Restore virtual machine from hibernation
+ ) -> MetricsFields:
+ """Retrieve virtual machine performance metrics
- 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.
+ 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...cloud/docs/virtual-machines/vm-performance-metrics-and-events-history#performance-metrics).
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
+ :param vm_id: (required)
+ :type vm_id: int
+ :param duration:
+ :type duration: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3622,8 +3534,9 @@ def restore_virtual_machine_from_hibernation(
:return: Returns the result object.
""" # noqa: E501
- _param = self._restore_virtual_machine_from_hibernation_serialize(
- virtual_machine_id=virtual_machine_id,
+ _param = self._get_instance_metrics_serialize(
+ vm_id=vm_id,
+ duration=duration,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -3631,10 +3544,11 @@ def restore_virtual_machine_from_hibernation(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "MetricsFields",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '406': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -3649,9 +3563,10 @@ def restore_virtual_machine_from_hibernation(
@validate_call
- def restore_virtual_machine_from_hibernation_with_http_info(
+ def get_instance_metrics_with_http_info(
self,
- virtual_machine_id: StrictInt,
+ vm_id: StrictInt,
+ duration: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -3664,13 +3579,15 @@ def restore_virtual_machine_from_hibernation_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ResponseModel]:
- """Restore virtual machine from hibernation
+ ) -> ApiResponse[MetricsFields]:
+ """Retrieve virtual machine performance metrics
- 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.
+ 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...cloud/docs/virtual-machines/vm-performance-metrics-and-events-history#performance-metrics).
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
+ :param vm_id: (required)
+ :type vm_id: int
+ :param duration:
+ :type duration: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3693,8 +3610,9 @@ def restore_virtual_machine_from_hibernation_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._restore_virtual_machine_from_hibernation_serialize(
- virtual_machine_id=virtual_machine_id,
+ _param = self._get_instance_metrics_serialize(
+ vm_id=vm_id,
+ duration=duration,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -3702,10 +3620,11 @@ def restore_virtual_machine_from_hibernation_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "MetricsFields",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '406': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -3720,9 +3639,10 @@ def restore_virtual_machine_from_hibernation_with_http_info(
@validate_call
- def restore_virtual_machine_from_hibernation_without_preload_content(
+ def get_instance_metrics_without_preload_content(
self,
- virtual_machine_id: StrictInt,
+ vm_id: StrictInt,
+ duration: Optional[StrictStr] = None,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -3736,12 +3656,14 @@ def restore_virtual_machine_from_hibernation_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Restore virtual machine from hibernation
+ """Retrieve virtual machine performance metrics
- 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.
+ 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...cloud/docs/virtual-machines/vm-performance-metrics-and-events-history#performance-metrics).
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
+ :param vm_id: (required)
+ :type vm_id: int
+ :param duration:
+ :type duration: str
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3764,8 +3686,9 @@ def restore_virtual_machine_from_hibernation_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._restore_virtual_machine_from_hibernation_serialize(
- virtual_machine_id=virtual_machine_id,
+ _param = self._get_instance_metrics_serialize(
+ vm_id=vm_id,
+ duration=duration,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -3773,10 +3696,11 @@ def restore_virtual_machine_from_hibernation_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '200': "MetricsFields",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '406': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -3786,9 +3710,10 @@ def restore_virtual_machine_from_hibernation_without_preload_content(
return response_data.response
- def _restore_virtual_machine_from_hibernation_serialize(
+ def _get_instance_metrics_serialize(
self,
- virtual_machine_id,
+ vm_id,
+ duration,
_request_auth,
_content_type,
_headers,
@@ -3810,9 +3735,13 @@ def _restore_virtual_machine_from_hibernation_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if virtual_machine_id is not None:
- _path_params['virtual_machine_id'] = virtual_machine_id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
+ if duration is not None:
+
+ _query_params.append(('duration', duration))
+
# process the header parameters
# process the form parameters
# process the body parameter
@@ -3829,13 +3758,12 @@ def _restore_virtual_machine_from_hibernation_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/core/virtual-machines/{virtual_machine_id}/hibernate-restore',
+ resource_path='/core/virtual-machines/{vm_id}/metrics',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -3852,9 +3780,9 @@ def _restore_virtual_machine_from_hibernation_serialize(
@validate_call
- def retrieve_virtual_machine_details(
+ def post_instance(
self,
- id: StrictInt,
+ payload: CreateInstancesPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -3867,13 +3795,13 @@ def retrieve_virtual_machine_details(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Instance:
- """Retrieve virtual machine details
+ ) -> CreateInstancesResponse:
+ """Create virtual machines
- 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.
+ 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...cloud/docs/virtual-machines/virtual-machine-features#create-a-virtual-machine-with-custom-features).
- :param id: (required)
- :type id: int
+ :param payload: (required)
+ :type payload: CreateInstancesPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3896,8 +3824,8 @@ def retrieve_virtual_machine_details(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_virtual_machine_details_serialize(
- id=id,
+ _param = self._post_instance_serialize(
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -3905,10 +3833,12 @@ def retrieve_virtual_machine_details(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Instance",
+ '200': "CreateInstancesResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '405': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -3923,9 +3853,9 @@ def retrieve_virtual_machine_details(
@validate_call
- def retrieve_virtual_machine_details_with_http_info(
+ def post_instance_with_http_info(
self,
- id: StrictInt,
+ payload: CreateInstancesPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -3938,13 +3868,13 @@ def retrieve_virtual_machine_details_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Instance]:
- """Retrieve virtual machine details
+ ) -> ApiResponse[CreateInstancesResponse]:
+ """Create virtual machines
- 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.
+ 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...cloud/docs/virtual-machines/virtual-machine-features#create-a-virtual-machine-with-custom-features).
- :param id: (required)
- :type id: int
+ :param payload: (required)
+ :type payload: CreateInstancesPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -3967,8 +3897,8 @@ def retrieve_virtual_machine_details_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_virtual_machine_details_serialize(
- id=id,
+ _param = self._post_instance_serialize(
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -3976,10 +3906,12 @@ def retrieve_virtual_machine_details_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Instance",
+ '200': "CreateInstancesResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '405': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -3994,9 +3926,9 @@ def retrieve_virtual_machine_details_with_http_info(
@validate_call
- def retrieve_virtual_machine_details_without_preload_content(
+ def post_instance_without_preload_content(
self,
- id: StrictInt,
+ payload: CreateInstancesPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -4010,12 +3942,12 @@ def retrieve_virtual_machine_details_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve virtual machine details
+ """Create virtual machines
- 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.
+ 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...cloud/docs/virtual-machines/virtual-machine-features#create-a-virtual-machine-with-custom-features).
- :param id: (required)
- :type id: int
+ :param payload: (required)
+ :type payload: CreateInstancesPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -4038,8 +3970,8 @@ def retrieve_virtual_machine_details_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_virtual_machine_details_serialize(
- id=id,
+ _param = self._post_instance_serialize(
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -4047,10 +3979,12 @@ def retrieve_virtual_machine_details_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Instance",
+ '200': "CreateInstancesResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '405': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -4060,9 +3994,9 @@ def retrieve_virtual_machine_details_without_preload_content(
return response_data.response
- def _retrieve_virtual_machine_details_serialize(
+ def _post_instance_serialize(
self,
- id,
+ payload,
_request_auth,
_content_type,
_headers,
@@ -4084,12 +4018,12 @@ def _retrieve_virtual_machine_details_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
# process the query parameters
# process the header parameters
# process the form parameters
# process the body parameter
+ if payload is not None:
+ _body_params = payload
# set the HTTP header `Accept`
@@ -4100,16 +4034,28 @@ def _retrieve_virtual_machine_details_serialize(
]
)
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='GET',
- resource_path='/core/virtual-machines/{id}',
+ method='POST',
+ resource_path='/core/virtual-machines',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -4126,10 +4072,10 @@ def _retrieve_virtual_machine_details_serialize(
@validate_call
- def retrieve_virtual_machine_performance_metrics(
+ def post_instance_attach_firewalls(
self,
- virtual_machine_id: StrictInt,
- duration: Optional[StrictStr] = None,
+ vm_id: StrictInt,
+ payload: AttachFirewallsToVMPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -4142,15 +4088,15 @@ def retrieve_virtual_machine_performance_metrics(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> MetricsFields:
- """Retrieve virtual machine performance metrics
+ ) -> ResponseModel:
+ """Attach firewalls to a 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).
+ Attach firewalls to a virtual machine by providing the virtual machine ID in the path and the IDs of the firewalls in the request body; any firewalls not included will be detached.
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
- :param duration:
- :type duration: str
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: AttachFirewallsToVMPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -4173,9 +4119,9 @@ def retrieve_virtual_machine_performance_metrics(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_virtual_machine_performance_metrics_serialize(
- virtual_machine_id=virtual_machine_id,
- duration=duration,
+ _param = self._post_instance_attach_firewalls_serialize(
+ vm_id=vm_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -4183,11 +4129,10 @@ def retrieve_virtual_machine_performance_metrics(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "MetricsFields",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
- '406': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -4202,10 +4147,10 @@ def retrieve_virtual_machine_performance_metrics(
@validate_call
- def retrieve_virtual_machine_performance_metrics_with_http_info(
+ def post_instance_attach_firewalls_with_http_info(
self,
- virtual_machine_id: StrictInt,
- duration: Optional[StrictStr] = None,
+ vm_id: StrictInt,
+ payload: AttachFirewallsToVMPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -4218,15 +4163,15 @@ def retrieve_virtual_machine_performance_metrics_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[MetricsFields]:
- """Retrieve virtual machine performance metrics
+ ) -> ApiResponse[ResponseModel]:
+ """Attach firewalls to a 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).
+ Attach firewalls to a virtual machine by providing the virtual machine ID in the path and the IDs of the firewalls in the request body; any firewalls not included will be detached.
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
- :param duration:
- :type duration: str
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: AttachFirewallsToVMPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -4249,9 +4194,9 @@ def retrieve_virtual_machine_performance_metrics_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_virtual_machine_performance_metrics_serialize(
- virtual_machine_id=virtual_machine_id,
- duration=duration,
+ _param = self._post_instance_attach_firewalls_serialize(
+ vm_id=vm_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -4259,11 +4204,10 @@ def retrieve_virtual_machine_performance_metrics_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "MetricsFields",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
- '406': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -4278,10 +4222,10 @@ def retrieve_virtual_machine_performance_metrics_with_http_info(
@validate_call
- def retrieve_virtual_machine_performance_metrics_without_preload_content(
+ def post_instance_attach_firewalls_without_preload_content(
self,
- virtual_machine_id: StrictInt,
- duration: Optional[StrictStr] = None,
+ vm_id: StrictInt,
+ payload: AttachFirewallsToVMPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -4295,14 +4239,14 @@ def retrieve_virtual_machine_performance_metrics_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve virtual machine performance metrics
+ """Attach firewalls to a 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).
+ Attach firewalls to a virtual machine by providing the virtual machine ID in the path and the IDs of the firewalls in the request body; any firewalls not included will be detached.
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
- :param duration:
- :type duration: str
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: AttachFirewallsToVMPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -4325,9 +4269,9 @@ def retrieve_virtual_machine_performance_metrics_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_virtual_machine_performance_metrics_serialize(
- virtual_machine_id=virtual_machine_id,
- duration=duration,
+ _param = self._post_instance_attach_firewalls_serialize(
+ vm_id=vm_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -4335,11 +4279,10 @@ def retrieve_virtual_machine_performance_metrics_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "MetricsFields",
+ '200': "ResponseModel",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
- '406': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -4349,10 +4292,10 @@ def retrieve_virtual_machine_performance_metrics_without_preload_content(
return response_data.response
- def _retrieve_virtual_machine_performance_metrics_serialize(
+ def _post_instance_attach_firewalls_serialize(
self,
- virtual_machine_id,
- duration,
+ vm_id,
+ payload,
_request_auth,
_content_type,
_headers,
@@ -4374,16 +4317,14 @@ def _retrieve_virtual_machine_performance_metrics_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if virtual_machine_id is not None:
- _path_params['virtual_machine_id'] = virtual_machine_id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
- if duration is not None:
-
- _query_params.append(('duration', duration))
-
# process the header parameters
# process the form parameters
# process the body parameter
+ if payload is not None:
+ _body_params = payload
# set the HTTP header `Accept`
@@ -4394,16 +4335,28 @@ def _retrieve_virtual_machine_performance_metrics_serialize(
]
)
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='GET',
- resource_path='/core/virtual-machines/{virtual_machine_id}/metrics',
+ method='POST',
+ resource_path='/core/virtual-machines/{vm_id}/attach-firewalls',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -4420,12 +4373,10 @@ def _retrieve_virtual_machine_performance_metrics_serialize(
@validate_call
- def retrieve_virtual_machines_associated_with_a_contract(
+ def post_instance_logs(
self,
- contract_id: StrictInt,
- page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
- page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search By Instance ID or Name")] = None,
+ vm_id: StrictInt,
+ payload: RequestInstanceLogsPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -4438,19 +4389,15 @@ def retrieve_virtual_machines_associated_with_a_contract(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ContractInstancesResponse:
- """Retrieve virtual machines associated with a contract
+ ) -> RequestInstanceLogsResponse:
+ """Request virtual machine logs
- 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.
+ Request console logs for a virtual machine
- :param contract_id: (required)
- :type contract_id: int
- :param page: Page Number
- :type page: str
- :param page_size: Data Per Page
- :type page_size: str
- :param search: Search By Instance ID or Name
- :type search: str
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: RequestInstanceLogsPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -4473,11 +4420,9 @@ def retrieve_virtual_machines_associated_with_a_contract(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_virtual_machines_associated_with_a_contract_serialize(
- contract_id=contract_id,
- page=page,
- page_size=page_size,
- search=search,
+ _param = self._post_instance_logs_serialize(
+ vm_id=vm_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -4485,9 +4430,11 @@ def retrieve_virtual_machines_associated_with_a_contract(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ContractInstancesResponse",
+ '200': "RequestInstanceLogsResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '405': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -4502,12 +4449,10 @@ def retrieve_virtual_machines_associated_with_a_contract(
@validate_call
- def retrieve_virtual_machines_associated_with_a_contract_with_http_info(
+ def post_instance_logs_with_http_info(
self,
- contract_id: StrictInt,
- page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
- page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search By Instance ID or Name")] = None,
+ vm_id: StrictInt,
+ payload: RequestInstanceLogsPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -4520,19 +4465,623 @@ def retrieve_virtual_machines_associated_with_a_contract_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ContractInstancesResponse]:
- """Retrieve virtual machines associated with a contract
+ ) -> ApiResponse[RequestInstanceLogsResponse]:
+ """Request virtual machine logs
- 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.
+ Request console logs for a virtual machine
- :param contract_id: (required)
- :type contract_id: int
- :param page: Page Number
- :type page: str
- :param page_size: Data Per Page
- :type page_size: str
- :param search: Search By Instance ID or Name
- :type search: str
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: RequestInstanceLogsPayload
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._post_instance_logs_serialize(
+ vm_id=vm_id,
+ payload=payload,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "RequestInstanceLogsResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '405': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def post_instance_logs_without_preload_content(
+ self,
+ vm_id: StrictInt,
+ payload: RequestInstanceLogsPayload,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Request virtual machine logs
+
+ Request console logs for a virtual machine
+
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: RequestInstanceLogsPayload
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._post_instance_logs_serialize(
+ vm_id=vm_id,
+ payload=payload,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "RequestInstanceLogsResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '405': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _post_instance_logs_serialize(
+ self,
+ vm_id,
+ payload,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if payload is not None:
+ _body_params = payload
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/core/virtual-machines/{vm_id}/logs',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def post_instance_resize(
+ self,
+ vm_id: StrictInt,
+ payload: InstanceResizePayload,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ResponseModel:
+ """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...cloud/docs/hardware/flavors#modify-the-flavor-of-an-existing-virtual-machine).
+
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: InstanceResizePayload
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._post_instance_resize_serialize(
+ vm_id=vm_id,
+ payload=payload,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '405': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def post_instance_resize_with_http_info(
+ self,
+ vm_id: StrictInt,
+ payload: InstanceResizePayload,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[ResponseModel]:
+ """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...cloud/docs/hardware/flavors#modify-the-flavor-of-an-existing-virtual-machine).
+
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: InstanceResizePayload
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._post_instance_resize_serialize(
+ vm_id=vm_id,
+ payload=payload,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '405': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def post_instance_resize_without_preload_content(
+ self,
+ vm_id: StrictInt,
+ payload: InstanceResizePayload,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """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...cloud/docs/hardware/flavors#modify-the-flavor-of-an-existing-virtual-machine).
+
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: InstanceResizePayload
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._post_instance_resize_serialize(
+ vm_id=vm_id,
+ payload=payload,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "ResponseModel",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '405': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _post_instance_resize_serialize(
+ self,
+ vm_id,
+ payload,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if payload is not None:
+ _body_params = payload
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='POST',
+ resource_path='/core/virtual-machines/{vm_id}/resize',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def post_security_rule(
+ self,
+ vm_id: StrictInt,
+ payload: CreateSecurityRulePayload,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> SecurityGroupRule:
+ """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...cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
+
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: CreateSecurityRulePayload
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._post_security_rule_serialize(
+ vm_id=vm_id,
+ payload=payload,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "SecurityGroupRule",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def post_security_rule_with_http_info(
+ self,
+ vm_id: StrictInt,
+ payload: CreateSecurityRulePayload,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[SecurityGroupRule]:
+ """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...cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
+
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: CreateSecurityRulePayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -4555,11 +5104,9 @@ def retrieve_virtual_machines_associated_with_a_contract_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_virtual_machines_associated_with_a_contract_serialize(
- contract_id=contract_id,
- page=page,
- page_size=page_size,
- search=search,
+ _param = self._post_security_rule_serialize(
+ vm_id=vm_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -4567,9 +5114,11 @@ def retrieve_virtual_machines_associated_with_a_contract_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ContractInstancesResponse",
+ '200': "SecurityGroupRule",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -4584,12 +5133,10 @@ def retrieve_virtual_machines_associated_with_a_contract_with_http_info(
@validate_call
- def retrieve_virtual_machines_associated_with_a_contract_without_preload_content(
+ def post_security_rule_without_preload_content(
self,
- contract_id: StrictInt,
- page: Annotated[Optional[StrictStr], Field(description="Page Number")] = None,
- page_size: Annotated[Optional[StrictStr], Field(description="Data Per Page")] = None,
- search: Annotated[Optional[StrictStr], Field(description="Search By Instance ID or Name")] = None,
+ vm_id: StrictInt,
+ payload: CreateSecurityRulePayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -4603,18 +5150,14 @@ def retrieve_virtual_machines_associated_with_a_contract_without_preload_content
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Retrieve virtual machines associated with a contract
+ """Add firewall rule to virtual machine
- 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.
+ 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...cloud/docs/api-reference/core-resources/virtual-machines/vm-firewall-rules/add-firewall-rule-to-vm).
- :param contract_id: (required)
- :type contract_id: int
- :param page: Page Number
- :type page: str
- :param page_size: Data Per Page
- :type page_size: str
- :param search: Search By Instance ID or Name
- :type search: str
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: CreateSecurityRulePayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -4637,11 +5180,9 @@ def retrieve_virtual_machines_associated_with_a_contract_without_preload_content
:return: Returns the result object.
""" # noqa: E501
- _param = self._retrieve_virtual_machines_associated_with_a_contract_serialize(
- contract_id=contract_id,
- page=page,
- page_size=page_size,
- search=search,
+ _param = self._post_security_rule_serialize(
+ vm_id=vm_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -4649,9 +5190,11 @@ def retrieve_virtual_machines_associated_with_a_contract_without_preload_content
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ContractInstancesResponse",
+ '200': "SecurityGroupRule",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -4661,12 +5204,10 @@ def retrieve_virtual_machines_associated_with_a_contract_without_preload_content
return response_data.response
- def _retrieve_virtual_machines_associated_with_a_contract_serialize(
+ def _post_security_rule_serialize(
self,
- contract_id,
- page,
- page_size,
- search,
+ vm_id,
+ payload,
_request_auth,
_content_type,
_headers,
@@ -4688,24 +5229,14 @@ def _retrieve_virtual_machines_associated_with_a_contract_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if contract_id is not None:
- _path_params['contract_id'] = contract_id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
- if page is not None:
-
- _query_params.append(('page', page))
-
- if page_size is not None:
-
- _query_params.append(('pageSize', page_size))
-
- if search is not None:
-
- _query_params.append(('search', search))
-
# process the header parameters
# process the form parameters
# process the body parameter
+ if payload is not None:
+ _body_params = payload
# set the HTTP header `Accept`
@@ -4716,16 +5247,28 @@ def _retrieve_virtual_machines_associated_with_a_contract_serialize(
]
)
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='GET',
- resource_path='/core/virtual-machines/contract/{contract_id}/virtual-machines',
+ method='POST',
+ resource_path='/core/virtual-machines/{vm_id}/sg-rules',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -4742,9 +5285,10 @@ def _retrieve_virtual_machines_associated_with_a_contract_serialize(
@validate_call
- def start_virtual_machine(
+ def post_snapshots(
self,
- id: StrictInt,
+ vm_id: StrictInt,
+ payload: CreateSnapshotPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -4757,13 +5301,15 @@ def start_virtual_machine(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ResponseModel:
- """Start virtual machine
+ ) -> CreateSnapshotResponse:
+ """Create snapshot from a 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.
+ Create snapshots of a virtual machine by providing the virtual machine ID in the path
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: CreateSnapshotPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -4786,8 +5332,9 @@ def start_virtual_machine(
:return: Returns the result object.
""" # noqa: E501
- _param = self._start_virtual_machine_serialize(
- id=id,
+ _param = self._post_snapshots_serialize(
+ vm_id=vm_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -4795,7 +5342,7 @@ def start_virtual_machine(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '201': "CreateSnapshotResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -4813,9 +5360,10 @@ def start_virtual_machine(
@validate_call
- def start_virtual_machine_with_http_info(
+ def post_snapshots_with_http_info(
self,
- id: StrictInt,
+ vm_id: StrictInt,
+ payload: CreateSnapshotPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -4828,13 +5376,15 @@ def start_virtual_machine_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[ResponseModel]:
- """Start virtual machine
+ ) -> ApiResponse[CreateSnapshotResponse]:
+ """Create snapshot from a 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.
+ Create snapshots of a virtual machine by providing the virtual machine ID in the path
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: CreateSnapshotPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -4857,8 +5407,9 @@ def start_virtual_machine_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._start_virtual_machine_serialize(
- id=id,
+ _param = self._post_snapshots_serialize(
+ vm_id=vm_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -4866,7 +5417,7 @@ def start_virtual_machine_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '201': "CreateSnapshotResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -4884,9 +5435,10 @@ def start_virtual_machine_with_http_info(
@validate_call
- def start_virtual_machine_without_preload_content(
+ def post_snapshots_without_preload_content(
self,
- id: StrictInt,
+ vm_id: StrictInt,
+ payload: CreateSnapshotPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -4900,12 +5452,14 @@ def start_virtual_machine_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Start virtual machine
+ """Create snapshot from a 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.
+ Create snapshots of a virtual machine by providing the virtual machine ID in the path
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: CreateSnapshotPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -4928,8 +5482,9 @@ def start_virtual_machine_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._start_virtual_machine_serialize(
- id=id,
+ _param = self._post_snapshots_serialize(
+ vm_id=vm_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -4937,7 +5492,7 @@ def start_virtual_machine_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "ResponseModel",
+ '201': "CreateSnapshotResponse",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
@@ -4950,9 +5505,10 @@ def start_virtual_machine_without_preload_content(
return response_data.response
- def _start_virtual_machine_serialize(
+ def _post_snapshots_serialize(
self,
- id,
+ vm_id,
+ payload,
_request_auth,
_content_type,
_headers,
@@ -4974,12 +5530,14 @@ def _start_virtual_machine_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
# process the body parameter
+ if payload is not None:
+ _body_params = payload
# set the HTTP header `Accept`
@@ -4990,16 +5548,28 @@ def _start_virtual_machine_serialize(
]
)
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='GET',
- resource_path='/core/virtual-machines/{id}/start',
+ method='POST',
+ resource_path='/core/virtual-machines/{vm_id}/snapshots',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -5016,9 +5586,10 @@ def _start_virtual_machine_serialize(
@validate_call
- def stop_virtual_machine(
+ def put_labels(
self,
- id: StrictInt,
+ vm_id: StrictInt,
+ payload: EditLabelOfAnExistingVMPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -5032,12 +5603,14 @@ def stop_virtual_machine(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ResponseModel:
- """Stop virtual machine
+ """Edit virtual machine labels
- Shuts down a virtual machine. Provide the virtual machine ID in the path to initiate the shutdown process for the specified virtual machine.
+ 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 id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: EditLabelOfAnExistingVMPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -5060,8 +5633,9 @@ def stop_virtual_machine(
:return: Returns the result object.
""" # noqa: E501
- _param = self._stop_virtual_machine_serialize(
- id=id,
+ _param = self._put_labels_serialize(
+ vm_id=vm_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -5073,6 +5647,7 @@ def stop_virtual_machine(
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -5087,9 +5662,10 @@ def stop_virtual_machine(
@validate_call
- def stop_virtual_machine_with_http_info(
+ def put_labels_with_http_info(
self,
- id: StrictInt,
+ vm_id: StrictInt,
+ payload: EditLabelOfAnExistingVMPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -5103,12 +5679,14 @@ def stop_virtual_machine_with_http_info(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> ApiResponse[ResponseModel]:
- """Stop virtual machine
+ """Edit virtual machine labels
- Shuts down a virtual machine. Provide the virtual machine ID in the path to initiate the shutdown process for the specified virtual machine.
+ 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 id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: EditLabelOfAnExistingVMPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -5131,8 +5709,9 @@ def stop_virtual_machine_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._stop_virtual_machine_serialize(
- id=id,
+ _param = self._put_labels_serialize(
+ vm_id=vm_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -5144,6 +5723,7 @@ def stop_virtual_machine_with_http_info(
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -5158,9 +5738,10 @@ def stop_virtual_machine_with_http_info(
@validate_call
- def stop_virtual_machine_without_preload_content(
+ def put_labels_without_preload_content(
self,
- id: StrictInt,
+ vm_id: StrictInt,
+ payload: EditLabelOfAnExistingVMPayload,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -5174,12 +5755,14 @@ def stop_virtual_machine_without_preload_content(
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
) -> RESTResponseType:
- """Stop virtual machine
+ """Edit virtual machine labels
- Shuts down a virtual machine. Provide the virtual machine ID in the path to initiate the shutdown process for the specified virtual machine.
+ 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 id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
+ :param payload: (required)
+ :type payload: EditLabelOfAnExistingVMPayload
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -5202,8 +5785,9 @@ def stop_virtual_machine_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._stop_virtual_machine_serialize(
- id=id,
+ _param = self._put_labels_serialize(
+ vm_id=vm_id,
+ payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -5215,6 +5799,7 @@ def stop_virtual_machine_without_preload_content(
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
'500': None,
}
response_data = self.api_client.call_api(
@@ -5224,9 +5809,10 @@ def stop_virtual_machine_without_preload_content(
return response_data.response
- def _stop_virtual_machine_serialize(
+ def _put_labels_serialize(
self,
- id,
+ vm_id,
+ payload,
_request_auth,
_content_type,
_headers,
@@ -5248,12 +5834,14 @@ def _stop_virtual_machine_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
# process the body parameter
+ if payload is not None:
+ _body_params = payload
# set the HTTP header `Accept`
@@ -5264,16 +5852,28 @@ def _stop_virtual_machine_serialize(
]
)
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
- method='GET',
- resource_path='/core/virtual-machines/{id}/stop',
+ method='PUT',
+ resource_path='/core/virtual-machines/{vm_id}/label',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
diff --git a/hyperstack/api/virtual_machine_events_api.py b/hyperstack/api/virtual_machine_events_api.py
index 46fd923..520de3a 100644
--- a/hyperstack/api/virtual_machine_events_api.py
+++ b/hyperstack/api/virtual_machine_events_api.py
@@ -16,7 +16,7 @@
from typing import Any, Dict, List, Optional, Tuple, Union
from typing_extensions import Annotated
-from pydantic import StrictStr
+from pydantic import StrictInt
from ..models.instance_events import InstanceEvents
from ..api_client import ApiClient, RequestSerialized
@@ -40,7 +40,7 @@ def __init__(self, api_client=None) -> None:
@validate_call
def list_virtual_machine_events(
self,
- virtual_machine_id: StrictStr,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -56,10 +56,10 @@ def list_virtual_machine_events(
) -> InstanceEvents:
"""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...cloud/docs/virtual-machines/vm-performance-metrics-and-events-history#events-history).
- :param virtual_machine_id: (required)
- :type virtual_machine_id: str
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -83,7 +83,7 @@ def list_virtual_machine_events(
""" # noqa: E501
_param = self._list_virtual_machine_events_serialize(
- virtual_machine_id=virtual_machine_id,
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -111,7 +111,7 @@ def list_virtual_machine_events(
@validate_call
def list_virtual_machine_events_with_http_info(
self,
- virtual_machine_id: StrictStr,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -127,10 +127,10 @@ def list_virtual_machine_events_with_http_info(
) -> ApiResponse[InstanceEvents]:
"""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...cloud/docs/virtual-machines/vm-performance-metrics-and-events-history#events-history).
- :param virtual_machine_id: (required)
- :type virtual_machine_id: str
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -154,7 +154,7 @@ def list_virtual_machine_events_with_http_info(
""" # noqa: E501
_param = self._list_virtual_machine_events_serialize(
- virtual_machine_id=virtual_machine_id,
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -182,7 +182,7 @@ def list_virtual_machine_events_with_http_info(
@validate_call
def list_virtual_machine_events_without_preload_content(
self,
- virtual_machine_id: StrictStr,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -198,10 +198,10 @@ def list_virtual_machine_events_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/virtual-machines/vm-performance-metrics-and-events-history#events-history).
- :param virtual_machine_id: (required)
- :type virtual_machine_id: str
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -225,7 +225,7 @@ def list_virtual_machine_events_without_preload_content(
""" # noqa: E501
_param = self._list_virtual_machine_events_serialize(
- virtual_machine_id=virtual_machine_id,
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -248,7 +248,7 @@ def list_virtual_machine_events_without_preload_content(
def _list_virtual_machine_events_serialize(
self,
- virtual_machine_id,
+ vm_id,
_request_auth,
_content_type,
_headers,
@@ -270,8 +270,8 @@ def _list_virtual_machine_events_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if virtual_machine_id is not None:
- _path_params['virtual_machine_id'] = virtual_machine_id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -289,13 +289,12 @@ def _list_virtual_machine_events_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/core/virtual-machines/{virtual_machine_id}/events',
+ resource_path='/core/virtual-machines/{vm_id}/events',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
diff --git a/hyperstack/api/vnc_url_api.py b/hyperstack/api/vnc_url_api.py
index d57e56d..2916004 100644
--- a/hyperstack/api/vnc_url_api.py
+++ b/hyperstack/api/vnc_url_api.py
@@ -39,9 +39,9 @@ def __init__(self, api_client=None) -> None:
@validate_call
- def get_vnc_console_link(
+ def get_vnc_url(
self,
- virtual_machine_id: StrictInt,
+ vm_id: StrictInt,
job_id: StrictInt,
_request_timeout: Union[
None,
@@ -58,9 +58,10 @@ def get_vnc_console_link(
) -> VNCURL:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-vnc-url).
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param job_id: (required)
:type job_id: int
:param _request_timeout: timeout setting for this request. If one
@@ -85,8 +86,8 @@ def get_vnc_console_link(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_vnc_console_link_serialize(
- virtual_machine_id=virtual_machine_id,
+ _param = self._get_vnc_url_serialize(
+ vm_id=vm_id,
job_id=job_id,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -113,9 +114,9 @@ def get_vnc_console_link(
@validate_call
- def get_vnc_console_link_with_http_info(
+ def get_vnc_url_with_http_info(
self,
- virtual_machine_id: StrictInt,
+ vm_id: StrictInt,
job_id: StrictInt,
_request_timeout: Union[
None,
@@ -132,9 +133,10 @@ def get_vnc_console_link_with_http_info(
) -> ApiResponse[VNCURL]:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-vnc-url).
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param job_id: (required)
:type job_id: int
:param _request_timeout: timeout setting for this request. If one
@@ -159,8 +161,8 @@ def get_vnc_console_link_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_vnc_console_link_serialize(
- virtual_machine_id=virtual_machine_id,
+ _param = self._get_vnc_url_serialize(
+ vm_id=vm_id,
job_id=job_id,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -187,9 +189,9 @@ def get_vnc_console_link_with_http_info(
@validate_call
- def get_vnc_console_link_without_preload_content(
+ def get_vnc_url_without_preload_content(
self,
- virtual_machine_id: StrictInt,
+ vm_id: StrictInt,
job_id: StrictInt,
_request_timeout: Union[
None,
@@ -206,9 +208,10 @@ def get_vnc_console_link_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-vnc-url).
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param job_id: (required)
:type job_id: int
:param _request_timeout: timeout setting for this request. If one
@@ -233,8 +236,8 @@ def get_vnc_console_link_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._get_vnc_console_link_serialize(
- virtual_machine_id=virtual_machine_id,
+ _param = self._get_vnc_url_serialize(
+ vm_id=vm_id,
job_id=job_id,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -256,9 +259,9 @@ def get_vnc_console_link_without_preload_content(
return response_data.response
- def _get_vnc_console_link_serialize(
+ def _get_vnc_url_serialize(
self,
- virtual_machine_id,
+ vm_id,
job_id,
_request_auth,
_content_type,
@@ -281,8 +284,8 @@ def _get_vnc_console_link_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if virtual_machine_id is not None:
- _path_params['virtual_machine_id'] = virtual_machine_id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
if job_id is not None:
_path_params['job_id'] = job_id
# process the query parameters
@@ -302,13 +305,12 @@ def _get_vnc_console_link_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/core/virtual-machines/{virtual_machine_id}/console/{job_id}',
+ resource_path='/core/virtual-machines/{vm_id}/console/{job_id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -325,9 +327,9 @@ def _get_vnc_console_link_serialize(
@validate_call
- def request_instance_console(
+ def get_vnc_url2(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -343,9 +345,10 @@ def request_instance_console(
) -> RequestConsole:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-console-path).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -368,8 +371,8 @@ def request_instance_console(
:return: Returns the result object.
""" # noqa: E501
- _param = self._request_instance_console_serialize(
- id=id,
+ _param = self._get_vnc_url2_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -395,9 +398,9 @@ def request_instance_console(
@validate_call
- def request_instance_console_with_http_info(
+ def get_vnc_url2_with_http_info(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -413,9 +416,10 @@ def request_instance_console_with_http_info(
) -> ApiResponse[RequestConsole]:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-console-path).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -438,8 +442,8 @@ def request_instance_console_with_http_info(
:return: Returns the result object.
""" # noqa: E501
- _param = self._request_instance_console_serialize(
- id=id,
+ _param = self._get_vnc_url2_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -465,9 +469,9 @@ def request_instance_console_with_http_info(
@validate_call
- def request_instance_console_without_preload_content(
+ def get_vnc_url2_without_preload_content(
self,
- id: StrictInt,
+ vm_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -483,9 +487,10 @@ def request_instance_console_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/core-resources/virtual-machines/vnc-console/retrieve-console-path).
- :param id: (required)
- :type id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -508,8 +513,8 @@ def request_instance_console_without_preload_content(
:return: Returns the result object.
""" # noqa: E501
- _param = self._request_instance_console_serialize(
- id=id,
+ _param = self._get_vnc_url2_serialize(
+ vm_id=vm_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -530,9 +535,9 @@ def request_instance_console_without_preload_content(
return response_data.response
- def _request_instance_console_serialize(
+ def _get_vnc_url2_serialize(
self,
- id,
+ vm_id,
_request_auth,
_content_type,
_headers,
@@ -554,8 +559,8 @@ def _request_instance_console_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -573,13 +578,12 @@ def _request_instance_console_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/core/virtual-machines/{id}/request-console',
+ resource_path='/core/virtual-machines/{vm_id}/request-console',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
diff --git a/hyperstack/api/volume_api.py b/hyperstack/api/volume_api.py
index decd057..a2449ed 100644
--- a/hyperstack/api/volume_api.py
+++ b/hyperstack/api/volume_api.py
@@ -22,6 +22,8 @@
from ..models.create_volume_payload import CreateVolumePayload
from ..models.name_available_model import NameAvailableModel
from ..models.response_model import ResponseModel
+from ..models.update_volume_payload import UpdateVolumePayload
+from ..models.update_volume_response import UpdateVolumeResponse
from ..models.volume import Volume
from ..models.volume_types import VolumeTypes
from ..models.volumes import Volumes
@@ -63,7 +65,7 @@ def create_volume(
) -> Volume:
"""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 payload: (required)
:type payload: CreateVolumePayload
@@ -136,7 +138,7 @@ def create_volume_with_http_info(
) -> ApiResponse[Volume]:
"""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 payload: (required)
:type payload: CreateVolumePayload
@@ -209,7 +211,7 @@ def create_volume_without_preload_content(
) -> RESTResponseType:
"""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 payload: (required)
:type payload: CreateVolumePayload
@@ -315,8 +317,7 @@ def _create_volume_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -340,7 +341,7 @@ def _create_volume_serialize(
@validate_call
def delete_volume(
self,
- id: StrictInt,
+ volume_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -358,8 +359,8 @@ def delete_volume(
Deletes a volume permanently. Provide the volume ID in the path to specify the volume to be deleted.
- :param id: (required)
- :type id: int
+ :param volume_id: (required)
+ :type volume_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -383,7 +384,7 @@ def delete_volume(
""" # noqa: E501
_param = self._delete_volume_serialize(
- id=id,
+ volume_id=volume_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -411,7 +412,7 @@ def delete_volume(
@validate_call
def delete_volume_with_http_info(
self,
- id: StrictInt,
+ volume_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -429,8 +430,8 @@ def delete_volume_with_http_info(
Deletes a volume permanently. Provide the volume ID in the path to specify the volume to be deleted.
- :param id: (required)
- :type id: int
+ :param volume_id: (required)
+ :type volume_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -454,7 +455,7 @@ def delete_volume_with_http_info(
""" # noqa: E501
_param = self._delete_volume_serialize(
- id=id,
+ volume_id=volume_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -482,7 +483,7 @@ def delete_volume_with_http_info(
@validate_call
def delete_volume_without_preload_content(
self,
- id: StrictInt,
+ volume_id: StrictInt,
_request_timeout: Union[
None,
Annotated[StrictFloat, Field(gt=0)],
@@ -500,8 +501,8 @@ def delete_volume_without_preload_content(
Deletes a volume permanently. Provide the volume ID in the path to specify the volume to be deleted.
- :param id: (required)
- :type id: int
+ :param volume_id: (required)
+ :type volume_id: int
:param _request_timeout: timeout setting for this request. If one
number provided, it will be total request
timeout. It can also be a pair (tuple) of
@@ -525,7 +526,7 @@ def delete_volume_without_preload_content(
""" # noqa: E501
_param = self._delete_volume_serialize(
- id=id,
+ volume_id=volume_id,
_request_auth=_request_auth,
_content_type=_content_type,
_headers=_headers,
@@ -548,7 +549,7 @@ def delete_volume_without_preload_content(
def _delete_volume_serialize(
self,
- id,
+ volume_id,
_request_auth,
_content_type,
_headers,
@@ -570,8 +571,8 @@ def _delete_volume_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if id is not None:
- _path_params['id'] = id
+ if volume_id is not None:
+ _path_params['volume_id'] = volume_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -589,13 +590,12 @@ def _delete_volume_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='DELETE',
- resource_path='/core/volumes/{id}',
+ resource_path='/core/volumes/{volume_id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -627,7 +627,7 @@ def fetch_volume_details(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> Volumes:
+ ) -> Volume:
"""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.
@@ -665,7 +665,7 @@ def fetch_volume_details(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Volumes",
+ '200': "Volume",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -699,7 +699,7 @@ def fetch_volume_details_with_http_info(
_content_type: Optional[StrictStr] = None,
_headers: Optional[Dict[StrictStr, Any]] = None,
_host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
- ) -> ApiResponse[Volumes]:
+ ) -> ApiResponse[Volume]:
"""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.
@@ -737,7 +737,7 @@ def fetch_volume_details_with_http_info(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Volumes",
+ '200': "Volume",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -809,7 +809,7 @@ def fetch_volume_details_without_preload_content(
)
_response_types_map: Dict[str, Optional[str]] = {
- '200': "Volumes",
+ '200': "Volume",
'400': "ErrorResponseModel",
'401': "ErrorResponseModel",
'403': "ErrorResponseModel",
@@ -866,13 +866,12 @@ def _fetch_volume_details_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='GET',
- resource_path='/core/volume/{volume_id}',
+ resource_path='/core/volumes/{volume_id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -1140,8 +1139,7 @@ def _fetch_volume_name_availability_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -1396,8 +1394,7 @@ def _list_volume_types_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -1440,7 +1437,7 @@ def list_volumes(
) -> Volumes:
"""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 page: Page Number
:type page: str
@@ -1522,7 +1519,7 @@ def list_volumes_with_http_info(
) -> ApiResponse[Volumes]:
"""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 page: Page Number
:type page: str
@@ -1604,7 +1601,7 @@ def list_volumes_without_preload_content(
) -> RESTResponseType:
"""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 page: Page Number
:type page: str
@@ -1720,8 +1717,7 @@ def _list_volumes_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
@@ -1740,3 +1736,307 @@ def _list_volumes_serialize(
)
+
+
+ @validate_call
+ def update_volume(
+ self,
+ volume_id: StrictInt,
+ payload: UpdateVolumePayload,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> UpdateVolumeResponse:
+ """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 volume_id: (required)
+ :type volume_id: int
+ :param payload: (required)
+ :type payload: UpdateVolumePayload
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_volume_serialize(
+ volume_id=volume_id,
+ payload=payload,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateVolumeResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_volume_with_http_info(
+ self,
+ volume_id: StrictInt,
+ payload: UpdateVolumePayload,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[UpdateVolumeResponse]:
+ """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 volume_id: (required)
+ :type volume_id: int
+ :param payload: (required)
+ :type payload: UpdateVolumePayload
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_volume_serialize(
+ volume_id=volume_id,
+ payload=payload,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateVolumeResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_volume_without_preload_content(
+ self,
+ volume_id: StrictInt,
+ payload: UpdateVolumePayload,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """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 volume_id: (required)
+ :type volume_id: int
+ :param payload: (required)
+ :type payload: UpdateVolumePayload
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_volume_serialize(
+ volume_id=volume_id,
+ payload=payload,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "UpdateVolumeResponse",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '409': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_volume_serialize(
+ self,
+ volume_id,
+ payload,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if volume_id is not None:
+ _path_params['volume_id'] = volume_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if payload is not None:
+ _body_params = payload
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/core/volumes/{volume_id}',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
diff --git a/hyperstack/api/volume_attachment_api.py b/hyperstack/api/volume_attachment_api.py
index 98545fc..e7ebf3f 100644
--- a/hyperstack/api/volume_attachment_api.py
+++ b/hyperstack/api/volume_attachment_api.py
@@ -21,6 +21,7 @@
from ..models.attach_volumes_payload import AttachVolumesPayload
from ..models.detach_volumes import DetachVolumes
from ..models.detach_volumes_payload import DetachVolumesPayload
+from ..models.update_volume_attachment_payload import UpdateVolumeAttachmentPayload
from ..api_client import ApiClient, RequestSerialized
from ..api_response import ApiResponse
@@ -43,7 +44,7 @@ def __init__(self, api_client=None) -> None:
@validate_call
def attach_volumes_to_virtual_machine(
self,
- virtual_machine_id: StrictInt,
+ vm_id: StrictInt,
payload: AttachVolumesPayload,
_request_timeout: Union[
None,
@@ -60,10 +61,10 @@ def attach_volumes_to_virtual_machine(
) -> AttachVolumes:
"""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...cloud/docs/api-reference/core-resources/volumes/volume-attachment/attach-volumes/).
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param payload: (required)
:type payload: AttachVolumesPayload
:param _request_timeout: timeout setting for this request. If one
@@ -89,7 +90,7 @@ def attach_volumes_to_virtual_machine(
""" # noqa: E501
_param = self._attach_volumes_to_virtual_machine_serialize(
- virtual_machine_id=virtual_machine_id,
+ vm_id=vm_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -119,7 +120,7 @@ def attach_volumes_to_virtual_machine(
@validate_call
def attach_volumes_to_virtual_machine_with_http_info(
self,
- virtual_machine_id: StrictInt,
+ vm_id: StrictInt,
payload: AttachVolumesPayload,
_request_timeout: Union[
None,
@@ -136,10 +137,10 @@ def attach_volumes_to_virtual_machine_with_http_info(
) -> ApiResponse[AttachVolumes]:
"""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...cloud/docs/api-reference/core-resources/volumes/volume-attachment/attach-volumes/).
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param payload: (required)
:type payload: AttachVolumesPayload
:param _request_timeout: timeout setting for this request. If one
@@ -165,7 +166,7 @@ def attach_volumes_to_virtual_machine_with_http_info(
""" # noqa: E501
_param = self._attach_volumes_to_virtual_machine_serialize(
- virtual_machine_id=virtual_machine_id,
+ vm_id=vm_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -195,7 +196,7 @@ def attach_volumes_to_virtual_machine_with_http_info(
@validate_call
def attach_volumes_to_virtual_machine_without_preload_content(
self,
- virtual_machine_id: StrictInt,
+ vm_id: StrictInt,
payload: AttachVolumesPayload,
_request_timeout: Union[
None,
@@ -212,10 +213,10 @@ def attach_volumes_to_virtual_machine_without_preload_content(
) -> RESTResponseType:
"""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...cloud/docs/api-reference/core-resources/volumes/volume-attachment/attach-volumes/).
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param payload: (required)
:type payload: AttachVolumesPayload
:param _request_timeout: timeout setting for this request. If one
@@ -241,7 +242,7 @@ def attach_volumes_to_virtual_machine_without_preload_content(
""" # noqa: E501
_param = self._attach_volumes_to_virtual_machine_serialize(
- virtual_machine_id=virtual_machine_id,
+ vm_id=vm_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -266,7 +267,7 @@ def attach_volumes_to_virtual_machine_without_preload_content(
def _attach_volumes_to_virtual_machine_serialize(
self,
- virtual_machine_id,
+ vm_id,
payload,
_request_auth,
_content_type,
@@ -289,8 +290,8 @@ def _attach_volumes_to_virtual_machine_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if virtual_machine_id is not None:
- _path_params['virtual_machine_id'] = virtual_machine_id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -323,13 +324,12 @@ def _attach_volumes_to_virtual_machine_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='POST',
- resource_path='/core/virtual-machines/{virtual_machine_id}/attach-volumes',
+ resource_path='/core/virtual-machines/{vm_id}/attach-volumes',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
@@ -348,7 +348,7 @@ def _attach_volumes_to_virtual_machine_serialize(
@validate_call
def detach_volumes_from_virtual_machine(
self,
- virtual_machine_id: StrictInt,
+ vm_id: StrictInt,
payload: DetachVolumesPayload,
_request_timeout: Union[
None,
@@ -365,10 +365,10 @@ def detach_volumes_from_virtual_machine(
) -> DetachVolumes:
"""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.
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param payload: (required)
:type payload: DetachVolumesPayload
:param _request_timeout: timeout setting for this request. If one
@@ -394,7 +394,7 @@ def detach_volumes_from_virtual_machine(
""" # noqa: E501
_param = self._detach_volumes_from_virtual_machine_serialize(
- virtual_machine_id=virtual_machine_id,
+ vm_id=vm_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -424,7 +424,7 @@ def detach_volumes_from_virtual_machine(
@validate_call
def detach_volumes_from_virtual_machine_with_http_info(
self,
- virtual_machine_id: StrictInt,
+ vm_id: StrictInt,
payload: DetachVolumesPayload,
_request_timeout: Union[
None,
@@ -441,10 +441,10 @@ def detach_volumes_from_virtual_machine_with_http_info(
) -> ApiResponse[DetachVolumes]:
"""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.
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param payload: (required)
:type payload: DetachVolumesPayload
:param _request_timeout: timeout setting for this request. If one
@@ -470,7 +470,7 @@ def detach_volumes_from_virtual_machine_with_http_info(
""" # noqa: E501
_param = self._detach_volumes_from_virtual_machine_serialize(
- virtual_machine_id=virtual_machine_id,
+ vm_id=vm_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -500,7 +500,7 @@ def detach_volumes_from_virtual_machine_with_http_info(
@validate_call
def detach_volumes_from_virtual_machine_without_preload_content(
self,
- virtual_machine_id: StrictInt,
+ vm_id: StrictInt,
payload: DetachVolumesPayload,
_request_timeout: Union[
None,
@@ -517,10 +517,10 @@ def detach_volumes_from_virtual_machine_without_preload_content(
) -> RESTResponseType:
"""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.
- :param virtual_machine_id: (required)
- :type virtual_machine_id: int
+ :param vm_id: (required)
+ :type vm_id: int
:param payload: (required)
:type payload: DetachVolumesPayload
:param _request_timeout: timeout setting for this request. If one
@@ -546,7 +546,7 @@ def detach_volumes_from_virtual_machine_without_preload_content(
""" # noqa: E501
_param = self._detach_volumes_from_virtual_machine_serialize(
- virtual_machine_id=virtual_machine_id,
+ vm_id=vm_id,
payload=payload,
_request_auth=_request_auth,
_content_type=_content_type,
@@ -571,7 +571,7 @@ def detach_volumes_from_virtual_machine_without_preload_content(
def _detach_volumes_from_virtual_machine_serialize(
self,
- virtual_machine_id,
+ vm_id,
payload,
_request_auth,
_content_type,
@@ -594,8 +594,8 @@ def _detach_volumes_from_virtual_machine_serialize(
_body_params: Optional[bytes] = None
# process the path parameters
- if virtual_machine_id is not None:
- _path_params['virtual_machine_id'] = virtual_machine_id
+ if vm_id is not None:
+ _path_params['vm_id'] = vm_id
# process the query parameters
# process the header parameters
# process the form parameters
@@ -628,13 +628,313 @@ def _detach_volumes_from_virtual_machine_serialize(
# authentication setting
_auth_settings: List[str] = [
- 'apiKey',
- 'accessToken'
+ 'apiKey'
]
return self.api_client.param_serialize(
method='POST',
- resource_path='/core/virtual-machines/{virtual_machine_id}/detach-volumes',
+ resource_path='/core/virtual-machines/{vm_id}/detach-volumes',
+ path_params=_path_params,
+ query_params=_query_params,
+ header_params=_header_params,
+ body=_body_params,
+ post_params=_form_params,
+ files=_files,
+ auth_settings=_auth_settings,
+ collection_formats=_collection_formats,
+ _host=_host,
+ _request_auth=_request_auth
+ )
+
+
+
+
+ @validate_call
+ def update_a_volume_attachment(
+ self,
+ volume_attachment_id: StrictInt,
+ payload: UpdateVolumeAttachmentPayload,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> AttachVolumes:
+ """Update a volume attachment
+
+
+ :param volume_attachment_id: (required)
+ :type volume_attachment_id: int
+ :param payload: (required)
+ :type payload: UpdateVolumeAttachmentPayload
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_a_volume_attachment_serialize(
+ volume_attachment_id=volume_attachment_id,
+ payload=payload,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AttachVolumes",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '405': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ ).data
+
+
+ @validate_call
+ def update_a_volume_attachment_with_http_info(
+ self,
+ volume_attachment_id: StrictInt,
+ payload: UpdateVolumeAttachmentPayload,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> ApiResponse[AttachVolumes]:
+ """Update a volume attachment
+
+
+ :param volume_attachment_id: (required)
+ :type volume_attachment_id: int
+ :param payload: (required)
+ :type payload: UpdateVolumeAttachmentPayload
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_a_volume_attachment_serialize(
+ volume_attachment_id=volume_attachment_id,
+ payload=payload,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AttachVolumes",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '405': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ response_data.read()
+ return self.api_client.response_deserialize(
+ response_data=response_data,
+ response_types_map=_response_types_map,
+ )
+
+
+ @validate_call
+ def update_a_volume_attachment_without_preload_content(
+ self,
+ volume_attachment_id: StrictInt,
+ payload: UpdateVolumeAttachmentPayload,
+ _request_timeout: Union[
+ None,
+ Annotated[StrictFloat, Field(gt=0)],
+ Tuple[
+ Annotated[StrictFloat, Field(gt=0)],
+ Annotated[StrictFloat, Field(gt=0)]
+ ]
+ ] = None,
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
+ _content_type: Optional[StrictStr] = None,
+ _headers: Optional[Dict[StrictStr, Any]] = None,
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
+ ) -> RESTResponseType:
+ """Update a volume attachment
+
+
+ :param volume_attachment_id: (required)
+ :type volume_attachment_id: int
+ :param payload: (required)
+ :type payload: UpdateVolumeAttachmentPayload
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :type _request_timeout: int, tuple(int, int), optional
+ :param _request_auth: set to override the auth_settings for an a single
+ request; this effectively ignores the
+ authentication in the spec for a single request.
+ :type _request_auth: dict, optional
+ :param _content_type: force content-type for the request.
+ :type _content_type: str, Optional
+ :param _headers: set to override the headers for a single
+ request; this effectively ignores the headers
+ in the spec for a single request.
+ :type _headers: dict, optional
+ :param _host_index: set to override the host_index for a single
+ request; this effectively ignores the host_index
+ in the spec for a single request.
+ :type _host_index: int, optional
+ :return: Returns the result object.
+ """ # noqa: E501
+
+ _param = self._update_a_volume_attachment_serialize(
+ volume_attachment_id=volume_attachment_id,
+ payload=payload,
+ _request_auth=_request_auth,
+ _content_type=_content_type,
+ _headers=_headers,
+ _host_index=_host_index
+ )
+
+ _response_types_map: Dict[str, Optional[str]] = {
+ '200': "AttachVolumes",
+ '400': "ErrorResponseModel",
+ '401': "ErrorResponseModel",
+ '404': "ErrorResponseModel",
+ '405': "ErrorResponseModel",
+ '500': None,
+ }
+ response_data = self.api_client.call_api(
+ *_param,
+ _request_timeout=_request_timeout
+ )
+ return response_data.response
+
+
+ def _update_a_volume_attachment_serialize(
+ self,
+ volume_attachment_id,
+ payload,
+ _request_auth,
+ _content_type,
+ _headers,
+ _host_index,
+ ) -> RequestSerialized:
+
+ _host = None
+
+ _collection_formats: Dict[str, str] = {
+ }
+
+ _path_params: Dict[str, str] = {}
+ _query_params: List[Tuple[str, str]] = []
+ _header_params: Dict[str, Optional[str]] = _headers or {}
+ _form_params: List[Tuple[str, str]] = []
+ _files: Dict[
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
+ ] = {}
+ _body_params: Optional[bytes] = None
+
+ # process the path parameters
+ if volume_attachment_id is not None:
+ _path_params['volume_attachment_id'] = volume_attachment_id
+ # process the query parameters
+ # process the header parameters
+ # process the form parameters
+ # process the body parameter
+ if payload is not None:
+ _body_params = payload
+
+
+ # set the HTTP header `Accept`
+ if 'Accept' not in _header_params:
+ _header_params['Accept'] = self.api_client.select_header_accept(
+ [
+ 'application/json'
+ ]
+ )
+
+ # set the HTTP header `Content-Type`
+ if _content_type:
+ _header_params['Content-Type'] = _content_type
+ else:
+ _default_content_type = (
+ self.api_client.select_header_content_type(
+ [
+ 'application/json'
+ ]
+ )
+ )
+ if _default_content_type is not None:
+ _header_params['Content-Type'] = _default_content_type
+
+ # authentication setting
+ _auth_settings: List[str] = [
+ 'apiKey'
+ ]
+
+ return self.api_client.param_serialize(
+ method='PATCH',
+ resource_path='/core/volume-attachments/{volume_attachment_id}',
path_params=_path_params,
query_params=_query_params,
header_params=_header_params,
diff --git a/hyperstack/api_client.py b/hyperstack/api_client.py
index aad59c9..ff09227 100644
--- a/hyperstack/api_client.py
+++ b/hyperstack/api_client.py
@@ -90,7 +90,7 @@ def __init__(
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
- self.user_agent = 'OpenAPI-Generator/v1.25.0-alpha/python'
+ self.user_agent = 'OpenAPI-Generator/v1.41.0-alpha/python'
self.client_side_validation = configuration.client_side_validation
def __enter__(self):
diff --git a/hyperstack/api_client.py.bak b/hyperstack/api_client.py.bak
index 82072c2..61fb2eb 100644
--- a/hyperstack/api_client.py.bak
+++ b/hyperstack/api_client.py.bak
@@ -90,7 +90,7 @@ class ApiClient:
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
- self.user_agent = 'OpenAPI-Generator/v1.25.0-alpha/python'
+ self.user_agent = 'OpenAPI-Generator/v1.41.0-alpha/python'
self.client_side_validation = configuration.client_side_validation
def __enter__(self):
diff --git a/hyperstack/configuration.py b/hyperstack/configuration.py
index 1328be4..83d9a8b 100644
--- a/hyperstack/configuration.py
+++ b/hyperstack/configuration.py
@@ -113,7 +113,6 @@
AuthSettings = TypedDict(
"AuthSettings",
{
- "accessToken": APIKeyAuthSetting,
"apiKey": APIKeyAuthSetting,
},
total=False,
@@ -505,15 +504,6 @@ def auth_settings(self)-> AuthSettings:
:return: The Auth Settings information dict.
"""
auth: AuthSettings = {}
- if 'accessToken' in self.api_key:
- auth['accessToken'] = {
- 'type': 'api_key',
- 'in': 'header',
- 'key': 'Authorization',
- 'value': self.get_api_key_with_prefix(
- 'accessToken',
- ),
- }
if 'apiKey' in self.api_key:
auth['apiKey'] = {
'type': 'api_key',
@@ -534,7 +524,7 @@ def to_debug_report(self) -> str:
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
"Version of the API: 1.0\n"\
- "SDK Package Version: v1.25.0-alpha".\
+ "SDK Package Version: v1.41.0-alpha".\
format(env=sys.platform, pyversion=sys.version)
def get_host_settings(self) -> List[HostSetting]:
diff --git a/hyperstack/models/__init__.py b/hyperstack/models/__init__.py
index f1e3868..2271a32 100644
--- a/hyperstack/models/__init__.py
+++ b/hyperstack/models/__init__.py
@@ -14,11 +14,10 @@
# import models into model package
-from .add_update_flavor_organization_payload import AddUpdateFlavorOrganizationPayload
+from .access_token_field import AccessTokenField
from .add_user_info_success_response_model import AddUserInfoSuccessResponseModel
from .allocated_gpu_count_graph import AllocatedGPUCountGraph
from .api_key_fields import ApiKeyFields
-from .api_key_verify_fields import ApiKeyVerifyFields
from .assign_rbac_role_payload import AssignRbacRolePayload
from .attach_callback_payload import AttachCallbackPayload
from .attach_callback_response import AttachCallbackResponse
@@ -27,21 +26,40 @@
from .attach_volume_fields import AttachVolumeFields
from .attach_volumes import AttachVolumes
from .attach_volumes_payload import AttachVolumesPayload
+from .attachments_fields_for_volume import AttachmentsFieldsForVolume
+from .attributes import Attributes
from .auth_get_token_response_model import AuthGetTokenResponseModel
-from .auth_request_login_fields import AuthRequestLoginFields
-from .auth_request_login_response_model import AuthRequestLoginResponseModel
from .auth_user_fields import AuthUserFields
from .auth_user_info_response_model import AuthUserInfoResponseModel
-from .billing_immune_resources_response import BillingImmuneResourcesResponse
-from .billing_response import BillingResponse
-from .billingmetricesfields import Billingmetricesfields
-from .billingmetricesresponse import Billingmetricesresponse
+from .beta_access_request_fields import BetaAccessRequestFields
+from .beta_access_request_payload import BetaAccessRequestPayload
+from .beta_access_request_response_model import BetaAccessRequestResponseModel
+from .beta_access_status_item import BetaAccessStatusItem
+from .beta_access_status_response_model import BetaAccessStatusResponseModel
+from .billing_history import BillingHistory
+from .billing_history_data_synthesis_details import BillingHistoryDataSynthesisDetails
+from .billing_history_fine_tuning import BillingHistoryFineTuning
+from .billing_history_model_evalutation_details import BillingHistoryModelEvalutationDetails
+from .billing_history_serverless_inference import BillingHistoryServerlessInference
+from .billing_history_serverless_inference_details import BillingHistoryServerlessInferenceDetails
+from .billing_metrices_fields import BillingMetricesFields
+from .billing_metrices_response import BillingMetricesResponse
from .cluster_events import ClusterEvents
from .cluster_events_fields import ClusterEventsFields
from .cluster_fields import ClusterFields
+from .cluster_flavor_fields import ClusterFlavorFields
from .cluster_list_response import ClusterListResponse
+from .cluster_node_fields import ClusterNodeFields
+from .cluster_node_group_fields import ClusterNodeGroupFields
+from .cluster_node_groups_create_response import ClusterNodeGroupsCreateResponse
+from .cluster_node_groups_get_response import ClusterNodeGroupsGetResponse
+from .cluster_node_groups_list_response import ClusterNodeGroupsListResponse
+from .cluster_node_instance_fields import ClusterNodeInstanceFields
+from .cluster_nodes_list_response import ClusterNodesListResponse
from .cluster_response import ClusterResponse
+from .cluster_version import ClusterVersion
from .cluster_versions import ClusterVersions
+from .colors import Colors
from .common_response_model import CommonResponseModel
from .compliance_fields import ComplianceFields
from .compliance_model_fields import ComplianceModelFields
@@ -49,28 +67,16 @@
from .compliance_response import ComplianceResponse
from .container_overview_fields import ContainerOverviewFields
from .contract import Contract
-from .contract_billing_history import ContractBillingHistory
-from .contract_billing_history_response_attributes import ContractBillingHistoryResponseAttributes
-from .contract_billing_history_response_model import ContractBillingHistoryResponseModel
-from .contract_change_payload import ContractChangePayload
from .contract_discount_plan_fields import ContractDiscountPlanFields
-from .contract_eligible_instance_fields import ContractEligibleInstanceFields
-from .contract_eligible_instances_response import ContractEligibleInstancesResponse
-from .contract_event_create_model import ContractEventCreateModel
from .contract_gpu_allocation_graph_response import ContractGPUAllocationGraphResponse
from .contract_instance_fields import ContractInstanceFields
from .contract_instances_response import ContractInstancesResponse
-from .contract_resource_payload import ContractResourcePayload
-from .contractl_billing_history_response_metrics import ContractlBillingHistoryResponseMetrics
+from .create_cluster_node_fields import CreateClusterNodeFields
+from .create_cluster_node_group_payload import CreateClusterNodeGroupPayload
from .create_cluster_payload import CreateClusterPayload
-from .create_contract_fields import CreateContractFields
-from .create_contract_payload import CreateContractPayload
-from .create_discount_response import CreateDiscountResponse
-from .create_discounts_payload import CreateDiscountsPayload
from .create_environment import CreateEnvironment
from .create_firewall_payload import CreateFirewallPayload
from .create_firewall_rule_payload import CreateFirewallRulePayload
-from .create_gpu import CreateGPU
from .create_image import CreateImage
from .create_image_payload import CreateImagePayload
from .create_instances_payload import CreateInstancesPayload
@@ -81,44 +87,24 @@
from .create_snapshot_payload import CreateSnapshotPayload
from .create_snapshot_response import CreateSnapshotResponse
from .create_update_compliance_response import CreateUpdateComplianceResponse
-from .create_update_permission_payload import CreateUpdatePermissionPayload
-from .create_update_permission_response_model import CreateUpdatePermissionResponseModel
-from .create_update_policy_payload import CreateUpdatePolicyPayload
-from .create_update_policy_response_model import CreateUpdatePolicyResponseModel
from .create_update_rbac_role_payload import CreateUpdateRbacRolePayload
from .create_volume_payload import CreateVolumePayload
-from .creditrechargelimitfield import Creditrechargelimitfield
-from .creditrechargelimitresponse import Creditrechargelimitresponse
-from .creditrequestresponse import Creditrequestresponse
-from .creditrequests import Creditrequests
from .customer_contract_detail_response_model import CustomerContractDetailResponseModel
from .customer_contract_fields import CustomerContractFields
-from .customer_fields import CustomerFields
-from .customer_payload import CustomerPayload
from .dashboard_info_response import DashboardInfoResponse
-from .data import Data
+from .data_synthesis_billing_history_details_response_schema import DataSynthesisBillingHistoryDetailsResponseSchema
from .deployment_fields import DeploymentFields
-from .deployment_fieldsforstartdeployments import DeploymentFieldsforstartdeployments
+from .deployment_fields_for_start_deployments import DeploymentFieldsForStartDeployments
from .deployments import Deployments
from .detach_volumes import DetachVolumes
from .detach_volumes_payload import DetachVolumesPayload
-from .discount_entity_model import DiscountEntityModel
-from .discount_fields import DiscountFields
-from .discount_plan_fields import DiscountPlanFields
-from .discount_resource_fields import DiscountResourceFields
-from .discount_resource_payload import DiscountResourcePayload
-from .editlabelofanexisting_vm_payload import EditlabelofanexistingVMPayload
+from .edit_label_of_an_existing_vm_payload import EditLabelOfAnExistingVMPayload
from .environment import Environment
from .environment_features import EnvironmentFeatures
from .environment_fields import EnvironmentFields
-from .environment_fieldsfor_volume import EnvironmentFieldsforVolume
+from .environment_fields_for_volume import EnvironmentFieldsForVolume
from .environments import Environments
from .error_response_model import ErrorResponseModel
-from .exclude_billing_post_payload import ExcludeBillingPostPayload
-from .exclude_billing_post_response import ExcludeBillingPostResponse
-from .export_billing_data_request import ExportBillingDataRequest
-from .export_billing_data_response import ExportBillingDataResponse
-from .field_change import FieldChange
from .firewall_attachment_model import FirewallAttachmentModel
from .firewall_attachment_vm_model import FirewallAttachmentVMModel
from .firewall_detail_fields import FirewallDetailFields
@@ -130,55 +116,33 @@
from .firewalls_list_response import FirewallsListResponse
from .flavor_fields import FlavorFields
from .flavor_item_get_response import FlavorItemGetResponse
+from .flavor_label_fields import FlavorLabelFields
from .flavor_list_response import FlavorListResponse
from .flavor_object_fields import FlavorObjectFields
-from .flavor_payload import FlavorPayload
-from .flavor_response import FlavorResponse
-from .flavor_vm_fields import FlavorVMFields
-from .flavor_vms_response import FlavorVMsResponse
-from .future_node_model import FutureNodeModel
-from .future_node_response_model import FutureNodeResponseModel
-from .future_node_stock_model import FutureNodeStockModel
-from .future_node_update_model import FutureNodeUpdateModel
-from .future_nodes_stock_model import FutureNodesStockModel
-from .gpu import GPU
from .gpu_fields import GPUFields
from .gpu_list import GPUList
from .gpu_region_fields import GPURegionFields
from .generate_update_api_key_payload import GenerateUpdateApiKeyPayload
from .generate_update_api_key_response_model import GenerateUpdateApiKeyResponseModel
-from .get_all_contract_fields import GetAllContractFields
-from .get_all_contracts_response_model import GetAllContractsResponseModel
-from .get_all_discount_for_all_organization_response import GetAllDiscountForAllOrganizationResponse
-from .get_all_discounts_fields import GetAllDiscountsFields
from .get_api_keys_response_model import GetApiKeysResponseModel
+from .get_credit_and_threshold_info import GetCreditAndThresholdInfo
+from .get_credit_and_threshold_info_in_response import GetCreditAndThresholdInfoInResponse
from .get_customer_contracts_list_response_model import GetCustomerContractsListResponseModel
-from .get_discount_detail_response import GetDiscountDetailResponse
-from .get_discount_response import GetDiscountResponse
-from .get_entity_discount_detail_response import GetEntityDiscountDetailResponse
+from .get_instance_logs_response import GetInstanceLogsResponse
from .get_invites_response_model import GetInvitesResponseModel
from .get_organization_response_model import GetOrganizationResponseModel
from .get_permissions_response_model import GetPermissionsResponseModel
from .get_policies_response_model import GetPoliciesResponseModel
from .get_rbac_roles_response_model import GetRbacRolesResponseModel
-from .get_token_payload import GetTokenPayload
from .get_user_permissions_response_model import GetUserPermissionsResponseModel
-from .get_version_response import GetVersionResponse
-from .getcreditandthresholdinfo import Getcreditandthresholdinfo
-from .getcreditandthresholdinfoinresponse import Getcreditandthresholdinfoinresponse
from .graph_datetime_value_model import GraphDatetimeValueModel
-from .historical_instance import HistoricalInstance
-from .historical_instances_fields import HistoricalInstancesFields
from .image import Image
from .image_fields import ImageFields
from .image_get_response import ImageGetResponse
-from .image_logos import ImageLogos
from .images import Images
from .import_keypair_payload import ImportKeypairPayload
from .import_keypair_response import ImportKeypairResponse
-from .infrahub_resource_object_response import InfrahubResourceObjectResponse
from .infrahub_resource_object_response_for_customer import InfrahubResourceObjectResponseForCustomer
-from .insert_discount_plan_fields import InsertDiscountPlanFields
from .instance import Instance
from .instance_environment_fields import InstanceEnvironmentFields
from .instance_events import InstanceEvents
@@ -190,56 +154,42 @@
from .instance_overview_fields import InstanceOverviewFields
from .instance_resize_payload import InstanceResizePayload
from .instances import Instances
-from .instances_summary_fields import InstancesSummaryFields
-from .internal_environment_fields import InternalEnvironmentFields
-from .internal_instance_fields import InternalInstanceFields
-from .internal_instance_flavor_fields import InternalInstanceFlavorFields
-from .internal_instance_image_fields import InternalInstanceImageFields
-from .internal_instance_keypair_fields import InternalInstanceKeypairFields
-from .internal_instances_response import InternalInstancesResponse
-from .internal_security_rules_fields_for_instance import InternalSecurityRulesFieldsForInstance
-from .internal_volume_attachment_fields import InternalVolumeAttachmentFields
-from .internal_volume_fields import InternalVolumeFields
-from .internal_volumes_response import InternalVolumesResponse
from .invite_fields import InviteFields
from .invite_user_payload import InviteUserPayload
from .invite_user_response_model import InviteUserResponseModel
+from .keypair_environment_features import KeypairEnvironmentFeatures
+from .keypair_environment_fields import KeypairEnvironmentFields
from .keypair_fields import KeypairFields
from .keypairs import Keypairs
from .lable_resonse import LableResonse
-from .lastdaycostfields import Lastdaycostfields
-from .lastdaycostresponse import Lastdaycostresponse
-from .logo_get_response import LogoGetResponse
-from .logout_payload import LogoutPayload
+from .last_day_cost_fields import LastDayCostFields
+from .last_day_cost_response import LastDayCostResponse
+from .logos import Logos
+from .mfa_status_fields import MFAStatusFields
+from .mfa_status_response import MFAStatusResponse
+from .master_flavors_response import MasterFlavorsResponse
from .metric_item_fields import MetricItemFields
from .metrics_fields import MetricsFields
+from .model_evaluation_billing_history_details_response_schema import ModelEvaluationBillingHistoryDetailsResponseSchema
from .name_available_model import NameAvailableModel
from .new_configurations_response import NewConfigurationsResponse
from .new_model_response import NewModelResponse
from .new_stock_response import NewStockResponse
from .new_stock_retrive_response import NewStockRetriveResponse
-from .new_stock_update_response_model import NewStockUpdateResponseModel
-from .node_model import NodeModel
-from .node_payload_model import NodePayloadModel
-from .node_power_usage_model import NodePowerUsageModel
-from .node_response_model import NodeResponseModel
-from .node_stock_payload_model import NodeStockPayloadModel
-from .node_stock_response_model import NodeStockResponseModel
-from .node_stocks_payload import NodeStocksPayload
from .organization_fields import OrganizationFields
from .organization_level_billing_history import OrganizationLevelBillingHistory
from .organization_level_billing_history_resources import OrganizationLevelBillingHistoryResources
from .organization_level_billing_history_response_attributes import OrganizationLevelBillingHistoryResponseAttributes
from .organization_level_billing_history_response_metrics import OrganizationLevelBillingHistoryResponseMetrics
from .organization_level_billing_history_response_model import OrganizationLevelBillingHistoryResponseModel
-from .organization_object_response import OrganizationObjectResponse
-from .organization_thresholdfields import OrganizationThresholdfields
+from .organization_threshold_fields import OrganizationThresholdFields
+from .organization_threshold_update_response import OrganizationThresholdUpdateResponse
+from .organization_thresholds_response import OrganizationThresholdsResponse
from .organization_user_response_model import OrganizationUserResponseModel
-from .organizationcreditrechargelimitresponse import Organizationcreditrechargelimitresponse
-from .organizationthresholdsresponse import Organizationthresholdsresponse
-from .organizationthresholdupdateresponse import Organizationthresholdupdateresponse
from .overview_info import OverviewInfo
+from .pagination import Pagination
from .pagination_data import PaginationData
+from .partner_config import PartnerConfig
from .payment_details_fields import PaymentDetailsFields
from .payment_details_response import PaymentDetailsResponse
from .payment_initiate_fields import PaymentInitiateFields
@@ -248,10 +198,9 @@
from .permission_fields import PermissionFields
from .policy_fields import PolicyFields
from .policy_permission_fields import PolicyPermissionFields
-from .power_usage_model import PowerUsageModel
from .pricebook_model import PricebookModel
-from .pricebook_resource_object_response import PricebookResourceObjectResponse
from .pricebook_resource_object_response_for_customer import PricebookResourceObjectResponseForCustomer
+from .primary_color import PrimaryColor
from .profile_fields import ProfileFields
from .profile_list_response import ProfileListResponse
from .profile_object_fields import ProfileObjectFields
@@ -259,17 +208,17 @@
from .rbac_role_detail_response_model_fixed import RbacRoleDetailResponseModelFixed
from .rbac_role_field import RbacRoleField
from .rbac_role_fields import RbacRoleFields
-from .refresh_token_payload import RefreshTokenPayload
from .region_fields import RegionFields
-from .region_payload import RegionPayload
-from .region_response import RegionResponse
from .regions import Regions
from .remove_member_from_organization_response_model import RemoveMemberFromOrganizationResponseModel
from .remove_member_payload import RemoveMemberPayload
from .request_console import RequestConsole
+from .request_instance_logs_payload import RequestInstanceLogsPayload
+from .request_instance_logs_response import RequestInstanceLogsResponse
from .resource_billing_events_history_metrics import ResourceBillingEventsHistoryMetrics
from .resource_billing_events_history_response import ResourceBillingEventsHistoryResponse
from .resource_billing_response_for_customer import ResourceBillingResponseForCustomer
+from .resource_level_billing_bucket_details_resources import ResourceLevelBillingBucketDetailsResources
from .resource_level_billing_details_attributes import ResourceLevelBillingDetailsAttributes
from .resource_level_billing_details_metrics import ResourceLevelBillingDetailsMetrics
from .resource_level_billing_details_vm import ResourceLevelBillingDetailsVM
@@ -278,12 +227,19 @@
from .resource_level_billing_details_volume_metrics import ResourceLevelBillingDetailsVolumeMetrics
from .resource_level_billing_history import ResourceLevelBillingHistory
from .resource_level_billing_history_resources import ResourceLevelBillingHistoryResources
+from .resource_level_billing_history_resources_cluster import ResourceLevelBillingHistoryResourcesCluster
from .resource_level_billing_history_response_attributes import ResourceLevelBillingHistoryResponseAttributes
from .resource_level_billing_history_response_metrics import ResourceLevelBillingHistoryResponseMetrics
from .resource_level_billing_vm_details_resources import ResourceLevelBillingVMDetailsResources
from .resource_level_billing_volume_details_resources import ResourceLevelBillingVolumeDetailsResources
+from .resource_level_bucket_billing_details_response_model import ResourceLevelBucketBillingDetailsResponseModel
+from .resource_level_bucket_billing_history_response_model import ResourceLevelBucketBillingHistoryResponseModel
+from .resource_level_cluster_billing_details_response_model import ResourceLevelClusterBillingDetailsResponseModel
+from .resource_level_cluster_billing_history_response_model import ResourceLevelClusterBillingHistoryResponseModel
+from .resource_level_cluster_graph_billing_details_response_model import ResourceLevelClusterGraphBillingDetailsResponseModel
from .resource_level_graph_billing_detail_volume import ResourceLevelGraphBillingDetailVolume
from .resource_level_graph_billing_details_attributes import ResourceLevelGraphBillingDetailsAttributes
+from .resource_level_graph_billing_details_bucket import ResourceLevelGraphBillingDetailsBucket
from .resource_level_graph_billing_details_metrics import ResourceLevelGraphBillingDetailsMetrics
from .resource_level_graph_billing_details_vm import ResourceLevelGraphBillingDetailsVM
from .resource_level_graph_billing_vm_details_resources import ResourceLevelGraphBillingVMDetailsResources
@@ -298,12 +254,12 @@
from .response_model import ResponseModel
from .role_permission_fields import RolePermissionFields
from .role_policy_fields import RolePolicyFields
+from .secondary_color import SecondaryColor
from .security_group_rule import SecurityGroupRule
from .security_group_rule_fields import SecurityGroupRuleFields
-from .security_rules_fieldsfor_instance import SecurityRulesFieldsforInstance
+from .security_rules_fields_for_instance import SecurityRulesFieldsForInstance
from .security_rules_protocol_fields import SecurityRulesProtocolFields
-from .set_defaults_payload import SetDefaultsPayload
-from .single_visibility_user_response import SingleVisibilityUserResponse
+from .serverless_inferenced_billing_history_details_response_schema import ServerlessInferencedBillingHistoryDetailsResponseSchema
from .snapshot_fields import SnapshotFields
from .snapshot_restore_request import SnapshotRestoreRequest
from .snapshot_retrieve import SnapshotRetrieve
@@ -311,50 +267,40 @@
from .snapshots import Snapshots
from .start_deployment import StartDeployment
from .start_deployment_payload import StartDeploymentPayload
-from .stock_visibility_user_list_response import StockVisibilityUserListResponse
-from .stock_visibility_user_payload import StockVisibilityUserPayload
from .sub_resource_graph_billing_details_metrics import SubResourceGraphBillingDetailsMetrics
from .sub_resources_costs_response_model import SubResourcesCostsResponseModel
from .sub_resources_graph_billing_history_fields import SubResourcesGraphBillingHistoryFields
from .sub_resources_graph_response_model import SubResourcesGraphResponseModel
-from .subscribeorunsubscribeupdatepayload import Subscribeorunsubscribeupdatepayload
-from .success_response_model import SuccessResponseModel
+from .subscribe_or_unsubscribe_update_payload import SubscribeOrUnsubscribeUpdatePayload
from .template import Template
from .template_fields import TemplateFields
from .templates import Templates
-from .token_fields import TokenFields
-from .update_contract_payload import UpdateContractPayload
-from .update_discounts_payload import UpdateDiscountsPayload
-from .update_discounts_status_payload import UpdateDiscountsStatusPayload
+from .token_based_billing_history_response import TokenBasedBillingHistoryResponse
+from .uris import URIs
from .update_environment import UpdateEnvironment
-from .update_gpu import UpdateGPU
from .update_keypair_name import UpdateKeypairName
-from .update_keypairnameresponse import UpdateKeypairnameresponse
+from .update_keypair_name_response import UpdateKeypairNameResponse
from .update_organization_payload import UpdateOrganizationPayload
from .update_organization_response_model import UpdateOrganizationResponseModel
from .update_template import UpdateTemplate
+from .update_volume_attachment_payload import UpdateVolumeAttachmentPayload
+from .update_volume_payload import UpdateVolumePayload
+from .update_volume_response import UpdateVolumeResponse
from .user_default_choice_for_user_fields import UserDefaultChoiceForUserFields
from .user_default_choices_for_user_response import UserDefaultChoicesForUserResponse
+from .user_info_post_payload import UserInfoPostPayload
+from .user_organizations_response import UserOrganizationsResponse
from .user_permission_fields import UserPermissionFields
-from .user_transfer_payload import UserTransferPayload
-from .userinfopostpayload import Userinfopostpayload
from .users_info_fields import UsersInfoFields
from .users_info_list_response import UsersInfoListResponse
-from .vm_usage_request_payload import VMUsageRequestPayload
-from .vm_usage_response import VMUsageResponse
from .vncurl import VNCURL
from .vncurl_fields import VNCURLFields
-from .verify_api_key_payload import VerifyApiKeyPayload
-from .verify_api_key_response_model import VerifyApiKeyResponseModel
-from .virtual_machine_usage import VirtualMachineUsage
from .volume import Volume
from .volume_attachment_fields import VolumeAttachmentFields
from .volume_fields import VolumeFields
-from .volume_fieldsfor_instance import VolumeFieldsforInstance
+from .volume_fields_for_instance import VolumeFieldsForInstance
from .volume_overview_fields import VolumeOverviewFields
-from .volume_status_change_fields import VolumeStatusChangeFields
from .volume_types import VolumeTypes
from .volumes import Volumes
-from .volumes_last_status_change_response import VolumesLastStatusChangeResponse
-from .warning_mail_log_fields import WarningMailLogFields
-from .warning_mail_log_response import WarningMailLogResponse
+from .volumes_fields import VolumesFields
+from .workload_billing_history_response import WorkloadBillingHistoryResponse
diff --git a/hyperstack/models/environment_fieldsfor_volume.py b/hyperstack/models/access_token_field.py
similarity index 87%
rename from hyperstack/models/environment_fieldsfor_volume.py
rename to hyperstack/models/access_token_field.py
index e14382d..cfe533d 100644
--- a/hyperstack/models/environment_fieldsfor_volume.py
+++ b/hyperstack/models/access_token_field.py
@@ -22,12 +22,12 @@
from typing import Optional, Set
from typing_extensions import Self
-class EnvironmentFieldsforVolume(BaseModel):
+class AccessTokenField(BaseModel):
"""
- EnvironmentFieldsforVolume
+ AccessTokenField
""" # noqa: E501
- name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["name"]
+ access_token: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["access_token"]
model_config = ConfigDict(
populate_by_name=True,
@@ -47,7 +47,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of EnvironmentFieldsforVolume from a JSON string"""
+ """Create an instance of AccessTokenField from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of EnvironmentFieldsforVolume from a dict"""
+ """Create an instance of AccessTokenField from a dict"""
if obj is None:
return None
@@ -80,7 +80,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "name": obj.get("name")
+ "access_token": obj.get("access_token")
})
return _obj
diff --git a/hyperstack/models/api_key_verify_fields.py b/hyperstack/models/api_key_verify_fields.py
deleted file mode 100644
index 37b12df..0000000
--- a/hyperstack/models/api_key_verify_fields.py
+++ /dev/null
@@ -1,93 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ApiKeyVerifyFields(BaseModel):
- """
- ApiKeyVerifyFields
- """ # noqa: E501
- org_id: Optional[StrictInt] = None
- sub: Optional[StrictStr] = None
- user_id: Optional[StrictInt] = None
- user_role: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["org_id", "sub", "user_id", "user_role"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ApiKeyVerifyFields from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ApiKeyVerifyFields from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "org_id": obj.get("org_id"),
- "sub": obj.get("sub"),
- "user_id": obj.get("user_id"),
- "user_role": obj.get("user_role")
- })
- return _obj
-
-
diff --git a/hyperstack/models/attach_volume_fields.py b/hyperstack/models/attach_volume_fields.py
index d8cad04..0b8b76f 100644
--- a/hyperstack/models/attach_volume_fields.py
+++ b/hyperstack/models/attach_volume_fields.py
@@ -18,7 +18,7 @@
import json
from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self
@@ -28,11 +28,13 @@ class AttachVolumeFields(BaseModel):
AttachVolumeFields
""" # noqa: E501
created_at: Optional[datetime] = None
+ device: Optional[StrictStr] = None
id: Optional[StrictInt] = None
instance_id: Optional[StrictInt] = None
+ protected: Optional[StrictBool] = None
status: Optional[StrictStr] = None
volume_id: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["created_at", "id", "instance_id", "status", "volume_id"]
+ __properties: ClassVar[List[str]] = ["created_at", "device", "id", "instance_id", "protected", "status", "volume_id"]
model_config = ConfigDict(
populate_by_name=True,
@@ -86,8 +88,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"created_at": obj.get("created_at"),
+ "device": obj.get("device"),
"id": obj.get("id"),
"instance_id": obj.get("instance_id"),
+ "protected": obj.get("protected"),
"status": obj.get("status"),
"volume_id": obj.get("volume_id")
})
diff --git a/hyperstack/models/attach_volumes_payload.py b/hyperstack/models/attach_volumes_payload.py
index 5162c34..6b48c7c 100644
--- a/hyperstack/models/attach_volumes_payload.py
+++ b/hyperstack/models/attach_volumes_payload.py
@@ -17,7 +17,7 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, StrictInt
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self
@@ -26,8 +26,9 @@ class AttachVolumesPayload(BaseModel):
"""
AttachVolumesPayload
""" # noqa: E501
+ protected: Optional[StrictBool] = False
volume_ids: Optional[List[StrictInt]] = None
- __properties: ClassVar[List[str]] = ["volume_ids"]
+ __properties: ClassVar[List[str]] = ["protected", "volume_ids"]
model_config = ConfigDict(
populate_by_name=True,
@@ -80,6 +81,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
+ "protected": obj.get("protected") if obj.get("protected") is not None else False,
"volume_ids": obj.get("volume_ids")
})
return _obj
diff --git a/hyperstack/models/virtual_machine_usage.py b/hyperstack/models/attachments_fields_for_volume.py
similarity index 77%
rename from hyperstack/models/virtual_machine_usage.py
rename to hyperstack/models/attachments_fields_for_volume.py
index 9b39577..da0cfcf 100644
--- a/hyperstack/models/virtual_machine_usage.py
+++ b/hyperstack/models/attachments_fields_for_volume.py
@@ -17,20 +17,21 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self
-class VirtualMachineUsage(BaseModel):
+class AttachmentsFieldsForVolume(BaseModel):
"""
- VirtualMachineUsage
+ AttachmentsFieldsForVolume
""" # noqa: E501
+ device: Optional[StrictStr] = None
id: Optional[StrictInt] = None
- name: Optional[StrictStr] = None
+ instance_id: Optional[StrictInt] = None
+ protected: Optional[StrictBool] = None
status: Optional[StrictStr] = None
- total_usage_time: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["id", "name", "status", "total_usage_time"]
+ __properties: ClassVar[List[str]] = ["device", "id", "instance_id", "protected", "status"]
model_config = ConfigDict(
populate_by_name=True,
@@ -50,7 +51,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of VirtualMachineUsage from a JSON string"""
+ """Create an instance of AttachmentsFieldsForVolume from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -75,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of VirtualMachineUsage from a dict"""
+ """Create an instance of AttachmentsFieldsForVolume from a dict"""
if obj is None:
return None
@@ -83,10 +84,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
+ "device": obj.get("device"),
"id": obj.get("id"),
- "name": obj.get("name"),
- "status": obj.get("status"),
- "total_usage_time": obj.get("total_usage_time")
+ "instance_id": obj.get("instance_id"),
+ "protected": obj.get("protected"),
+ "status": obj.get("status")
})
return _obj
diff --git a/hyperstack/models/attributes.py b/hyperstack/models/attributes.py
new file mode 100644
index 0000000..2e1fa9a
--- /dev/null
+++ b/hyperstack/models/attributes.py
@@ -0,0 +1,97 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class Attributes(BaseModel):
+ """
+ Attributes
+ """ # noqa: E501
+ base_model: Optional[StrictStr] = None
+ base_model_display_name: Optional[StrictStr] = None
+ infrahub_id: Optional[StrictInt] = None
+ lora_adapter: Optional[StrictStr] = None
+ resource_name: Optional[StrictStr] = None
+ status: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["base_model", "base_model_display_name", "infrahub_id", "lora_adapter", "resource_name", "status"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of Attributes from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of Attributes from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "base_model": obj.get("base_model"),
+ "base_model_display_name": obj.get("base_model_display_name"),
+ "infrahub_id": obj.get("infrahub_id"),
+ "lora_adapter": obj.get("lora_adapter"),
+ "resource_name": obj.get("resource_name"),
+ "status": obj.get("status")
+ })
+ return _obj
+
+
diff --git a/hyperstack/models/auth_get_token_response_model.py b/hyperstack/models/auth_get_token_response_model.py
index 9e8e547..8e84809 100644
--- a/hyperstack/models/auth_get_token_response_model.py
+++ b/hyperstack/models/auth_get_token_response_model.py
@@ -19,7 +19,7 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.token_fields import TokenFields
+from ..models.access_token_field import AccessTokenField
from typing import Optional, Set
from typing_extensions import Self
@@ -27,11 +27,10 @@ class AuthGetTokenResponseModel(BaseModel):
"""
AuthGetTokenResponseModel
""" # noqa: E501
- first_login: Optional[StrictBool] = None
message: Optional[StrictStr] = None
status: Optional[StrictBool] = None
- token: Optional[TokenFields] = None
- __properties: ClassVar[List[str]] = ["first_login", "message", "status", "token"]
+ token: Optional[AccessTokenField] = None
+ __properties: ClassVar[List[str]] = ["message", "status", "token"]
model_config = ConfigDict(
populate_by_name=True,
@@ -87,10 +86,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "first_login": obj.get("first_login"),
"message": obj.get("message"),
"status": obj.get("status"),
- "token": TokenFields.from_dict(obj["token"]) if obj.get("token") is not None else None
+ "token": AccessTokenField.from_dict(obj["token"]) if obj.get("token") is not None else None
})
return _obj
diff --git a/hyperstack/models/future_node_model.py b/hyperstack/models/beta_access_request_fields.py
similarity index 62%
rename from hyperstack/models/future_node_model.py
rename to hyperstack/models/beta_access_request_fields.py
index 0ea9c58..67a4808 100644
--- a/hyperstack/models/future_node_model.py
+++ b/hyperstack/models/beta_access_request_fields.py
@@ -18,22 +18,32 @@
import json
from datetime import datetime
-from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.future_node_stock_model import FutureNodeStockModel
from typing import Optional, Set
from typing_extensions import Self
-class FutureNodeModel(BaseModel):
+class BetaAccessRequestFields(BaseModel):
"""
- FutureNodeModel
+ BetaAccessRequestFields
""" # noqa: E501
- expected_provision_date: datetime = Field(description="Date and time in the format YYYY-MM-DD HH:mm:ss")
- id: Optional[StrictInt] = None
- nexgen_name: Optional[StrictStr] = None
- openstack_name: Optional[StrictStr] = None
- stocks: Optional[List[FutureNodeStockModel]] = None
- __properties: ClassVar[List[str]] = ["expected_provision_date", "id", "nexgen_name", "openstack_name", "stocks"]
+ created_at: Optional[datetime] = Field(default=None, description="When the request was made")
+ id: Optional[StrictInt] = Field(default=None, description="Unique identifier for the request")
+ program_id: Optional[StrictInt] = Field(default=None, description="ID of the beta program")
+ program_name: Optional[StrictStr] = Field(default=None, description="Name of the beta program")
+ status: Optional[StrictStr] = Field(default=None, description="Status of the request")
+ user_id: Optional[StrictInt] = Field(default=None, description="ID of the user who made the request")
+ __properties: ClassVar[List[str]] = ["created_at", "id", "program_id", "program_name", "status", "user_id"]
+
+ @field_validator('status')
+ def status_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['requested', 'approved', 'denied', 'revoked']):
+ raise ValueError("must be one of enum values ('requested', 'approved', 'denied', 'revoked')")
+ return value
model_config = ConfigDict(
populate_by_name=True,
@@ -53,7 +63,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of FutureNodeModel from a JSON string"""
+ """Create an instance of BetaAccessRequestFields from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -65,10 +75,8 @@ def to_dict(self) -> Dict[str, Any]:
* `None` is only added to the output dict for nullable fields that
were set at model initialization. Other fields with value `None`
are ignored.
- * OpenAPI `readOnly` fields are excluded.
"""
excluded_fields: Set[str] = set([
- "id",
])
_dict = self.model_dump(
@@ -76,18 +84,11 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of each item in stocks (list)
- _items = []
- if self.stocks:
- for _item_stocks in self.stocks:
- if _item_stocks:
- _items.append(_item_stocks.to_dict())
- _dict['stocks'] = _items
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of FutureNodeModel from a dict"""
+ """Create an instance of BetaAccessRequestFields from a dict"""
if obj is None:
return None
@@ -95,11 +96,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "expected_provision_date": obj.get("expected_provision_date"),
+ "created_at": obj.get("created_at"),
"id": obj.get("id"),
- "nexgen_name": obj.get("nexgen_name"),
- "openstack_name": obj.get("openstack_name"),
- "stocks": [FutureNodeStockModel.from_dict(_item) for _item in obj["stocks"]] if obj.get("stocks") is not None else None
+ "program_id": obj.get("program_id"),
+ "program_name": obj.get("program_name"),
+ "status": obj.get("status"),
+ "user_id": obj.get("user_id")
})
return _obj
diff --git a/hyperstack/models/create_gpu.py b/hyperstack/models/beta_access_request_payload.py
similarity index 81%
rename from hyperstack/models/create_gpu.py
rename to hyperstack/models/beta_access_request_payload.py
index 4e97969..0df28e6 100644
--- a/hyperstack/models/create_gpu.py
+++ b/hyperstack/models/beta_access_request_payload.py
@@ -22,14 +22,13 @@
from typing import Optional, Set
from typing_extensions import Self
-class CreateGPU(BaseModel):
+class BetaAccessRequestPayload(BaseModel):
"""
- CreateGPU
+ BetaAccessRequestPayload
""" # noqa: E501
- example_metadata: Optional[StrictStr] = Field(default=None, description="A valid JSON string.")
- name: StrictStr
- regions: Optional[List[StrictStr]] = None
- __properties: ClassVar[List[str]] = ["example_metadata", "name", "regions"]
+ metadata: Optional[Dict[str, Any]] = Field(default=None, description="Optional metadata for the request")
+ program: StrictStr = Field(description="Name of the beta program")
+ __properties: ClassVar[List[str]] = ["metadata", "program"]
model_config = ConfigDict(
populate_by_name=True,
@@ -49,7 +48,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CreateGPU from a JSON string"""
+ """Create an instance of BetaAccessRequestPayload from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -74,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateGPU from a dict"""
+ """Create an instance of BetaAccessRequestPayload from a dict"""
if obj is None:
return None
@@ -82,9 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "example_metadata": obj.get("example_metadata"),
- "name": obj.get("name"),
- "regions": obj.get("regions")
+ "metadata": obj.get("metadata"),
+ "program": obj.get("program")
})
return _obj
diff --git a/hyperstack/models/auth_request_login_response_model.py b/hyperstack/models/beta_access_request_response_model.py
similarity index 77%
rename from hyperstack/models/auth_request_login_response_model.py
rename to hyperstack/models/beta_access_request_response_model.py
index 103ac6e..3777a39 100644
--- a/hyperstack/models/auth_request_login_response_model.py
+++ b/hyperstack/models/beta_access_request_response_model.py
@@ -19,18 +19,18 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.auth_request_login_fields import AuthRequestLoginFields
+from ..models.beta_access_request_fields import BetaAccessRequestFields
from typing import Optional, Set
from typing_extensions import Self
-class AuthRequestLoginResponseModel(BaseModel):
+class BetaAccessRequestResponseModel(BaseModel):
"""
- AuthRequestLoginResponseModel
+ BetaAccessRequestResponseModel
""" # noqa: E501
- data: Optional[AuthRequestLoginFields] = None
+ beta_access_request: Optional[BetaAccessRequestFields] = None
message: Optional[StrictStr] = None
status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["data", "message", "status"]
+ __properties: ClassVar[List[str]] = ["beta_access_request", "message", "status"]
model_config = ConfigDict(
populate_by_name=True,
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of AuthRequestLoginResponseModel from a JSON string"""
+ """Create an instance of BetaAccessRequestResponseModel from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -71,14 +71,14 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of data
- if self.data:
- _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of beta_access_request
+ if self.beta_access_request:
+ _dict['beta_access_request'] = self.beta_access_request.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of AuthRequestLoginResponseModel from a dict"""
+ """Create an instance of BetaAccessRequestResponseModel from a dict"""
if obj is None:
return None
@@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "data": AuthRequestLoginFields.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "beta_access_request": BetaAccessRequestFields.from_dict(obj["beta_access_request"]) if obj.get("beta_access_request") is not None else None,
"message": obj.get("message"),
"status": obj.get("status")
})
diff --git a/hyperstack/models/export_billing_data_request.py b/hyperstack/models/beta_access_status_item.py
similarity index 67%
rename from hyperstack/models/export_billing_data_request.py
rename to hyperstack/models/beta_access_status_item.py
index 5abbd45..964b89c 100644
--- a/hyperstack/models/export_billing_data_request.py
+++ b/hyperstack/models/beta_access_status_item.py
@@ -18,28 +18,28 @@
import json
from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr, field_validator
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self
-class ExportBillingDataRequest(BaseModel):
+class BetaAccessStatusItem(BaseModel):
"""
- ExportBillingDataRequest
+ BetaAccessStatusItem
""" # noqa: E501
- end_date: datetime
- org_id: Optional[StrictInt] = None
- required_attributes: List[StrictStr]
- required_metrics: List[StrictStr]
- resource_type: StrictStr
- start_date: datetime
- __properties: ClassVar[List[str]] = ["end_date", "org_id", "required_attributes", "required_metrics", "resource_type", "start_date"]
-
- @field_validator('resource_type')
- def resource_type_validate_enum(cls, value):
+ program_name: Optional[StrictStr] = Field(default=None, description="Name of the beta program")
+ request_date: Optional[datetime] = Field(default=None, description="When the request was made")
+ status: Optional[StrictStr] = Field(default=None, description="Status of the request (requested, approved, denied, revoked)")
+ __properties: ClassVar[List[str]] = ["program_name", "request_date", "status"]
+
+ @field_validator('status')
+ def status_validate_enum(cls, value):
"""Validates the enum"""
- if value not in set(['virtual_machine', 'volume']):
- raise ValueError("must be one of enum values ('virtual_machine', 'volume')")
+ if value is None:
+ return value
+
+ if value not in set(['requested', 'approved', 'denied', 'revoked']):
+ raise ValueError("must be one of enum values ('requested', 'approved', 'denied', 'revoked')")
return value
model_config = ConfigDict(
@@ -60,7 +60,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ExportBillingDataRequest from a JSON string"""
+ """Create an instance of BetaAccessStatusItem from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -85,7 +85,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ExportBillingDataRequest from a dict"""
+ """Create an instance of BetaAccessStatusItem from a dict"""
if obj is None:
return None
@@ -93,12 +93,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "end_date": obj.get("end_date"),
- "org_id": obj.get("org_id"),
- "required_attributes": obj.get("required_attributes"),
- "required_metrics": obj.get("required_metrics"),
- "resource_type": obj.get("resource_type"),
- "start_date": obj.get("start_date")
+ "program_name": obj.get("program_name"),
+ "request_date": obj.get("request_date"),
+ "status": obj.get("status")
})
return _obj
diff --git a/hyperstack/models/get_all_discount_for_all_organization_response.py b/hyperstack/models/beta_access_status_response_model.py
similarity index 70%
rename from hyperstack/models/get_all_discount_for_all_organization_response.py
rename to hyperstack/models/beta_access_status_response_model.py
index 9252199..cec55a0 100644
--- a/hyperstack/models/get_all_discount_for_all_organization_response.py
+++ b/hyperstack/models/beta_access_status_response_model.py
@@ -17,20 +17,20 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.get_all_discounts_fields import GetAllDiscountsFields
+from ..models.beta_access_status_item import BetaAccessStatusItem
from typing import Optional, Set
from typing_extensions import Self
-class GetAllDiscountForAllOrganizationResponse(BaseModel):
+class BetaAccessStatusResponseModel(BaseModel):
"""
- GetAllDiscountForAllOrganizationResponse
+ BetaAccessStatusResponseModel
""" # noqa: E501
- discount_plans: Optional[List[GetAllDiscountsFields]] = None
+ beta_access_requests: Optional[List[BetaAccessStatusItem]] = Field(default=None, description="List of beta access requests")
message: Optional[StrictStr] = None
status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["discount_plans", "message", "status"]
+ __properties: ClassVar[List[str]] = ["beta_access_requests", "message", "status"]
model_config = ConfigDict(
populate_by_name=True,
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of GetAllDiscountForAllOrganizationResponse from a JSON string"""
+ """Create an instance of BetaAccessStatusResponseModel from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -71,18 +71,18 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of each item in discount_plans (list)
+ # override the default output from pydantic by calling `to_dict()` of each item in beta_access_requests (list)
_items = []
- if self.discount_plans:
- for _item_discount_plans in self.discount_plans:
- if _item_discount_plans:
- _items.append(_item_discount_plans.to_dict())
- _dict['discount_plans'] = _items
+ if self.beta_access_requests:
+ for _item_beta_access_requests in self.beta_access_requests:
+ if _item_beta_access_requests:
+ _items.append(_item_beta_access_requests.to_dict())
+ _dict['beta_access_requests'] = _items
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetAllDiscountForAllOrganizationResponse from a dict"""
+ """Create an instance of BetaAccessStatusResponseModel from a dict"""
if obj is None:
return None
@@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "discount_plans": [GetAllDiscountsFields.from_dict(_item) for _item in obj["discount_plans"]] if obj.get("discount_plans") is not None else None,
+ "beta_access_requests": [BetaAccessStatusItem.from_dict(_item) for _item in obj["beta_access_requests"]] if obj.get("beta_access_requests") is not None else None,
"message": obj.get("message"),
"status": obj.get("status")
})
diff --git a/hyperstack/models/exclude_billing_post_response.py b/hyperstack/models/billing_history.py
similarity index 79%
rename from hyperstack/models/exclude_billing_post_response.py
rename to hyperstack/models/billing_history.py
index d256549..c564a52 100644
--- a/hyperstack/models/exclude_billing_post_response.py
+++ b/hyperstack/models/billing_history.py
@@ -19,16 +19,17 @@
from pydantic import BaseModel, ConfigDict
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.data import Data
+from ..models.attributes import Attributes
from typing import Optional, Set
from typing_extensions import Self
-class ExcludeBillingPostResponse(BaseModel):
+class BillingHistory(BaseModel):
"""
- ExcludeBillingPostResponse
+ BillingHistory
""" # noqa: E501
- data: Optional[Data] = None
- __properties: ClassVar[List[str]] = ["data"]
+ attributes: Optional[Attributes] = None
+ metrics: Optional[Dict[str, Any]] = None
+ __properties: ClassVar[List[str]] = ["attributes", "metrics"]
model_config = ConfigDict(
populate_by_name=True,
@@ -48,7 +49,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ExcludeBillingPostResponse from a JSON string"""
+ """Create an instance of BillingHistory from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -69,14 +70,14 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of data
- if self.data:
- _dict['data'] = self.data.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of attributes
+ if self.attributes:
+ _dict['attributes'] = self.attributes.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ExcludeBillingPostResponse from a dict"""
+ """Create an instance of BillingHistory from a dict"""
if obj is None:
return None
@@ -84,7 +85,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "data": Data.from_dict(obj["data"]) if obj.get("data") is not None else None
+ "attributes": Attributes.from_dict(obj["attributes"]) if obj.get("attributes") is not None else None,
+ "metrics": obj.get("metrics")
})
return _obj
diff --git a/hyperstack/models/billing_history_data_synthesis_details.py b/hyperstack/models/billing_history_data_synthesis_details.py
new file mode 100644
index 0000000..ee73e2c
--- /dev/null
+++ b/hyperstack/models/billing_history_data_synthesis_details.py
@@ -0,0 +1,105 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from ..models.billing_history import BillingHistory
+from ..models.pagination import Pagination
+from typing import Optional, Set
+from typing_extensions import Self
+
+class BillingHistoryDataSynthesisDetails(BaseModel):
+ """
+ BillingHistoryDataSynthesisDetails
+ """ # noqa: E501
+ billing_history: Optional[List[BillingHistory]] = None
+ org_id: Optional[StrictInt] = None
+ pagination: Optional[Pagination] = None
+ total_count: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["billing_history", "org_id", "pagination", "total_count"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BillingHistoryDataSynthesisDetails from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in billing_history (list)
+ _items = []
+ if self.billing_history:
+ for _item_billing_history in self.billing_history:
+ if _item_billing_history:
+ _items.append(_item_billing_history.to_dict())
+ _dict['billing_history'] = _items
+ # override the default output from pydantic by calling `to_dict()` of pagination
+ if self.pagination:
+ _dict['pagination'] = self.pagination.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BillingHistoryDataSynthesisDetails from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "billing_history": [BillingHistory.from_dict(_item) for _item in obj["billing_history"]] if obj.get("billing_history") is not None else None,
+ "org_id": obj.get("org_id"),
+ "pagination": Pagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None,
+ "total_count": obj.get("total_count")
+ })
+ return _obj
+
+
diff --git a/hyperstack/models/vm_usage_response.py b/hyperstack/models/billing_history_fine_tuning.py
similarity index 64%
rename from hyperstack/models/vm_usage_response.py
rename to hyperstack/models/billing_history_fine_tuning.py
index 0a5f842..d0c20b6 100644
--- a/hyperstack/models/vm_usage_response.py
+++ b/hyperstack/models/billing_history_fine_tuning.py
@@ -17,21 +17,22 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
+from pydantic import BaseModel, ConfigDict, StrictInt
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.virtual_machine_usage import VirtualMachineUsage
+from ..models.billing_history import BillingHistory
+from ..models.pagination import Pagination
from typing import Optional, Set
from typing_extensions import Self
-class VMUsageResponse(BaseModel):
+class BillingHistoryFineTuning(BaseModel):
"""
- VMUsageResponse
+ BillingHistoryFineTuning
""" # noqa: E501
- message: Optional[StrictStr] = None
+ billing_history: Optional[List[BillingHistory]] = None
org_id: Optional[StrictInt] = None
- status: Optional[StrictBool] = None
- virtual_machines: Optional[List[VirtualMachineUsage]] = None
- __properties: ClassVar[List[str]] = ["message", "org_id", "status", "virtual_machines"]
+ pagination: Optional[Pagination] = None
+ total_count: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["billing_history", "org_id", "pagination", "total_count"]
model_config = ConfigDict(
populate_by_name=True,
@@ -51,7 +52,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of VMUsageResponse from a JSON string"""
+ """Create an instance of BillingHistoryFineTuning from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -72,18 +73,21 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of each item in virtual_machines (list)
+ # override the default output from pydantic by calling `to_dict()` of each item in billing_history (list)
_items = []
- if self.virtual_machines:
- for _item_virtual_machines in self.virtual_machines:
- if _item_virtual_machines:
- _items.append(_item_virtual_machines.to_dict())
- _dict['virtual_machines'] = _items
+ if self.billing_history:
+ for _item_billing_history in self.billing_history:
+ if _item_billing_history:
+ _items.append(_item_billing_history.to_dict())
+ _dict['billing_history'] = _items
+ # override the default output from pydantic by calling `to_dict()` of pagination
+ if self.pagination:
+ _dict['pagination'] = self.pagination.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of VMUsageResponse from a dict"""
+ """Create an instance of BillingHistoryFineTuning from a dict"""
if obj is None:
return None
@@ -91,10 +95,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "message": obj.get("message"),
+ "billing_history": [BillingHistory.from_dict(_item) for _item in obj["billing_history"]] if obj.get("billing_history") is not None else None,
"org_id": obj.get("org_id"),
- "status": obj.get("status"),
- "virtual_machines": [VirtualMachineUsage.from_dict(_item) for _item in obj["virtual_machines"]] if obj.get("virtual_machines") is not None else None
+ "pagination": Pagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None,
+ "total_count": obj.get("total_count")
})
return _obj
diff --git a/hyperstack/models/billing_history_model_evalutation_details.py b/hyperstack/models/billing_history_model_evalutation_details.py
new file mode 100644
index 0000000..31ec85f
--- /dev/null
+++ b/hyperstack/models/billing_history_model_evalutation_details.py
@@ -0,0 +1,105 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from ..models.billing_history import BillingHistory
+from ..models.pagination import Pagination
+from typing import Optional, Set
+from typing_extensions import Self
+
+class BillingHistoryModelEvalutationDetails(BaseModel):
+ """
+ BillingHistoryModelEvalutationDetails
+ """ # noqa: E501
+ billing_history: Optional[List[BillingHistory]] = None
+ org_id: Optional[StrictInt] = None
+ pagination: Optional[Pagination] = None
+ total_count: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["billing_history", "org_id", "pagination", "total_count"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BillingHistoryModelEvalutationDetails from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in billing_history (list)
+ _items = []
+ if self.billing_history:
+ for _item_billing_history in self.billing_history:
+ if _item_billing_history:
+ _items.append(_item_billing_history.to_dict())
+ _dict['billing_history'] = _items
+ # override the default output from pydantic by calling `to_dict()` of pagination
+ if self.pagination:
+ _dict['pagination'] = self.pagination.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BillingHistoryModelEvalutationDetails from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "billing_history": [BillingHistory.from_dict(_item) for _item in obj["billing_history"]] if obj.get("billing_history") is not None else None,
+ "org_id": obj.get("org_id"),
+ "pagination": Pagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None,
+ "total_count": obj.get("total_count")
+ })
+ return _obj
+
+
diff --git a/hyperstack/models/get_all_discounts_fields.py b/hyperstack/models/billing_history_serverless_inference.py
similarity index 63%
rename from hyperstack/models/get_all_discounts_fields.py
rename to hyperstack/models/billing_history_serverless_inference.py
index 51b8570..ff84c28 100644
--- a/hyperstack/models/get_all_discounts_fields.py
+++ b/hyperstack/models/billing_history_serverless_inference.py
@@ -17,24 +17,22 @@
import re # noqa: F401
import json
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
+from pydantic import BaseModel, ConfigDict, StrictInt
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.discount_resource_fields import DiscountResourceFields
+from ..models.billing_history import BillingHistory
+from ..models.pagination import Pagination
from typing import Optional, Set
from typing_extensions import Self
-class GetAllDiscountsFields(BaseModel):
+class BillingHistoryServerlessInference(BaseModel):
"""
- GetAllDiscountsFields
+ BillingHistoryServerlessInference
""" # noqa: E501
- discount_resources: Optional[List[DiscountResourceFields]] = None
- discount_status: Optional[StrictStr] = None
- end_date: Optional[datetime] = None
+ billing_history: Optional[List[BillingHistory]] = None
org_id: Optional[StrictInt] = None
- org_name: Optional[StrictStr] = None
- start_date: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["discount_resources", "discount_status", "end_date", "org_id", "org_name", "start_date"]
+ pagination: Optional[Pagination] = None
+ total_count: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["billing_history", "org_id", "pagination", "total_count"]
model_config = ConfigDict(
populate_by_name=True,
@@ -54,7 +52,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of GetAllDiscountsFields from a JSON string"""
+ """Create an instance of BillingHistoryServerlessInference from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -75,18 +73,21 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of each item in discount_resources (list)
+ # override the default output from pydantic by calling `to_dict()` of each item in billing_history (list)
_items = []
- if self.discount_resources:
- for _item_discount_resources in self.discount_resources:
- if _item_discount_resources:
- _items.append(_item_discount_resources.to_dict())
- _dict['discount_resources'] = _items
+ if self.billing_history:
+ for _item_billing_history in self.billing_history:
+ if _item_billing_history:
+ _items.append(_item_billing_history.to_dict())
+ _dict['billing_history'] = _items
+ # override the default output from pydantic by calling `to_dict()` of pagination
+ if self.pagination:
+ _dict['pagination'] = self.pagination.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetAllDiscountsFields from a dict"""
+ """Create an instance of BillingHistoryServerlessInference from a dict"""
if obj is None:
return None
@@ -94,12 +95,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "discount_resources": [DiscountResourceFields.from_dict(_item) for _item in obj["discount_resources"]] if obj.get("discount_resources") is not None else None,
- "discount_status": obj.get("discount_status"),
- "end_date": obj.get("end_date"),
+ "billing_history": [BillingHistory.from_dict(_item) for _item in obj["billing_history"]] if obj.get("billing_history") is not None else None,
"org_id": obj.get("org_id"),
- "org_name": obj.get("org_name"),
- "start_date": obj.get("start_date")
+ "pagination": Pagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None,
+ "total_count": obj.get("total_count")
})
return _obj
diff --git a/hyperstack/models/billing_history_serverless_inference_details.py b/hyperstack/models/billing_history_serverless_inference_details.py
new file mode 100644
index 0000000..a7d83f7
--- /dev/null
+++ b/hyperstack/models/billing_history_serverless_inference_details.py
@@ -0,0 +1,105 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictInt
+from typing import Any, ClassVar, Dict, List, Optional
+from ..models.billing_history import BillingHistory
+from ..models.pagination import Pagination
+from typing import Optional, Set
+from typing_extensions import Self
+
+class BillingHistoryServerlessInferenceDetails(BaseModel):
+ """
+ BillingHistoryServerlessInferenceDetails
+ """ # noqa: E501
+ billing_history: Optional[List[BillingHistory]] = None
+ org_id: Optional[StrictInt] = None
+ pagination: Optional[Pagination] = None
+ total_count: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["billing_history", "org_id", "pagination", "total_count"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of BillingHistoryServerlessInferenceDetails from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of each item in billing_history (list)
+ _items = []
+ if self.billing_history:
+ for _item_billing_history in self.billing_history:
+ if _item_billing_history:
+ _items.append(_item_billing_history.to_dict())
+ _dict['billing_history'] = _items
+ # override the default output from pydantic by calling `to_dict()` of pagination
+ if self.pagination:
+ _dict['pagination'] = self.pagination.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of BillingHistoryServerlessInferenceDetails from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "billing_history": [BillingHistory.from_dict(_item) for _item in obj["billing_history"]] if obj.get("billing_history") is not None else None,
+ "org_id": obj.get("org_id"),
+ "pagination": Pagination.from_dict(obj["pagination"]) if obj.get("pagination") is not None else None,
+ "total_count": obj.get("total_count")
+ })
+ return _obj
+
+
diff --git a/hyperstack/models/billing_immune_resources_response.py b/hyperstack/models/billing_immune_resources_response.py
deleted file mode 100644
index 3f0e96e..0000000
--- a/hyperstack/models/billing_immune_resources_response.py
+++ /dev/null
@@ -1,95 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.data import Data
-from typing import Optional, Set
-from typing_extensions import Self
-
-class BillingImmuneResourcesResponse(BaseModel):
- """
- BillingImmuneResourcesResponse
- """ # noqa: E501
- data: Optional[List[Data]] = None
- __properties: ClassVar[List[str]] = ["data"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of BillingImmuneResourcesResponse from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in data (list)
- _items = []
- if self.data:
- for _item_data in self.data:
- if _item_data:
- _items.append(_item_data.to_dict())
- _dict['data'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of BillingImmuneResourcesResponse from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "data": [Data.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None
- })
- return _obj
-
-
diff --git a/hyperstack/models/billingmetricesfields.py b/hyperstack/models/billing_metrices_fields.py
similarity index 95%
rename from hyperstack/models/billingmetricesfields.py
rename to hyperstack/models/billing_metrices_fields.py
index f005812..74e07d7 100644
--- a/hyperstack/models/billingmetricesfields.py
+++ b/hyperstack/models/billing_metrices_fields.py
@@ -23,9 +23,9 @@
from typing import Optional, Set
from typing_extensions import Self
-class Billingmetricesfields(BaseModel):
+class BillingMetricesFields(BaseModel):
"""
- Billingmetricesfields
+ BillingMetricesFields
""" # noqa: E501
active: Optional[StrictBool] = None
bill_per_minute: Optional[Union[StrictFloat, StrictInt]] = None
@@ -58,7 +58,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Billingmetricesfields from a JSON string"""
+ """Create an instance of BillingMetricesFields from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -83,7 +83,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Billingmetricesfields from a dict"""
+ """Create an instance of BillingMetricesFields from a dict"""
if obj is None:
return None
diff --git a/hyperstack/models/billingmetricesresponse.py b/hyperstack/models/billing_metrices_response.py
similarity index 88%
rename from hyperstack/models/billingmetricesresponse.py
rename to hyperstack/models/billing_metrices_response.py
index 69eb07e..df644fe 100644
--- a/hyperstack/models/billingmetricesresponse.py
+++ b/hyperstack/models/billing_metrices_response.py
@@ -19,15 +19,15 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.billingmetricesfields import Billingmetricesfields
+from ..models.billing_metrices_fields import BillingMetricesFields
from typing import Optional, Set
from typing_extensions import Self
-class Billingmetricesresponse(BaseModel):
+class BillingMetricesResponse(BaseModel):
"""
- Billingmetricesresponse
+ BillingMetricesResponse
""" # noqa: E501
- data: Optional[List[Billingmetricesfields]] = None
+ data: Optional[List[BillingMetricesFields]] = None
message: Optional[StrictStr] = None
status: Optional[StrictBool] = None
__properties: ClassVar[List[str]] = ["data", "message", "status"]
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Billingmetricesresponse from a JSON string"""
+ """Create an instance of BillingMetricesResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -82,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Billingmetricesresponse from a dict"""
+ """Create an instance of BillingMetricesResponse from a dict"""
if obj is None:
return None
@@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "data": [Billingmetricesfields.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
+ "data": [BillingMetricesFields.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
"message": obj.get("message"),
"status": obj.get("status")
})
diff --git a/hyperstack/models/cluster_fields.py b/hyperstack/models/cluster_fields.py
index 6ab6f49..7979e40 100644
--- a/hyperstack/models/cluster_fields.py
+++ b/hyperstack/models/cluster_fields.py
@@ -20,7 +20,9 @@
from datetime import datetime
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.instance_flavor_fields import InstanceFlavorFields
+from ..models.cluster_flavor_fields import ClusterFlavorFields
+from ..models.cluster_node_fields import ClusterNodeFields
+from ..models.cluster_node_group_fields import ClusterNodeGroupFields
from typing import Optional, Set
from typing_extensions import Self
@@ -35,12 +37,13 @@ class ClusterFields(BaseModel):
keypair_name: Optional[StrictStr] = None
kube_config: Optional[StrictStr] = None
kubernetes_version: Optional[StrictStr] = None
+ master_flavor: Optional[ClusterFlavorFields] = None
name: Optional[StrictStr] = None
- node_count: Optional[StrictInt] = None
- node_flavor: Optional[InstanceFlavorFields] = None
+ node_groups: Optional[List[ClusterNodeGroupFields]] = None
+ nodes: Optional[List[ClusterNodeFields]] = None
status: Optional[StrictStr] = None
status_reason: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["api_address", "created_at", "environment_name", "id", "keypair_name", "kube_config", "kubernetes_version", "name", "node_count", "node_flavor", "status", "status_reason"]
+ __properties: ClassVar[List[str]] = ["api_address", "created_at", "environment_name", "id", "keypair_name", "kube_config", "kubernetes_version", "master_flavor", "name", "node_groups", "nodes", "status", "status_reason"]
model_config = ConfigDict(
populate_by_name=True,
@@ -81,9 +84,23 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of node_flavor
- if self.node_flavor:
- _dict['node_flavor'] = self.node_flavor.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of master_flavor
+ if self.master_flavor:
+ _dict['master_flavor'] = self.master_flavor.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in node_groups (list)
+ _items = []
+ if self.node_groups:
+ for _item_node_groups in self.node_groups:
+ if _item_node_groups:
+ _items.append(_item_node_groups.to_dict())
+ _dict['node_groups'] = _items
+ # override the default output from pydantic by calling `to_dict()` of each item in nodes (list)
+ _items = []
+ if self.nodes:
+ for _item_nodes in self.nodes:
+ if _item_nodes:
+ _items.append(_item_nodes.to_dict())
+ _dict['nodes'] = _items
return _dict
@classmethod
@@ -103,9 +120,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"keypair_name": obj.get("keypair_name"),
"kube_config": obj.get("kube_config"),
"kubernetes_version": obj.get("kubernetes_version"),
+ "master_flavor": ClusterFlavorFields.from_dict(obj["master_flavor"]) if obj.get("master_flavor") is not None else None,
"name": obj.get("name"),
- "node_count": obj.get("node_count"),
- "node_flavor": InstanceFlavorFields.from_dict(obj["node_flavor"]) if obj.get("node_flavor") is not None else None,
+ "node_groups": [ClusterNodeGroupFields.from_dict(_item) for _item in obj["node_groups"]] if obj.get("node_groups") is not None else None,
+ "nodes": [ClusterNodeFields.from_dict(_item) for _item in obj["nodes"]] if obj.get("nodes") is not None else None,
"status": obj.get("status"),
"status_reason": obj.get("status_reason")
})
diff --git a/hyperstack/models/add_update_flavor_organization_payload.py b/hyperstack/models/cluster_flavor_fields.py
similarity index 64%
rename from hyperstack/models/add_update_flavor_organization_payload.py
rename to hyperstack/models/cluster_flavor_fields.py
index d6686dd..89a8bee 100644
--- a/hyperstack/models/add_update_flavor_organization_payload.py
+++ b/hyperstack/models/cluster_flavor_fields.py
@@ -17,29 +17,27 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictFloat, StrictInt, StrictStr
+from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional, Union
+from ..models.lable_resonse import LableResonse
from typing import Optional, Set
from typing_extensions import Self
-class AddUpdateFlavorOrganizationPayload(BaseModel):
+class ClusterFlavorFields(BaseModel):
"""
- AddUpdateFlavorOrganizationPayload
+ ClusterFlavorFields
""" # noqa: E501
- cpu: StrictInt
- description: Optional[StrictStr] = None
- disk: StrictInt
+ cpu: Optional[StrictInt] = None
+ disk: Optional[StrictInt] = None
ephemeral: Optional[StrictInt] = None
- gpu_count: StrictInt
- gpu_id: StrictInt
- is_public: StrictBool
- labels: Optional[List[StrictStr]] = None
- name: StrictStr
- openstack_id: StrictStr
- organizations: List[StrictInt]
- ram: Union[StrictFloat, StrictInt]
- region_id: StrictInt
- __properties: ClassVar[List[str]] = ["cpu", "description", "disk", "ephemeral", "gpu_count", "gpu_id", "is_public", "labels", "name", "openstack_id", "organizations", "ram", "region_id"]
+ features: Optional[Dict[str, Any]] = None
+ gpu: Optional[StrictStr] = None
+ gpu_count: Optional[StrictInt] = None
+ id: Optional[StrictInt] = None
+ labels: Optional[List[LableResonse]] = None
+ name: Optional[StrictStr] = None
+ ram: Optional[Union[StrictFloat, StrictInt]] = None
+ __properties: ClassVar[List[str]] = ["cpu", "disk", "ephemeral", "features", "gpu", "gpu_count", "id", "labels", "name", "ram"]
model_config = ConfigDict(
populate_by_name=True,
@@ -59,7 +57,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of AddUpdateFlavorOrganizationPayload from a JSON string"""
+ """Create an instance of ClusterFlavorFields from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -80,11 +78,18 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
+ # override the default output from pydantic by calling `to_dict()` of each item in labels (list)
+ _items = []
+ if self.labels:
+ for _item_labels in self.labels:
+ if _item_labels:
+ _items.append(_item_labels.to_dict())
+ _dict['labels'] = _items
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of AddUpdateFlavorOrganizationPayload from a dict"""
+ """Create an instance of ClusterFlavorFields from a dict"""
if obj is None:
return None
@@ -93,18 +98,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"cpu": obj.get("cpu"),
- "description": obj.get("description"),
"disk": obj.get("disk"),
"ephemeral": obj.get("ephemeral"),
+ "features": obj.get("features"),
+ "gpu": obj.get("gpu"),
"gpu_count": obj.get("gpu_count"),
- "gpu_id": obj.get("gpu_id"),
- "is_public": obj.get("is_public"),
- "labels": obj.get("labels"),
+ "id": obj.get("id"),
+ "labels": [LableResonse.from_dict(_item) for _item in obj["labels"]] if obj.get("labels") is not None else None,
"name": obj.get("name"),
- "openstack_id": obj.get("openstack_id"),
- "organizations": obj.get("organizations"),
- "ram": obj.get("ram"),
- "region_id": obj.get("region_id")
+ "ram": obj.get("ram")
})
return _obj
diff --git a/hyperstack/models/historical_instances_fields.py b/hyperstack/models/cluster_node_fields.py
similarity index 64%
rename from hyperstack/models/historical_instances_fields.py
rename to hyperstack/models/cluster_node_fields.py
index 8495844..09e2578 100644
--- a/hyperstack/models/historical_instances_fields.py
+++ b/hyperstack/models/cluster_node_fields.py
@@ -18,28 +18,28 @@
import json
from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
+from ..models.cluster_node_instance_fields import ClusterNodeInstanceFields
from typing import Optional, Set
from typing_extensions import Self
-class HistoricalInstancesFields(BaseModel):
+class ClusterNodeFields(BaseModel):
"""
- HistoricalInstancesFields
+ ClusterNodeFields
""" # noqa: E501
created_at: Optional[datetime] = None
- environment: Optional[StrictStr] = None
- environment_id: Optional[StrictInt] = None
- flavor: Optional[StrictStr] = None
- flavor_id: Optional[StrictInt] = None
- floating_ip: Optional[StrictStr] = None
- host: Optional[StrictStr] = None
id: Optional[StrictInt] = None
- name: Optional[StrictStr] = None
- openstack_id: Optional[StrictStr] = None
+ instance: Optional[ClusterNodeInstanceFields] = None
+ is_bastion: Optional[StrictBool] = None
+ node_group_id: Optional[StrictInt] = None
+ node_group_name: Optional[StrictStr] = None
+ requires_public_ip: Optional[StrictBool] = None
+ role: Optional[StrictStr] = None
status: Optional[StrictStr] = None
+ status_reason: Optional[StrictStr] = None
updated_at: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["created_at", "environment", "environment_id", "flavor", "flavor_id", "floating_ip", "host", "id", "name", "openstack_id", "status", "updated_at"]
+ __properties: ClassVar[List[str]] = ["created_at", "id", "instance", "is_bastion", "node_group_id", "node_group_name", "requires_public_ip", "role", "status", "status_reason", "updated_at"]
model_config = ConfigDict(
populate_by_name=True,
@@ -59,7 +59,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of HistoricalInstancesFields from a JSON string"""
+ """Create an instance of ClusterNodeFields from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -80,11 +80,14 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
+ # override the default output from pydantic by calling `to_dict()` of instance
+ if self.instance:
+ _dict['instance'] = self.instance.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of HistoricalInstancesFields from a dict"""
+ """Create an instance of ClusterNodeFields from a dict"""
if obj is None:
return None
@@ -93,16 +96,15 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"created_at": obj.get("created_at"),
- "environment": obj.get("environment"),
- "environment_id": obj.get("environment_id"),
- "flavor": obj.get("flavor"),
- "flavor_id": obj.get("flavor_id"),
- "floating_ip": obj.get("floating_ip"),
- "host": obj.get("host"),
"id": obj.get("id"),
- "name": obj.get("name"),
- "openstack_id": obj.get("openstack_id"),
+ "instance": ClusterNodeInstanceFields.from_dict(obj["instance"]) if obj.get("instance") is not None else None,
+ "is_bastion": obj.get("is_bastion"),
+ "node_group_id": obj.get("node_group_id"),
+ "node_group_name": obj.get("node_group_name"),
+ "requires_public_ip": obj.get("requires_public_ip"),
+ "role": obj.get("role"),
"status": obj.get("status"),
+ "status_reason": obj.get("status_reason"),
"updated_at": obj.get("updated_at")
})
return _obj
diff --git a/hyperstack/models/internal_instance_flavor_fields.py b/hyperstack/models/cluster_node_group_fields.py
similarity index 74%
rename from hyperstack/models/internal_instance_flavor_fields.py
rename to hyperstack/models/cluster_node_group_fields.py
index c296e4f..150974a 100644
--- a/hyperstack/models/internal_instance_flavor_fields.py
+++ b/hyperstack/models/cluster_node_group_fields.py
@@ -20,23 +20,22 @@
from datetime import datetime
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
+from ..models.cluster_flavor_fields import ClusterFlavorFields
from typing import Optional, Set
from typing_extensions import Self
-class InternalInstanceFlavorFields(BaseModel):
+class ClusterNodeGroupFields(BaseModel):
"""
- InternalInstanceFlavorFields
+ ClusterNodeGroupFields
""" # noqa: E501
- cpu: Optional[StrictInt] = None
+ count: Optional[StrictInt] = None
created_at: Optional[datetime] = None
- disk: Optional[StrictInt] = None
- gpu: Optional[StrictStr] = None
- gpu_count: Optional[StrictInt] = None
+ flavor: Optional[ClusterFlavorFields] = None
id: Optional[StrictInt] = None
name: Optional[StrictStr] = None
- ram: Optional[StrictInt] = None
- region_name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["cpu", "created_at", "disk", "gpu", "gpu_count", "id", "name", "ram", "region_name"]
+ role: Optional[StrictStr] = None
+ updated_at: Optional[datetime] = None
+ __properties: ClassVar[List[str]] = ["count", "created_at", "flavor", "id", "name", "role", "updated_at"]
model_config = ConfigDict(
populate_by_name=True,
@@ -56,7 +55,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of InternalInstanceFlavorFields from a JSON string"""
+ """Create an instance of ClusterNodeGroupFields from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -77,11 +76,14 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
+ # override the default output from pydantic by calling `to_dict()` of flavor
+ if self.flavor:
+ _dict['flavor'] = self.flavor.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of InternalInstanceFlavorFields from a dict"""
+ """Create an instance of ClusterNodeGroupFields from a dict"""
if obj is None:
return None
@@ -89,15 +91,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "cpu": obj.get("cpu"),
+ "count": obj.get("count"),
"created_at": obj.get("created_at"),
- "disk": obj.get("disk"),
- "gpu": obj.get("gpu"),
- "gpu_count": obj.get("gpu_count"),
+ "flavor": ClusterFlavorFields.from_dict(obj["flavor"]) if obj.get("flavor") is not None else None,
"id": obj.get("id"),
"name": obj.get("name"),
- "ram": obj.get("ram"),
- "region_name": obj.get("region_name")
+ "role": obj.get("role"),
+ "updated_at": obj.get("updated_at")
})
return _obj
diff --git a/hyperstack/models/create_update_policy_response_model.py b/hyperstack/models/cluster_node_groups_create_response.py
similarity index 69%
rename from hyperstack/models/create_update_policy_response_model.py
rename to hyperstack/models/cluster_node_groups_create_response.py
index 0f526dd..d390c54 100644
--- a/hyperstack/models/create_update_policy_response_model.py
+++ b/hyperstack/models/cluster_node_groups_create_response.py
@@ -19,18 +19,20 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.policy_fields import PolicyFields
+from ..models.cluster_node_fields import ClusterNodeFields
+from ..models.cluster_node_group_fields import ClusterNodeGroupFields
from typing import Optional, Set
from typing_extensions import Self
-class CreateUpdatePolicyResponseModel(BaseModel):
+class ClusterNodeGroupsCreateResponse(BaseModel):
"""
- CreateUpdatePolicyResponseModel
+ ClusterNodeGroupsCreateResponse
""" # noqa: E501
message: Optional[StrictStr] = None
- policy: Optional[PolicyFields] = None
+ node_group: Optional[ClusterNodeGroupFields] = None
+ nodes: Optional[List[ClusterNodeFields]] = None
status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["message", "policy", "status"]
+ __properties: ClassVar[List[str]] = ["message", "node_group", "nodes", "status"]
model_config = ConfigDict(
populate_by_name=True,
@@ -50,7 +52,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CreateUpdatePolicyResponseModel from a JSON string"""
+ """Create an instance of ClusterNodeGroupsCreateResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -71,14 +73,21 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of policy
- if self.policy:
- _dict['policy'] = self.policy.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of node_group
+ if self.node_group:
+ _dict['node_group'] = self.node_group.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of each item in nodes (list)
+ _items = []
+ if self.nodes:
+ for _item_nodes in self.nodes:
+ if _item_nodes:
+ _items.append(_item_nodes.to_dict())
+ _dict['nodes'] = _items
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateUpdatePolicyResponseModel from a dict"""
+ """Create an instance of ClusterNodeGroupsCreateResponse from a dict"""
if obj is None:
return None
@@ -87,7 +96,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"message": obj.get("message"),
- "policy": PolicyFields.from_dict(obj["policy"]) if obj.get("policy") is not None else None,
+ "node_group": ClusterNodeGroupFields.from_dict(obj["node_group"]) if obj.get("node_group") is not None else None,
+ "nodes": [ClusterNodeFields.from_dict(_item) for _item in obj["nodes"]] if obj.get("nodes") is not None else None,
"status": obj.get("status")
})
return _obj
diff --git a/hyperstack/models/create_update_permission_response_model.py b/hyperstack/models/cluster_node_groups_get_response.py
similarity index 80%
rename from hyperstack/models/create_update_permission_response_model.py
rename to hyperstack/models/cluster_node_groups_get_response.py
index 4265afa..7d6e412 100644
--- a/hyperstack/models/create_update_permission_response_model.py
+++ b/hyperstack/models/cluster_node_groups_get_response.py
@@ -19,18 +19,18 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.permission_fields import PermissionFields
+from ..models.cluster_node_group_fields import ClusterNodeGroupFields
from typing import Optional, Set
from typing_extensions import Self
-class CreateUpdatePermissionResponseModel(BaseModel):
+class ClusterNodeGroupsGetResponse(BaseModel):
"""
- CreateUpdatePermissionResponseModel
+ ClusterNodeGroupsGetResponse
""" # noqa: E501
message: Optional[StrictStr] = None
- permission: Optional[PermissionFields] = None
+ node_group: Optional[ClusterNodeGroupFields] = None
status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["message", "permission", "status"]
+ __properties: ClassVar[List[str]] = ["message", "node_group", "status"]
model_config = ConfigDict(
populate_by_name=True,
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CreateUpdatePermissionResponseModel from a JSON string"""
+ """Create an instance of ClusterNodeGroupsGetResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -71,14 +71,14 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of permission
- if self.permission:
- _dict['permission'] = self.permission.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of node_group
+ if self.node_group:
+ _dict['node_group'] = self.node_group.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateUpdatePermissionResponseModel from a dict"""
+ """Create an instance of ClusterNodeGroupsGetResponse from a dict"""
if obj is None:
return None
@@ -87,7 +87,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"message": obj.get("message"),
- "permission": PermissionFields.from_dict(obj["permission"]) if obj.get("permission") is not None else None,
+ "node_group": ClusterNodeGroupFields.from_dict(obj["node_group"]) if obj.get("node_group") is not None else None,
"status": obj.get("status")
})
return _obj
diff --git a/hyperstack/models/creditrechargelimitresponse.py b/hyperstack/models/cluster_node_groups_list_response.py
similarity index 75%
rename from hyperstack/models/creditrechargelimitresponse.py
rename to hyperstack/models/cluster_node_groups_list_response.py
index 25b5aba..6b4f775 100644
--- a/hyperstack/models/creditrechargelimitresponse.py
+++ b/hyperstack/models/cluster_node_groups_list_response.py
@@ -19,18 +19,18 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.creditrechargelimitfield import Creditrechargelimitfield
+from ..models.cluster_node_group_fields import ClusterNodeGroupFields
from typing import Optional, Set
from typing_extensions import Self
-class Creditrechargelimitresponse(BaseModel):
+class ClusterNodeGroupsListResponse(BaseModel):
"""
- Creditrechargelimitresponse
+ ClusterNodeGroupsListResponse
""" # noqa: E501
- data: Optional[List[Creditrechargelimitfield]] = None
message: Optional[StrictStr] = None
+ node_groups: Optional[List[ClusterNodeGroupFields]] = None
status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["data", "message", "status"]
+ __properties: ClassVar[List[str]] = ["message", "node_groups", "status"]
model_config = ConfigDict(
populate_by_name=True,
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Creditrechargelimitresponse from a JSON string"""
+ """Create an instance of ClusterNodeGroupsListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -71,18 +71,18 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of each item in data (list)
+ # override the default output from pydantic by calling `to_dict()` of each item in node_groups (list)
_items = []
- if self.data:
- for _item_data in self.data:
- if _item_data:
- _items.append(_item_data.to_dict())
- _dict['data'] = _items
+ if self.node_groups:
+ for _item_node_groups in self.node_groups:
+ if _item_node_groups:
+ _items.append(_item_node_groups.to_dict())
+ _dict['node_groups'] = _items
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Creditrechargelimitresponse from a dict"""
+ """Create an instance of ClusterNodeGroupsListResponse from a dict"""
if obj is None:
return None
@@ -90,8 +90,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "data": [Creditrechargelimitfield.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
"message": obj.get("message"),
+ "node_groups": [ClusterNodeGroupFields.from_dict(_item) for _item in obj["node_groups"]] if obj.get("node_groups") is not None else None,
"status": obj.get("status")
})
return _obj
diff --git a/hyperstack/models/contract_eligible_instance_fields.py b/hyperstack/models/cluster_node_instance_fields.py
similarity index 78%
rename from hyperstack/models/contract_eligible_instance_fields.py
rename to hyperstack/models/cluster_node_instance_fields.py
index 1cc903a..eade4df 100644
--- a/hyperstack/models/contract_eligible_instance_fields.py
+++ b/hyperstack/models/cluster_node_instance_fields.py
@@ -22,18 +22,19 @@
from typing import Optional, Set
from typing_extensions import Self
-class ContractEligibleInstanceFields(BaseModel):
+class ClusterNodeInstanceFields(BaseModel):
"""
- ContractEligibleInstanceFields
+ ClusterNodeInstanceFields
""" # noqa: E501
contract_id: Optional[StrictInt] = None
- host: Optional[StrictStr] = None
+ fixed_ip: Optional[StrictStr] = None
+ floating_ip: Optional[StrictStr] = None
+ floating_ip_status: Optional[StrictStr] = None
id: Optional[StrictInt] = None
+ image_id: Optional[StrictInt] = None
name: Optional[StrictStr] = None
- openstack_id: Optional[StrictStr] = None
- public_ip: Optional[StrictStr] = None
status: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["contract_id", "host", "id", "name", "openstack_id", "public_ip", "status"]
+ __properties: ClassVar[List[str]] = ["contract_id", "fixed_ip", "floating_ip", "floating_ip_status", "id", "image_id", "name", "status"]
model_config = ConfigDict(
populate_by_name=True,
@@ -53,7 +54,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ContractEligibleInstanceFields from a JSON string"""
+ """Create an instance of ClusterNodeInstanceFields from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -78,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ContractEligibleInstanceFields from a dict"""
+ """Create an instance of ClusterNodeInstanceFields from a dict"""
if obj is None:
return None
@@ -87,11 +88,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"contract_id": obj.get("contract_id"),
- "host": obj.get("host"),
+ "fixed_ip": obj.get("fixed_ip"),
+ "floating_ip": obj.get("floating_ip"),
+ "floating_ip_status": obj.get("floating_ip_status"),
"id": obj.get("id"),
+ "image_id": obj.get("image_id"),
"name": obj.get("name"),
- "openstack_id": obj.get("openstack_id"),
- "public_ip": obj.get("public_ip"),
"status": obj.get("status")
})
return _obj
diff --git a/hyperstack/models/image_logos.py b/hyperstack/models/cluster_nodes_list_response.py
similarity index 78%
rename from hyperstack/models/image_logos.py
rename to hyperstack/models/cluster_nodes_list_response.py
index 1d19ee2..b463430 100644
--- a/hyperstack/models/image_logos.py
+++ b/hyperstack/models/cluster_nodes_list_response.py
@@ -19,18 +19,18 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.logo_get_response import LogoGetResponse
+from ..models.cluster_node_fields import ClusterNodeFields
from typing import Optional, Set
from typing_extensions import Self
-class ImageLogos(BaseModel):
+class ClusterNodesListResponse(BaseModel):
"""
- ImageLogos
+ ClusterNodesListResponse
""" # noqa: E501
- logos: Optional[List[LogoGetResponse]] = None
message: Optional[StrictStr] = None
+ nodes: Optional[List[ClusterNodeFields]] = None
status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["logos", "message", "status"]
+ __properties: ClassVar[List[str]] = ["message", "nodes", "status"]
model_config = ConfigDict(
populate_by_name=True,
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ImageLogos from a JSON string"""
+ """Create an instance of ClusterNodesListResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -71,18 +71,18 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of each item in logos (list)
+ # override the default output from pydantic by calling `to_dict()` of each item in nodes (list)
_items = []
- if self.logos:
- for _item_logos in self.logos:
- if _item_logos:
- _items.append(_item_logos.to_dict())
- _dict['logos'] = _items
+ if self.nodes:
+ for _item_nodes in self.nodes:
+ if _item_nodes:
+ _items.append(_item_nodes.to_dict())
+ _dict['nodes'] = _items
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ImageLogos from a dict"""
+ """Create an instance of ClusterNodesListResponse from a dict"""
if obj is None:
return None
@@ -90,8 +90,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "logos": [LogoGetResponse.from_dict(_item) for _item in obj["logos"]] if obj.get("logos") is not None else None,
"message": obj.get("message"),
+ "nodes": [ClusterNodeFields.from_dict(_item) for _item in obj["nodes"]] if obj.get("nodes") is not None else None,
"status": obj.get("status")
})
return _obj
diff --git a/hyperstack/models/internal_environment_fields.py b/hyperstack/models/cluster_version.py
similarity index 80%
rename from hyperstack/models/internal_environment_fields.py
rename to hyperstack/models/cluster_version.py
index 5c5798f..eee6085 100644
--- a/hyperstack/models/internal_environment_fields.py
+++ b/hyperstack/models/cluster_version.py
@@ -23,15 +23,17 @@
from typing import Optional, Set
from typing_extensions import Self
-class InternalEnvironmentFields(BaseModel):
+class ClusterVersion(BaseModel):
"""
- InternalEnvironmentFields
+ ClusterVersion
""" # noqa: E501
created_at: Optional[datetime] = None
id: Optional[StrictInt] = None
- name: Optional[StrictStr] = None
- region: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["created_at", "id", "name", "region"]
+ image: Optional[Dict[str, Any]] = None
+ region: Optional[Dict[str, Any]] = None
+ updated_at: Optional[datetime] = None
+ version: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["created_at", "id", "image", "region", "updated_at", "version"]
model_config = ConfigDict(
populate_by_name=True,
@@ -51,7 +53,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of InternalEnvironmentFields from a JSON string"""
+ """Create an instance of ClusterVersion from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -76,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of InternalEnvironmentFields from a dict"""
+ """Create an instance of ClusterVersion from a dict"""
if obj is None:
return None
@@ -86,8 +88,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"created_at": obj.get("created_at"),
"id": obj.get("id"),
- "name": obj.get("name"),
- "region": obj.get("region")
+ "image": obj.get("image"),
+ "region": obj.get("region"),
+ "updated_at": obj.get("updated_at"),
+ "version": obj.get("version")
})
return _obj
diff --git a/hyperstack/models/cluster_versions.py b/hyperstack/models/cluster_versions.py
index a62709a..7ea1fef 100644
--- a/hyperstack/models/cluster_versions.py
+++ b/hyperstack/models/cluster_versions.py
@@ -19,6 +19,7 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
+from ..models.cluster_version import ClusterVersion
from typing import Optional, Set
from typing_extensions import Self
@@ -28,7 +29,7 @@ class ClusterVersions(BaseModel):
""" # noqa: E501
message: Optional[StrictStr] = None
status: Optional[StrictBool] = None
- versions: Optional[List[StrictStr]] = None
+ versions: Optional[List[ClusterVersion]] = None
__properties: ClassVar[List[str]] = ["message", "status", "versions"]
model_config = ConfigDict(
@@ -70,6 +71,13 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
+ # override the default output from pydantic by calling `to_dict()` of each item in versions (list)
+ _items = []
+ if self.versions:
+ for _item_versions in self.versions:
+ if _item_versions:
+ _items.append(_item_versions.to_dict())
+ _dict['versions'] = _items
return _dict
@classmethod
@@ -84,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"message": obj.get("message"),
"status": obj.get("status"),
- "versions": obj.get("versions")
+ "versions": [ClusterVersion.from_dict(_item) for _item in obj["versions"]] if obj.get("versions") is not None else None
})
return _obj
diff --git a/hyperstack/models/future_nodes_stock_model.py b/hyperstack/models/colors.py
similarity index 73%
rename from hyperstack/models/future_nodes_stock_model.py
rename to hyperstack/models/colors.py
index 3406771..132989e 100644
--- a/hyperstack/models/future_nodes_stock_model.py
+++ b/hyperstack/models/colors.py
@@ -19,16 +19,18 @@
from pydantic import BaseModel, ConfigDict
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.future_node_response_model import FutureNodeResponseModel
+from ..models.primary_color import PrimaryColor
+from ..models.secondary_color import SecondaryColor
from typing import Optional, Set
from typing_extensions import Self
-class FutureNodesStockModel(BaseModel):
+class Colors(BaseModel):
"""
- FutureNodesStockModel
+ Colors
""" # noqa: E501
- future_stocks: Optional[List[FutureNodeResponseModel]] = None
- __properties: ClassVar[List[str]] = ["future_stocks"]
+ primary: Optional[PrimaryColor] = None
+ secondary: Optional[SecondaryColor] = None
+ __properties: ClassVar[List[str]] = ["primary", "secondary"]
model_config = ConfigDict(
populate_by_name=True,
@@ -48,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of FutureNodesStockModel from a JSON string"""
+ """Create an instance of Colors from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -69,18 +71,17 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of each item in future_stocks (list)
- _items = []
- if self.future_stocks:
- for _item_future_stocks in self.future_stocks:
- if _item_future_stocks:
- _items.append(_item_future_stocks.to_dict())
- _dict['future_stocks'] = _items
+ # override the default output from pydantic by calling `to_dict()` of primary
+ if self.primary:
+ _dict['primary'] = self.primary.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of secondary
+ if self.secondary:
+ _dict['secondary'] = self.secondary.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of FutureNodesStockModel from a dict"""
+ """Create an instance of Colors from a dict"""
if obj is None:
return None
@@ -88,7 +89,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "future_stocks": [FutureNodeResponseModel.from_dict(_item) for _item in obj["future_stocks"]] if obj.get("future_stocks") is not None else None
+ "primary": PrimaryColor.from_dict(obj["primary"]) if obj.get("primary") is not None else None,
+ "secondary": SecondaryColor.from_dict(obj["secondary"]) if obj.get("secondary") is not None else None
})
return _obj
diff --git a/hyperstack/models/contract_billing_history_response_attributes.py b/hyperstack/models/contract_billing_history_response_attributes.py
deleted file mode 100644
index 7389bcb..0000000
--- a/hyperstack/models/contract_billing_history_response_attributes.py
+++ /dev/null
@@ -1,99 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ContractBillingHistoryResponseAttributes(BaseModel):
- """
- ContractBillingHistoryResponseAttributes
- """ # noqa: E501
- description: Optional[StrictStr] = None
- end_date: Optional[StrictStr] = None
- gpu_count: Optional[StrictInt] = None
- gpu_name: Optional[StrictStr] = None
- id: Optional[StrictStr] = None
- infrahub_id: Optional[StrictInt] = None
- price_per_hour: Optional[Union[StrictFloat, StrictInt]] = None
- __properties: ClassVar[List[str]] = ["description", "end_date", "gpu_count", "gpu_name", "id", "infrahub_id", "price_per_hour"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ContractBillingHistoryResponseAttributes from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ContractBillingHistoryResponseAttributes from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "description": obj.get("description"),
- "end_date": obj.get("end_date"),
- "gpu_count": obj.get("gpu_count"),
- "gpu_name": obj.get("gpu_name"),
- "id": obj.get("id"),
- "infrahub_id": obj.get("infrahub_id"),
- "price_per_hour": obj.get("price_per_hour")
- })
- return _obj
-
-
diff --git a/hyperstack/models/contract_change_payload.py b/hyperstack/models/contract_change_payload.py
deleted file mode 100644
index 4f2c47c..0000000
--- a/hyperstack/models/contract_change_payload.py
+++ /dev/null
@@ -1,101 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.field_change import FieldChange
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ContractChangePayload(BaseModel):
- """
- ContractChangePayload
- """ # noqa: E501
- changes: Optional[List[FieldChange]] = Field(default=None, description="List of field changes for 'updated' type")
- id: StrictInt = Field(description="The ID of the contract")
- org_id: StrictInt = Field(description="The ORG ID of the contract")
- type: StrictStr = Field(description="Purpose of the change: created, deleted, expired, or updated")
- __properties: ClassVar[List[str]] = ["changes", "id", "org_id", "type"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ContractChangePayload from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in changes (list)
- _items = []
- if self.changes:
- for _item_changes in self.changes:
- if _item_changes:
- _items.append(_item_changes.to_dict())
- _dict['changes'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ContractChangePayload from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "changes": [FieldChange.from_dict(_item) for _item in obj["changes"]] if obj.get("changes") is not None else None,
- "id": obj.get("id"),
- "org_id": obj.get("org_id"),
- "type": obj.get("type")
- })
- return _obj
-
-
diff --git a/hyperstack/models/contract_discount_plan_fields.py b/hyperstack/models/contract_discount_plan_fields.py
index 81eb145..2e37691 100644
--- a/hyperstack/models/contract_discount_plan_fields.py
+++ b/hyperstack/models/contract_discount_plan_fields.py
@@ -32,10 +32,11 @@ class ContractDiscountPlanFields(BaseModel):
discount_status: Optional[StrictStr] = None
discount_type: Optional[StrictStr] = None
id: Optional[StrictInt] = None
+ remaining_count: Optional[StrictInt] = None
resource_count: Optional[StrictInt] = None
resource_id: Optional[StrictInt] = None
resource_name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["discount_amount", "discount_code", "discount_percent", "discount_status", "discount_type", "id", "resource_count", "resource_id", "resource_name"]
+ __properties: ClassVar[List[str]] = ["discount_amount", "discount_code", "discount_percent", "discount_status", "discount_type", "id", "remaining_count", "resource_count", "resource_id", "resource_name"]
model_config = ConfigDict(
populate_by_name=True,
@@ -94,6 +95,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"discount_status": obj.get("discount_status"),
"discount_type": obj.get("discount_type"),
"id": obj.get("id"),
+ "remaining_count": obj.get("remaining_count"),
"resource_count": obj.get("resource_count"),
"resource_id": obj.get("resource_id"),
"resource_name": obj.get("resource_name")
diff --git a/hyperstack/models/contract_eligible_instances_response.py b/hyperstack/models/contract_eligible_instances_response.py
deleted file mode 100644
index 9663ab1..0000000
--- a/hyperstack/models/contract_eligible_instances_response.py
+++ /dev/null
@@ -1,101 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.contract_eligible_instance_fields import ContractEligibleInstanceFields
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ContractEligibleInstancesResponse(BaseModel):
- """
- ContractEligibleInstancesResponse
- """ # noqa: E501
- instance_count: Optional[StrictInt] = None
- instances: Optional[List[ContractEligibleInstanceFields]] = None
- message: Optional[StrictStr] = None
- status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["instance_count", "instances", "message", "status"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ContractEligibleInstancesResponse from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in instances (list)
- _items = []
- if self.instances:
- for _item_instances in self.instances:
- if _item_instances:
- _items.append(_item_instances.to_dict())
- _dict['instances'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ContractEligibleInstancesResponse from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "instance_count": obj.get("instance_count"),
- "instances": [ContractEligibleInstanceFields.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None,
- "message": obj.get("message"),
- "status": obj.get("status")
- })
- return _obj
-
-
diff --git a/hyperstack/models/contract_event_create_model.py b/hyperstack/models/contract_event_create_model.py
deleted file mode 100644
index 26adb9f..0000000
--- a/hyperstack/models/contract_event_create_model.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ContractEventCreateModel(BaseModel):
- """
- ContractEventCreateModel
- """ # noqa: E501
- message: StrictStr = Field(description="Message for the event")
- reason: StrictStr = Field(description="Reason for the event")
- type: StrictStr = Field(description="Event type")
- __properties: ClassVar[List[str]] = ["message", "reason", "type"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ContractEventCreateModel from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ContractEventCreateModel from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "message": obj.get("message"),
- "reason": obj.get("reason"),
- "type": obj.get("type")
- })
- return _obj
-
-
diff --git a/hyperstack/models/contract_instance_fields.py b/hyperstack/models/contract_instance_fields.py
index 0ee0365..22f4441 100644
--- a/hyperstack/models/contract_instance_fields.py
+++ b/hyperstack/models/contract_instance_fields.py
@@ -20,6 +20,7 @@
from datetime import datetime
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
+from ..models.cluster_fields import ClusterFields
from typing import Optional, Set
from typing_extensions import Self
@@ -27,6 +28,7 @@ class ContractInstanceFields(BaseModel):
"""
ContractInstanceFields
""" # noqa: E501
+ cluster: Optional[ClusterFields] = None
created_at: Optional[datetime] = None
flavor_name: Optional[StrictStr] = None
gpu_count: Optional[StrictInt] = None
@@ -35,7 +37,7 @@ class ContractInstanceFields(BaseModel):
status: Optional[StrictStr] = None
termination_time: Optional[datetime] = None
total_usage_time: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["created_at", "flavor_name", "gpu_count", "id", "name", "status", "termination_time", "total_usage_time"]
+ __properties: ClassVar[List[str]] = ["cluster", "created_at", "flavor_name", "gpu_count", "id", "name", "status", "termination_time", "total_usage_time"]
model_config = ConfigDict(
populate_by_name=True,
@@ -76,6 +78,9 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
+ # override the default output from pydantic by calling `to_dict()` of cluster
+ if self.cluster:
+ _dict['cluster'] = self.cluster.to_dict()
return _dict
@classmethod
@@ -88,6 +93,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
+ "cluster": ClusterFields.from_dict(obj["cluster"]) if obj.get("cluster") is not None else None,
"created_at": obj.get("created_at"),
"flavor_name": obj.get("flavor_name"),
"gpu_count": obj.get("gpu_count"),
diff --git a/hyperstack/models/contract_resource_payload.py b/hyperstack/models/contract_resource_payload.py
deleted file mode 100644
index 10bb28f..0000000
--- a/hyperstack/models/contract_resource_payload.py
+++ /dev/null
@@ -1,95 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ContractResourcePayload(BaseModel):
- """
- ContractResourcePayload
- """ # noqa: E501
- discount_amount: Optional[Union[StrictFloat, StrictInt]] = None
- discount_percent: Optional[Union[StrictFloat, StrictInt]] = None
- discount_type: StrictStr
- resource_count: Optional[StrictInt] = None
- resource_id: StrictInt
- __properties: ClassVar[List[str]] = ["discount_amount", "discount_percent", "discount_type", "resource_count", "resource_id"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ContractResourcePayload from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ContractResourcePayload from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "discount_amount": obj.get("discount_amount"),
- "discount_percent": obj.get("discount_percent"),
- "discount_type": obj.get("discount_type"),
- "resource_count": obj.get("resource_count"),
- "resource_id": obj.get("resource_id")
- })
- return _obj
-
-
diff --git a/hyperstack/models/contractl_billing_history_response_metrics.py b/hyperstack/models/contractl_billing_history_response_metrics.py
deleted file mode 100644
index 7e7b796..0000000
--- a/hyperstack/models/contractl_billing_history_response_metrics.py
+++ /dev/null
@@ -1,87 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ContractlBillingHistoryResponseMetrics(BaseModel):
- """
- ContractlBillingHistoryResponseMetrics
- """ # noqa: E501
- incurred_bill: Optional[Union[StrictFloat, StrictInt]] = None
- __properties: ClassVar[List[str]] = ["incurred_bill"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ContractlBillingHistoryResponseMetrics from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ContractlBillingHistoryResponseMetrics from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "incurred_bill": obj.get("incurred_bill")
- })
- return _obj
-
-
diff --git a/hyperstack/models/future_node_response_model.py b/hyperstack/models/create_cluster_node_fields.py
similarity index 71%
rename from hyperstack/models/future_node_response_model.py
rename to hyperstack/models/create_cluster_node_fields.py
index 5187168..48d6a90 100644
--- a/hyperstack/models/future_node_response_model.py
+++ b/hyperstack/models/create_cluster_node_fields.py
@@ -17,19 +17,30 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, StrictStr
+from pydantic import BaseModel, ConfigDict, Field, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.future_node_model import FutureNodeModel
+from typing_extensions import Annotated
from typing import Optional, Set
from typing_extensions import Self
-class FutureNodeResponseModel(BaseModel):
+class CreateClusterNodeFields(BaseModel):
"""
- FutureNodeResponseModel
+ CreateClusterNodeFields
""" # noqa: E501
- nodes: Optional[List[FutureNodeModel]] = None
- region: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["nodes", "region"]
+ count: Optional[Annotated[int, Field(strict=True, ge=1)]] = None
+ node_group: Optional[StrictStr] = None
+ role: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["count", "node_group", "role"]
+
+ @field_validator('role')
+ def role_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['worker', 'master']):
+ raise ValueError("must be one of enum values ('worker', 'master')")
+ return value
model_config = ConfigDict(
populate_by_name=True,
@@ -49,7 +60,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of FutureNodeResponseModel from a JSON string"""
+ """Create an instance of CreateClusterNodeFields from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -70,18 +81,11 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of each item in nodes (list)
- _items = []
- if self.nodes:
- for _item_nodes in self.nodes:
- if _item_nodes:
- _items.append(_item_nodes.to_dict())
- _dict['nodes'] = _items
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of FutureNodeResponseModel from a dict"""
+ """Create an instance of CreateClusterNodeFields from a dict"""
if obj is None:
return None
@@ -89,8 +93,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "nodes": [FutureNodeModel.from_dict(_item) for _item in obj["nodes"]] if obj.get("nodes") is not None else None,
- "region": obj.get("region")
+ "count": obj.get("count"),
+ "node_group": obj.get("node_group"),
+ "role": obj.get("role")
})
return _obj
diff --git a/hyperstack/models/update_gpu.py b/hyperstack/models/create_cluster_node_group_payload.py
similarity index 79%
rename from hyperstack/models/update_gpu.py
rename to hyperstack/models/create_cluster_node_group_payload.py
index 3188498..0494aa6 100644
--- a/hyperstack/models/update_gpu.py
+++ b/hyperstack/models/create_cluster_node_group_payload.py
@@ -19,17 +19,18 @@
from pydantic import BaseModel, ConfigDict, Field, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
from typing import Optional, Set
from typing_extensions import Self
-class UpdateGPU(BaseModel):
+class CreateClusterNodeGroupPayload(BaseModel):
"""
- UpdateGPU
+ CreateClusterNodeGroupPayload
""" # noqa: E501
- example_metadata: Optional[StrictStr] = Field(default=None, description="A valid JSON string.")
- name: Optional[StrictStr] = None
- regions: Optional[List[StrictStr]] = None
- __properties: ClassVar[List[str]] = ["example_metadata", "name", "regions"]
+ count: Optional[Annotated[int, Field(strict=True, ge=1)]] = None
+ flavor_name: StrictStr
+ name: Annotated[str, Field(strict=True, max_length=20)]
+ __properties: ClassVar[List[str]] = ["count", "flavor_name", "name"]
model_config = ConfigDict(
populate_by_name=True,
@@ -49,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of UpdateGPU from a JSON string"""
+ """Create an instance of CreateClusterNodeGroupPayload from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -74,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of UpdateGPU from a dict"""
+ """Create an instance of CreateClusterNodeGroupPayload from a dict"""
if obj is None:
return None
@@ -82,9 +83,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "example_metadata": obj.get("example_metadata"),
- "name": obj.get("name"),
- "regions": obj.get("regions")
+ "count": obj.get("count"),
+ "flavor_name": obj.get("flavor_name"),
+ "name": obj.get("name")
})
return _obj
diff --git a/hyperstack/models/create_cluster_payload.py b/hyperstack/models/create_cluster_payload.py
index eb7f6b0..9825e52 100644
--- a/hyperstack/models/create_cluster_payload.py
+++ b/hyperstack/models/create_cluster_payload.py
@@ -17,8 +17,10 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
+from typing import Any, ClassVar, Dict, List, Optional
+from typing_extensions import Annotated
+from ..models.create_cluster_node_group_payload import CreateClusterNodeGroupPayload
from typing import Optional, Set
from typing_extensions import Self
@@ -26,15 +28,27 @@ class CreateClusterPayload(BaseModel):
"""
CreateClusterPayload
""" # noqa: E501
+ deployment_mode: Optional[StrictStr] = 'full'
environment_name: StrictStr
- image_name: StrictStr
keypair_name: StrictStr
kubernetes_version: StrictStr
+ master_count: Optional[Annotated[int, Field(le=3, strict=True, ge=2)]] = None
master_flavor_name: StrictStr
name: StrictStr
- node_count: StrictInt
- node_flavor_name: StrictStr
- __properties: ClassVar[List[str]] = ["environment_name", "image_name", "keypair_name", "kubernetes_version", "master_flavor_name", "name", "node_count", "node_flavor_name"]
+ node_count: Optional[StrictInt] = None
+ node_flavor_name: Optional[StrictStr] = None
+ node_groups: Optional[List[CreateClusterNodeGroupPayload]] = None
+ __properties: ClassVar[List[str]] = ["deployment_mode", "environment_name", "keypair_name", "kubernetes_version", "master_count", "master_flavor_name", "name", "node_count", "node_flavor_name", "node_groups"]
+
+ @field_validator('deployment_mode')
+ def deployment_mode_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['full', 'standard']):
+ raise ValueError("must be one of enum values ('full', 'standard')")
+ return value
model_config = ConfigDict(
populate_by_name=True,
@@ -75,6 +89,13 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
+ # override the default output from pydantic by calling `to_dict()` of each item in node_groups (list)
+ _items = []
+ if self.node_groups:
+ for _item_node_groups in self.node_groups:
+ if _item_node_groups:
+ _items.append(_item_node_groups.to_dict())
+ _dict['node_groups'] = _items
return _dict
@classmethod
@@ -87,14 +108,16 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
+ "deployment_mode": obj.get("deployment_mode") if obj.get("deployment_mode") is not None else 'full',
"environment_name": obj.get("environment_name"),
- "image_name": obj.get("image_name"),
"keypair_name": obj.get("keypair_name"),
"kubernetes_version": obj.get("kubernetes_version"),
+ "master_count": obj.get("master_count"),
"master_flavor_name": obj.get("master_flavor_name"),
"name": obj.get("name"),
"node_count": obj.get("node_count"),
- "node_flavor_name": obj.get("node_flavor_name")
+ "node_flavor_name": obj.get("node_flavor_name"),
+ "node_groups": [CreateClusterNodeGroupPayload.from_dict(_item) for _item in obj["node_groups"]] if obj.get("node_groups") is not None else None
})
return _obj
diff --git a/hyperstack/models/create_contract_fields.py b/hyperstack/models/create_contract_fields.py
deleted file mode 100644
index 002a4b6..0000000
--- a/hyperstack/models/create_contract_fields.py
+++ /dev/null
@@ -1,110 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.contract_discount_plan_fields import ContractDiscountPlanFields
-from typing import Optional, Set
-from typing_extensions import Self
-
-class CreateContractFields(BaseModel):
- """
- CreateContractFields
- """ # noqa: E501
- created_at: Optional[datetime] = None
- description: Optional[StrictStr] = None
- discount_plans: Optional[List[ContractDiscountPlanFields]] = None
- end_date: Optional[datetime] = None
- expiration_policy: Optional[StrictInt] = None
- id: Optional[StrictInt] = None
- org_id: Optional[StrictInt] = None
- start_date: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["created_at", "description", "discount_plans", "end_date", "expiration_policy", "id", "org_id", "start_date"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CreateContractFields from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in discount_plans (list)
- _items = []
- if self.discount_plans:
- for _item_discount_plans in self.discount_plans:
- if _item_discount_plans:
- _items.append(_item_discount_plans.to_dict())
- _dict['discount_plans'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateContractFields from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "created_at": obj.get("created_at"),
- "description": obj.get("description"),
- "discount_plans": [ContractDiscountPlanFields.from_dict(_item) for _item in obj["discount_plans"]] if obj.get("discount_plans") is not None else None,
- "end_date": obj.get("end_date"),
- "expiration_policy": obj.get("expiration_policy"),
- "id": obj.get("id"),
- "org_id": obj.get("org_id"),
- "start_date": obj.get("start_date")
- })
- return _obj
-
-
diff --git a/hyperstack/models/create_contract_payload.py b/hyperstack/models/create_contract_payload.py
deleted file mode 100644
index d16e72b..0000000
--- a/hyperstack/models/create_contract_payload.py
+++ /dev/null
@@ -1,106 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.contract_resource_payload import ContractResourcePayload
-from typing import Optional, Set
-from typing_extensions import Self
-
-class CreateContractPayload(BaseModel):
- """
- CreateContractPayload
- """ # noqa: E501
- description: Optional[StrictStr] = None
- discount_resources: List[ContractResourcePayload]
- end_date: Optional[datetime] = None
- expiration_policy: StrictInt
- org_id: StrictInt
- start_date: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["description", "discount_resources", "end_date", "expiration_policy", "org_id", "start_date"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CreateContractPayload from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in discount_resources (list)
- _items = []
- if self.discount_resources:
- for _item_discount_resources in self.discount_resources:
- if _item_discount_resources:
- _items.append(_item_discount_resources.to_dict())
- _dict['discount_resources'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateContractPayload from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "description": obj.get("description"),
- "discount_resources": [ContractResourcePayload.from_dict(_item) for _item in obj["discount_resources"]] if obj.get("discount_resources") is not None else None,
- "end_date": obj.get("end_date"),
- "expiration_policy": obj.get("expiration_policy"),
- "org_id": obj.get("org_id"),
- "start_date": obj.get("start_date")
- })
- return _obj
-
-
diff --git a/hyperstack/models/create_discounts_payload.py b/hyperstack/models/create_discounts_payload.py
deleted file mode 100644
index 0e2a622..0000000
--- a/hyperstack/models/create_discounts_payload.py
+++ /dev/null
@@ -1,112 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.customer_payload import CustomerPayload
-from ..models.discount_resource_payload import DiscountResourcePayload
-from typing import Optional, Set
-from typing_extensions import Self
-
-class CreateDiscountsPayload(BaseModel):
- """
- CreateDiscountsPayload
- """ # noqa: E501
- customers: List[CustomerPayload]
- discount_resources: List[DiscountResourcePayload]
- discount_status: StrictStr
- end_date: Optional[datetime] = None
- start_date: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["customers", "discount_resources", "discount_status", "end_date", "start_date"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CreateDiscountsPayload from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in customers (list)
- _items = []
- if self.customers:
- for _item_customers in self.customers:
- if _item_customers:
- _items.append(_item_customers.to_dict())
- _dict['customers'] = _items
- # override the default output from pydantic by calling `to_dict()` of each item in discount_resources (list)
- _items = []
- if self.discount_resources:
- for _item_discount_resources in self.discount_resources:
- if _item_discount_resources:
- _items.append(_item_discount_resources.to_dict())
- _dict['discount_resources'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateDiscountsPayload from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "customers": [CustomerPayload.from_dict(_item) for _item in obj["customers"]] if obj.get("customers") is not None else None,
- "discount_resources": [DiscountResourcePayload.from_dict(_item) for _item in obj["discount_resources"]] if obj.get("discount_resources") is not None else None,
- "discount_status": obj.get("discount_status"),
- "end_date": obj.get("end_date"),
- "start_date": obj.get("start_date")
- })
- return _obj
-
-
diff --git a/hyperstack/models/create_environment.py b/hyperstack/models/create_environment.py
index 9181bb5..dd2309c 100644
--- a/hyperstack/models/create_environment.py
+++ b/hyperstack/models/create_environment.py
@@ -28,7 +28,7 @@ class CreateEnvironment(BaseModel):
CreateEnvironment
""" # noqa: E501
name: Annotated[str, Field(strict=True, max_length=50)] = Field(description="The name of the environment being created.")
- region: StrictStr = Field(description="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: StrictStr = Field(description="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).")
__properties: ClassVar[List[str]] = ["name", "region"]
model_config = ConfigDict(
diff --git a/hyperstack/models/create_instances_payload.py b/hyperstack/models/create_instances_payload.py
index 574daaf..3f64f52 100644
--- a/hyperstack/models/create_instances_payload.py
+++ b/hyperstack/models/create_instances_payload.py
@@ -30,21 +30,21 @@ class CreateInstancesPayload(BaseModel):
"""
CreateInstancesPayload
""" # noqa: E501
- assign_floating_ip: Optional[StrictBool] = Field(default=None, description="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.")
- callback_url: Optional[Annotated[str, Field(strict=True, max_length=250)]] = Field(default=None, description="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).")
+ assign_floating_ip: Optional[StrictBool] = Field(default=None, description="When this field is set to `true`, it attaches a [public IP address](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/floating-ip/) to the virtual machine, enabling internet accessibility.")
+ callback_url: Optional[Annotated[str, Field(strict=True, max_length=250)]] = Field(default=None, description="An optional URL where actions performed on the virtual machine will be sent. For additional information on event callbacks, [**click here**](https://docs...cloud/docs/api-reference/core-resources/virtual-machines/callbacks-vms/).")
count: StrictInt = Field(description="The number of virtual machines to be created.")
create_bootable_volume: Optional[StrictBool] = Field(default=None, description="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`.")
enable_port_randomization: Optional[StrictBool] = Field(default=True, description="Indicates whether to enable port randomization.This setting is only effective if 'assign_floating_ip' is true. Defaults to true.")
- environment_name: StrictStr = Field(description="The name of the [environment](https://infrahub-doc.nexgencloud.com/docs/features/environments-available-features) in which the virtual machine is to be created.")
+ environment_name: StrictStr = Field(description="The name of the [environment](https://docs...cloud/docs/api-reference/core-resources/environments/) in which the virtual machine is to be created.")
flavor: Optional[FlavorObjectFields] = None
- flavor_name: StrictStr = Field(description="The name of the GPU hardware configuration ([flavor](https://infrahub-doc.nexgencloud.com/docs/hardware/flavors)) for the virtual machines being created.")
- image_name: Optional[StrictStr] = Field(default=None, description="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).")
- key_name: StrictStr = Field(description="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).")
+ flavor_name: StrictStr = Field(description="The name of the GPU hardware configuration ([flavor](https://docs...cloud/docs/hardware/flavors)) for the virtual machines being created.")
+ image_name: Optional[StrictStr] = Field(default=None, description="The [operating system (OS) image](https://docs...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).")
+ key_name: StrictStr = Field(description="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...cloud/docs/api-reference/core-resources/keypairs/).")
labels: Optional[List[StrictStr]] = None
name: Annotated[str, Field(strict=True, max_length=50)] = Field(description="The name of the virtual machine being created.")
profile: Optional[ProfileObjectFields] = None
security_rules: Optional[List[CreateSecurityRulePayload]] = None
- user_data: Optional[StrictStr] = Field(default=None, description="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).")
+ user_data: Optional[StrictStr] = Field(default=None, description="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...cloud/docs/virtual-machines/initialization-configuration).")
volume_name: Optional[StrictStr] = Field(default=None, description="The names of the volume(s) to be attached to the virtual machine being created.")
__properties: ClassVar[List[str]] = ["assign_floating_ip", "callback_url", "count", "create_bootable_volume", "enable_port_randomization", "environment_name", "flavor", "flavor_name", "image_name", "key_name", "labels", "name", "profile", "security_rules", "user_data", "volume_name"]
diff --git a/hyperstack/models/create_profile_payload.py b/hyperstack/models/create_profile_payload.py
index 44d95b8..fbdef3d 100644
--- a/hyperstack/models/create_profile_payload.py
+++ b/hyperstack/models/create_profile_payload.py
@@ -27,7 +27,7 @@ class CreateProfilePayload(BaseModel):
"""
CreateProfilePayload
""" # noqa: E501
- data: Dict[str, StrictStr] = Field(description="The data object which contains the configuration of the virtual machine profile being created.")
+ data: Dict[str, StrictStr] = Field(description="The data object containing the configuration details of the virtual machine profile being created.")
description: Optional[Annotated[str, Field(strict=True, max_length=150)]] = Field(default=None, description="The optional description for the profile being created.")
name: Annotated[str, Field(strict=True, max_length=50)] = Field(description="The name of the profile being created.")
__properties: ClassVar[List[str]] = ["data", "description", "name"]
diff --git a/hyperstack/models/create_snapshot_payload.py b/hyperstack/models/create_snapshot_payload.py
index 7bc07f7..ae90d39 100644
--- a/hyperstack/models/create_snapshot_payload.py
+++ b/hyperstack/models/create_snapshot_payload.py
@@ -17,7 +17,7 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
+from pydantic import BaseModel, ConfigDict, Field, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self
@@ -27,10 +27,9 @@ class CreateSnapshotPayload(BaseModel):
CreateSnapshotPayload
""" # noqa: E501
description: StrictStr = Field(description="description")
- is_image: StrictBool = Field(description="Indicates if the snapshot is an image")
labels: Optional[List[StrictStr]] = Field(default=None, description="Labels associated with snapshot")
name: StrictStr = Field(description="Snapshot name")
- __properties: ClassVar[List[str]] = ["description", "is_image", "labels", "name"]
+ __properties: ClassVar[List[str]] = ["description", "labels", "name"]
model_config = ConfigDict(
populate_by_name=True,
@@ -84,7 +83,6 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"description": obj.get("description"),
- "is_image": obj.get("is_image"),
"labels": obj.get("labels"),
"name": obj.get("name")
})
diff --git a/hyperstack/models/create_update_permission_payload.py b/hyperstack/models/create_update_permission_payload.py
deleted file mode 100644
index 3a63add..0000000
--- a/hyperstack/models/create_update_permission_payload.py
+++ /dev/null
@@ -1,93 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List
-from typing import Optional, Set
-from typing_extensions import Self
-
-class CreateUpdatePermissionPayload(BaseModel):
- """
- CreateUpdatePermissionPayload
- """ # noqa: E501
- endpoint: StrictStr
- method: StrictStr
- permission: StrictStr
- resource: StrictStr
- __properties: ClassVar[List[str]] = ["endpoint", "method", "permission", "resource"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CreateUpdatePermissionPayload from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateUpdatePermissionPayload from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "endpoint": obj.get("endpoint"),
- "method": obj.get("method"),
- "permission": obj.get("permission"),
- "resource": obj.get("resource")
- })
- return _obj
-
-
diff --git a/hyperstack/models/create_update_policy_payload.py b/hyperstack/models/create_update_policy_payload.py
deleted file mode 100644
index b830d5d..0000000
--- a/hyperstack/models/create_update_policy_payload.py
+++ /dev/null
@@ -1,93 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List
-from typing import Optional, Set
-from typing_extensions import Self
-
-class CreateUpdatePolicyPayload(BaseModel):
- """
- CreateUpdatePolicyPayload
- """ # noqa: E501
- description: StrictStr
- is_public: StrictBool
- name: StrictStr
- permissions: List[StrictInt]
- __properties: ClassVar[List[str]] = ["description", "is_public", "name", "permissions"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CreateUpdatePolicyPayload from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateUpdatePolicyPayload from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "description": obj.get("description"),
- "is_public": obj.get("is_public"),
- "name": obj.get("name"),
- "permissions": obj.get("permissions")
- })
- return _obj
-
-
diff --git a/hyperstack/models/create_volume_payload.py b/hyperstack/models/create_volume_payload.py
index 963d96e..1676458 100644
--- a/hyperstack/models/create_volume_payload.py
+++ b/hyperstack/models/create_volume_payload.py
@@ -29,7 +29,7 @@ class CreateVolumePayload(BaseModel):
""" # noqa: E501
callback_url: Optional[Annotated[str, Field(strict=True, max_length=250)]] = Field(default=None, description="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.")
description: Optional[StrictStr] = Field(default=None, description="A brief description or comment about the volume.")
- environment_name: StrictStr = Field(description="The name of the [environment](https://infrahub-doc.nexgencloud.com/docs/features/environments-available-features) within which the volume is being created.")
+ environment_name: StrictStr = Field(description="The name of the [environment](https://docs...cloud/docs/api-reference/core-resources/environments/) within which the volume is being created.")
image_id: Optional[StrictInt] = Field(default=None, description="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.")
name: Annotated[str, Field(strict=True, max_length=50)] = Field(description="The name of the volume being created.")
size: StrictInt = Field(description="The size of the volume in GB. 1048576GB storage capacity per volume.")
diff --git a/hyperstack/models/creditrechargelimitfield.py b/hyperstack/models/creditrechargelimitfield.py
deleted file mode 100644
index 55c3b68..0000000
--- a/hyperstack/models/creditrechargelimitfield.py
+++ /dev/null
@@ -1,93 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
-
-class Creditrechargelimitfield(BaseModel):
- """
- Creditrechargelimitfield
- """ # noqa: E501
- credit_granted: Optional[Union[StrictFloat, StrictInt]] = None
- credit_limit: Optional[Union[StrictFloat, StrictInt]] = None
- organization_id: Optional[StrictInt] = None
- user_id: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["credit_granted", "credit_limit", "organization_id", "user_id"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Creditrechargelimitfield from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Creditrechargelimitfield from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "credit_granted": obj.get("credit_granted"),
- "credit_limit": obj.get("credit_limit"),
- "organization_id": obj.get("organization_id"),
- "user_id": obj.get("user_id")
- })
- return _obj
-
-
diff --git a/hyperstack/models/creditrequests.py b/hyperstack/models/creditrequests.py
deleted file mode 100644
index 92ae8e4..0000000
--- a/hyperstack/models/creditrequests.py
+++ /dev/null
@@ -1,96 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
-
-class Creditrequests(BaseModel):
- """
- Creditrequests
- """ # noqa: E501
- admin_user_id: Optional[StrictInt] = None
- amount: Optional[Union[StrictFloat, StrictInt]] = None
- reason: Optional[StrictStr] = None
- status: Optional[StrictStr] = None
- updated_at: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["admin_user_id", "amount", "reason", "status", "updated_at"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Creditrequests from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Creditrequests from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "admin_user_id": obj.get("admin_user_id"),
- "amount": obj.get("amount"),
- "reason": obj.get("reason"),
- "status": obj.get("status"),
- "updated_at": obj.get("updated_at")
- })
- return _obj
-
-
diff --git a/hyperstack/models/data.py b/hyperstack/models/data.py
deleted file mode 100644
index aee8805..0000000
--- a/hyperstack/models/data.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class Data(BaseModel):
- """
- Data
- """ # noqa: E501
- organization_id: Optional[StrictInt] = Field(default=None, description="Organization ID associated with the resource.")
- resource_id: Optional[StrictInt] = Field(default=None, description="ID of the resource.")
- resource_type: Optional[StrictStr] = Field(default=None, description="Type of the resource.")
- __properties: ClassVar[List[str]] = ["organization_id", "resource_id", "resource_type"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Data from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Data from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "organization_id": obj.get("organization_id"),
- "resource_id": obj.get("resource_id"),
- "resource_type": obj.get("resource_type")
- })
- return _obj
-
-
diff --git a/hyperstack/models/data_synthesis_billing_history_details_response_schema.py b/hyperstack/models/data_synthesis_billing_history_details_response_schema.py
new file mode 100644
index 0000000..37c1989
--- /dev/null
+++ b/hyperstack/models/data_synthesis_billing_history_details_response_schema.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from ..models.billing_history_data_synthesis_details import BillingHistoryDataSynthesisDetails
+from typing import Optional, Set
+from typing_extensions import Self
+
+class DataSynthesisBillingHistoryDetailsResponseSchema(BaseModel):
+ """
+ DataSynthesisBillingHistoryDetailsResponseSchema
+ """ # noqa: E501
+ billing_history_data_synthesis_details: Optional[BillingHistoryDataSynthesisDetails] = None
+ message: Optional[StrictStr] = None
+ status: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = ["billing_history_data_synthesis_details", "message", "status"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of DataSynthesisBillingHistoryDetailsResponseSchema from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of billing_history_data_synthesis_details
+ if self.billing_history_data_synthesis_details:
+ _dict['billing_history_data_synthesis_details'] = self.billing_history_data_synthesis_details.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of DataSynthesisBillingHistoryDetailsResponseSchema from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "billing_history_data_synthesis_details": BillingHistoryDataSynthesisDetails.from_dict(obj["billing_history_data_synthesis_details"]) if obj.get("billing_history_data_synthesis_details") is not None else None,
+ "message": obj.get("message"),
+ "status": obj.get("status")
+ })
+ return _obj
+
+
diff --git a/hyperstack/models/deployment_fieldsforstartdeployments.py b/hyperstack/models/deployment_fields_for_start_deployments.py
similarity index 93%
rename from hyperstack/models/deployment_fieldsforstartdeployments.py
rename to hyperstack/models/deployment_fields_for_start_deployments.py
index da3b143..4937ed6 100644
--- a/hyperstack/models/deployment_fieldsforstartdeployments.py
+++ b/hyperstack/models/deployment_fields_for_start_deployments.py
@@ -23,9 +23,9 @@
from typing import Optional, Set
from typing_extensions import Self
-class DeploymentFieldsforstartdeployments(BaseModel):
+class DeploymentFieldsForStartDeployments(BaseModel):
"""
- DeploymentFieldsforstartdeployments
+ DeploymentFieldsForStartDeployments
""" # noqa: E501
created_at: Optional[datetime] = None
description: Optional[StrictStr] = None
@@ -54,7 +54,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of DeploymentFieldsforstartdeployments from a JSON string"""
+ """Create an instance of DeploymentFieldsForStartDeployments from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -79,7 +79,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DeploymentFieldsforstartdeployments from a dict"""
+ """Create an instance of DeploymentFieldsForStartDeployments from a dict"""
if obj is None:
return None
diff --git a/hyperstack/models/discount_entity_model.py b/hyperstack/models/discount_entity_model.py
deleted file mode 100644
index 0d2ffba..0000000
--- a/hyperstack/models/discount_entity_model.py
+++ /dev/null
@@ -1,97 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.discount_plan_fields import DiscountPlanFields
-from typing import Optional, Set
-from typing_extensions import Self
-
-class DiscountEntityModel(BaseModel):
- """
- DiscountEntityModel
- """ # noqa: E501
- data: Optional[List[DiscountPlanFields]] = None
- entity: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["data", "entity"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of DiscountEntityModel from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in data (list)
- _items = []
- if self.data:
- for _item_data in self.data:
- if _item_data:
- _items.append(_item_data.to_dict())
- _dict['data'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DiscountEntityModel from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "data": [DiscountPlanFields.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
- "entity": obj.get("entity")
- })
- return _obj
-
-
diff --git a/hyperstack/models/discount_fields.py b/hyperstack/models/discount_fields.py
deleted file mode 100644
index 46cd840..0000000
--- a/hyperstack/models/discount_fields.py
+++ /dev/null
@@ -1,100 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class DiscountFields(BaseModel):
- """
- DiscountFields
- """ # noqa: E501
- discount_status: Optional[StrictStr] = None
- end_date: Optional[datetime] = None
- org_id: Optional[StrictInt] = None
- org_name: Optional[StrictStr] = None
- plan_type: Optional[StrictStr] = None
- vm_id: Optional[StrictInt] = None
- vm_name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["discount_status", "end_date", "org_id", "org_name", "plan_type", "vm_id", "vm_name"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of DiscountFields from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DiscountFields from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "discount_status": obj.get("discount_status"),
- "end_date": obj.get("end_date"),
- "org_id": obj.get("org_id"),
- "org_name": obj.get("org_name"),
- "plan_type": obj.get("plan_type"),
- "vm_id": obj.get("vm_id"),
- "vm_name": obj.get("vm_name")
- })
- return _obj
-
-
diff --git a/hyperstack/models/discount_plan_fields.py b/hyperstack/models/discount_plan_fields.py
deleted file mode 100644
index a4fe6a8..0000000
--- a/hyperstack/models/discount_plan_fields.py
+++ /dev/null
@@ -1,108 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
-
-class DiscountPlanFields(BaseModel):
- """
- DiscountPlanFields
- """ # noqa: E501
- discount_amount: Optional[Union[StrictFloat, StrictInt]] = None
- discount_code: Optional[StrictStr] = None
- discount_percent: Optional[Union[StrictFloat, StrictInt]] = None
- discount_status: Optional[StrictStr] = None
- discount_type: Optional[StrictStr] = None
- end_date: Optional[datetime] = None
- id: Optional[StrictInt] = None
- resource: Optional[StrictStr] = None
- start_date: Optional[datetime] = None
- validity_days: Optional[StrictInt] = None
- vm_id: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["discount_amount", "discount_code", "discount_percent", "discount_status", "discount_type", "end_date", "id", "resource", "start_date", "validity_days", "vm_id"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of DiscountPlanFields from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DiscountPlanFields from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "discount_amount": obj.get("discount_amount"),
- "discount_code": obj.get("discount_code"),
- "discount_percent": obj.get("discount_percent"),
- "discount_status": obj.get("discount_status"),
- "discount_type": obj.get("discount_type"),
- "end_date": obj.get("end_date"),
- "id": obj.get("id"),
- "resource": obj.get("resource"),
- "start_date": obj.get("start_date"),
- "validity_days": obj.get("validity_days"),
- "vm_id": obj.get("vm_id")
- })
- return _obj
-
-
diff --git a/hyperstack/models/discount_resource_fields.py b/hyperstack/models/discount_resource_fields.py
deleted file mode 100644
index f185342..0000000
--- a/hyperstack/models/discount_resource_fields.py
+++ /dev/null
@@ -1,93 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
-
-class DiscountResourceFields(BaseModel):
- """
- DiscountResourceFields
- """ # noqa: E501
- discount_amount: Optional[Union[StrictFloat, StrictInt]] = None
- discount_percent: Optional[Union[StrictFloat, StrictInt]] = None
- discount_type: Optional[StrictStr] = None
- resource_id: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["discount_amount", "discount_percent", "discount_type", "resource_id"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of DiscountResourceFields from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DiscountResourceFields from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "discount_amount": obj.get("discount_amount"),
- "discount_percent": obj.get("discount_percent"),
- "discount_type": obj.get("discount_type"),
- "resource_id": obj.get("resource_id")
- })
- return _obj
-
-
diff --git a/hyperstack/models/discount_resource_payload.py b/hyperstack/models/discount_resource_payload.py
deleted file mode 100644
index e969e5e..0000000
--- a/hyperstack/models/discount_resource_payload.py
+++ /dev/null
@@ -1,93 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Union
-from typing import Optional, Set
-from typing_extensions import Self
-
-class DiscountResourcePayload(BaseModel):
- """
- DiscountResourcePayload
- """ # noqa: E501
- discount_amount: Union[StrictFloat, StrictInt]
- discount_percent: Union[StrictFloat, StrictInt]
- discount_type: StrictStr
- resource_id: StrictInt
- __properties: ClassVar[List[str]] = ["discount_amount", "discount_percent", "discount_type", "resource_id"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of DiscountResourcePayload from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of DiscountResourcePayload from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "discount_amount": obj.get("discount_amount"),
- "discount_percent": obj.get("discount_percent"),
- "discount_type": obj.get("discount_type"),
- "resource_id": obj.get("resource_id")
- })
- return _obj
-
-
diff --git a/hyperstack/models/editlabelofanexisting_vm_payload.py b/hyperstack/models/edit_label_of_an_existing_vm_payload.py
similarity index 92%
rename from hyperstack/models/editlabelofanexisting_vm_payload.py
rename to hyperstack/models/edit_label_of_an_existing_vm_payload.py
index b8eebbc..7e3d795 100644
--- a/hyperstack/models/editlabelofanexisting_vm_payload.py
+++ b/hyperstack/models/edit_label_of_an_existing_vm_payload.py
@@ -22,9 +22,9 @@
from typing import Optional, Set
from typing_extensions import Self
-class EditlabelofanexistingVMPayload(BaseModel):
+class EditLabelOfAnExistingVMPayload(BaseModel):
"""
- EditlabelofanexistingVMPayload
+ EditLabelOfAnExistingVMPayload
""" # noqa: E501
labels: Optional[List[StrictStr]] = Field(default=None, description="Multiple labels can be added by separating with spaces")
__properties: ClassVar[List[str]] = ["labels"]
@@ -47,7 +47,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of EditlabelofanexistingVMPayload from a JSON string"""
+ """Create an instance of EditLabelOfAnExistingVMPayload from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of EditlabelofanexistingVMPayload from a dict"""
+ """Create an instance of EditLabelOfAnExistingVMPayload from a dict"""
if obj is None:
return None
diff --git a/hyperstack/models/environment_features.py b/hyperstack/models/environment_features.py
index 71b0b54..494a70c 100644
--- a/hyperstack/models/environment_features.py
+++ b/hyperstack/models/environment_features.py
@@ -17,7 +17,7 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, StrictBool
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self
@@ -26,8 +26,19 @@ class EnvironmentFeatures(BaseModel):
"""
EnvironmentFeatures
""" # noqa: E501
+ green_status: Optional[StrictStr] = None
network_optimised: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["network_optimised"]
+ __properties: ClassVar[List[str]] = ["green_status", "network_optimised"]
+
+ @field_validator('green_status')
+ def green_status_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['GREEN', 'PARTIALLY_GREEN', 'NOT_GREEN']):
+ raise ValueError("must be one of enum values ('GREEN', 'PARTIALLY_GREEN', 'NOT_GREEN')")
+ return value
model_config = ConfigDict(
populate_by_name=True,
@@ -80,6 +91,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
+ "green_status": obj.get("green_status"),
"network_optimised": obj.get("network_optimised")
})
return _obj
diff --git a/hyperstack/models/node_stocks_payload.py b/hyperstack/models/environment_fields_for_volume.py
similarity index 82%
rename from hyperstack/models/node_stocks_payload.py
rename to hyperstack/models/environment_fields_for_volume.py
index 71849bd..de5f9cd 100644
--- a/hyperstack/models/node_stocks_payload.py
+++ b/hyperstack/models/environment_fields_for_volume.py
@@ -17,20 +17,19 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
+from pydantic import BaseModel, ConfigDict, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self
-class NodeStocksPayload(BaseModel):
+class EnvironmentFieldsForVolume(BaseModel):
"""
- NodeStocksPayload
+ EnvironmentFieldsForVolume
""" # noqa: E501
- in_use: StrictInt
+ features: Optional[Dict[str, Any]] = None
name: Optional[StrictStr] = None
- total: StrictInt
- type: StrictStr
- __properties: ClassVar[List[str]] = ["in_use", "name", "total", "type"]
+ region: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["features", "name", "region"]
model_config = ConfigDict(
populate_by_name=True,
@@ -50,7 +49,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of NodeStocksPayload from a JSON string"""
+ """Create an instance of EnvironmentFieldsForVolume from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -75,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of NodeStocksPayload from a dict"""
+ """Create an instance of EnvironmentFieldsForVolume from a dict"""
if obj is None:
return None
@@ -83,10 +82,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "in_use": obj.get("in_use"),
+ "features": obj.get("features"),
"name": obj.get("name"),
- "total": obj.get("total"),
- "type": obj.get("type")
+ "region": obj.get("region")
})
return _obj
diff --git a/hyperstack/models/exclude_billing_post_payload.py b/hyperstack/models/exclude_billing_post_payload.py
deleted file mode 100644
index ae601f3..0000000
--- a/hyperstack/models/exclude_billing_post_payload.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List
-from typing import Optional, Set
-from typing_extensions import Self
-
-class ExcludeBillingPostPayload(BaseModel):
- """
- ExcludeBillingPostPayload
- """ # noqa: E501
- exclude: StrictBool = Field(description="`true` excludes the resource from billing while `false` does not.")
- resource_id: StrictInt = Field(description="The ID of the resource which is being excluded from billing.")
- resource_type: StrictStr = Field(description="The type of the resource which is being excluded from billing.")
- __properties: ClassVar[List[str]] = ["exclude", "resource_id", "resource_type"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ExcludeBillingPostPayload from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ExcludeBillingPostPayload from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "exclude": obj.get("exclude"),
- "resource_id": obj.get("resource_id"),
- "resource_type": obj.get("resource_type")
- })
- return _obj
-
-
diff --git a/hyperstack/models/field_change.py b/hyperstack/models/field_change.py
deleted file mode 100644
index 16901a0..0000000
--- a/hyperstack/models/field_change.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class FieldChange(BaseModel):
- """
- FieldChange
- """ # noqa: E501
- field_name: Optional[StrictStr] = Field(default=None, description="The name of the field that was changed")
- new_value: Optional[StrictStr] = Field(default=None, description="The new value of the field")
- old_value: Optional[StrictStr] = Field(default=None, description="The old value of the field")
- __properties: ClassVar[List[str]] = ["field_name", "new_value", "old_value"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of FieldChange from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of FieldChange from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "field_name": obj.get("field_name"),
- "new_value": obj.get("new_value"),
- "old_value": obj.get("old_value")
- })
- return _obj
-
-
diff --git a/hyperstack/models/flavor_fields.py b/hyperstack/models/flavor_fields.py
index dc4ee8e..93d9e5c 100644
--- a/hyperstack/models/flavor_fields.py
+++ b/hyperstack/models/flavor_fields.py
@@ -33,6 +33,7 @@ class FlavorFields(BaseModel):
disk: Optional[StrictInt] = None
display_name: Optional[StrictStr] = None
ephemeral: Optional[StrictInt] = None
+ features: Optional[Dict[str, Any]] = None
gpu: Optional[StrictStr] = None
gpu_count: Optional[StrictInt] = None
id: Optional[StrictInt] = None
@@ -41,7 +42,7 @@ class FlavorFields(BaseModel):
ram: Optional[Union[StrictFloat, StrictInt]] = None
region_name: Optional[StrictStr] = None
stock_available: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["cpu", "created_at", "disk", "display_name", "ephemeral", "gpu", "gpu_count", "id", "labels", "name", "ram", "region_name", "stock_available"]
+ __properties: ClassVar[List[str]] = ["cpu", "created_at", "disk", "display_name", "ephemeral", "features", "gpu", "gpu_count", "id", "labels", "name", "ram", "region_name", "stock_available"]
model_config = ConfigDict(
populate_by_name=True,
@@ -106,6 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"disk": obj.get("disk"),
"display_name": obj.get("display_name"),
"ephemeral": obj.get("ephemeral"),
+ "features": obj.get("features"),
"gpu": obj.get("gpu"),
"gpu_count": obj.get("gpu_count"),
"id": obj.get("id"),
diff --git a/hyperstack/models/customer_fields.py b/hyperstack/models/flavor_label_fields.py
similarity index 88%
rename from hyperstack/models/customer_fields.py
rename to hyperstack/models/flavor_label_fields.py
index b218c88..d36f23e 100644
--- a/hyperstack/models/customer_fields.py
+++ b/hyperstack/models/flavor_label_fields.py
@@ -22,13 +22,13 @@
from typing import Optional, Set
from typing_extensions import Self
-class CustomerFields(BaseModel):
+class FlavorLabelFields(BaseModel):
"""
- CustomerFields
+ FlavorLabelFields
""" # noqa: E501
id: Optional[StrictInt] = None
- plan_type: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "plan_type"]
+ label: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["id", "label"]
model_config = ConfigDict(
populate_by_name=True,
@@ -48,7 +48,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CustomerFields from a JSON string"""
+ """Create an instance of FlavorLabelFields from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -73,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CustomerFields from a dict"""
+ """Create an instance of FlavorLabelFields from a dict"""
if obj is None:
return None
@@ -82,7 +82,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"id": obj.get("id"),
- "plan_type": obj.get("plan_type")
+ "label": obj.get("label")
})
return _obj
diff --git a/hyperstack/models/flavor_payload.py b/hyperstack/models/flavor_payload.py
deleted file mode 100644
index 38acd06..0000000
--- a/hyperstack/models/flavor_payload.py
+++ /dev/null
@@ -1,101 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Union
-from typing import Optional, Set
-from typing_extensions import Self
-
-class FlavorPayload(BaseModel):
- """
- FlavorPayload
- """ # noqa: E501
- cpu: StrictInt
- disk: StrictInt
- gpu: StrictStr
- gpu_count: StrictInt
- is_public: StrictBool
- name: StrictStr
- ram: Union[StrictFloat, StrictInt]
- region_name: StrictStr
- __properties: ClassVar[List[str]] = ["cpu", "disk", "gpu", "gpu_count", "is_public", "name", "ram", "region_name"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of FlavorPayload from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of FlavorPayload from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "cpu": obj.get("cpu"),
- "disk": obj.get("disk"),
- "gpu": obj.get("gpu"),
- "gpu_count": obj.get("gpu_count"),
- "is_public": obj.get("is_public"),
- "name": obj.get("name"),
- "ram": obj.get("ram"),
- "region_name": obj.get("region_name")
- })
- return _obj
-
-
diff --git a/hyperstack/models/flavor_vms_response.py b/hyperstack/models/flavor_vms_response.py
deleted file mode 100644
index 3913b00..0000000
--- a/hyperstack/models/flavor_vms_response.py
+++ /dev/null
@@ -1,99 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.flavor_vm_fields import FlavorVMFields
-from typing import Optional, Set
-from typing_extensions import Self
-
-class FlavorVMsResponse(BaseModel):
- """
- FlavorVMsResponse
- """ # noqa: E501
- flavor_vms: Optional[List[FlavorVMFields]] = None
- message: Optional[StrictStr] = None
- status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["flavor_vms", "message", "status"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of FlavorVMsResponse from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in flavor_vms (list)
- _items = []
- if self.flavor_vms:
- for _item_flavor_vms in self.flavor_vms:
- if _item_flavor_vms:
- _items.append(_item_flavor_vms.to_dict())
- _dict['flavor_vms'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of FlavorVMsResponse from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "flavor_vms": [FlavorVMFields.from_dict(_item) for _item in obj["flavor_vms"]] if obj.get("flavor_vms") is not None else None,
- "message": obj.get("message"),
- "status": obj.get("status")
- })
- return _obj
-
-
diff --git a/hyperstack/models/future_node_stock_model.py b/hyperstack/models/future_node_stock_model.py
deleted file mode 100644
index b39a4cc..0000000
--- a/hyperstack/models/future_node_stock_model.py
+++ /dev/null
@@ -1,93 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class FutureNodeStockModel(BaseModel):
- """
- FutureNodeStockModel
- """ # noqa: E501
- expected_amount: StrictInt
- id: Optional[StrictInt] = None
- name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["expected_amount", "id", "name"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of FutureNodeStockModel from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- * OpenAPI `readOnly` fields are excluded.
- """
- excluded_fields: Set[str] = set([
- "id",
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of FutureNodeStockModel from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "expected_amount": obj.get("expected_amount"),
- "id": obj.get("id"),
- "name": obj.get("name")
- })
- return _obj
-
-
diff --git a/hyperstack/models/future_node_update_model.py b/hyperstack/models/future_node_update_model.py
deleted file mode 100644
index a83921e..0000000
--- a/hyperstack/models/future_node_update_model.py
+++ /dev/null
@@ -1,98 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class FutureNodeUpdateModel(BaseModel):
- """
- FutureNodeUpdateModel
- """ # noqa: E501
- expected_provision_date: datetime
- id: Optional[StrictInt] = None
- nexgen_name: StrictStr
- openstack_name: StrictStr
- region_id: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["expected_provision_date", "id", "nexgen_name", "openstack_name", "region_id"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of FutureNodeUpdateModel from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- * OpenAPI `readOnly` fields are excluded.
- """
- excluded_fields: Set[str] = set([
- "id",
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of FutureNodeUpdateModel from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "expected_provision_date": obj.get("expected_provision_date"),
- "id": obj.get("id"),
- "nexgen_name": obj.get("nexgen_name"),
- "openstack_name": obj.get("openstack_name"),
- "region_id": obj.get("region_id")
- })
- return _obj
-
-
diff --git a/hyperstack/models/get_all_contract_fields.py b/hyperstack/models/get_all_contract_fields.py
deleted file mode 100644
index 0b82ed8..0000000
--- a/hyperstack/models/get_all_contract_fields.py
+++ /dev/null
@@ -1,100 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class GetAllContractFields(BaseModel):
- """
- GetAllContractFields
- """ # noqa: E501
- created_at: Optional[datetime] = None
- description: Optional[StrictStr] = None
- end_date: Optional[datetime] = None
- expiration_policy: Optional[StrictInt] = None
- id: Optional[StrictInt] = None
- org_id: Optional[StrictInt] = None
- start_date: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["created_at", "description", "end_date", "expiration_policy", "id", "org_id", "start_date"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of GetAllContractFields from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetAllContractFields from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "created_at": obj.get("created_at"),
- "description": obj.get("description"),
- "end_date": obj.get("end_date"),
- "expiration_policy": obj.get("expiration_policy"),
- "id": obj.get("id"),
- "org_id": obj.get("org_id"),
- "start_date": obj.get("start_date")
- })
- return _obj
-
-
diff --git a/hyperstack/models/getcreditandthresholdinfo.py b/hyperstack/models/get_credit_and_threshold_info.py
similarity index 93%
rename from hyperstack/models/getcreditandthresholdinfo.py
rename to hyperstack/models/get_credit_and_threshold_info.py
index ccc0cd0..1fa9069 100644
--- a/hyperstack/models/getcreditandthresholdinfo.py
+++ b/hyperstack/models/get_credit_and_threshold_info.py
@@ -22,9 +22,9 @@
from typing import Optional, Set
from typing_extensions import Self
-class Getcreditandthresholdinfo(BaseModel):
+class GetCreditAndThresholdInfo(BaseModel):
"""
- Getcreditandthresholdinfo
+ GetCreditAndThresholdInfo
""" # noqa: E501
can_create_instance: Optional[StrictBool] = None
credit: Optional[Union[StrictFloat, StrictInt]] = None
@@ -49,7 +49,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Getcreditandthresholdinfo from a JSON string"""
+ """Create an instance of GetCreditAndThresholdInfo from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -74,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Getcreditandthresholdinfo from a dict"""
+ """Create an instance of GetCreditAndThresholdInfo from a dict"""
if obj is None:
return None
diff --git a/hyperstack/models/getcreditandthresholdinfoinresponse.py b/hyperstack/models/get_credit_and_threshold_info_in_response.py
similarity index 87%
rename from hyperstack/models/getcreditandthresholdinfoinresponse.py
rename to hyperstack/models/get_credit_and_threshold_info_in_response.py
index 7b41bc2..0bdd560 100644
--- a/hyperstack/models/getcreditandthresholdinfoinresponse.py
+++ b/hyperstack/models/get_credit_and_threshold_info_in_response.py
@@ -19,15 +19,15 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.getcreditandthresholdinfo import Getcreditandthresholdinfo
+from ..models.get_credit_and_threshold_info import GetCreditAndThresholdInfo
from typing import Optional, Set
from typing_extensions import Self
-class Getcreditandthresholdinfoinresponse(BaseModel):
+class GetCreditAndThresholdInfoInResponse(BaseModel):
"""
- Getcreditandthresholdinfoinresponse
+ GetCreditAndThresholdInfoInResponse
""" # noqa: E501
- data: Optional[Getcreditandthresholdinfo] = None
+ data: Optional[GetCreditAndThresholdInfo] = None
message: Optional[StrictStr] = None
status: Optional[StrictBool] = None
__properties: ClassVar[List[str]] = ["data", "message", "status"]
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Getcreditandthresholdinfoinresponse from a JSON string"""
+ """Create an instance of GetCreditAndThresholdInfoInResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Getcreditandthresholdinfoinresponse from a dict"""
+ """Create an instance of GetCreditAndThresholdInfoInResponse from a dict"""
if obj is None:
return None
@@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "data": Getcreditandthresholdinfo.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "data": GetCreditAndThresholdInfo.from_dict(obj["data"]) if obj.get("data") is not None else None,
"message": obj.get("message"),
"status": obj.get("status")
})
diff --git a/hyperstack/models/get_discount_response.py b/hyperstack/models/get_discount_response.py
deleted file mode 100644
index 819e65f..0000000
--- a/hyperstack/models/get_discount_response.py
+++ /dev/null
@@ -1,99 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.discount_fields import DiscountFields
-from typing import Optional, Set
-from typing_extensions import Self
-
-class GetDiscountResponse(BaseModel):
- """
- GetDiscountResponse
- """ # noqa: E501
- discount_entites: Optional[List[DiscountFields]] = None
- message: Optional[StrictStr] = None
- status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["discount_entites", "message", "status"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of GetDiscountResponse from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in discount_entites (list)
- _items = []
- if self.discount_entites:
- for _item_discount_entites in self.discount_entites:
- if _item_discount_entites:
- _items.append(_item_discount_entites.to_dict())
- _dict['discount_entites'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetDiscountResponse from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "discount_entites": [DiscountFields.from_dict(_item) for _item in obj["discount_entites"]] if obj.get("discount_entites") is not None else None,
- "message": obj.get("message"),
- "status": obj.get("status")
- })
- return _obj
-
-
diff --git a/hyperstack/models/get_entity_discount_detail_response.py b/hyperstack/models/get_entity_discount_detail_response.py
deleted file mode 100644
index 8d8db38..0000000
--- a/hyperstack/models/get_entity_discount_detail_response.py
+++ /dev/null
@@ -1,108 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.discount_plan_fields import DiscountPlanFields
-from typing import Optional, Set
-from typing_extensions import Self
-
-class GetEntityDiscountDetailResponse(BaseModel):
- """
- GetEntityDiscountDetailResponse
- """ # noqa: E501
- message: Optional[StrictStr] = None
- organization: Optional[List[DiscountPlanFields]] = None
- status: Optional[StrictBool] = None
- virtual_machine: Optional[List[DiscountPlanFields]] = Field(default=None, alias="virtual-machine")
- __properties: ClassVar[List[str]] = ["message", "organization", "status", "virtual-machine"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of GetEntityDiscountDetailResponse from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in organization (list)
- _items = []
- if self.organization:
- for _item_organization in self.organization:
- if _item_organization:
- _items.append(_item_organization.to_dict())
- _dict['organization'] = _items
- # override the default output from pydantic by calling `to_dict()` of each item in virtual_machine (list)
- _items = []
- if self.virtual_machine:
- for _item_virtual_machine in self.virtual_machine:
- if _item_virtual_machine:
- _items.append(_item_virtual_machine.to_dict())
- _dict['virtual-machine'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetEntityDiscountDetailResponse from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "message": obj.get("message"),
- "organization": [DiscountPlanFields.from_dict(_item) for _item in obj["organization"]] if obj.get("organization") is not None else None,
- "status": obj.get("status"),
- "virtual-machine": [DiscountPlanFields.from_dict(_item) for _item in obj["virtual-machine"]] if obj.get("virtual-machine") is not None else None
- })
- return _obj
-
-
diff --git a/hyperstack/models/region_payload.py b/hyperstack/models/get_instance_logs_response.py
similarity index 86%
rename from hyperstack/models/region_payload.py
rename to hyperstack/models/get_instance_logs_response.py
index f701d62..e4fa1bd 100644
--- a/hyperstack/models/region_payload.py
+++ b/hyperstack/models/get_instance_logs_response.py
@@ -22,13 +22,12 @@
from typing import Optional, Set
from typing_extensions import Self
-class RegionPayload(BaseModel):
+class GetInstanceLogsResponse(BaseModel):
"""
- RegionPayload
+ GetInstanceLogsResponse
""" # noqa: E501
- description: Optional[StrictStr] = None
- name: StrictStr
- __properties: ClassVar[List[str]] = ["description", "name"]
+ logs: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["logs"]
model_config = ConfigDict(
populate_by_name=True,
@@ -48,7 +47,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of RegionPayload from a JSON string"""
+ """Create an instance of GetInstanceLogsResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -73,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of RegionPayload from a dict"""
+ """Create an instance of GetInstanceLogsResponse from a dict"""
if obj is None:
return None
@@ -81,8 +80,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "description": obj.get("description"),
- "name": obj.get("name")
+ "logs": obj.get("logs")
})
return _obj
diff --git a/hyperstack/models/get_token_payload.py b/hyperstack/models/get_token_payload.py
deleted file mode 100644
index f27212a..0000000
--- a/hyperstack/models/get_token_payload.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List
-from typing import Optional, Set
-from typing_extensions import Self
-
-class GetTokenPayload(BaseModel):
- """
- GetTokenPayload
- """ # noqa: E501
- callback_code: StrictStr
- session_id: StrictStr
- __properties: ClassVar[List[str]] = ["callback_code", "session_id"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of GetTokenPayload from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetTokenPayload from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "callback_code": obj.get("callback_code"),
- "session_id": obj.get("session_id")
- })
- return _obj
-
-
diff --git a/hyperstack/models/get_version_response.py b/hyperstack/models/get_version_response.py
deleted file mode 100644
index 2739e1e..0000000
--- a/hyperstack/models/get_version_response.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class GetVersionResponse(BaseModel):
- """
- GetVersionResponse
- """ # noqa: E501
- message: Optional[StrictStr] = None
- status: Optional[StrictBool] = None
- version: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["message", "status", "version"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of GetVersionResponse from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetVersionResponse from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "message": obj.get("message"),
- "status": obj.get("status"),
- "version": obj.get("version")
- })
- return _obj
-
-
diff --git a/hyperstack/models/historical_instance.py b/hyperstack/models/historical_instance.py
deleted file mode 100644
index 3f83d8f..0000000
--- a/hyperstack/models/historical_instance.py
+++ /dev/null
@@ -1,101 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.historical_instances_fields import HistoricalInstancesFields
-from typing import Optional, Set
-from typing_extensions import Self
-
-class HistoricalInstance(BaseModel):
- """
- HistoricalInstance
- """ # noqa: E501
- instance_count: Optional[StrictInt] = None
- instances: Optional[List[HistoricalInstancesFields]] = None
- message: Optional[StrictStr] = None
- status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["instance_count", "instances", "message", "status"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of HistoricalInstance from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in instances (list)
- _items = []
- if self.instances:
- for _item_instances in self.instances:
- if _item_instances:
- _items.append(_item_instances.to_dict())
- _dict['instances'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of HistoricalInstance from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "instance_count": obj.get("instance_count"),
- "instances": [HistoricalInstancesFields.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None,
- "message": obj.get("message"),
- "status": obj.get("status")
- })
- return _obj
-
-
diff --git a/hyperstack/models/infrahub_resource_object_response.py b/hyperstack/models/infrahub_resource_object_response.py
deleted file mode 100644
index 78a4354..0000000
--- a/hyperstack/models/infrahub_resource_object_response.py
+++ /dev/null
@@ -1,119 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from ..models.pricebook_resource_object_response import PricebookResourceObjectResponse
-from typing import Optional, Set
-from typing_extensions import Self
-
-class InfrahubResourceObjectResponse(BaseModel):
- """
- InfrahubResourceObjectResponse
- """ # noqa: E501
- actual_host_price: Optional[Union[StrictFloat, StrictInt]] = None
- actual_price: Optional[Union[StrictFloat, StrictInt]] = None
- contract_id: Optional[StrictInt] = None
- host: Optional[StrictStr] = None
- host_price: Optional[Union[StrictFloat, StrictInt]] = None
- infrahub_id: Optional[StrictInt] = None
- name: Optional[StrictStr] = None
- nexgen_actual_price: Optional[Union[StrictFloat, StrictInt]] = None
- nexgen_price: Optional[Union[StrictFloat, StrictInt]] = None
- price: Optional[Union[StrictFloat, StrictInt]] = None
- resources: Optional[List[PricebookResourceObjectResponse]] = None
- status: Optional[StrictStr] = None
- type: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["actual_host_price", "actual_price", "contract_id", "host", "host_price", "infrahub_id", "name", "nexgen_actual_price", "nexgen_price", "price", "resources", "status", "type"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of InfrahubResourceObjectResponse from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in resources (list)
- _items = []
- if self.resources:
- for _item_resources in self.resources:
- if _item_resources:
- _items.append(_item_resources.to_dict())
- _dict['resources'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of InfrahubResourceObjectResponse from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "actual_host_price": obj.get("actual_host_price"),
- "actual_price": obj.get("actual_price"),
- "contract_id": obj.get("contract_id"),
- "host": obj.get("host"),
- "host_price": obj.get("host_price"),
- "infrahub_id": obj.get("infrahub_id"),
- "name": obj.get("name"),
- "nexgen_actual_price": obj.get("nexgen_actual_price"),
- "nexgen_price": obj.get("nexgen_price"),
- "price": obj.get("price"),
- "resources": [PricebookResourceObjectResponse.from_dict(_item) for _item in obj["resources"]] if obj.get("resources") is not None else None,
- "status": obj.get("status"),
- "type": obj.get("type")
- })
- return _obj
-
-
diff --git a/hyperstack/models/insert_discount_plan_fields.py b/hyperstack/models/insert_discount_plan_fields.py
deleted file mode 100644
index b1cade6..0000000
--- a/hyperstack/models/insert_discount_plan_fields.py
+++ /dev/null
@@ -1,112 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.customer_fields import CustomerFields
-from ..models.discount_resource_fields import DiscountResourceFields
-from typing import Optional, Set
-from typing_extensions import Self
-
-class InsertDiscountPlanFields(BaseModel):
- """
- InsertDiscountPlanFields
- """ # noqa: E501
- customers: Optional[List[CustomerFields]] = None
- discount_resources: Optional[List[DiscountResourceFields]] = None
- discount_status: Optional[StrictStr] = None
- end_date: Optional[datetime] = None
- start_date: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["customers", "discount_resources", "discount_status", "end_date", "start_date"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of InsertDiscountPlanFields from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in customers (list)
- _items = []
- if self.customers:
- for _item_customers in self.customers:
- if _item_customers:
- _items.append(_item_customers.to_dict())
- _dict['customers'] = _items
- # override the default output from pydantic by calling `to_dict()` of each item in discount_resources (list)
- _items = []
- if self.discount_resources:
- for _item_discount_resources in self.discount_resources:
- if _item_discount_resources:
- _items.append(_item_discount_resources.to_dict())
- _dict['discount_resources'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of InsertDiscountPlanFields from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "customers": [CustomerFields.from_dict(_item) for _item in obj["customers"]] if obj.get("customers") is not None else None,
- "discount_resources": [DiscountResourceFields.from_dict(_item) for _item in obj["discount_resources"]] if obj.get("discount_resources") is not None else None,
- "discount_status": obj.get("discount_status"),
- "end_date": obj.get("end_date"),
- "start_date": obj.get("start_date")
- })
- return _obj
-
-
diff --git a/hyperstack/models/instance_fields.py b/hyperstack/models/instance_fields.py
index 84c38ea..99f7fa7 100644
--- a/hyperstack/models/instance_fields.py
+++ b/hyperstack/models/instance_fields.py
@@ -24,7 +24,7 @@
from ..models.instance_flavor_fields import InstanceFlavorFields
from ..models.instance_image_fields import InstanceImageFields
from ..models.instance_keypair_fields import InstanceKeypairFields
-from ..models.security_rules_fieldsfor_instance import SecurityRulesFieldsforInstance
+from ..models.security_rules_fields_for_instance import SecurityRulesFieldsForInstance
from ..models.volume_attachment_fields import VolumeAttachmentFields
from typing import Optional, Set
from typing_extensions import Self
@@ -37,6 +37,7 @@ class InstanceFields(BaseModel):
contract_id: Optional[StrictInt] = None
created_at: Optional[datetime] = None
environment: Optional[InstanceEnvironmentFields] = None
+ features: Optional[Dict[str, Any]] = None
fixed_ip: Optional[StrictStr] = None
flavor: Optional[InstanceFlavorFields] = None
floating_ip: Optional[StrictStr] = None
@@ -51,11 +52,12 @@ class InstanceFields(BaseModel):
port_randomization: Optional[StrictBool] = None
port_randomization_status: Optional[StrictStr] = None
power_state: Optional[StrictStr] = None
- security_rules: Optional[List[SecurityRulesFieldsforInstance]] = None
+ requires_public_ip: Optional[StrictBool] = None
+ security_rules: Optional[List[SecurityRulesFieldsForInstance]] = None
status: Optional[StrictStr] = None
vm_state: Optional[StrictStr] = None
volume_attachments: Optional[List[VolumeAttachmentFields]] = None
- __properties: ClassVar[List[str]] = ["callback_url", "contract_id", "created_at", "environment", "fixed_ip", "flavor", "floating_ip", "floating_ip_status", "id", "image", "keypair", "labels", "locked", "name", "os", "port_randomization", "port_randomization_status", "power_state", "security_rules", "status", "vm_state", "volume_attachments"]
+ __properties: ClassVar[List[str]] = ["callback_url", "contract_id", "created_at", "environment", "features", "fixed_ip", "flavor", "floating_ip", "floating_ip_status", "id", "image", "keypair", "labels", "locked", "name", "os", "port_randomization", "port_randomization_status", "power_state", "requires_public_ip", "security_rules", "status", "vm_state", "volume_attachments"]
model_config = ConfigDict(
populate_by_name=True,
@@ -138,6 +140,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"contract_id": obj.get("contract_id"),
"created_at": obj.get("created_at"),
"environment": InstanceEnvironmentFields.from_dict(obj["environment"]) if obj.get("environment") is not None else None,
+ "features": obj.get("features"),
"fixed_ip": obj.get("fixed_ip"),
"flavor": InstanceFlavorFields.from_dict(obj["flavor"]) if obj.get("flavor") is not None else None,
"floating_ip": obj.get("floating_ip"),
@@ -152,7 +155,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"port_randomization": obj.get("port_randomization"),
"port_randomization_status": obj.get("port_randomization_status"),
"power_state": obj.get("power_state"),
- "security_rules": [SecurityRulesFieldsforInstance.from_dict(_item) for _item in obj["security_rules"]] if obj.get("security_rules") is not None else None,
+ "requires_public_ip": obj.get("requires_public_ip"),
+ "security_rules": [SecurityRulesFieldsForInstance.from_dict(_item) for _item in obj["security_rules"]] if obj.get("security_rules") is not None else None,
"status": obj.get("status"),
"vm_state": obj.get("vm_state"),
"volume_attachments": [VolumeAttachmentFields.from_dict(_item) for _item in obj["volume_attachments"]] if obj.get("volume_attachments") is not None else None
diff --git a/hyperstack/models/instance_flavor_fields.py b/hyperstack/models/instance_flavor_fields.py
index a4b8fa1..0b0ad96 100644
--- a/hyperstack/models/instance_flavor_fields.py
+++ b/hyperstack/models/instance_flavor_fields.py
@@ -19,6 +19,7 @@
from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional, Union
+from ..models.flavor_label_fields import FlavorLabelFields
from typing import Optional, Set
from typing_extensions import Self
@@ -29,12 +30,14 @@ class InstanceFlavorFields(BaseModel):
cpu: Optional[StrictInt] = None
disk: Optional[StrictInt] = None
ephemeral: Optional[StrictInt] = None
+ features: Optional[Dict[str, Any]] = None
gpu: Optional[StrictStr] = None
gpu_count: Optional[StrictInt] = None
id: Optional[StrictInt] = None
+ labels: Optional[List[FlavorLabelFields]] = None
name: Optional[StrictStr] = None
ram: Optional[Union[StrictFloat, StrictInt]] = None
- __properties: ClassVar[List[str]] = ["cpu", "disk", "ephemeral", "gpu", "gpu_count", "id", "name", "ram"]
+ __properties: ClassVar[List[str]] = ["cpu", "disk", "ephemeral", "features", "gpu", "gpu_count", "id", "labels", "name", "ram"]
model_config = ConfigDict(
populate_by_name=True,
@@ -75,6 +78,13 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
+ # override the default output from pydantic by calling `to_dict()` of each item in labels (list)
+ _items = []
+ if self.labels:
+ for _item_labels in self.labels:
+ if _item_labels:
+ _items.append(_item_labels.to_dict())
+ _dict['labels'] = _items
return _dict
@classmethod
@@ -90,9 +100,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"cpu": obj.get("cpu"),
"disk": obj.get("disk"),
"ephemeral": obj.get("ephemeral"),
+ "features": obj.get("features"),
"gpu": obj.get("gpu"),
"gpu_count": obj.get("gpu_count"),
"id": obj.get("id"),
+ "labels": [FlavorLabelFields.from_dict(_item) for _item in obj["labels"]] if obj.get("labels") is not None else None,
"name": obj.get("name"),
"ram": obj.get("ram")
})
diff --git a/hyperstack/models/internal_instance_fields.py b/hyperstack/models/internal_instance_fields.py
deleted file mode 100644
index 3bdd6e6..0000000
--- a/hyperstack/models/internal_instance_fields.py
+++ /dev/null
@@ -1,156 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.internal_environment_fields import InternalEnvironmentFields
-from ..models.internal_instance_flavor_fields import InternalInstanceFlavorFields
-from ..models.internal_instance_image_fields import InternalInstanceImageFields
-from ..models.internal_instance_keypair_fields import InternalInstanceKeypairFields
-from ..models.internal_security_rules_fields_for_instance import InternalSecurityRulesFieldsForInstance
-from ..models.internal_volume_attachment_fields import InternalVolumeAttachmentFields
-from typing import Optional, Set
-from typing_extensions import Self
-
-class InternalInstanceFields(BaseModel):
- """
- InternalInstanceFields
- """ # noqa: E501
- boot_source: Optional[StrictStr] = None
- callback_url: Optional[StrictStr] = None
- created_at: Optional[datetime] = None
- environment: Optional[InternalEnvironmentFields] = None
- fixed_ip: Optional[StrictStr] = None
- flavor: Optional[InternalInstanceFlavorFields] = None
- floating_ip: Optional[StrictStr] = None
- floating_ip_status: Optional[StrictStr] = None
- id: Optional[StrictInt] = None
- image: Optional[InternalInstanceImageFields] = None
- keypair: Optional[InternalInstanceKeypairFields] = None
- name: Optional[StrictStr] = None
- openstack_id: Optional[StrictStr] = None
- power_state: Optional[StrictStr] = None
- security_rules: Optional[List[InternalSecurityRulesFieldsForInstance]] = None
- status: Optional[StrictStr] = None
- user_data: Optional[StrictStr] = None
- vm_state: Optional[StrictStr] = None
- volume_attachments: Optional[List[InternalVolumeAttachmentFields]] = None
- __properties: ClassVar[List[str]] = ["boot_source", "callback_url", "created_at", "environment", "fixed_ip", "flavor", "floating_ip", "floating_ip_status", "id", "image", "keypair", "name", "openstack_id", "power_state", "security_rules", "status", "user_data", "vm_state", "volume_attachments"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of InternalInstanceFields from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of environment
- if self.environment:
- _dict['environment'] = self.environment.to_dict()
- # override the default output from pydantic by calling `to_dict()` of flavor
- if self.flavor:
- _dict['flavor'] = self.flavor.to_dict()
- # override the default output from pydantic by calling `to_dict()` of image
- if self.image:
- _dict['image'] = self.image.to_dict()
- # override the default output from pydantic by calling `to_dict()` of keypair
- if self.keypair:
- _dict['keypair'] = self.keypair.to_dict()
- # override the default output from pydantic by calling `to_dict()` of each item in security_rules (list)
- _items = []
- if self.security_rules:
- for _item_security_rules in self.security_rules:
- if _item_security_rules:
- _items.append(_item_security_rules.to_dict())
- _dict['security_rules'] = _items
- # override the default output from pydantic by calling `to_dict()` of each item in volume_attachments (list)
- _items = []
- if self.volume_attachments:
- for _item_volume_attachments in self.volume_attachments:
- if _item_volume_attachments:
- _items.append(_item_volume_attachments.to_dict())
- _dict['volume_attachments'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of InternalInstanceFields from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "boot_source": obj.get("boot_source"),
- "callback_url": obj.get("callback_url"),
- "created_at": obj.get("created_at"),
- "environment": InternalEnvironmentFields.from_dict(obj["environment"]) if obj.get("environment") is not None else None,
- "fixed_ip": obj.get("fixed_ip"),
- "flavor": InternalInstanceFlavorFields.from_dict(obj["flavor"]) if obj.get("flavor") is not None else None,
- "floating_ip": obj.get("floating_ip"),
- "floating_ip_status": obj.get("floating_ip_status"),
- "id": obj.get("id"),
- "image": InternalInstanceImageFields.from_dict(obj["image"]) if obj.get("image") is not None else None,
- "keypair": InternalInstanceKeypairFields.from_dict(obj["keypair"]) if obj.get("keypair") is not None else None,
- "name": obj.get("name"),
- "openstack_id": obj.get("openstack_id"),
- "power_state": obj.get("power_state"),
- "security_rules": [InternalSecurityRulesFieldsForInstance.from_dict(_item) for _item in obj["security_rules"]] if obj.get("security_rules") is not None else None,
- "status": obj.get("status"),
- "user_data": obj.get("user_data"),
- "vm_state": obj.get("vm_state"),
- "volume_attachments": [InternalVolumeAttachmentFields.from_dict(_item) for _item in obj["volume_attachments"]] if obj.get("volume_attachments") is not None else None
- })
- return _obj
-
-
diff --git a/hyperstack/models/internal_instance_image_fields.py b/hyperstack/models/internal_instance_image_fields.py
deleted file mode 100644
index fa0578b..0000000
--- a/hyperstack/models/internal_instance_image_fields.py
+++ /dev/null
@@ -1,95 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class InternalInstanceImageFields(BaseModel):
- """
- InternalInstanceImageFields
- """ # noqa: E501
- id: Optional[StrictInt] = None
- name: Optional[StrictStr] = None
- region_name: Optional[StrictStr] = None
- type: Optional[StrictStr] = None
- version: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "name", "region_name", "type", "version"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of InternalInstanceImageFields from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of InternalInstanceImageFields from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "id": obj.get("id"),
- "name": obj.get("name"),
- "region_name": obj.get("region_name"),
- "type": obj.get("type"),
- "version": obj.get("version")
- })
- return _obj
-
-
diff --git a/hyperstack/models/internal_instance_keypair_fields.py b/hyperstack/models/internal_instance_keypair_fields.py
deleted file mode 100644
index 56ce2ad..0000000
--- a/hyperstack/models/internal_instance_keypair_fields.py
+++ /dev/null
@@ -1,98 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class InternalInstanceKeypairFields(BaseModel):
- """
- InternalInstanceKeypairFields
- """ # noqa: E501
- created_at: Optional[datetime] = None
- environment: Optional[StrictStr] = None
- fingerprint: Optional[StrictStr] = None
- id: Optional[StrictInt] = None
- name: Optional[StrictStr] = None
- public_key: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["created_at", "environment", "fingerprint", "id", "name", "public_key"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of InternalInstanceKeypairFields from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of InternalInstanceKeypairFields from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "created_at": obj.get("created_at"),
- "environment": obj.get("environment"),
- "fingerprint": obj.get("fingerprint"),
- "id": obj.get("id"),
- "name": obj.get("name"),
- "public_key": obj.get("public_key")
- })
- return _obj
-
-
diff --git a/hyperstack/models/internal_instances_response.py b/hyperstack/models/internal_instances_response.py
deleted file mode 100644
index d277bf1..0000000
--- a/hyperstack/models/internal_instances_response.py
+++ /dev/null
@@ -1,99 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.internal_instance_fields import InternalInstanceFields
-from typing import Optional, Set
-from typing_extensions import Self
-
-class InternalInstancesResponse(BaseModel):
- """
- InternalInstancesResponse
- """ # noqa: E501
- instances: Optional[List[InternalInstanceFields]] = None
- message: Optional[StrictStr] = None
- status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["instances", "message", "status"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of InternalInstancesResponse from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in instances (list)
- _items = []
- if self.instances:
- for _item_instances in self.instances:
- if _item_instances:
- _items.append(_item_instances.to_dict())
- _dict['instances'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of InternalInstancesResponse from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "instances": [InternalInstanceFields.from_dict(_item) for _item in obj["instances"]] if obj.get("instances") is not None else None,
- "message": obj.get("message"),
- "status": obj.get("status")
- })
- return _obj
-
-
diff --git a/hyperstack/models/internal_security_rules_fields_for_instance.py b/hyperstack/models/internal_security_rules_fields_for_instance.py
deleted file mode 100644
index 9e0186b..0000000
--- a/hyperstack/models/internal_security_rules_fields_for_instance.py
+++ /dev/null
@@ -1,104 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class InternalSecurityRulesFieldsForInstance(BaseModel):
- """
- InternalSecurityRulesFieldsForInstance
- """ # noqa: E501
- created_at: Optional[datetime] = None
- direction: Optional[StrictStr] = None
- ethertype: Optional[StrictStr] = None
- id: Optional[StrictInt] = None
- port_range_max: Optional[StrictInt] = None
- port_range_min: Optional[StrictInt] = None
- protocol: Optional[StrictStr] = None
- remote_ip_prefix: Optional[StrictStr] = None
- status: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["created_at", "direction", "ethertype", "id", "port_range_max", "port_range_min", "protocol", "remote_ip_prefix", "status"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of InternalSecurityRulesFieldsForInstance from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of InternalSecurityRulesFieldsForInstance from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "created_at": obj.get("created_at"),
- "direction": obj.get("direction"),
- "ethertype": obj.get("ethertype"),
- "id": obj.get("id"),
- "port_range_max": obj.get("port_range_max"),
- "port_range_min": obj.get("port_range_min"),
- "protocol": obj.get("protocol"),
- "remote_ip_prefix": obj.get("remote_ip_prefix"),
- "status": obj.get("status")
- })
- return _obj
-
-
diff --git a/hyperstack/models/internal_volume_attachment_fields.py b/hyperstack/models/internal_volume_attachment_fields.py
deleted file mode 100644
index 40bae00..0000000
--- a/hyperstack/models/internal_volume_attachment_fields.py
+++ /dev/null
@@ -1,98 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.internal_volume_fields import InternalVolumeFields
-from typing import Optional, Set
-from typing_extensions import Self
-
-class InternalVolumeAttachmentFields(BaseModel):
- """
- InternalVolumeAttachmentFields
- """ # noqa: E501
- created_at: Optional[datetime] = None
- device: Optional[StrictStr] = None
- status: Optional[StrictStr] = None
- volume: Optional[InternalVolumeFields] = None
- __properties: ClassVar[List[str]] = ["created_at", "device", "status", "volume"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of InternalVolumeAttachmentFields from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of volume
- if self.volume:
- _dict['volume'] = self.volume.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of InternalVolumeAttachmentFields from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "created_at": obj.get("created_at"),
- "device": obj.get("device"),
- "status": obj.get("status"),
- "volume": InternalVolumeFields.from_dict(obj["volume"]) if obj.get("volume") is not None else None
- })
- return _obj
-
-
diff --git a/hyperstack/models/internal_volume_fields.py b/hyperstack/models/internal_volume_fields.py
deleted file mode 100644
index bdea582..0000000
--- a/hyperstack/models/internal_volume_fields.py
+++ /dev/null
@@ -1,95 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class InternalVolumeFields(BaseModel):
- """
- InternalVolumeFields
- """ # noqa: E501
- description: Optional[StrictStr] = None
- id: Optional[StrictInt] = None
- name: Optional[StrictStr] = None
- size: Optional[StrictInt] = None
- volume_type: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["description", "id", "name", "size", "volume_type"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of InternalVolumeFields from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of InternalVolumeFields from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "description": obj.get("description"),
- "id": obj.get("id"),
- "name": obj.get("name"),
- "size": obj.get("size"),
- "volume_type": obj.get("volume_type")
- })
- return _obj
-
-
diff --git a/hyperstack/models/internal_volumes_response.py b/hyperstack/models/internal_volumes_response.py
deleted file mode 100644
index 3e8ccb2..0000000
--- a/hyperstack/models/internal_volumes_response.py
+++ /dev/null
@@ -1,99 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.internal_volume_fields import InternalVolumeFields
-from typing import Optional, Set
-from typing_extensions import Self
-
-class InternalVolumesResponse(BaseModel):
- """
- InternalVolumesResponse
- """ # noqa: E501
- message: Optional[StrictStr] = None
- status: Optional[StrictBool] = None
- volumes: Optional[List[InternalVolumeFields]] = None
- __properties: ClassVar[List[str]] = ["message", "status", "volumes"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of InternalVolumesResponse from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in volumes (list)
- _items = []
- if self.volumes:
- for _item_volumes in self.volumes:
- if _item_volumes:
- _items.append(_item_volumes.to_dict())
- _dict['volumes'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of InternalVolumesResponse from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "message": obj.get("message"),
- "status": obj.get("status"),
- "volumes": [InternalVolumeFields.from_dict(_item) for _item in obj["volumes"]] if obj.get("volumes") is not None else None
- })
- return _obj
-
-
diff --git a/hyperstack/models/flavor_response.py b/hyperstack/models/keypair_environment_features.py
similarity index 73%
rename from hyperstack/models/flavor_response.py
rename to hyperstack/models/keypair_environment_features.py
index 891b712..767d12f 100644
--- a/hyperstack/models/flavor_response.py
+++ b/hyperstack/models/keypair_environment_features.py
@@ -17,20 +17,28 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.flavor_fields import FlavorFields
from typing import Optional, Set
from typing_extensions import Self
-class FlavorResponse(BaseModel):
+class KeypairEnvironmentFeatures(BaseModel):
"""
- FlavorResponse
+ KeypairEnvironmentFeatures
""" # noqa: E501
- flavor: Optional[FlavorFields] = None
- message: Optional[StrictStr] = None
- status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["flavor", "message", "status"]
+ green_status: Optional[StrictStr] = None
+ network_optimised: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = ["green_status", "network_optimised"]
+
+ @field_validator('green_status')
+ def green_status_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['GREEN', 'PARTIALLY_GREEN', 'NOT_GREEN']):
+ raise ValueError("must be one of enum values ('GREEN', 'PARTIALLY_GREEN', 'NOT_GREEN')")
+ return value
model_config = ConfigDict(
populate_by_name=True,
@@ -50,7 +58,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of FlavorResponse from a JSON string"""
+ """Create an instance of KeypairEnvironmentFeatures from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -71,14 +79,11 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of flavor
- if self.flavor:
- _dict['flavor'] = self.flavor.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of FlavorResponse from a dict"""
+ """Create an instance of KeypairEnvironmentFeatures from a dict"""
if obj is None:
return None
@@ -86,9 +91,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "flavor": FlavorFields.from_dict(obj["flavor"]) if obj.get("flavor") is not None else None,
- "message": obj.get("message"),
- "status": obj.get("status")
+ "green_status": obj.get("green_status"),
+ "network_optimised": obj.get("network_optimised")
})
return _obj
diff --git a/hyperstack/models/flavor_vm_fields.py b/hyperstack/models/keypair_environment_fields.py
similarity index 76%
rename from hyperstack/models/flavor_vm_fields.py
rename to hyperstack/models/keypair_environment_fields.py
index 2533116..677d50c 100644
--- a/hyperstack/models/flavor_vm_fields.py
+++ b/hyperstack/models/keypair_environment_fields.py
@@ -20,21 +20,20 @@
from datetime import datetime
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
+from ..models.keypair_environment_features import KeypairEnvironmentFeatures
from typing import Optional, Set
from typing_extensions import Self
-class FlavorVMFields(BaseModel):
+class KeypairEnvironmentFields(BaseModel):
"""
- FlavorVMFields
+ KeypairEnvironmentFields
""" # noqa: E501
created_at: Optional[datetime] = None
- host: Optional[StrictStr] = None
+ features: Optional[KeypairEnvironmentFeatures] = None
id: Optional[StrictInt] = None
name: Optional[StrictStr] = None
- openstack_id: Optional[StrictStr] = None
- org_id: Optional[StrictInt] = None
- status: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["created_at", "host", "id", "name", "openstack_id", "org_id", "status"]
+ region: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["created_at", "features", "id", "name", "region"]
model_config = ConfigDict(
populate_by_name=True,
@@ -54,7 +53,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of FlavorVMFields from a JSON string"""
+ """Create an instance of KeypairEnvironmentFields from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -75,11 +74,14 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
+ # override the default output from pydantic by calling `to_dict()` of features
+ if self.features:
+ _dict['features'] = self.features.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of FlavorVMFields from a dict"""
+ """Create an instance of KeypairEnvironmentFields from a dict"""
if obj is None:
return None
@@ -88,12 +90,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"created_at": obj.get("created_at"),
- "host": obj.get("host"),
+ "features": KeypairEnvironmentFeatures.from_dict(obj["features"]) if obj.get("features") is not None else None,
"id": obj.get("id"),
"name": obj.get("name"),
- "openstack_id": obj.get("openstack_id"),
- "org_id": obj.get("org_id"),
- "status": obj.get("status")
+ "region": obj.get("region")
})
return _obj
diff --git a/hyperstack/models/keypair_fields.py b/hyperstack/models/keypair_fields.py
index 97cad97..1da9649 100644
--- a/hyperstack/models/keypair_fields.py
+++ b/hyperstack/models/keypair_fields.py
@@ -20,6 +20,7 @@
from datetime import datetime
from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
+from ..models.keypair_environment_fields import KeypairEnvironmentFields
from typing import Optional, Set
from typing_extensions import Self
@@ -28,7 +29,7 @@ class KeypairFields(BaseModel):
KeypairFields
""" # noqa: E501
created_at: Optional[datetime] = None
- environment: Optional[StrictStr] = None
+ environment: Optional[KeypairEnvironmentFields] = None
fingerprint: Optional[StrictStr] = None
id: Optional[StrictInt] = None
name: Optional[StrictStr] = None
@@ -74,6 +75,9 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
+ # override the default output from pydantic by calling `to_dict()` of environment
+ if self.environment:
+ _dict['environment'] = self.environment.to_dict()
return _dict
@classmethod
@@ -87,7 +91,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"created_at": obj.get("created_at"),
- "environment": obj.get("environment"),
+ "environment": KeypairEnvironmentFields.from_dict(obj["environment"]) if obj.get("environment") is not None else None,
"fingerprint": obj.get("fingerprint"),
"id": obj.get("id"),
"name": obj.get("name"),
diff --git a/hyperstack/models/lastdaycostfields.py b/hyperstack/models/last_day_cost_fields.py
similarity index 94%
rename from hyperstack/models/lastdaycostfields.py
rename to hyperstack/models/last_day_cost_fields.py
index 892fefc..cadbe7e 100644
--- a/hyperstack/models/lastdaycostfields.py
+++ b/hyperstack/models/last_day_cost_fields.py
@@ -22,9 +22,9 @@
from typing import Optional, Set
from typing_extensions import Self
-class Lastdaycostfields(BaseModel):
+class LastDayCostFields(BaseModel):
"""
- Lastdaycostfields
+ LastDayCostFields
""" # noqa: E501
clusters_cost: Optional[Union[StrictFloat, StrictInt]] = None
instances_cost: Optional[Union[StrictFloat, StrictInt]] = None
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Lastdaycostfields from a JSON string"""
+ """Create an instance of LastDayCostFields from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -75,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Lastdaycostfields from a dict"""
+ """Create an instance of LastDayCostFields from a dict"""
if obj is None:
return None
diff --git a/hyperstack/models/lastdaycostresponse.py b/hyperstack/models/last_day_cost_response.py
similarity index 88%
rename from hyperstack/models/lastdaycostresponse.py
rename to hyperstack/models/last_day_cost_response.py
index 37e05bb..e495791 100644
--- a/hyperstack/models/lastdaycostresponse.py
+++ b/hyperstack/models/last_day_cost_response.py
@@ -19,15 +19,15 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.lastdaycostfields import Lastdaycostfields
+from ..models.last_day_cost_fields import LastDayCostFields
from typing import Optional, Set
from typing_extensions import Self
-class Lastdaycostresponse(BaseModel):
+class LastDayCostResponse(BaseModel):
"""
- Lastdaycostresponse
+ LastDayCostResponse
""" # noqa: E501
- data: Optional[Lastdaycostfields] = None
+ data: Optional[LastDayCostFields] = None
message: Optional[StrictStr] = None
status: Optional[StrictBool] = None
__properties: ClassVar[List[str]] = ["data", "message", "status"]
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Lastdaycostresponse from a JSON string"""
+ """Create an instance of LastDayCostResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Lastdaycostresponse from a dict"""
+ """Create an instance of LastDayCostResponse from a dict"""
if obj is None:
return None
@@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "data": Lastdaycostfields.from_dict(obj["data"]) if obj.get("data") is not None else None,
+ "data": LastDayCostFields.from_dict(obj["data"]) if obj.get("data") is not None else None,
"message": obj.get("message"),
"status": obj.get("status")
})
diff --git a/hyperstack/models/export_billing_data_response.py b/hyperstack/models/logos.py
similarity index 82%
rename from hyperstack/models/export_billing_data_response.py
rename to hyperstack/models/logos.py
index f654d83..ba90576 100644
--- a/hyperstack/models/export_billing_data_response.py
+++ b/hyperstack/models/logos.py
@@ -22,13 +22,15 @@
from typing import Optional, Set
from typing_extensions import Self
-class ExportBillingDataResponse(BaseModel):
+class Logos(BaseModel):
"""
- ExportBillingDataResponse
+ Logos
""" # noqa: E501
- measures: Optional[List[Dict[str, Any]]] = None
- message: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["measures", "message"]
+ dark: Optional[StrictStr] = None
+ email: Optional[StrictStr] = None
+ favicon: Optional[StrictStr] = None
+ light: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["dark", "email", "favicon", "light"]
model_config = ConfigDict(
populate_by_name=True,
@@ -48,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ExportBillingDataResponse from a JSON string"""
+ """Create an instance of Logos from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -73,7 +75,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ExportBillingDataResponse from a dict"""
+ """Create an instance of Logos from a dict"""
if obj is None:
return None
@@ -81,8 +83,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "measures": obj.get("measures"),
- "message": obj.get("message")
+ "dark": obj.get("dark"),
+ "email": obj.get("email"),
+ "favicon": obj.get("favicon"),
+ "light": obj.get("light")
})
return _obj
diff --git a/hyperstack/models/creditrequestresponse.py b/hyperstack/models/master_flavors_response.py
similarity index 78%
rename from hyperstack/models/creditrequestresponse.py
rename to hyperstack/models/master_flavors_response.py
index a586f02..6067b72 100644
--- a/hyperstack/models/creditrequestresponse.py
+++ b/hyperstack/models/master_flavors_response.py
@@ -19,18 +19,18 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.creditrequests import Creditrequests
+from ..models.cluster_flavor_fields import ClusterFlavorFields
from typing import Optional, Set
from typing_extensions import Self
-class Creditrequestresponse(BaseModel):
+class MasterFlavorsResponse(BaseModel):
"""
- Creditrequestresponse
+ MasterFlavorsResponse
""" # noqa: E501
- data: Optional[List[Creditrequests]] = None
+ flavors: Optional[List[ClusterFlavorFields]] = None
message: Optional[StrictStr] = None
status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["data", "message", "status"]
+ __properties: ClassVar[List[str]] = ["flavors", "message", "status"]
model_config = ConfigDict(
populate_by_name=True,
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Creditrequestresponse from a JSON string"""
+ """Create an instance of MasterFlavorsResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -71,18 +71,18 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of each item in data (list)
+ # override the default output from pydantic by calling `to_dict()` of each item in flavors (list)
_items = []
- if self.data:
- for _item_data in self.data:
- if _item_data:
- _items.append(_item_data.to_dict())
- _dict['data'] = _items
+ if self.flavors:
+ for _item_flavors in self.flavors:
+ if _item_flavors:
+ _items.append(_item_flavors.to_dict())
+ _dict['flavors'] = _items
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Creditrequestresponse from a dict"""
+ """Create an instance of MasterFlavorsResponse from a dict"""
if obj is None:
return None
@@ -90,7 +90,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "data": [Creditrequests.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
+ "flavors": [ClusterFlavorFields.from_dict(_item) for _item in obj["flavors"]] if obj.get("flavors") is not None else None,
"message": obj.get("message"),
"status": obj.get("status")
})
diff --git a/hyperstack/models/customer_payload.py b/hyperstack/models/mfa_status_fields.py
similarity index 84%
rename from hyperstack/models/customer_payload.py
rename to hyperstack/models/mfa_status_fields.py
index 65ed527..fb41626 100644
--- a/hyperstack/models/customer_payload.py
+++ b/hyperstack/models/mfa_status_fields.py
@@ -17,18 +17,17 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
+from pydantic import BaseModel, ConfigDict, Field, StrictBool
from typing import Any, ClassVar, Dict, List
from typing import Optional, Set
from typing_extensions import Self
-class CustomerPayload(BaseModel):
+class MFAStatusFields(BaseModel):
"""
- CustomerPayload
+ MFAStatusFields
""" # noqa: E501
- id: StrictInt
- plan_type: StrictStr
- __properties: ClassVar[List[str]] = ["id", "plan_type"]
+ mfa_enabled: StrictBool = Field(description="Whether MFA is enabled for the user")
+ __properties: ClassVar[List[str]] = ["mfa_enabled"]
model_config = ConfigDict(
populate_by_name=True,
@@ -48,7 +47,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CustomerPayload from a JSON string"""
+ """Create an instance of MFAStatusFields from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -73,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CustomerPayload from a dict"""
+ """Create an instance of MFAStatusFields from a dict"""
if obj is None:
return None
@@ -81,8 +80,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "id": obj.get("id"),
- "plan_type": obj.get("plan_type")
+ "mfa_enabled": obj.get("mfa_enabled")
})
return _obj
diff --git a/hyperstack/models/gpu.py b/hyperstack/models/mfa_status_response.py
similarity index 83%
rename from hyperstack/models/gpu.py
rename to hyperstack/models/mfa_status_response.py
index e9181bf..21f57dc 100644
--- a/hyperstack/models/gpu.py
+++ b/hyperstack/models/mfa_status_response.py
@@ -19,18 +19,18 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.gpu_fields import GPUFields
+from ..models.mfa_status_fields import MFAStatusFields
from typing import Optional, Set
from typing_extensions import Self
-class GPU(BaseModel):
+class MFAStatusResponse(BaseModel):
"""
- GPU
+ MFAStatusResponse
""" # noqa: E501
- gpu: Optional[GPUFields] = None
message: Optional[StrictStr] = None
+ mfa: Optional[MFAStatusFields] = None
status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["gpu", "message", "status"]
+ __properties: ClassVar[List[str]] = ["message", "mfa", "status"]
model_config = ConfigDict(
populate_by_name=True,
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of GPU from a JSON string"""
+ """Create an instance of MFAStatusResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -71,14 +71,14 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of gpu
- if self.gpu:
- _dict['gpu'] = self.gpu.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of mfa
+ if self.mfa:
+ _dict['mfa'] = self.mfa.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GPU from a dict"""
+ """Create an instance of MFAStatusResponse from a dict"""
if obj is None:
return None
@@ -86,8 +86,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "gpu": GPUFields.from_dict(obj["gpu"]) if obj.get("gpu") is not None else None,
"message": obj.get("message"),
+ "mfa": MFAStatusFields.from_dict(obj["mfa"]) if obj.get("mfa") is not None else None,
"status": obj.get("status")
})
return _obj
diff --git a/hyperstack/models/model_evaluation_billing_history_details_response_schema.py b/hyperstack/models/model_evaluation_billing_history_details_response_schema.py
new file mode 100644
index 0000000..ee06cbd
--- /dev/null
+++ b/hyperstack/models/model_evaluation_billing_history_details_response_schema.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from ..models.billing_history_model_evalutation_details import BillingHistoryModelEvalutationDetails
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ModelEvaluationBillingHistoryDetailsResponseSchema(BaseModel):
+ """
+ ModelEvaluationBillingHistoryDetailsResponseSchema
+ """ # noqa: E501
+ billing_history_model_evalutation_details: Optional[BillingHistoryModelEvalutationDetails] = None
+ message: Optional[StrictStr] = None
+ status: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = ["billing_history_model_evalutation_details", "message", "status"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ModelEvaluationBillingHistoryDetailsResponseSchema from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of billing_history_model_evalutation_details
+ if self.billing_history_model_evalutation_details:
+ _dict['billing_history_model_evalutation_details'] = self.billing_history_model_evalutation_details.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ModelEvaluationBillingHistoryDetailsResponseSchema from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "billing_history_model_evalutation_details": BillingHistoryModelEvalutationDetails.from_dict(obj["billing_history_model_evalutation_details"]) if obj.get("billing_history_model_evalutation_details") is not None else None,
+ "message": obj.get("message"),
+ "status": obj.get("status")
+ })
+ return _obj
+
+
diff --git a/hyperstack/models/new_stock_update_response_model.py b/hyperstack/models/new_stock_update_response_model.py
deleted file mode 100644
index 86199c4..0000000
--- a/hyperstack/models/new_stock_update_response_model.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class NewStockUpdateResponseModel(BaseModel):
- """
- NewStockUpdateResponseModel
- """ # noqa: E501
- message: Optional[StrictStr] = None
- status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["message", "status"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of NewStockUpdateResponseModel from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of NewStockUpdateResponseModel from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "message": obj.get("message"),
- "status": obj.get("status")
- })
- return _obj
-
-
diff --git a/hyperstack/models/node_model.py b/hyperstack/models/node_model.py
deleted file mode 100644
index 925003c..0000000
--- a/hyperstack/models/node_model.py
+++ /dev/null
@@ -1,114 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.node_stocks_payload import NodeStocksPayload
-from typing import Optional, Set
-from typing_extensions import Self
-
-class NodeModel(BaseModel):
- """
- NodeModel
- """ # noqa: E501
- flavors: Optional[List[StrictStr]] = None
- nexgen_name: Optional[StrictStr] = None
- openstack_id: StrictStr
- openstack_name: Optional[StrictStr] = None
- organizations: Optional[List[StrictInt]] = None
- projects: Optional[List[StrictStr]] = None
- provision_date: Optional[datetime] = None
- status: Optional[StrictStr] = None
- stocks: Optional[List[NodeStocksPayload]] = None
- sunset_date: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["flavors", "nexgen_name", "openstack_id", "openstack_name", "organizations", "projects", "provision_date", "status", "stocks", "sunset_date"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of NodeModel from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in stocks (list)
- _items = []
- if self.stocks:
- for _item_stocks in self.stocks:
- if _item_stocks:
- _items.append(_item_stocks.to_dict())
- _dict['stocks'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of NodeModel from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "flavors": obj.get("flavors"),
- "nexgen_name": obj.get("nexgen_name"),
- "openstack_id": obj.get("openstack_id"),
- "openstack_name": obj.get("openstack_name"),
- "organizations": obj.get("organizations"),
- "projects": obj.get("projects"),
- "provision_date": obj.get("provision_date"),
- "status": obj.get("status"),
- "stocks": [NodeStocksPayload.from_dict(_item) for _item in obj["stocks"]] if obj.get("stocks") is not None else None,
- "sunset_date": obj.get("sunset_date")
- })
- return _obj
-
-
diff --git a/hyperstack/models/node_payload_model.py b/hyperstack/models/node_payload_model.py
deleted file mode 100644
index 53f55e1..0000000
--- a/hyperstack/models/node_payload_model.py
+++ /dev/null
@@ -1,97 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.node_power_usage_model import NodePowerUsageModel
-from typing import Optional, Set
-from typing_extensions import Self
-
-class NodePayloadModel(BaseModel):
- """
- NodePayloadModel
- """ # noqa: E501
- nodes: Optional[List[NodePowerUsageModel]] = None
- region: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["nodes", "region"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of NodePayloadModel from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in nodes (list)
- _items = []
- if self.nodes:
- for _item_nodes in self.nodes:
- if _item_nodes:
- _items.append(_item_nodes.to_dict())
- _dict['nodes'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of NodePayloadModel from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "nodes": [NodePowerUsageModel.from_dict(_item) for _item in obj["nodes"]] if obj.get("nodes") is not None else None,
- "region": obj.get("region")
- })
- return _obj
-
-
diff --git a/hyperstack/models/node_power_usage_model.py b/hyperstack/models/node_power_usage_model.py
deleted file mode 100644
index 20d0b2a..0000000
--- a/hyperstack/models/node_power_usage_model.py
+++ /dev/null
@@ -1,120 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.node_stocks_payload import NodeStocksPayload
-from ..models.power_usage_model import PowerUsageModel
-from typing import Optional, Set
-from typing_extensions import Self
-
-class NodePowerUsageModel(BaseModel):
- """
- NodePowerUsageModel
- """ # noqa: E501
- flavors: Optional[List[StrictStr]] = None
- nexgen_name: Optional[StrictStr] = None
- openstack_id: StrictStr
- openstack_name: Optional[StrictStr] = None
- organizations: Optional[List[StrictInt]] = None
- power_usages: Optional[PowerUsageModel] = None
- projects: Optional[List[StrictStr]] = None
- provision_date: Optional[datetime] = None
- status: Optional[StrictStr] = None
- stocks: Optional[List[NodeStocksPayload]] = None
- sunset_date: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["flavors", "nexgen_name", "openstack_id", "openstack_name", "organizations", "power_usages", "projects", "provision_date", "status", "stocks", "sunset_date"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of NodePowerUsageModel from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of power_usages
- if self.power_usages:
- _dict['power_usages'] = self.power_usages.to_dict()
- # override the default output from pydantic by calling `to_dict()` of each item in stocks (list)
- _items = []
- if self.stocks:
- for _item_stocks in self.stocks:
- if _item_stocks:
- _items.append(_item_stocks.to_dict())
- _dict['stocks'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of NodePowerUsageModel from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "flavors": obj.get("flavors"),
- "nexgen_name": obj.get("nexgen_name"),
- "openstack_id": obj.get("openstack_id"),
- "openstack_name": obj.get("openstack_name"),
- "organizations": obj.get("organizations"),
- "power_usages": PowerUsageModel.from_dict(obj["power_usages"]) if obj.get("power_usages") is not None else None,
- "projects": obj.get("projects"),
- "provision_date": obj.get("provision_date"),
- "status": obj.get("status"),
- "stocks": [NodeStocksPayload.from_dict(_item) for _item in obj["stocks"]] if obj.get("stocks") is not None else None,
- "sunset_date": obj.get("sunset_date")
- })
- return _obj
-
-
diff --git a/hyperstack/models/node_stock_payload_model.py b/hyperstack/models/node_stock_payload_model.py
deleted file mode 100644
index 4d0214f..0000000
--- a/hyperstack/models/node_stock_payload_model.py
+++ /dev/null
@@ -1,95 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.node_payload_model import NodePayloadModel
-from typing import Optional, Set
-from typing_extensions import Self
-
-class NodeStockPayloadModel(BaseModel):
- """
- NodeStockPayloadModel
- """ # noqa: E501
- stocks: Optional[List[NodePayloadModel]] = None
- __properties: ClassVar[List[str]] = ["stocks"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of NodeStockPayloadModel from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in stocks (list)
- _items = []
- if self.stocks:
- for _item_stocks in self.stocks:
- if _item_stocks:
- _items.append(_item_stocks.to_dict())
- _dict['stocks'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of NodeStockPayloadModel from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "stocks": [NodePayloadModel.from_dict(_item) for _item in obj["stocks"]] if obj.get("stocks") is not None else None
- })
- return _obj
-
-
diff --git a/hyperstack/models/organization_thresholdfields.py b/hyperstack/models/organization_threshold_fields.py
similarity index 93%
rename from hyperstack/models/organization_thresholdfields.py
rename to hyperstack/models/organization_threshold_fields.py
index 2ab5ae7..f607424 100644
--- a/hyperstack/models/organization_thresholdfields.py
+++ b/hyperstack/models/organization_threshold_fields.py
@@ -22,9 +22,9 @@
from typing import Optional, Set
from typing_extensions import Self
-class OrganizationThresholdfields(BaseModel):
+class OrganizationThresholdFields(BaseModel):
"""
- OrganizationThresholdfields
+ OrganizationThresholdFields
""" # noqa: E501
id: Optional[StrictInt] = None
interface_title: Optional[StrictStr] = None
@@ -51,7 +51,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of OrganizationThresholdfields from a JSON string"""
+ """Create an instance of OrganizationThresholdFields from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -76,7 +76,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of OrganizationThresholdfields from a dict"""
+ """Create an instance of OrganizationThresholdFields from a dict"""
if obj is None:
return None
diff --git a/hyperstack/models/organizationthresholdupdateresponse.py b/hyperstack/models/organization_threshold_update_response.py
similarity index 87%
rename from hyperstack/models/organizationthresholdupdateresponse.py
rename to hyperstack/models/organization_threshold_update_response.py
index b46283c..0a0c517 100644
--- a/hyperstack/models/organizationthresholdupdateresponse.py
+++ b/hyperstack/models/organization_threshold_update_response.py
@@ -19,17 +19,17 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.organization_thresholdfields import OrganizationThresholdfields
+from ..models.organization_threshold_fields import OrganizationThresholdFields
from typing import Optional, Set
from typing_extensions import Self
-class Organizationthresholdupdateresponse(BaseModel):
+class OrganizationThresholdUpdateResponse(BaseModel):
"""
- Organizationthresholdupdateresponse
+ OrganizationThresholdUpdateResponse
""" # noqa: E501
message: Optional[StrictStr] = None
status: Optional[StrictBool] = None
- threshold: Optional[OrganizationThresholdfields] = None
+ threshold: Optional[OrganizationThresholdFields] = None
__properties: ClassVar[List[str]] = ["message", "status", "threshold"]
model_config = ConfigDict(
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Organizationthresholdupdateresponse from a JSON string"""
+ """Create an instance of OrganizationThresholdUpdateResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Organizationthresholdupdateresponse from a dict"""
+ """Create an instance of OrganizationThresholdUpdateResponse from a dict"""
if obj is None:
return None
@@ -88,7 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"message": obj.get("message"),
"status": obj.get("status"),
- "threshold": OrganizationThresholdfields.from_dict(obj["threshold"]) if obj.get("threshold") is not None else None
+ "threshold": OrganizationThresholdFields.from_dict(obj["threshold"]) if obj.get("threshold") is not None else None
})
return _obj
diff --git a/hyperstack/models/organizationthresholdsresponse.py b/hyperstack/models/organization_thresholds_response.py
similarity index 88%
rename from hyperstack/models/organizationthresholdsresponse.py
rename to hyperstack/models/organization_thresholds_response.py
index e3aef96..78487c5 100644
--- a/hyperstack/models/organizationthresholdsresponse.py
+++ b/hyperstack/models/organization_thresholds_response.py
@@ -19,17 +19,17 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.organization_thresholdfields import OrganizationThresholdfields
+from ..models.organization_threshold_fields import OrganizationThresholdFields
from typing import Optional, Set
from typing_extensions import Self
-class Organizationthresholdsresponse(BaseModel):
+class OrganizationThresholdsResponse(BaseModel):
"""
- Organizationthresholdsresponse
+ OrganizationThresholdsResponse
""" # noqa: E501
message: Optional[StrictStr] = None
status: Optional[StrictBool] = None
- thresholds: Optional[List[OrganizationThresholdfields]] = None
+ thresholds: Optional[List[OrganizationThresholdFields]] = None
__properties: ClassVar[List[str]] = ["message", "status", "thresholds"]
model_config = ConfigDict(
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Organizationthresholdsresponse from a JSON string"""
+ """Create an instance of OrganizationThresholdsResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -82,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Organizationthresholdsresponse from a dict"""
+ """Create an instance of OrganizationThresholdsResponse from a dict"""
if obj is None:
return None
@@ -92,7 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"message": obj.get("message"),
"status": obj.get("status"),
- "thresholds": [OrganizationThresholdfields.from_dict(_item) for _item in obj["thresholds"]] if obj.get("thresholds") is not None else None
+ "thresholds": [OrganizationThresholdFields.from_dict(_item) for _item in obj["thresholds"]] if obj.get("thresholds") is not None else None
})
return _obj
diff --git a/hyperstack/models/organizationcreditrechargelimitresponse.py b/hyperstack/models/organizationcreditrechargelimitresponse.py
deleted file mode 100644
index 3041c06..0000000
--- a/hyperstack/models/organizationcreditrechargelimitresponse.py
+++ /dev/null
@@ -1,95 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.creditrechargelimitfield import Creditrechargelimitfield
-from typing import Optional, Set
-from typing_extensions import Self
-
-class Organizationcreditrechargelimitresponse(BaseModel):
- """
- Organizationcreditrechargelimitresponse
- """ # noqa: E501
- data: Optional[Creditrechargelimitfield] = None
- message: Optional[StrictStr] = None
- status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["data", "message", "status"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Organizationcreditrechargelimitresponse from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of data
- if self.data:
- _dict['data'] = self.data.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Organizationcreditrechargelimitresponse from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "data": Creditrechargelimitfield.from_dict(obj["data"]) if obj.get("data") is not None else None,
- "message": obj.get("message"),
- "status": obj.get("status")
- })
- return _obj
-
-
diff --git a/hyperstack/models/logo_get_response.py b/hyperstack/models/pagination.py
similarity index 81%
rename from hyperstack/models/logo_get_response.py
rename to hyperstack/models/pagination.py
index a925657..1e31816 100644
--- a/hyperstack/models/logo_get_response.py
+++ b/hyperstack/models/pagination.py
@@ -17,19 +17,19 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
+from pydantic import BaseModel, ConfigDict, StrictInt
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self
-class LogoGetResponse(BaseModel):
+class Pagination(BaseModel):
"""
- LogoGetResponse
+ Pagination
""" # noqa: E501
- id: Optional[StrictInt] = None
- type: Optional[StrictStr] = None
- url: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "type", "url"]
+ page: Optional[StrictInt] = None
+ pages: Optional[StrictInt] = None
+ per_page: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["page", "pages", "per_page"]
model_config = ConfigDict(
populate_by_name=True,
@@ -49,7 +49,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of LogoGetResponse from a JSON string"""
+ """Create an instance of Pagination from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -74,7 +74,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of LogoGetResponse from a dict"""
+ """Create an instance of Pagination from a dict"""
if obj is None:
return None
@@ -82,9 +82,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "id": obj.get("id"),
- "type": obj.get("type"),
- "url": obj.get("url")
+ "page": obj.get("page"),
+ "pages": obj.get("pages"),
+ "per_page": obj.get("per_page")
})
return _obj
diff --git a/hyperstack/models/billing_response.py b/hyperstack/models/partner_config.py
similarity index 61%
rename from hyperstack/models/billing_response.py
rename to hyperstack/models/partner_config.py
index e2380e7..2e75982 100644
--- a/hyperstack/models/billing_response.py
+++ b/hyperstack/models/partner_config.py
@@ -17,21 +17,26 @@
import re # noqa: F401
import json
-from datetime import datetime
from pydantic import BaseModel, ConfigDict, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.organization_object_response import OrganizationObjectResponse
+from ..models.colors import Colors
+from ..models.logos import Logos
+from ..models.uris import URIs
from typing import Optional, Set
from typing_extensions import Self
-class BillingResponse(BaseModel):
+class PartnerConfig(BaseModel):
"""
- BillingResponse
+ PartnerConfig
""" # noqa: E501
- calculated_bills: Optional[List[OrganizationObjectResponse]] = None
- calculation_time: Optional[datetime] = None
- type: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["calculated_bills", "calculation_time", "type"]
+ background_image_url: Optional[StrictStr] = None
+ colors: Optional[Colors] = None
+ logos: Optional[Logos] = None
+ name: StrictStr
+ support_email: Optional[StrictStr] = None
+ uris: Optional[URIs] = None
+ user_type: StrictStr
+ __properties: ClassVar[List[str]] = ["background_image_url", "colors", "logos", "name", "support_email", "uris", "user_type"]
model_config = ConfigDict(
populate_by_name=True,
@@ -51,7 +56,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of BillingResponse from a JSON string"""
+ """Create an instance of PartnerConfig from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -72,18 +77,20 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of each item in calculated_bills (list)
- _items = []
- if self.calculated_bills:
- for _item_calculated_bills in self.calculated_bills:
- if _item_calculated_bills:
- _items.append(_item_calculated_bills.to_dict())
- _dict['calculated_bills'] = _items
+ # override the default output from pydantic by calling `to_dict()` of colors
+ if self.colors:
+ _dict['colors'] = self.colors.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of logos
+ if self.logos:
+ _dict['logos'] = self.logos.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of uris
+ if self.uris:
+ _dict['uris'] = self.uris.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of BillingResponse from a dict"""
+ """Create an instance of PartnerConfig from a dict"""
if obj is None:
return None
@@ -91,9 +98,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "calculated_bills": [OrganizationObjectResponse.from_dict(_item) for _item in obj["calculated_bills"]] if obj.get("calculated_bills") is not None else None,
- "calculation_time": obj.get("calculation_time"),
- "type": obj.get("type")
+ "background_image_url": obj.get("background_image_url"),
+ "colors": Colors.from_dict(obj["colors"]) if obj.get("colors") is not None else None,
+ "logos": Logos.from_dict(obj["logos"]) if obj.get("logos") is not None else None,
+ "name": obj.get("name"),
+ "support_email": obj.get("support_email"),
+ "uris": URIs.from_dict(obj["uris"]) if obj.get("uris") is not None else None,
+ "user_type": obj.get("user_type")
})
return _obj
diff --git a/hyperstack/models/payment_details_fields.py b/hyperstack/models/payment_details_fields.py
index 70c98bd..c3505f0 100644
--- a/hyperstack/models/payment_details_fields.py
+++ b/hyperstack/models/payment_details_fields.py
@@ -32,12 +32,14 @@ class PaymentDetailsFields(BaseModel):
currency: Optional[StrictStr] = None
description: Optional[StrictStr] = None
gateway_response: Optional[StrictStr] = None
+ invoice: Optional[StrictStr] = None
paid_from: Optional[StrictStr] = None
payment_id: Optional[StrictStr] = None
status: Optional[StrictStr] = None
+ tax_amount: Optional[Union[StrictFloat, StrictInt]] = None
transaction_id: Optional[StrictStr] = None
updated_at: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["amount", "created_at", "currency", "description", "gateway_response", "paid_from", "payment_id", "status", "transaction_id", "updated_at"]
+ __properties: ClassVar[List[str]] = ["amount", "created_at", "currency", "description", "gateway_response", "invoice", "paid_from", "payment_id", "status", "tax_amount", "transaction_id", "updated_at"]
model_config = ConfigDict(
populate_by_name=True,
@@ -95,9 +97,11 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"currency": obj.get("currency"),
"description": obj.get("description"),
"gateway_response": obj.get("gateway_response"),
+ "invoice": obj.get("invoice"),
"paid_from": obj.get("paid_from"),
"payment_id": obj.get("payment_id"),
"status": obj.get("status"),
+ "tax_amount": obj.get("tax_amount"),
"transaction_id": obj.get("transaction_id"),
"updated_at": obj.get("updated_at")
})
diff --git a/hyperstack/models/power_usage_model.py b/hyperstack/models/power_usage_model.py
deleted file mode 100644
index 14ea221..0000000
--- a/hyperstack/models/power_usage_model.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Union
-from typing import Optional, Set
-from typing_extensions import Self
-
-class PowerUsageModel(BaseModel):
- """
- PowerUsageModel
- """ # noqa: E501
- unit: StrictStr
- value: Union[StrictFloat, StrictInt]
- __properties: ClassVar[List[str]] = ["unit", "value"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of PowerUsageModel from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of PowerUsageModel from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "unit": obj.get("unit"),
- "value": obj.get("value")
- })
- return _obj
-
-
diff --git a/hyperstack/models/pricebook_resource_object_response.py b/hyperstack/models/pricebook_resource_object_response.py
deleted file mode 100644
index 98c9584..0000000
--- a/hyperstack/models/pricebook_resource_object_response.py
+++ /dev/null
@@ -1,107 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictFloat, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional, Union
-from typing import Optional, Set
-from typing_extensions import Self
-
-class PricebookResourceObjectResponse(BaseModel):
- """
- PricebookResourceObjectResponse
- """ # noqa: E501
- actual_price: Optional[Union[StrictFloat, StrictInt]] = None
- amount: Optional[StrictInt] = None
- discounted_rate: Optional[Union[StrictFloat, StrictInt]] = None
- host_original_price: Optional[Union[StrictFloat, StrictInt]] = None
- host_price: Optional[Union[StrictFloat, StrictInt]] = None
- name: Optional[StrictStr] = None
- nexgen_original_price: Optional[Union[StrictFloat, StrictInt]] = None
- nexgen_price: Optional[Union[StrictFloat, StrictInt]] = None
- price: Optional[Union[StrictFloat, StrictInt]] = None
- rate: Optional[Union[StrictFloat, StrictInt]] = None
- type: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["actual_price", "amount", "discounted_rate", "host_original_price", "host_price", "name", "nexgen_original_price", "nexgen_price", "price", "rate", "type"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of PricebookResourceObjectResponse from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of PricebookResourceObjectResponse from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "actual_price": obj.get("actual_price"),
- "amount": obj.get("amount"),
- "discounted_rate": obj.get("discounted_rate"),
- "host_original_price": obj.get("host_original_price"),
- "host_price": obj.get("host_price"),
- "name": obj.get("name"),
- "nexgen_original_price": obj.get("nexgen_original_price"),
- "nexgen_price": obj.get("nexgen_price"),
- "price": obj.get("price"),
- "rate": obj.get("rate"),
- "type": obj.get("type")
- })
- return _obj
-
-
diff --git a/hyperstack/models/logout_payload.py b/hyperstack/models/primary_color.py
similarity index 84%
rename from hyperstack/models/logout_payload.py
rename to hyperstack/models/primary_color.py
index b04d6b1..94b1a26 100644
--- a/hyperstack/models/logout_payload.py
+++ b/hyperstack/models/primary_color.py
@@ -18,16 +18,17 @@
import json
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List
+from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self
-class LogoutPayload(BaseModel):
+class PrimaryColor(BaseModel):
"""
- LogoutPayload
+ PrimaryColor
""" # noqa: E501
- refresh_token: StrictStr
- __properties: ClassVar[List[str]] = ["refresh_token"]
+ dark: Optional[StrictStr] = None
+ light: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["dark", "light"]
model_config = ConfigDict(
populate_by_name=True,
@@ -47,7 +48,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of LogoutPayload from a JSON string"""
+ """Create an instance of PrimaryColor from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -72,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of LogoutPayload from a dict"""
+ """Create an instance of PrimaryColor from a dict"""
if obj is None:
return None
@@ -80,7 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "refresh_token": obj.get("refresh_token")
+ "dark": obj.get("dark"),
+ "light": obj.get("light")
})
return _obj
diff --git a/hyperstack/models/refresh_token_payload.py b/hyperstack/models/refresh_token_payload.py
deleted file mode 100644
index 32a0aef..0000000
--- a/hyperstack/models/refresh_token_payload.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List
-from typing import Optional, Set
-from typing_extensions import Self
-
-class RefreshTokenPayload(BaseModel):
- """
- RefreshTokenPayload
- """ # noqa: E501
- id_token: StrictStr
- refresh_token: StrictStr
- __properties: ClassVar[List[str]] = ["id_token", "refresh_token"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of RefreshTokenPayload from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of RefreshTokenPayload from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "id_token": obj.get("id_token"),
- "refresh_token": obj.get("refresh_token")
- })
- return _obj
-
-
diff --git a/hyperstack/models/region_fields.py b/hyperstack/models/region_fields.py
index d902252..f351e8c 100644
--- a/hyperstack/models/region_fields.py
+++ b/hyperstack/models/region_fields.py
@@ -17,7 +17,7 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
+from pydantic import BaseModel, ConfigDict, Field, StrictInt, StrictStr, field_validator
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self
@@ -26,10 +26,22 @@ class RegionFields(BaseModel):
"""
RegionFields
""" # noqa: E501
+ country: Optional[StrictStr] = None
description: Optional[StrictStr] = None
+ green_status: Optional[StrictStr] = Field(default=None, description="Green status")
id: Optional[StrictInt] = None
name: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["description", "id", "name"]
+ __properties: ClassVar[List[str]] = ["country", "description", "green_status", "id", "name"]
+
+ @field_validator('green_status')
+ def green_status_validate_enum(cls, value):
+ """Validates the enum"""
+ if value is None:
+ return value
+
+ if value not in set(['GREEN', 'PARTIALLY_GREEN', 'NOT_GREEN']):
+ raise ValueError("must be one of enum values ('GREEN', 'PARTIALLY_GREEN', 'NOT_GREEN')")
+ return value
model_config = ConfigDict(
populate_by_name=True,
@@ -82,7 +94,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
+ "country": obj.get("country"),
"description": obj.get("description"),
+ "green_status": obj.get("green_status"),
"id": obj.get("id"),
"name": obj.get("name")
})
diff --git a/hyperstack/models/region_response.py b/hyperstack/models/region_response.py
deleted file mode 100644
index 61dd946..0000000
--- a/hyperstack/models/region_response.py
+++ /dev/null
@@ -1,95 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.region_fields import RegionFields
-from typing import Optional, Set
-from typing_extensions import Self
-
-class RegionResponse(BaseModel):
- """
- RegionResponse
- """ # noqa: E501
- message: Optional[StrictStr] = None
- region: Optional[RegionFields] = None
- status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["message", "region", "status"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of RegionResponse from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of region
- if self.region:
- _dict['region'] = self.region.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of RegionResponse from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "message": obj.get("message"),
- "region": RegionFields.from_dict(obj["region"]) if obj.get("region") is not None else None,
- "status": obj.get("status")
- })
- return _obj
-
-
diff --git a/hyperstack/models/vm_usage_request_payload.py b/hyperstack/models/request_instance_logs_payload.py
similarity index 83%
rename from hyperstack/models/vm_usage_request_payload.py
rename to hyperstack/models/request_instance_logs_payload.py
index 9f91f0a..df66931 100644
--- a/hyperstack/models/vm_usage_request_payload.py
+++ b/hyperstack/models/request_instance_logs_payload.py
@@ -18,16 +18,16 @@
import json
from pydantic import BaseModel, ConfigDict, Field, StrictInt
-from typing import Any, ClassVar, Dict, List
+from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self
-class VMUsageRequestPayload(BaseModel):
+class RequestInstanceLogsPayload(BaseModel):
"""
- VMUsageRequestPayload
+ RequestInstanceLogsPayload
""" # noqa: E501
- vm_ids: List[StrictInt] = Field(description="List of virtual machine IDs")
- __properties: ClassVar[List[str]] = ["vm_ids"]
+ length: Optional[StrictInt] = Field(default=None, description="The amount of lines to fetch")
+ __properties: ClassVar[List[str]] = ["length"]
model_config = ConfigDict(
populate_by_name=True,
@@ -47,7 +47,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of VMUsageRequestPayload from a JSON string"""
+ """Create an instance of RequestInstanceLogsPayload from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of VMUsageRequestPayload from a dict"""
+ """Create an instance of RequestInstanceLogsPayload from a dict"""
if obj is None:
return None
@@ -80,7 +80,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "vm_ids": obj.get("vm_ids")
+ "length": obj.get("length")
})
return _obj
diff --git a/hyperstack/models/stock_visibility_user_payload.py b/hyperstack/models/request_instance_logs_response.py
similarity index 84%
rename from hyperstack/models/stock_visibility_user_payload.py
rename to hyperstack/models/request_instance_logs_response.py
index 9c2d2fc..30e39b3 100644
--- a/hyperstack/models/stock_visibility_user_payload.py
+++ b/hyperstack/models/request_instance_logs_response.py
@@ -18,16 +18,16 @@
import json
from pydantic import BaseModel, ConfigDict, StrictInt
-from typing import Any, ClassVar, Dict, List
+from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self
-class StockVisibilityUserPayload(BaseModel):
+class RequestInstanceLogsResponse(BaseModel):
"""
- StockVisibilityUserPayload
+ RequestInstanceLogsResponse
""" # noqa: E501
- user_ids: List[StrictInt]
- __properties: ClassVar[List[str]] = ["user_ids"]
+ request_id: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["request_id"]
model_config = ConfigDict(
populate_by_name=True,
@@ -47,7 +47,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of StockVisibilityUserPayload from a JSON string"""
+ """Create an instance of RequestInstanceLogsResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of StockVisibilityUserPayload from a dict"""
+ """Create an instance of RequestInstanceLogsResponse from a dict"""
if obj is None:
return None
@@ -80,7 +80,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "user_ids": obj.get("user_ids")
+ "request_id": obj.get("request_id")
})
return _obj
diff --git a/hyperstack/models/contract_billing_history.py b/hyperstack/models/resource_level_billing_bucket_details_resources.py
similarity index 76%
rename from hyperstack/models/contract_billing_history.py
rename to hyperstack/models/resource_level_billing_bucket_details_resources.py
index c1ded76..0e43c1a 100644
--- a/hyperstack/models/contract_billing_history.py
+++ b/hyperstack/models/resource_level_billing_bucket_details_resources.py
@@ -19,17 +19,17 @@
from pydantic import BaseModel, ConfigDict
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.contract_billing_history_response_attributes import ContractBillingHistoryResponseAttributes
-from ..models.contractl_billing_history_response_metrics import ContractlBillingHistoryResponseMetrics
+from ..models.resource_level_billing_details_attributes import ResourceLevelBillingDetailsAttributes
+from ..models.resource_level_billing_details_metrics import ResourceLevelBillingDetailsMetrics
from typing import Optional, Set
from typing_extensions import Self
-class ContractBillingHistory(BaseModel):
+class ResourceLevelBillingBucketDetailsResources(BaseModel):
"""
- ContractBillingHistory
+ ResourceLevelBillingBucketDetailsResources
""" # noqa: E501
- attributes: Optional[ContractBillingHistoryResponseAttributes] = None
- metrics: Optional[ContractlBillingHistoryResponseMetrics] = None
+ attributes: Optional[ResourceLevelBillingDetailsAttributes] = None
+ metrics: Optional[ResourceLevelBillingDetailsMetrics] = None
__properties: ClassVar[List[str]] = ["attributes", "metrics"]
model_config = ConfigDict(
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ContractBillingHistory from a JSON string"""
+ """Create an instance of ResourceLevelBillingBucketDetailsResources from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -81,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ContractBillingHistory from a dict"""
+ """Create an instance of ResourceLevelBillingBucketDetailsResources from a dict"""
if obj is None:
return None
@@ -89,8 +89,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "attributes": ContractBillingHistoryResponseAttributes.from_dict(obj["attributes"]) if obj.get("attributes") is not None else None,
- "metrics": ContractlBillingHistoryResponseMetrics.from_dict(obj["metrics"]) if obj.get("metrics") is not None else None
+ "attributes": ResourceLevelBillingDetailsAttributes.from_dict(obj["attributes"]) if obj.get("attributes") is not None else None,
+ "metrics": ResourceLevelBillingDetailsMetrics.from_dict(obj["metrics"]) if obj.get("metrics") is not None else None
})
return _obj
diff --git a/hyperstack/models/node_response_model.py b/hyperstack/models/resource_level_billing_history_resources_cluster.py
similarity index 60%
rename from hyperstack/models/node_response_model.py
rename to hyperstack/models/resource_level_billing_history_resources_cluster.py
index 0039398..2ca639c 100644
--- a/hyperstack/models/node_response_model.py
+++ b/hyperstack/models/resource_level_billing_history_resources_cluster.py
@@ -17,19 +17,22 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, StrictStr
+from pydantic import BaseModel, ConfigDict
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.node_model import NodeModel
+from ..models.resource_level_billing_history_resources import ResourceLevelBillingHistoryResources
+from ..models.resource_level_billing_history_response_attributes import ResourceLevelBillingHistoryResponseAttributes
+from ..models.resource_level_billing_history_response_metrics import ResourceLevelBillingHistoryResponseMetrics
from typing import Optional, Set
from typing_extensions import Self
-class NodeResponseModel(BaseModel):
+class ResourceLevelBillingHistoryResourcesCluster(BaseModel):
"""
- NodeResponseModel
+ ResourceLevelBillingHistoryResourcesCluster
""" # noqa: E501
- nodes: Optional[List[NodeModel]] = None
- region: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["nodes", "region"]
+ attributes: Optional[ResourceLevelBillingHistoryResponseAttributes] = None
+ metrics: Optional[ResourceLevelBillingHistoryResponseMetrics] = None
+ nodes: Optional[List[ResourceLevelBillingHistoryResources]] = None
+ __properties: ClassVar[List[str]] = ["attributes", "metrics", "nodes"]
model_config = ConfigDict(
populate_by_name=True,
@@ -49,7 +52,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of NodeResponseModel from a JSON string"""
+ """Create an instance of ResourceLevelBillingHistoryResourcesCluster from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -70,6 +73,12 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
+ # override the default output from pydantic by calling `to_dict()` of attributes
+ if self.attributes:
+ _dict['attributes'] = self.attributes.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of metrics
+ if self.metrics:
+ _dict['metrics'] = self.metrics.to_dict()
# override the default output from pydantic by calling `to_dict()` of each item in nodes (list)
_items = []
if self.nodes:
@@ -81,7 +90,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of NodeResponseModel from a dict"""
+ """Create an instance of ResourceLevelBillingHistoryResourcesCluster from a dict"""
if obj is None:
return None
@@ -89,8 +98,9 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "nodes": [NodeModel.from_dict(_item) for _item in obj["nodes"]] if obj.get("nodes") is not None else None,
- "region": obj.get("region")
+ "attributes": ResourceLevelBillingHistoryResponseAttributes.from_dict(obj["attributes"]) if obj.get("attributes") is not None else None,
+ "metrics": ResourceLevelBillingHistoryResponseMetrics.from_dict(obj["metrics"]) if obj.get("metrics") is not None else None,
+ "nodes": [ResourceLevelBillingHistoryResources.from_dict(_item) for _item in obj["nodes"]] if obj.get("nodes") is not None else None
})
return _obj
diff --git a/hyperstack/models/resource_level_billing_history_response_attributes.py b/hyperstack/models/resource_level_billing_history_response_attributes.py
index 8a98384..1058834 100644
--- a/hyperstack/models/resource_level_billing_history_response_attributes.py
+++ b/hyperstack/models/resource_level_billing_history_response_attributes.py
@@ -26,11 +26,12 @@ class ResourceLevelBillingHistoryResponseAttributes(BaseModel):
"""
ResourceLevelBillingHistoryResponseAttributes
""" # noqa: E501
+ contract_id: Optional[StrictInt] = None
id: Optional[StrictStr] = None
infrahub_id: Optional[StrictInt] = None
resource_name: Optional[StrictStr] = None
status: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["id", "infrahub_id", "resource_name", "status"]
+ __properties: ClassVar[List[str]] = ["contract_id", "id", "infrahub_id", "resource_name", "status"]
model_config = ConfigDict(
populate_by_name=True,
@@ -83,6 +84,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
+ "contract_id": obj.get("contract_id"),
"id": obj.get("id"),
"infrahub_id": obj.get("infrahub_id"),
"resource_name": obj.get("resource_name"),
diff --git a/hyperstack/models/get_all_contracts_response_model.py b/hyperstack/models/resource_level_bucket_billing_details_response_model.py
similarity index 72%
rename from hyperstack/models/get_all_contracts_response_model.py
rename to hyperstack/models/resource_level_bucket_billing_details_response_model.py
index c2acc43..cde6f94 100644
--- a/hyperstack/models/get_all_contracts_response_model.py
+++ b/hyperstack/models/resource_level_bucket_billing_details_response_model.py
@@ -19,18 +19,18 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.get_all_contract_fields import GetAllContractFields
+from ..models.resource_level_billing_bucket_details_resources import ResourceLevelBillingBucketDetailsResources
from typing import Optional, Set
from typing_extensions import Self
-class GetAllContractsResponseModel(BaseModel):
+class ResourceLevelBucketBillingDetailsResponseModel(BaseModel):
"""
- GetAllContractsResponseModel
+ ResourceLevelBucketBillingDetailsResponseModel
""" # noqa: E501
- contracts: Optional[List[GetAllContractFields]] = None
+ billing_history_bucket_details: Optional[ResourceLevelBillingBucketDetailsResources] = None
message: Optional[StrictStr] = None
status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["contracts", "message", "status"]
+ __properties: ClassVar[List[str]] = ["billing_history_bucket_details", "message", "status"]
model_config = ConfigDict(
populate_by_name=True,
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of GetAllContractsResponseModel from a JSON string"""
+ """Create an instance of ResourceLevelBucketBillingDetailsResponseModel from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -71,18 +71,14 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of each item in contracts (list)
- _items = []
- if self.contracts:
- for _item_contracts in self.contracts:
- if _item_contracts:
- _items.append(_item_contracts.to_dict())
- _dict['contracts'] = _items
+ # override the default output from pydantic by calling `to_dict()` of billing_history_bucket_details
+ if self.billing_history_bucket_details:
+ _dict['billing_history_bucket_details'] = self.billing_history_bucket_details.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetAllContractsResponseModel from a dict"""
+ """Create an instance of ResourceLevelBucketBillingDetailsResponseModel from a dict"""
if obj is None:
return None
@@ -90,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "contracts": [GetAllContractFields.from_dict(_item) for _item in obj["contracts"]] if obj.get("contracts") is not None else None,
+ "billing_history_bucket_details": ResourceLevelBillingBucketDetailsResources.from_dict(obj["billing_history_bucket_details"]) if obj.get("billing_history_bucket_details") is not None else None,
"message": obj.get("message"),
"status": obj.get("status")
})
diff --git a/hyperstack/models/create_discount_response.py b/hyperstack/models/resource_level_bucket_billing_history_response_model.py
similarity index 75%
rename from hyperstack/models/create_discount_response.py
rename to hyperstack/models/resource_level_bucket_billing_history_response_model.py
index 0e90a14..a7819fd 100644
--- a/hyperstack/models/create_discount_response.py
+++ b/hyperstack/models/resource_level_bucket_billing_history_response_model.py
@@ -19,18 +19,18 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.insert_discount_plan_fields import InsertDiscountPlanFields
+from ..models.resource_level_billing_history import ResourceLevelBillingHistory
from typing import Optional, Set
from typing_extensions import Self
-class CreateDiscountResponse(BaseModel):
+class ResourceLevelBucketBillingHistoryResponseModel(BaseModel):
"""
- CreateDiscountResponse
+ ResourceLevelBucketBillingHistoryResponseModel
""" # noqa: E501
- discount_plan: Optional[InsertDiscountPlanFields] = None
+ billing_history_bucket: Optional[ResourceLevelBillingHistory] = None
message: Optional[StrictStr] = None
status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["discount_plan", "message", "status"]
+ __properties: ClassVar[List[str]] = ["billing_history_bucket", "message", "status"]
model_config = ConfigDict(
populate_by_name=True,
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of CreateDiscountResponse from a JSON string"""
+ """Create an instance of ResourceLevelBucketBillingHistoryResponseModel from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -71,14 +71,14 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of discount_plan
- if self.discount_plan:
- _dict['discount_plan'] = self.discount_plan.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of billing_history_bucket
+ if self.billing_history_bucket:
+ _dict['billing_history_bucket'] = self.billing_history_bucket.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of CreateDiscountResponse from a dict"""
+ """Create an instance of ResourceLevelBucketBillingHistoryResponseModel from a dict"""
if obj is None:
return None
@@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "discount_plan": InsertDiscountPlanFields.from_dict(obj["discount_plan"]) if obj.get("discount_plan") is not None else None,
+ "billing_history_bucket": ResourceLevelBillingHistory.from_dict(obj["billing_history_bucket"]) if obj.get("billing_history_bucket") is not None else None,
"message": obj.get("message"),
"status": obj.get("status")
})
diff --git a/hyperstack/models/resource_level_cluster_billing_details_response_model.py b/hyperstack/models/resource_level_cluster_billing_details_response_model.py
new file mode 100644
index 0000000..983689e
--- /dev/null
+++ b/hyperstack/models/resource_level_cluster_billing_details_response_model.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from ..models.resource_level_billing_history_resources_cluster import ResourceLevelBillingHistoryResourcesCluster
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ResourceLevelClusterBillingDetailsResponseModel(BaseModel):
+ """
+ ResourceLevelClusterBillingDetailsResponseModel
+ """ # noqa: E501
+ billing_history_cluster_details: Optional[ResourceLevelBillingHistoryResourcesCluster] = None
+ message: Optional[StrictStr] = None
+ status: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = ["billing_history_cluster_details", "message", "status"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ResourceLevelClusterBillingDetailsResponseModel from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of billing_history_cluster_details
+ if self.billing_history_cluster_details:
+ _dict['billing_history_cluster_details'] = self.billing_history_cluster_details.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ResourceLevelClusterBillingDetailsResponseModel from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "billing_history_cluster_details": ResourceLevelBillingHistoryResourcesCluster.from_dict(obj["billing_history_cluster_details"]) if obj.get("billing_history_cluster_details") is not None else None,
+ "message": obj.get("message"),
+ "status": obj.get("status")
+ })
+ return _obj
+
+
diff --git a/hyperstack/models/contract_billing_history_response_model.py b/hyperstack/models/resource_level_cluster_billing_history_response_model.py
similarity index 75%
rename from hyperstack/models/contract_billing_history_response_model.py
rename to hyperstack/models/resource_level_cluster_billing_history_response_model.py
index ce063a2..6e542bb 100644
--- a/hyperstack/models/contract_billing_history_response_model.py
+++ b/hyperstack/models/resource_level_cluster_billing_history_response_model.py
@@ -19,18 +19,18 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.contract_billing_history import ContractBillingHistory
+from ..models.resource_level_billing_history import ResourceLevelBillingHistory
from typing import Optional, Set
from typing_extensions import Self
-class ContractBillingHistoryResponseModel(BaseModel):
+class ResourceLevelClusterBillingHistoryResponseModel(BaseModel):
"""
- ContractBillingHistoryResponseModel
+ ResourceLevelClusterBillingHistoryResponseModel
""" # noqa: E501
- billing_history_contract: Optional[ContractBillingHistory] = None
+ billing_history_cluster: Optional[ResourceLevelBillingHistory] = None
message: Optional[StrictStr] = None
status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["billing_history_contract", "message", "status"]
+ __properties: ClassVar[List[str]] = ["billing_history_cluster", "message", "status"]
model_config = ConfigDict(
populate_by_name=True,
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of ContractBillingHistoryResponseModel from a JSON string"""
+ """Create an instance of ResourceLevelClusterBillingHistoryResponseModel from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -71,14 +71,14 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of billing_history_contract
- if self.billing_history_contract:
- _dict['billing_history_contract'] = self.billing_history_contract.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of billing_history_cluster
+ if self.billing_history_cluster:
+ _dict['billing_history_cluster'] = self.billing_history_cluster.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of ContractBillingHistoryResponseModel from a dict"""
+ """Create an instance of ResourceLevelClusterBillingHistoryResponseModel from a dict"""
if obj is None:
return None
@@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "billing_history_contract": ContractBillingHistory.from_dict(obj["billing_history_contract"]) if obj.get("billing_history_contract") is not None else None,
+ "billing_history_cluster": ResourceLevelBillingHistory.from_dict(obj["billing_history_cluster"]) if obj.get("billing_history_cluster") is not None else None,
"message": obj.get("message"),
"status": obj.get("status")
})
diff --git a/hyperstack/models/get_discount_detail_response.py b/hyperstack/models/resource_level_cluster_graph_billing_details_response_model.py
similarity index 73%
rename from hyperstack/models/get_discount_detail_response.py
rename to hyperstack/models/resource_level_cluster_graph_billing_details_response_model.py
index 31e2aca..511457d 100644
--- a/hyperstack/models/get_discount_detail_response.py
+++ b/hyperstack/models/resource_level_cluster_graph_billing_details_response_model.py
@@ -19,18 +19,18 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.discount_entity_model import DiscountEntityModel
+from ..models.resource_level_graph_billing_detail_volume import ResourceLevelGraphBillingDetailVolume
from typing import Optional, Set
from typing_extensions import Self
-class GetDiscountDetailResponse(BaseModel):
+class ResourceLevelClusterGraphBillingDetailsResponseModel(BaseModel):
"""
- GetDiscountDetailResponse
+ ResourceLevelClusterGraphBillingDetailsResponseModel
""" # noqa: E501
- discounts_entity: Optional[DiscountEntityModel] = None
+ billing_history_cluster_details: Optional[ResourceLevelGraphBillingDetailVolume] = None
message: Optional[StrictStr] = None
status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["discounts_entity", "message", "status"]
+ __properties: ClassVar[List[str]] = ["billing_history_cluster_details", "message", "status"]
model_config = ConfigDict(
populate_by_name=True,
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of GetDiscountDetailResponse from a JSON string"""
+ """Create an instance of ResourceLevelClusterGraphBillingDetailsResponseModel from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -71,14 +71,14 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of discounts_entity
- if self.discounts_entity:
- _dict['discounts_entity'] = self.discounts_entity.to_dict()
+ # override the default output from pydantic by calling `to_dict()` of billing_history_cluster_details
+ if self.billing_history_cluster_details:
+ _dict['billing_history_cluster_details'] = self.billing_history_cluster_details.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of GetDiscountDetailResponse from a dict"""
+ """Create an instance of ResourceLevelClusterGraphBillingDetailsResponseModel from a dict"""
if obj is None:
return None
@@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "discounts_entity": DiscountEntityModel.from_dict(obj["discounts_entity"]) if obj.get("discounts_entity") is not None else None,
+ "billing_history_cluster_details": ResourceLevelGraphBillingDetailVolume.from_dict(obj["billing_history_cluster_details"]) if obj.get("billing_history_cluster_details") is not None else None,
"message": obj.get("message"),
"status": obj.get("status")
})
diff --git a/hyperstack/models/organization_object_response.py b/hyperstack/models/resource_level_graph_billing_details_bucket.py
similarity index 67%
rename from hyperstack/models/organization_object_response.py
rename to hyperstack/models/resource_level_graph_billing_details_bucket.py
index 4186af7..bf96cb0 100644
--- a/hyperstack/models/organization_object_response.py
+++ b/hyperstack/models/resource_level_graph_billing_details_bucket.py
@@ -19,17 +19,19 @@
from pydantic import BaseModel, ConfigDict, StrictInt
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.infrahub_resource_object_response import InfrahubResourceObjectResponse
+from ..models.resource_level_billing_bucket_details_resources import ResourceLevelBillingBucketDetailsResources
from typing import Optional, Set
from typing_extensions import Self
-class OrganizationObjectResponse(BaseModel):
+class ResourceLevelGraphBillingDetailsBucket(BaseModel):
"""
- OrganizationObjectResponse
+ ResourceLevelGraphBillingDetailsBucket
""" # noqa: E501
+ billing_history: Optional[List[ResourceLevelBillingBucketDetailsResources]] = None
+ granularity: Optional[StrictInt] = None
org_id: Optional[StrictInt] = None
- resources: Optional[List[InfrahubResourceObjectResponse]] = None
- __properties: ClassVar[List[str]] = ["org_id", "resources"]
+ total_count: Optional[StrictInt] = None
+ __properties: ClassVar[List[str]] = ["billing_history", "granularity", "org_id", "total_count"]
model_config = ConfigDict(
populate_by_name=True,
@@ -49,7 +51,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of OrganizationObjectResponse from a JSON string"""
+ """Create an instance of ResourceLevelGraphBillingDetailsBucket from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -70,18 +72,18 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of each item in resources (list)
+ # override the default output from pydantic by calling `to_dict()` of each item in billing_history (list)
_items = []
- if self.resources:
- for _item_resources in self.resources:
- if _item_resources:
- _items.append(_item_resources.to_dict())
- _dict['resources'] = _items
+ if self.billing_history:
+ for _item_billing_history in self.billing_history:
+ if _item_billing_history:
+ _items.append(_item_billing_history.to_dict())
+ _dict['billing_history'] = _items
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of OrganizationObjectResponse from a dict"""
+ """Create an instance of ResourceLevelGraphBillingDetailsBucket from a dict"""
if obj is None:
return None
@@ -89,8 +91,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
+ "billing_history": [ResourceLevelBillingBucketDetailsResources.from_dict(_item) for _item in obj["billing_history"]] if obj.get("billing_history") is not None else None,
+ "granularity": obj.get("granularity"),
"org_id": obj.get("org_id"),
- "resources": [InfrahubResourceObjectResponse.from_dict(_item) for _item in obj["resources"]] if obj.get("resources") is not None else None
+ "total_count": obj.get("total_count")
})
return _obj
diff --git a/hyperstack/models/update_discounts_status_payload.py b/hyperstack/models/secondary_color.py
similarity index 84%
rename from hyperstack/models/update_discounts_status_payload.py
rename to hyperstack/models/secondary_color.py
index 2fb6aa6..53a6c48 100644
--- a/hyperstack/models/update_discounts_status_payload.py
+++ b/hyperstack/models/secondary_color.py
@@ -18,16 +18,17 @@
import json
from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List
+from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
from typing_extensions import Self
-class UpdateDiscountsStatusPayload(BaseModel):
+class SecondaryColor(BaseModel):
"""
- UpdateDiscountsStatusPayload
+ SecondaryColor
""" # noqa: E501
- discount_status: StrictStr
- __properties: ClassVar[List[str]] = ["discount_status"]
+ dark: Optional[StrictStr] = None
+ light: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["dark", "light"]
model_config = ConfigDict(
populate_by_name=True,
@@ -47,7 +48,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of UpdateDiscountsStatusPayload from a JSON string"""
+ """Create an instance of SecondaryColor from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -72,7 +73,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of UpdateDiscountsStatusPayload from a dict"""
+ """Create an instance of SecondaryColor from a dict"""
if obj is None:
return None
@@ -80,7 +81,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "discount_status": obj.get("discount_status")
+ "dark": obj.get("dark"),
+ "light": obj.get("light")
})
return _obj
diff --git a/hyperstack/models/security_rules_fieldsfor_instance.py b/hyperstack/models/security_rules_fields_for_instance.py
similarity index 94%
rename from hyperstack/models/security_rules_fieldsfor_instance.py
rename to hyperstack/models/security_rules_fields_for_instance.py
index 14f0cf3..f19137a 100644
--- a/hyperstack/models/security_rules_fieldsfor_instance.py
+++ b/hyperstack/models/security_rules_fields_for_instance.py
@@ -23,9 +23,9 @@
from typing import Optional, Set
from typing_extensions import Self
-class SecurityRulesFieldsforInstance(BaseModel):
+class SecurityRulesFieldsForInstance(BaseModel):
"""
- SecurityRulesFieldsforInstance
+ SecurityRulesFieldsForInstance
""" # noqa: E501
created_at: Optional[datetime] = None
direction: Optional[StrictStr] = None
@@ -56,7 +56,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of SecurityRulesFieldsforInstance from a JSON string"""
+ """Create an instance of SecurityRulesFieldsForInstance from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -81,7 +81,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of SecurityRulesFieldsforInstance from a dict"""
+ """Create an instance of SecurityRulesFieldsForInstance from a dict"""
if obj is None:
return None
diff --git a/hyperstack/models/serverless_inferenced_billing_history_details_response_schema.py b/hyperstack/models/serverless_inferenced_billing_history_details_response_schema.py
new file mode 100644
index 0000000..ea21b56
--- /dev/null
+++ b/hyperstack/models/serverless_inferenced_billing_history_details_response_schema.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from ..models.billing_history_serverless_inference_details import BillingHistoryServerlessInferenceDetails
+from typing import Optional, Set
+from typing_extensions import Self
+
+class ServerlessInferencedBillingHistoryDetailsResponseSchema(BaseModel):
+ """
+ ServerlessInferencedBillingHistoryDetailsResponseSchema
+ """ # noqa: E501
+ billing_history_serverless_inference_details: Optional[BillingHistoryServerlessInferenceDetails] = None
+ message: Optional[StrictStr] = None
+ status: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = ["billing_history_serverless_inference_details", "message", "status"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of ServerlessInferencedBillingHistoryDetailsResponseSchema from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of billing_history_serverless_inference_details
+ if self.billing_history_serverless_inference_details:
+ _dict['billing_history_serverless_inference_details'] = self.billing_history_serverless_inference_details.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of ServerlessInferencedBillingHistoryDetailsResponseSchema from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "billing_history_serverless_inference_details": BillingHistoryServerlessInferenceDetails.from_dict(obj["billing_history_serverless_inference_details"]) if obj.get("billing_history_serverless_inference_details") is not None else None,
+ "message": obj.get("message"),
+ "status": obj.get("status")
+ })
+ return _obj
+
+
diff --git a/hyperstack/models/set_defaults_payload.py b/hyperstack/models/set_defaults_payload.py
deleted file mode 100644
index 954eb91..0000000
--- a/hyperstack/models/set_defaults_payload.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictInt
-from typing import Any, ClassVar, Dict, List
-from typing import Optional, Set
-from typing_extensions import Self
-
-class SetDefaultsPayload(BaseModel):
- """
- SetDefaultsPayload
- """ # noqa: E501
- flavors: List[StrictInt]
- images: List[StrictInt]
- __properties: ClassVar[List[str]] = ["flavors", "images"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of SetDefaultsPayload from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of SetDefaultsPayload from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "flavors": obj.get("flavors"),
- "images": obj.get("images")
- })
- return _obj
-
-
diff --git a/hyperstack/models/single_visibility_user_response.py b/hyperstack/models/single_visibility_user_response.py
deleted file mode 100644
index 330d3a1..0000000
--- a/hyperstack/models/single_visibility_user_response.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt
-from typing import Any, ClassVar, Dict, List
-from typing import Optional, Set
-from typing_extensions import Self
-
-class SingleVisibilityUserResponse(BaseModel):
- """
- SingleVisibilityUserResponse
- """ # noqa: E501
- id: StrictInt
- stock_visible: StrictBool
- user_id: StrictInt
- __properties: ClassVar[List[str]] = ["id", "stock_visible", "user_id"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of SingleVisibilityUserResponse from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of SingleVisibilityUserResponse from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "id": obj.get("id"),
- "stock_visible": obj.get("stock_visible"),
- "user_id": obj.get("user_id")
- })
- return _obj
-
-
diff --git a/hyperstack/models/snapshot_fields.py b/hyperstack/models/snapshot_fields.py
index 02a9d2a..f9c10e3 100644
--- a/hyperstack/models/snapshot_fields.py
+++ b/hyperstack/models/snapshot_fields.py
@@ -17,6 +17,7 @@
import re # noqa: F401
import json
+from datetime import datetime
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
@@ -26,6 +27,7 @@ class SnapshotFields(BaseModel):
"""
SnapshotFields
""" # noqa: E501
+ created_at: datetime = Field(description="Creation timestamp")
description: StrictStr = Field(description="Description of the snapshot")
has_floating_ip: Optional[StrictBool] = Field(default=None, description="Indicates if the VM had a floating IP assigned")
id: StrictInt = Field(description="Snapshot ID")
@@ -35,8 +37,9 @@ class SnapshotFields(BaseModel):
region_id: StrictInt = Field(description="Region where the snapshot will be available")
size: StrictInt = Field(description="Size in GB of the snapshot")
status: StrictStr = Field(description="Status of the snapshot")
+ updated_at: datetime = Field(description="Last update timestamp")
vm_id: StrictInt = Field(description="ID of the VM from which the snapshot is created")
- __properties: ClassVar[List[str]] = ["description", "has_floating_ip", "id", "is_image", "labels", "name", "region_id", "size", "status", "vm_id"]
+ __properties: ClassVar[List[str]] = ["created_at", "description", "has_floating_ip", "id", "is_image", "labels", "name", "region_id", "size", "status", "updated_at", "vm_id"]
model_config = ConfigDict(
populate_by_name=True,
@@ -89,6 +92,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
+ "created_at": obj.get("created_at"),
"description": obj.get("description"),
"has_floating_ip": obj.get("has_floating_ip"),
"id": obj.get("id"),
@@ -98,6 +102,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"region_id": obj.get("region_id"),
"size": obj.get("size"),
"status": obj.get("status"),
+ "updated_at": obj.get("updated_at"),
"vm_id": obj.get("vm_id")
})
return _obj
diff --git a/hyperstack/models/snapshot_retrieve_fields.py b/hyperstack/models/snapshot_retrieve_fields.py
index e3cb7d4..d2e3c20 100644
--- a/hyperstack/models/snapshot_retrieve_fields.py
+++ b/hyperstack/models/snapshot_retrieve_fields.py
@@ -17,6 +17,7 @@
import re # noqa: F401
import json
+from datetime import datetime
from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
from typing import Optional, Set
@@ -26,16 +27,29 @@ class SnapshotRetrieveFields(BaseModel):
"""
SnapshotRetrieveFields
""" # noqa: E501
+ created_at: datetime = Field(description="Creation timestamp")
+ custom_image: Optional[StrictStr] = None
description: StrictStr = Field(description="Description of the snapshot")
has_floating_ip: Optional[StrictBool] = Field(default=None, description="Indicates if the VM had a floating IP assigned")
id: StrictInt = Field(description="Snapshot ID")
is_image: StrictBool = Field(description="Indicates if the snapshot is an image")
+ labels: Optional[StrictStr] = None
name: StrictStr = Field(description="Snapshot name")
+ region: Optional[StrictStr] = None
region_id: StrictInt = Field(description="Region where the snapshot will be available")
size: StrictInt = Field(description="Size in GB of the snapshot")
status: StrictStr = Field(description="Status of the snapshot")
+ updated_at: datetime = Field(description="Last update timestamp")
+ vm_environment: Optional[StrictStr] = None
+ vm_flavor: Optional[StrictStr] = None
vm_id: StrictInt = Field(description="ID of the VM from which the snapshot is created")
- __properties: ClassVar[List[str]] = ["description", "has_floating_ip", "id", "is_image", "name", "region_id", "size", "status", "vm_id"]
+ vm_image: Optional[StrictStr] = None
+ vm_keypair: Optional[StrictStr] = None
+ vm_name: Optional[StrictStr] = None
+ vm_status: Optional[StrictStr] = None
+ volume_id: Optional[StrictStr] = None
+ volume_name: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["created_at", "custom_image", "description", "has_floating_ip", "id", "is_image", "labels", "name", "region", "region_id", "size", "status", "updated_at", "vm_environment", "vm_flavor", "vm_id", "vm_image", "vm_keypair", "vm_name", "vm_status", "volume_id", "volume_name"]
model_config = ConfigDict(
populate_by_name=True,
@@ -88,15 +102,28 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
+ "created_at": obj.get("created_at"),
+ "custom_image": obj.get("custom_image"),
"description": obj.get("description"),
"has_floating_ip": obj.get("has_floating_ip"),
"id": obj.get("id"),
"is_image": obj.get("is_image"),
+ "labels": obj.get("labels"),
"name": obj.get("name"),
+ "region": obj.get("region"),
"region_id": obj.get("region_id"),
"size": obj.get("size"),
"status": obj.get("status"),
- "vm_id": obj.get("vm_id")
+ "updated_at": obj.get("updated_at"),
+ "vm_environment": obj.get("vm_environment"),
+ "vm_flavor": obj.get("vm_flavor"),
+ "vm_id": obj.get("vm_id"),
+ "vm_image": obj.get("vm_image"),
+ "vm_keypair": obj.get("vm_keypair"),
+ "vm_name": obj.get("vm_name"),
+ "vm_status": obj.get("vm_status"),
+ "volume_id": obj.get("volume_id"),
+ "volume_name": obj.get("volume_name")
})
return _obj
diff --git a/hyperstack/models/start_deployment.py b/hyperstack/models/start_deployment.py
index be51fbb..38878d8 100644
--- a/hyperstack/models/start_deployment.py
+++ b/hyperstack/models/start_deployment.py
@@ -19,7 +19,7 @@
from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.deployment_fieldsforstartdeployments import DeploymentFieldsforstartdeployments
+from ..models.deployment_fields_for_start_deployments import DeploymentFieldsForStartDeployments
from typing import Optional, Set
from typing_extensions import Self
@@ -27,7 +27,7 @@ class StartDeployment(BaseModel):
"""
StartDeployment
""" # noqa: E501
- deployment: Optional[DeploymentFieldsforstartdeployments] = None
+ deployment: Optional[DeploymentFieldsForStartDeployments] = None
message: Optional[StrictStr] = None
status: Optional[StrictBool] = None
__properties: ClassVar[List[str]] = ["deployment", "message", "status"]
@@ -86,7 +86,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "deployment": DeploymentFieldsforstartdeployments.from_dict(obj["deployment"]) if obj.get("deployment") is not None else None,
+ "deployment": DeploymentFieldsForStartDeployments.from_dict(obj["deployment"]) if obj.get("deployment") is not None else None,
"message": obj.get("message"),
"status": obj.get("status")
})
diff --git a/hyperstack/models/subscribeorunsubscribeupdatepayload.py b/hyperstack/models/subscribe_or_unsubscribe_update_payload.py
similarity index 92%
rename from hyperstack/models/subscribeorunsubscribeupdatepayload.py
rename to hyperstack/models/subscribe_or_unsubscribe_update_payload.py
index ea0e62d..5f8740b 100644
--- a/hyperstack/models/subscribeorunsubscribeupdatepayload.py
+++ b/hyperstack/models/subscribe_or_unsubscribe_update_payload.py
@@ -22,9 +22,9 @@
from typing import Optional, Set
from typing_extensions import Self
-class Subscribeorunsubscribeupdatepayload(BaseModel):
+class SubscribeOrUnsubscribeUpdatePayload(BaseModel):
"""
- Subscribeorunsubscribeupdatepayload
+ SubscribeOrUnsubscribeUpdatePayload
""" # noqa: E501
subscribe: StrictBool = Field(description="`false` indicates that the user will no longer receive notifications for this specific threshold, whereas `true` signifies that the user will receive notification emails.")
__properties: ClassVar[List[str]] = ["subscribe"]
@@ -47,7 +47,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Subscribeorunsubscribeupdatepayload from a JSON string"""
+ """Create an instance of SubscribeOrUnsubscribeUpdatePayload from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Subscribeorunsubscribeupdatepayload from a dict"""
+ """Create an instance of SubscribeOrUnsubscribeUpdatePayload from a dict"""
if obj is None:
return None
diff --git a/hyperstack/models/success_response_model.py b/hyperstack/models/success_response_model.py
deleted file mode 100644
index c67ed99..0000000
--- a/hyperstack/models/success_response_model.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class SuccessResponseModel(BaseModel):
- """
- SuccessResponseModel
- """ # noqa: E501
- message: Optional[StrictStr] = None
- status: Optional[StrictBool] = False
- __properties: ClassVar[List[str]] = ["message", "status"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of SuccessResponseModel from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of SuccessResponseModel from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "message": obj.get("message"),
- "status": obj.get("status") if obj.get("status") is not None else False
- })
- return _obj
-
-
diff --git a/hyperstack/models/token_based_billing_history_response.py b/hyperstack/models/token_based_billing_history_response.py
new file mode 100644
index 0000000..6e6a986
--- /dev/null
+++ b/hyperstack/models/token_based_billing_history_response.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from ..models.billing_history_serverless_inference import BillingHistoryServerlessInference
+from typing import Optional, Set
+from typing_extensions import Self
+
+class TokenBasedBillingHistoryResponse(BaseModel):
+ """
+ TokenBasedBillingHistoryResponse
+ """ # noqa: E501
+ billing_history_serverless_inference: Optional[BillingHistoryServerlessInference] = None
+ message: Optional[StrictStr] = None
+ success: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = ["billing_history_serverless_inference", "message", "success"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of TokenBasedBillingHistoryResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of billing_history_serverless_inference
+ if self.billing_history_serverless_inference:
+ _dict['billing_history_serverless_inference'] = self.billing_history_serverless_inference.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of TokenBasedBillingHistoryResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "billing_history_serverless_inference": BillingHistoryServerlessInference.from_dict(obj["billing_history_serverless_inference"]) if obj.get("billing_history_serverless_inference") is not None else None,
+ "message": obj.get("message"),
+ "success": obj.get("success")
+ })
+ return _obj
+
+
diff --git a/hyperstack/models/token_fields.py b/hyperstack/models/token_fields.py
deleted file mode 100644
index f4afbdc..0000000
--- a/hyperstack/models/token_fields.py
+++ /dev/null
@@ -1,91 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class TokenFields(BaseModel):
- """
- TokenFields
- """ # noqa: E501
- access_token: Optional[StrictStr] = None
- id_token: Optional[StrictStr] = None
- refresh_token: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["access_token", "id_token", "refresh_token"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of TokenFields from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of TokenFields from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "access_token": obj.get("access_token"),
- "id_token": obj.get("id_token"),
- "refresh_token": obj.get("refresh_token")
- })
- return _obj
-
-
diff --git a/hyperstack/models/update_contract_payload.py b/hyperstack/models/update_contract_payload.py
deleted file mode 100644
index 48611d6..0000000
--- a/hyperstack/models/update_contract_payload.py
+++ /dev/null
@@ -1,104 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.contract_resource_payload import ContractResourcePayload
-from typing import Optional, Set
-from typing_extensions import Self
-
-class UpdateContractPayload(BaseModel):
- """
- UpdateContractPayload
- """ # noqa: E501
- description: Optional[StrictStr] = None
- discount_resources: List[ContractResourcePayload]
- end_date: Optional[datetime] = None
- expiration_policy: StrictInt
- start_date: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["description", "discount_resources", "end_date", "expiration_policy", "start_date"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of UpdateContractPayload from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in discount_resources (list)
- _items = []
- if self.discount_resources:
- for _item_discount_resources in self.discount_resources:
- if _item_discount_resources:
- _items.append(_item_discount_resources.to_dict())
- _dict['discount_resources'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of UpdateContractPayload from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "description": obj.get("description"),
- "discount_resources": [ContractResourcePayload.from_dict(_item) for _item in obj["discount_resources"]] if obj.get("discount_resources") is not None else None,
- "end_date": obj.get("end_date"),
- "expiration_policy": obj.get("expiration_policy"),
- "start_date": obj.get("start_date")
- })
- return _obj
-
-
diff --git a/hyperstack/models/update_discounts_payload.py b/hyperstack/models/update_discounts_payload.py
deleted file mode 100644
index 2c14cee..0000000
--- a/hyperstack/models/update_discounts_payload.py
+++ /dev/null
@@ -1,102 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.discount_resource_payload import DiscountResourcePayload
-from typing import Optional, Set
-from typing_extensions import Self
-
-class UpdateDiscountsPayload(BaseModel):
- """
- UpdateDiscountsPayload
- """ # noqa: E501
- discount_resources: List[DiscountResourcePayload]
- discount_status: StrictStr
- end_date: Optional[datetime] = None
- start_date: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["discount_resources", "discount_status", "end_date", "start_date"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of UpdateDiscountsPayload from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in discount_resources (list)
- _items = []
- if self.discount_resources:
- for _item_discount_resources in self.discount_resources:
- if _item_discount_resources:
- _items.append(_item_discount_resources.to_dict())
- _dict['discount_resources'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of UpdateDiscountsPayload from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "discount_resources": [DiscountResourcePayload.from_dict(_item) for _item in obj["discount_resources"]] if obj.get("discount_resources") is not None else None,
- "discount_status": obj.get("discount_status"),
- "end_date": obj.get("end_date"),
- "start_date": obj.get("start_date")
- })
- return _obj
-
-
diff --git a/hyperstack/models/update_keypairnameresponse.py b/hyperstack/models/update_keypair_name_response.py
similarity index 93%
rename from hyperstack/models/update_keypairnameresponse.py
rename to hyperstack/models/update_keypair_name_response.py
index 196accc..56aeb1c 100644
--- a/hyperstack/models/update_keypairnameresponse.py
+++ b/hyperstack/models/update_keypair_name_response.py
@@ -23,9 +23,9 @@
from typing import Optional, Set
from typing_extensions import Self
-class UpdateKeypairnameresponse(BaseModel):
+class UpdateKeypairNameResponse(BaseModel):
"""
- UpdateKeypairnameresponse
+ UpdateKeypairNameResponse
""" # noqa: E501
keypair: Optional[KeypairFields] = None
message: Optional[StrictStr] = None
@@ -50,7 +50,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of UpdateKeypairnameresponse from a JSON string"""
+ """Create an instance of UpdateKeypairNameResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -78,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of UpdateKeypairnameresponse from a dict"""
+ """Create an instance of UpdateKeypairNameResponse from a dict"""
if obj is None:
return None
diff --git a/hyperstack/models/update_volume_attachment_payload.py b/hyperstack/models/update_volume_attachment_payload.py
new file mode 100644
index 0000000..b8e4120
--- /dev/null
+++ b/hyperstack/models/update_volume_attachment_payload.py
@@ -0,0 +1,87 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictBool
+from typing import Any, ClassVar, Dict, List, Optional
+from typing import Optional, Set
+from typing_extensions import Self
+
+class UpdateVolumeAttachmentPayload(BaseModel):
+ """
+ UpdateVolumeAttachmentPayload
+ """ # noqa: E501
+ protected: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = ["protected"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of UpdateVolumeAttachmentPayload from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of UpdateVolumeAttachmentPayload from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "protected": obj.get("protected")
+ })
+ return _obj
+
+
diff --git a/hyperstack/models/verify_api_key_payload.py b/hyperstack/models/update_volume_payload.py
similarity index 83%
rename from hyperstack/models/verify_api_key_payload.py
rename to hyperstack/models/update_volume_payload.py
index 9302802..ddf5a73 100644
--- a/hyperstack/models/verify_api_key_payload.py
+++ b/hyperstack/models/update_volume_payload.py
@@ -22,12 +22,12 @@
from typing import Optional, Set
from typing_extensions import Self
-class VerifyApiKeyPayload(BaseModel):
+class UpdateVolumePayload(BaseModel):
"""
- VerifyApiKeyPayload
+ UpdateVolumePayload
""" # noqa: E501
- api_key: StrictStr = Field(description="The direction of traffic that the firewall rule applies to.")
- __properties: ClassVar[List[str]] = ["api_key"]
+ environment_name: StrictStr = Field(description="The name of the target environment to move the volume to. The target environment must be in the same region as the current environment.")
+ __properties: ClassVar[List[str]] = ["environment_name"]
model_config = ConfigDict(
populate_by_name=True,
@@ -47,7 +47,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of VerifyApiKeyPayload from a JSON string"""
+ """Create an instance of UpdateVolumePayload from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -72,7 +72,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of VerifyApiKeyPayload from a dict"""
+ """Create an instance of UpdateVolumePayload from a dict"""
if obj is None:
return None
@@ -80,7 +80,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "api_key": obj.get("api_key")
+ "environment_name": obj.get("environment_name")
})
return _obj
diff --git a/hyperstack/models/stock_visibility_user_list_response.py b/hyperstack/models/update_volume_response.py
similarity index 75%
rename from hyperstack/models/stock_visibility_user_list_response.py
rename to hyperstack/models/update_volume_response.py
index 5a33037..db7a663 100644
--- a/hyperstack/models/stock_visibility_user_list_response.py
+++ b/hyperstack/models/update_volume_response.py
@@ -17,20 +17,21 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
+from pydantic import BaseModel, ConfigDict, Field, StrictBool, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.single_visibility_user_response import SingleVisibilityUserResponse
+from ..models.volume_fields import VolumeFields
from typing import Optional, Set
from typing_extensions import Self
-class StockVisibilityUserListResponse(BaseModel):
+class UpdateVolumeResponse(BaseModel):
"""
- StockVisibilityUserListResponse
+ UpdateVolumeResponse
""" # noqa: E501
message: Optional[StrictStr] = None
status: Optional[StrictBool] = None
- users: Optional[List[SingleVisibilityUserResponse]] = None
- __properties: ClassVar[List[str]] = ["message", "status", "users"]
+ updates: Optional[Dict[str, Any]] = Field(default=None, description="Summary of fields that were updated")
+ volume: Optional[VolumeFields] = None
+ __properties: ClassVar[List[str]] = ["message", "status", "updates", "volume"]
model_config = ConfigDict(
populate_by_name=True,
@@ -50,7 +51,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of StockVisibilityUserListResponse from a JSON string"""
+ """Create an instance of UpdateVolumeResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -71,18 +72,14 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of each item in users (list)
- _items = []
- if self.users:
- for _item_users in self.users:
- if _item_users:
- _items.append(_item_users.to_dict())
- _dict['users'] = _items
+ # override the default output from pydantic by calling `to_dict()` of volume
+ if self.volume:
+ _dict['volume'] = self.volume.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of StockVisibilityUserListResponse from a dict"""
+ """Create an instance of UpdateVolumeResponse from a dict"""
if obj is None:
return None
@@ -92,7 +89,8 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"message": obj.get("message"),
"status": obj.get("status"),
- "users": [SingleVisibilityUserResponse.from_dict(_item) for _item in obj["users"]] if obj.get("users") is not None else None
+ "updates": obj.get("updates"),
+ "volume": VolumeFields.from_dict(obj["volume"]) if obj.get("volume") is not None else None
})
return _obj
diff --git a/hyperstack/models/auth_request_login_fields.py b/hyperstack/models/uris.py
similarity index 74%
rename from hyperstack/models/auth_request_login_fields.py
rename to hyperstack/models/uris.py
index 4258739..3704adb 100644
--- a/hyperstack/models/auth_request_login_fields.py
+++ b/hyperstack/models/uris.py
@@ -22,13 +22,18 @@
from typing import Optional, Set
from typing_extensions import Self
-class AuthRequestLoginFields(BaseModel):
+class URIs(BaseModel):
"""
- AuthRequestLoginFields
+ URIs
""" # noqa: E501
- authorization_url: Optional[StrictStr] = None
- session_id: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["authorization_url", "session_id"]
+ api_doc: Optional[StrictStr] = None
+ api_uri: Optional[StrictStr] = None
+ auth: Optional[StrictStr] = None
+ console: Optional[StrictStr] = None
+ contact_us: Optional[StrictStr] = None
+ doc: Optional[StrictStr] = None
+ landing_page: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["api_doc", "api_uri", "auth", "console", "contact_us", "doc", "landing_page"]
model_config = ConfigDict(
populate_by_name=True,
@@ -48,7 +53,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of AuthRequestLoginFields from a JSON string"""
+ """Create an instance of URIs from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -73,7 +78,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of AuthRequestLoginFields from a dict"""
+ """Create an instance of URIs from a dict"""
if obj is None:
return None
@@ -81,8 +86,13 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "authorization_url": obj.get("authorization_url"),
- "session_id": obj.get("session_id")
+ "api_doc": obj.get("api_doc"),
+ "api_uri": obj.get("api_uri"),
+ "auth": obj.get("auth"),
+ "console": obj.get("console"),
+ "contact_us": obj.get("contact_us"),
+ "doc": obj.get("doc"),
+ "landing_page": obj.get("landing_page")
})
return _obj
diff --git a/hyperstack/models/userinfopostpayload.py b/hyperstack/models/user_info_post_payload.py
similarity index 94%
rename from hyperstack/models/userinfopostpayload.py
rename to hyperstack/models/user_info_post_payload.py
index 574b1b5..25ac4eb 100644
--- a/hyperstack/models/userinfopostpayload.py
+++ b/hyperstack/models/user_info_post_payload.py
@@ -22,9 +22,9 @@
from typing import Optional, Set
from typing_extensions import Self
-class Userinfopostpayload(BaseModel):
+class UserInfoPostPayload(BaseModel):
"""
- Userinfopostpayload
+ UserInfoPostPayload
""" # noqa: E501
billing_address1: Optional[StrictStr] = None
billing_address2: Optional[StrictStr] = None
@@ -57,7 +57,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of Userinfopostpayload from a JSON string"""
+ """Create an instance of UserInfoPostPayload from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -82,7 +82,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of Userinfopostpayload from a dict"""
+ """Create an instance of UserInfoPostPayload from a dict"""
if obj is None:
return None
diff --git a/hyperstack/models/node_stock_response_model.py b/hyperstack/models/user_organizations_response.py
similarity index 74%
rename from hyperstack/models/node_stock_response_model.py
rename to hyperstack/models/user_organizations_response.py
index fdef62e..391c57e 100644
--- a/hyperstack/models/node_stock_response_model.py
+++ b/hyperstack/models/user_organizations_response.py
@@ -19,16 +19,16 @@
from pydantic import BaseModel, ConfigDict
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.node_response_model import NodeResponseModel
+from ..models.organization_fields import OrganizationFields
from typing import Optional, Set
from typing_extensions import Self
-class NodeStockResponseModel(BaseModel):
+class UserOrganizationsResponse(BaseModel):
"""
- NodeStockResponseModel
+ UserOrganizationsResponse
""" # noqa: E501
- stocks: Optional[List[NodeResponseModel]] = None
- __properties: ClassVar[List[str]] = ["stocks"]
+ organizations: Optional[List[OrganizationFields]] = None
+ __properties: ClassVar[List[str]] = ["organizations"]
model_config = ConfigDict(
populate_by_name=True,
@@ -48,7 +48,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of NodeStockResponseModel from a JSON string"""
+ """Create an instance of UserOrganizationsResponse from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -69,18 +69,18 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of each item in stocks (list)
+ # override the default output from pydantic by calling `to_dict()` of each item in organizations (list)
_items = []
- if self.stocks:
- for _item_stocks in self.stocks:
- if _item_stocks:
- _items.append(_item_stocks.to_dict())
- _dict['stocks'] = _items
+ if self.organizations:
+ for _item_organizations in self.organizations:
+ if _item_organizations:
+ _items.append(_item_organizations.to_dict())
+ _dict['organizations'] = _items
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of NodeStockResponseModel from a dict"""
+ """Create an instance of UserOrganizationsResponse from a dict"""
if obj is None:
return None
@@ -88,7 +88,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
- "stocks": [NodeResponseModel.from_dict(_item) for _item in obj["stocks"]] if obj.get("stocks") is not None else None
+ "organizations": [OrganizationFields.from_dict(_item) for _item in obj["organizations"]] if obj.get("organizations") is not None else None
})
return _obj
diff --git a/hyperstack/models/user_transfer_payload.py b/hyperstack/models/user_transfer_payload.py
deleted file mode 100644
index 3af1c33..0000000
--- a/hyperstack/models/user_transfer_payload.py
+++ /dev/null
@@ -1,89 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List
-from typing import Optional, Set
-from typing_extensions import Self
-
-class UserTransferPayload(BaseModel):
- """
- UserTransferPayload
- """ # noqa: E501
- org_id: StrictInt
- role: StrictStr
- __properties: ClassVar[List[str]] = ["org_id", "role"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of UserTransferPayload from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of UserTransferPayload from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "org_id": obj.get("org_id"),
- "role": obj.get("role")
- })
- return _obj
-
-
diff --git a/hyperstack/models/users_info_fields.py b/hyperstack/models/users_info_fields.py
index 0b199af..e46c804 100644
--- a/hyperstack/models/users_info_fields.py
+++ b/hyperstack/models/users_info_fields.py
@@ -39,9 +39,10 @@ class UsersInfoFields(BaseModel):
organization_id: Optional[StrictInt] = None
phone: Optional[StrictStr] = None
state: Optional[StrictStr] = None
+ stripe_user_id: Optional[StrictStr] = None
vat_number: Optional[StrictStr] = None
zip_code: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["billing_address1", "billing_address2", "business", "company_name", "country", "created_at", "email", "id", "name", "organization_id", "phone", "state", "vat_number", "zip_code"]
+ __properties: ClassVar[List[str]] = ["billing_address1", "billing_address2", "business", "company_name", "country", "created_at", "email", "id", "name", "organization_id", "phone", "state", "stripe_user_id", "vat_number", "zip_code"]
model_config = ConfigDict(
populate_by_name=True,
@@ -106,6 +107,7 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
"organization_id": obj.get("organization_id"),
"phone": obj.get("phone"),
"state": obj.get("state"),
+ "stripe_user_id": obj.get("stripe_user_id"),
"vat_number": obj.get("vat_number"),
"zip_code": obj.get("zip_code")
})
diff --git a/hyperstack/models/verify_api_key_response_model.py b/hyperstack/models/verify_api_key_response_model.py
deleted file mode 100644
index ef3f132..0000000
--- a/hyperstack/models/verify_api_key_response_model.py
+++ /dev/null
@@ -1,95 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.api_key_verify_fields import ApiKeyVerifyFields
-from typing import Optional, Set
-from typing_extensions import Self
-
-class VerifyApiKeyResponseModel(BaseModel):
- """
- VerifyApiKeyResponseModel
- """ # noqa: E501
- api_key: Optional[ApiKeyVerifyFields] = None
- message: Optional[StrictStr] = None
- status: Optional[StrictBool] = None
- __properties: ClassVar[List[str]] = ["api_key", "message", "status"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of VerifyApiKeyResponseModel from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of api_key
- if self.api_key:
- _dict['api_key'] = self.api_key.to_dict()
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of VerifyApiKeyResponseModel from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "api_key": ApiKeyVerifyFields.from_dict(obj["api_key"]) if obj.get("api_key") is not None else None,
- "message": obj.get("message"),
- "status": obj.get("status")
- })
- return _obj
-
-
diff --git a/hyperstack/models/volume_attachment_fields.py b/hyperstack/models/volume_attachment_fields.py
index ea816c4..5f60764 100644
--- a/hyperstack/models/volume_attachment_fields.py
+++ b/hyperstack/models/volume_attachment_fields.py
@@ -18,9 +18,9 @@
import json
from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictStr
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.volume_fieldsfor_instance import VolumeFieldsforInstance
+from ..models.volume_fields_for_instance import VolumeFieldsForInstance
from typing import Optional, Set
from typing_extensions import Self
@@ -30,9 +30,11 @@ class VolumeAttachmentFields(BaseModel):
""" # noqa: E501
created_at: Optional[datetime] = None
device: Optional[StrictStr] = None
+ id: Optional[StrictInt] = None
+ protected: Optional[StrictBool] = None
status: Optional[StrictStr] = None
- volume: Optional[VolumeFieldsforInstance] = None
- __properties: ClassVar[List[str]] = ["created_at", "device", "status", "volume"]
+ volume: Optional[VolumeFieldsForInstance] = None
+ __properties: ClassVar[List[str]] = ["created_at", "device", "id", "protected", "status", "volume"]
model_config = ConfigDict(
populate_by_name=True,
@@ -90,8 +92,10 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
_obj = cls.model_validate({
"created_at": obj.get("created_at"),
"device": obj.get("device"),
+ "id": obj.get("id"),
+ "protected": obj.get("protected"),
"status": obj.get("status"),
- "volume": VolumeFieldsforInstance.from_dict(obj["volume"]) if obj.get("volume") is not None else None
+ "volume": VolumeFieldsForInstance.from_dict(obj["volume"]) if obj.get("volume") is not None else None
})
return _obj
diff --git a/hyperstack/models/volume_fields.py b/hyperstack/models/volume_fields.py
index 74a9bed..af9abb8 100644
--- a/hyperstack/models/volume_fields.py
+++ b/hyperstack/models/volume_fields.py
@@ -20,7 +20,8 @@
from datetime import datetime
from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.environment_fieldsfor_volume import EnvironmentFieldsforVolume
+from ..models.attachments_fields_for_volume import AttachmentsFieldsForVolume
+from ..models.environment_fields_for_volume import EnvironmentFieldsForVolume
from typing import Optional, Set
from typing_extensions import Self
@@ -28,11 +29,12 @@ class VolumeFields(BaseModel):
"""
VolumeFields
""" # noqa: E501
+ attachments: Optional[List[AttachmentsFieldsForVolume]] = None
bootable: Optional[StrictBool] = None
callback_url: Optional[StrictStr] = None
created_at: Optional[datetime] = None
description: Optional[StrictStr] = None
- environment: Optional[EnvironmentFieldsforVolume] = None
+ environment: Optional[EnvironmentFieldsForVolume] = None
id: Optional[StrictInt] = None
image_id: Optional[StrictInt] = None
name: Optional[StrictStr] = None
@@ -41,7 +43,7 @@ class VolumeFields(BaseModel):
status: Optional[StrictStr] = None
updated_at: Optional[datetime] = None
volume_type: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["bootable", "callback_url", "created_at", "description", "environment", "id", "image_id", "name", "os_image", "size", "status", "updated_at", "volume_type"]
+ __properties: ClassVar[List[str]] = ["attachments", "bootable", "callback_url", "created_at", "description", "environment", "id", "image_id", "name", "os_image", "size", "status", "updated_at", "volume_type"]
model_config = ConfigDict(
populate_by_name=True,
@@ -82,6 +84,13 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
+ # override the default output from pydantic by calling `to_dict()` of each item in attachments (list)
+ _items = []
+ if self.attachments:
+ for _item_attachments in self.attachments:
+ if _item_attachments:
+ _items.append(_item_attachments.to_dict())
+ _dict['attachments'] = _items
# override the default output from pydantic by calling `to_dict()` of environment
if self.environment:
_dict['environment'] = self.environment.to_dict()
@@ -97,11 +106,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
+ "attachments": [AttachmentsFieldsForVolume.from_dict(_item) for _item in obj["attachments"]] if obj.get("attachments") is not None else None,
"bootable": obj.get("bootable"),
"callback_url": obj.get("callback_url"),
"created_at": obj.get("created_at"),
"description": obj.get("description"),
- "environment": EnvironmentFieldsforVolume.from_dict(obj["environment"]) if obj.get("environment") is not None else None,
+ "environment": EnvironmentFieldsForVolume.from_dict(obj["environment"]) if obj.get("environment") is not None else None,
"id": obj.get("id"),
"image_id": obj.get("image_id"),
"name": obj.get("name"),
diff --git a/hyperstack/models/volume_fieldsfor_instance.py b/hyperstack/models/volume_fields_for_instance.py
similarity index 93%
rename from hyperstack/models/volume_fieldsfor_instance.py
rename to hyperstack/models/volume_fields_for_instance.py
index 815a8f8..a93941e 100644
--- a/hyperstack/models/volume_fieldsfor_instance.py
+++ b/hyperstack/models/volume_fields_for_instance.py
@@ -22,9 +22,9 @@
from typing import Optional, Set
from typing_extensions import Self
-class VolumeFieldsforInstance(BaseModel):
+class VolumeFieldsForInstance(BaseModel):
"""
- VolumeFieldsforInstance
+ VolumeFieldsForInstance
""" # noqa: E501
bootable: Optional[StrictBool] = None
description: Optional[StrictStr] = None
@@ -52,7 +52,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of VolumeFieldsforInstance from a JSON string"""
+ """Create an instance of VolumeFieldsForInstance from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -77,7 +77,7 @@ def to_dict(self) -> Dict[str, Any]:
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of VolumeFieldsforInstance from a dict"""
+ """Create an instance of VolumeFieldsForInstance from a dict"""
if obj is None:
return None
diff --git a/hyperstack/models/volume_status_change_fields.py b/hyperstack/models/volume_status_change_fields.py
deleted file mode 100644
index 2c9f0db..0000000
--- a/hyperstack/models/volume_status_change_fields.py
+++ /dev/null
@@ -1,96 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class VolumeStatusChangeFields(BaseModel):
- """
- VolumeStatusChangeFields
- """ # noqa: E501
- created_at: Optional[datetime] = None
- current_status: Optional[StrictStr] = None
- id: Optional[StrictInt] = None
- previous_status: Optional[StrictStr] = None
- volume_id: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["created_at", "current_status", "id", "previous_status", "volume_id"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of VolumeStatusChangeFields from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of VolumeStatusChangeFields from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "created_at": obj.get("created_at"),
- "current_status": obj.get("current_status"),
- "id": obj.get("id"),
- "previous_status": obj.get("previous_status"),
- "volume_id": obj.get("volume_id")
- })
- return _obj
-
-
diff --git a/hyperstack/models/volumes.py b/hyperstack/models/volumes.py
index e9f61cb..abec933 100644
--- a/hyperstack/models/volumes.py
+++ b/hyperstack/models/volumes.py
@@ -17,9 +17,9 @@
import re # noqa: F401
import json
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
-from ..models.volume_fields import VolumeFields
+from ..models.volumes_fields import VolumesFields
from typing import Optional, Set
from typing_extensions import Self
@@ -27,10 +27,13 @@ class Volumes(BaseModel):
"""
Volumes
""" # noqa: E501
+ count: Optional[StrictInt] = None
message: Optional[StrictStr] = None
+ page: Optional[StrictInt] = None
+ page_size: Optional[StrictInt] = None
status: Optional[StrictBool] = None
- volume: Optional[List[VolumeFields]] = None
- __properties: ClassVar[List[str]] = ["message", "status", "volume"]
+ volumes: Optional[List[VolumesFields]] = None
+ __properties: ClassVar[List[str]] = ["count", "message", "page", "page_size", "status", "volumes"]
model_config = ConfigDict(
populate_by_name=True,
@@ -71,13 +74,13 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
- # override the default output from pydantic by calling `to_dict()` of each item in volume (list)
+ # override the default output from pydantic by calling `to_dict()` of each item in volumes (list)
_items = []
- if self.volume:
- for _item_volume in self.volume:
- if _item_volume:
- _items.append(_item_volume.to_dict())
- _dict['volume'] = _items
+ if self.volumes:
+ for _item_volumes in self.volumes:
+ if _item_volumes:
+ _items.append(_item_volumes.to_dict())
+ _dict['volumes'] = _items
return _dict
@classmethod
@@ -90,9 +93,12 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
+ "count": obj.get("count"),
"message": obj.get("message"),
+ "page": obj.get("page"),
+ "page_size": obj.get("page_size"),
"status": obj.get("status"),
- "volume": [VolumeFields.from_dict(_item) for _item in obj["volume"]] if obj.get("volume") is not None else None
+ "volumes": [VolumesFields.from_dict(_item) for _item in obj["volumes"]] if obj.get("volumes") is not None else None
})
return _obj
diff --git a/hyperstack/models/instances_summary_fields.py b/hyperstack/models/volumes_fields.py
similarity index 58%
rename from hyperstack/models/instances_summary_fields.py
rename to hyperstack/models/volumes_fields.py
index c100061..5797812 100644
--- a/hyperstack/models/instances_summary_fields.py
+++ b/hyperstack/models/volumes_fields.py
@@ -18,33 +18,31 @@
import json
from datetime import datetime
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
from typing import Any, ClassVar, Dict, List, Optional
+from ..models.attachments_fields_for_volume import AttachmentsFieldsForVolume
+from ..models.environment_fields_for_volume import EnvironmentFieldsForVolume
from typing import Optional, Set
from typing_extensions import Self
-class InstancesSummaryFields(BaseModel):
+class VolumesFields(BaseModel):
"""
- InstancesSummaryFields
+ VolumesFields
""" # noqa: E501
+ attachments: Optional[List[AttachmentsFieldsForVolume]] = None
+ bootable: Optional[StrictBool] = None
+ callback_url: Optional[StrictStr] = None
created_at: Optional[datetime] = None
- environment: Optional[StrictStr] = None
- environment_id: Optional[StrictInt] = None
- fixed_ip: Optional[StrictStr] = None
- flavor: Optional[StrictStr] = None
- flavor_id: Optional[StrictInt] = None
- floating_ip: Optional[StrictStr] = None
- floating_ip_status: Optional[StrictStr] = None
+ description: Optional[StrictStr] = None
+ environment: Optional[EnvironmentFieldsForVolume] = None
id: Optional[StrictInt] = None
- image: Optional[StrictStr] = None
image_id: Optional[StrictInt] = None
- keypair: Optional[StrictStr] = None
- keypair_id: Optional[StrictInt] = None
name: Optional[StrictStr] = None
- org_id: Optional[StrictInt] = None
+ size: Optional[StrictInt] = None
status: Optional[StrictStr] = None
updated_at: Optional[datetime] = None
- __properties: ClassVar[List[str]] = ["created_at", "environment", "environment_id", "fixed_ip", "flavor", "flavor_id", "floating_ip", "floating_ip_status", "id", "image", "image_id", "keypair", "keypair_id", "name", "org_id", "status", "updated_at"]
+ volume_type: Optional[StrictStr] = None
+ __properties: ClassVar[List[str]] = ["attachments", "bootable", "callback_url", "created_at", "description", "environment", "id", "image_id", "name", "size", "status", "updated_at", "volume_type"]
model_config = ConfigDict(
populate_by_name=True,
@@ -64,7 +62,7 @@ def to_json(self) -> str:
@classmethod
def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of InstancesSummaryFields from a JSON string"""
+ """Create an instance of VolumesFields from a JSON string"""
return cls.from_dict(json.loads(json_str))
def to_dict(self) -> Dict[str, Any]:
@@ -85,11 +83,21 @@ def to_dict(self) -> Dict[str, Any]:
exclude=excluded_fields,
exclude_none=True,
)
+ # override the default output from pydantic by calling `to_dict()` of each item in attachments (list)
+ _items = []
+ if self.attachments:
+ for _item_attachments in self.attachments:
+ if _item_attachments:
+ _items.append(_item_attachments.to_dict())
+ _dict['attachments'] = _items
+ # override the default output from pydantic by calling `to_dict()` of environment
+ if self.environment:
+ _dict['environment'] = self.environment.to_dict()
return _dict
@classmethod
def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of InstancesSummaryFields from a dict"""
+ """Create an instance of VolumesFields from a dict"""
if obj is None:
return None
@@ -97,23 +105,19 @@ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
return cls.model_validate(obj)
_obj = cls.model_validate({
+ "attachments": [AttachmentsFieldsForVolume.from_dict(_item) for _item in obj["attachments"]] if obj.get("attachments") is not None else None,
+ "bootable": obj.get("bootable"),
+ "callback_url": obj.get("callback_url"),
"created_at": obj.get("created_at"),
- "environment": obj.get("environment"),
- "environment_id": obj.get("environment_id"),
- "fixed_ip": obj.get("fixed_ip"),
- "flavor": obj.get("flavor"),
- "flavor_id": obj.get("flavor_id"),
- "floating_ip": obj.get("floating_ip"),
- "floating_ip_status": obj.get("floating_ip_status"),
+ "description": obj.get("description"),
+ "environment": EnvironmentFieldsForVolume.from_dict(obj["environment"]) if obj.get("environment") is not None else None,
"id": obj.get("id"),
- "image": obj.get("image"),
"image_id": obj.get("image_id"),
- "keypair": obj.get("keypair"),
- "keypair_id": obj.get("keypair_id"),
"name": obj.get("name"),
- "org_id": obj.get("org_id"),
+ "size": obj.get("size"),
"status": obj.get("status"),
- "updated_at": obj.get("updated_at")
+ "updated_at": obj.get("updated_at"),
+ "volume_type": obj.get("volume_type")
})
return _obj
diff --git a/hyperstack/models/volumes_last_status_change_response.py b/hyperstack/models/volumes_last_status_change_response.py
deleted file mode 100644
index bbd9a9a..0000000
--- a/hyperstack/models/volumes_last_status_change_response.py
+++ /dev/null
@@ -1,99 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.volume_status_change_fields import VolumeStatusChangeFields
-from typing import Optional, Set
-from typing_extensions import Self
-
-class VolumesLastStatusChangeResponse(BaseModel):
- """
- VolumesLastStatusChangeResponse
- """ # noqa: E501
- message: Optional[StrictStr] = None
- status: Optional[StrictBool] = None
- volume_status_list: Optional[List[VolumeStatusChangeFields]] = None
- __properties: ClassVar[List[str]] = ["message", "status", "volume_status_list"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of VolumesLastStatusChangeResponse from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in volume_status_list (list)
- _items = []
- if self.volume_status_list:
- for _item_volume_status_list in self.volume_status_list:
- if _item_volume_status_list:
- _items.append(_item_volume_status_list.to_dict())
- _dict['volume_status_list'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of VolumesLastStatusChangeResponse from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "message": obj.get("message"),
- "status": obj.get("status"),
- "volume_status_list": [VolumeStatusChangeFields.from_dict(_item) for _item in obj["volume_status_list"]] if obj.get("volume_status_list") is not None else None
- })
- return _obj
-
-
diff --git a/hyperstack/models/warning_mail_log_fields.py b/hyperstack/models/warning_mail_log_fields.py
deleted file mode 100644
index aec94d0..0000000
--- a/hyperstack/models/warning_mail_log_fields.py
+++ /dev/null
@@ -1,99 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from typing import Optional, Set
-from typing_extensions import Self
-
-class WarningMailLogFields(BaseModel):
- """
- WarningMailLogFields
- """ # noqa: E501
- content: Optional[StrictStr] = None
- created_at: Optional[StrictStr] = None
- id: Optional[StrictInt] = None
- organization_id: Optional[StrictInt] = None
- threshold: Optional[StrictInt] = None
- topic: Optional[StrictStr] = None
- updated_at: Optional[StrictStr] = None
- __properties: ClassVar[List[str]] = ["content", "created_at", "id", "organization_id", "threshold", "topic", "updated_at"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of WarningMailLogFields from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of WarningMailLogFields from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "content": obj.get("content"),
- "created_at": obj.get("created_at"),
- "id": obj.get("id"),
- "organization_id": obj.get("organization_id"),
- "threshold": obj.get("threshold"),
- "topic": obj.get("topic"),
- "updated_at": obj.get("updated_at")
- })
- return _obj
-
-
diff --git a/hyperstack/models/warning_mail_log_response.py b/hyperstack/models/warning_mail_log_response.py
deleted file mode 100644
index 6e7b191..0000000
--- a/hyperstack/models/warning_mail_log_response.py
+++ /dev/null
@@ -1,101 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-from __future__ import annotations
-import pprint
-import re # noqa: F401
-import json
-
-from pydantic import BaseModel, ConfigDict, StrictBool, StrictInt, StrictStr
-from typing import Any, ClassVar, Dict, List, Optional
-from ..models.warning_mail_log_fields import WarningMailLogFields
-from typing import Optional, Set
-from typing_extensions import Self
-
-class WarningMailLogResponse(BaseModel):
- """
- WarningMailLogResponse
- """ # noqa: E501
- data: Optional[List[WarningMailLogFields]] = None
- message: Optional[StrictStr] = None
- status: Optional[StrictBool] = None
- total: Optional[StrictInt] = None
- __properties: ClassVar[List[str]] = ["data", "message", "status", "total"]
-
- model_config = ConfigDict(
- populate_by_name=True,
- validate_assignment=True,
- protected_namespaces=(),
- )
-
-
- def to_str(self) -> str:
- """Returns the string representation of the model using alias"""
- return pprint.pformat(self.model_dump(by_alias=True))
-
- def to_json(self) -> str:
- """Returns the JSON representation of the model using alias"""
- # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
- return json.dumps(self.to_dict())
-
- @classmethod
- def from_json(cls, json_str: str) -> Optional[Self]:
- """Create an instance of WarningMailLogResponse from a JSON string"""
- return cls.from_dict(json.loads(json_str))
-
- def to_dict(self) -> Dict[str, Any]:
- """Return the dictionary representation of the model using alias.
-
- This has the following differences from calling pydantic's
- `self.model_dump(by_alias=True)`:
-
- * `None` is only added to the output dict for nullable fields that
- were set at model initialization. Other fields with value `None`
- are ignored.
- """
- excluded_fields: Set[str] = set([
- ])
-
- _dict = self.model_dump(
- by_alias=True,
- exclude=excluded_fields,
- exclude_none=True,
- )
- # override the default output from pydantic by calling `to_dict()` of each item in data (list)
- _items = []
- if self.data:
- for _item_data in self.data:
- if _item_data:
- _items.append(_item_data.to_dict())
- _dict['data'] = _items
- return _dict
-
- @classmethod
- def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
- """Create an instance of WarningMailLogResponse from a dict"""
- if obj is None:
- return None
-
- if not isinstance(obj, dict):
- return cls.model_validate(obj)
-
- _obj = cls.model_validate({
- "data": [WarningMailLogFields.from_dict(_item) for _item in obj["data"]] if obj.get("data") is not None else None,
- "message": obj.get("message"),
- "status": obj.get("status"),
- "total": obj.get("total")
- })
- return _obj
-
-
diff --git a/hyperstack/models/workload_billing_history_response.py b/hyperstack/models/workload_billing_history_response.py
new file mode 100644
index 0000000..17fbf3e
--- /dev/null
+++ b/hyperstack/models/workload_billing_history_response.py
@@ -0,0 +1,95 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+from __future__ import annotations
+import pprint
+import re # noqa: F401
+import json
+
+from pydantic import BaseModel, ConfigDict, StrictBool, StrictStr
+from typing import Any, ClassVar, Dict, List, Optional
+from ..models.billing_history_fine_tuning import BillingHistoryFineTuning
+from typing import Optional, Set
+from typing_extensions import Self
+
+class WorkloadBillingHistoryResponse(BaseModel):
+ """
+ WorkloadBillingHistoryResponse
+ """ # noqa: E501
+ billing_history_fine_tuning: Optional[BillingHistoryFineTuning] = None
+ message: Optional[StrictStr] = None
+ success: Optional[StrictBool] = None
+ __properties: ClassVar[List[str]] = ["billing_history_fine_tuning", "message", "success"]
+
+ model_config = ConfigDict(
+ populate_by_name=True,
+ validate_assignment=True,
+ protected_namespaces=(),
+ )
+
+
+ def to_str(self) -> str:
+ """Returns the string representation of the model using alias"""
+ return pprint.pformat(self.model_dump(by_alias=True))
+
+ def to_json(self) -> str:
+ """Returns the JSON representation of the model using alias"""
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
+ return json.dumps(self.to_dict())
+
+ @classmethod
+ def from_json(cls, json_str: str) -> Optional[Self]:
+ """Create an instance of WorkloadBillingHistoryResponse from a JSON string"""
+ return cls.from_dict(json.loads(json_str))
+
+ def to_dict(self) -> Dict[str, Any]:
+ """Return the dictionary representation of the model using alias.
+
+ This has the following differences from calling pydantic's
+ `self.model_dump(by_alias=True)`:
+
+ * `None` is only added to the output dict for nullable fields that
+ were set at model initialization. Other fields with value `None`
+ are ignored.
+ """
+ excluded_fields: Set[str] = set([
+ ])
+
+ _dict = self.model_dump(
+ by_alias=True,
+ exclude=excluded_fields,
+ exclude_none=True,
+ )
+ # override the default output from pydantic by calling `to_dict()` of billing_history_fine_tuning
+ if self.billing_history_fine_tuning:
+ _dict['billing_history_fine_tuning'] = self.billing_history_fine_tuning.to_dict()
+ return _dict
+
+ @classmethod
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
+ """Create an instance of WorkloadBillingHistoryResponse from a dict"""
+ if obj is None:
+ return None
+
+ if not isinstance(obj, dict):
+ return cls.model_validate(obj)
+
+ _obj = cls.model_validate({
+ "billing_history_fine_tuning": BillingHistoryFineTuning.from_dict(obj["billing_history_fine_tuning"]) if obj.get("billing_history_fine_tuning") is not None else None,
+ "message": obj.get("message"),
+ "success": obj.get("success")
+ })
+ return _obj
+
+
diff --git a/pyproject.toml b/pyproject.toml
index d0982fd..f06d23f 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "hyperstack"
-version = "v1.25.0-alpha"
+version = "v1.41.0-alpha"
description = "Infrahub-API"
authors = ["OpenAPI Generator Community "]
license = "NoLicense"
diff --git a/setup.py b/setup.py
index 97145b9..be64e9d 100644
--- a/setup.py
+++ b/setup.py
@@ -21,7 +21,7 @@
# prerequisite: setuptools
# http://pypi.python.org/pypi/setuptools
NAME = "hyperstack"
-VERSION = "v1.25.0-alpha"
+VERSION = "v1.41.0-alpha"
PYTHON_REQUIRES = ">= 3.8"
REQUIRES = [
"urllib3 >= 1.25.3, < 3.0.0",
diff --git a/test/test_logout_payload.py b/test/test_access_token_field.py
similarity index 67%
rename from test/test_logout_payload.py
rename to test/test_access_token_field.py
index 2f7f539..297668c 100644
--- a/test/test_logout_payload.py
+++ b/test/test_access_token_field.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.logout_payload import LogoutPayload
+from hyperstack.models.access_token_field import AccessTokenField
-class TestLogoutPayload(unittest.TestCase):
- """LogoutPayload unit test stubs"""
+class TestAccessTokenField(unittest.TestCase):
+ """AccessTokenField unit test stubs"""
def setUp(self):
pass
@@ -25,26 +25,25 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> LogoutPayload:
- """Test LogoutPayload
+ def make_instance(self, include_optional) -> AccessTokenField:
+ """Test AccessTokenField
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `LogoutPayload`
+ # uncomment below to create an instance of `AccessTokenField`
"""
- model = LogoutPayload()
+ model = AccessTokenField()
if include_optional:
- return LogoutPayload(
- refresh_token = ''
+ return AccessTokenField(
+ access_token = ''
)
else:
- return LogoutPayload(
- refresh_token = '',
+ return AccessTokenField(
)
"""
- def testLogoutPayload(self):
- """Test LogoutPayload"""
+ def testAccessTokenField(self):
+ """Test AccessTokenField"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_add_update_flavor_organization_payload.py b/test/test_add_update_flavor_organization_payload.py
deleted file mode 100644
index 3f45a09..0000000
--- a/test/test_add_update_flavor_organization_payload.py
+++ /dev/null
@@ -1,79 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.add_update_flavor_organization_payload import AddUpdateFlavorOrganizationPayload
-
-class TestAddUpdateFlavorOrganizationPayload(unittest.TestCase):
- """AddUpdateFlavorOrganizationPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> AddUpdateFlavorOrganizationPayload:
- """Test AddUpdateFlavorOrganizationPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `AddUpdateFlavorOrganizationPayload`
- """
- model = AddUpdateFlavorOrganizationPayload()
- if include_optional:
- return AddUpdateFlavorOrganizationPayload(
- cpu = 56,
- description = '',
- disk = 56,
- ephemeral = 56,
- gpu_count = 56,
- gpu_id = 56,
- is_public = True,
- labels = [
- ''
- ],
- name = '',
- openstack_id = '',
- organizations = [
- 56
- ],
- ram = 1.337,
- region_id = 56
- )
- else:
- return AddUpdateFlavorOrganizationPayload(
- cpu = 56,
- disk = 56,
- gpu_count = 56,
- gpu_id = 56,
- is_public = True,
- name = '',
- openstack_id = '',
- organizations = [
- 56
- ],
- ram = 1.337,
- region_id = 56,
- )
- """
-
- def testAddUpdateFlavorOrganizationPayload(self):
- """Test AddUpdateFlavorOrganizationPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_add_user_info_success_response_model.py b/test/test_add_user_info_success_response_model.py
index 1529ea8..37e43b5 100644
--- a/test/test_add_user_info_success_response_model.py
+++ b/test/test_add_user_info_success_response_model.py
@@ -48,6 +48,7 @@ def make_instance(self, include_optional) -> AddUserInfoSuccessResponseModel:
organization_id = 56,
phone = '',
state = '',
+ stripe_user_id = '',
vat_number = '',
zip_code = '', ),
message = '',
diff --git a/test/test_alive_api.py b/test/test_alive_api.py
index a0399a5..8f5929c 100644
--- a/test/test_alive_api.py
+++ b/test/test_alive_api.py
@@ -33,6 +33,12 @@ def test_get_alive(self) -> None:
"""
pass
+ def test_get_doc(self) -> None:
+ """Test case for get_doc
+
+ """
+ pass
+
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_api_key_api.py b/test/test_api_key_api.py
index 5093be7..f84b1b3 100644
--- a/test/test_api_key_api.py
+++ b/test/test_api_key_api.py
@@ -40,8 +40,8 @@ def test_generate_api_key(self) -> None:
"""
pass
- def test_retrieve_api_keys(self) -> None:
- """Test case for retrieve_api_keys
+ def test_retrieve_api_key(self) -> None:
+ """Test case for retrieve_api_key
Retrieve API Keys
"""
diff --git a/test/test_assigning_member_role_api.py b/test/test_assigning_member_role_api.py
index 957a070..53cb2b8 100644
--- a/test/test_assigning_member_role_api.py
+++ b/test/test_assigning_member_role_api.py
@@ -26,8 +26,8 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
- def test_assign_rbac_role(self) -> None:
- """Test case for assign_rbac_role
+ def test_assign_rbac_role_to_user(self) -> None:
+ """Test case for assign_rbac_role_to_user
Assign RBAC Role
"""
diff --git a/test/test_attach_volume_fields.py b/test/test_attach_volume_fields.py
index 87ccbda..7fd53f6 100644
--- a/test/test_attach_volume_fields.py
+++ b/test/test_attach_volume_fields.py
@@ -36,8 +36,10 @@ def make_instance(self, include_optional) -> AttachVolumeFields:
if include_optional:
return AttachVolumeFields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ device = '',
id = 56,
instance_id = 56,
+ protected = True,
status = '',
volume_id = 56
)
diff --git a/test/test_attach_volumes.py b/test/test_attach_volumes.py
index 0c4a910..493be6f 100644
--- a/test/test_attach_volumes.py
+++ b/test/test_attach_volumes.py
@@ -38,10 +38,12 @@ def make_instance(self, include_optional) -> AttachVolumes:
message = '',
status = True,
volume_attachments = [
- hyperstack.models.attach_volume_fields.AttachVolumeFields(
+ hyperstack.models.attach_volume_fields.Attach_Volume_Fields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ device = '',
id = 56,
instance_id = 56,
+ protected = True,
status = '',
volume_id = 56, )
]
diff --git a/test/test_attach_volumes_payload.py b/test/test_attach_volumes_payload.py
index c3e1632..a6a3557 100644
--- a/test/test_attach_volumes_payload.py
+++ b/test/test_attach_volumes_payload.py
@@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> AttachVolumesPayload:
model = AttachVolumesPayload()
if include_optional:
return AttachVolumesPayload(
+ protected = True,
volume_ids = [
56
]
diff --git a/test/test_future_node_stock_model.py b/test/test_attachments_fields_for_volume.py
similarity index 60%
rename from test/test_future_node_stock_model.py
rename to test/test_attachments_fields_for_volume.py
index 32a4932..ebc2a27 100644
--- a/test/test_future_node_stock_model.py
+++ b/test/test_attachments_fields_for_volume.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.future_node_stock_model import FutureNodeStockModel
+from hyperstack.models.attachments_fields_for_volume import AttachmentsFieldsForVolume
-class TestFutureNodeStockModel(unittest.TestCase):
- """FutureNodeStockModel unit test stubs"""
+class TestAttachmentsFieldsForVolume(unittest.TestCase):
+ """AttachmentsFieldsForVolume unit test stubs"""
def setUp(self):
pass
@@ -25,28 +25,29 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> FutureNodeStockModel:
- """Test FutureNodeStockModel
+ def make_instance(self, include_optional) -> AttachmentsFieldsForVolume:
+ """Test AttachmentsFieldsForVolume
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `FutureNodeStockModel`
+ # uncomment below to create an instance of `AttachmentsFieldsForVolume`
"""
- model = FutureNodeStockModel()
+ model = AttachmentsFieldsForVolume()
if include_optional:
- return FutureNodeStockModel(
- expected_amount = 56,
+ return AttachmentsFieldsForVolume(
+ device = '',
id = 56,
- name = ''
+ instance_id = 56,
+ protected = True,
+ status = ''
)
else:
- return FutureNodeStockModel(
- expected_amount = 56,
+ return AttachmentsFieldsForVolume(
)
"""
- def testFutureNodeStockModel(self):
- """Test FutureNodeStockModel"""
+ def testAttachmentsFieldsForVolume(self):
+ """Test AttachmentsFieldsForVolume"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_customer_payload.py b/test/test_attributes.py
similarity index 63%
rename from test/test_customer_payload.py
rename to test/test_attributes.py
index 00b27c2..0e8a827 100644
--- a/test/test_customer_payload.py
+++ b/test/test_attributes.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.customer_payload import CustomerPayload
+from hyperstack.models.attributes import Attributes
-class TestCustomerPayload(unittest.TestCase):
- """CustomerPayload unit test stubs"""
+class TestAttributes(unittest.TestCase):
+ """Attributes unit test stubs"""
def setUp(self):
pass
@@ -25,28 +25,30 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> CustomerPayload:
- """Test CustomerPayload
+ def make_instance(self, include_optional) -> Attributes:
+ """Test Attributes
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `CustomerPayload`
+ # uncomment below to create an instance of `Attributes`
"""
- model = CustomerPayload()
+ model = Attributes()
if include_optional:
- return CustomerPayload(
- id = 56,
- plan_type = ''
+ return Attributes(
+ base_model = '',
+ base_model_display_name = '',
+ infrahub_id = 56,
+ lora_adapter = '',
+ resource_name = '',
+ status = ''
)
else:
- return CustomerPayload(
- id = 56,
- plan_type = '',
+ return Attributes(
)
"""
- def testCustomerPayload(self):
- """Test CustomerPayload"""
+ def testAttributes(self):
+ """Test Attributes"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_auth_api.py b/test/test_auth_api.py
index 3b0468d..3681a6d 100644
--- a/test/test_auth_api.py
+++ b/test/test_auth_api.py
@@ -26,6 +26,32 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
+ def test_change_organization_for_token(self) -> None:
+ """Test case for change_organization_for_token
+
+ """
+ pass
+
+ def test_disable_mfa(self) -> None:
+ """Test case for disable_mfa
+
+ """
+ pass
+
+ def test_get_user_mfa_status(self) -> None:
+ """Test case for get_user_mfa_status
+
+ Get MFA status for authenticated user
+ """
+ pass
+
+ def test_get_user_organizations(self) -> None:
+ """Test case for get_user_organizations
+
+ Get User Organizations
+ """
+ pass
+
def test_retrieve_authenticated_user_details(self) -> None:
"""Test case for retrieve_authenticated_user_details
diff --git a/test/test_auth_get_token_response_model.py b/test/test_auth_get_token_response_model.py
index 5d34bdf..e08b9ef 100644
--- a/test/test_auth_get_token_response_model.py
+++ b/test/test_auth_get_token_response_model.py
@@ -35,13 +35,10 @@ def make_instance(self, include_optional) -> AuthGetTokenResponseModel:
model = AuthGetTokenResponseModel()
if include_optional:
return AuthGetTokenResponseModel(
- first_login = True,
message = '',
status = True,
- token = hyperstack.models.token_fields.TokenFields(
- access_token = '',
- id_token = '',
- refresh_token = '', )
+ token = hyperstack.models.access_token_field.AccessTokenField(
+ access_token = '', )
)
else:
return AuthGetTokenResponseModel(
diff --git a/test/test_auth_request_login_response_model.py b/test/test_auth_request_login_response_model.py
deleted file mode 100644
index 2a40526..0000000
--- a/test/test_auth_request_login_response_model.py
+++ /dev/null
@@ -1,55 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.auth_request_login_response_model import AuthRequestLoginResponseModel
-
-class TestAuthRequestLoginResponseModel(unittest.TestCase):
- """AuthRequestLoginResponseModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> AuthRequestLoginResponseModel:
- """Test AuthRequestLoginResponseModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `AuthRequestLoginResponseModel`
- """
- model = AuthRequestLoginResponseModel()
- if include_optional:
- return AuthRequestLoginResponseModel(
- data = hyperstack.models.auth_request_login_fields.AuthRequestLoginFields(
- authorization_url = '',
- session_id = '', ),
- message = '',
- status = True
- )
- else:
- return AuthRequestLoginResponseModel(
- )
- """
-
- def testAuthRequestLoginResponseModel(self):
- """Test AuthRequestLoginResponseModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_beta_access_api.py b/test/test_beta_access_api.py
new file mode 100644
index 0000000..4409010
--- /dev/null
+++ b/test/test_beta_access_api.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.api.beta_access_api import BetaAccessApi
+
+
+class TestBetaAccessApi(unittest.TestCase):
+ """BetaAccessApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = BetaAccessApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_create_a_beta_access_request(self) -> None:
+ """Test case for create_a_beta_access_request
+
+ Create a new beta access request
+ """
+ pass
+
+ def test_get_beta_access_status(self) -> None:
+ """Test case for get_beta_access_status
+
+ Check the status of all beta access requests
+ """
+ pass
+
+ def test_get_beta_access_status2(self) -> None:
+ """Test case for get_beta_access_status2
+
+ Check the status of beta access requests
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_internal_environment_fields.py b/test/test_beta_access_request_fields.py
similarity index 63%
rename from test/test_internal_environment_fields.py
rename to test/test_beta_access_request_fields.py
index 2e858fd..340438a 100644
--- a/test/test_internal_environment_fields.py
+++ b/test/test_beta_access_request_fields.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.internal_environment_fields import InternalEnvironmentFields
+from hyperstack.models.beta_access_request_fields import BetaAccessRequestFields
-class TestInternalEnvironmentFields(unittest.TestCase):
- """InternalEnvironmentFields unit test stubs"""
+class TestBetaAccessRequestFields(unittest.TestCase):
+ """BetaAccessRequestFields unit test stubs"""
def setUp(self):
pass
@@ -25,28 +25,30 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> InternalEnvironmentFields:
- """Test InternalEnvironmentFields
+ def make_instance(self, include_optional) -> BetaAccessRequestFields:
+ """Test BetaAccessRequestFields
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `InternalEnvironmentFields`
+ # uncomment below to create an instance of `BetaAccessRequestFields`
"""
- model = InternalEnvironmentFields()
+ model = BetaAccessRequestFields()
if include_optional:
- return InternalEnvironmentFields(
+ return BetaAccessRequestFields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
id = 56,
- name = '',
- region = ''
+ program_id = 56,
+ program_name = '',
+ status = 'requested',
+ user_id = 56
)
else:
- return InternalEnvironmentFields(
+ return BetaAccessRequestFields(
)
"""
- def testInternalEnvironmentFields(self):
- """Test InternalEnvironmentFields"""
+ def testBetaAccessRequestFields(self):
+ """Test BetaAccessRequestFields"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_beta_access_request_payload.py b/test/test_beta_access_request_payload.py
new file mode 100644
index 0000000..4b01293
--- /dev/null
+++ b/test/test_beta_access_request_payload.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.beta_access_request_payload import BetaAccessRequestPayload
+
+class TestBetaAccessRequestPayload(unittest.TestCase):
+ """BetaAccessRequestPayload unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BetaAccessRequestPayload:
+ """Test BetaAccessRequestPayload
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BetaAccessRequestPayload`
+ """
+ model = BetaAccessRequestPayload()
+ if include_optional:
+ return BetaAccessRequestPayload(
+ metadata = None,
+ program = ''
+ )
+ else:
+ return BetaAccessRequestPayload(
+ program = '',
+ )
+ """
+
+ def testBetaAccessRequestPayload(self):
+ """Test BetaAccessRequestPayload"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_update_keypairnameresponse.py b/test/test_beta_access_request_response_model.py
similarity index 58%
rename from test/test_update_keypairnameresponse.py
rename to test/test_beta_access_request_response_model.py
index 2ad83c0..9abcc3f 100644
--- a/test/test_update_keypairnameresponse.py
+++ b/test/test_beta_access_request_response_model.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.update_keypairnameresponse import UpdateKeypairnameresponse
+from hyperstack.models.beta_access_request_response_model import BetaAccessRequestResponseModel
-class TestUpdateKeypairnameresponse(unittest.TestCase):
- """UpdateKeypairnameresponse unit test stubs"""
+class TestBetaAccessRequestResponseModel(unittest.TestCase):
+ """BetaAccessRequestResponseModel unit test stubs"""
def setUp(self):
pass
@@ -25,33 +25,33 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> UpdateKeypairnameresponse:
- """Test UpdateKeypairnameresponse
+ def make_instance(self, include_optional) -> BetaAccessRequestResponseModel:
+ """Test BetaAccessRequestResponseModel
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `UpdateKeypairnameresponse`
+ # uncomment below to create an instance of `BetaAccessRequestResponseModel`
"""
- model = UpdateKeypairnameresponse()
+ model = BetaAccessRequestResponseModel()
if include_optional:
- return UpdateKeypairnameresponse(
- keypair = hyperstack.models.keypair_fields.KeypairFields(
+ return BetaAccessRequestResponseModel(
+ beta_access_request = hyperstack.models.beta_access_request_fields.BetaAccessRequestFields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- environment = '',
- fingerprint = '',
id = 56,
- name = '',
- public_key = '', ),
+ program_id = 56,
+ program_name = '',
+ status = 'requested',
+ user_id = 56, ),
message = '',
status = True
)
else:
- return UpdateKeypairnameresponse(
+ return BetaAccessRequestResponseModel(
)
"""
- def testUpdateKeypairnameresponse(self):
- """Test UpdateKeypairnameresponse"""
+ def testBetaAccessRequestResponseModel(self):
+ """Test BetaAccessRequestResponseModel"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_creditrequests.py b/test/test_beta_access_status_item.py
similarity index 60%
rename from test/test_creditrequests.py
rename to test/test_beta_access_status_item.py
index b0bf9de..307a795 100644
--- a/test/test_creditrequests.py
+++ b/test/test_beta_access_status_item.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.creditrequests import Creditrequests
+from hyperstack.models.beta_access_status_item import BetaAccessStatusItem
-class TestCreditrequests(unittest.TestCase):
- """Creditrequests unit test stubs"""
+class TestBetaAccessStatusItem(unittest.TestCase):
+ """BetaAccessStatusItem unit test stubs"""
def setUp(self):
pass
@@ -25,29 +25,27 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> Creditrequests:
- """Test Creditrequests
+ def make_instance(self, include_optional) -> BetaAccessStatusItem:
+ """Test BetaAccessStatusItem
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `Creditrequests`
+ # uncomment below to create an instance of `BetaAccessStatusItem`
"""
- model = Creditrequests()
+ model = BetaAccessStatusItem()
if include_optional:
- return Creditrequests(
- admin_user_id = 56,
- amount = 1.337,
- reason = '',
- status = '',
- updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
+ return BetaAccessStatusItem(
+ program_name = '',
+ request_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ status = 'requested'
)
else:
- return Creditrequests(
+ return BetaAccessStatusItem(
)
"""
- def testCreditrequests(self):
- """Test Creditrequests"""
+ def testBetaAccessStatusItem(self):
+ """Test BetaAccessStatusItem"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_creditrechargelimitresponse.py b/test/test_beta_access_status_response_model.py
similarity index 54%
rename from test/test_creditrechargelimitresponse.py
rename to test/test_beta_access_status_response_model.py
index 65d3d15..69f1a16 100644
--- a/test/test_creditrechargelimitresponse.py
+++ b/test/test_beta_access_status_response_model.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.creditrechargelimitresponse import Creditrechargelimitresponse
+from hyperstack.models.beta_access_status_response_model import BetaAccessStatusResponseModel
-class TestCreditrechargelimitresponse(unittest.TestCase):
- """Creditrechargelimitresponse unit test stubs"""
+class TestBetaAccessStatusResponseModel(unittest.TestCase):
+ """BetaAccessStatusResponseModel unit test stubs"""
def setUp(self):
pass
@@ -25,33 +25,32 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> Creditrechargelimitresponse:
- """Test Creditrechargelimitresponse
+ def make_instance(self, include_optional) -> BetaAccessStatusResponseModel:
+ """Test BetaAccessStatusResponseModel
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `Creditrechargelimitresponse`
+ # uncomment below to create an instance of `BetaAccessStatusResponseModel`
"""
- model = Creditrechargelimitresponse()
+ model = BetaAccessStatusResponseModel()
if include_optional:
- return Creditrechargelimitresponse(
- data = [
- hyperstack.models.creditrechargelimitfield.Creditrechargelimitfield(
- credit_granted = 1.337,
- credit_limit = 1.337,
- organization_id = 56,
- user_id = 56, )
+ return BetaAccessStatusResponseModel(
+ beta_access_requests = [
+ hyperstack.models.beta_access_status_item.BetaAccessStatusItem(
+ program_name = '',
+ request_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ status = 'requested', )
],
message = '',
status = True
)
else:
- return Creditrechargelimitresponse(
+ return BetaAccessStatusResponseModel(
)
"""
- def testCreditrechargelimitresponse(self):
- """Test Creditrechargelimitresponse"""
+ def testBetaAccessStatusResponseModel(self):
+ """Test BetaAccessStatusResponseModel"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_billing_api.py b/test/test_billing_api.py
index 81ab0e1..9263111 100644
--- a/test/test_billing_api.py
+++ b/test/test_billing_api.py
@@ -26,134 +26,257 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
- def test_get_all_thresholds_for_organization(self) -> None:
- """Test case for get_all_thresholds_for_organization
+ def test_get_last_day_cost(self) -> None:
+ """Test case for get_last_day_cost
+
+ GET: Last Day Cost
+ """
+ pass
+
+ def test_get_organization_threshold(self) -> None:
+ """Test case for get_organization_threshold
GET: All Thresholds for Organization
"""
pass
- def test_get_billing_usage(self) -> None:
- """Test case for get_billing_usage
+ def test_get_usage2(self) -> None:
+ """Test case for get_usage2
GET: Billing usage
"""
pass
- def test_get_last_day_cost(self) -> None:
- """Test case for get_last_day_cost
+ def test_get_user_billing_bucket_details_graph(self) -> None:
+ """Test case for get_user_billing_bucket_details_graph
- GET: Last Day Cost
+ Retrieve hourly cost datapoints of a Specific Bucket for a specific billing cycle
+ """
+ pass
+
+ def test_get_user_billing_cluster_details_graph(self) -> None:
+ """Test case for get_user_billing_cluster_details_graph
+
+ Retrieve hourly cost datapoints of a specific Cluster for a specific billing cycle
+ """
+ pass
+
+ def test_get_user_billing_data_synthesis_details_graph(self) -> None:
+ """Test case for get_user_billing_data_synthesis_details_graph
+
+ Retrieve hourly cost datapoints of a Specific Data Synthesis for a specific
"""
pass
- def test_retrieve_billing_history_for_a_specific_billing_cycle(self) -> None:
- """Test case for retrieve_billing_history_for_a_specific_billing_cycle
+ def test_get_user_billing_fine_tuning_details_graph(self) -> None:
+ """Test case for get_user_billing_fine_tuning_details_graph
+
+ Retrieve hourly cost datapoints of a Specific Fine Tuning for a specific billing cycle
+ """
+ pass
+
+ def test_get_user_billing_history2(self) -> None:
+ """Test case for get_user_billing_history2
Retrieve Billing History for a specific Billing Cycle
"""
pass
- def test_retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle(self) -> None:
- """Test case for retrieve_billing_history_of_a_specific_snapshot_for_a_specific_billing_cycle
+ def test_get_user_billing_history_bucket2(self) -> None:
+ """Test case for get_user_billing_history_bucket2
+
+ Retrieve Billing History of Volume for a specific Billing Cycle
+ """
+ pass
+
+ def test_get_user_billing_history_bucket_details(self) -> None:
+ """Test case for get_user_billing_history_bucket_details
Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
"""
pass
- def test_retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle(self) -> None:
- """Test case for retrieve_billing_history_of_a_specific_virtual_machine_for_a_specific_billing_cycle
+ def test_get_user_billing_history_cluster(self) -> None:
+ """Test case for get_user_billing_history_cluster
- Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
+ Retrieve Billing History of Clusters for a specific Billing Cycle
"""
pass
- def test_retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle(self) -> None:
- """Test case for retrieve_billing_history_of_a_specific_volume_for_a_specific_billing_cycle
+ def test_get_user_billing_history_cluster_details(self) -> None:
+ """Test case for get_user_billing_history_cluster_details
- Retrieve Billing History of a Specific Volume for a specific Billing Cycle
+ Retrieve Billing History of a Specific Cluster for a specific Billing Cycle
"""
pass
- def test_retrieve_billing_history_of_contract_for_a_specific_billing_cycle(self) -> None:
- """Test case for retrieve_billing_history_of_contract_for_a_specific_billing_cycle
+ def test_get_user_billing_history_contract(self) -> None:
+ """Test case for get_user_billing_history_contract
Retrieve Billing History of Contract for a specific Billing Cycle
"""
pass
- def test_retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle(self) -> None:
- """Test case for retrieve_billing_history_of_snapshot_for_a_specific_billing_cycle
+ def test_get_user_billing_history_data_synthesis(self) -> None:
+ """Test case for get_user_billing_history_data_synthesis
+
+ Retrieve Billing History of data synthesis for a specific Billing Cycle
+ """
+ pass
+
+ def test_get_user_billing_history_data_synthesis_details(self) -> None:
+ """Test case for get_user_billing_history_data_synthesis_details
+
+ """
+ pass
+
+ def test_get_user_billing_history_fine_tuning(self) -> None:
+ """Test case for get_user_billing_history_fine_tuning
+
+ Retrieve Billing History of model evaluation for a specific Billing Cycle
+ """
+ pass
+
+ def test_get_user_billing_history_fine_tuning_details(self) -> None:
+ """Test case for get_user_billing_history_fine_tuning_details
+
+ Retrieve Billing History of a Specific Fine Tuning for a specific Billing Cycle
+ """
+ pass
+
+ def test_get_user_billing_history_model_evaluation(self) -> None:
+ """Test case for get_user_billing_history_model_evaluation
+
+ Retrieve Billing History of model evaluation for a specific Billing Cycle
+ """
+ pass
+
+ def test_get_user_billing_history_model_evaluation_details(self) -> None:
+ """Test case for get_user_billing_history_model_evaluation_details
+
+ """
+ pass
+
+ def test_get_user_billing_history_serverless_inference(self) -> None:
+ """Test case for get_user_billing_history_serverless_inference
+
+ Retrieve Billing History of serverless inference for a specific Billing Cycle
+ """
+ pass
+
+ def test_get_user_billing_history_serverless_inference_details(self) -> None:
+ """Test case for get_user_billing_history_serverless_inference_details
+
+ """
+ pass
+
+ def test_get_user_billing_history_snapshot(self) -> None:
+ """Test case for get_user_billing_history_snapshot
Retrieve Billing History of Snapshot for a specific Billing Cycle
"""
pass
- def test_retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle(self) -> None:
- """Test case for retrieve_billing_history_of_virtual_machine_for_a_specific_billing_cycle
+ def test_get_user_billing_history_snapshot_details(self) -> None:
+ """Test case for get_user_billing_history_snapshot_details
+
+ Retrieve Billing History of a Specific Snapshot for a specific Billing Cycle
+ """
+ pass
+
+ def test_get_user_billing_history_vm2(self) -> None:
+ """Test case for get_user_billing_history_vm2
Retrieve Billing History of Virtual Machine for a specific Billing Cycle
"""
pass
- def test_retrieve_billing_history_of_volume_for_a_specific_billing_cycle(self) -> None:
- """Test case for retrieve_billing_history_of_volume_for_a_specific_billing_cycle
+ def test_get_user_billing_history_vm_details2(self) -> None:
+ """Test case for get_user_billing_history_vm_details2
+
+ Retrieve Billing History of a Specific Virtual Machine for a specific Billing Cycle
+ """
+ pass
+
+ def test_get_user_billing_history_vm_sub_resource_graph2(self) -> None:
+ """Test case for get_user_billing_history_vm_sub_resource_graph2
+
+ Retrieve Sub-Resources Historical Cost datapoints of a Virtual
+ """
+ pass
+
+ def test_get_user_billing_history_vm_total_costs(self) -> None:
+ """Test case for get_user_billing_history_vm_total_costs
+
+ Retrieve Total Costs and Non Discount Costs for Sub Resources
+ """
+ pass
+
+ def test_get_user_billing_history_volume2(self) -> None:
+ """Test case for get_user_billing_history_volume2
Retrieve Billing History of Volume for a specific Billing Cycle
"""
pass
- def test_retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle(self) -> None:
- """Test case for retrieve_hourly_cost_datapoints_of_a_specific_snapshot_for_a_specific_billing_cycle
+ def test_get_user_billing_history_volume_details2(self) -> None:
+ """Test case for get_user_billing_history_volume_details2
- Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
+ Retrieve Billing History of a Specific Volume for a specific Billing Cycle
"""
pass
- def test_retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle(self) -> None:
- """Test case for retrieve_hourly_cost_datapoints_of_a_specific_virtual_machine_for_a_specific_billing_cycle
+ def test_get_user_billing_model_evaluation_details_graph(self) -> None:
+ """Test case for get_user_billing_model_evaluation_details_graph
- Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
+ Retrieve hourly cost datapoints of a Specific Model Evaluation for a specific
"""
pass
- def test_retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle(self) -> None:
- """Test case for retrieve_hourly_cost_datapoints_of_a_specific_volume_for_a_specific_billing_cycle
+ def test_get_user_billing_serverless_inference_details_graph(self) -> None:
+ """Test case for get_user_billing_serverless_inference_details_graph
- Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
+ Retrieve hourly cost datapoints of a Specific Serverless Inference for a specific
"""
pass
- def test_retrieve_sub_resources_historical_cost_datapoints_of_a_virtual(self) -> None:
- """Test case for retrieve_sub_resources_historical_cost_datapoints_of_a_virtual
+ def test_get_user_billing_snapshot_details_graph(self) -> None:
+ """Test case for get_user_billing_snapshot_details_graph
- Retrieve Sub-Resources Historical Cost datapoints of a Virtual
+ Retrieve hourly cost datapoints of a Specific Snapshot for a specific billing cycle
"""
pass
- def test_retrieve_total_costs_and_non_discount_costs_for_sub_resources(self) -> None:
- """Test case for retrieve_total_costs_and_non_discount_costs_for_sub_resources
+ def test_get_user_billing_vm_details_graph2(self) -> None:
+ """Test case for get_user_billing_vm_details_graph2
- Retrieve Total Costs and Non Discount Costs for Sub Resources
+ Retrieve hourly cost datapoints of a Specific Virtual Machine for a specific billing cycle
+ """
+ pass
+
+ def test_get_user_billing_volume_details_graph(self) -> None:
+ """Test case for get_user_billing_volume_details_graph
+
+ Retrieve hourly cost datapoints of a Specific Volume for a specific billing cycle
"""
pass
- def test_retrieve_vm_billing_events_history(self) -> None:
- """Test case for retrieve_vm_billing_events_history
+ def test_get_user_vm_billing_events(self) -> None:
+ """Test case for get_user_vm_billing_events
Retrieve VM billing events history
"""
pass
- def test_retrieve_volume_billing_events_history(self) -> None:
- """Test case for retrieve_volume_billing_events_history
+ def test_get_user_volume_billing_events(self) -> None:
+ """Test case for get_user_volume_billing_events
Retrieve Volume billing events history
"""
pass
- def test_update_subscribe_or_unsubscribe_notification_threshold(self) -> None:
- """Test case for update_subscribe_or_unsubscribe_notification_threshold
+ def test_put_organization_threshold(self) -> None:
+ """Test case for put_organization_threshold
Update: Subscribe or Unsubscribe Notification Threshold
"""
diff --git a/test/test_contractl_billing_history_response_metrics.py b/test/test_billing_history.py
similarity index 56%
rename from test/test_contractl_billing_history_response_metrics.py
rename to test/test_billing_history.py
index 63df225..7c732a3 100644
--- a/test/test_contractl_billing_history_response_metrics.py
+++ b/test/test_billing_history.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.contractl_billing_history_response_metrics import ContractlBillingHistoryResponseMetrics
+from hyperstack.models.billing_history import BillingHistory
-class TestContractlBillingHistoryResponseMetrics(unittest.TestCase):
- """ContractlBillingHistoryResponseMetrics unit test stubs"""
+class TestBillingHistory(unittest.TestCase):
+ """BillingHistory unit test stubs"""
def setUp(self):
pass
@@ -25,25 +25,32 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> ContractlBillingHistoryResponseMetrics:
- """Test ContractlBillingHistoryResponseMetrics
+ def make_instance(self, include_optional) -> BillingHistory:
+ """Test BillingHistory
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `ContractlBillingHistoryResponseMetrics`
+ # uncomment below to create an instance of `BillingHistory`
"""
- model = ContractlBillingHistoryResponseMetrics()
+ model = BillingHistory()
if include_optional:
- return ContractlBillingHistoryResponseMetrics(
- incurred_bill = 1.337
+ return BillingHistory(
+ attributes = hyperstack.models.attributes.attributes(
+ base_model = '',
+ base_model_display_name = '',
+ infrahub_id = 56,
+ lora_adapter = '',
+ resource_name = '',
+ status = '', ),
+ metrics = hyperstack.models.metrics.metrics()
)
else:
- return ContractlBillingHistoryResponseMetrics(
+ return BillingHistory(
)
"""
- def testContractlBillingHistoryResponseMetrics(self):
- """Test ContractlBillingHistoryResponseMetrics"""
+ def testBillingHistory(self):
+ """Test BillingHistory"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_billing_history_data_synthesis_details.py b/test/test_billing_history_data_synthesis_details.py
new file mode 100644
index 0000000..f3e0730
--- /dev/null
+++ b/test/test_billing_history_data_synthesis_details.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.billing_history_data_synthesis_details import BillingHistoryDataSynthesisDetails
+
+class TestBillingHistoryDataSynthesisDetails(unittest.TestCase):
+ """BillingHistoryDataSynthesisDetails unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BillingHistoryDataSynthesisDetails:
+ """Test BillingHistoryDataSynthesisDetails
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BillingHistoryDataSynthesisDetails`
+ """
+ model = BillingHistoryDataSynthesisDetails()
+ if include_optional:
+ return BillingHistoryDataSynthesisDetails(
+ billing_history = [
+ hyperstack.models.billing_history.billing_history(
+ attributes = hyperstack.models.attributes.attributes(
+ base_model = '',
+ base_model_display_name = '',
+ infrahub_id = 56,
+ lora_adapter = '',
+ resource_name = '',
+ status = '', ),
+ metrics = hyperstack.models.metrics.metrics(), )
+ ],
+ org_id = 56,
+ pagination = hyperstack.models.pagination.pagination(
+ page = 56,
+ pages = 56,
+ per_page = 56, ),
+ total_count = 56
+ )
+ else:
+ return BillingHistoryDataSynthesisDetails(
+ )
+ """
+
+ def testBillingHistoryDataSynthesisDetails(self):
+ """Test BillingHistoryDataSynthesisDetails"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_billing_history_fine_tuning.py b/test/test_billing_history_fine_tuning.py
new file mode 100644
index 0000000..672cd26
--- /dev/null
+++ b/test/test_billing_history_fine_tuning.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.billing_history_fine_tuning import BillingHistoryFineTuning
+
+class TestBillingHistoryFineTuning(unittest.TestCase):
+ """BillingHistoryFineTuning unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BillingHistoryFineTuning:
+ """Test BillingHistoryFineTuning
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BillingHistoryFineTuning`
+ """
+ model = BillingHistoryFineTuning()
+ if include_optional:
+ return BillingHistoryFineTuning(
+ billing_history = [
+ hyperstack.models.billing_history.billing_history(
+ attributes = hyperstack.models.attributes.attributes(
+ base_model = '',
+ base_model_display_name = '',
+ infrahub_id = 56,
+ lora_adapter = '',
+ resource_name = '',
+ status = '', ),
+ metrics = hyperstack.models.metrics.metrics(), )
+ ],
+ org_id = 56,
+ pagination = hyperstack.models.pagination.pagination(
+ page = 56,
+ pages = 56,
+ per_page = 56, ),
+ total_count = 56
+ )
+ else:
+ return BillingHistoryFineTuning(
+ )
+ """
+
+ def testBillingHistoryFineTuning(self):
+ """Test BillingHistoryFineTuning"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_billing_history_model_evalutation_details.py b/test/test_billing_history_model_evalutation_details.py
new file mode 100644
index 0000000..c28aba8
--- /dev/null
+++ b/test/test_billing_history_model_evalutation_details.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.billing_history_model_evalutation_details import BillingHistoryModelEvalutationDetails
+
+class TestBillingHistoryModelEvalutationDetails(unittest.TestCase):
+ """BillingHistoryModelEvalutationDetails unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BillingHistoryModelEvalutationDetails:
+ """Test BillingHistoryModelEvalutationDetails
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BillingHistoryModelEvalutationDetails`
+ """
+ model = BillingHistoryModelEvalutationDetails()
+ if include_optional:
+ return BillingHistoryModelEvalutationDetails(
+ billing_history = [
+ hyperstack.models.billing_history.billing_history(
+ attributes = hyperstack.models.attributes.attributes(
+ base_model = '',
+ base_model_display_name = '',
+ infrahub_id = 56,
+ lora_adapter = '',
+ resource_name = '',
+ status = '', ),
+ metrics = hyperstack.models.metrics.metrics(), )
+ ],
+ org_id = 56,
+ pagination = hyperstack.models.pagination.pagination(
+ page = 56,
+ pages = 56,
+ per_page = 56, ),
+ total_count = 56
+ )
+ else:
+ return BillingHistoryModelEvalutationDetails(
+ )
+ """
+
+ def testBillingHistoryModelEvalutationDetails(self):
+ """Test BillingHistoryModelEvalutationDetails"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_billing_history_serverless_inference.py b/test/test_billing_history_serverless_inference.py
new file mode 100644
index 0000000..5888528
--- /dev/null
+++ b/test/test_billing_history_serverless_inference.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.billing_history_serverless_inference import BillingHistoryServerlessInference
+
+class TestBillingHistoryServerlessInference(unittest.TestCase):
+ """BillingHistoryServerlessInference unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BillingHistoryServerlessInference:
+ """Test BillingHistoryServerlessInference
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BillingHistoryServerlessInference`
+ """
+ model = BillingHistoryServerlessInference()
+ if include_optional:
+ return BillingHistoryServerlessInference(
+ billing_history = [
+ hyperstack.models.billing_history.billing_history(
+ attributes = hyperstack.models.attributes.attributes(
+ base_model = '',
+ base_model_display_name = '',
+ infrahub_id = 56,
+ lora_adapter = '',
+ resource_name = '',
+ status = '', ),
+ metrics = hyperstack.models.metrics.metrics(), )
+ ],
+ org_id = 56,
+ pagination = hyperstack.models.pagination.pagination(
+ page = 56,
+ pages = 56,
+ per_page = 56, ),
+ total_count = 56
+ )
+ else:
+ return BillingHistoryServerlessInference(
+ )
+ """
+
+ def testBillingHistoryServerlessInference(self):
+ """Test BillingHistoryServerlessInference"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_billing_history_serverless_inference_details.py b/test/test_billing_history_serverless_inference_details.py
new file mode 100644
index 0000000..8cff2d3
--- /dev/null
+++ b/test/test_billing_history_serverless_inference_details.py
@@ -0,0 +1,67 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.billing_history_serverless_inference_details import BillingHistoryServerlessInferenceDetails
+
+class TestBillingHistoryServerlessInferenceDetails(unittest.TestCase):
+ """BillingHistoryServerlessInferenceDetails unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> BillingHistoryServerlessInferenceDetails:
+ """Test BillingHistoryServerlessInferenceDetails
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `BillingHistoryServerlessInferenceDetails`
+ """
+ model = BillingHistoryServerlessInferenceDetails()
+ if include_optional:
+ return BillingHistoryServerlessInferenceDetails(
+ billing_history = [
+ hyperstack.models.billing_history.billing_history(
+ attributes = hyperstack.models.attributes.attributes(
+ base_model = '',
+ base_model_display_name = '',
+ infrahub_id = 56,
+ lora_adapter = '',
+ resource_name = '',
+ status = '', ),
+ metrics = hyperstack.models.metrics.metrics(), )
+ ],
+ org_id = 56,
+ pagination = hyperstack.models.pagination.pagination(
+ page = 56,
+ pages = 56,
+ per_page = 56, ),
+ total_count = 56
+ )
+ else:
+ return BillingHistoryServerlessInferenceDetails(
+ )
+ """
+
+ def testBillingHistoryServerlessInferenceDetails(self):
+ """Test BillingHistoryServerlessInferenceDetails"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_billing_immune_resources_response.py b/test/test_billing_immune_resources_response.py
deleted file mode 100644
index 1825f9a..0000000
--- a/test/test_billing_immune_resources_response.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.billing_immune_resources_response import BillingImmuneResourcesResponse
-
-class TestBillingImmuneResourcesResponse(unittest.TestCase):
- """BillingImmuneResourcesResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> BillingImmuneResourcesResponse:
- """Test BillingImmuneResourcesResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `BillingImmuneResourcesResponse`
- """
- model = BillingImmuneResourcesResponse()
- if include_optional:
- return BillingImmuneResourcesResponse(
- data = [
- hyperstack.models.data.data(
- organization_id = 56,
- resource_id = 56,
- resource_type = '', )
- ]
- )
- else:
- return BillingImmuneResourcesResponse(
- )
- """
-
- def testBillingImmuneResourcesResponse(self):
- """Test BillingImmuneResourcesResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_billingmetricesfields.py b/test/test_billing_metrices_fields.py
similarity index 74%
rename from test/test_billingmetricesfields.py
rename to test/test_billing_metrices_fields.py
index 2d4ac6e..fce15c4 100644
--- a/test/test_billingmetricesfields.py
+++ b/test/test_billing_metrices_fields.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.billingmetricesfields import Billingmetricesfields
+from hyperstack.models.billing_metrices_fields import BillingMetricesFields
-class TestBillingmetricesfields(unittest.TestCase):
- """Billingmetricesfields unit test stubs"""
+class TestBillingMetricesFields(unittest.TestCase):
+ """BillingMetricesFields unit test stubs"""
def setUp(self):
pass
@@ -25,16 +25,16 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> Billingmetricesfields:
- """Test Billingmetricesfields
+ def make_instance(self, include_optional) -> BillingMetricesFields:
+ """Test BillingMetricesFields
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `Billingmetricesfields`
+ # uncomment below to create an instance of `BillingMetricesFields`
"""
- model = Billingmetricesfields()
+ model = BillingMetricesFields()
if include_optional:
- return Billingmetricesfields(
+ return BillingMetricesFields(
active = True,
bill_per_minute = 1.337,
create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
@@ -48,12 +48,12 @@ def make_instance(self, include_optional) -> Billingmetricesfields:
total_up_time = 1.337
)
else:
- return Billingmetricesfields(
+ return BillingMetricesFields(
)
"""
- def testBillingmetricesfields(self):
- """Test Billingmetricesfields"""
+ def testBillingMetricesFields(self):
+ """Test BillingMetricesFields"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_billingmetricesresponse.py b/test/test_billing_metrices_response.py
similarity index 73%
rename from test/test_billingmetricesresponse.py
rename to test/test_billing_metrices_response.py
index 043af69..da6f1d7 100644
--- a/test/test_billingmetricesresponse.py
+++ b/test/test_billing_metrices_response.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.billingmetricesresponse import Billingmetricesresponse
+from hyperstack.models.billing_metrices_response import BillingMetricesResponse
-class TestBillingmetricesresponse(unittest.TestCase):
- """Billingmetricesresponse unit test stubs"""
+class TestBillingMetricesResponse(unittest.TestCase):
+ """BillingMetricesResponse unit test stubs"""
def setUp(self):
pass
@@ -25,18 +25,18 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> Billingmetricesresponse:
- """Test Billingmetricesresponse
+ def make_instance(self, include_optional) -> BillingMetricesResponse:
+ """Test BillingMetricesResponse
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `Billingmetricesresponse`
+ # uncomment below to create an instance of `BillingMetricesResponse`
"""
- model = Billingmetricesresponse()
+ model = BillingMetricesResponse()
if include_optional:
- return Billingmetricesresponse(
+ return BillingMetricesResponse(
data = [
- hyperstack.models.billingmetricesfields.Billingmetricesfields(
+ hyperstack.models.billing_metrices_fields.Billing_metrices_fields(
active = True,
bill_per_minute = 1.337,
create_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
@@ -53,12 +53,12 @@ def make_instance(self, include_optional) -> Billingmetricesresponse:
status = True
)
else:
- return Billingmetricesresponse(
+ return BillingMetricesResponse(
)
"""
- def testBillingmetricesresponse(self):
- """Test Billingmetricesresponse"""
+ def testBillingMetricesResponse(self):
+ """Test BillingMetricesResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_billing_response.py b/test/test_billing_response.py
deleted file mode 100644
index a3b8028..0000000
--- a/test/test_billing_response.py
+++ /dev/null
@@ -1,71 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.billing_response import BillingResponse
-
-class TestBillingResponse(unittest.TestCase):
- """BillingResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> BillingResponse:
- """Test BillingResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `BillingResponse`
- """
- model = BillingResponse()
- if include_optional:
- return BillingResponse(
- calculated_bills = [
- hyperstack.models.organization_object_response.OrganizationObjectResponse(
- org_id = 56,
- resources = [
- hyperstack.models.infrahub_resource_object_response.InfrahubResourceObjectResponse(
- actual_host_price = 1.337,
- actual_price = 1.337,
- contract_id = 56,
- host = '',
- host_price = 1.337,
- infrahub_id = 56,
- name = '',
- nexgen_actual_price = 1.337,
- nexgen_price = 1.337,
- price = 1.337,
- status = '',
- type = '', )
- ], )
- ],
- calculation_time = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- type = ''
- )
- else:
- return BillingResponse(
- )
- """
-
- def testBillingResponse(self):
- """Test BillingResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_calculate_api.py b/test/test_calculate_api.py
index a92b427..3f35c55 100644
--- a/test/test_calculate_api.py
+++ b/test/test_calculate_api.py
@@ -26,8 +26,8 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
- def test_retrieve_billing_rate_for_resource(self) -> None:
- """Test case for retrieve_billing_rate_for_resource
+ def test_get_calculate2(self) -> None:
+ """Test case for get_calculate2
Retrieve Billing Rate for Resource
"""
diff --git a/test/test_cluster_fields.py b/test/test_cluster_fields.py
index 3f6ff88..d50d014 100644
--- a/test/test_cluster_fields.py
+++ b/test/test_cluster_fields.py
@@ -42,17 +42,68 @@ def make_instance(self, include_optional) -> ClusterFields:
keypair_name = '',
kube_config = '',
kubernetes_version = '',
- name = '',
- node_count = 56,
- node_flavor = hyperstack.models.instance_flavor_fields.InstanceFlavorFields(
+ master_flavor = hyperstack.models.cluster_flavor_fields.Cluster_Flavor_Fields(
cpu = 56,
disk = 56,
ephemeral = 56,
+ features = hyperstack.models.features.features(),
gpu = '',
gpu_count = 56,
id = 56,
+ labels = [
+ hyperstack.models.lable_resonse.LableResonse(
+ id = 56,
+ label = '', )
+ ],
name = '',
ram = 1.337, ),
+ name = '',
+ node_groups = [
+ hyperstack.models.cluster_node_group_fields.ClusterNodeGroupFields(
+ count = 56,
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ flavor = hyperstack.models.cluster_flavor_fields.Cluster_Flavor_Fields(
+ cpu = 56,
+ disk = 56,
+ ephemeral = 56,
+ features = hyperstack.models.features.features(),
+ gpu = '',
+ gpu_count = 56,
+ id = 56,
+ labels = [
+ hyperstack.models.lable_resonse.LableResonse(
+ id = 56,
+ label = '', )
+ ],
+ name = '',
+ ram = 1.337, ),
+ id = 56,
+ name = '',
+ role = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ ],
+ nodes = [
+ hyperstack.models.cluster_node_fields.ClusterNodeFields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ id = 56,
+ instance = hyperstack.models.cluster_node_instance_fields.ClusterNodeInstanceFields(
+ contract_id = 56,
+ fixed_ip = '',
+ floating_ip = '',
+ floating_ip_status = '',
+ id = 56,
+ image_id = 56,
+ name = '',
+ status = '', ),
+ is_bastion = True,
+ node_group_id = 56,
+ node_group_name = '',
+ requires_public_ip = True,
+ role = '',
+ status = '',
+ status_reason = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ ],
status = '',
status_reason = ''
)
diff --git a/test/test_internal_instance_flavor_fields.py b/test/test_cluster_flavor_fields.py
similarity index 60%
rename from test/test_internal_instance_flavor_fields.py
rename to test/test_cluster_flavor_fields.py
index c7403d8..c4ca0d8 100644
--- a/test/test_internal_instance_flavor_fields.py
+++ b/test/test_cluster_flavor_fields.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.internal_instance_flavor_fields import InternalInstanceFlavorFields
+from hyperstack.models.cluster_flavor_fields import ClusterFlavorFields
-class TestInternalInstanceFlavorFields(unittest.TestCase):
- """InternalInstanceFlavorFields unit test stubs"""
+class TestClusterFlavorFields(unittest.TestCase):
+ """ClusterFlavorFields unit test stubs"""
def setUp(self):
pass
@@ -25,33 +25,38 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> InternalInstanceFlavorFields:
- """Test InternalInstanceFlavorFields
+ def make_instance(self, include_optional) -> ClusterFlavorFields:
+ """Test ClusterFlavorFields
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `InternalInstanceFlavorFields`
+ # uncomment below to create an instance of `ClusterFlavorFields`
"""
- model = InternalInstanceFlavorFields()
+ model = ClusterFlavorFields()
if include_optional:
- return InternalInstanceFlavorFields(
+ return ClusterFlavorFields(
cpu = 56,
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
disk = 56,
+ ephemeral = 56,
+ features = hyperstack.models.features.features(),
gpu = '',
gpu_count = 56,
id = 56,
+ labels = [
+ hyperstack.models.lable_resonse.LableResonse(
+ id = 56,
+ label = '', )
+ ],
name = '',
- ram = 56,
- region_name = ''
+ ram = 1.337
)
else:
- return InternalInstanceFlavorFields(
+ return ClusterFlavorFields(
)
"""
- def testInternalInstanceFlavorFields(self):
- """Test InternalInstanceFlavorFields"""
+ def testClusterFlavorFields(self):
+ """Test ClusterFlavorFields"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_cluster_list_response.py b/test/test_cluster_list_response.py
index 2e0e95a..24fdbb8 100644
--- a/test/test_cluster_list_response.py
+++ b/test/test_cluster_list_response.py
@@ -44,17 +44,63 @@ def make_instance(self, include_optional) -> ClusterListResponse:
keypair_name = '',
kube_config = '',
kubernetes_version = '',
- name = '',
- node_count = 56,
- node_flavor = hyperstack.models.instance_flavor_fields.InstanceFlavorFields(
+ master_flavor = hyperstack.models.cluster_flavor_fields.Cluster_Flavor_Fields(
cpu = 56,
disk = 56,
ephemeral = 56,
+ features = hyperstack.models.features.features(),
gpu = '',
gpu_count = 56,
id = 56,
+ labels = [
+ hyperstack.models.lable_resonse.LableResonse(
+ id = 56,
+ label = '', )
+ ],
name = '',
ram = 1.337, ),
+ name = '',
+ node_groups = [
+ hyperstack.models.cluster_node_group_fields.ClusterNodeGroupFields(
+ count = 56,
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ flavor = hyperstack.models.cluster_flavor_fields.Cluster_Flavor_Fields(
+ cpu = 56,
+ disk = 56,
+ ephemeral = 56,
+ features = hyperstack.models.features.features(),
+ gpu = '',
+ gpu_count = 56,
+ id = 56,
+ name = '',
+ ram = 1.337, ),
+ id = 56,
+ name = '',
+ role = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ ],
+ nodes = [
+ hyperstack.models.cluster_node_fields.ClusterNodeFields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ id = 56,
+ instance = hyperstack.models.cluster_node_instance_fields.ClusterNodeInstanceFields(
+ contract_id = 56,
+ fixed_ip = '',
+ floating_ip = '',
+ floating_ip_status = '',
+ id = 56,
+ image_id = 56,
+ name = '',
+ status = '', ),
+ is_bastion = True,
+ node_group_id = 56,
+ node_group_name = '',
+ requires_public_ip = True,
+ role = '',
+ status = '',
+ status_reason = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ ],
status = '',
status_reason = '', )
],
diff --git a/test/test_historical_instances_fields.py b/test/test_cluster_node_fields.py
similarity index 55%
rename from test/test_historical_instances_fields.py
rename to test/test_cluster_node_fields.py
index 85531e6..e79d97b 100644
--- a/test/test_historical_instances_fields.py
+++ b/test/test_cluster_node_fields.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.historical_instances_fields import HistoricalInstancesFields
+from hyperstack.models.cluster_node_fields import ClusterNodeFields
-class TestHistoricalInstancesFields(unittest.TestCase):
- """HistoricalInstancesFields unit test stubs"""
+class TestClusterNodeFields(unittest.TestCase):
+ """ClusterNodeFields unit test stubs"""
def setUp(self):
pass
@@ -25,36 +25,43 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> HistoricalInstancesFields:
- """Test HistoricalInstancesFields
+ def make_instance(self, include_optional) -> ClusterNodeFields:
+ """Test ClusterNodeFields
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `HistoricalInstancesFields`
+ # uncomment below to create an instance of `ClusterNodeFields`
"""
- model = HistoricalInstancesFields()
+ model = ClusterNodeFields()
if include_optional:
- return HistoricalInstancesFields(
+ return ClusterNodeFields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- environment = '',
- environment_id = 56,
- flavor = '',
- flavor_id = 56,
- floating_ip = '',
- host = '',
id = 56,
- name = '',
- openstack_id = '',
+ instance = hyperstack.models.cluster_node_instance_fields.ClusterNodeInstanceFields(
+ contract_id = 56,
+ fixed_ip = '',
+ floating_ip = '',
+ floating_ip_status = '',
+ id = 56,
+ image_id = 56,
+ name = '',
+ status = '', ),
+ is_bastion = True,
+ node_group_id = 56,
+ node_group_name = '',
+ requires_public_ip = True,
+ role = '',
status = '',
+ status_reason = '',
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
)
else:
- return HistoricalInstancesFields(
+ return ClusterNodeFields(
)
"""
- def testHistoricalInstancesFields(self):
- """Test HistoricalInstancesFields"""
+ def testClusterNodeFields(self):
+ """Test ClusterNodeFields"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_flavor_response.py b/test/test_cluster_node_group_fields.py
similarity index 58%
rename from test/test_flavor_response.py
rename to test/test_cluster_node_group_fields.py
index 877dc4b..f94b8b8 100644
--- a/test/test_flavor_response.py
+++ b/test/test_cluster_node_group_fields.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.flavor_response import FlavorResponse
+from hyperstack.models.cluster_node_group_fields import ClusterNodeGroupFields
-class TestFlavorResponse(unittest.TestCase):
- """FlavorResponse unit test stubs"""
+class TestClusterNodeGroupFields(unittest.TestCase):
+ """ClusterNodeGroupFields unit test stubs"""
def setUp(self):
pass
@@ -25,22 +25,23 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> FlavorResponse:
- """Test FlavorResponse
+ def make_instance(self, include_optional) -> ClusterNodeGroupFields:
+ """Test ClusterNodeGroupFields
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `FlavorResponse`
+ # uncomment below to create an instance of `ClusterNodeGroupFields`
"""
- model = FlavorResponse()
+ model = ClusterNodeGroupFields()
if include_optional:
- return FlavorResponse(
- flavor = hyperstack.models.flavor_fields.FlavorFields(
+ return ClusterNodeGroupFields(
+ count = 56,
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ flavor = hyperstack.models.cluster_flavor_fields.Cluster_Flavor_Fields(
cpu = 56,
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
disk = 56,
- display_name = '',
ephemeral = 56,
+ features = hyperstack.models.features.features(),
gpu = '',
gpu_count = 56,
id = 56,
@@ -50,19 +51,19 @@ def make_instance(self, include_optional) -> FlavorResponse:
label = '', )
],
name = '',
- ram = 1.337,
- region_name = '',
- stock_available = True, ),
- message = '',
- status = True
+ ram = 1.337, ),
+ id = 56,
+ name = '',
+ role = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
)
else:
- return FlavorResponse(
+ return ClusterNodeGroupFields(
)
"""
- def testFlavorResponse(self):
- """Test FlavorResponse"""
+ def testClusterNodeGroupFields(self):
+ """Test ClusterNodeGroupFields"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_cluster_node_groups_create_response.py b/test/test_cluster_node_groups_create_response.py
new file mode 100644
index 0000000..e9f8e37
--- /dev/null
+++ b/test/test_cluster_node_groups_create_response.py
@@ -0,0 +1,96 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.cluster_node_groups_create_response import ClusterNodeGroupsCreateResponse
+
+class TestClusterNodeGroupsCreateResponse(unittest.TestCase):
+ """ClusterNodeGroupsCreateResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ClusterNodeGroupsCreateResponse:
+ """Test ClusterNodeGroupsCreateResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ClusterNodeGroupsCreateResponse`
+ """
+ model = ClusterNodeGroupsCreateResponse()
+ if include_optional:
+ return ClusterNodeGroupsCreateResponse(
+ message = '',
+ node_group = hyperstack.models.cluster_node_group_fields.ClusterNodeGroupFields(
+ count = 56,
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ flavor = hyperstack.models.cluster_flavor_fields.Cluster_Flavor_Fields(
+ cpu = 56,
+ disk = 56,
+ ephemeral = 56,
+ features = hyperstack.models.features.features(),
+ gpu = '',
+ gpu_count = 56,
+ id = 56,
+ labels = [
+ hyperstack.models.lable_resonse.LableResonse(
+ id = 56,
+ label = '', )
+ ],
+ name = '',
+ ram = 1.337, ),
+ id = 56,
+ name = '',
+ role = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
+ nodes = [
+ hyperstack.models.cluster_node_fields.ClusterNodeFields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ id = 56,
+ instance = hyperstack.models.cluster_node_instance_fields.ClusterNodeInstanceFields(
+ contract_id = 56,
+ fixed_ip = '',
+ floating_ip = '',
+ floating_ip_status = '',
+ id = 56,
+ image_id = 56,
+ name = '',
+ status = '', ),
+ is_bastion = True,
+ node_group_id = 56,
+ node_group_name = '',
+ requires_public_ip = True,
+ role = '',
+ status = '',
+ status_reason = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ ],
+ status = True
+ )
+ else:
+ return ClusterNodeGroupsCreateResponse(
+ )
+ """
+
+ def testClusterNodeGroupsCreateResponse(self):
+ """Test ClusterNodeGroupsCreateResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_cluster_node_groups_get_response.py b/test/test_cluster_node_groups_get_response.py
new file mode 100644
index 0000000..7e689a4
--- /dev/null
+++ b/test/test_cluster_node_groups_get_response.py
@@ -0,0 +1,74 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.cluster_node_groups_get_response import ClusterNodeGroupsGetResponse
+
+class TestClusterNodeGroupsGetResponse(unittest.TestCase):
+ """ClusterNodeGroupsGetResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ClusterNodeGroupsGetResponse:
+ """Test ClusterNodeGroupsGetResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ClusterNodeGroupsGetResponse`
+ """
+ model = ClusterNodeGroupsGetResponse()
+ if include_optional:
+ return ClusterNodeGroupsGetResponse(
+ message = '',
+ node_group = hyperstack.models.cluster_node_group_fields.ClusterNodeGroupFields(
+ count = 56,
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ flavor = hyperstack.models.cluster_flavor_fields.Cluster_Flavor_Fields(
+ cpu = 56,
+ disk = 56,
+ ephemeral = 56,
+ features = hyperstack.models.features.features(),
+ gpu = '',
+ gpu_count = 56,
+ id = 56,
+ labels = [
+ hyperstack.models.lable_resonse.LableResonse(
+ id = 56,
+ label = '', )
+ ],
+ name = '',
+ ram = 1.337, ),
+ id = 56,
+ name = '',
+ role = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
+ status = True
+ )
+ else:
+ return ClusterNodeGroupsGetResponse(
+ )
+ """
+
+ def testClusterNodeGroupsGetResponse(self):
+ """Test ClusterNodeGroupsGetResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_cluster_node_groups_list_response.py b/test/test_cluster_node_groups_list_response.py
new file mode 100644
index 0000000..370f8e7
--- /dev/null
+++ b/test/test_cluster_node_groups_list_response.py
@@ -0,0 +1,76 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.cluster_node_groups_list_response import ClusterNodeGroupsListResponse
+
+class TestClusterNodeGroupsListResponse(unittest.TestCase):
+ """ClusterNodeGroupsListResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ClusterNodeGroupsListResponse:
+ """Test ClusterNodeGroupsListResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ClusterNodeGroupsListResponse`
+ """
+ model = ClusterNodeGroupsListResponse()
+ if include_optional:
+ return ClusterNodeGroupsListResponse(
+ message = '',
+ node_groups = [
+ hyperstack.models.cluster_node_group_fields.ClusterNodeGroupFields(
+ count = 56,
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ flavor = hyperstack.models.cluster_flavor_fields.Cluster_Flavor_Fields(
+ cpu = 56,
+ disk = 56,
+ ephemeral = 56,
+ features = hyperstack.models.features.features(),
+ gpu = '',
+ gpu_count = 56,
+ id = 56,
+ labels = [
+ hyperstack.models.lable_resonse.LableResonse(
+ id = 56,
+ label = '', )
+ ],
+ name = '',
+ ram = 1.337, ),
+ id = 56,
+ name = '',
+ role = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ ],
+ status = True
+ )
+ else:
+ return ClusterNodeGroupsListResponse(
+ )
+ """
+
+ def testClusterNodeGroupsListResponse(self):
+ """Test ClusterNodeGroupsListResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_contract_eligible_instance_fields.py b/test/test_cluster_node_instance_fields.py
similarity index 61%
rename from test/test_contract_eligible_instance_fields.py
rename to test/test_cluster_node_instance_fields.py
index 1c10ea5..81dbb7d 100644
--- a/test/test_contract_eligible_instance_fields.py
+++ b/test/test_cluster_node_instance_fields.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.contract_eligible_instance_fields import ContractEligibleInstanceFields
+from hyperstack.models.cluster_node_instance_fields import ClusterNodeInstanceFields
-class TestContractEligibleInstanceFields(unittest.TestCase):
- """ContractEligibleInstanceFields unit test stubs"""
+class TestClusterNodeInstanceFields(unittest.TestCase):
+ """ClusterNodeInstanceFields unit test stubs"""
def setUp(self):
pass
@@ -25,31 +25,32 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> ContractEligibleInstanceFields:
- """Test ContractEligibleInstanceFields
+ def make_instance(self, include_optional) -> ClusterNodeInstanceFields:
+ """Test ClusterNodeInstanceFields
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `ContractEligibleInstanceFields`
+ # uncomment below to create an instance of `ClusterNodeInstanceFields`
"""
- model = ContractEligibleInstanceFields()
+ model = ClusterNodeInstanceFields()
if include_optional:
- return ContractEligibleInstanceFields(
+ return ClusterNodeInstanceFields(
contract_id = 56,
- host = '',
+ fixed_ip = '',
+ floating_ip = '',
+ floating_ip_status = '',
id = 56,
+ image_id = 56,
name = '',
- openstack_id = '',
- public_ip = '',
status = ''
)
else:
- return ContractEligibleInstanceFields(
+ return ClusterNodeInstanceFields(
)
"""
- def testContractEligibleInstanceFields(self):
- """Test ContractEligibleInstanceFields"""
+ def testClusterNodeInstanceFields(self):
+ """Test ClusterNodeInstanceFields"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_historical_instance.py b/test/test_cluster_nodes_list_response.py
similarity index 51%
rename from test/test_historical_instance.py
rename to test/test_cluster_nodes_list_response.py
index 88bcbea..15f8cca 100644
--- a/test/test_historical_instance.py
+++ b/test/test_cluster_nodes_list_response.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.historical_instance import HistoricalInstance
+from hyperstack.models.cluster_nodes_list_response import ClusterNodesListResponse
-class TestHistoricalInstance(unittest.TestCase):
- """HistoricalInstance unit test stubs"""
+class TestClusterNodesListResponse(unittest.TestCase):
+ """ClusterNodesListResponse unit test stubs"""
def setUp(self):
pass
@@ -25,42 +25,48 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> HistoricalInstance:
- """Test HistoricalInstance
+ def make_instance(self, include_optional) -> ClusterNodesListResponse:
+ """Test ClusterNodesListResponse
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `HistoricalInstance`
+ # uncomment below to create an instance of `ClusterNodesListResponse`
"""
- model = HistoricalInstance()
+ model = ClusterNodesListResponse()
if include_optional:
- return HistoricalInstance(
- instance_count = 56,
- instances = [
- hyperstack.models.historical_instances_fields.HistoricalInstancesFields(
+ return ClusterNodesListResponse(
+ message = '',
+ nodes = [
+ hyperstack.models.cluster_node_fields.ClusterNodeFields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- environment = '',
- environment_id = 56,
- flavor = '',
- flavor_id = 56,
- floating_ip = '',
- host = '',
id = 56,
- name = '',
- openstack_id = '',
+ instance = hyperstack.models.cluster_node_instance_fields.ClusterNodeInstanceFields(
+ contract_id = 56,
+ fixed_ip = '',
+ floating_ip = '',
+ floating_ip_status = '',
+ id = 56,
+ image_id = 56,
+ name = '',
+ status = '', ),
+ is_bastion = True,
+ node_group_id = 56,
+ node_group_name = '',
+ requires_public_ip = True,
+ role = '',
status = '',
+ status_reason = '',
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
],
- message = '',
status = True
)
else:
- return HistoricalInstance(
+ return ClusterNodesListResponse(
)
"""
- def testHistoricalInstance(self):
- """Test HistoricalInstance"""
+ def testClusterNodesListResponse(self):
+ """Test ClusterNodesListResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_cluster_response.py b/test/test_cluster_response.py
index fee31d8..5c33107 100644
--- a/test/test_cluster_response.py
+++ b/test/test_cluster_response.py
@@ -43,17 +43,63 @@ def make_instance(self, include_optional) -> ClusterResponse:
keypair_name = '',
kube_config = '',
kubernetes_version = '',
- name = '',
- node_count = 56,
- node_flavor = hyperstack.models.instance_flavor_fields.InstanceFlavorFields(
+ master_flavor = hyperstack.models.cluster_flavor_fields.Cluster_Flavor_Fields(
cpu = 56,
disk = 56,
ephemeral = 56,
+ features = hyperstack.models.features.features(),
gpu = '',
gpu_count = 56,
id = 56,
+ labels = [
+ hyperstack.models.lable_resonse.LableResonse(
+ id = 56,
+ label = '', )
+ ],
name = '',
ram = 1.337, ),
+ name = '',
+ node_groups = [
+ hyperstack.models.cluster_node_group_fields.ClusterNodeGroupFields(
+ count = 56,
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ flavor = hyperstack.models.cluster_flavor_fields.Cluster_Flavor_Fields(
+ cpu = 56,
+ disk = 56,
+ ephemeral = 56,
+ features = hyperstack.models.features.features(),
+ gpu = '',
+ gpu_count = 56,
+ id = 56,
+ name = '',
+ ram = 1.337, ),
+ id = 56,
+ name = '',
+ role = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ ],
+ nodes = [
+ hyperstack.models.cluster_node_fields.ClusterNodeFields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ id = 56,
+ instance = hyperstack.models.cluster_node_instance_fields.ClusterNodeInstanceFields(
+ contract_id = 56,
+ fixed_ip = '',
+ floating_ip = '',
+ floating_ip_status = '',
+ id = 56,
+ image_id = 56,
+ name = '',
+ status = '', ),
+ is_bastion = True,
+ node_group_id = 56,
+ node_group_name = '',
+ requires_public_ip = True,
+ role = '',
+ status = '',
+ status_reason = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ ],
status = '',
status_reason = '', ),
message = '',
diff --git a/test/test_flavor_vm_fields.py b/test/test_cluster_version.py
similarity index 65%
rename from test/test_flavor_vm_fields.py
rename to test/test_cluster_version.py
index 89c5986..87e5fb5 100644
--- a/test/test_flavor_vm_fields.py
+++ b/test/test_cluster_version.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.flavor_vm_fields import FlavorVMFields
+from hyperstack.models.cluster_version import ClusterVersion
-class TestFlavorVMFields(unittest.TestCase):
- """FlavorVMFields unit test stubs"""
+class TestClusterVersion(unittest.TestCase):
+ """ClusterVersion unit test stubs"""
def setUp(self):
pass
@@ -25,31 +25,30 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> FlavorVMFields:
- """Test FlavorVMFields
+ def make_instance(self, include_optional) -> ClusterVersion:
+ """Test ClusterVersion
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `FlavorVMFields`
+ # uncomment below to create an instance of `ClusterVersion`
"""
- model = FlavorVMFields()
+ model = ClusterVersion()
if include_optional:
- return FlavorVMFields(
+ return ClusterVersion(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- host = '',
id = 56,
- name = '',
- openstack_id = '',
- org_id = 56,
- status = ''
+ image = None,
+ region = None,
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ version = ''
)
else:
- return FlavorVMFields(
+ return ClusterVersion(
)
"""
- def testFlavorVMFields(self):
- """Test FlavorVMFields"""
+ def testClusterVersion(self):
+ """Test ClusterVersion"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_cluster_versions.py b/test/test_cluster_versions.py
index 0a3f11a..25f5a64 100644
--- a/test/test_cluster_versions.py
+++ b/test/test_cluster_versions.py
@@ -38,7 +38,13 @@ def make_instance(self, include_optional) -> ClusterVersions:
message = '',
status = True,
versions = [
- ''
+ hyperstack.models.cluster_version.ClusterVersion(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ id = 56,
+ image = hyperstack.models.image.image(),
+ region = hyperstack.models.region.region(),
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ version = '', )
]
)
else:
diff --git a/test/test_clusters_api.py b/test/test_clusters_api.py
index a2c0b07..356e1a8 100644
--- a/test/test_clusters_api.py
+++ b/test/test_clusters_api.py
@@ -33,6 +33,20 @@ def test_create_cluster(self) -> None:
"""
pass
+ def test_create_node(self) -> None:
+ """Test case for create_node
+
+ Create Node
+ """
+ pass
+
+ def test_create_node_group(self) -> None:
+ """Test case for create_node_group
+
+ Create a node group in a cluster
+ """
+ pass
+
def test_delete_a_cluster(self) -> None:
"""Test case for delete_a_cluster
@@ -40,6 +54,20 @@ def test_delete_a_cluster(self) -> None:
"""
pass
+ def test_delete_a_node_group(self) -> None:
+ """Test case for delete_a_node_group
+
+ Delete a node group
+ """
+ pass
+
+ def test_delete_cluster_node(self) -> None:
+ """Test case for delete_cluster_node
+
+ Delete Cluster Node
+ """
+ pass
+
def test_fetch_cluster_name_availability(self) -> None:
"""Test case for fetch_cluster_name_availability
@@ -47,10 +75,24 @@ def test_fetch_cluster_name_availability(self) -> None:
"""
pass
+ def test_get_cluster_master_flavors(self) -> None:
+ """Test case for get_cluster_master_flavors
+
+ Get Cluster Master Flavors
+ """
+ pass
+
+ def test_get_cluster_nodes(self) -> None:
+ """Test case for get_cluster_nodes
+
+ Get Cluster Nodes
+ """
+ pass
+
def test_get_cluster_versions(self) -> None:
"""Test case for get_cluster_versions
- GET Cluster Versions
+ List Cluster Versions
"""
pass
@@ -68,6 +110,20 @@ def test_list_clusters(self) -> None:
"""
pass
+ def test_list_node_groups(self) -> None:
+ """Test case for list_node_groups
+
+ List node groups for a cluster
+ """
+ pass
+
+ def test_retrieve_a_node_group(self) -> None:
+ """Test case for retrieve_a_node_group
+
+ Retrieve a node group in a cluster
+ """
+ pass
+
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_region_response.py b/test/test_colors.py
similarity index 62%
rename from test/test_region_response.py
rename to test/test_colors.py
index cef2eee..eb195ff 100644
--- a/test/test_region_response.py
+++ b/test/test_colors.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.region_response import RegionResponse
+from hyperstack.models.colors import Colors
-class TestRegionResponse(unittest.TestCase):
- """RegionResponse unit test stubs"""
+class TestColors(unittest.TestCase):
+ """Colors unit test stubs"""
def setUp(self):
pass
@@ -25,30 +25,30 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> RegionResponse:
- """Test RegionResponse
+ def make_instance(self, include_optional) -> Colors:
+ """Test Colors
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `RegionResponse`
+ # uncomment below to create an instance of `Colors`
"""
- model = RegionResponse()
+ model = Colors()
if include_optional:
- return RegionResponse(
- message = '',
- region = hyperstack.models.region_fields.RegionFields(
- description = '',
- id = 56,
- name = '', ),
- status = True
+ return Colors(
+ primary = hyperstack.models.primary_color.PrimaryColor(
+ dark = '',
+ light = '', ),
+ secondary = hyperstack.models.secondary_color.SecondaryColor(
+ dark = '',
+ light = '', )
)
else:
- return RegionResponse(
+ return Colors(
)
"""
- def testRegionResponse(self):
- """Test RegionResponse"""
+ def testColors(self):
+ """Test Colors"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_compliance_api.py b/test/test_compliance_api.py
index 2216951..03afc94 100644
--- a/test/test_compliance_api.py
+++ b/test/test_compliance_api.py
@@ -40,8 +40,8 @@ def test_delete_a_compliance(self) -> None:
"""
pass
- def test_retrieve_gpu_compliance(self) -> None:
- """Test case for retrieve_gpu_compliance
+ def test_retrieve_compliance(self) -> None:
+ """Test case for retrieve_compliance
Retrieve GPU compliance
"""
diff --git a/test/test_contract_billing_history.py b/test/test_contract_billing_history.py
deleted file mode 100644
index 34d9b0a..0000000
--- a/test/test_contract_billing_history.py
+++ /dev/null
@@ -1,60 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.contract_billing_history import ContractBillingHistory
-
-class TestContractBillingHistory(unittest.TestCase):
- """ContractBillingHistory unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> ContractBillingHistory:
- """Test ContractBillingHistory
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `ContractBillingHistory`
- """
- model = ContractBillingHistory()
- if include_optional:
- return ContractBillingHistory(
- attributes = hyperstack.models.contract_billing_history_response_attributes.ContractBillingHistoryResponseAttributes(
- description = '',
- end_date = '',
- gpu_count = 56,
- gpu_name = '',
- id = '',
- infrahub_id = 56,
- price_per_hour = 1.337, ),
- metrics = hyperstack.models.contractl_billing_history_response_metrics.ContractlBillingHistoryResponseMetrics(
- incurred_bill = 1.337, )
- )
- else:
- return ContractBillingHistory(
- )
- """
-
- def testContractBillingHistory(self):
- """Test ContractBillingHistory"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_contract_billing_history_response_attributes.py b/test/test_contract_billing_history_response_attributes.py
deleted file mode 100644
index 87532bf..0000000
--- a/test/test_contract_billing_history_response_attributes.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.contract_billing_history_response_attributes import ContractBillingHistoryResponseAttributes
-
-class TestContractBillingHistoryResponseAttributes(unittest.TestCase):
- """ContractBillingHistoryResponseAttributes unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> ContractBillingHistoryResponseAttributes:
- """Test ContractBillingHistoryResponseAttributes
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `ContractBillingHistoryResponseAttributes`
- """
- model = ContractBillingHistoryResponseAttributes()
- if include_optional:
- return ContractBillingHistoryResponseAttributes(
- description = '',
- end_date = '',
- gpu_count = 56,
- gpu_name = '',
- id = '',
- infrahub_id = 56,
- price_per_hour = 1.337
- )
- else:
- return ContractBillingHistoryResponseAttributes(
- )
- """
-
- def testContractBillingHistoryResponseAttributes(self):
- """Test ContractBillingHistoryResponseAttributes"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_contract_billing_history_response_model.py b/test/test_contract_billing_history_response_model.py
deleted file mode 100644
index 7b7da8c..0000000
--- a/test/test_contract_billing_history_response_model.py
+++ /dev/null
@@ -1,63 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.contract_billing_history_response_model import ContractBillingHistoryResponseModel
-
-class TestContractBillingHistoryResponseModel(unittest.TestCase):
- """ContractBillingHistoryResponseModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> ContractBillingHistoryResponseModel:
- """Test ContractBillingHistoryResponseModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `ContractBillingHistoryResponseModel`
- """
- model = ContractBillingHistoryResponseModel()
- if include_optional:
- return ContractBillingHistoryResponseModel(
- billing_history_contract = hyperstack.models.contract_billing_history.ContractBillingHistory(
- attributes = hyperstack.models.contract_billing_history_response_attributes.ContractBillingHistoryResponseAttributes(
- description = '',
- end_date = '',
- gpu_count = 56,
- gpu_name = '',
- id = '',
- infrahub_id = 56,
- price_per_hour = 1.337, ),
- metrics = hyperstack.models.contractl_billing_history_response_metrics.ContractlBillingHistoryResponseMetrics(
- incurred_bill = 1.337, ), ),
- message = '',
- status = True
- )
- else:
- return ContractBillingHistoryResponseModel(
- )
- """
-
- def testContractBillingHistoryResponseModel(self):
- """Test ContractBillingHistoryResponseModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_contract_change_payload.py b/test/test_contract_change_payload.py
deleted file mode 100644
index 0522647..0000000
--- a/test/test_contract_change_payload.py
+++ /dev/null
@@ -1,62 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.contract_change_payload import ContractChangePayload
-
-class TestContractChangePayload(unittest.TestCase):
- """ContractChangePayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> ContractChangePayload:
- """Test ContractChangePayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `ContractChangePayload`
- """
- model = ContractChangePayload()
- if include_optional:
- return ContractChangePayload(
- changes = [
- hyperstack.models.field_change.FieldChange(
- field_name = '',
- new_value = '',
- old_value = '', )
- ],
- id = 56,
- org_id = 56,
- type = ''
- )
- else:
- return ContractChangePayload(
- id = 56,
- org_id = 56,
- type = '',
- )
- """
-
- def testContractChangePayload(self):
- """Test ContractChangePayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_contract_discount_plan_fields.py b/test/test_contract_discount_plan_fields.py
index 97aedac..1288c9e 100644
--- a/test/test_contract_discount_plan_fields.py
+++ b/test/test_contract_discount_plan_fields.py
@@ -41,6 +41,7 @@ def make_instance(self, include_optional) -> ContractDiscountPlanFields:
discount_status = '',
discount_type = '',
id = 56,
+ remaining_count = 56,
resource_count = 56,
resource_id = 56,
resource_name = ''
diff --git a/test/test_contract_eligible_instances_response.py b/test/test_contract_eligible_instances_response.py
deleted file mode 100644
index 5ca5d2b..0000000
--- a/test/test_contract_eligible_instances_response.py
+++ /dev/null
@@ -1,63 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.contract_eligible_instances_response import ContractEligibleInstancesResponse
-
-class TestContractEligibleInstancesResponse(unittest.TestCase):
- """ContractEligibleInstancesResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> ContractEligibleInstancesResponse:
- """Test ContractEligibleInstancesResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `ContractEligibleInstancesResponse`
- """
- model = ContractEligibleInstancesResponse()
- if include_optional:
- return ContractEligibleInstancesResponse(
- instance_count = 56,
- instances = [
- hyperstack.models.contract_eligible_instance_fields.ContractEligibleInstanceFields(
- contract_id = 56,
- host = '',
- id = 56,
- name = '',
- openstack_id = '',
- public_ip = '',
- status = '', )
- ],
- message = '',
- status = True
- )
- else:
- return ContractEligibleInstancesResponse(
- )
- """
-
- def testContractEligibleInstancesResponse(self):
- """Test ContractEligibleInstancesResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_contract_event_create_model.py b/test/test_contract_event_create_model.py
deleted file mode 100644
index 5c499db..0000000
--- a/test/test_contract_event_create_model.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.contract_event_create_model import ContractEventCreateModel
-
-class TestContractEventCreateModel(unittest.TestCase):
- """ContractEventCreateModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> ContractEventCreateModel:
- """Test ContractEventCreateModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `ContractEventCreateModel`
- """
- model = ContractEventCreateModel()
- if include_optional:
- return ContractEventCreateModel(
- message = '',
- reason = '',
- type = ''
- )
- else:
- return ContractEventCreateModel(
- message = '',
- reason = '',
- type = '',
- )
- """
-
- def testContractEventCreateModel(self):
- """Test ContractEventCreateModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_contract_instance_fields.py b/test/test_contract_instance_fields.py
index 0300dd0..9a0e818 100644
--- a/test/test_contract_instance_fields.py
+++ b/test/test_contract_instance_fields.py
@@ -35,6 +35,73 @@ def make_instance(self, include_optional) -> ContractInstanceFields:
model = ContractInstanceFields()
if include_optional:
return ContractInstanceFields(
+ cluster = hyperstack.models.cluster_fields.ClusterFields(
+ api_address = '',
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ environment_name = '',
+ id = 56,
+ keypair_name = '',
+ kube_config = '',
+ kubernetes_version = '',
+ master_flavor = hyperstack.models.cluster_flavor_fields.Cluster_Flavor_Fields(
+ cpu = 56,
+ disk = 56,
+ ephemeral = 56,
+ features = hyperstack.models.features.features(),
+ gpu = '',
+ gpu_count = 56,
+ id = 56,
+ labels = [
+ hyperstack.models.lable_resonse.LableResonse(
+ id = 56,
+ label = '', )
+ ],
+ name = '',
+ ram = 1.337, ),
+ name = '',
+ node_groups = [
+ hyperstack.models.cluster_node_group_fields.ClusterNodeGroupFields(
+ count = 56,
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ flavor = hyperstack.models.cluster_flavor_fields.Cluster_Flavor_Fields(
+ cpu = 56,
+ disk = 56,
+ ephemeral = 56,
+ features = hyperstack.models.features.features(),
+ gpu = '',
+ gpu_count = 56,
+ id = 56,
+ name = '',
+ ram = 1.337, ),
+ id = 56,
+ name = '',
+ role = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ ],
+ nodes = [
+ hyperstack.models.cluster_node_fields.ClusterNodeFields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ id = 56,
+ instance = hyperstack.models.cluster_node_instance_fields.ClusterNodeInstanceFields(
+ contract_id = 56,
+ fixed_ip = '',
+ floating_ip = '',
+ floating_ip_status = '',
+ id = 56,
+ image_id = 56,
+ name = '',
+ status = '', ),
+ is_bastion = True,
+ node_group_id = 56,
+ node_group_name = '',
+ requires_public_ip = True,
+ role = '',
+ status = '',
+ status_reason = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ ],
+ status = '',
+ status_reason = '', ),
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
flavor_name = '',
gpu_count = 56,
diff --git a/test/test_contract_instances_response.py b/test/test_contract_instances_response.py
index 7c38334..6fd0dfd 100644
--- a/test/test_contract_instances_response.py
+++ b/test/test_contract_instances_response.py
@@ -37,6 +37,73 @@ def make_instance(self, include_optional) -> ContractInstancesResponse:
return ContractInstancesResponse(
instances = [
hyperstack.models.contract_instance_fields.ContractInstanceFields(
+ cluster = hyperstack.models.cluster_fields.ClusterFields(
+ api_address = '',
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ environment_name = '',
+ id = 56,
+ keypair_name = '',
+ kube_config = '',
+ kubernetes_version = '',
+ master_flavor = hyperstack.models.cluster_flavor_fields.Cluster_Flavor_Fields(
+ cpu = 56,
+ disk = 56,
+ ephemeral = 56,
+ features = hyperstack.models.features.features(),
+ gpu = '',
+ gpu_count = 56,
+ id = 56,
+ labels = [
+ hyperstack.models.lable_resonse.LableResonse(
+ id = 56,
+ label = '', )
+ ],
+ name = '',
+ ram = 1.337, ),
+ name = '',
+ node_groups = [
+ hyperstack.models.cluster_node_group_fields.ClusterNodeGroupFields(
+ count = 56,
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ flavor = hyperstack.models.cluster_flavor_fields.Cluster_Flavor_Fields(
+ cpu = 56,
+ disk = 56,
+ ephemeral = 56,
+ features = hyperstack.models.features.features(),
+ gpu = '',
+ gpu_count = 56,
+ id = 56,
+ name = '',
+ ram = 1.337, ),
+ id = 56,
+ name = '',
+ role = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ ],
+ nodes = [
+ hyperstack.models.cluster_node_fields.ClusterNodeFields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ id = 56,
+ instance = hyperstack.models.cluster_node_instance_fields.ClusterNodeInstanceFields(
+ contract_id = 56,
+ fixed_ip = '',
+ floating_ip = '',
+ floating_ip_status = '',
+ id = 56,
+ image_id = 56,
+ name = '',
+ status = '', ),
+ is_bastion = True,
+ node_group_id = 56,
+ node_group_name = '',
+ requires_public_ip = True,
+ role = '',
+ status = '',
+ status_reason = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
+ ],
+ status = '',
+ status_reason = '', ),
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
flavor_name = '',
gpu_count = 56,
diff --git a/test/test_contract_resource_payload.py b/test/test_contract_resource_payload.py
deleted file mode 100644
index e6dbc05..0000000
--- a/test/test_contract_resource_payload.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.contract_resource_payload import ContractResourcePayload
-
-class TestContractResourcePayload(unittest.TestCase):
- """ContractResourcePayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> ContractResourcePayload:
- """Test ContractResourcePayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `ContractResourcePayload`
- """
- model = ContractResourcePayload()
- if include_optional:
- return ContractResourcePayload(
- discount_amount = 1.337,
- discount_percent = 1.337,
- discount_type = '',
- resource_count = 56,
- resource_id = 56
- )
- else:
- return ContractResourcePayload(
- discount_type = '',
- resource_id = 56,
- )
- """
-
- def testContractResourcePayload(self):
- """Test ContractResourcePayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_create_cluster_node_fields.py b/test/test_create_cluster_node_fields.py
new file mode 100644
index 0000000..df0566e
--- /dev/null
+++ b/test/test_create_cluster_node_fields.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.create_cluster_node_fields import CreateClusterNodeFields
+
+class TestCreateClusterNodeFields(unittest.TestCase):
+ """CreateClusterNodeFields unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> CreateClusterNodeFields:
+ """Test CreateClusterNodeFields
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `CreateClusterNodeFields`
+ """
+ model = CreateClusterNodeFields()
+ if include_optional:
+ return CreateClusterNodeFields(
+ count = 1,
+ node_group = '',
+ role = 'worker'
+ )
+ else:
+ return CreateClusterNodeFields(
+ )
+ """
+
+ def testCreateClusterNodeFields(self):
+ """Test CreateClusterNodeFields"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_region_payload.py b/test/test_create_cluster_node_group_payload.py
similarity index 60%
rename from test/test_region_payload.py
rename to test/test_create_cluster_node_group_payload.py
index 332093a..413d633 100644
--- a/test/test_region_payload.py
+++ b/test/test_create_cluster_node_group_payload.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.region_payload import RegionPayload
+from hyperstack.models.create_cluster_node_group_payload import CreateClusterNodeGroupPayload
-class TestRegionPayload(unittest.TestCase):
- """RegionPayload unit test stubs"""
+class TestCreateClusterNodeGroupPayload(unittest.TestCase):
+ """CreateClusterNodeGroupPayload unit test stubs"""
def setUp(self):
pass
@@ -25,27 +25,29 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> RegionPayload:
- """Test RegionPayload
+ def make_instance(self, include_optional) -> CreateClusterNodeGroupPayload:
+ """Test CreateClusterNodeGroupPayload
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `RegionPayload`
+ # uncomment below to create an instance of `CreateClusterNodeGroupPayload`
"""
- model = RegionPayload()
+ model = CreateClusterNodeGroupPayload()
if include_optional:
- return RegionPayload(
- description = '',
+ return CreateClusterNodeGroupPayload(
+ count = 1,
+ flavor_name = '',
name = ''
)
else:
- return RegionPayload(
+ return CreateClusterNodeGroupPayload(
+ flavor_name = '',
name = '',
)
"""
- def testRegionPayload(self):
- """Test RegionPayload"""
+ def testCreateClusterNodeGroupPayload(self):
+ """Test CreateClusterNodeGroupPayload"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_create_cluster_payload.py b/test/test_create_cluster_payload.py
index 7992305..104ca93 100644
--- a/test/test_create_cluster_payload.py
+++ b/test/test_create_cluster_payload.py
@@ -35,25 +35,29 @@ def make_instance(self, include_optional) -> CreateClusterPayload:
model = CreateClusterPayload()
if include_optional:
return CreateClusterPayload(
+ deployment_mode = 'full',
environment_name = '',
- image_name = '',
keypair_name = '',
kubernetes_version = '',
+ master_count = 2,
master_flavor_name = '',
name = '',
node_count = 56,
- node_flavor_name = ''
+ node_flavor_name = '',
+ node_groups = [
+ hyperstack.models.create_cluster_node_group_payload.Create_ClusterNodeGroup_payload(
+ count = 1,
+ flavor_name = '',
+ name = '', )
+ ]
)
else:
return CreateClusterPayload(
environment_name = '',
- image_name = '',
keypair_name = '',
kubernetes_version = '',
master_flavor_name = '',
name = '',
- node_count = 56,
- node_flavor_name = '',
)
"""
diff --git a/test/test_create_contract_fields.py b/test/test_create_contract_fields.py
deleted file mode 100644
index c8526ed..0000000
--- a/test/test_create_contract_fields.py
+++ /dev/null
@@ -1,69 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.create_contract_fields import CreateContractFields
-
-class TestCreateContractFields(unittest.TestCase):
- """CreateContractFields unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> CreateContractFields:
- """Test CreateContractFields
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `CreateContractFields`
- """
- model = CreateContractFields()
- if include_optional:
- return CreateContractFields(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- description = '',
- discount_plans = [
- hyperstack.models.contract_discount_plan_fields.ContractDiscountPlanFields(
- discount_amount = 1.337,
- discount_code = '',
- discount_percent = 1.337,
- discount_status = '',
- discount_type = '',
- id = 56,
- resource_count = 56,
- resource_id = 56,
- resource_name = '', )
- ],
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- expiration_policy = 56,
- id = 56,
- org_id = 56,
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return CreateContractFields(
- )
- """
-
- def testCreateContractFields(self):
- """Test CreateContractFields"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_create_contract_payload.py b/test/test_create_contract_payload.py
deleted file mode 100644
index 0d0ffb7..0000000
--- a/test/test_create_contract_payload.py
+++ /dev/null
@@ -1,73 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.create_contract_payload import CreateContractPayload
-
-class TestCreateContractPayload(unittest.TestCase):
- """CreateContractPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> CreateContractPayload:
- """Test CreateContractPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `CreateContractPayload`
- """
- model = CreateContractPayload()
- if include_optional:
- return CreateContractPayload(
- description = '',
- discount_resources = [
- hyperstack.models.contract_resource_payload.ContractResourcePayload(
- discount_amount = 1.337,
- discount_percent = 1.337,
- discount_type = '',
- resource_count = 56,
- resource_id = 56, )
- ],
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- expiration_policy = 56,
- org_id = 56,
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return CreateContractPayload(
- discount_resources = [
- hyperstack.models.contract_resource_payload.ContractResourcePayload(
- discount_amount = 1.337,
- discount_percent = 1.337,
- discount_type = '',
- resource_count = 56,
- resource_id = 56, )
- ],
- expiration_policy = 56,
- org_id = 56,
- )
- """
-
- def testCreateContractPayload(self):
- """Test CreateContractPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_create_discount_response.py b/test/test_create_discount_response.py
deleted file mode 100644
index 3bd2f95..0000000
--- a/test/test_create_discount_response.py
+++ /dev/null
@@ -1,68 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.create_discount_response import CreateDiscountResponse
-
-class TestCreateDiscountResponse(unittest.TestCase):
- """CreateDiscountResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> CreateDiscountResponse:
- """Test CreateDiscountResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `CreateDiscountResponse`
- """
- model = CreateDiscountResponse()
- if include_optional:
- return CreateDiscountResponse(
- discount_plan = hyperstack.models.insert_discount_plan_fields.InsertDiscountPlanFields(
- customers = [
- hyperstack.models.customer_fields.CustomerFields(
- id = 56,
- plan_type = '', )
- ],
- discount_resources = [
- hyperstack.models.discount_resource_fields.DiscountResourceFields(
- discount_amount = 1.337,
- discount_percent = 1.337,
- discount_type = '',
- resource_id = 56, )
- ],
- discount_status = '',
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
- message = '',
- status = True
- )
- else:
- return CreateDiscountResponse(
- )
- """
-
- def testCreateDiscountResponse(self):
- """Test CreateDiscountResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_create_discounts_payload.py b/test/test_create_discounts_payload.py
deleted file mode 100644
index c801982..0000000
--- a/test/test_create_discounts_payload.py
+++ /dev/null
@@ -1,78 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.create_discounts_payload import CreateDiscountsPayload
-
-class TestCreateDiscountsPayload(unittest.TestCase):
- """CreateDiscountsPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> CreateDiscountsPayload:
- """Test CreateDiscountsPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `CreateDiscountsPayload`
- """
- model = CreateDiscountsPayload()
- if include_optional:
- return CreateDiscountsPayload(
- customers = [
- hyperstack.models.customer_payload.CustomerPayload(
- id = 56,
- plan_type = '', )
- ],
- discount_resources = [
- hyperstack.models.discount_resource_payload.DiscountResourcePayload(
- discount_amount = 1.337,
- discount_percent = 1.337,
- discount_type = '',
- resource_id = 56, )
- ],
- discount_status = '',
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return CreateDiscountsPayload(
- customers = [
- hyperstack.models.customer_payload.CustomerPayload(
- id = 56,
- plan_type = '', )
- ],
- discount_resources = [
- hyperstack.models.discount_resource_payload.DiscountResourcePayload(
- discount_amount = 1.337,
- discount_percent = 1.337,
- discount_type = '',
- resource_id = 56, )
- ],
- discount_status = '',
- )
- """
-
- def testCreateDiscountsPayload(self):
- """Test CreateDiscountsPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_create_instances_payload.py b/test/test_create_instances_payload.py
index 3c81cdb..dbcf0fc 100644
--- a/test/test_create_instances_payload.py
+++ b/test/test_create_instances_payload.py
@@ -41,7 +41,7 @@ def make_instance(self, include_optional) -> CreateInstancesPayload:
create_bootable_volume = True,
enable_port_randomization = True,
environment_name = '',
- flavor = hyperstack.models.flavor_object_fields.FlavorObjectFields(
+ flavor = hyperstack.models.flavor_object_fields.Flavor_Object_Fields(
cpu = 56,
disk = 56,
gpu = '',
@@ -54,11 +54,11 @@ def make_instance(self, include_optional) -> CreateInstancesPayload:
''
],
name = '',
- profile = hyperstack.models.profile_object_fields.ProfileObjectFields(
+ profile = hyperstack.models.profile_object_fields.Profile_Object_Fields(
description = '',
name = '', ),
security_rules = [
- hyperstack.models.create_security_rule_payload.CreateSecurityRulePayload(
+ hyperstack.models.create_security_rule_payload.Create_Security_Rule_Payload(
direction = '',
ethertype = '',
protocol = 'any',
diff --git a/test/test_create_instances_response.py b/test/test_create_instances_response.py
index 7783074..930de7c 100644
--- a/test/test_create_instances_response.py
+++ b/test/test_create_instances_response.py
@@ -36,33 +36,40 @@ def make_instance(self, include_optional) -> CreateInstancesResponse:
if include_optional:
return CreateInstancesResponse(
instances = [
- hyperstack.models.instance_fields.InstanceFields(
+ hyperstack.models.instance_fields.Instance_Fields(
callback_url = '',
contract_id = 56,
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- environment = hyperstack.models.instance_environment_fields.InstanceEnvironmentFields(
- features = hyperstack.models.environment_features.EnvironmentFeatures(
+ environment = hyperstack.models.instance_environment_fields.Instance_Environment_Fields(
+ features = hyperstack.models.environment_features.Environment_Features(
+ green_status = 'GREEN',
network_optimised = True, ),
id = 56,
name = '',
org_id = 56,
region = '', ),
+ features = hyperstack.models.features.features(),
fixed_ip = '',
- flavor = hyperstack.models.instance_flavor_fields.InstanceFlavorFields(
+ flavor = hyperstack.models.instance_flavor_fields.Instance_Flavor_Fields(
cpu = 56,
disk = 56,
ephemeral = 56,
gpu = '',
gpu_count = 56,
id = 56,
+ labels = [
+ hyperstack.models.flavor_label_fields.FlavorLabelFields(
+ id = 56,
+ label = '', )
+ ],
name = '',
ram = 1.337, ),
floating_ip = '',
floating_ip_status = '',
id = 56,
- image = hyperstack.models.instance_image_fields.InstanceImageFields(
+ image = hyperstack.models.instance_image_fields.Instance_Image_Fields(
name = '', ),
- keypair = hyperstack.models.instance_keypair_fields.InstanceKeypairFields(
+ keypair = hyperstack.models.instance_keypair_fields.Instance_Keypair_Fields(
name = '', ),
labels = [
''
@@ -73,8 +80,9 @@ def make_instance(self, include_optional) -> CreateInstancesResponse:
port_randomization = True,
port_randomization_status = '',
power_state = '',
+ requires_public_ip = True,
security_rules = [
- hyperstack.models.security_rules_fieldsfor_instance.SecurityRulesFieldsforInstance(
+ hyperstack.models.security_rules_fields_for_instance.Security_Rules_Fields_for_Instance(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
direction = '',
ethertype = '',
@@ -88,11 +96,13 @@ def make_instance(self, include_optional) -> CreateInstancesResponse:
status = '',
vm_state = '',
volume_attachments = [
- hyperstack.models.volume_attachment_fields.VolumeAttachmentFields(
+ hyperstack.models.volume_attachment_fields.Volume_Attachment_Fields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
device = '',
+ id = 56,
+ protected = True,
status = '',
- volume = hyperstack.models.volume_fieldsfor_instance.VolumeFieldsforInstance(
+ volume = hyperstack.models.volume_fields_for_instance.Volume_Fields_for_Instance(
bootable = True,
description = '',
id = 56,
diff --git a/test/test_create_profile_response.py b/test/test_create_profile_response.py
index a0ac84e..6db87a1 100644
--- a/test/test_create_profile_response.py
+++ b/test/test_create_profile_response.py
@@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> CreateProfileResponse:
if include_optional:
return CreateProfileResponse(
message = '',
- profile = hyperstack.models.profile_fields.ProfileFields(
+ profile = hyperstack.models.profile_fields.Profile_Fields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
data = '',
description = '',
diff --git a/test/test_create_snapshot_payload.py b/test/test_create_snapshot_payload.py
index 8147e35..d387362 100644
--- a/test/test_create_snapshot_payload.py
+++ b/test/test_create_snapshot_payload.py
@@ -36,7 +36,6 @@ def make_instance(self, include_optional) -> CreateSnapshotPayload:
if include_optional:
return CreateSnapshotPayload(
description = '',
- is_image = True,
labels = [
''
],
@@ -45,7 +44,6 @@ def make_instance(self, include_optional) -> CreateSnapshotPayload:
else:
return CreateSnapshotPayload(
description = '',
- is_image = True,
name = '',
)
"""
diff --git a/test/test_create_snapshot_response.py b/test/test_create_snapshot_response.py
index f0c8984..6d02d15 100644
--- a/test/test_create_snapshot_response.py
+++ b/test/test_create_snapshot_response.py
@@ -37,6 +37,7 @@ def make_instance(self, include_optional) -> CreateSnapshotResponse:
return CreateSnapshotResponse(
message = '',
snapshot = hyperstack.models.snapshot_fields.SnapshotFields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
description = '',
has_floating_ip = True,
id = 56,
@@ -48,6 +49,7 @@ def make_instance(self, include_optional) -> CreateSnapshotResponse:
region_id = 56,
size = 56,
status = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
vm_id = 56, ),
status = True
)
diff --git a/test/test_create_update_permission_payload.py b/test/test_create_update_permission_payload.py
deleted file mode 100644
index 2c2b827..0000000
--- a/test/test_create_update_permission_payload.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.create_update_permission_payload import CreateUpdatePermissionPayload
-
-class TestCreateUpdatePermissionPayload(unittest.TestCase):
- """CreateUpdatePermissionPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> CreateUpdatePermissionPayload:
- """Test CreateUpdatePermissionPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `CreateUpdatePermissionPayload`
- """
- model = CreateUpdatePermissionPayload()
- if include_optional:
- return CreateUpdatePermissionPayload(
- endpoint = '',
- method = '',
- permission = '',
- resource = ''
- )
- else:
- return CreateUpdatePermissionPayload(
- endpoint = '',
- method = '',
- permission = '',
- resource = '',
- )
- """
-
- def testCreateUpdatePermissionPayload(self):
- """Test CreateUpdatePermissionPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_create_update_permission_response_model.py b/test/test_create_update_permission_response_model.py
deleted file mode 100644
index bda5e76..0000000
--- a/test/test_create_update_permission_response_model.py
+++ /dev/null
@@ -1,59 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.create_update_permission_response_model import CreateUpdatePermissionResponseModel
-
-class TestCreateUpdatePermissionResponseModel(unittest.TestCase):
- """CreateUpdatePermissionResponseModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> CreateUpdatePermissionResponseModel:
- """Test CreateUpdatePermissionResponseModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `CreateUpdatePermissionResponseModel`
- """
- model = CreateUpdatePermissionResponseModel()
- if include_optional:
- return CreateUpdatePermissionResponseModel(
- message = '',
- permission = hyperstack.models.permission_fields.PermissionFields(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- endpoint = '',
- id = 56,
- method = '',
- permission = '',
- resource = '', ),
- status = True
- )
- else:
- return CreateUpdatePermissionResponseModel(
- )
- """
-
- def testCreateUpdatePermissionResponseModel(self):
- """Test CreateUpdatePermissionResponseModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_create_update_policy_payload.py b/test/test_create_update_policy_payload.py
deleted file mode 100644
index 525c2ca..0000000
--- a/test/test_create_update_policy_payload.py
+++ /dev/null
@@ -1,62 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.create_update_policy_payload import CreateUpdatePolicyPayload
-
-class TestCreateUpdatePolicyPayload(unittest.TestCase):
- """CreateUpdatePolicyPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> CreateUpdatePolicyPayload:
- """Test CreateUpdatePolicyPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `CreateUpdatePolicyPayload`
- """
- model = CreateUpdatePolicyPayload()
- if include_optional:
- return CreateUpdatePolicyPayload(
- description = '',
- is_public = True,
- name = '',
- permissions = [
- 56
- ]
- )
- else:
- return CreateUpdatePolicyPayload(
- description = '',
- is_public = True,
- name = '',
- permissions = [
- 56
- ],
- )
- """
-
- def testCreateUpdatePolicyPayload(self):
- """Test CreateUpdatePolicyPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_credit_api.py b/test/test_credit_api.py
index 05e42e6..b4fcd52 100644
--- a/test/test_credit_api.py
+++ b/test/test_credit_api.py
@@ -26,8 +26,8 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
- def test_get_view_credit_and_threshold(self) -> None:
- """Test case for get_view_credit_and_threshold
+ def test_get_credit2(self) -> None:
+ """Test case for get_credit2
GET: View credit and threshold
"""
diff --git a/test/test_creditrechargelimitfield.py b/test/test_creditrechargelimitfield.py
deleted file mode 100644
index c6c668f..0000000
--- a/test/test_creditrechargelimitfield.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.creditrechargelimitfield import Creditrechargelimitfield
-
-class TestCreditrechargelimitfield(unittest.TestCase):
- """Creditrechargelimitfield unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> Creditrechargelimitfield:
- """Test Creditrechargelimitfield
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `Creditrechargelimitfield`
- """
- model = Creditrechargelimitfield()
- if include_optional:
- return Creditrechargelimitfield(
- credit_granted = 1.337,
- credit_limit = 1.337,
- organization_id = 56,
- user_id = 56
- )
- else:
- return Creditrechargelimitfield(
- )
- """
-
- def testCreditrechargelimitfield(self):
- """Test Creditrechargelimitfield"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_creditrequestresponse.py b/test/test_creditrequestresponse.py
deleted file mode 100644
index 43158ce..0000000
--- a/test/test_creditrequestresponse.py
+++ /dev/null
@@ -1,60 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.creditrequestresponse import Creditrequestresponse
-
-class TestCreditrequestresponse(unittest.TestCase):
- """Creditrequestresponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> Creditrequestresponse:
- """Test Creditrequestresponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `Creditrequestresponse`
- """
- model = Creditrequestresponse()
- if include_optional:
- return Creditrequestresponse(
- data = [
- hyperstack.models.creditrequests.Creditrequests(
- admin_user_id = 56,
- amount = 1.337,
- reason = '',
- status = '',
- updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
- ],
- message = '',
- status = True
- )
- else:
- return Creditrequestresponse(
- )
- """
-
- def testCreditrequestresponse(self):
- """Test Creditrequestresponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_customer_contract_api.py b/test/test_customer_contract_api.py
index d6bce14..45a2472 100644
--- a/test/test_customer_contract_api.py
+++ b/test/test_customer_contract_api.py
@@ -26,22 +26,22 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
- def test_list_contracts(self) -> None:
- """Test case for list_contracts
+ def test_get_customer_contract(self) -> None:
+ """Test case for get_customer_contract
List Contracts
"""
pass
- def test_retrieve_contract_details(self) -> None:
- """Test case for retrieve_contract_details
+ def test_get_customer_contract_details(self) -> None:
+ """Test case for get_customer_contract_details
Retrieve Contract Details
"""
pass
- def test_retrieve_gpu_allocation_graph_for_contract(self) -> None:
- """Test case for retrieve_gpu_allocation_graph_for_contract
+ def test_get_customer_contract_gpu_allocation_graph(self) -> None:
+ """Test case for get_customer_contract_gpu_allocation_graph
Retrieve GPU Allocation Graph for Contract
"""
diff --git a/test/test_customer_contract_detail_response_model.py b/test/test_customer_contract_detail_response_model.py
index 0f3fbed..d70f454 100644
--- a/test/test_customer_contract_detail_response_model.py
+++ b/test/test_customer_contract_detail_response_model.py
@@ -46,6 +46,7 @@ def make_instance(self, include_optional) -> CustomerContractDetailResponseModel
discount_status = '',
discount_type = '',
id = 56,
+ remaining_count = 56,
resource_count = 56,
resource_id = 56,
resource_name = '', )
diff --git a/test/test_customer_contract_fields.py b/test/test_customer_contract_fields.py
index 07568d3..9c982d4 100644
--- a/test/test_customer_contract_fields.py
+++ b/test/test_customer_contract_fields.py
@@ -45,6 +45,7 @@ def make_instance(self, include_optional) -> CustomerContractFields:
discount_status = '',
discount_type = '',
id = 56,
+ remaining_count = 56,
resource_count = 56,
resource_id = 56,
resource_name = '', )
diff --git a/test/test_dashboard_info_response.py b/test/test_dashboard_info_response.py
index 079dc19..7065ea7 100644
--- a/test/test_dashboard_info_response.py
+++ b/test/test_dashboard_info_response.py
@@ -36,20 +36,20 @@ def make_instance(self, include_optional) -> DashboardInfoResponse:
if include_optional:
return DashboardInfoResponse(
message = '',
- overview = hyperstack.models.overview_info.OverviewInfo(
- container = hyperstack.models.container_overview_fields.ContainerOverviewFields(
+ overview = hyperstack.models.overview_info.Overview_Info(
+ container = hyperstack.models.container_overview_fields.Container_Overview_Fields(
cost_per_hour = 1.337,
count = 56,
gpus = 56,
ram = 1.337,
vcpus = 56, ),
- instance = hyperstack.models.instance_overview_fields.InstanceOverviewFields(
+ instance = hyperstack.models.instance_overview_fields.Instance_Overview_Fields(
cost_per_hour = 1.337,
count = 56,
gpus = 56,
ram = 1.337,
vcpus = 56, ),
- volume = hyperstack.models.volume_overview_fields.VolumeOverviewFields(
+ volume = hyperstack.models.volume_overview_fields.Volume_Overview_Fields(
cost_per_hour = 1.337,
count = 56,
using = 56, ), ),
diff --git a/test/test_data_synthesis_billing_history_details_response_schema.py b/test/test_data_synthesis_billing_history_details_response_schema.py
new file mode 100644
index 0000000..6165205
--- /dev/null
+++ b/test/test_data_synthesis_billing_history_details_response_schema.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.data_synthesis_billing_history_details_response_schema import DataSynthesisBillingHistoryDetailsResponseSchema
+
+class TestDataSynthesisBillingHistoryDetailsResponseSchema(unittest.TestCase):
+ """DataSynthesisBillingHistoryDetailsResponseSchema unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> DataSynthesisBillingHistoryDetailsResponseSchema:
+ """Test DataSynthesisBillingHistoryDetailsResponseSchema
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `DataSynthesisBillingHistoryDetailsResponseSchema`
+ """
+ model = DataSynthesisBillingHistoryDetailsResponseSchema()
+ if include_optional:
+ return DataSynthesisBillingHistoryDetailsResponseSchema(
+ billing_history_data_synthesis_details = hyperstack.models.billing_history_data_synthesis_details.billing_history_data_synthesis_details(
+ billing_history = [
+ hyperstack.models.billing_history.billing_history(
+ attributes = hyperstack.models.attributes.attributes(
+ base_model = '',
+ base_model_display_name = '',
+ infrahub_id = 56,
+ lora_adapter = '',
+ resource_name = '',
+ status = '', ),
+ metrics = hyperstack.models.metrics.metrics(), )
+ ],
+ org_id = 56,
+ pagination = hyperstack.models.pagination.pagination(
+ page = 56,
+ pages = 56,
+ per_page = 56, ),
+ total_count = 56, ),
+ message = '',
+ status = True
+ )
+ else:
+ return DataSynthesisBillingHistoryDetailsResponseSchema(
+ )
+ """
+
+ def testDataSynthesisBillingHistoryDetailsResponseSchema(self):
+ """Test DataSynthesisBillingHistoryDetailsResponseSchema"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_deployment_fieldsforstartdeployments.py b/test/test_deployment_fields_for_start_deployments.py
similarity index 71%
rename from test/test_deployment_fieldsforstartdeployments.py
rename to test/test_deployment_fields_for_start_deployments.py
index 8d5e1b5..708ae7a 100644
--- a/test/test_deployment_fieldsforstartdeployments.py
+++ b/test/test_deployment_fields_for_start_deployments.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.deployment_fieldsforstartdeployments import DeploymentFieldsforstartdeployments
+from hyperstack.models.deployment_fields_for_start_deployments import DeploymentFieldsForStartDeployments
-class TestDeploymentFieldsforstartdeployments(unittest.TestCase):
- """DeploymentFieldsforstartdeployments unit test stubs"""
+class TestDeploymentFieldsForStartDeployments(unittest.TestCase):
+ """DeploymentFieldsForStartDeployments unit test stubs"""
def setUp(self):
pass
@@ -25,16 +25,16 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> DeploymentFieldsforstartdeployments:
- """Test DeploymentFieldsforstartdeployments
+ def make_instance(self, include_optional) -> DeploymentFieldsForStartDeployments:
+ """Test DeploymentFieldsForStartDeployments
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `DeploymentFieldsforstartdeployments`
+ # uncomment below to create an instance of `DeploymentFieldsForStartDeployments`
"""
- model = DeploymentFieldsforstartdeployments()
+ model = DeploymentFieldsForStartDeployments()
if include_optional:
- return DeploymentFieldsforstartdeployments(
+ return DeploymentFieldsForStartDeployments(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
description = '',
id = 56,
@@ -44,12 +44,12 @@ def make_instance(self, include_optional) -> DeploymentFieldsforstartdeployments
variables = ''
)
else:
- return DeploymentFieldsforstartdeployments(
+ return DeploymentFieldsForStartDeployments(
)
"""
- def testDeploymentFieldsforstartdeployments(self):
- """Test DeploymentFieldsforstartdeployments"""
+ def testDeploymentFieldsForStartDeployments(self):
+ """Test DeploymentFieldsForStartDeployments"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_deployments.py b/test/test_deployments.py
index 797050e..c8c7153 100644
--- a/test/test_deployments.py
+++ b/test/test_deployments.py
@@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> Deployments:
if include_optional:
return Deployments(
deployments = [
- hyperstack.models.deployment_fields.DeploymentFields(
+ hyperstack.models.deployment_fields.Deployment_Fields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
description = '',
id = 56,
diff --git a/test/test_detach_volumes.py b/test/test_detach_volumes.py
index 7d05cf8..bee717c 100644
--- a/test/test_detach_volumes.py
+++ b/test/test_detach_volumes.py
@@ -38,10 +38,12 @@ def make_instance(self, include_optional) -> DetachVolumes:
message = '',
status = True,
volume_attachments = [
- hyperstack.models.attach_volume_fields.AttachVolumeFields(
+ hyperstack.models.attach_volume_fields.Attach_Volume_Fields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ device = '',
id = 56,
instance_id = 56,
+ protected = True,
status = '',
volume_id = 56, )
]
diff --git a/test/test_discount_entity_model.py b/test/test_discount_entity_model.py
deleted file mode 100644
index 680cba4..0000000
--- a/test/test_discount_entity_model.py
+++ /dev/null
@@ -1,65 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.discount_entity_model import DiscountEntityModel
-
-class TestDiscountEntityModel(unittest.TestCase):
- """DiscountEntityModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> DiscountEntityModel:
- """Test DiscountEntityModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `DiscountEntityModel`
- """
- model = DiscountEntityModel()
- if include_optional:
- return DiscountEntityModel(
- data = [
- hyperstack.models.discount_plan_fields.DiscountPlanFields(
- discount_amount = 1.337,
- discount_code = '',
- discount_percent = 1.337,
- discount_status = '',
- discount_type = '',
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- id = 56,
- resource = '',
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- validity_days = 56,
- vm_id = 56, )
- ],
- entity = ''
- )
- else:
- return DiscountEntityModel(
- )
- """
-
- def testDiscountEntityModel(self):
- """Test DiscountEntityModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_discount_fields.py b/test/test_discount_fields.py
deleted file mode 100644
index 7101816..0000000
--- a/test/test_discount_fields.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.discount_fields import DiscountFields
-
-class TestDiscountFields(unittest.TestCase):
- """DiscountFields unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> DiscountFields:
- """Test DiscountFields
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `DiscountFields`
- """
- model = DiscountFields()
- if include_optional:
- return DiscountFields(
- discount_status = '',
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- org_id = 56,
- org_name = '',
- plan_type = '',
- vm_id = 56,
- vm_name = ''
- )
- else:
- return DiscountFields(
- )
- """
-
- def testDiscountFields(self):
- """Test DiscountFields"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_discount_plan_fields.py b/test/test_discount_plan_fields.py
deleted file mode 100644
index d07bd95..0000000
--- a/test/test_discount_plan_fields.py
+++ /dev/null
@@ -1,61 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.discount_plan_fields import DiscountPlanFields
-
-class TestDiscountPlanFields(unittest.TestCase):
- """DiscountPlanFields unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> DiscountPlanFields:
- """Test DiscountPlanFields
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `DiscountPlanFields`
- """
- model = DiscountPlanFields()
- if include_optional:
- return DiscountPlanFields(
- discount_amount = 1.337,
- discount_code = '',
- discount_percent = 1.337,
- discount_status = '',
- discount_type = '',
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- id = 56,
- resource = '',
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- validity_days = 56,
- vm_id = 56
- )
- else:
- return DiscountPlanFields(
- )
- """
-
- def testDiscountPlanFields(self):
- """Test DiscountPlanFields"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_discount_resource_fields.py b/test/test_discount_resource_fields.py
deleted file mode 100644
index 20b7a57..0000000
--- a/test/test_discount_resource_fields.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.discount_resource_fields import DiscountResourceFields
-
-class TestDiscountResourceFields(unittest.TestCase):
- """DiscountResourceFields unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> DiscountResourceFields:
- """Test DiscountResourceFields
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `DiscountResourceFields`
- """
- model = DiscountResourceFields()
- if include_optional:
- return DiscountResourceFields(
- discount_amount = 1.337,
- discount_percent = 1.337,
- discount_type = '',
- resource_id = 56
- )
- else:
- return DiscountResourceFields(
- )
- """
-
- def testDiscountResourceFields(self):
- """Test DiscountResourceFields"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_discount_resource_payload.py b/test/test_discount_resource_payload.py
deleted file mode 100644
index 5eb57eb..0000000
--- a/test/test_discount_resource_payload.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.discount_resource_payload import DiscountResourcePayload
-
-class TestDiscountResourcePayload(unittest.TestCase):
- """DiscountResourcePayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> DiscountResourcePayload:
- """Test DiscountResourcePayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `DiscountResourcePayload`
- """
- model = DiscountResourcePayload()
- if include_optional:
- return DiscountResourcePayload(
- discount_amount = 1.337,
- discount_percent = 1.337,
- discount_type = '',
- resource_id = 56
- )
- else:
- return DiscountResourcePayload(
- discount_amount = 1.337,
- discount_percent = 1.337,
- discount_type = '',
- resource_id = 56,
- )
- """
-
- def testDiscountResourcePayload(self):
- """Test DiscountResourcePayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_editlabelofanexisting_vm_payload.py b/test/test_edit_label_of_an_existing_vm_payload.py
similarity index 64%
rename from test/test_editlabelofanexisting_vm_payload.py
rename to test/test_edit_label_of_an_existing_vm_payload.py
index 0cd9ac0..ccd75cd 100644
--- a/test/test_editlabelofanexisting_vm_payload.py
+++ b/test/test_edit_label_of_an_existing_vm_payload.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.editlabelofanexisting_vm_payload import EditlabelofanexistingVMPayload
+from hyperstack.models.edit_label_of_an_existing_vm_payload import EditLabelOfAnExistingVMPayload
-class TestEditlabelofanexistingVMPayload(unittest.TestCase):
- """EditlabelofanexistingVMPayload unit test stubs"""
+class TestEditLabelOfAnExistingVMPayload(unittest.TestCase):
+ """EditLabelOfAnExistingVMPayload unit test stubs"""
def setUp(self):
pass
@@ -25,27 +25,27 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> EditlabelofanexistingVMPayload:
- """Test EditlabelofanexistingVMPayload
+ def make_instance(self, include_optional) -> EditLabelOfAnExistingVMPayload:
+ """Test EditLabelOfAnExistingVMPayload
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `EditlabelofanexistingVMPayload`
+ # uncomment below to create an instance of `EditLabelOfAnExistingVMPayload`
"""
- model = EditlabelofanexistingVMPayload()
+ model = EditLabelOfAnExistingVMPayload()
if include_optional:
- return EditlabelofanexistingVMPayload(
+ return EditLabelOfAnExistingVMPayload(
labels = [
''
]
)
else:
- return EditlabelofanexistingVMPayload(
+ return EditLabelOfAnExistingVMPayload(
)
"""
- def testEditlabelofanexistingVMPayload(self):
- """Test EditlabelofanexistingVMPayload"""
+ def testEditLabelOfAnExistingVMPayload(self):
+ """Test EditLabelOfAnExistingVMPayload"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_environment.py b/test/test_environment.py
index bf348e2..5a1e74e 100644
--- a/test/test_environment.py
+++ b/test/test_environment.py
@@ -35,9 +35,10 @@ def make_instance(self, include_optional) -> Environment:
model = Environment()
if include_optional:
return Environment(
- environment = hyperstack.models.environment_fields.EnvironmentFields(
+ environment = hyperstack.models.environment_fields.Environment_Fields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- features = hyperstack.models.environment_features.EnvironmentFeatures(
+ features = hyperstack.models.environment_features.Environment_Features(
+ green_status = 'GREEN',
network_optimised = True, ),
id = 56,
name = '',
diff --git a/test/test_environment_api.py b/test/test_environment_api.py
index 5cc7b0b..ad2de25 100644
--- a/test/test_environment_api.py
+++ b/test/test_environment_api.py
@@ -40,6 +40,13 @@ def test_delete_environment(self) -> None:
"""
pass
+ def test_fetch_environment_name_availability(self) -> None:
+ """Test case for fetch_environment_name_availability
+
+ Fetch environment name availability
+ """
+ pass
+
def test_list_environments(self) -> None:
"""Test case for list_environments
diff --git a/test/test_environment_features.py b/test/test_environment_features.py
index bc4f3ad..d2271b2 100644
--- a/test/test_environment_features.py
+++ b/test/test_environment_features.py
@@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> EnvironmentFeatures:
model = EnvironmentFeatures()
if include_optional:
return EnvironmentFeatures(
+ green_status = 'GREEN',
network_optimised = True
)
else:
diff --git a/test/test_environment_fields.py b/test/test_environment_fields.py
index bdf9d2a..aec5060 100644
--- a/test/test_environment_fields.py
+++ b/test/test_environment_fields.py
@@ -36,7 +36,8 @@ def make_instance(self, include_optional) -> EnvironmentFields:
if include_optional:
return EnvironmentFields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- features = hyperstack.models.environment_features.EnvironmentFeatures(
+ features = hyperstack.models.environment_features.Environment_Features(
+ green_status = 'GREEN',
network_optimised = True, ),
id = 56,
name = '',
diff --git a/test/test_environment_fieldsfor_volume.py b/test/test_environment_fields_for_volume.py
similarity index 68%
rename from test/test_environment_fieldsfor_volume.py
rename to test/test_environment_fields_for_volume.py
index cb64e34..2a3c8ed 100644
--- a/test/test_environment_fieldsfor_volume.py
+++ b/test/test_environment_fields_for_volume.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.environment_fieldsfor_volume import EnvironmentFieldsforVolume
+from hyperstack.models.environment_fields_for_volume import EnvironmentFieldsForVolume
-class TestEnvironmentFieldsforVolume(unittest.TestCase):
- """EnvironmentFieldsforVolume unit test stubs"""
+class TestEnvironmentFieldsForVolume(unittest.TestCase):
+ """EnvironmentFieldsForVolume unit test stubs"""
def setUp(self):
pass
@@ -25,25 +25,27 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> EnvironmentFieldsforVolume:
- """Test EnvironmentFieldsforVolume
+ def make_instance(self, include_optional) -> EnvironmentFieldsForVolume:
+ """Test EnvironmentFieldsForVolume
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `EnvironmentFieldsforVolume`
+ # uncomment below to create an instance of `EnvironmentFieldsForVolume`
"""
- model = EnvironmentFieldsforVolume()
+ model = EnvironmentFieldsForVolume()
if include_optional:
- return EnvironmentFieldsforVolume(
- name = ''
+ return EnvironmentFieldsForVolume(
+ features = None,
+ name = '',
+ region = ''
)
else:
- return EnvironmentFieldsforVolume(
+ return EnvironmentFieldsForVolume(
)
"""
- def testEnvironmentFieldsforVolume(self):
- """Test EnvironmentFieldsforVolume"""
+ def testEnvironmentFieldsForVolume(self):
+ """Test EnvironmentFieldsForVolume"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_environments.py b/test/test_environments.py
index aba608f..c403eba 100644
--- a/test/test_environments.py
+++ b/test/test_environments.py
@@ -37,9 +37,10 @@ def make_instance(self, include_optional) -> Environments:
return Environments(
count = 56,
environments = [
- hyperstack.models.environment_fields.EnvironmentFields(
+ hyperstack.models.environment_fields.Environment_Fields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- features = hyperstack.models.environment_features.EnvironmentFeatures(
+ features = hyperstack.models.environment_features.Environment_Features(
+ green_status = 'GREEN',
network_optimised = True, ),
id = 56,
name = '',
diff --git a/test/test_exclude_billing_post_payload.py b/test/test_exclude_billing_post_payload.py
deleted file mode 100644
index 801ce22..0000000
--- a/test/test_exclude_billing_post_payload.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.exclude_billing_post_payload import ExcludeBillingPostPayload
-
-class TestExcludeBillingPostPayload(unittest.TestCase):
- """ExcludeBillingPostPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> ExcludeBillingPostPayload:
- """Test ExcludeBillingPostPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `ExcludeBillingPostPayload`
- """
- model = ExcludeBillingPostPayload()
- if include_optional:
- return ExcludeBillingPostPayload(
- exclude = True,
- resource_id = 56,
- resource_type = ''
- )
- else:
- return ExcludeBillingPostPayload(
- exclude = True,
- resource_id = 56,
- resource_type = '',
- )
- """
-
- def testExcludeBillingPostPayload(self):
- """Test ExcludeBillingPostPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_exclude_billing_post_response.py b/test/test_exclude_billing_post_response.py
deleted file mode 100644
index 9d2f3ad..0000000
--- a/test/test_exclude_billing_post_response.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.exclude_billing_post_response import ExcludeBillingPostResponse
-
-class TestExcludeBillingPostResponse(unittest.TestCase):
- """ExcludeBillingPostResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> ExcludeBillingPostResponse:
- """Test ExcludeBillingPostResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `ExcludeBillingPostResponse`
- """
- model = ExcludeBillingPostResponse()
- if include_optional:
- return ExcludeBillingPostResponse(
- data = hyperstack.models.data.data(
- organization_id = 56,
- resource_id = 56,
- resource_type = '', )
- )
- else:
- return ExcludeBillingPostResponse(
- )
- """
-
- def testExcludeBillingPostResponse(self):
- """Test ExcludeBillingPostResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_export_billing_data_request.py b/test/test_export_billing_data_request.py
deleted file mode 100644
index 3820031..0000000
--- a/test/test_export_billing_data_request.py
+++ /dev/null
@@ -1,69 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.export_billing_data_request import ExportBillingDataRequest
-
-class TestExportBillingDataRequest(unittest.TestCase):
- """ExportBillingDataRequest unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> ExportBillingDataRequest:
- """Test ExportBillingDataRequest
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `ExportBillingDataRequest`
- """
- model = ExportBillingDataRequest()
- if include_optional:
- return ExportBillingDataRequest(
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- org_id = 56,
- required_attributes = [
- ''
- ],
- required_metrics = [
- ''
- ],
- resource_type = 'virtual_machine',
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return ExportBillingDataRequest(
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- required_attributes = [
- ''
- ],
- required_metrics = [
- ''
- ],
- resource_type = 'virtual_machine',
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- )
- """
-
- def testExportBillingDataRequest(self):
- """Test ExportBillingDataRequest"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_export_billing_data_response.py b/test/test_export_billing_data_response.py
deleted file mode 100644
index 3430ac9..0000000
--- a/test/test_export_billing_data_response.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.export_billing_data_response import ExportBillingDataResponse
-
-class TestExportBillingDataResponse(unittest.TestCase):
- """ExportBillingDataResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> ExportBillingDataResponse:
- """Test ExportBillingDataResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `ExportBillingDataResponse`
- """
- model = ExportBillingDataResponse()
- if include_optional:
- return ExportBillingDataResponse(
- measures = [
- None
- ],
- message = ''
- )
- else:
- return ExportBillingDataResponse(
- )
- """
-
- def testExportBillingDataResponse(self):
- """Test ExportBillingDataResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_firewall_attachment_api.py b/test/test_firewall_attachment_api.py
index e3b6923..2cd2b19 100644
--- a/test/test_firewall_attachment_api.py
+++ b/test/test_firewall_attachment_api.py
@@ -26,8 +26,8 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
- def test_attach_firewalls_to_vms(self) -> None:
- """Test case for attach_firewalls_to_vms
+ def test_post_attach_security_groups(self) -> None:
+ """Test case for post_attach_security_groups
Attach Firewalls to VMs
"""
diff --git a/test/test_firewall_attachment_model.py b/test/test_firewall_attachment_model.py
index 89ea824..cabcb0c 100644
--- a/test/test_firewall_attachment_model.py
+++ b/test/test_firewall_attachment_model.py
@@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> FirewallAttachmentModel:
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
id = 56,
status = '',
- vm = hyperstack.models.firewall_attachment_vm_model.FirewallAttachmentVMModel(
+ vm = hyperstack.models.firewall_attachment_vm_model.Firewall_Attachment_VM_Model(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
environment = '',
flavor = '',
diff --git a/test/test_firewall_detail_fields.py b/test/test_firewall_detail_fields.py
index e02c4f7..4762860 100644
--- a/test/test_firewall_detail_fields.py
+++ b/test/test_firewall_detail_fields.py
@@ -36,11 +36,11 @@ def make_instance(self, include_optional) -> FirewallDetailFields:
if include_optional:
return FirewallDetailFields(
attachments = [
- hyperstack.models.firewall_attachment_model.FirewallAttachmentModel(
+ hyperstack.models.firewall_attachment_model.Firewall_Attachment_Model(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
id = 56,
status = '',
- vm = hyperstack.models.firewall_attachment_vm_model.FirewallAttachmentVMModel(
+ vm = hyperstack.models.firewall_attachment_vm_model.Firewall_Attachment_VM_Model(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
environment = '',
flavor = '',
diff --git a/test/test_firewall_detail_response.py b/test/test_firewall_detail_response.py
index 477b84b..9fc705a 100644
--- a/test/test_firewall_detail_response.py
+++ b/test/test_firewall_detail_response.py
@@ -37,11 +37,11 @@ def make_instance(self, include_optional) -> FirewallDetailResponse:
return FirewallDetailResponse(
firewall = hyperstack.models.firewall_detail_fields.FirewallDetailFields(
attachments = [
- hyperstack.models.firewall_attachment_model.FirewallAttachmentModel(
+ hyperstack.models.firewall_attachment_model.Firewall_Attachment_Model(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
id = 56,
status = '',
- vm = hyperstack.models.firewall_attachment_vm_model.FirewallAttachmentVMModel(
+ vm = hyperstack.models.firewall_attachment_vm_model.Firewall_Attachment_VM_Model(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
environment = '',
flavor = '',
diff --git a/test/test_firewalls_api.py b/test/test_firewalls_api.py
index cff5c6c..9be8bc3 100644
--- a/test/test_firewalls_api.py
+++ b/test/test_firewalls_api.py
@@ -26,45 +26,45 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
- def test_add_firewall_rule_to_firewall(self) -> None:
- """Test case for add_firewall_rule_to_firewall
+ def test_delete_security_group_details(self) -> None:
+ """Test case for delete_security_group_details
- Add firewall rule to firewall
+ Delete firewall
"""
pass
- def test_create_firewall(self) -> None:
- """Test case for create_firewall
+ def test_delete_security_group_rule_delete(self) -> None:
+ """Test case for delete_security_group_rule_delete
- Create firewall
+ Delete firewall rules from firewall
"""
pass
- def test_delete_firewall(self) -> None:
- """Test case for delete_firewall
+ def test_get_security_group(self) -> None:
+ """Test case for get_security_group
- Delete firewall
+ List firewalls
"""
pass
- def test_delete_firewall_rules_from_firewall(self) -> None:
- """Test case for delete_firewall_rules_from_firewall
+ def test_get_security_group_details(self) -> None:
+ """Test case for get_security_group_details
- Delete firewall rules from firewall
+ Retrieve firewall details
"""
pass
- def test_list_firewalls(self) -> None:
- """Test case for list_firewalls
+ def test_post_security_group(self) -> None:
+ """Test case for post_security_group
- List firewalls
+ Create firewall
"""
pass
- def test_retrieve_firewall_details(self) -> None:
- """Test case for retrieve_firewall_details
+ def test_post_security_group_rules(self) -> None:
+ """Test case for post_security_group_rules
- Retrieve firewall details
+ Add firewall rule to firewall
"""
pass
diff --git a/test/test_firewalls_list_response.py b/test/test_firewalls_list_response.py
index 87cdd83..67b12c6 100644
--- a/test/test_firewalls_list_response.py
+++ b/test/test_firewalls_list_response.py
@@ -39,11 +39,11 @@ def make_instance(self, include_optional) -> FirewallsListResponse:
firewalls = [
hyperstack.models.firewall_detail_fields.FirewallDetailFields(
attachments = [
- hyperstack.models.firewall_attachment_model.FirewallAttachmentModel(
+ hyperstack.models.firewall_attachment_model.Firewall_Attachment_Model(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
id = 56,
status = '',
- vm = hyperstack.models.firewall_attachment_vm_model.FirewallAttachmentVMModel(
+ vm = hyperstack.models.firewall_attachment_vm_model.Firewall_Attachment_VM_Model(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
environment = '',
flavor = '',
diff --git a/test/test_flavor_fields.py b/test/test_flavor_fields.py
index 27455be..253054b 100644
--- a/test/test_flavor_fields.py
+++ b/test/test_flavor_fields.py
@@ -40,6 +40,7 @@ def make_instance(self, include_optional) -> FlavorFields:
disk = 56,
display_name = '',
ephemeral = 56,
+ features = None,
gpu = '',
gpu_count = 56,
id = 56,
diff --git a/test/test_flavor_item_get_response.py b/test/test_flavor_item_get_response.py
index ca5ae83..0f2f6c6 100644
--- a/test/test_flavor_item_get_response.py
+++ b/test/test_flavor_item_get_response.py
@@ -36,12 +36,13 @@ def make_instance(self, include_optional) -> FlavorItemGetResponse:
if include_optional:
return FlavorItemGetResponse(
flavors = [
- hyperstack.models.flavor_fields.FlavorFields(
+ hyperstack.models.flavor_fields.Flavor_Fields(
cpu = 56,
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
disk = 56,
display_name = '',
ephemeral = 56,
+ features = hyperstack.models.features.features(),
gpu = '',
gpu_count = 56,
id = 56,
diff --git a/test/test_customer_fields.py b/test/test_flavor_label_fields.py
similarity index 67%
rename from test/test_customer_fields.py
rename to test/test_flavor_label_fields.py
index 29f2f80..6d1bdef 100644
--- a/test/test_customer_fields.py
+++ b/test/test_flavor_label_fields.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.customer_fields import CustomerFields
+from hyperstack.models.flavor_label_fields import FlavorLabelFields
-class TestCustomerFields(unittest.TestCase):
- """CustomerFields unit test stubs"""
+class TestFlavorLabelFields(unittest.TestCase):
+ """FlavorLabelFields unit test stubs"""
def setUp(self):
pass
@@ -25,26 +25,26 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> CustomerFields:
- """Test CustomerFields
+ def make_instance(self, include_optional) -> FlavorLabelFields:
+ """Test FlavorLabelFields
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `CustomerFields`
+ # uncomment below to create an instance of `FlavorLabelFields`
"""
- model = CustomerFields()
+ model = FlavorLabelFields()
if include_optional:
- return CustomerFields(
+ return FlavorLabelFields(
id = 56,
- plan_type = ''
+ label = ''
)
else:
- return CustomerFields(
+ return FlavorLabelFields(
)
"""
- def testCustomerFields(self):
- """Test CustomerFields"""
+ def testFlavorLabelFields(self):
+ """Test FlavorLabelFields"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_flavor_list_response.py b/test/test_flavor_list_response.py
index b0a428b..87226f6 100644
--- a/test/test_flavor_list_response.py
+++ b/test/test_flavor_list_response.py
@@ -36,14 +36,15 @@ def make_instance(self, include_optional) -> FlavorListResponse:
if include_optional:
return FlavorListResponse(
data = [
- hyperstack.models.flavor_item_get_response.FlavorItemGetResponse(
+ hyperstack.models.flavor_item_get_response.Flavor_Item_Get_Response(
flavors = [
- hyperstack.models.flavor_fields.FlavorFields(
+ hyperstack.models.flavor_fields.Flavor_Fields(
cpu = 56,
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
disk = 56,
display_name = '',
ephemeral = 56,
+ features = hyperstack.models.features.features(),
gpu = '',
gpu_count = 56,
id = 56,
diff --git a/test/test_flavor_payload.py b/test/test_flavor_payload.py
deleted file mode 100644
index f57f589..0000000
--- a/test/test_flavor_payload.py
+++ /dev/null
@@ -1,66 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.flavor_payload import FlavorPayload
-
-class TestFlavorPayload(unittest.TestCase):
- """FlavorPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> FlavorPayload:
- """Test FlavorPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `FlavorPayload`
- """
- model = FlavorPayload()
- if include_optional:
- return FlavorPayload(
- cpu = 56,
- disk = 56,
- gpu = '',
- gpu_count = 56,
- is_public = True,
- name = '',
- ram = 1.337,
- region_name = ''
- )
- else:
- return FlavorPayload(
- cpu = 56,
- disk = 56,
- gpu = '',
- gpu_count = 56,
- is_public = True,
- name = '',
- ram = 1.337,
- region_name = '',
- )
- """
-
- def testFlavorPayload(self):
- """Test FlavorPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_floating_ip_api.py b/test/test_floating_ip_api.py
index b6e3725..098725d 100644
--- a/test/test_floating_ip_api.py
+++ b/test/test_floating_ip_api.py
@@ -26,8 +26,8 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
- def test_attach_public_ip_to_virtual_machine(self) -> None:
- """Test case for attach_public_ip_to_virtual_machine
+ def test_attach_public_ipto_virtual_machine(self) -> None:
+ """Test case for attach_public_ipto_virtual_machine
Attach public IP to virtual machine
"""
diff --git a/test/test_future_node_model.py b/test/test_future_node_model.py
deleted file mode 100644
index 1d699d3..0000000
--- a/test/test_future_node_model.py
+++ /dev/null
@@ -1,61 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.future_node_model import FutureNodeModel
-
-class TestFutureNodeModel(unittest.TestCase):
- """FutureNodeModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> FutureNodeModel:
- """Test FutureNodeModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `FutureNodeModel`
- """
- model = FutureNodeModel()
- if include_optional:
- return FutureNodeModel(
- expected_provision_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- id = 56,
- nexgen_name = '',
- openstack_name = '',
- stocks = [
- hyperstack.models.future_node_stock_model.FutureNodeStockModel(
- expected_amount = 56,
- id = 56,
- name = '', )
- ]
- )
- else:
- return FutureNodeModel(
- expected_provision_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- )
- """
-
- def testFutureNodeModel(self):
- """Test FutureNodeModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_future_node_response_model.py b/test/test_future_node_response_model.py
deleted file mode 100644
index 56527b6..0000000
--- a/test/test_future_node_response_model.py
+++ /dev/null
@@ -1,64 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.future_node_response_model import FutureNodeResponseModel
-
-class TestFutureNodeResponseModel(unittest.TestCase):
- """FutureNodeResponseModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> FutureNodeResponseModel:
- """Test FutureNodeResponseModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `FutureNodeResponseModel`
- """
- model = FutureNodeResponseModel()
- if include_optional:
- return FutureNodeResponseModel(
- nodes = [
- hyperstack.models.future_node_model.FutureNodeModel(
- expected_provision_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- id = 56,
- nexgen_name = '',
- openstack_name = '',
- stocks = [
- hyperstack.models.future_node_stock_model.FutureNodeStockModel(
- expected_amount = 56,
- id = 56,
- name = '', )
- ], )
- ],
- region = ''
- )
- else:
- return FutureNodeResponseModel(
- )
- """
-
- def testFutureNodeResponseModel(self):
- """Test FutureNodeResponseModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_future_node_update_model.py b/test/test_future_node_update_model.py
deleted file mode 100644
index d52129a..0000000
--- a/test/test_future_node_update_model.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.future_node_update_model import FutureNodeUpdateModel
-
-class TestFutureNodeUpdateModel(unittest.TestCase):
- """FutureNodeUpdateModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> FutureNodeUpdateModel:
- """Test FutureNodeUpdateModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `FutureNodeUpdateModel`
- """
- model = FutureNodeUpdateModel()
- if include_optional:
- return FutureNodeUpdateModel(
- expected_provision_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- id = 56,
- nexgen_name = '',
- openstack_name = '',
- region_id = 56
- )
- else:
- return FutureNodeUpdateModel(
- expected_provision_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- nexgen_name = '',
- openstack_name = '',
- )
- """
-
- def testFutureNodeUpdateModel(self):
- """Test FutureNodeUpdateModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_future_nodes_stock_model.py b/test/test_future_nodes_stock_model.py
deleted file mode 100644
index 6411546..0000000
--- a/test/test_future_nodes_stock_model.py
+++ /dev/null
@@ -1,67 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.future_nodes_stock_model import FutureNodesStockModel
-
-class TestFutureNodesStockModel(unittest.TestCase):
- """FutureNodesStockModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> FutureNodesStockModel:
- """Test FutureNodesStockModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `FutureNodesStockModel`
- """
- model = FutureNodesStockModel()
- if include_optional:
- return FutureNodesStockModel(
- future_stocks = [
- hyperstack.models.future_node_response_model.FutureNodeResponseModel(
- nodes = [
- hyperstack.models.future_node_model.FutureNodeModel(
- expected_provision_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- id = 56,
- nexgen_name = '',
- openstack_name = '',
- stocks = [
- hyperstack.models.future_node_stock_model.FutureNodeStockModel(
- expected_amount = 56,
- id = 56,
- name = '', )
- ], )
- ],
- region = '', )
- ]
- )
- else:
- return FutureNodesStockModel(
- )
- """
-
- def testFutureNodesStockModel(self):
- """Test FutureNodesStockModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_get_all_contract_fields.py b/test/test_get_all_contract_fields.py
deleted file mode 100644
index e42b5d4..0000000
--- a/test/test_get_all_contract_fields.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.get_all_contract_fields import GetAllContractFields
-
-class TestGetAllContractFields(unittest.TestCase):
- """GetAllContractFields unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> GetAllContractFields:
- """Test GetAllContractFields
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `GetAllContractFields`
- """
- model = GetAllContractFields()
- if include_optional:
- return GetAllContractFields(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- description = '',
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- expiration_policy = 56,
- id = 56,
- org_id = 56,
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return GetAllContractFields(
- )
- """
-
- def testGetAllContractFields(self):
- """Test GetAllContractFields"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_get_all_contracts_response_model.py b/test/test_get_all_contracts_response_model.py
deleted file mode 100644
index 3d062e9..0000000
--- a/test/test_get_all_contracts_response_model.py
+++ /dev/null
@@ -1,62 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.get_all_contracts_response_model import GetAllContractsResponseModel
-
-class TestGetAllContractsResponseModel(unittest.TestCase):
- """GetAllContractsResponseModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> GetAllContractsResponseModel:
- """Test GetAllContractsResponseModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `GetAllContractsResponseModel`
- """
- model = GetAllContractsResponseModel()
- if include_optional:
- return GetAllContractsResponseModel(
- contracts = [
- hyperstack.models.get_all_contract_fields.GetAllContractFields(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- description = '',
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- expiration_policy = 56,
- id = 56,
- org_id = 56,
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
- ],
- message = '',
- status = True
- )
- else:
- return GetAllContractsResponseModel(
- )
- """
-
- def testGetAllContractsResponseModel(self):
- """Test GetAllContractsResponseModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_get_all_discount_for_all_organization_response.py b/test/test_get_all_discount_for_all_organization_response.py
deleted file mode 100644
index 6ed83c1..0000000
--- a/test/test_get_all_discount_for_all_organization_response.py
+++ /dev/null
@@ -1,67 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.get_all_discount_for_all_organization_response import GetAllDiscountForAllOrganizationResponse
-
-class TestGetAllDiscountForAllOrganizationResponse(unittest.TestCase):
- """GetAllDiscountForAllOrganizationResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> GetAllDiscountForAllOrganizationResponse:
- """Test GetAllDiscountForAllOrganizationResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `GetAllDiscountForAllOrganizationResponse`
- """
- model = GetAllDiscountForAllOrganizationResponse()
- if include_optional:
- return GetAllDiscountForAllOrganizationResponse(
- discount_plans = [
- hyperstack.models.get_all_discounts_fields.GetAllDiscountsFields(
- discount_resources = [
- hyperstack.models.discount_resource_fields.DiscountResourceFields(
- discount_amount = 1.337,
- discount_percent = 1.337,
- discount_type = '',
- resource_id = 56, )
- ],
- discount_status = '',
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- org_id = 56,
- org_name = '',
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
- ],
- message = '',
- status = True
- )
- else:
- return GetAllDiscountForAllOrganizationResponse(
- )
- """
-
- def testGetAllDiscountForAllOrganizationResponse(self):
- """Test GetAllDiscountForAllOrganizationResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_get_all_discounts_fields.py b/test/test_get_all_discounts_fields.py
deleted file mode 100644
index 36e68a1..0000000
--- a/test/test_get_all_discounts_fields.py
+++ /dev/null
@@ -1,62 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.get_all_discounts_fields import GetAllDiscountsFields
-
-class TestGetAllDiscountsFields(unittest.TestCase):
- """GetAllDiscountsFields unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> GetAllDiscountsFields:
- """Test GetAllDiscountsFields
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `GetAllDiscountsFields`
- """
- model = GetAllDiscountsFields()
- if include_optional:
- return GetAllDiscountsFields(
- discount_resources = [
- hyperstack.models.discount_resource_fields.DiscountResourceFields(
- discount_amount = 1.337,
- discount_percent = 1.337,
- discount_type = '',
- resource_id = 56, )
- ],
- discount_status = '',
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- org_id = 56,
- org_name = '',
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return GetAllDiscountsFields(
- )
- """
-
- def testGetAllDiscountsFields(self):
- """Test GetAllDiscountsFields"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_getcreditandthresholdinfo.py b/test/test_get_credit_and_threshold_info.py
similarity index 66%
rename from test/test_getcreditandthresholdinfo.py
rename to test/test_get_credit_and_threshold_info.py
index 95e7999..1388bfe 100644
--- a/test/test_getcreditandthresholdinfo.py
+++ b/test/test_get_credit_and_threshold_info.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.getcreditandthresholdinfo import Getcreditandthresholdinfo
+from hyperstack.models.get_credit_and_threshold_info import GetCreditAndThresholdInfo
-class TestGetcreditandthresholdinfo(unittest.TestCase):
- """Getcreditandthresholdinfo unit test stubs"""
+class TestGetCreditAndThresholdInfo(unittest.TestCase):
+ """GetCreditAndThresholdInfo unit test stubs"""
def setUp(self):
pass
@@ -25,27 +25,27 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> Getcreditandthresholdinfo:
- """Test Getcreditandthresholdinfo
+ def make_instance(self, include_optional) -> GetCreditAndThresholdInfo:
+ """Test GetCreditAndThresholdInfo
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `Getcreditandthresholdinfo`
+ # uncomment below to create an instance of `GetCreditAndThresholdInfo`
"""
- model = Getcreditandthresholdinfo()
+ model = GetCreditAndThresholdInfo()
if include_optional:
- return Getcreditandthresholdinfo(
+ return GetCreditAndThresholdInfo(
can_create_instance = True,
credit = 1.337,
threshold = 1.337
)
else:
- return Getcreditandthresholdinfo(
+ return GetCreditAndThresholdInfo(
)
"""
- def testGetcreditandthresholdinfo(self):
- """Test Getcreditandthresholdinfo"""
+ def testGetCreditAndThresholdInfo(self):
+ """Test GetCreditAndThresholdInfo"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_getcreditandthresholdinfoinresponse.py b/test/test_get_credit_and_threshold_info_in_response.py
similarity index 61%
rename from test/test_getcreditandthresholdinfoinresponse.py
rename to test/test_get_credit_and_threshold_info_in_response.py
index d144c9c..513e2be 100644
--- a/test/test_getcreditandthresholdinfoinresponse.py
+++ b/test/test_get_credit_and_threshold_info_in_response.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.getcreditandthresholdinfoinresponse import Getcreditandthresholdinfoinresponse
+from hyperstack.models.get_credit_and_threshold_info_in_response import GetCreditAndThresholdInfoInResponse
-class TestGetcreditandthresholdinfoinresponse(unittest.TestCase):
- """Getcreditandthresholdinfoinresponse unit test stubs"""
+class TestGetCreditAndThresholdInfoInResponse(unittest.TestCase):
+ """GetCreditAndThresholdInfoInResponse unit test stubs"""
def setUp(self):
pass
@@ -25,17 +25,17 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> Getcreditandthresholdinfoinresponse:
- """Test Getcreditandthresholdinfoinresponse
+ def make_instance(self, include_optional) -> GetCreditAndThresholdInfoInResponse:
+ """Test GetCreditAndThresholdInfoInResponse
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `Getcreditandthresholdinfoinresponse`
+ # uncomment below to create an instance of `GetCreditAndThresholdInfoInResponse`
"""
- model = Getcreditandthresholdinfoinresponse()
+ model = GetCreditAndThresholdInfoInResponse()
if include_optional:
- return Getcreditandthresholdinfoinresponse(
- data = hyperstack.models.getcreditandthresholdinfo.Getcreditandthresholdinfo(
+ return GetCreditAndThresholdInfoInResponse(
+ data = hyperstack.models.get_credit_and_threshold_info.Get_credit_and_threshold_info(
can_create_instance = True,
credit = 1.337,
threshold = 1.337, ),
@@ -43,12 +43,12 @@ def make_instance(self, include_optional) -> Getcreditandthresholdinfoinresponse
status = True
)
else:
- return Getcreditandthresholdinfoinresponse(
+ return GetCreditAndThresholdInfoInResponse(
)
"""
- def testGetcreditandthresholdinfoinresponse(self):
- """Test Getcreditandthresholdinfoinresponse"""
+ def testGetCreditAndThresholdInfoInResponse(self):
+ """Test GetCreditAndThresholdInfoInResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_get_customer_contracts_list_response_model.py b/test/test_get_customer_contracts_list_response_model.py
index bb2e093..582bab8 100644
--- a/test/test_get_customer_contracts_list_response_model.py
+++ b/test/test_get_customer_contracts_list_response_model.py
@@ -47,6 +47,7 @@ def make_instance(self, include_optional) -> GetCustomerContractsListResponseMod
discount_status = '',
discount_type = '',
id = 56,
+ remaining_count = 56,
resource_count = 56,
resource_id = 56,
resource_name = '', )
diff --git a/test/test_get_discount_detail_response.py b/test/test_get_discount_detail_response.py
deleted file mode 100644
index 785e625..0000000
--- a/test/test_get_discount_detail_response.py
+++ /dev/null
@@ -1,68 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.get_discount_detail_response import GetDiscountDetailResponse
-
-class TestGetDiscountDetailResponse(unittest.TestCase):
- """GetDiscountDetailResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> GetDiscountDetailResponse:
- """Test GetDiscountDetailResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `GetDiscountDetailResponse`
- """
- model = GetDiscountDetailResponse()
- if include_optional:
- return GetDiscountDetailResponse(
- discounts_entity = hyperstack.models.discount_entity_model.DiscountEntityModel(
- data = [
- hyperstack.models.discount_plan_fields.DiscountPlanFields(
- discount_amount = 1.337,
- discount_code = '',
- discount_percent = 1.337,
- discount_status = '',
- discount_type = '',
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- id = 56,
- resource = '',
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- validity_days = 56,
- vm_id = 56, )
- ],
- entity = '', ),
- message = '',
- status = True
- )
- else:
- return GetDiscountDetailResponse(
- )
- """
-
- def testGetDiscountDetailResponse(self):
- """Test GetDiscountDetailResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_get_discount_response.py b/test/test_get_discount_response.py
deleted file mode 100644
index b65b548..0000000
--- a/test/test_get_discount_response.py
+++ /dev/null
@@ -1,62 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.get_discount_response import GetDiscountResponse
-
-class TestGetDiscountResponse(unittest.TestCase):
- """GetDiscountResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> GetDiscountResponse:
- """Test GetDiscountResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `GetDiscountResponse`
- """
- model = GetDiscountResponse()
- if include_optional:
- return GetDiscountResponse(
- discount_entites = [
- hyperstack.models.discount_fields.DiscountFields(
- discount_status = '',
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- org_id = 56,
- org_name = '',
- plan_type = '',
- vm_id = 56,
- vm_name = '', )
- ],
- message = '',
- status = True
- )
- else:
- return GetDiscountResponse(
- )
- """
-
- def testGetDiscountResponse(self):
- """Test GetDiscountResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_get_entity_discount_detail_response.py b/test/test_get_entity_discount_detail_response.py
deleted file mode 100644
index 000a97f..0000000
--- a/test/test_get_entity_discount_detail_response.py
+++ /dev/null
@@ -1,80 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.get_entity_discount_detail_response import GetEntityDiscountDetailResponse
-
-class TestGetEntityDiscountDetailResponse(unittest.TestCase):
- """GetEntityDiscountDetailResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> GetEntityDiscountDetailResponse:
- """Test GetEntityDiscountDetailResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `GetEntityDiscountDetailResponse`
- """
- model = GetEntityDiscountDetailResponse()
- if include_optional:
- return GetEntityDiscountDetailResponse(
- message = '',
- organization = [
- hyperstack.models.discount_plan_fields.DiscountPlanFields(
- discount_amount = 1.337,
- discount_code = '',
- discount_percent = 1.337,
- discount_status = '',
- discount_type = '',
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- id = 56,
- resource = '',
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- validity_days = 56,
- vm_id = 56, )
- ],
- status = True,
- virtual_machine = [
- hyperstack.models.discount_plan_fields.DiscountPlanFields(
- discount_amount = 1.337,
- discount_code = '',
- discount_percent = 1.337,
- discount_status = '',
- discount_type = '',
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- id = 56,
- resource = '',
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- validity_days = 56,
- vm_id = 56, )
- ]
- )
- else:
- return GetEntityDiscountDetailResponse(
- )
- """
-
- def testGetEntityDiscountDetailResponse(self):
- """Test GetEntityDiscountDetailResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_create_gpu.py b/test/test_get_instance_logs_response.py
similarity index 64%
rename from test/test_create_gpu.py
rename to test/test_get_instance_logs_response.py
index 4a58db9..e3d63c9 100644
--- a/test/test_create_gpu.py
+++ b/test/test_get_instance_logs_response.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.create_gpu import CreateGPU
+from hyperstack.models.get_instance_logs_response import GetInstanceLogsResponse
-class TestCreateGPU(unittest.TestCase):
- """CreateGPU unit test stubs"""
+class TestGetInstanceLogsResponse(unittest.TestCase):
+ """GetInstanceLogsResponse unit test stubs"""
def setUp(self):
pass
@@ -25,30 +25,25 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> CreateGPU:
- """Test CreateGPU
+ def make_instance(self, include_optional) -> GetInstanceLogsResponse:
+ """Test GetInstanceLogsResponse
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `CreateGPU`
+ # uncomment below to create an instance of `GetInstanceLogsResponse`
"""
- model = CreateGPU()
+ model = GetInstanceLogsResponse()
if include_optional:
- return CreateGPU(
- example_metadata = '{"key": "value"}',
- name = '',
- regions = [
- ''
- ]
+ return GetInstanceLogsResponse(
+ logs = ''
)
else:
- return CreateGPU(
- name = '',
+ return GetInstanceLogsResponse(
)
"""
- def testCreateGPU(self):
- """Test CreateGPU"""
+ def testGetInstanceLogsResponse(self):
+ """Test GetInstanceLogsResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_get_token_payload.py b/test/test_get_token_payload.py
deleted file mode 100644
index 48c9384..0000000
--- a/test/test_get_token_payload.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.get_token_payload import GetTokenPayload
-
-class TestGetTokenPayload(unittest.TestCase):
- """GetTokenPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> GetTokenPayload:
- """Test GetTokenPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `GetTokenPayload`
- """
- model = GetTokenPayload()
- if include_optional:
- return GetTokenPayload(
- callback_code = '',
- session_id = ''
- )
- else:
- return GetTokenPayload(
- callback_code = '',
- session_id = '',
- )
- """
-
- def testGetTokenPayload(self):
- """Test GetTokenPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_get_version_response.py b/test/test_get_version_response.py
deleted file mode 100644
index 02e87f0..0000000
--- a/test/test_get_version_response.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.get_version_response import GetVersionResponse
-
-class TestGetVersionResponse(unittest.TestCase):
- """GetVersionResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> GetVersionResponse:
- """Test GetVersionResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `GetVersionResponse`
- """
- model = GetVersionResponse()
- if include_optional:
- return GetVersionResponse(
- message = '',
- status = True,
- version = ''
- )
- else:
- return GetVersionResponse(
- )
- """
-
- def testGetVersionResponse(self):
- """Test GetVersionResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_gpu.py b/test/test_gpu.py
deleted file mode 100644
index c367390..0000000
--- a/test/test_gpu.py
+++ /dev/null
@@ -1,63 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.gpu import GPU
-
-class TestGPU(unittest.TestCase):
- """GPU unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> GPU:
- """Test GPU
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `GPU`
- """
- model = GPU()
- if include_optional:
- return GPU(
- gpu = hyperstack.models.gpu_fields.GPUFields(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- example_metadata = '',
- id = 56,
- name = '',
- regions = [
- hyperstack.models.gpu_region_fields.GPURegionFields(
- id = 56,
- name = '', )
- ],
- updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
- message = '',
- status = True
- )
- else:
- return GPU(
- )
- """
-
- def testGPU(self):
- """Test GPU"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_gpu_fields.py b/test/test_gpu_fields.py
index 44db569..f73ffe3 100644
--- a/test/test_gpu_fields.py
+++ b/test/test_gpu_fields.py
@@ -40,7 +40,7 @@ def make_instance(self, include_optional) -> GPUFields:
id = 56,
name = '',
regions = [
- hyperstack.models.gpu_region_fields.GPURegionFields(
+ hyperstack.models.gpu_region_fields.GPU_Region_Fields(
id = 56,
name = '', )
],
diff --git a/test/test_gpu_list.py b/test/test_gpu_list.py
index fd75e0b..9402f0b 100644
--- a/test/test_gpu_list.py
+++ b/test/test_gpu_list.py
@@ -36,13 +36,13 @@ def make_instance(self, include_optional) -> GPUList:
if include_optional:
return GPUList(
gpu_list = [
- hyperstack.models.gpu_fields.GPUFields(
+ hyperstack.models.gpu_fields.GPU_Fields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
example_metadata = '',
id = 56,
name = '',
regions = [
- hyperstack.models.gpu_region_fields.GPURegionFields(
+ hyperstack.models.gpu_region_fields.GPU_Region_Fields(
id = 56,
name = '', )
],
diff --git a/test/test_image.py b/test/test_image.py
index 40b74e9..6f42480 100644
--- a/test/test_image.py
+++ b/test/test_image.py
@@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> Image:
model = Image()
if include_optional:
return Image(
- image = hyperstack.models.image_fields.ImageFields(
+ image = hyperstack.models.image_fields.Image_Fields(
description = '',
display_size = '',
id = 56,
diff --git a/test/test_image_api.py b/test/test_image_api.py
index 6bcba37..ece05a5 100644
--- a/test/test_image_api.py
+++ b/test/test_image_api.py
@@ -26,29 +26,29 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
- def test_delete_an_image(self) -> None:
- """Test case for delete_an_image
+ def test_delete_image(self) -> None:
+ """Test case for delete_image
Delete an image
"""
pass
- def test_fetch_name_availability_for_images(self) -> None:
- """Test case for fetch_name_availability_for_images
+ def test_fetch_image_name_availability(self) -> None:
+ """Test case for fetch_image_name_availability
Fetch name availability for Images
"""
pass
- def test_get_private_image_details(self) -> None:
- """Test case for get_private_image_details
+ def test_get_image_details(self) -> None:
+ """Test case for get_image_details
Get Private Image Details
"""
pass
- def test_list_images(self) -> None:
- """Test case for list_images
+ def test_list_images2(self) -> None:
+ """Test case for list_images2
List Images
"""
diff --git a/test/test_image_get_response.py b/test/test_image_get_response.py
index f5fbf67..d3bb2d7 100644
--- a/test/test_image_get_response.py
+++ b/test/test_image_get_response.py
@@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> ImageGetResponse:
if include_optional:
return ImageGetResponse(
images = [
- hyperstack.models.image_fields.ImageFields(
+ hyperstack.models.image_fields.Image_Fields(
description = '',
display_size = '',
id = 56,
diff --git a/test/test_image_logos.py b/test/test_image_logos.py
deleted file mode 100644
index c64d0db..0000000
--- a/test/test_image_logos.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.image_logos import ImageLogos
-
-class TestImageLogos(unittest.TestCase):
- """ImageLogos unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> ImageLogos:
- """Test ImageLogos
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `ImageLogos`
- """
- model = ImageLogos()
- if include_optional:
- return ImageLogos(
- logos = [
- hyperstack.models.logo_get_response.LogoGetResponse(
- id = 56,
- type = '',
- url = '', )
- ],
- message = '',
- status = True
- )
- else:
- return ImageLogos(
- )
- """
-
- def testImageLogos(self):
- """Test ImageLogos"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_images.py b/test/test_images.py
index 883ca79..abbac0a 100644
--- a/test/test_images.py
+++ b/test/test_images.py
@@ -36,9 +36,9 @@ def make_instance(self, include_optional) -> Images:
if include_optional:
return Images(
images = [
- hyperstack.models.image_get_response.ImageGetResponse(
+ hyperstack.models.image_get_response.Image_Get_Response(
images = [
- hyperstack.models.image_fields.ImageFields(
+ hyperstack.models.image_fields.Image_Fields(
description = '',
display_size = '',
id = 56,
diff --git a/test/test_import_keypair_response.py b/test/test_import_keypair_response.py
index 87afb15..ae1eed5 100644
--- a/test/test_import_keypair_response.py
+++ b/test/test_import_keypair_response.py
@@ -35,9 +35,16 @@ def make_instance(self, include_optional) -> ImportKeypairResponse:
model = ImportKeypairResponse()
if include_optional:
return ImportKeypairResponse(
- keypair = hyperstack.models.keypair_fields.KeypairFields(
+ keypair = hyperstack.models.keypair_fields.Keypair_Fields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- environment = '',
+ environment = hyperstack.models.keypair_environment_fields.Keypair_Environment_Fields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ features = hyperstack.models.keypair_environment_features.Keypair_Environment_Features(
+ green_status = 'GREEN',
+ network_optimised = True, ),
+ id = 56,
+ name = '',
+ region = '', ),
fingerprint = '',
id = 56,
name = '',
diff --git a/test/test_infrahub_resource_object_response.py b/test/test_infrahub_resource_object_response.py
deleted file mode 100644
index 59cf8d8..0000000
--- a/test/test_infrahub_resource_object_response.py
+++ /dev/null
@@ -1,76 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.infrahub_resource_object_response import InfrahubResourceObjectResponse
-
-class TestInfrahubResourceObjectResponse(unittest.TestCase):
- """InfrahubResourceObjectResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> InfrahubResourceObjectResponse:
- """Test InfrahubResourceObjectResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `InfrahubResourceObjectResponse`
- """
- model = InfrahubResourceObjectResponse()
- if include_optional:
- return InfrahubResourceObjectResponse(
- actual_host_price = 1.337,
- actual_price = 1.337,
- contract_id = 56,
- host = '',
- host_price = 1.337,
- infrahub_id = 56,
- name = '',
- nexgen_actual_price = 1.337,
- nexgen_price = 1.337,
- price = 1.337,
- resources = [
- hyperstack.models.pricebook_resource_object_response.PricebookResourceObjectResponse(
- actual_price = 1.337,
- amount = 56,
- discounted_rate = 1.337,
- host_original_price = 1.337,
- host_price = 1.337,
- name = '',
- nexgen_original_price = 1.337,
- nexgen_price = 1.337,
- price = 1.337,
- rate = 1.337,
- type = '', )
- ],
- status = '',
- type = ''
- )
- else:
- return InfrahubResourceObjectResponse(
- )
- """
-
- def testInfrahubResourceObjectResponse(self):
- """Test InfrahubResourceObjectResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_insert_discount_plan_fields.py b/test/test_insert_discount_plan_fields.py
deleted file mode 100644
index a42cf56..0000000
--- a/test/test_insert_discount_plan_fields.py
+++ /dev/null
@@ -1,65 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.insert_discount_plan_fields import InsertDiscountPlanFields
-
-class TestInsertDiscountPlanFields(unittest.TestCase):
- """InsertDiscountPlanFields unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> InsertDiscountPlanFields:
- """Test InsertDiscountPlanFields
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `InsertDiscountPlanFields`
- """
- model = InsertDiscountPlanFields()
- if include_optional:
- return InsertDiscountPlanFields(
- customers = [
- hyperstack.models.customer_fields.CustomerFields(
- id = 56,
- plan_type = '', )
- ],
- discount_resources = [
- hyperstack.models.discount_resource_fields.DiscountResourceFields(
- discount_amount = 1.337,
- discount_percent = 1.337,
- discount_type = '',
- resource_id = 56, )
- ],
- discount_status = '',
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return InsertDiscountPlanFields(
- )
- """
-
- def testInsertDiscountPlanFields(self):
- """Test InsertDiscountPlanFields"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_instance.py b/test/test_instance.py
index ba1d3d6..8c69f9d 100644
--- a/test/test_instance.py
+++ b/test/test_instance.py
@@ -35,33 +35,40 @@ def make_instance(self, include_optional) -> Instance:
model = Instance()
if include_optional:
return Instance(
- instance = hyperstack.models.instance_fields.InstanceFields(
+ instance = hyperstack.models.instance_fields.Instance_Fields(
callback_url = '',
contract_id = 56,
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- environment = hyperstack.models.instance_environment_fields.InstanceEnvironmentFields(
- features = hyperstack.models.environment_features.EnvironmentFeatures(
+ environment = hyperstack.models.instance_environment_fields.Instance_Environment_Fields(
+ features = hyperstack.models.environment_features.Environment_Features(
+ green_status = 'GREEN',
network_optimised = True, ),
id = 56,
name = '',
org_id = 56,
region = '', ),
+ features = hyperstack.models.features.features(),
fixed_ip = '',
- flavor = hyperstack.models.instance_flavor_fields.InstanceFlavorFields(
+ flavor = hyperstack.models.instance_flavor_fields.Instance_Flavor_Fields(
cpu = 56,
disk = 56,
ephemeral = 56,
gpu = '',
gpu_count = 56,
id = 56,
+ labels = [
+ hyperstack.models.flavor_label_fields.FlavorLabelFields(
+ id = 56,
+ label = '', )
+ ],
name = '',
ram = 1.337, ),
floating_ip = '',
floating_ip_status = '',
id = 56,
- image = hyperstack.models.instance_image_fields.InstanceImageFields(
+ image = hyperstack.models.instance_image_fields.Instance_Image_Fields(
name = '', ),
- keypair = hyperstack.models.instance_keypair_fields.InstanceKeypairFields(
+ keypair = hyperstack.models.instance_keypair_fields.Instance_Keypair_Fields(
name = '', ),
labels = [
''
@@ -72,8 +79,9 @@ def make_instance(self, include_optional) -> Instance:
port_randomization = True,
port_randomization_status = '',
power_state = '',
+ requires_public_ip = True,
security_rules = [
- hyperstack.models.security_rules_fieldsfor_instance.SecurityRulesFieldsforInstance(
+ hyperstack.models.security_rules_fields_for_instance.Security_Rules_Fields_for_Instance(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
direction = '',
ethertype = '',
@@ -87,11 +95,13 @@ def make_instance(self, include_optional) -> Instance:
status = '',
vm_state = '',
volume_attachments = [
- hyperstack.models.volume_attachment_fields.VolumeAttachmentFields(
+ hyperstack.models.volume_attachment_fields.Volume_Attachment_Fields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
device = '',
+ id = 56,
+ protected = True,
status = '',
- volume = hyperstack.models.volume_fieldsfor_instance.VolumeFieldsforInstance(
+ volume = hyperstack.models.volume_fields_for_instance.Volume_Fields_for_Instance(
bootable = True,
description = '',
id = 56,
diff --git a/test/test_instance_environment_fields.py b/test/test_instance_environment_fields.py
index a30eca3..5556ef2 100644
--- a/test/test_instance_environment_fields.py
+++ b/test/test_instance_environment_fields.py
@@ -35,7 +35,8 @@ def make_instance(self, include_optional) -> InstanceEnvironmentFields:
model = InstanceEnvironmentFields()
if include_optional:
return InstanceEnvironmentFields(
- features = hyperstack.models.environment_features.EnvironmentFeatures(
+ features = hyperstack.models.environment_features.Environment_Features(
+ green_status = 'GREEN',
network_optimised = True, ),
id = 56,
name = '',
diff --git a/test/test_instance_fields.py b/test/test_instance_fields.py
index 37d337f..d8a228e 100644
--- a/test/test_instance_fields.py
+++ b/test/test_instance_fields.py
@@ -38,29 +38,37 @@ def make_instance(self, include_optional) -> InstanceFields:
callback_url = '',
contract_id = 56,
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- environment = hyperstack.models.instance_environment_fields.InstanceEnvironmentFields(
- features = hyperstack.models.environment_features.EnvironmentFeatures(
+ environment = hyperstack.models.instance_environment_fields.Instance_Environment_Fields(
+ features = hyperstack.models.environment_features.Environment_Features(
+ green_status = 'GREEN',
network_optimised = True, ),
id = 56,
name = '',
org_id = 56,
region = '', ),
+ features = hyperstack.models.features.features(),
fixed_ip = '',
- flavor = hyperstack.models.instance_flavor_fields.InstanceFlavorFields(
+ flavor = hyperstack.models.instance_flavor_fields.Instance_Flavor_Fields(
cpu = 56,
disk = 56,
ephemeral = 56,
+ features = hyperstack.models.features.features(),
gpu = '',
gpu_count = 56,
id = 56,
+ labels = [
+ hyperstack.models.flavor_label_fields.FlavorLabelFields(
+ id = 56,
+ label = '', )
+ ],
name = '',
ram = 1.337, ),
floating_ip = '',
floating_ip_status = '',
id = 56,
- image = hyperstack.models.instance_image_fields.InstanceImageFields(
+ image = hyperstack.models.instance_image_fields.Instance_Image_Fields(
name = '', ),
- keypair = hyperstack.models.instance_keypair_fields.InstanceKeypairFields(
+ keypair = hyperstack.models.instance_keypair_fields.Instance_Keypair_Fields(
name = '', ),
labels = [
''
@@ -71,8 +79,9 @@ def make_instance(self, include_optional) -> InstanceFields:
port_randomization = True,
port_randomization_status = '',
power_state = '',
+ requires_public_ip = True,
security_rules = [
- hyperstack.models.security_rules_fieldsfor_instance.SecurityRulesFieldsforInstance(
+ hyperstack.models.security_rules_fields_for_instance.Security_Rules_Fields_for_Instance(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
direction = '',
ethertype = '',
@@ -86,11 +95,13 @@ def make_instance(self, include_optional) -> InstanceFields:
status = '',
vm_state = '',
volume_attachments = [
- hyperstack.models.volume_attachment_fields.VolumeAttachmentFields(
+ hyperstack.models.volume_attachment_fields.Volume_Attachment_Fields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
device = '',
+ id = 56,
+ protected = True,
status = '',
- volume = hyperstack.models.volume_fieldsfor_instance.VolumeFieldsforInstance(
+ volume = hyperstack.models.volume_fields_for_instance.Volume_Fields_for_Instance(
bootable = True,
description = '',
id = 56,
diff --git a/test/test_instance_flavor_fields.py b/test/test_instance_flavor_fields.py
index ba1e4dc..88dcb85 100644
--- a/test/test_instance_flavor_fields.py
+++ b/test/test_instance_flavor_fields.py
@@ -38,9 +38,15 @@ def make_instance(self, include_optional) -> InstanceFlavorFields:
cpu = 56,
disk = 56,
ephemeral = 56,
+ features = hyperstack.models.features.features(),
gpu = '',
gpu_count = 56,
id = 56,
+ labels = [
+ hyperstack.models.flavor_label_fields.FlavorLabelFields(
+ id = 56,
+ label = '', )
+ ],
name = '',
ram = 1.337
)
diff --git a/test/test_instance_resize_payload.py b/test/test_instance_resize_payload.py
index aab3b9c..af994cb 100644
--- a/test/test_instance_resize_payload.py
+++ b/test/test_instance_resize_payload.py
@@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> InstanceResizePayload:
model = InstanceResizePayload()
if include_optional:
return InstanceResizePayload(
- flavor = hyperstack.models.flavor_object_fields.FlavorObjectFields(
+ flavor = hyperstack.models.flavor_object_fields.Flavor_Object_Fields(
cpu = 56,
disk = 56,
gpu = '',
diff --git a/test/test_instances.py b/test/test_instances.py
index ffd33d6..f5f1424 100644
--- a/test/test_instances.py
+++ b/test/test_instances.py
@@ -37,33 +37,40 @@ def make_instance(self, include_optional) -> Instances:
return Instances(
count = 56,
instances = [
- hyperstack.models.instance_fields.InstanceFields(
+ hyperstack.models.instance_fields.Instance_Fields(
callback_url = '',
contract_id = 56,
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- environment = hyperstack.models.instance_environment_fields.InstanceEnvironmentFields(
- features = hyperstack.models.environment_features.EnvironmentFeatures(
+ environment = hyperstack.models.instance_environment_fields.Instance_Environment_Fields(
+ features = hyperstack.models.environment_features.Environment_Features(
+ green_status = 'GREEN',
network_optimised = True, ),
id = 56,
name = '',
org_id = 56,
region = '', ),
+ features = hyperstack.models.features.features(),
fixed_ip = '',
- flavor = hyperstack.models.instance_flavor_fields.InstanceFlavorFields(
+ flavor = hyperstack.models.instance_flavor_fields.Instance_Flavor_Fields(
cpu = 56,
disk = 56,
ephemeral = 56,
gpu = '',
gpu_count = 56,
id = 56,
+ labels = [
+ hyperstack.models.flavor_label_fields.FlavorLabelFields(
+ id = 56,
+ label = '', )
+ ],
name = '',
ram = 1.337, ),
floating_ip = '',
floating_ip_status = '',
id = 56,
- image = hyperstack.models.instance_image_fields.InstanceImageFields(
+ image = hyperstack.models.instance_image_fields.Instance_Image_Fields(
name = '', ),
- keypair = hyperstack.models.instance_keypair_fields.InstanceKeypairFields(
+ keypair = hyperstack.models.instance_keypair_fields.Instance_Keypair_Fields(
name = '', ),
labels = [
''
@@ -74,8 +81,9 @@ def make_instance(self, include_optional) -> Instances:
port_randomization = True,
port_randomization_status = '',
power_state = '',
+ requires_public_ip = True,
security_rules = [
- hyperstack.models.security_rules_fieldsfor_instance.SecurityRulesFieldsforInstance(
+ hyperstack.models.security_rules_fields_for_instance.Security_Rules_Fields_for_Instance(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
direction = '',
ethertype = '',
@@ -89,11 +97,13 @@ def make_instance(self, include_optional) -> Instances:
status = '',
vm_state = '',
volume_attachments = [
- hyperstack.models.volume_attachment_fields.VolumeAttachmentFields(
+ hyperstack.models.volume_attachment_fields.Volume_Attachment_Fields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
device = '',
+ id = 56,
+ protected = True,
status = '',
- volume = hyperstack.models.volume_fieldsfor_instance.VolumeFieldsforInstance(
+ volume = hyperstack.models.volume_fields_for_instance.Volume_Fields_for_Instance(
bootable = True,
description = '',
id = 56,
diff --git a/test/test_internal_instance_fields.py b/test/test_internal_instance_fields.py
deleted file mode 100644
index 9cc0907..0000000
--- a/test/test_internal_instance_fields.py
+++ /dev/null
@@ -1,115 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.internal_instance_fields import InternalInstanceFields
-
-class TestInternalInstanceFields(unittest.TestCase):
- """InternalInstanceFields unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> InternalInstanceFields:
- """Test InternalInstanceFields
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `InternalInstanceFields`
- """
- model = InternalInstanceFields()
- if include_optional:
- return InternalInstanceFields(
- boot_source = '',
- callback_url = '',
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- environment = hyperstack.models.internal_environment_fields.InternalEnvironmentFields(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- id = 56,
- name = '',
- region = '', ),
- fixed_ip = '',
- flavor = hyperstack.models.internal_instance_flavor_fields.InternalInstanceFlavorFields(
- cpu = 56,
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- disk = 56,
- gpu = '',
- gpu_count = 56,
- id = 56,
- name = '',
- ram = 56,
- region_name = '', ),
- floating_ip = '',
- floating_ip_status = '',
- id = 56,
- image = hyperstack.models.internal_instance_image_fields.InternalInstanceImageFields(
- id = 56,
- name = '',
- region_name = '',
- type = '',
- version = '', ),
- keypair = hyperstack.models.internal_instance_keypair_fields.InternalInstanceKeypairFields(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- environment = '',
- fingerprint = '',
- id = 56,
- name = '',
- public_key = '', ),
- name = '',
- openstack_id = '',
- power_state = '',
- security_rules = [
- hyperstack.models.internal_security_rules_fields_for_instance.InternalSecurityRulesFieldsForInstance(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- direction = '',
- ethertype = '',
- id = 56,
- port_range_max = 56,
- port_range_min = 56,
- protocol = '',
- remote_ip_prefix = '',
- status = '', )
- ],
- status = '',
- user_data = '',
- vm_state = '',
- volume_attachments = [
- hyperstack.models.internal_volume_attachment_fields.InternalVolumeAttachmentFields(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- device = '',
- status = '',
- volume = hyperstack.models.internal_volume_fields.InternalVolumeFields(
- description = '',
- id = 56,
- name = '',
- size = 56,
- volume_type = '', ), )
- ]
- )
- else:
- return InternalInstanceFields(
- )
- """
-
- def testInternalInstanceFields(self):
- """Test InternalInstanceFields"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_internal_instance_image_fields.py b/test/test_internal_instance_image_fields.py
deleted file mode 100644
index 00ed221..0000000
--- a/test/test_internal_instance_image_fields.py
+++ /dev/null
@@ -1,55 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.internal_instance_image_fields import InternalInstanceImageFields
-
-class TestInternalInstanceImageFields(unittest.TestCase):
- """InternalInstanceImageFields unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> InternalInstanceImageFields:
- """Test InternalInstanceImageFields
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `InternalInstanceImageFields`
- """
- model = InternalInstanceImageFields()
- if include_optional:
- return InternalInstanceImageFields(
- id = 56,
- name = '',
- region_name = '',
- type = '',
- version = ''
- )
- else:
- return InternalInstanceImageFields(
- )
- """
-
- def testInternalInstanceImageFields(self):
- """Test InternalInstanceImageFields"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_internal_instances_response.py b/test/test_internal_instances_response.py
deleted file mode 100644
index 294d8f8..0000000
--- a/test/test_internal_instances_response.py
+++ /dev/null
@@ -1,119 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.internal_instances_response import InternalInstancesResponse
-
-class TestInternalInstancesResponse(unittest.TestCase):
- """InternalInstancesResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> InternalInstancesResponse:
- """Test InternalInstancesResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `InternalInstancesResponse`
- """
- model = InternalInstancesResponse()
- if include_optional:
- return InternalInstancesResponse(
- instances = [
- hyperstack.models.internal_instance_fields.InternalInstanceFields(
- boot_source = '',
- callback_url = '',
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- environment = hyperstack.models.internal_environment_fields.InternalEnvironmentFields(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- id = 56,
- name = '',
- region = '', ),
- fixed_ip = '',
- flavor = hyperstack.models.internal_instance_flavor_fields.InternalInstanceFlavorFields(
- cpu = 56,
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- disk = 56,
- gpu = '',
- gpu_count = 56,
- id = 56,
- name = '',
- ram = 56,
- region_name = '', ),
- floating_ip = '',
- floating_ip_status = '',
- id = 56,
- image = hyperstack.models.internal_instance_image_fields.InternalInstanceImageFields(
- id = 56,
- name = '',
- region_name = '',
- type = '',
- version = '', ),
- keypair = hyperstack.models.internal_instance_keypair_fields.InternalInstanceKeypairFields(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- fingerprint = '',
- id = 56,
- name = '',
- public_key = '', ),
- name = '',
- openstack_id = '',
- power_state = '',
- security_rules = [
- hyperstack.models.internal_security_rules_fields_for_instance.InternalSecurityRulesFieldsForInstance(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- direction = '',
- ethertype = '',
- id = 56,
- port_range_max = 56,
- port_range_min = 56,
- protocol = '',
- remote_ip_prefix = '',
- status = '', )
- ],
- status = '',
- user_data = '',
- vm_state = '',
- volume_attachments = [
- hyperstack.models.internal_volume_attachment_fields.InternalVolumeAttachmentFields(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- device = '',
- status = '',
- volume = hyperstack.models.internal_volume_fields.InternalVolumeFields(
- description = '',
- id = 56,
- name = '',
- size = 56,
- volume_type = '', ), )
- ], )
- ],
- message = '',
- status = True
- )
- else:
- return InternalInstancesResponse(
- )
- """
-
- def testInternalInstancesResponse(self):
- """Test InternalInstancesResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_internal_security_rules_fields_for_instance.py b/test/test_internal_security_rules_fields_for_instance.py
deleted file mode 100644
index 8015887..0000000
--- a/test/test_internal_security_rules_fields_for_instance.py
+++ /dev/null
@@ -1,59 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.internal_security_rules_fields_for_instance import InternalSecurityRulesFieldsForInstance
-
-class TestInternalSecurityRulesFieldsForInstance(unittest.TestCase):
- """InternalSecurityRulesFieldsForInstance unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> InternalSecurityRulesFieldsForInstance:
- """Test InternalSecurityRulesFieldsForInstance
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `InternalSecurityRulesFieldsForInstance`
- """
- model = InternalSecurityRulesFieldsForInstance()
- if include_optional:
- return InternalSecurityRulesFieldsForInstance(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- direction = '',
- ethertype = '',
- id = 56,
- port_range_max = 56,
- port_range_min = 56,
- protocol = '',
- remote_ip_prefix = '',
- status = ''
- )
- else:
- return InternalSecurityRulesFieldsForInstance(
- )
- """
-
- def testInternalSecurityRulesFieldsForInstance(self):
- """Test InternalSecurityRulesFieldsForInstance"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_internal_volume_attachment_fields.py b/test/test_internal_volume_attachment_fields.py
deleted file mode 100644
index 07ce795..0000000
--- a/test/test_internal_volume_attachment_fields.py
+++ /dev/null
@@ -1,59 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.internal_volume_attachment_fields import InternalVolumeAttachmentFields
-
-class TestInternalVolumeAttachmentFields(unittest.TestCase):
- """InternalVolumeAttachmentFields unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> InternalVolumeAttachmentFields:
- """Test InternalVolumeAttachmentFields
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `InternalVolumeAttachmentFields`
- """
- model = InternalVolumeAttachmentFields()
- if include_optional:
- return InternalVolumeAttachmentFields(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- device = '',
- status = '',
- volume = hyperstack.models.internal_volume_fields.InternalVolumeFields(
- description = '',
- id = 56,
- name = '',
- size = 56,
- volume_type = '', )
- )
- else:
- return InternalVolumeAttachmentFields(
- )
- """
-
- def testInternalVolumeAttachmentFields(self):
- """Test InternalVolumeAttachmentFields"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_internal_volume_fields.py b/test/test_internal_volume_fields.py
deleted file mode 100644
index a640ba7..0000000
--- a/test/test_internal_volume_fields.py
+++ /dev/null
@@ -1,55 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.internal_volume_fields import InternalVolumeFields
-
-class TestInternalVolumeFields(unittest.TestCase):
- """InternalVolumeFields unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> InternalVolumeFields:
- """Test InternalVolumeFields
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `InternalVolumeFields`
- """
- model = InternalVolumeFields()
- if include_optional:
- return InternalVolumeFields(
- description = '',
- id = 56,
- name = '',
- size = 56,
- volume_type = ''
- )
- else:
- return InternalVolumeFields(
- )
- """
-
- def testInternalVolumeFields(self):
- """Test InternalVolumeFields"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_internal_volumes_response.py b/test/test_internal_volumes_response.py
deleted file mode 100644
index d5488b1..0000000
--- a/test/test_internal_volumes_response.py
+++ /dev/null
@@ -1,60 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.internal_volumes_response import InternalVolumesResponse
-
-class TestInternalVolumesResponse(unittest.TestCase):
- """InternalVolumesResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> InternalVolumesResponse:
- """Test InternalVolumesResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `InternalVolumesResponse`
- """
- model = InternalVolumesResponse()
- if include_optional:
- return InternalVolumesResponse(
- message = '',
- status = True,
- volumes = [
- hyperstack.models.internal_volume_fields.InternalVolumeFields(
- description = '',
- id = 56,
- name = '',
- size = 56,
- volume_type = '', )
- ]
- )
- else:
- return InternalVolumesResponse(
- )
- """
-
- def testInternalVolumesResponse(self):
- """Test InternalVolumesResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_invite_api.py b/test/test_invite_api.py
index af53082..cd3820a 100644
--- a/test/test_invite_api.py
+++ b/test/test_invite_api.py
@@ -26,10 +26,17 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
+ def test_accept_invite(self) -> None:
+ """Test case for accept_invite
+
+ Accept Invite
+ """
+ pass
+
def test_delete_invite(self) -> None:
"""Test case for delete_invite
- Delete Invite
+ Accept Invite
"""
pass
diff --git a/test/test_keypair_environment_features.py b/test/test_keypair_environment_features.py
new file mode 100644
index 0000000..fcb2f8a
--- /dev/null
+++ b/test/test_keypair_environment_features.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.keypair_environment_features import KeypairEnvironmentFeatures
+
+class TestKeypairEnvironmentFeatures(unittest.TestCase):
+ """KeypairEnvironmentFeatures unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> KeypairEnvironmentFeatures:
+ """Test KeypairEnvironmentFeatures
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `KeypairEnvironmentFeatures`
+ """
+ model = KeypairEnvironmentFeatures()
+ if include_optional:
+ return KeypairEnvironmentFeatures(
+ green_status = 'GREEN',
+ network_optimised = True
+ )
+ else:
+ return KeypairEnvironmentFeatures(
+ )
+ """
+
+ def testKeypairEnvironmentFeatures(self):
+ """Test KeypairEnvironmentFeatures"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_internal_instance_keypair_fields.py b/test/test_keypair_environment_fields.py
similarity index 60%
rename from test/test_internal_instance_keypair_fields.py
rename to test/test_keypair_environment_fields.py
index ad3801e..bed4e8f 100644
--- a/test/test_internal_instance_keypair_fields.py
+++ b/test/test_keypair_environment_fields.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.internal_instance_keypair_fields import InternalInstanceKeypairFields
+from hyperstack.models.keypair_environment_fields import KeypairEnvironmentFields
-class TestInternalInstanceKeypairFields(unittest.TestCase):
- """InternalInstanceKeypairFields unit test stubs"""
+class TestKeypairEnvironmentFields(unittest.TestCase):
+ """KeypairEnvironmentFields unit test stubs"""
def setUp(self):
pass
@@ -25,30 +25,31 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> InternalInstanceKeypairFields:
- """Test InternalInstanceKeypairFields
+ def make_instance(self, include_optional) -> KeypairEnvironmentFields:
+ """Test KeypairEnvironmentFields
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `InternalInstanceKeypairFields`
+ # uncomment below to create an instance of `KeypairEnvironmentFields`
"""
- model = InternalInstanceKeypairFields()
+ model = KeypairEnvironmentFields()
if include_optional:
- return InternalInstanceKeypairFields(
+ return KeypairEnvironmentFields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- environment = '',
- fingerprint = '',
+ features = hyperstack.models.keypair_environment_features.Keypair_Environment_Features(
+ green_status = 'GREEN',
+ network_optimised = True, ),
id = 56,
name = '',
- public_key = ''
+ region = ''
)
else:
- return InternalInstanceKeypairFields(
+ return KeypairEnvironmentFields(
)
"""
- def testInternalInstanceKeypairFields(self):
- """Test InternalInstanceKeypairFields"""
+ def testKeypairEnvironmentFields(self):
+ """Test KeypairEnvironmentFields"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_keypair_fields.py b/test/test_keypair_fields.py
index 1081580..d605b6a 100644
--- a/test/test_keypair_fields.py
+++ b/test/test_keypair_fields.py
@@ -36,7 +36,14 @@ def make_instance(self, include_optional) -> KeypairFields:
if include_optional:
return KeypairFields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- environment = '',
+ environment = hyperstack.models.keypair_environment_fields.Keypair_Environment_Fields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ features = hyperstack.models.keypair_environment_features.Keypair_Environment_Features(
+ green_status = 'GREEN',
+ network_optimised = True, ),
+ id = 56,
+ name = '',
+ region = '', ),
fingerprint = '',
id = 56,
name = '',
diff --git a/test/test_keypairs.py b/test/test_keypairs.py
index 67ef71b..66d4a07 100644
--- a/test/test_keypairs.py
+++ b/test/test_keypairs.py
@@ -37,9 +37,16 @@ def make_instance(self, include_optional) -> Keypairs:
return Keypairs(
count = 56,
keypairs = [
- hyperstack.models.keypair_fields.KeypairFields(
+ hyperstack.models.keypair_fields.Keypair_Fields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- environment = '',
+ environment = hyperstack.models.keypair_environment_fields.Keypair_Environment_Fields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ features = hyperstack.models.keypair_environment_features.Keypair_Environment_Features(
+ green_status = 'GREEN',
+ network_optimised = True, ),
+ id = 56,
+ name = '',
+ region = '', ),
fingerprint = '',
id = 56,
name = '',
diff --git a/test/test_lastdaycostfields.py b/test/test_last_day_cost_fields.py
similarity index 71%
rename from test/test_lastdaycostfields.py
rename to test/test_last_day_cost_fields.py
index 190ff2e..756f8d6 100644
--- a/test/test_lastdaycostfields.py
+++ b/test/test_last_day_cost_fields.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.lastdaycostfields import Lastdaycostfields
+from hyperstack.models.last_day_cost_fields import LastDayCostFields
-class TestLastdaycostfields(unittest.TestCase):
- """Lastdaycostfields unit test stubs"""
+class TestLastDayCostFields(unittest.TestCase):
+ """LastDayCostFields unit test stubs"""
def setUp(self):
pass
@@ -25,28 +25,28 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> Lastdaycostfields:
- """Test Lastdaycostfields
+ def make_instance(self, include_optional) -> LastDayCostFields:
+ """Test LastDayCostFields
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `Lastdaycostfields`
+ # uncomment below to create an instance of `LastDayCostFields`
"""
- model = Lastdaycostfields()
+ model = LastDayCostFields()
if include_optional:
- return Lastdaycostfields(
+ return LastDayCostFields(
clusters_cost = 1.337,
instances_cost = 1.337,
total_cost = 1.337,
volumes_cost = 1.337
)
else:
- return Lastdaycostfields(
+ return LastDayCostFields(
)
"""
- def testLastdaycostfields(self):
- """Test Lastdaycostfields"""
+ def testLastDayCostFields(self):
+ """Test LastDayCostFields"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_lastdaycostresponse.py b/test/test_last_day_cost_response.py
similarity index 69%
rename from test/test_lastdaycostresponse.py
rename to test/test_last_day_cost_response.py
index 7a78114..959437e 100644
--- a/test/test_lastdaycostresponse.py
+++ b/test/test_last_day_cost_response.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.lastdaycostresponse import Lastdaycostresponse
+from hyperstack.models.last_day_cost_response import LastDayCostResponse
-class TestLastdaycostresponse(unittest.TestCase):
- """Lastdaycostresponse unit test stubs"""
+class TestLastDayCostResponse(unittest.TestCase):
+ """LastDayCostResponse unit test stubs"""
def setUp(self):
pass
@@ -25,17 +25,17 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> Lastdaycostresponse:
- """Test Lastdaycostresponse
+ def make_instance(self, include_optional) -> LastDayCostResponse:
+ """Test LastDayCostResponse
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `Lastdaycostresponse`
+ # uncomment below to create an instance of `LastDayCostResponse`
"""
- model = Lastdaycostresponse()
+ model = LastDayCostResponse()
if include_optional:
- return Lastdaycostresponse(
- data = hyperstack.models.lastdaycostfields.Lastdaycostfields(
+ return LastDayCostResponse(
+ data = hyperstack.models.last_day_cost_fields.Last_day_cost_fields(
clusters_cost = 1.337,
instances_cost = 1.337,
total_cost = 1.337,
@@ -44,12 +44,12 @@ def make_instance(self, include_optional) -> Lastdaycostresponse:
status = True
)
else:
- return Lastdaycostresponse(
+ return LastDayCostResponse(
)
"""
- def testLastdaycostresponse(self):
- """Test Lastdaycostresponse"""
+ def testLastDayCostResponse(self):
+ """Test LastDayCostResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_logo_get_response.py b/test/test_logo_get_response.py
deleted file mode 100644
index 218b870..0000000
--- a/test/test_logo_get_response.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.logo_get_response import LogoGetResponse
-
-class TestLogoGetResponse(unittest.TestCase):
- """LogoGetResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> LogoGetResponse:
- """Test LogoGetResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `LogoGetResponse`
- """
- model = LogoGetResponse()
- if include_optional:
- return LogoGetResponse(
- id = 56,
- type = '',
- url = ''
- )
- else:
- return LogoGetResponse(
- )
- """
-
- def testLogoGetResponse(self):
- """Test LogoGetResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_data.py b/test/test_logos.py
similarity index 69%
rename from test/test_data.py
rename to test/test_logos.py
index e0eaad0..529143d 100644
--- a/test/test_data.py
+++ b/test/test_logos.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.data import Data
+from hyperstack.models.logos import Logos
-class TestData(unittest.TestCase):
- """Data unit test stubs"""
+class TestLogos(unittest.TestCase):
+ """Logos unit test stubs"""
def setUp(self):
pass
@@ -25,27 +25,28 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> Data:
- """Test Data
+ def make_instance(self, include_optional) -> Logos:
+ """Test Logos
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `Data`
+ # uncomment below to create an instance of `Logos`
"""
- model = Data()
+ model = Logos()
if include_optional:
- return Data(
- organization_id = 56,
- resource_id = 56,
- resource_type = ''
+ return Logos(
+ dark = '',
+ email = '',
+ favicon = '',
+ light = ''
)
else:
- return Data(
+ return Logos(
)
"""
- def testData(self):
- """Test Data"""
+ def testLogos(self):
+ """Test Logos"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_flavor_vms_response.py b/test/test_master_flavors_response.py
similarity index 51%
rename from test/test_flavor_vms_response.py
rename to test/test_master_flavors_response.py
index cfa7dea..5ca541e 100644
--- a/test/test_flavor_vms_response.py
+++ b/test/test_master_flavors_response.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.flavor_vms_response import FlavorVMsResponse
+from hyperstack.models.master_flavors_response import MasterFlavorsResponse
-class TestFlavorVMsResponse(unittest.TestCase):
- """FlavorVMsResponse unit test stubs"""
+class TestMasterFlavorsResponse(unittest.TestCase):
+ """MasterFlavorsResponse unit test stubs"""
def setUp(self):
pass
@@ -25,36 +25,43 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> FlavorVMsResponse:
- """Test FlavorVMsResponse
+ def make_instance(self, include_optional) -> MasterFlavorsResponse:
+ """Test MasterFlavorsResponse
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `FlavorVMsResponse`
+ # uncomment below to create an instance of `MasterFlavorsResponse`
"""
- model = FlavorVMsResponse()
+ model = MasterFlavorsResponse()
if include_optional:
- return FlavorVMsResponse(
- flavor_vms = [
- hyperstack.models.flavor_vm_fields.FlavorVMFields(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- host = '',
+ return MasterFlavorsResponse(
+ flavors = [
+ hyperstack.models.cluster_flavor_fields.Cluster_Flavor_Fields(
+ cpu = 56,
+ disk = 56,
+ ephemeral = 56,
+ features = hyperstack.models.features.features(),
+ gpu = '',
+ gpu_count = 56,
id = 56,
+ labels = [
+ hyperstack.models.lable_resonse.LableResonse(
+ id = 56,
+ label = '', )
+ ],
name = '',
- openstack_id = '',
- org_id = 56,
- status = '', )
+ ram = 1.337, )
],
message = '',
status = True
)
else:
- return FlavorVMsResponse(
+ return MasterFlavorsResponse(
)
"""
- def testFlavorVMsResponse(self):
- """Test FlavorVMsResponse"""
+ def testMasterFlavorsResponse(self):
+ """Test MasterFlavorsResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_mfa_status_fields.py b/test/test_mfa_status_fields.py
new file mode 100644
index 0000000..5facf9a
--- /dev/null
+++ b/test/test_mfa_status_fields.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.mfa_status_fields import MFAStatusFields
+
+class TestMFAStatusFields(unittest.TestCase):
+ """MFAStatusFields unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> MFAStatusFields:
+ """Test MFAStatusFields
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `MFAStatusFields`
+ """
+ model = MFAStatusFields()
+ if include_optional:
+ return MFAStatusFields(
+ mfa_enabled = True
+ )
+ else:
+ return MFAStatusFields(
+ mfa_enabled = True,
+ )
+ """
+
+ def testMFAStatusFields(self):
+ """Test MFAStatusFields"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_success_response_model.py b/test/test_mfa_status_response.py
similarity index 65%
rename from test/test_success_response_model.py
rename to test/test_mfa_status_response.py
index 21e2040..0e6eb7e 100644
--- a/test/test_success_response_model.py
+++ b/test/test_mfa_status_response.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.success_response_model import SuccessResponseModel
+from hyperstack.models.mfa_status_response import MFAStatusResponse
-class TestSuccessResponseModel(unittest.TestCase):
- """SuccessResponseModel unit test stubs"""
+class TestMFAStatusResponse(unittest.TestCase):
+ """MFAStatusResponse unit test stubs"""
def setUp(self):
pass
@@ -25,26 +25,28 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> SuccessResponseModel:
- """Test SuccessResponseModel
+ def make_instance(self, include_optional) -> MFAStatusResponse:
+ """Test MFAStatusResponse
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `SuccessResponseModel`
+ # uncomment below to create an instance of `MFAStatusResponse`
"""
- model = SuccessResponseModel()
+ model = MFAStatusResponse()
if include_optional:
- return SuccessResponseModel(
+ return MFAStatusResponse(
message = '',
+ mfa = hyperstack.models.mfa_status_fields.MFAStatusFields(
+ mfa_enabled = True, ),
status = True
)
else:
- return SuccessResponseModel(
+ return MFAStatusResponse(
)
"""
- def testSuccessResponseModel(self):
- """Test SuccessResponseModel"""
+ def testMFAStatusResponse(self):
+ """Test MFAStatusResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_model_evaluation_billing_history_details_response_schema.py b/test/test_model_evaluation_billing_history_details_response_schema.py
new file mode 100644
index 0000000..94fbd1f
--- /dev/null
+++ b/test/test_model_evaluation_billing_history_details_response_schema.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.model_evaluation_billing_history_details_response_schema import ModelEvaluationBillingHistoryDetailsResponseSchema
+
+class TestModelEvaluationBillingHistoryDetailsResponseSchema(unittest.TestCase):
+ """ModelEvaluationBillingHistoryDetailsResponseSchema unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ModelEvaluationBillingHistoryDetailsResponseSchema:
+ """Test ModelEvaluationBillingHistoryDetailsResponseSchema
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ModelEvaluationBillingHistoryDetailsResponseSchema`
+ """
+ model = ModelEvaluationBillingHistoryDetailsResponseSchema()
+ if include_optional:
+ return ModelEvaluationBillingHistoryDetailsResponseSchema(
+ billing_history_model_evalutation_details = hyperstack.models.billing_history_model_evalutation_details.billing_history_model_evalutation_details(
+ billing_history = [
+ hyperstack.models.billing_history.billing_history(
+ attributes = hyperstack.models.attributes.attributes(
+ base_model = '',
+ base_model_display_name = '',
+ infrahub_id = 56,
+ lora_adapter = '',
+ resource_name = '',
+ status = '', ),
+ metrics = hyperstack.models.metrics.metrics(), )
+ ],
+ org_id = 56,
+ pagination = hyperstack.models.pagination.pagination(
+ page = 56,
+ pages = 56,
+ per_page = 56, ),
+ total_count = 56, ),
+ message = '',
+ status = True
+ )
+ else:
+ return ModelEvaluationBillingHistoryDetailsResponseSchema(
+ )
+ """
+
+ def testModelEvaluationBillingHistoryDetailsResponseSchema(self):
+ """Test ModelEvaluationBillingHistoryDetailsResponseSchema"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_new_model_response.py b/test/test_new_model_response.py
index f64c0f5..7b676dc 100644
--- a/test/test_new_model_response.py
+++ b/test/test_new_model_response.py
@@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> NewModelResponse:
if include_optional:
return NewModelResponse(
available = '',
- configurations = hyperstack.models.new_configurations_response.NewConfigurationsResponse(
+ configurations = hyperstack.models.new_configurations_response.New_Configurations_Response(
10x = 56,
1x = 56,
2x = 56,
diff --git a/test/test_new_stock_response.py b/test/test_new_stock_response.py
index 48e67e4..6d2d8ca 100644
--- a/test/test_new_stock_response.py
+++ b/test/test_new_stock_response.py
@@ -36,9 +36,9 @@ def make_instance(self, include_optional) -> NewStockResponse:
if include_optional:
return NewStockResponse(
models = [
- hyperstack.models.new_model_response.NewModelResponse(
+ hyperstack.models.new_model_response.New_Model_Response(
available = '',
- configurations = hyperstack.models.new_configurations_response.NewConfigurationsResponse(
+ configurations = hyperstack.models.new_configurations_response.New_Configurations_Response(
10x = 56,
1x = 56,
2x = 56,
diff --git a/test/test_new_stock_retrive_response.py b/test/test_new_stock_retrive_response.py
index 1a68ee9..e829400 100644
--- a/test/test_new_stock_retrive_response.py
+++ b/test/test_new_stock_retrive_response.py
@@ -36,11 +36,11 @@ def make_instance(self, include_optional) -> NewStockRetriveResponse:
if include_optional:
return NewStockRetriveResponse(
stocks = [
- hyperstack.models.new_stock_response.NewStockResponse(
+ hyperstack.models.new_stock_response.New_Stock_Response(
models = [
- hyperstack.models.new_model_response.NewModelResponse(
+ hyperstack.models.new_model_response.New_Model_Response(
available = '',
- configurations = hyperstack.models.new_configurations_response.NewConfigurationsResponse(
+ configurations = hyperstack.models.new_configurations_response.New_Configurations_Response(
10x = 56,
1x = 56,
2x = 56,
diff --git a/test/test_new_stock_update_response_model.py b/test/test_new_stock_update_response_model.py
deleted file mode 100644
index e17ce8f..0000000
--- a/test/test_new_stock_update_response_model.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.new_stock_update_response_model import NewStockUpdateResponseModel
-
-class TestNewStockUpdateResponseModel(unittest.TestCase):
- """NewStockUpdateResponseModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> NewStockUpdateResponseModel:
- """Test NewStockUpdateResponseModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `NewStockUpdateResponseModel`
- """
- model = NewStockUpdateResponseModel()
- if include_optional:
- return NewStockUpdateResponseModel(
- message = '',
- status = True
- )
- else:
- return NewStockUpdateResponseModel(
- )
- """
-
- def testNewStockUpdateResponseModel(self):
- """Test NewStockUpdateResponseModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_node_model.py b/test/test_node_model.py
deleted file mode 100644
index 707bc16..0000000
--- a/test/test_node_model.py
+++ /dev/null
@@ -1,73 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.node_model import NodeModel
-
-class TestNodeModel(unittest.TestCase):
- """NodeModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> NodeModel:
- """Test NodeModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `NodeModel`
- """
- model = NodeModel()
- if include_optional:
- return NodeModel(
- flavors = [
- ''
- ],
- nexgen_name = '',
- openstack_id = '',
- openstack_name = '',
- organizations = [
- 56
- ],
- projects = [
- ''
- ],
- provision_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- status = '',
- stocks = [
- hyperstack.models.node_stocks_payload.NodeStocksPayload(
- in_use = 56,
- name = '',
- total = 56,
- type = '', )
- ],
- sunset_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return NodeModel(
- openstack_id = '',
- )
- """
-
- def testNodeModel(self):
- """Test NodeModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_node_payload_model.py b/test/test_node_payload_model.py
deleted file mode 100644
index 307acf8..0000000
--- a/test/test_node_payload_model.py
+++ /dev/null
@@ -1,79 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.node_payload_model import NodePayloadModel
-
-class TestNodePayloadModel(unittest.TestCase):
- """NodePayloadModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> NodePayloadModel:
- """Test NodePayloadModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `NodePayloadModel`
- """
- model = NodePayloadModel()
- if include_optional:
- return NodePayloadModel(
- nodes = [
- hyperstack.models.node_power_usage_model.NodePowerUsageModel(
- flavors = [
- ''
- ],
- nexgen_name = '',
- openstack_id = '',
- openstack_name = '',
- organizations = [
- 56
- ],
- power_usages = hyperstack.models.power_usage_model.PowerUsageModel(
- unit = '',
- value = 1.337, ),
- projects = [
- ''
- ],
- provision_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- status = '',
- stocks = [
- hyperstack.models.node_stocks_payload.NodeStocksPayload(
- in_use = 56,
- name = '',
- total = 56,
- type = '', )
- ],
- sunset_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
- ],
- region = ''
- )
- else:
- return NodePayloadModel(
- )
- """
-
- def testNodePayloadModel(self):
- """Test NodePayloadModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_node_power_usage_model.py b/test/test_node_power_usage_model.py
deleted file mode 100644
index 4d44207..0000000
--- a/test/test_node_power_usage_model.py
+++ /dev/null
@@ -1,76 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.node_power_usage_model import NodePowerUsageModel
-
-class TestNodePowerUsageModel(unittest.TestCase):
- """NodePowerUsageModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> NodePowerUsageModel:
- """Test NodePowerUsageModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `NodePowerUsageModel`
- """
- model = NodePowerUsageModel()
- if include_optional:
- return NodePowerUsageModel(
- flavors = [
- ''
- ],
- nexgen_name = '',
- openstack_id = '',
- openstack_name = '',
- organizations = [
- 56
- ],
- power_usages = hyperstack.models.power_usage_model.PowerUsageModel(
- unit = '',
- value = 1.337, ),
- projects = [
- ''
- ],
- provision_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- status = '',
- stocks = [
- hyperstack.models.node_stocks_payload.NodeStocksPayload(
- in_use = 56,
- name = '',
- total = 56,
- type = '', )
- ],
- sunset_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return NodePowerUsageModel(
- openstack_id = '',
- )
- """
-
- def testNodePowerUsageModel(self):
- """Test NodePowerUsageModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_node_response_model.py b/test/test_node_response_model.py
deleted file mode 100644
index 7f9ea3f..0000000
--- a/test/test_node_response_model.py
+++ /dev/null
@@ -1,76 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.node_response_model import NodeResponseModel
-
-class TestNodeResponseModel(unittest.TestCase):
- """NodeResponseModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> NodeResponseModel:
- """Test NodeResponseModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `NodeResponseModel`
- """
- model = NodeResponseModel()
- if include_optional:
- return NodeResponseModel(
- nodes = [
- hyperstack.models.node_model.NodeModel(
- flavors = [
- ''
- ],
- nexgen_name = '',
- openstack_id = '',
- openstack_name = '',
- organizations = [
- 56
- ],
- projects = [
- ''
- ],
- provision_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- status = '',
- stocks = [
- hyperstack.models.node_stocks_payload.NodeStocksPayload(
- in_use = 56,
- name = '',
- total = 56,
- type = '', )
- ],
- sunset_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
- ],
- region = ''
- )
- else:
- return NodeResponseModel(
- )
- """
-
- def testNodeResponseModel(self):
- """Test NodeResponseModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_node_stock_payload_model.py b/test/test_node_stock_payload_model.py
deleted file mode 100644
index 306a4d1..0000000
--- a/test/test_node_stock_payload_model.py
+++ /dev/null
@@ -1,82 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.node_stock_payload_model import NodeStockPayloadModel
-
-class TestNodeStockPayloadModel(unittest.TestCase):
- """NodeStockPayloadModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> NodeStockPayloadModel:
- """Test NodeStockPayloadModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `NodeStockPayloadModel`
- """
- model = NodeStockPayloadModel()
- if include_optional:
- return NodeStockPayloadModel(
- stocks = [
- hyperstack.models.node_payload_model.NodePayloadModel(
- nodes = [
- hyperstack.models.node_power_usage_model.NodePowerUsageModel(
- flavors = [
- ''
- ],
- nexgen_name = '',
- openstack_id = '',
- openstack_name = '',
- organizations = [
- 56
- ],
- power_usages = hyperstack.models.power_usage_model.PowerUsageModel(
- unit = '',
- value = 1.337, ),
- projects = [
- ''
- ],
- provision_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- status = '',
- stocks = [
- hyperstack.models.node_stocks_payload.NodeStocksPayload(
- in_use = 56,
- name = '',
- total = 56,
- type = '', )
- ],
- sunset_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
- ],
- region = '', )
- ]
- )
- else:
- return NodeStockPayloadModel(
- )
- """
-
- def testNodeStockPayloadModel(self):
- """Test NodeStockPayloadModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_node_stock_response_model.py b/test/test_node_stock_response_model.py
deleted file mode 100644
index d7249d6..0000000
--- a/test/test_node_stock_response_model.py
+++ /dev/null
@@ -1,79 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.node_stock_response_model import NodeStockResponseModel
-
-class TestNodeStockResponseModel(unittest.TestCase):
- """NodeStockResponseModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> NodeStockResponseModel:
- """Test NodeStockResponseModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `NodeStockResponseModel`
- """
- model = NodeStockResponseModel()
- if include_optional:
- return NodeStockResponseModel(
- stocks = [
- hyperstack.models.node_response_model.NodeResponseModel(
- nodes = [
- hyperstack.models.node_model.NodeModel(
- flavors = [
- ''
- ],
- nexgen_name = '',
- openstack_id = '',
- openstack_name = '',
- organizations = [
- 56
- ],
- projects = [
- ''
- ],
- provision_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- status = '',
- stocks = [
- hyperstack.models.node_stocks_payload.NodeStocksPayload(
- in_use = 56,
- name = '',
- total = 56,
- type = '', )
- ],
- sunset_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), )
- ],
- region = '', )
- ]
- )
- else:
- return NodeStockResponseModel(
- )
- """
-
- def testNodeStockResponseModel(self):
- """Test NodeStockResponseModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_node_stocks_payload.py b/test/test_node_stocks_payload.py
deleted file mode 100644
index 856659a..0000000
--- a/test/test_node_stocks_payload.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.node_stocks_payload import NodeStocksPayload
-
-class TestNodeStocksPayload(unittest.TestCase):
- """NodeStocksPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> NodeStocksPayload:
- """Test NodeStocksPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `NodeStocksPayload`
- """
- model = NodeStocksPayload()
- if include_optional:
- return NodeStocksPayload(
- in_use = 56,
- name = '',
- total = 56,
- type = ''
- )
- else:
- return NodeStocksPayload(
- in_use = 56,
- total = 56,
- type = '',
- )
- """
-
- def testNodeStocksPayload(self):
- """Test NodeStocksPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_organization_object_response.py b/test/test_organization_object_response.py
deleted file mode 100644
index cf037d7..0000000
--- a/test/test_organization_object_response.py
+++ /dev/null
@@ -1,66 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.organization_object_response import OrganizationObjectResponse
-
-class TestOrganizationObjectResponse(unittest.TestCase):
- """OrganizationObjectResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> OrganizationObjectResponse:
- """Test OrganizationObjectResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `OrganizationObjectResponse`
- """
- model = OrganizationObjectResponse()
- if include_optional:
- return OrganizationObjectResponse(
- org_id = 56,
- resources = [
- hyperstack.models.infrahub_resource_object_response.InfrahubResourceObjectResponse(
- actual_host_price = 1.337,
- actual_price = 1.337,
- contract_id = 56,
- host = '',
- host_price = 1.337,
- infrahub_id = 56,
- name = '',
- nexgen_actual_price = 1.337,
- nexgen_price = 1.337,
- price = 1.337,
- status = '',
- type = '', )
- ]
- )
- else:
- return OrganizationObjectResponse(
- )
- """
-
- def testOrganizationObjectResponse(self):
- """Test OrganizationObjectResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_organization_thresholdfields.py b/test/test_organization_threshold_fields.py
similarity index 73%
rename from test/test_organization_thresholdfields.py
rename to test/test_organization_threshold_fields.py
index 53e4d12..a33f910 100644
--- a/test/test_organization_thresholdfields.py
+++ b/test/test_organization_threshold_fields.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.organization_thresholdfields import OrganizationThresholdfields
+from hyperstack.models.organization_threshold_fields import OrganizationThresholdFields
-class TestOrganizationThresholdfields(unittest.TestCase):
- """OrganizationThresholdfields unit test stubs"""
+class TestOrganizationThresholdFields(unittest.TestCase):
+ """OrganizationThresholdFields unit test stubs"""
def setUp(self):
pass
@@ -25,16 +25,16 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> OrganizationThresholdfields:
- """Test OrganizationThresholdfields
+ def make_instance(self, include_optional) -> OrganizationThresholdFields:
+ """Test OrganizationThresholdFields
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `OrganizationThresholdfields`
+ # uncomment below to create an instance of `OrganizationThresholdFields`
"""
- model = OrganizationThresholdfields()
+ model = OrganizationThresholdFields()
if include_optional:
- return OrganizationThresholdfields(
+ return OrganizationThresholdFields(
id = 56,
interface_title = '',
interface_tooltip = '',
@@ -42,12 +42,12 @@ def make_instance(self, include_optional) -> OrganizationThresholdfields:
threshold = 56
)
else:
- return OrganizationThresholdfields(
+ return OrganizationThresholdFields(
)
"""
- def testOrganizationThresholdfields(self):
- """Test OrganizationThresholdfields"""
+ def testOrganizationThresholdFields(self):
+ """Test OrganizationThresholdFields"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_organizationthresholdupdateresponse.py b/test/test_organization_threshold_update_response.py
similarity index 67%
rename from test/test_organizationthresholdupdateresponse.py
rename to test/test_organization_threshold_update_response.py
index a444446..fd084a8 100644
--- a/test/test_organizationthresholdupdateresponse.py
+++ b/test/test_organization_threshold_update_response.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.organizationthresholdupdateresponse import Organizationthresholdupdateresponse
+from hyperstack.models.organization_threshold_update_response import OrganizationThresholdUpdateResponse
-class TestOrganizationthresholdupdateresponse(unittest.TestCase):
- """Organizationthresholdupdateresponse unit test stubs"""
+class TestOrganizationThresholdUpdateResponse(unittest.TestCase):
+ """OrganizationThresholdUpdateResponse unit test stubs"""
def setUp(self):
pass
@@ -25,19 +25,19 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> Organizationthresholdupdateresponse:
- """Test Organizationthresholdupdateresponse
+ def make_instance(self, include_optional) -> OrganizationThresholdUpdateResponse:
+ """Test OrganizationThresholdUpdateResponse
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `Organizationthresholdupdateresponse`
+ # uncomment below to create an instance of `OrganizationThresholdUpdateResponse`
"""
- model = Organizationthresholdupdateresponse()
+ model = OrganizationThresholdUpdateResponse()
if include_optional:
- return Organizationthresholdupdateresponse(
+ return OrganizationThresholdUpdateResponse(
message = '',
status = True,
- threshold = hyperstack.models.organization_thresholdfields.OrganizationThresholdfields(
+ threshold = hyperstack.models.organization_threshold_fields.Organization_Threshold_fields(
id = 56,
interface_title = '',
interface_tooltip = '',
@@ -45,12 +45,12 @@ def make_instance(self, include_optional) -> Organizationthresholdupdateresponse
threshold = 56, )
)
else:
- return Organizationthresholdupdateresponse(
+ return OrganizationThresholdUpdateResponse(
)
"""
- def testOrganizationthresholdupdateresponse(self):
- """Test Organizationthresholdupdateresponse"""
+ def testOrganizationThresholdUpdateResponse(self):
+ """Test OrganizationThresholdUpdateResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_organizationthresholdsresponse.py b/test/test_organization_thresholds_response.py
similarity index 68%
rename from test/test_organizationthresholdsresponse.py
rename to test/test_organization_thresholds_response.py
index ef61a49..03ea477 100644
--- a/test/test_organizationthresholdsresponse.py
+++ b/test/test_organization_thresholds_response.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.organizationthresholdsresponse import Organizationthresholdsresponse
+from hyperstack.models.organization_thresholds_response import OrganizationThresholdsResponse
-class TestOrganizationthresholdsresponse(unittest.TestCase):
- """Organizationthresholdsresponse unit test stubs"""
+class TestOrganizationThresholdsResponse(unittest.TestCase):
+ """OrganizationThresholdsResponse unit test stubs"""
def setUp(self):
pass
@@ -25,20 +25,20 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> Organizationthresholdsresponse:
- """Test Organizationthresholdsresponse
+ def make_instance(self, include_optional) -> OrganizationThresholdsResponse:
+ """Test OrganizationThresholdsResponse
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `Organizationthresholdsresponse`
+ # uncomment below to create an instance of `OrganizationThresholdsResponse`
"""
- model = Organizationthresholdsresponse()
+ model = OrganizationThresholdsResponse()
if include_optional:
- return Organizationthresholdsresponse(
+ return OrganizationThresholdsResponse(
message = '',
status = True,
thresholds = [
- hyperstack.models.organization_thresholdfields.OrganizationThresholdfields(
+ hyperstack.models.organization_threshold_fields.Organization_Threshold_fields(
id = 56,
interface_title = '',
interface_tooltip = '',
@@ -47,12 +47,12 @@ def make_instance(self, include_optional) -> Organizationthresholdsresponse:
]
)
else:
- return Organizationthresholdsresponse(
+ return OrganizationThresholdsResponse(
)
"""
- def testOrganizationthresholdsresponse(self):
- """Test Organizationthresholdsresponse"""
+ def testOrganizationThresholdsResponse(self):
+ """Test OrganizationThresholdsResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_organizationcreditrechargelimitresponse.py b/test/test_organizationcreditrechargelimitresponse.py
deleted file mode 100644
index d7fb04f..0000000
--- a/test/test_organizationcreditrechargelimitresponse.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.organizationcreditrechargelimitresponse import Organizationcreditrechargelimitresponse
-
-class TestOrganizationcreditrechargelimitresponse(unittest.TestCase):
- """Organizationcreditrechargelimitresponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> Organizationcreditrechargelimitresponse:
- """Test Organizationcreditrechargelimitresponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `Organizationcreditrechargelimitresponse`
- """
- model = Organizationcreditrechargelimitresponse()
- if include_optional:
- return Organizationcreditrechargelimitresponse(
- data = hyperstack.models.creditrechargelimitfield.Creditrechargelimitfield(
- credit_granted = 1.337,
- credit_limit = 1.337,
- organization_id = 56,
- user_id = 56, ),
- message = '',
- status = True
- )
- else:
- return Organizationcreditrechargelimitresponse(
- )
- """
-
- def testOrganizationcreditrechargelimitresponse(self):
- """Test Organizationcreditrechargelimitresponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_overview_info.py b/test/test_overview_info.py
index 3a539d5..5e6f736 100644
--- a/test/test_overview_info.py
+++ b/test/test_overview_info.py
@@ -35,19 +35,19 @@ def make_instance(self, include_optional) -> OverviewInfo:
model = OverviewInfo()
if include_optional:
return OverviewInfo(
- container = hyperstack.models.container_overview_fields.ContainerOverviewFields(
+ container = hyperstack.models.container_overview_fields.Container_Overview_Fields(
cost_per_hour = 1.337,
count = 56,
gpus = 56,
ram = 1.337,
vcpus = 56, ),
- instance = hyperstack.models.instance_overview_fields.InstanceOverviewFields(
+ instance = hyperstack.models.instance_overview_fields.Instance_Overview_Fields(
cost_per_hour = 1.337,
count = 56,
gpus = 56,
ram = 1.337,
vcpus = 56, ),
- volume = hyperstack.models.volume_overview_fields.VolumeOverviewFields(
+ volume = hyperstack.models.volume_overview_fields.Volume_Overview_Fields(
cost_per_hour = 1.337,
count = 56,
using = 56, )
diff --git a/test/test_pagination.py b/test/test_pagination.py
new file mode 100644
index 0000000..0577a9e
--- /dev/null
+++ b/test/test_pagination.py
@@ -0,0 +1,53 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.pagination import Pagination
+
+class TestPagination(unittest.TestCase):
+ """Pagination unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> Pagination:
+ """Test Pagination
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `Pagination`
+ """
+ model = Pagination()
+ if include_optional:
+ return Pagination(
+ page = 56,
+ pages = 56,
+ per_page = 56
+ )
+ else:
+ return Pagination(
+ )
+ """
+
+ def testPagination(self):
+ """Test Pagination"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_partner_config.py b/test/test_partner_config.py
new file mode 100644
index 0000000..35a59cd
--- /dev/null
+++ b/test/test_partner_config.py
@@ -0,0 +1,76 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.partner_config import PartnerConfig
+
+class TestPartnerConfig(unittest.TestCase):
+ """PartnerConfig unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> PartnerConfig:
+ """Test PartnerConfig
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `PartnerConfig`
+ """
+ model = PartnerConfig()
+ if include_optional:
+ return PartnerConfig(
+ background_image_url = '',
+ colors = hyperstack.models.colors.Colors(
+ primary = hyperstack.models.primary_color.PrimaryColor(
+ dark = '',
+ light = '', ),
+ secondary = hyperstack.models.secondary_color.SecondaryColor(
+ dark = '',
+ light = '', ), ),
+ logos = hyperstack.models.logos.Logos(
+ dark = '',
+ email = '',
+ favicon = '',
+ light = '', ),
+ name = '',
+ support_email = '',
+ uris = hyperstack.models.uris.URIs(
+ api_doc = '',
+ api_uri = '',
+ auth = '',
+ console = '',
+ contact_us = '',
+ doc = '',
+ landing_page = '', ),
+ user_type = ''
+ )
+ else:
+ return PartnerConfig(
+ name = '',
+ user_type = '',
+ )
+ """
+
+ def testPartnerConfig(self):
+ """Test PartnerConfig"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_partner_config_api.py b/test/test_partner_config_api.py
new file mode 100644
index 0000000..aaa724e
--- /dev/null
+++ b/test/test_partner_config_api.py
@@ -0,0 +1,44 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.api.partner_config_api import PartnerConfigApi
+
+
+class TestPartnerConfigApi(unittest.TestCase):
+ """PartnerConfigApi unit test stubs"""
+
+ def setUp(self) -> None:
+ self.api = PartnerConfigApi()
+
+ def tearDown(self) -> None:
+ pass
+
+ def test_get_partner_config(self) -> None:
+ """Test case for get_partner_config
+
+ Get partner config
+ """
+ pass
+
+ def test_get_partner_config_by_domain(self) -> None:
+ """Test case for get_partner_config_by_domain
+
+ """
+ pass
+
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_payment_api.py b/test/test_payment_api.py
index 0068278..de07180 100644
--- a/test/test_payment_api.py
+++ b/test/test_payment_api.py
@@ -26,15 +26,22 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
- def test_get_view_payment_details(self) -> None:
- """Test case for get_view_payment_details
+ def test_get_details(self) -> None:
+ """Test case for get_details
GET: View payment details
"""
pass
- def test_post_initiate_payment(self) -> None:
- """Test case for post_initiate_payment
+ def test_get_payment_receipt2(self) -> None:
+ """Test case for get_payment_receipt2
+
+ Retrieve Payment Receipt
+ """
+ pass
+
+ def test_post_payment(self) -> None:
+ """Test case for post_payment
POST: Initiate payment
"""
diff --git a/test/test_payment_details_fields.py b/test/test_payment_details_fields.py
index 183fb66..75b759a 100644
--- a/test/test_payment_details_fields.py
+++ b/test/test_payment_details_fields.py
@@ -40,9 +40,11 @@ def make_instance(self, include_optional) -> PaymentDetailsFields:
currency = '',
description = '',
gateway_response = '',
+ invoice = '',
paid_from = '',
payment_id = '',
status = '',
+ tax_amount = 1.337,
transaction_id = '',
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
)
diff --git a/test/test_payment_details_response.py b/test/test_payment_details_response.py
index 33098a1..847ef53 100644
--- a/test/test_payment_details_response.py
+++ b/test/test_payment_details_response.py
@@ -35,15 +35,17 @@ def make_instance(self, include_optional) -> PaymentDetailsResponse:
model = PaymentDetailsResponse()
if include_optional:
return PaymentDetailsResponse(
- data = hyperstack.models.payment_details_fields.PaymentDetailsFields(
+ data = hyperstack.models.payment_details_fields.Payment_Details_Fields(
amount = 1.337,
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
currency = '',
description = '',
gateway_response = '',
+ invoice = '',
paid_from = '',
payment_id = '',
status = '',
+ tax_amount = 1.337,
transaction_id = '',
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'), ),
message = '',
diff --git a/test/test_payment_initiate_response.py b/test/test_payment_initiate_response.py
index 06be5a8..876dc7e 100644
--- a/test/test_payment_initiate_response.py
+++ b/test/test_payment_initiate_response.py
@@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> PaymentInitiateResponse:
model = PaymentInitiateResponse()
if include_optional:
return PaymentInitiateResponse(
- data = hyperstack.models.payment_initiate_fields.PaymentInitiateFields(
+ data = hyperstack.models.payment_initiate_fields.Payment_Initiate_Fields(
payment_id = '', ),
message = '',
status = True
diff --git a/test/test_power_usage_model.py b/test/test_power_usage_model.py
deleted file mode 100644
index ef0413a..0000000
--- a/test/test_power_usage_model.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.power_usage_model import PowerUsageModel
-
-class TestPowerUsageModel(unittest.TestCase):
- """PowerUsageModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> PowerUsageModel:
- """Test PowerUsageModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `PowerUsageModel`
- """
- model = PowerUsageModel()
- if include_optional:
- return PowerUsageModel(
- unit = '',
- value = 1.337
- )
- else:
- return PowerUsageModel(
- unit = '',
- value = 1.337,
- )
- """
-
- def testPowerUsageModel(self):
- """Test PowerUsageModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_pricebook_api.py b/test/test_pricebook_api.py
index 716467a..5d7d0dd 100644
--- a/test/test_pricebook_api.py
+++ b/test/test_pricebook_api.py
@@ -26,8 +26,8 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
- def test_retrive_pricebook(self) -> None:
- """Test case for retrive_pricebook
+ def test_get_pricebook(self) -> None:
+ """Test case for get_pricebook
"""
pass
diff --git a/test/test_pricebook_resource_object_response.py b/test/test_pricebook_resource_object_response.py
deleted file mode 100644
index c128535..0000000
--- a/test/test_pricebook_resource_object_response.py
+++ /dev/null
@@ -1,61 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.pricebook_resource_object_response import PricebookResourceObjectResponse
-
-class TestPricebookResourceObjectResponse(unittest.TestCase):
- """PricebookResourceObjectResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> PricebookResourceObjectResponse:
- """Test PricebookResourceObjectResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `PricebookResourceObjectResponse`
- """
- model = PricebookResourceObjectResponse()
- if include_optional:
- return PricebookResourceObjectResponse(
- actual_price = 1.337,
- amount = 56,
- discounted_rate = 1.337,
- host_original_price = 1.337,
- host_price = 1.337,
- name = '',
- nexgen_original_price = 1.337,
- nexgen_price = 1.337,
- price = 1.337,
- rate = 1.337,
- type = ''
- )
- else:
- return PricebookResourceObjectResponse(
- )
- """
-
- def testPricebookResourceObjectResponse(self):
- """Test PricebookResourceObjectResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_primary_color.py b/test/test_primary_color.py
new file mode 100644
index 0000000..378d1b1
--- /dev/null
+++ b/test/test_primary_color.py
@@ -0,0 +1,52 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.primary_color import PrimaryColor
+
+class TestPrimaryColor(unittest.TestCase):
+ """PrimaryColor unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> PrimaryColor:
+ """Test PrimaryColor
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `PrimaryColor`
+ """
+ model = PrimaryColor()
+ if include_optional:
+ return PrimaryColor(
+ dark = '',
+ light = ''
+ )
+ else:
+ return PrimaryColor(
+ )
+ """
+
+ def testPrimaryColor(self):
+ """Test PrimaryColor"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_profile_list_response.py b/test/test_profile_list_response.py
index a30459d..9c22941 100644
--- a/test/test_profile_list_response.py
+++ b/test/test_profile_list_response.py
@@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> ProfileListResponse:
return ProfileListResponse(
message = '',
profiles = [
- hyperstack.models.profile_fields.ProfileFields(
+ hyperstack.models.profile_fields.Profile_Fields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
data = '',
description = '',
diff --git a/test/test_refresh_token_payload.py b/test/test_refresh_token_payload.py
deleted file mode 100644
index a59aac9..0000000
--- a/test/test_refresh_token_payload.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.refresh_token_payload import RefreshTokenPayload
-
-class TestRefreshTokenPayload(unittest.TestCase):
- """RefreshTokenPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> RefreshTokenPayload:
- """Test RefreshTokenPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `RefreshTokenPayload`
- """
- model = RefreshTokenPayload()
- if include_optional:
- return RefreshTokenPayload(
- id_token = '',
- refresh_token = ''
- )
- else:
- return RefreshTokenPayload(
- id_token = '',
- refresh_token = '',
- )
- """
-
- def testRefreshTokenPayload(self):
- """Test RefreshTokenPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_region_api.py b/test/test_region_api.py
index 5206155..94e895b 100644
--- a/test/test_region_api.py
+++ b/test/test_region_api.py
@@ -29,7 +29,7 @@ def tearDown(self) -> None:
def test_list_regions(self) -> None:
"""Test case for list_regions
- List regions
+ List Regions
"""
pass
diff --git a/test/test_region_fields.py b/test/test_region_fields.py
index 68287cf..8c5045f 100644
--- a/test/test_region_fields.py
+++ b/test/test_region_fields.py
@@ -35,7 +35,9 @@ def make_instance(self, include_optional) -> RegionFields:
model = RegionFields()
if include_optional:
return RegionFields(
+ country = '',
description = '',
+ green_status = 'GREEN',
id = 56,
name = ''
)
diff --git a/test/test_regions.py b/test/test_regions.py
index 6a726e6..b34007b 100644
--- a/test/test_regions.py
+++ b/test/test_regions.py
@@ -37,8 +37,10 @@ def make_instance(self, include_optional) -> Regions:
return Regions(
message = '',
regions = [
- hyperstack.models.region_fields.RegionFields(
+ hyperstack.models.region_fields.Region_Fields(
+ country = '',
description = '',
+ green_status = 'GREEN',
id = 56,
name = '', )
],
diff --git a/test/test_api_key_verify_fields.py b/test/test_request_instance_logs_payload.py
similarity index 63%
rename from test/test_api_key_verify_fields.py
rename to test/test_request_instance_logs_payload.py
index cc12595..75f5218 100644
--- a/test/test_api_key_verify_fields.py
+++ b/test/test_request_instance_logs_payload.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.api_key_verify_fields import ApiKeyVerifyFields
+from hyperstack.models.request_instance_logs_payload import RequestInstanceLogsPayload
-class TestApiKeyVerifyFields(unittest.TestCase):
- """ApiKeyVerifyFields unit test stubs"""
+class TestRequestInstanceLogsPayload(unittest.TestCase):
+ """RequestInstanceLogsPayload unit test stubs"""
def setUp(self):
pass
@@ -25,28 +25,25 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> ApiKeyVerifyFields:
- """Test ApiKeyVerifyFields
+ def make_instance(self, include_optional) -> RequestInstanceLogsPayload:
+ """Test RequestInstanceLogsPayload
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `ApiKeyVerifyFields`
+ # uncomment below to create an instance of `RequestInstanceLogsPayload`
"""
- model = ApiKeyVerifyFields()
+ model = RequestInstanceLogsPayload()
if include_optional:
- return ApiKeyVerifyFields(
- org_id = 56,
- sub = '',
- user_id = 56,
- user_role = ''
+ return RequestInstanceLogsPayload(
+ length = 56
)
else:
- return ApiKeyVerifyFields(
+ return RequestInstanceLogsPayload(
)
"""
- def testApiKeyVerifyFields(self):
- """Test ApiKeyVerifyFields"""
+ def testRequestInstanceLogsPayload(self):
+ """Test RequestInstanceLogsPayload"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_auth_request_login_fields.py b/test/test_request_instance_logs_response.py
similarity index 62%
rename from test/test_auth_request_login_fields.py
rename to test/test_request_instance_logs_response.py
index baa2e49..b7100e0 100644
--- a/test/test_auth_request_login_fields.py
+++ b/test/test_request_instance_logs_response.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.auth_request_login_fields import AuthRequestLoginFields
+from hyperstack.models.request_instance_logs_response import RequestInstanceLogsResponse
-class TestAuthRequestLoginFields(unittest.TestCase):
- """AuthRequestLoginFields unit test stubs"""
+class TestRequestInstanceLogsResponse(unittest.TestCase):
+ """RequestInstanceLogsResponse unit test stubs"""
def setUp(self):
pass
@@ -25,26 +25,25 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> AuthRequestLoginFields:
- """Test AuthRequestLoginFields
+ def make_instance(self, include_optional) -> RequestInstanceLogsResponse:
+ """Test RequestInstanceLogsResponse
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `AuthRequestLoginFields`
+ # uncomment below to create an instance of `RequestInstanceLogsResponse`
"""
- model = AuthRequestLoginFields()
+ model = RequestInstanceLogsResponse()
if include_optional:
- return AuthRequestLoginFields(
- authorization_url = '',
- session_id = ''
+ return RequestInstanceLogsResponse(
+ request_id = 56
)
else:
- return AuthRequestLoginFields(
+ return RequestInstanceLogsResponse(
)
"""
- def testAuthRequestLoginFields(self):
- """Test AuthRequestLoginFields"""
+ def testRequestInstanceLogsResponse(self):
+ """Test RequestInstanceLogsResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_resource_level_billing_bucket_details_resources.py b/test/test_resource_level_billing_bucket_details_resources.py
new file mode 100644
index 0000000..3a2543a
--- /dev/null
+++ b/test/test_resource_level_billing_bucket_details_resources.py
@@ -0,0 +1,63 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.resource_level_billing_bucket_details_resources import ResourceLevelBillingBucketDetailsResources
+
+class TestResourceLevelBillingBucketDetailsResources(unittest.TestCase):
+ """ResourceLevelBillingBucketDetailsResources unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ResourceLevelBillingBucketDetailsResources:
+ """Test ResourceLevelBillingBucketDetailsResources
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ResourceLevelBillingBucketDetailsResources`
+ """
+ model = ResourceLevelBillingBucketDetailsResources()
+ if include_optional:
+ return ResourceLevelBillingBucketDetailsResources(
+ attributes = hyperstack.models.resource_level_billing_details_attributes.ResourceLevelBillingDetailsAttributes(
+ id = '',
+ infrahub_id = 56,
+ resource_name = '', ),
+ metrics = hyperstack.models.resource_level_billing_details_metrics.ResourceLevelBillingDetailsMetrics(
+ incurred_bill = 1.337,
+ non_discounted_bill = 1.337,
+ non_discounted_price_per_hour = 1.337,
+ price_per_hour = 1.337,
+ usage_time = 1.337,
+ usage_time_active = 1.337,
+ usage_time_hibernated = 1.337,
+ usage_time_shutoff = 1.337, )
+ )
+ else:
+ return ResourceLevelBillingBucketDetailsResources(
+ )
+ """
+
+ def testResourceLevelBillingBucketDetailsResources(self):
+ """Test ResourceLevelBillingBucketDetailsResources"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_resource_level_billing_history.py b/test/test_resource_level_billing_history.py
index 53eba10..6f9b7b3 100644
--- a/test/test_resource_level_billing_history.py
+++ b/test/test_resource_level_billing_history.py
@@ -38,6 +38,7 @@ def make_instance(self, include_optional) -> ResourceLevelBillingHistory:
billing_history = [
hyperstack.models.resource_level_billing_history_resources.ResourceLevelBillingHistoryResources(
attributes = hyperstack.models.resource_level_billing_history_response_attributes.ResourceLevelBillingHistoryResponseAttributes(
+ contract_id = 56,
id = '',
infrahub_id = 56,
resource_name = '',
diff --git a/test/test_resource_level_billing_history_resources.py b/test/test_resource_level_billing_history_resources.py
index 7648ac7..c31c0fb 100644
--- a/test/test_resource_level_billing_history_resources.py
+++ b/test/test_resource_level_billing_history_resources.py
@@ -36,6 +36,7 @@ def make_instance(self, include_optional) -> ResourceLevelBillingHistoryResource
if include_optional:
return ResourceLevelBillingHistoryResources(
attributes = hyperstack.models.resource_level_billing_history_response_attributes.ResourceLevelBillingHistoryResponseAttributes(
+ contract_id = 56,
id = '',
infrahub_id = 56,
resource_name = '',
diff --git a/test/test_resource_level_billing_history_resources_cluster.py b/test/test_resource_level_billing_history_resources_cluster.py
new file mode 100644
index 0000000..7663bac
--- /dev/null
+++ b/test/test_resource_level_billing_history_resources_cluster.py
@@ -0,0 +1,73 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.resource_level_billing_history_resources_cluster import ResourceLevelBillingHistoryResourcesCluster
+
+class TestResourceLevelBillingHistoryResourcesCluster(unittest.TestCase):
+ """ResourceLevelBillingHistoryResourcesCluster unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ResourceLevelBillingHistoryResourcesCluster:
+ """Test ResourceLevelBillingHistoryResourcesCluster
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ResourceLevelBillingHistoryResourcesCluster`
+ """
+ model = ResourceLevelBillingHistoryResourcesCluster()
+ if include_optional:
+ return ResourceLevelBillingHistoryResourcesCluster(
+ attributes = hyperstack.models.resource_level_billing_history_response_attributes.ResourceLevelBillingHistoryResponseAttributes(
+ contract_id = 56,
+ id = '',
+ infrahub_id = 56,
+ resource_name = '',
+ status = '', ),
+ metrics = hyperstack.models.resource_level_billing_history_response_metrics.ResourceLevelBillingHistoryResponseMetrics(
+ incurred_bill = 1.337,
+ price_per_hour = 1.337,
+ usage_time = 1.337, ),
+ nodes = [
+ hyperstack.models.resource_level_billing_history_resources.ResourceLevelBillingHistoryResources(
+ attributes = hyperstack.models.resource_level_billing_history_response_attributes.ResourceLevelBillingHistoryResponseAttributes(
+ contract_id = 56,
+ id = '',
+ infrahub_id = 56,
+ resource_name = '',
+ status = '', ),
+ metrics = hyperstack.models.resource_level_billing_history_response_metrics.ResourceLevelBillingHistoryResponseMetrics(
+ incurred_bill = 1.337,
+ price_per_hour = 1.337,
+ usage_time = 1.337, ), )
+ ]
+ )
+ else:
+ return ResourceLevelBillingHistoryResourcesCluster(
+ )
+ """
+
+ def testResourceLevelBillingHistoryResourcesCluster(self):
+ """Test ResourceLevelBillingHistoryResourcesCluster"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_resource_level_billing_history_response_attributes.py b/test/test_resource_level_billing_history_response_attributes.py
index 1ac65e4..f16787e 100644
--- a/test/test_resource_level_billing_history_response_attributes.py
+++ b/test/test_resource_level_billing_history_response_attributes.py
@@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> ResourceLevelBillingHistoryResponse
model = ResourceLevelBillingHistoryResponseAttributes()
if include_optional:
return ResourceLevelBillingHistoryResponseAttributes(
+ contract_id = 56,
id = '',
infrahub_id = 56,
resource_name = '',
diff --git a/test/test_resource_level_bucket_billing_details_response_model.py b/test/test_resource_level_bucket_billing_details_response_model.py
new file mode 100644
index 0000000..711426d
--- /dev/null
+++ b/test/test_resource_level_bucket_billing_details_response_model.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.resource_level_bucket_billing_details_response_model import ResourceLevelBucketBillingDetailsResponseModel
+
+class TestResourceLevelBucketBillingDetailsResponseModel(unittest.TestCase):
+ """ResourceLevelBucketBillingDetailsResponseModel unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ResourceLevelBucketBillingDetailsResponseModel:
+ """Test ResourceLevelBucketBillingDetailsResponseModel
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ResourceLevelBucketBillingDetailsResponseModel`
+ """
+ model = ResourceLevelBucketBillingDetailsResponseModel()
+ if include_optional:
+ return ResourceLevelBucketBillingDetailsResponseModel(
+ billing_history_bucket_details = hyperstack.models.resource_level_billing_bucket_details_resources.ResourceLevelBillingBucketDetailsResources(
+ attributes = hyperstack.models.resource_level_billing_details_attributes.ResourceLevelBillingDetailsAttributes(
+ id = '',
+ infrahub_id = 56,
+ resource_name = '', ),
+ metrics = hyperstack.models.resource_level_billing_details_metrics.ResourceLevelBillingDetailsMetrics(
+ incurred_bill = 1.337,
+ non_discounted_bill = 1.337,
+ non_discounted_price_per_hour = 1.337,
+ price_per_hour = 1.337,
+ usage_time = 1.337,
+ usage_time_active = 1.337,
+ usage_time_hibernated = 1.337,
+ usage_time_shutoff = 1.337, ), ),
+ message = '',
+ status = True
+ )
+ else:
+ return ResourceLevelBucketBillingDetailsResponseModel(
+ )
+ """
+
+ def testResourceLevelBucketBillingDetailsResponseModel(self):
+ """Test ResourceLevelBucketBillingDetailsResponseModel"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_resource_level_bucket_billing_history_response_model.py b/test/test_resource_level_bucket_billing_history_response_model.py
new file mode 100644
index 0000000..c7c3ee7
--- /dev/null
+++ b/test/test_resource_level_bucket_billing_history_response_model.py
@@ -0,0 +1,72 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.resource_level_bucket_billing_history_response_model import ResourceLevelBucketBillingHistoryResponseModel
+
+class TestResourceLevelBucketBillingHistoryResponseModel(unittest.TestCase):
+ """ResourceLevelBucketBillingHistoryResponseModel unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ResourceLevelBucketBillingHistoryResponseModel:
+ """Test ResourceLevelBucketBillingHistoryResponseModel
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ResourceLevelBucketBillingHistoryResponseModel`
+ """
+ model = ResourceLevelBucketBillingHistoryResponseModel()
+ if include_optional:
+ return ResourceLevelBucketBillingHistoryResponseModel(
+ billing_history_bucket = hyperstack.models.resource_level_billing_history.ResourceLevelBillingHistory(
+ billing_history = [
+ hyperstack.models.resource_level_billing_history_resources.ResourceLevelBillingHistoryResources(
+ attributes = hyperstack.models.resource_level_billing_history_response_attributes.ResourceLevelBillingHistoryResponseAttributes(
+ contract_id = 56,
+ id = '',
+ infrahub_id = 56,
+ resource_name = '',
+ status = '', ),
+ metrics = hyperstack.models.resource_level_billing_history_response_metrics.ResourceLevelBillingHistoryResponseMetrics(
+ incurred_bill = 1.337,
+ price_per_hour = 1.337,
+ usage_time = 1.337, ), )
+ ],
+ org_id = 56,
+ pagination = hyperstack.models.pagination_data.PaginationData(
+ page = 56,
+ pages = 56,
+ per_page = 56, ),
+ total_count = 56, ),
+ message = '',
+ status = True
+ )
+ else:
+ return ResourceLevelBucketBillingHistoryResponseModel(
+ )
+ """
+
+ def testResourceLevelBucketBillingHistoryResponseModel(self):
+ """Test ResourceLevelBucketBillingHistoryResponseModel"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_resource_level_cluster_billing_details_response_model.py b/test/test_resource_level_cluster_billing_details_response_model.py
new file mode 100644
index 0000000..0e813a7
--- /dev/null
+++ b/test/test_resource_level_cluster_billing_details_response_model.py
@@ -0,0 +1,66 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.resource_level_cluster_billing_details_response_model import ResourceLevelClusterBillingDetailsResponseModel
+
+class TestResourceLevelClusterBillingDetailsResponseModel(unittest.TestCase):
+ """ResourceLevelClusterBillingDetailsResponseModel unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ResourceLevelClusterBillingDetailsResponseModel:
+ """Test ResourceLevelClusterBillingDetailsResponseModel
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ResourceLevelClusterBillingDetailsResponseModel`
+ """
+ model = ResourceLevelClusterBillingDetailsResponseModel()
+ if include_optional:
+ return ResourceLevelClusterBillingDetailsResponseModel(
+ billing_history_cluster_details = hyperstack.models.resource_level_billing_history_resources_cluster.ResourceLevelBillingHistoryResourcesCluster(
+ attributes = hyperstack.models.resource_level_billing_history_response_attributes.ResourceLevelBillingHistoryResponseAttributes(
+ contract_id = 56,
+ id = '',
+ infrahub_id = 56,
+ resource_name = '',
+ status = '', ),
+ metrics = hyperstack.models.resource_level_billing_history_response_metrics.ResourceLevelBillingHistoryResponseMetrics(
+ incurred_bill = 1.337,
+ price_per_hour = 1.337,
+ usage_time = 1.337, ),
+ nodes = [
+ hyperstack.models.resource_level_billing_history_resources.ResourceLevelBillingHistoryResources()
+ ], ),
+ message = '',
+ status = True
+ )
+ else:
+ return ResourceLevelClusterBillingDetailsResponseModel(
+ )
+ """
+
+ def testResourceLevelClusterBillingDetailsResponseModel(self):
+ """Test ResourceLevelClusterBillingDetailsResponseModel"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_resource_level_cluster_billing_history_response_model.py b/test/test_resource_level_cluster_billing_history_response_model.py
new file mode 100644
index 0000000..28a4a6d
--- /dev/null
+++ b/test/test_resource_level_cluster_billing_history_response_model.py
@@ -0,0 +1,72 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.resource_level_cluster_billing_history_response_model import ResourceLevelClusterBillingHistoryResponseModel
+
+class TestResourceLevelClusterBillingHistoryResponseModel(unittest.TestCase):
+ """ResourceLevelClusterBillingHistoryResponseModel unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ResourceLevelClusterBillingHistoryResponseModel:
+ """Test ResourceLevelClusterBillingHistoryResponseModel
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ResourceLevelClusterBillingHistoryResponseModel`
+ """
+ model = ResourceLevelClusterBillingHistoryResponseModel()
+ if include_optional:
+ return ResourceLevelClusterBillingHistoryResponseModel(
+ billing_history_cluster = hyperstack.models.resource_level_billing_history.ResourceLevelBillingHistory(
+ billing_history = [
+ hyperstack.models.resource_level_billing_history_resources.ResourceLevelBillingHistoryResources(
+ attributes = hyperstack.models.resource_level_billing_history_response_attributes.ResourceLevelBillingHistoryResponseAttributes(
+ contract_id = 56,
+ id = '',
+ infrahub_id = 56,
+ resource_name = '',
+ status = '', ),
+ metrics = hyperstack.models.resource_level_billing_history_response_metrics.ResourceLevelBillingHistoryResponseMetrics(
+ incurred_bill = 1.337,
+ price_per_hour = 1.337,
+ usage_time = 1.337, ), )
+ ],
+ org_id = 56,
+ pagination = hyperstack.models.pagination_data.PaginationData(
+ page = 56,
+ pages = 56,
+ per_page = 56, ),
+ total_count = 56, ),
+ message = '',
+ status = True
+ )
+ else:
+ return ResourceLevelClusterBillingHistoryResponseModel(
+ )
+ """
+
+ def testResourceLevelClusterBillingHistoryResponseModel(self):
+ """Test ResourceLevelClusterBillingHistoryResponseModel"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_resource_level_cluster_graph_billing_details_response_model.py b/test/test_resource_level_cluster_graph_billing_details_response_model.py
new file mode 100644
index 0000000..9d1b103
--- /dev/null
+++ b/test/test_resource_level_cluster_graph_billing_details_response_model.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.resource_level_cluster_graph_billing_details_response_model import ResourceLevelClusterGraphBillingDetailsResponseModel
+
+class TestResourceLevelClusterGraphBillingDetailsResponseModel(unittest.TestCase):
+ """ResourceLevelClusterGraphBillingDetailsResponseModel unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ResourceLevelClusterGraphBillingDetailsResponseModel:
+ """Test ResourceLevelClusterGraphBillingDetailsResponseModel
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ResourceLevelClusterGraphBillingDetailsResponseModel`
+ """
+ model = ResourceLevelClusterGraphBillingDetailsResponseModel()
+ if include_optional:
+ return ResourceLevelClusterGraphBillingDetailsResponseModel(
+ billing_history_cluster_details = hyperstack.models.resource_level_graph_billing_detail_volume.ResourceLevelGraphBillingDetailVolume(
+ billing_history = [
+ hyperstack.models.resource_level_graph_billing_volume_details_resources.ResourceLevelGraphBillingVolumeDetailsResources(
+ attributes = hyperstack.models.resource_level_graph_billing_details_attributes.ResourceLevelGraphBillingDetailsAttributes(
+ id = '',
+ infrahub_id = 56,
+ resource_name = '', ),
+ metrics = hyperstack.models.resource_level_graph_billing_details_metrics.ResourceLevelGraphBillingDetailsMetrics(
+ incurred_bill = 1.337,
+ incurred_bill_graph = [
+ hyperstack.models.graph_datetime_value_model.GraphDatetimeValueModel(
+ datetime = '',
+ value = 1.337, )
+ ], ), )
+ ],
+ granularity = 56,
+ org_id = 56,
+ total_count = 56, ),
+ message = '',
+ status = True
+ )
+ else:
+ return ResourceLevelClusterGraphBillingDetailsResponseModel(
+ )
+ """
+
+ def testResourceLevelClusterGraphBillingDetailsResponseModel(self):
+ """Test ResourceLevelClusterGraphBillingDetailsResponseModel"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_resource_level_graph_billing_details_bucket.py b/test/test_resource_level_graph_billing_details_bucket.py
new file mode 100644
index 0000000..ecc66ac
--- /dev/null
+++ b/test/test_resource_level_graph_billing_details_bucket.py
@@ -0,0 +1,69 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.resource_level_graph_billing_details_bucket import ResourceLevelGraphBillingDetailsBucket
+
+class TestResourceLevelGraphBillingDetailsBucket(unittest.TestCase):
+ """ResourceLevelGraphBillingDetailsBucket unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ResourceLevelGraphBillingDetailsBucket:
+ """Test ResourceLevelGraphBillingDetailsBucket
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ResourceLevelGraphBillingDetailsBucket`
+ """
+ model = ResourceLevelGraphBillingDetailsBucket()
+ if include_optional:
+ return ResourceLevelGraphBillingDetailsBucket(
+ billing_history = [
+ hyperstack.models.resource_level_billing_bucket_details_resources.ResourceLevelBillingBucketDetailsResources(
+ attributes = hyperstack.models.resource_level_billing_details_attributes.ResourceLevelBillingDetailsAttributes(
+ id = '',
+ infrahub_id = 56,
+ resource_name = '', ),
+ metrics = hyperstack.models.resource_level_billing_details_metrics.ResourceLevelBillingDetailsMetrics(
+ incurred_bill = 1.337,
+ non_discounted_bill = 1.337,
+ non_discounted_price_per_hour = 1.337,
+ price_per_hour = 1.337,
+ usage_time = 1.337,
+ usage_time_active = 1.337,
+ usage_time_hibernated = 1.337,
+ usage_time_shutoff = 1.337, ), )
+ ],
+ granularity = 56,
+ org_id = 56,
+ total_count = 56
+ )
+ else:
+ return ResourceLevelGraphBillingDetailsBucket(
+ )
+ """
+
+ def testResourceLevelGraphBillingDetailsBucket(self):
+ """Test ResourceLevelGraphBillingDetailsBucket"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_resource_level_vm_billing_history_response_model.py b/test/test_resource_level_vm_billing_history_response_model.py
index 8e82b65..0f06e70 100644
--- a/test/test_resource_level_vm_billing_history_response_model.py
+++ b/test/test_resource_level_vm_billing_history_response_model.py
@@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> ResourceLevelVmBillingHistoryRespon
billing_history = [
hyperstack.models.resource_level_billing_history_resources.ResourceLevelBillingHistoryResources(
attributes = hyperstack.models.resource_level_billing_history_response_attributes.ResourceLevelBillingHistoryResponseAttributes(
+ contract_id = 56,
id = '',
infrahub_id = 56,
resource_name = '',
diff --git a/test/test_resource_level_volume_billing_history_response_model.py b/test/test_resource_level_volume_billing_history_response_model.py
index 9a13c7f..67ad657 100644
--- a/test/test_resource_level_volume_billing_history_response_model.py
+++ b/test/test_resource_level_volume_billing_history_response_model.py
@@ -39,6 +39,7 @@ def make_instance(self, include_optional) -> ResourceLevelVolumeBillingHistoryRe
billing_history = [
hyperstack.models.resource_level_billing_history_resources.ResourceLevelBillingHistoryResources(
attributes = hyperstack.models.resource_level_billing_history_response_attributes.ResourceLevelBillingHistoryResponseAttributes(
+ contract_id = 56,
id = '',
infrahub_id = 56,
resource_name = '',
diff --git a/test/test_field_change.py b/test/test_secondary_color.py
similarity index 67%
rename from test/test_field_change.py
rename to test/test_secondary_color.py
index 9727451..3a1bc21 100644
--- a/test/test_field_change.py
+++ b/test/test_secondary_color.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.field_change import FieldChange
+from hyperstack.models.secondary_color import SecondaryColor
-class TestFieldChange(unittest.TestCase):
- """FieldChange unit test stubs"""
+class TestSecondaryColor(unittest.TestCase):
+ """SecondaryColor unit test stubs"""
def setUp(self):
pass
@@ -25,27 +25,26 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> FieldChange:
- """Test FieldChange
+ def make_instance(self, include_optional) -> SecondaryColor:
+ """Test SecondaryColor
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `FieldChange`
+ # uncomment below to create an instance of `SecondaryColor`
"""
- model = FieldChange()
+ model = SecondaryColor()
if include_optional:
- return FieldChange(
- field_name = '',
- new_value = '',
- old_value = ''
+ return SecondaryColor(
+ dark = '',
+ light = ''
)
else:
- return FieldChange(
+ return SecondaryColor(
)
"""
- def testFieldChange(self):
- """Test FieldChange"""
+ def testSecondaryColor(self):
+ """Test SecondaryColor"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_security_group_rule.py b/test/test_security_group_rule.py
index 09d11ed..7a995a6 100644
--- a/test/test_security_group_rule.py
+++ b/test/test_security_group_rule.py
@@ -36,7 +36,7 @@ def make_instance(self, include_optional) -> SecurityGroupRule:
if include_optional:
return SecurityGroupRule(
message = '',
- security_rule = hyperstack.models.security_group_rule_fields.SecurityGroupRuleFields(
+ security_rule = hyperstack.models.security_group_rule_fields.Security_Group_Rule_Fields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
direction = '',
ethertype = '',
diff --git a/test/test_security_rules_fieldsfor_instance.py b/test/test_security_rules_fields_for_instance.py
similarity index 74%
rename from test/test_security_rules_fieldsfor_instance.py
rename to test/test_security_rules_fields_for_instance.py
index f5520a9..a89abe0 100644
--- a/test/test_security_rules_fieldsfor_instance.py
+++ b/test/test_security_rules_fields_for_instance.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.security_rules_fieldsfor_instance import SecurityRulesFieldsforInstance
+from hyperstack.models.security_rules_fields_for_instance import SecurityRulesFieldsForInstance
-class TestSecurityRulesFieldsforInstance(unittest.TestCase):
- """SecurityRulesFieldsforInstance unit test stubs"""
+class TestSecurityRulesFieldsForInstance(unittest.TestCase):
+ """SecurityRulesFieldsForInstance unit test stubs"""
def setUp(self):
pass
@@ -25,16 +25,16 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> SecurityRulesFieldsforInstance:
- """Test SecurityRulesFieldsforInstance
+ def make_instance(self, include_optional) -> SecurityRulesFieldsForInstance:
+ """Test SecurityRulesFieldsForInstance
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `SecurityRulesFieldsforInstance`
+ # uncomment below to create an instance of `SecurityRulesFieldsForInstance`
"""
- model = SecurityRulesFieldsforInstance()
+ model = SecurityRulesFieldsForInstance()
if include_optional:
- return SecurityRulesFieldsforInstance(
+ return SecurityRulesFieldsForInstance(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
direction = '',
ethertype = '',
@@ -46,12 +46,12 @@ def make_instance(self, include_optional) -> SecurityRulesFieldsforInstance:
status = ''
)
else:
- return SecurityRulesFieldsforInstance(
+ return SecurityRulesFieldsForInstance(
)
"""
- def testSecurityRulesFieldsforInstance(self):
- """Test SecurityRulesFieldsforInstance"""
+ def testSecurityRulesFieldsForInstance(self):
+ """Test SecurityRulesFieldsForInstance"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_serverless_inferenced_billing_history_details_response_schema.py b/test/test_serverless_inferenced_billing_history_details_response_schema.py
new file mode 100644
index 0000000..a2a04b6
--- /dev/null
+++ b/test/test_serverless_inferenced_billing_history_details_response_schema.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.serverless_inferenced_billing_history_details_response_schema import ServerlessInferencedBillingHistoryDetailsResponseSchema
+
+class TestServerlessInferencedBillingHistoryDetailsResponseSchema(unittest.TestCase):
+ """ServerlessInferencedBillingHistoryDetailsResponseSchema unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> ServerlessInferencedBillingHistoryDetailsResponseSchema:
+ """Test ServerlessInferencedBillingHistoryDetailsResponseSchema
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `ServerlessInferencedBillingHistoryDetailsResponseSchema`
+ """
+ model = ServerlessInferencedBillingHistoryDetailsResponseSchema()
+ if include_optional:
+ return ServerlessInferencedBillingHistoryDetailsResponseSchema(
+ billing_history_serverless_inference_details = hyperstack.models.billing_history_serverless_inference_details.billing_history_serverless_inference_details(
+ billing_history = [
+ hyperstack.models.billing_history.billing_history(
+ attributes = hyperstack.models.attributes.attributes(
+ base_model = '',
+ base_model_display_name = '',
+ infrahub_id = 56,
+ lora_adapter = '',
+ resource_name = '',
+ status = '', ),
+ metrics = hyperstack.models.metrics.metrics(), )
+ ],
+ org_id = 56,
+ pagination = hyperstack.models.pagination.pagination(
+ page = 56,
+ pages = 56,
+ per_page = 56, ),
+ total_count = 56, ),
+ message = '',
+ status = True
+ )
+ else:
+ return ServerlessInferencedBillingHistoryDetailsResponseSchema(
+ )
+ """
+
+ def testServerlessInferencedBillingHistoryDetailsResponseSchema(self):
+ """Test ServerlessInferencedBillingHistoryDetailsResponseSchema"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_set_defaults_payload.py b/test/test_set_defaults_payload.py
deleted file mode 100644
index 559523b..0000000
--- a/test/test_set_defaults_payload.py
+++ /dev/null
@@ -1,62 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.set_defaults_payload import SetDefaultsPayload
-
-class TestSetDefaultsPayload(unittest.TestCase):
- """SetDefaultsPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> SetDefaultsPayload:
- """Test SetDefaultsPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `SetDefaultsPayload`
- """
- model = SetDefaultsPayload()
- if include_optional:
- return SetDefaultsPayload(
- flavors = [
- 56
- ],
- images = [
- 56
- ]
- )
- else:
- return SetDefaultsPayload(
- flavors = [
- 56
- ],
- images = [
- 56
- ],
- )
- """
-
- def testSetDefaultsPayload(self):
- """Test SetDefaultsPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_single_visibility_user_response.py b/test/test_single_visibility_user_response.py
deleted file mode 100644
index 0e7234e..0000000
--- a/test/test_single_visibility_user_response.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.single_visibility_user_response import SingleVisibilityUserResponse
-
-class TestSingleVisibilityUserResponse(unittest.TestCase):
- """SingleVisibilityUserResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> SingleVisibilityUserResponse:
- """Test SingleVisibilityUserResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `SingleVisibilityUserResponse`
- """
- model = SingleVisibilityUserResponse()
- if include_optional:
- return SingleVisibilityUserResponse(
- id = 56,
- stock_visible = True,
- user_id = 56
- )
- else:
- return SingleVisibilityUserResponse(
- id = 56,
- stock_visible = True,
- user_id = 56,
- )
- """
-
- def testSingleVisibilityUserResponse(self):
- """Test SingleVisibilityUserResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_snapshot_fields.py b/test/test_snapshot_fields.py
index 2b07afb..6ccefda 100644
--- a/test/test_snapshot_fields.py
+++ b/test/test_snapshot_fields.py
@@ -35,6 +35,7 @@ def make_instance(self, include_optional) -> SnapshotFields:
model = SnapshotFields()
if include_optional:
return SnapshotFields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
description = '',
has_floating_ip = True,
id = 56,
@@ -46,10 +47,12 @@ def make_instance(self, include_optional) -> SnapshotFields:
region_id = 56,
size = 56,
status = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
vm_id = 56
)
else:
return SnapshotFields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
description = '',
id = 56,
is_image = True,
@@ -57,6 +60,7 @@ def make_instance(self, include_optional) -> SnapshotFields:
region_id = 56,
size = 56,
status = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
vm_id = 56,
)
"""
diff --git a/test/test_snapshot_retrieve.py b/test/test_snapshot_retrieve.py
index d7052b4..4771511 100644
--- a/test/test_snapshot_retrieve.py
+++ b/test/test_snapshot_retrieve.py
@@ -37,15 +37,28 @@ def make_instance(self, include_optional) -> SnapshotRetrieve:
return SnapshotRetrieve(
message = '',
snapshot = hyperstack.models.snapshot_retrieve_fields.SnapshotRetrieveFields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ custom_image = '',
description = '',
has_floating_ip = True,
id = 56,
is_image = True,
+ labels = '',
name = '',
+ region = '',
region_id = 56,
size = 56,
status = '',
- vm_id = 56, ),
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ vm_environment = '',
+ vm_flavor = '',
+ vm_id = 56,
+ vm_image = '',
+ vm_keypair = '',
+ vm_name = '',
+ vm_status = '',
+ volume_id = '',
+ volume_name = '', ),
status = True
)
else:
diff --git a/test/test_snapshot_retrieve_fields.py b/test/test_snapshot_retrieve_fields.py
index 0d79c76..29c69be 100644
--- a/test/test_snapshot_retrieve_fields.py
+++ b/test/test_snapshot_retrieve_fields.py
@@ -35,18 +35,32 @@ def make_instance(self, include_optional) -> SnapshotRetrieveFields:
model = SnapshotRetrieveFields()
if include_optional:
return SnapshotRetrieveFields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ custom_image = '',
description = '',
has_floating_ip = True,
id = 56,
is_image = True,
+ labels = '',
name = '',
+ region = '',
region_id = 56,
size = 56,
status = '',
- vm_id = 56
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ vm_environment = '',
+ vm_flavor = '',
+ vm_id = 56,
+ vm_image = '',
+ vm_keypair = '',
+ vm_name = '',
+ vm_status = '',
+ volume_id = '',
+ volume_name = ''
)
else:
return SnapshotRetrieveFields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
description = '',
id = 56,
is_image = True,
@@ -54,6 +68,7 @@ def make_instance(self, include_optional) -> SnapshotRetrieveFields:
region_id = 56,
size = 56,
status = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
vm_id = 56,
)
"""
diff --git a/test/test_snapshots.py b/test/test_snapshots.py
index a54483f..ac5a649 100644
--- a/test/test_snapshots.py
+++ b/test/test_snapshots.py
@@ -41,6 +41,7 @@ def make_instance(self, include_optional) -> Snapshots:
page_size = 56,
snapshots = [
hyperstack.models.snapshot_fields.SnapshotFields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
description = '',
has_floating_ip = True,
id = 56,
@@ -52,6 +53,7 @@ def make_instance(self, include_optional) -> Snapshots:
region_id = 56,
size = 56,
status = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
vm_id = 56, )
],
status = True
diff --git a/test/test_snapshots_api.py b/test/test_snapshots_api.py
index c2b54f3..90be2df 100644
--- a/test/test_snapshots_api.py
+++ b/test/test_snapshots_api.py
@@ -26,8 +26,8 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
- def test_create_an_image_from_a_snapshot(self) -> None:
- """Test case for create_an_image_from_a_snapshot
+ def test_create_a_new_custom_image(self) -> None:
+ """Test case for create_a_new_custom_image
Create an image from a snapshot
"""
@@ -47,24 +47,24 @@ def test_fetch_snapshot_name_availability(self) -> None:
"""
pass
- def test_restore_a_snapshot(self) -> None:
- """Test case for restore_a_snapshot
+ def test_get_snapshot(self) -> None:
+ """Test case for get_snapshot
- Restore a snapshot
+ Retrieve a snapshot
"""
pass
- def test_retrieve_a_snapshot(self) -> None:
- """Test case for retrieve_a_snapshot
+ def test_get_snapshots(self) -> None:
+ """Test case for get_snapshots
- Retrieve a snapshot
+ Retrieve list of snapshots with pagination
"""
pass
- def test_retrieve_list_of_snapshots_with_pagination(self) -> None:
- """Test case for retrieve_list_of_snapshots_with_pagination
+ def test_post_snapshot_restore(self) -> None:
+ """Test case for post_snapshot_restore
- Retrieve list of snapshots with pagination
+ Restore a snapshot
"""
pass
diff --git a/test/test_start_deployment.py b/test/test_start_deployment.py
index e88243b..cff2e0b 100644
--- a/test/test_start_deployment.py
+++ b/test/test_start_deployment.py
@@ -35,7 +35,7 @@ def make_instance(self, include_optional) -> StartDeployment:
model = StartDeployment()
if include_optional:
return StartDeployment(
- deployment = hyperstack.models.deployment_fieldsforstartdeployments.DeploymentFieldsforstartdeployments(
+ deployment = hyperstack.models.deployment_fields_for_start_deployments.Deployment_Fields_for_start_deployments(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
description = '',
id = 56,
diff --git a/test/test_stock_visibility_user_list_response.py b/test/test_stock_visibility_user_list_response.py
deleted file mode 100644
index e37035d..0000000
--- a/test/test_stock_visibility_user_list_response.py
+++ /dev/null
@@ -1,58 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.stock_visibility_user_list_response import StockVisibilityUserListResponse
-
-class TestStockVisibilityUserListResponse(unittest.TestCase):
- """StockVisibilityUserListResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> StockVisibilityUserListResponse:
- """Test StockVisibilityUserListResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `StockVisibilityUserListResponse`
- """
- model = StockVisibilityUserListResponse()
- if include_optional:
- return StockVisibilityUserListResponse(
- message = '',
- status = True,
- users = [
- hyperstack.models.single_visibility_user_response.SingleVisibilityUserResponse(
- id = 56,
- stock_visible = True,
- user_id = 56, )
- ]
- )
- else:
- return StockVisibilityUserListResponse(
- )
- """
-
- def testStockVisibilityUserListResponse(self):
- """Test StockVisibilityUserListResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_stock_visibility_user_payload.py b/test/test_stock_visibility_user_payload.py
deleted file mode 100644
index 2f210fc..0000000
--- a/test/test_stock_visibility_user_payload.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.stock_visibility_user_payload import StockVisibilityUserPayload
-
-class TestStockVisibilityUserPayload(unittest.TestCase):
- """StockVisibilityUserPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> StockVisibilityUserPayload:
- """Test StockVisibilityUserPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `StockVisibilityUserPayload`
- """
- model = StockVisibilityUserPayload()
- if include_optional:
- return StockVisibilityUserPayload(
- user_ids = [
- 56
- ]
- )
- else:
- return StockVisibilityUserPayload(
- user_ids = [
- 56
- ],
- )
- """
-
- def testStockVisibilityUserPayload(self):
- """Test StockVisibilityUserPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_subscribeorunsubscribeupdatepayload.py b/test/test_subscribe_or_unsubscribe_update_payload.py
similarity index 61%
rename from test/test_subscribeorunsubscribeupdatepayload.py
rename to test/test_subscribe_or_unsubscribe_update_payload.py
index ac4c7c4..b49dc7a 100644
--- a/test/test_subscribeorunsubscribeupdatepayload.py
+++ b/test/test_subscribe_or_unsubscribe_update_payload.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.subscribeorunsubscribeupdatepayload import Subscribeorunsubscribeupdatepayload
+from hyperstack.models.subscribe_or_unsubscribe_update_payload import SubscribeOrUnsubscribeUpdatePayload
-class TestSubscribeorunsubscribeupdatepayload(unittest.TestCase):
- """Subscribeorunsubscribeupdatepayload unit test stubs"""
+class TestSubscribeOrUnsubscribeUpdatePayload(unittest.TestCase):
+ """SubscribeOrUnsubscribeUpdatePayload unit test stubs"""
def setUp(self):
pass
@@ -25,26 +25,26 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> Subscribeorunsubscribeupdatepayload:
- """Test Subscribeorunsubscribeupdatepayload
+ def make_instance(self, include_optional) -> SubscribeOrUnsubscribeUpdatePayload:
+ """Test SubscribeOrUnsubscribeUpdatePayload
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `Subscribeorunsubscribeupdatepayload`
+ # uncomment below to create an instance of `SubscribeOrUnsubscribeUpdatePayload`
"""
- model = Subscribeorunsubscribeupdatepayload()
+ model = SubscribeOrUnsubscribeUpdatePayload()
if include_optional:
- return Subscribeorunsubscribeupdatepayload(
+ return SubscribeOrUnsubscribeUpdatePayload(
subscribe = True
)
else:
- return Subscribeorunsubscribeupdatepayload(
+ return SubscribeOrUnsubscribeUpdatePayload(
subscribe = True,
)
"""
- def testSubscribeorunsubscribeupdatepayload(self):
- """Test Subscribeorunsubscribeupdatepayload"""
+ def testSubscribeOrUnsubscribeUpdatePayload(self):
+ """Test SubscribeOrUnsubscribeUpdatePayload"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_template.py b/test/test_template.py
index bcdb3cc..660f205 100644
--- a/test/test_template.py
+++ b/test/test_template.py
@@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> Template:
return Template(
message = '',
status = True,
- template = hyperstack.models.template_fields.TemplateFields(
+ template = hyperstack.models.template_fields.Template_Fields(
content = '',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
description = '',
diff --git a/test/test_templates.py b/test/test_templates.py
index deb11c4..b119644 100644
--- a/test/test_templates.py
+++ b/test/test_templates.py
@@ -38,7 +38,7 @@ def make_instance(self, include_optional) -> Templates:
message = '',
status = True,
templates = [
- hyperstack.models.template_fields.TemplateFields(
+ hyperstack.models.template_fields.Template_Fields(
content = '',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
description = '',
diff --git a/test/test_token_based_billing_history_response.py b/test/test_token_based_billing_history_response.py
new file mode 100644
index 0000000..9eeac21
--- /dev/null
+++ b/test/test_token_based_billing_history_response.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.token_based_billing_history_response import TokenBasedBillingHistoryResponse
+
+class TestTokenBasedBillingHistoryResponse(unittest.TestCase):
+ """TokenBasedBillingHistoryResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> TokenBasedBillingHistoryResponse:
+ """Test TokenBasedBillingHistoryResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `TokenBasedBillingHistoryResponse`
+ """
+ model = TokenBasedBillingHistoryResponse()
+ if include_optional:
+ return TokenBasedBillingHistoryResponse(
+ billing_history_serverless_inference = hyperstack.models.billing_history_serverless_inference.billing_history_serverless_inference(
+ billing_history = [
+ hyperstack.models.billing_history.billing_history(
+ attributes = hyperstack.models.attributes.attributes(
+ base_model = '',
+ base_model_display_name = '',
+ infrahub_id = 56,
+ lora_adapter = '',
+ resource_name = '',
+ status = '', ),
+ metrics = hyperstack.models.metrics.metrics(), )
+ ],
+ org_id = 56,
+ pagination = hyperstack.models.pagination.pagination(
+ page = 56,
+ pages = 56,
+ per_page = 56, ),
+ total_count = 56, ),
+ message = '',
+ success = True
+ )
+ else:
+ return TokenBasedBillingHistoryResponse(
+ )
+ """
+
+ def testTokenBasedBillingHistoryResponse(self):
+ """Test TokenBasedBillingHistoryResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_token_fields.py b/test/test_token_fields.py
deleted file mode 100644
index d0fb464..0000000
--- a/test/test_token_fields.py
+++ /dev/null
@@ -1,53 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.token_fields import TokenFields
-
-class TestTokenFields(unittest.TestCase):
- """TokenFields unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> TokenFields:
- """Test TokenFields
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `TokenFields`
- """
- model = TokenFields()
- if include_optional:
- return TokenFields(
- access_token = '',
- id_token = '',
- refresh_token = ''
- )
- else:
- return TokenFields(
- )
- """
-
- def testTokenFields(self):
- """Test TokenFields"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_update_contract_payload.py b/test/test_update_contract_payload.py
deleted file mode 100644
index c9eb1d0..0000000
--- a/test/test_update_contract_payload.py
+++ /dev/null
@@ -1,71 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.update_contract_payload import UpdateContractPayload
-
-class TestUpdateContractPayload(unittest.TestCase):
- """UpdateContractPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> UpdateContractPayload:
- """Test UpdateContractPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `UpdateContractPayload`
- """
- model = UpdateContractPayload()
- if include_optional:
- return UpdateContractPayload(
- description = '',
- discount_resources = [
- hyperstack.models.contract_resource_payload.ContractResourcePayload(
- discount_amount = 1.337,
- discount_percent = 1.337,
- discount_type = '',
- resource_count = 56,
- resource_id = 56, )
- ],
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- expiration_policy = 56,
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return UpdateContractPayload(
- discount_resources = [
- hyperstack.models.contract_resource_payload.ContractResourcePayload(
- discount_amount = 1.337,
- discount_percent = 1.337,
- discount_type = '',
- resource_count = 56,
- resource_id = 56, )
- ],
- expiration_policy = 56,
- )
- """
-
- def testUpdateContractPayload(self):
- """Test UpdateContractPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_update_discounts_payload.py b/test/test_update_discounts_payload.py
deleted file mode 100644
index 121ca65..0000000
--- a/test/test_update_discounts_payload.py
+++ /dev/null
@@ -1,68 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.update_discounts_payload import UpdateDiscountsPayload
-
-class TestUpdateDiscountsPayload(unittest.TestCase):
- """UpdateDiscountsPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> UpdateDiscountsPayload:
- """Test UpdateDiscountsPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `UpdateDiscountsPayload`
- """
- model = UpdateDiscountsPayload()
- if include_optional:
- return UpdateDiscountsPayload(
- discount_resources = [
- hyperstack.models.discount_resource_payload.DiscountResourcePayload(
- discount_amount = 1.337,
- discount_percent = 1.337,
- discount_type = '',
- resource_id = 56, )
- ],
- discount_status = '',
- end_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- start_date = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
- )
- else:
- return UpdateDiscountsPayload(
- discount_resources = [
- hyperstack.models.discount_resource_payload.DiscountResourcePayload(
- discount_amount = 1.337,
- discount_percent = 1.337,
- discount_type = '',
- resource_id = 56, )
- ],
- discount_status = '',
- )
- """
-
- def testUpdateDiscountsPayload(self):
- """Test UpdateDiscountsPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_update_discounts_status_payload.py b/test/test_update_discounts_status_payload.py
deleted file mode 100644
index e23254f..0000000
--- a/test/test_update_discounts_status_payload.py
+++ /dev/null
@@ -1,52 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.update_discounts_status_payload import UpdateDiscountsStatusPayload
-
-class TestUpdateDiscountsStatusPayload(unittest.TestCase):
- """UpdateDiscountsStatusPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> UpdateDiscountsStatusPayload:
- """Test UpdateDiscountsStatusPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `UpdateDiscountsStatusPayload`
- """
- model = UpdateDiscountsStatusPayload()
- if include_optional:
- return UpdateDiscountsStatusPayload(
- discount_status = ''
- )
- else:
- return UpdateDiscountsStatusPayload(
- discount_status = '',
- )
- """
-
- def testUpdateDiscountsStatusPayload(self):
- """Test UpdateDiscountsStatusPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_update_gpu.py b/test/test_update_gpu.py
deleted file mode 100644
index 9134009..0000000
--- a/test/test_update_gpu.py
+++ /dev/null
@@ -1,55 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.update_gpu import UpdateGPU
-
-class TestUpdateGPU(unittest.TestCase):
- """UpdateGPU unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> UpdateGPU:
- """Test UpdateGPU
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `UpdateGPU`
- """
- model = UpdateGPU()
- if include_optional:
- return UpdateGPU(
- example_metadata = '{"key": "value"}',
- name = '',
- regions = [
- ''
- ]
- )
- else:
- return UpdateGPU(
- )
- """
-
- def testUpdateGPU(self):
- """Test UpdateGPU"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_create_update_policy_response_model.py b/test/test_update_keypair_name_response.py
similarity index 50%
rename from test/test_create_update_policy_response_model.py
rename to test/test_update_keypair_name_response.py
index 22977b9..bd2fcf6 100644
--- a/test/test_create_update_policy_response_model.py
+++ b/test/test_update_keypair_name_response.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.create_update_policy_response_model import CreateUpdatePolicyResponseModel
+from hyperstack.models.update_keypair_name_response import UpdateKeypairNameResponse
-class TestCreateUpdatePolicyResponseModel(unittest.TestCase):
- """CreateUpdatePolicyResponseModel unit test stubs"""
+class TestUpdateKeypairNameResponse(unittest.TestCase):
+ """UpdateKeypairNameResponse unit test stubs"""
def setUp(self):
pass
@@ -25,37 +25,40 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> CreateUpdatePolicyResponseModel:
- """Test CreateUpdatePolicyResponseModel
+ def make_instance(self, include_optional) -> UpdateKeypairNameResponse:
+ """Test UpdateKeypairNameResponse
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `CreateUpdatePolicyResponseModel`
+ # uncomment below to create an instance of `UpdateKeypairNameResponse`
"""
- model = CreateUpdatePolicyResponseModel()
+ model = UpdateKeypairNameResponse()
if include_optional:
- return CreateUpdatePolicyResponseModel(
- message = '',
- policy = hyperstack.models.policy_fields.PolicyFields(
+ return UpdateKeypairNameResponse(
+ keypair = hyperstack.models.keypair_fields.Keypair_Fields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- description = '',
+ environment = hyperstack.models.keypair_environment_fields.Keypair_Environment_Fields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ features = hyperstack.models.keypair_environment_features.Keypair_Environment_Features(
+ green_status = 'GREEN',
+ network_optimised = True, ),
+ id = 56,
+ name = '',
+ region = '', ),
+ fingerprint = '',
id = 56,
name = '',
- permissions = [
- hyperstack.models.policy_permission_fields.PolicyPermissionFields(
- id = 56,
- permission = '',
- resource = '', )
- ], ),
+ public_key = '', ),
+ message = '',
status = True
)
else:
- return CreateUpdatePolicyResponseModel(
+ return UpdateKeypairNameResponse(
)
"""
- def testCreateUpdatePolicyResponseModel(self):
- """Test CreateUpdatePolicyResponseModel"""
+ def testUpdateKeypairNameResponse(self):
+ """Test UpdateKeypairNameResponse"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_update_volume_attachment_payload.py b/test/test_update_volume_attachment_payload.py
new file mode 100644
index 0000000..a61e058
--- /dev/null
+++ b/test/test_update_volume_attachment_payload.py
@@ -0,0 +1,51 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.update_volume_attachment_payload import UpdateVolumeAttachmentPayload
+
+class TestUpdateVolumeAttachmentPayload(unittest.TestCase):
+ """UpdateVolumeAttachmentPayload unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateVolumeAttachmentPayload:
+ """Test UpdateVolumeAttachmentPayload
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateVolumeAttachmentPayload`
+ """
+ model = UpdateVolumeAttachmentPayload()
+ if include_optional:
+ return UpdateVolumeAttachmentPayload(
+ protected = True
+ )
+ else:
+ return UpdateVolumeAttachmentPayload(
+ )
+ """
+
+ def testUpdateVolumeAttachmentPayload(self):
+ """Test UpdateVolumeAttachmentPayload"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_verify_api_key_payload.py b/test/test_update_volume_payload.py
similarity index 65%
rename from test/test_verify_api_key_payload.py
rename to test/test_update_volume_payload.py
index 57e8069..270f0f7 100644
--- a/test/test_verify_api_key_payload.py
+++ b/test/test_update_volume_payload.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.verify_api_key_payload import VerifyApiKeyPayload
+from hyperstack.models.update_volume_payload import UpdateVolumePayload
-class TestVerifyApiKeyPayload(unittest.TestCase):
- """VerifyApiKeyPayload unit test stubs"""
+class TestUpdateVolumePayload(unittest.TestCase):
+ """UpdateVolumePayload unit test stubs"""
def setUp(self):
pass
@@ -25,26 +25,26 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> VerifyApiKeyPayload:
- """Test VerifyApiKeyPayload
+ def make_instance(self, include_optional) -> UpdateVolumePayload:
+ """Test UpdateVolumePayload
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `VerifyApiKeyPayload`
+ # uncomment below to create an instance of `UpdateVolumePayload`
"""
- model = VerifyApiKeyPayload()
+ model = UpdateVolumePayload()
if include_optional:
- return VerifyApiKeyPayload(
- api_key = ''
+ return UpdateVolumePayload(
+ environment_name = ''
)
else:
- return VerifyApiKeyPayload(
- api_key = '',
+ return UpdateVolumePayload(
+ environment_name = '',
)
"""
- def testVerifyApiKeyPayload(self):
- """Test VerifyApiKeyPayload"""
+ def testUpdateVolumePayload(self):
+ """Test UpdateVolumePayload"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_update_volume_response.py b/test/test_update_volume_response.py
new file mode 100644
index 0000000..9439414
--- /dev/null
+++ b/test/test_update_volume_response.py
@@ -0,0 +1,78 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.update_volume_response import UpdateVolumeResponse
+
+class TestUpdateVolumeResponse(unittest.TestCase):
+ """UpdateVolumeResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UpdateVolumeResponse:
+ """Test UpdateVolumeResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UpdateVolumeResponse`
+ """
+ model = UpdateVolumeResponse()
+ if include_optional:
+ return UpdateVolumeResponse(
+ message = '',
+ status = True,
+ updates = None,
+ volume = hyperstack.models.volume_fields.Volume_Fields(
+ attachments = [
+ hyperstack.models.attachments_fields_for_volume.Attachments_Fields_for_Volume(
+ device = '',
+ id = 56,
+ instance_id = 56,
+ protected = True,
+ status = '', )
+ ],
+ bootable = True,
+ callback_url = '',
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ description = '',
+ environment = hyperstack.models.environment_fields_for_volume.Environment_Fields_for_Volume(
+ features = hyperstack.models.features.features(),
+ name = '',
+ region = '', ),
+ id = 56,
+ image_id = 56,
+ name = '',
+ os_image = '',
+ size = 56,
+ status = '',
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ volume_type = '', )
+ )
+ else:
+ return UpdateVolumeResponse(
+ )
+ """
+
+ def testUpdateVolumeResponse(self):
+ """Test UpdateVolumeResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_uris.py b/test/test_uris.py
new file mode 100644
index 0000000..0b8721d
--- /dev/null
+++ b/test/test_uris.py
@@ -0,0 +1,57 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.uris import URIs
+
+class TestURIs(unittest.TestCase):
+ """URIs unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> URIs:
+ """Test URIs
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `URIs`
+ """
+ model = URIs()
+ if include_optional:
+ return URIs(
+ api_doc = '',
+ api_uri = '',
+ auth = '',
+ console = '',
+ contact_us = '',
+ doc = '',
+ landing_page = ''
+ )
+ else:
+ return URIs(
+ )
+ """
+
+ def testURIs(self):
+ """Test URIs"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_user_api.py b/test/test_user_api.py
index d9cb026..cf9c208 100644
--- a/test/test_user_api.py
+++ b/test/test_user_api.py
@@ -26,24 +26,24 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
- def test_get_fetch_user_info(self) -> None:
- """Test case for get_fetch_user_info
+ def test_get_user(self) -> None:
+ """Test case for get_user
- GET: Fetch User Info
+ GET: Retrieve billing info
"""
pass
- def test_post_insert_user_info(self) -> None:
- """Test case for post_insert_user_info
+ def test_post_user(self) -> None:
+ """Test case for post_user
- POST: Insert user info
+ POST: Insert billing info
"""
pass
- def test_put_update_user_info(self) -> None:
- """Test case for put_update_user_info
+ def test_put_user(self) -> None:
+ """Test case for put_user
- PUT: Update user info
+ PUT: Update billing info
"""
pass
diff --git a/test/test_userinfopostpayload.py b/test/test_user_info_post_payload.py
similarity index 74%
rename from test/test_userinfopostpayload.py
rename to test/test_user_info_post_payload.py
index 7d385a0..3504985 100644
--- a/test/test_userinfopostpayload.py
+++ b/test/test_user_info_post_payload.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.userinfopostpayload import Userinfopostpayload
+from hyperstack.models.user_info_post_payload import UserInfoPostPayload
-class TestUserinfopostpayload(unittest.TestCase):
- """Userinfopostpayload unit test stubs"""
+class TestUserInfoPostPayload(unittest.TestCase):
+ """UserInfoPostPayload unit test stubs"""
def setUp(self):
pass
@@ -25,16 +25,16 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> Userinfopostpayload:
- """Test Userinfopostpayload
+ def make_instance(self, include_optional) -> UserInfoPostPayload:
+ """Test UserInfoPostPayload
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `Userinfopostpayload`
+ # uncomment below to create an instance of `UserInfoPostPayload`
"""
- model = Userinfopostpayload()
+ model = UserInfoPostPayload()
if include_optional:
- return Userinfopostpayload(
+ return UserInfoPostPayload(
billing_address1 = '',
billing_address2 = '',
business = True,
@@ -48,15 +48,15 @@ def make_instance(self, include_optional) -> Userinfopostpayload:
zip_code = ''
)
else:
- return Userinfopostpayload(
+ return UserInfoPostPayload(
business = True,
country = '',
zip_code = '',
)
"""
- def testUserinfopostpayload(self):
- """Test Userinfopostpayload"""
+ def testUserInfoPostPayload(self):
+ """Test UserInfoPostPayload"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_user_organizations_response.py b/test/test_user_organizations_response.py
new file mode 100644
index 0000000..7a6dcaf
--- /dev/null
+++ b/test/test_user_organizations_response.py
@@ -0,0 +1,77 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.user_organizations_response import UserOrganizationsResponse
+
+class TestUserOrganizationsResponse(unittest.TestCase):
+ """UserOrganizationsResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> UserOrganizationsResponse:
+ """Test UserOrganizationsResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `UserOrganizationsResponse`
+ """
+ model = UserOrganizationsResponse()
+ if include_optional:
+ return UserOrganizationsResponse(
+ organizations = [
+ hyperstack.models.organization_fields.OrganizationFields(
+ created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ credit = 56,
+ id = 56,
+ name = '',
+ threshold = 56,
+ total_clusters = 56,
+ total_containers = 56,
+ total_instances = 56,
+ total_volumes = 56,
+ users = [
+ hyperstack.models.organization_user_response_model.OrganizationUserResponseModel(
+ email = '',
+ id = 56,
+ joined_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ last_login = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ name = '',
+ rbac_roles = [
+ hyperstack.models.rbac_role_field.RbacRoleField(
+ name = '', )
+ ],
+ role = '',
+ sub = '',
+ username = '', )
+ ], )
+ ]
+ )
+ else:
+ return UserOrganizationsResponse(
+ )
+ """
+
+ def testUserOrganizationsResponse(self):
+ """Test UserOrganizationsResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()
diff --git a/test/test_user_transfer_payload.py b/test/test_user_transfer_payload.py
deleted file mode 100644
index 667d407..0000000
--- a/test/test_user_transfer_payload.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.user_transfer_payload import UserTransferPayload
-
-class TestUserTransferPayload(unittest.TestCase):
- """UserTransferPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> UserTransferPayload:
- """Test UserTransferPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `UserTransferPayload`
- """
- model = UserTransferPayload()
- if include_optional:
- return UserTransferPayload(
- org_id = 56,
- role = ''
- )
- else:
- return UserTransferPayload(
- org_id = 56,
- role = '',
- )
- """
-
- def testUserTransferPayload(self):
- """Test UserTransferPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_users_info_fields.py b/test/test_users_info_fields.py
index f331fb8..9aac285 100644
--- a/test/test_users_info_fields.py
+++ b/test/test_users_info_fields.py
@@ -47,6 +47,7 @@ def make_instance(self, include_optional) -> UsersInfoFields:
organization_id = 56,
phone = '',
state = '',
+ stripe_user_id = '',
vat_number = '',
zip_code = ''
)
diff --git a/test/test_users_info_list_response.py b/test/test_users_info_list_response.py
index ddfb2ea..960c20e 100644
--- a/test/test_users_info_list_response.py
+++ b/test/test_users_info_list_response.py
@@ -50,6 +50,7 @@ def make_instance(self, include_optional) -> UsersInfoListResponse:
organization_id = 56,
phone = '',
state = '',
+ stripe_user_id = '',
vat_number = '',
zip_code = '', )
)
diff --git a/test/test_verify_api_key_response_model.py b/test/test_verify_api_key_response_model.py
deleted file mode 100644
index d0f0da2..0000000
--- a/test/test_verify_api_key_response_model.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.verify_api_key_response_model import VerifyApiKeyResponseModel
-
-class TestVerifyApiKeyResponseModel(unittest.TestCase):
- """VerifyApiKeyResponseModel unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> VerifyApiKeyResponseModel:
- """Test VerifyApiKeyResponseModel
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `VerifyApiKeyResponseModel`
- """
- model = VerifyApiKeyResponseModel()
- if include_optional:
- return VerifyApiKeyResponseModel(
- api_key = hyperstack.models.api_key_verify_fields.ApiKeyVerifyFields(
- org_id = 56,
- sub = '',
- user_id = 56,
- user_role = '', ),
- message = '',
- status = True
- )
- else:
- return VerifyApiKeyResponseModel(
- )
- """
-
- def testVerifyApiKeyResponseModel(self):
- """Test VerifyApiKeyResponseModel"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_virtual_machine_api.py b/test/test_virtual_machine_api.py
index b741ab7..4fc18c1 100644
--- a/test/test_virtual_machine_api.py
+++ b/test/test_virtual_machine_api.py
@@ -26,129 +26,143 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
- def test_add_firewall_rule_to_virtual_machine(self) -> None:
- """Test case for add_firewall_rule_to_virtual_machine
+ def test_delete_instance(self) -> None:
+ """Test case for delete_instance
- Add firewall rule to virtual machine
+ Delete virtual machine
"""
pass
- def test_attach_firewalls_to_a_virtual_machine(self) -> None:
- """Test case for attach_firewalls_to_a_virtual_machine
+ def test_delete_security_rule(self) -> None:
+ """Test case for delete_security_rule
- Attach firewalls to a virtual machine
+ Delete firewall rule from virtual machine
"""
pass
- def test_create_snapshot_from_a_virtual_machine(self) -> None:
- """Test case for create_snapshot_from_a_virtual_machine
+ def test_fetch_virtual_machine_name_availability(self) -> None:
+ """Test case for fetch_virtual_machine_name_availability
- Create snapshot from a virtual machine
+ Fetch virtual machine name availability
"""
pass
- def test_create_virtual_machines(self) -> None:
- """Test case for create_virtual_machines
+ def test_get_contract_instances(self) -> None:
+ """Test case for get_contract_instances
- Create virtual machines
+ Retrieve virtual machines associated with a contract
"""
pass
- def test_delete_firewall_rule_from_virtual_machine(self) -> None:
- """Test case for delete_firewall_rule_from_virtual_machine
+ def test_get_instance(self) -> None:
+ """Test case for get_instance
- Delete firewall rule from virtual machine
+ List virtual machines
"""
pass
- def test_delete_virtual_machine(self) -> None:
- """Test case for delete_virtual_machine
+ def test_get_instance2(self) -> None:
+ """Test case for get_instance2
- Delete virtual machine
+ Retrieve virtual machine details
"""
pass
- def test_edit_virtual_machine_labels(self) -> None:
- """Test case for edit_virtual_machine_labels
+ def test_get_instance3(self) -> None:
+ """Test case for get_instance3
- Edit virtual machine labels
+ Hard reboot virtual machine
"""
pass
- def test_fetch_virtual_machine_name_availability(self) -> None:
- """Test case for fetch_virtual_machine_name_availability
+ def test_get_instance4(self) -> None:
+ """Test case for get_instance4
- Fetch virtual machine name availability
+ Start virtual machine
"""
pass
- def test_hard_reboot_virtual_machine(self) -> None:
- """Test case for hard_reboot_virtual_machine
+ def test_get_instance5(self) -> None:
+ """Test case for get_instance5
- Hard reboot virtual machine
+ Stop virtual machine
"""
pass
- def test_hibernate_virtual_machine(self) -> None:
- """Test case for hibernate_virtual_machine
+ def test_get_instance_hibernate(self) -> None:
+ """Test case for get_instance_hibernate
Hibernate virtual machine
"""
pass
- def test_list_virtual_machines(self) -> None:
- """Test case for list_virtual_machines
+ def test_get_instance_hibernate_restore(self) -> None:
+ """Test case for get_instance_hibernate_restore
- List virtual machines
+ Restore virtual machine from hibernation
"""
pass
- def test_resize_virtual_machine(self) -> None:
- """Test case for resize_virtual_machine
+ def test_get_instance_logs(self) -> None:
+ """Test case for get_instance_logs
- Resize virtual machine
+ Get virtual machine logs
"""
pass
- def test_restore_virtual_machine_from_hibernation(self) -> None:
- """Test case for restore_virtual_machine_from_hibernation
+ def test_get_instance_metrics(self) -> None:
+ """Test case for get_instance_metrics
- Restore virtual machine from hibernation
+ Retrieve virtual machine performance metrics
"""
pass
- def test_retrieve_virtual_machine_details(self) -> None:
- """Test case for retrieve_virtual_machine_details
+ def test_post_instance(self) -> None:
+ """Test case for post_instance
- Retrieve virtual machine details
+ Create virtual machines
"""
pass
- def test_retrieve_virtual_machine_performance_metrics(self) -> None:
- """Test case for retrieve_virtual_machine_performance_metrics
+ def test_post_instance_attach_firewalls(self) -> None:
+ """Test case for post_instance_attach_firewalls
- Retrieve virtual machine performance metrics
+ Attach firewalls to a virtual machine
"""
pass
- def test_retrieve_virtual_machines_associated_with_a_contract(self) -> None:
- """Test case for retrieve_virtual_machines_associated_with_a_contract
+ def test_post_instance_logs(self) -> None:
+ """Test case for post_instance_logs
- Retrieve virtual machines associated with a contract
+ Request virtual machine logs
"""
pass
- def test_start_virtual_machine(self) -> None:
- """Test case for start_virtual_machine
+ def test_post_instance_resize(self) -> None:
+ """Test case for post_instance_resize
- Start virtual machine
+ Resize virtual machine
"""
pass
- def test_stop_virtual_machine(self) -> None:
- """Test case for stop_virtual_machine
+ def test_post_security_rule(self) -> None:
+ """Test case for post_security_rule
- Stop virtual machine
+ Add firewall rule to virtual machine
+ """
+ pass
+
+ def test_post_snapshots(self) -> None:
+ """Test case for post_snapshots
+
+ Create snapshot from a virtual machine
+ """
+ pass
+
+ def test_put_labels(self) -> None:
+ """Test case for put_labels
+
+ Edit virtual machine labels
"""
pass
diff --git a/test/test_virtual_machine_usage.py b/test/test_virtual_machine_usage.py
deleted file mode 100644
index 465c91c..0000000
--- a/test/test_virtual_machine_usage.py
+++ /dev/null
@@ -1,54 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.virtual_machine_usage import VirtualMachineUsage
-
-class TestVirtualMachineUsage(unittest.TestCase):
- """VirtualMachineUsage unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> VirtualMachineUsage:
- """Test VirtualMachineUsage
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `VirtualMachineUsage`
- """
- model = VirtualMachineUsage()
- if include_optional:
- return VirtualMachineUsage(
- id = 56,
- name = '',
- status = '',
- total_usage_time = 56
- )
- else:
- return VirtualMachineUsage(
- )
- """
-
- def testVirtualMachineUsage(self):
- """Test VirtualMachineUsage"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_vm_usage_request_payload.py b/test/test_vm_usage_request_payload.py
deleted file mode 100644
index 380276c..0000000
--- a/test/test_vm_usage_request_payload.py
+++ /dev/null
@@ -1,56 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.vm_usage_request_payload import VMUsageRequestPayload
-
-class TestVMUsageRequestPayload(unittest.TestCase):
- """VMUsageRequestPayload unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> VMUsageRequestPayload:
- """Test VMUsageRequestPayload
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `VMUsageRequestPayload`
- """
- model = VMUsageRequestPayload()
- if include_optional:
- return VMUsageRequestPayload(
- vm_ids = [
- 56
- ]
- )
- else:
- return VMUsageRequestPayload(
- vm_ids = [
- 56
- ],
- )
- """
-
- def testVMUsageRequestPayload(self):
- """Test VMUsageRequestPayload"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_vm_usage_response.py b/test/test_vm_usage_response.py
deleted file mode 100644
index 41b5af8..0000000
--- a/test/test_vm_usage_response.py
+++ /dev/null
@@ -1,60 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.vm_usage_response import VMUsageResponse
-
-class TestVMUsageResponse(unittest.TestCase):
- """VMUsageResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> VMUsageResponse:
- """Test VMUsageResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `VMUsageResponse`
- """
- model = VMUsageResponse()
- if include_optional:
- return VMUsageResponse(
- message = '',
- org_id = 56,
- status = True,
- virtual_machines = [
- hyperstack.models.virtual_machine_usage.VirtualMachineUsage(
- id = 56,
- name = '',
- status = '',
- total_usage_time = 56, )
- ]
- )
- else:
- return VMUsageResponse(
- )
- """
-
- def testVMUsageResponse(self):
- """Test VMUsageResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_vnc_url_api.py b/test/test_vnc_url_api.py
index ef23d80..ea43102 100644
--- a/test/test_vnc_url_api.py
+++ b/test/test_vnc_url_api.py
@@ -26,15 +26,15 @@ def setUp(self) -> None:
def tearDown(self) -> None:
pass
- def test_get_vnc_console_link(self) -> None:
- """Test case for get_vnc_console_link
+ def test_get_vnc_url(self) -> None:
+ """Test case for get_vnc_url
Get VNC Console Link
"""
pass
- def test_request_instance_console(self) -> None:
- """Test case for request_instance_console
+ def test_get_vnc_url2(self) -> None:
+ """Test case for get_vnc_url2
Request Instance Console
"""
diff --git a/test/test_vncurl.py b/test/test_vncurl.py
index 1258577..2bd1bdd 100644
--- a/test/test_vncurl.py
+++ b/test/test_vncurl.py
@@ -37,7 +37,7 @@ def make_instance(self, include_optional) -> VNCURL:
return VNCURL(
message = '',
status = True,
- vnc_url = hyperstack.models.vncurl_fields.VNCURLFields(
+ vnc_url = hyperstack.models.vnc_url_fields.VNC_URL_Fields(
id = 56,
vnc_url = '', )
)
diff --git a/test/test_volume.py b/test/test_volume.py
index 2e2f8e4..80574db 100644
--- a/test/test_volume.py
+++ b/test/test_volume.py
@@ -37,13 +37,23 @@ def make_instance(self, include_optional) -> Volume:
return Volume(
message = '',
status = True,
- volume = hyperstack.models.volume_fields.VolumeFields(
+ volume = hyperstack.models.volume_fields.Volume_Fields(
+ attachments = [
+ hyperstack.models.attachments_fields_for_volume.Attachments_Fields_for_Volume(
+ device = '',
+ id = 56,
+ instance_id = 56,
+ protected = True,
+ status = '', )
+ ],
bootable = True,
callback_url = '',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
description = '',
- environment = hyperstack.models.environment_fieldsfor_volume.EnvironmentFieldsforVolume(
- name = '', ),
+ environment = hyperstack.models.environment_fields_for_volume.Environment_Fields_for_Volume(
+ features = hyperstack.models.features.features(),
+ name = '',
+ region = '', ),
id = 56,
image_id = 56,
name = '',
diff --git a/test/test_volume_api.py b/test/test_volume_api.py
index d665765..4a87344 100644
--- a/test/test_volume_api.py
+++ b/test/test_volume_api.py
@@ -68,6 +68,13 @@ def test_list_volumes(self) -> None:
"""
pass
+ def test_update_volume(self) -> None:
+ """Test case for update_volume
+
+ Update volume fields
+ """
+ pass
+
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_volume_attachment_api.py b/test/test_volume_attachment_api.py
index 65d4a69..5c33e66 100644
--- a/test/test_volume_attachment_api.py
+++ b/test/test_volume_attachment_api.py
@@ -40,6 +40,13 @@ def test_detach_volumes_from_virtual_machine(self) -> None:
"""
pass
+ def test_update_a_volume_attachment(self) -> None:
+ """Test case for update_a_volume_attachment
+
+ Update a volume attachment
+ """
+ pass
+
if __name__ == '__main__':
unittest.main()
diff --git a/test/test_volume_attachment_fields.py b/test/test_volume_attachment_fields.py
index 74c3520..ec94731 100644
--- a/test/test_volume_attachment_fields.py
+++ b/test/test_volume_attachment_fields.py
@@ -37,8 +37,10 @@ def make_instance(self, include_optional) -> VolumeAttachmentFields:
return VolumeAttachmentFields(
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
device = '',
+ id = 56,
+ protected = True,
status = '',
- volume = hyperstack.models.volume_fieldsfor_instance.VolumeFieldsforInstance(
+ volume = hyperstack.models.volume_fields_for_instance.Volume_Fields_for_Instance(
bootable = True,
description = '',
id = 56,
diff --git a/test/test_volume_fields.py b/test/test_volume_fields.py
index 00d9ce9..ee51d0f 100644
--- a/test/test_volume_fields.py
+++ b/test/test_volume_fields.py
@@ -35,12 +35,22 @@ def make_instance(self, include_optional) -> VolumeFields:
model = VolumeFields()
if include_optional:
return VolumeFields(
+ attachments = [
+ hyperstack.models.attachments_fields_for_volume.Attachments_Fields_for_Volume(
+ device = '',
+ id = 56,
+ instance_id = 56,
+ protected = True,
+ status = '', )
+ ],
bootable = True,
callback_url = '',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
description = '',
- environment = hyperstack.models.environment_fieldsfor_volume.EnvironmentFieldsforVolume(
- name = '', ),
+ environment = hyperstack.models.environment_fields_for_volume.Environment_Fields_for_Volume(
+ features = hyperstack.models.features.features(),
+ name = '',
+ region = '', ),
id = 56,
image_id = 56,
name = '',
diff --git a/test/test_volume_fieldsfor_instance.py b/test/test_volume_fields_for_instance.py
similarity index 72%
rename from test/test_volume_fieldsfor_instance.py
rename to test/test_volume_fields_for_instance.py
index 4886551..f8d88c3 100644
--- a/test/test_volume_fieldsfor_instance.py
+++ b/test/test_volume_fields_for_instance.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.volume_fieldsfor_instance import VolumeFieldsforInstance
+from hyperstack.models.volume_fields_for_instance import VolumeFieldsForInstance
-class TestVolumeFieldsforInstance(unittest.TestCase):
- """VolumeFieldsforInstance unit test stubs"""
+class TestVolumeFieldsForInstance(unittest.TestCase):
+ """VolumeFieldsForInstance unit test stubs"""
def setUp(self):
pass
@@ -25,16 +25,16 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> VolumeFieldsforInstance:
- """Test VolumeFieldsforInstance
+ def make_instance(self, include_optional) -> VolumeFieldsForInstance:
+ """Test VolumeFieldsForInstance
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `VolumeFieldsforInstance`
+ # uncomment below to create an instance of `VolumeFieldsForInstance`
"""
- model = VolumeFieldsforInstance()
+ model = VolumeFieldsForInstance()
if include_optional:
- return VolumeFieldsforInstance(
+ return VolumeFieldsForInstance(
bootable = True,
description = '',
id = 56,
@@ -43,12 +43,12 @@ def make_instance(self, include_optional) -> VolumeFieldsforInstance:
volume_type = ''
)
else:
- return VolumeFieldsforInstance(
+ return VolumeFieldsForInstance(
)
"""
- def testVolumeFieldsforInstance(self):
- """Test VolumeFieldsforInstance"""
+ def testVolumeFieldsForInstance(self):
+ """Test VolumeFieldsForInstance"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_volume_status_change_fields.py b/test/test_volume_status_change_fields.py
deleted file mode 100644
index 3de92e6..0000000
--- a/test/test_volume_status_change_fields.py
+++ /dev/null
@@ -1,55 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.volume_status_change_fields import VolumeStatusChangeFields
-
-class TestVolumeStatusChangeFields(unittest.TestCase):
- """VolumeStatusChangeFields unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> VolumeStatusChangeFields:
- """Test VolumeStatusChangeFields
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `VolumeStatusChangeFields`
- """
- model = VolumeStatusChangeFields()
- if include_optional:
- return VolumeStatusChangeFields(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- current_status = '',
- id = 56,
- previous_status = '',
- volume_id = 56
- )
- else:
- return VolumeStatusChangeFields(
- )
- """
-
- def testVolumeStatusChangeFields(self):
- """Test VolumeStatusChangeFields"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_volumes.py b/test/test_volumes.py
index 20757a7..e056f4d 100644
--- a/test/test_volumes.py
+++ b/test/test_volumes.py
@@ -35,20 +35,32 @@ def make_instance(self, include_optional) -> Volumes:
model = Volumes()
if include_optional:
return Volumes(
+ count = 56,
message = '',
+ page = 56,
+ page_size = 56,
status = True,
- volume = [
- hyperstack.models.volume_fields.VolumeFields(
+ volumes = [
+ hyperstack.models.volumes_fields.Volumes_Fields(
+ attachments = [
+ hyperstack.models.attachments_fields_for_volume.Attachments_Fields_for_Volume(
+ device = '',
+ id = 56,
+ instance_id = 56,
+ protected = True,
+ status = '', )
+ ],
bootable = True,
callback_url = '',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
description = '',
- environment = hyperstack.models.environment_fieldsfor_volume.EnvironmentFieldsforVolume(
- name = '', ),
+ environment = hyperstack.models.environment_fields_for_volume.Environment_Fields_for_Volume(
+ features = hyperstack.models.features.features(),
+ name = '',
+ region = '', ),
id = 56,
image_id = 56,
name = '',
- os_image = '',
size = 56,
status = '',
updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
diff --git a/test/test_instances_summary_fields.py b/test/test_volumes_fields.py
similarity index 52%
rename from test/test_instances_summary_fields.py
rename to test/test_volumes_fields.py
index 60185e8..f6b148c 100644
--- a/test/test_instances_summary_fields.py
+++ b/test/test_volumes_fields.py
@@ -14,10 +14,10 @@
import unittest
-from hyperstack.models.instances_summary_fields import InstancesSummaryFields
+from hyperstack.models.volumes_fields import VolumesFields
-class TestInstancesSummaryFields(unittest.TestCase):
- """InstancesSummaryFields unit test stubs"""
+class TestVolumesFields(unittest.TestCase):
+ """VolumesFields unit test stubs"""
def setUp(self):
pass
@@ -25,41 +25,47 @@ def setUp(self):
def tearDown(self):
pass
- def make_instance(self, include_optional) -> InstancesSummaryFields:
- """Test InstancesSummaryFields
+ def make_instance(self, include_optional) -> VolumesFields:
+ """Test VolumesFields
include_optional is a boolean, when False only required
params are included, when True both required and
optional params are included """
- # uncomment below to create an instance of `InstancesSummaryFields`
+ # uncomment below to create an instance of `VolumesFields`
"""
- model = InstancesSummaryFields()
+ model = VolumesFields()
if include_optional:
- return InstancesSummaryFields(
+ return VolumesFields(
+ attachments = [
+ hyperstack.models.attachments_fields_for_volume.Attachments_Fields_for_Volume(
+ device = '',
+ id = 56,
+ instance_id = 56,
+ protected = True,
+ status = '', )
+ ],
+ bootable = True,
+ callback_url = '',
created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- environment = '',
- environment_id = 56,
- fixed_ip = '',
- flavor = '',
- flavor_id = 56,
- floating_ip = '',
- floating_ip_status = '',
+ description = '',
+ environment = hyperstack.models.environment_fields_for_volume.Environment_Fields_for_Volume(
+ features = hyperstack.models.features.features(),
+ name = '',
+ region = '', ),
id = 56,
- image = '',
image_id = 56,
- keypair = '',
- keypair_id = 56,
name = '',
- org_id = 56,
+ size = 56,
status = '',
- updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f')
+ updated_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
+ volume_type = ''
)
else:
- return InstancesSummaryFields(
+ return VolumesFields(
)
"""
- def testInstancesSummaryFields(self):
- """Test InstancesSummaryFields"""
+ def testVolumesFields(self):
+ """Test VolumesFields"""
# inst_req_only = self.make_instance(include_optional=False)
# inst_req_and_optional = self.make_instance(include_optional=True)
diff --git a/test/test_volumes_last_status_change_response.py b/test/test_volumes_last_status_change_response.py
deleted file mode 100644
index 3176086..0000000
--- a/test/test_volumes_last_status_change_response.py
+++ /dev/null
@@ -1,60 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.volumes_last_status_change_response import VolumesLastStatusChangeResponse
-
-class TestVolumesLastStatusChangeResponse(unittest.TestCase):
- """VolumesLastStatusChangeResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> VolumesLastStatusChangeResponse:
- """Test VolumesLastStatusChangeResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `VolumesLastStatusChangeResponse`
- """
- model = VolumesLastStatusChangeResponse()
- if include_optional:
- return VolumesLastStatusChangeResponse(
- message = '',
- status = True,
- volume_status_list = [
- hyperstack.models.volume_status_change_fields.VolumeStatusChangeFields(
- created_at = datetime.datetime.strptime('2013-10-20 19:20:30.00', '%Y-%m-%d %H:%M:%S.%f'),
- current_status = '',
- id = 56,
- previous_status = '',
- volume_id = 56, )
- ]
- )
- else:
- return VolumesLastStatusChangeResponse(
- )
- """
-
- def testVolumesLastStatusChangeResponse(self):
- """Test VolumesLastStatusChangeResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_warning_mail_log_fields.py b/test/test_warning_mail_log_fields.py
deleted file mode 100644
index df46983..0000000
--- a/test/test_warning_mail_log_fields.py
+++ /dev/null
@@ -1,57 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.warning_mail_log_fields import WarningMailLogFields
-
-class TestWarningMailLogFields(unittest.TestCase):
- """WarningMailLogFields unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> WarningMailLogFields:
- """Test WarningMailLogFields
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `WarningMailLogFields`
- """
- model = WarningMailLogFields()
- if include_optional:
- return WarningMailLogFields(
- content = '',
- created_at = '',
- id = 56,
- organization_id = 56,
- threshold = 56,
- topic = '',
- updated_at = ''
- )
- else:
- return WarningMailLogFields(
- )
- """
-
- def testWarningMailLogFields(self):
- """Test WarningMailLogFields"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_warning_mail_log_response.py b/test/test_warning_mail_log_response.py
deleted file mode 100644
index eabd6a9..0000000
--- a/test/test_warning_mail_log_response.py
+++ /dev/null
@@ -1,63 +0,0 @@
-# coding: utf-8
-
-"""
- Infrahub-API
-
- Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
-
- The version of the OpenAPI document: 1.0
- Generated by OpenAPI Generator (https://openapi-generator.tech)
-
- Do not edit the class manually.
-""" # noqa: E501
-
-
-import unittest
-
-from hyperstack.models.warning_mail_log_response import WarningMailLogResponse
-
-class TestWarningMailLogResponse(unittest.TestCase):
- """WarningMailLogResponse unit test stubs"""
-
- def setUp(self):
- pass
-
- def tearDown(self):
- pass
-
- def make_instance(self, include_optional) -> WarningMailLogResponse:
- """Test WarningMailLogResponse
- include_optional is a boolean, when False only required
- params are included, when True both required and
- optional params are included """
- # uncomment below to create an instance of `WarningMailLogResponse`
- """
- model = WarningMailLogResponse()
- if include_optional:
- return WarningMailLogResponse(
- data = [
- hyperstack.models.warning_mail_log_fields.WarningMailLogFields(
- content = '',
- created_at = '',
- id = 56,
- organization_id = 56,
- threshold = 56,
- topic = '',
- updated_at = '', )
- ],
- message = '',
- status = True,
- total = 56
- )
- else:
- return WarningMailLogResponse(
- )
- """
-
- def testWarningMailLogResponse(self):
- """Test WarningMailLogResponse"""
- # inst_req_only = self.make_instance(include_optional=False)
- # inst_req_and_optional = self.make_instance(include_optional=True)
-
-if __name__ == '__main__':
- unittest.main()
diff --git a/test/test_workload_billing_history_response.py b/test/test_workload_billing_history_response.py
new file mode 100644
index 0000000..c34f72b
--- /dev/null
+++ b/test/test_workload_billing_history_response.py
@@ -0,0 +1,70 @@
+# coding: utf-8
+
+"""
+ Infrahub-API
+
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
+
+ The version of the OpenAPI document: 1.0
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
+
+ Do not edit the class manually.
+""" # noqa: E501
+
+
+import unittest
+
+from hyperstack.models.workload_billing_history_response import WorkloadBillingHistoryResponse
+
+class TestWorkloadBillingHistoryResponse(unittest.TestCase):
+ """WorkloadBillingHistoryResponse unit test stubs"""
+
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+ def make_instance(self, include_optional) -> WorkloadBillingHistoryResponse:
+ """Test WorkloadBillingHistoryResponse
+ include_optional is a boolean, when False only required
+ params are included, when True both required and
+ optional params are included """
+ # uncomment below to create an instance of `WorkloadBillingHistoryResponse`
+ """
+ model = WorkloadBillingHistoryResponse()
+ if include_optional:
+ return WorkloadBillingHistoryResponse(
+ billing_history_fine_tuning = hyperstack.models.billing_history_fine_tuning.billing_history_fine_tuning(
+ billing_history = [
+ hyperstack.models.billing_history.billing_history(
+ attributes = hyperstack.models.attributes.attributes(
+ base_model = '',
+ base_model_display_name = '',
+ infrahub_id = 56,
+ lora_adapter = '',
+ resource_name = '',
+ status = '', ),
+ metrics = hyperstack.models.metrics.metrics(), )
+ ],
+ org_id = 56,
+ pagination = hyperstack.models.pagination.pagination(
+ page = 56,
+ pages = 56,
+ per_page = 56, ),
+ total_count = 56, ),
+ message = '',
+ success = True
+ )
+ else:
+ return WorkloadBillingHistoryResponse(
+ )
+ """
+
+ def testWorkloadBillingHistoryResponse(self):
+ """Test WorkloadBillingHistoryResponse"""
+ # inst_req_only = self.make_instance(include_optional=False)
+ # inst_req_and_optional = self.make_instance(include_optional=True)
+
+if __name__ == '__main__':
+ unittest.main()