hyperstack 1.25.0a0__py3-none-any.whl → 1.41.2a0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. hyperstack/__init__.py +80 -131
  2. hyperstack/api/__init__.py +2 -0
  3. hyperstack/api/alive_api.py +240 -0
  4. hyperstack/api/api_key_api.py +16 -20
  5. hyperstack/api/assigning_member_role_api.py +15 -17
  6. hyperstack/api/auth_api.py +1050 -5
  7. hyperstack/api/beta_access_api.py +856 -0
  8. hyperstack/api/billing_api.py +6461 -673
  9. hyperstack/api/calculate_api.py +8 -9
  10. hyperstack/api/callbacks_api.py +120 -126
  11. hyperstack/api/cluster_events_api.py +1 -2
  12. hyperstack/api/clusters_api.py +2816 -199
  13. hyperstack/api/compliance_api.py +14 -18
  14. hyperstack/api/credit_api.py +17 -15
  15. hyperstack/api/customer_contract_api.py +30 -33
  16. hyperstack/api/dashboard_api.py +4 -5
  17. hyperstack/api/deployment_api.py +4 -8
  18. hyperstack/api/environment_api.py +285 -16
  19. hyperstack/api/firewall_attachment_api.py +11 -9
  20. hyperstack/api/firewalls_api.py +341 -347
  21. hyperstack/api/flavor_api.py +4 -5
  22. hyperstack/api/floating_ip_api.py +50 -49
  23. hyperstack/api/gpu_api.py +1 -2
  24. hyperstack/api/image_api.py +35 -39
  25. hyperstack/api/invite_api.py +288 -18
  26. hyperstack/api/keypair_api.py +22 -26
  27. hyperstack/api/organization_api.py +12 -15
  28. hyperstack/api/partner_config_api.py +564 -0
  29. hyperstack/api/payment_api.py +299 -18
  30. hyperstack/api/permission_api.py +4 -5
  31. hyperstack/api/policy_api.py +4 -5
  32. hyperstack/api/pricebook_api.py +14 -12
  33. hyperstack/api/profile_api.py +13 -17
  34. hyperstack/api/rbac_role_api.py +20 -25
  35. hyperstack/api/region_api.py +7 -8
  36. hyperstack/api/security_rules_api.py +1 -2
  37. hyperstack/api/snapshot_events_api.py +1 -2
  38. hyperstack/api/snapshots_api.py +166 -172
  39. hyperstack/api/stock_api.py +4 -5
  40. hyperstack/api/template_api.py +14 -19
  41. hyperstack/api/user_api.py +55 -49
  42. hyperstack/api/user_detail_choice_api.py +1 -2
  43. hyperstack/api/user_permission_api.py +8 -10
  44. hyperstack/api/virtual_machine_api.py +1529 -929
  45. hyperstack/api/virtual_machine_events_api.py +21 -22
  46. hyperstack/api/vnc_url_api.py +54 -50
  47. hyperstack/api/volume_api.py +340 -40
  48. hyperstack/api/volume_attachment_api.py +342 -42
  49. hyperstack/api_client.py +1 -1
  50. hyperstack/configuration.py +1 -11
  51. hyperstack/models/__init__.py +77 -130
  52. hyperstack/models/{environment_fieldsfor_volume.py → access_token_field.py} +7 -7
  53. hyperstack/models/attach_volume_fields.py +6 -2
  54. hyperstack/models/attach_volumes_payload.py +4 -2
  55. hyperstack/models/{virtual_machine_usage.py → attachments_fields_for_volume.py} +13 -11
  56. hyperstack/models/{flavor_vm_fields.py → attributes.py} +15 -18
  57. hyperstack/models/auth_get_token_response_model.py +4 -6
  58. hyperstack/models/{future_node_model.py → beta_access_request_fields.py} +27 -25
  59. hyperstack/models/{create_gpu.py → beta_access_request_payload.py} +9 -11
  60. hyperstack/models/{create_discount_response.py → beta_access_request_response_model.py} +11 -11
  61. hyperstack/models/{export_billing_data_request.py → beta_access_status_item.py} +20 -23
  62. hyperstack/models/{get_all_discount_for_all_organization_response.py → beta_access_status_response_model.py} +15 -15
  63. hyperstack/models/{exclude_billing_post_response.py → billing_history.py} +13 -11
  64. hyperstack/models/billing_history_data_synthesis_details.py +105 -0
  65. hyperstack/models/{vm_usage_response.py → billing_history_fine_tuning.py} +23 -19
  66. hyperstack/models/billing_history_model_evalutation_details.py +105 -0
  67. hyperstack/models/{get_all_discounts_fields.py → billing_history_serverless_inference.py} +23 -24
  68. hyperstack/models/billing_history_serverless_inference_details.py +105 -0
  69. hyperstack/models/{billingmetricesfields.py → billing_metrices_fields.py} +4 -4
  70. hyperstack/models/{billingmetricesresponse.py → billing_metrices_response.py} +7 -7
  71. hyperstack/models/cluster_fields.py +27 -9
  72. hyperstack/models/{add_update_flavor_organization_payload.py → cluster_flavor_fields.py} +28 -26
  73. hyperstack/models/{historical_instances_fields.py → cluster_node_fields.py} +24 -22
  74. hyperstack/models/{internal_instance_flavor_fields.py → cluster_node_group_fields.py} +17 -17
  75. hyperstack/models/{create_update_policy_response_model.py → cluster_node_groups_create_response.py} +21 -11
  76. hyperstack/models/{create_update_permission_response_model.py → cluster_node_groups_get_response.py} +11 -11
  77. hyperstack/models/{auth_request_login_response_model.py → cluster_node_groups_list_response.py} +15 -11
  78. hyperstack/models/{contract_eligible_instance_fields.py → cluster_node_instance_fields.py} +13 -11
  79. hyperstack/models/{image_logos.py → cluster_nodes_list_response.py} +14 -14
  80. hyperstack/models/{internal_environment_fields.py → cluster_version.py} +13 -9
  81. hyperstack/models/cluster_versions.py +10 -2
  82. hyperstack/models/{future_nodes_stock_model.py → colors.py} +17 -15
  83. hyperstack/models/contract_discount_plan_fields.py +3 -1
  84. hyperstack/models/contract_instance_fields.py +7 -1
  85. hyperstack/models/{future_node_response_model.py → create_cluster_node_fields.py} +23 -18
  86. hyperstack/models/{update_gpu.py → create_cluster_node_group_payload.py} +12 -11
  87. hyperstack/models/create_cluster_payload.py +31 -8
  88. hyperstack/models/create_environment.py +1 -1
  89. hyperstack/models/create_instances_payload.py +7 -7
  90. hyperstack/models/create_profile_payload.py +1 -1
  91. hyperstack/models/create_snapshot_payload.py +2 -4
  92. hyperstack/models/create_volume_payload.py +1 -1
  93. hyperstack/models/data_synthesis_billing_history_details_response_schema.py +95 -0
  94. hyperstack/models/{deployment_fieldsforstartdeployments.py → deployment_fields_for_start_deployments.py} +4 -4
  95. hyperstack/models/{editlabelofanexisting_vm_payload.py → edit_label_of_an_existing_vm_payload.py} +4 -4
  96. hyperstack/models/environment_features.py +14 -2
  97. hyperstack/models/{node_stocks_payload.py → environment_fields_for_volume.py} +10 -12
  98. hyperstack/models/flavor_fields.py +3 -1
  99. hyperstack/models/{customer_fields.py → flavor_label_fields.py} +7 -7
  100. hyperstack/models/{getcreditandthresholdinfo.py → get_credit_and_threshold_info.py} +4 -4
  101. hyperstack/models/{getcreditandthresholdinfoinresponse.py → get_credit_and_threshold_info_in_response.py} +7 -7
  102. hyperstack/models/{region_payload.py → get_instance_logs_response.py} +7 -9
  103. hyperstack/models/instance_fields.py +8 -4
  104. hyperstack/models/instance_flavor_fields.py +13 -1
  105. hyperstack/models/{flavor_response.py → keypair_environment_features.py} +20 -16
  106. hyperstack/models/{internal_instance_keypair_fields.py → keypair_environment_fields.py} +13 -11
  107. hyperstack/models/keypair_fields.py +6 -2
  108. hyperstack/models/{lastdaycostfields.py → last_day_cost_fields.py} +4 -4
  109. hyperstack/models/{lastdaycostresponse.py → last_day_cost_response.py} +7 -7
  110. hyperstack/models/{export_billing_data_response.py → logos.py} +13 -9
  111. hyperstack/models/{verify_api_key_response_model.py → manual_reconciliation_model.py} +13 -13
  112. hyperstack/models/{creditrequestresponse.py → master_flavors_response.py} +14 -14
  113. hyperstack/models/{customer_payload.py → mfa_status_fields.py} +8 -10
  114. hyperstack/models/{gpu.py → mfa_status_response.py} +11 -11
  115. hyperstack/models/model_evaluation_billing_history_details_response_schema.py +95 -0
  116. hyperstack/models/{organization_thresholdfields.py → organization_threshold_fields.py} +4 -4
  117. hyperstack/models/{organizationthresholdupdateresponse.py → organization_threshold_update_response.py} +7 -7
  118. hyperstack/models/{organizationthresholdsresponse.py → organization_thresholds_response.py} +7 -7
  119. hyperstack/models/{logo_get_response.py → pagination.py} +12 -12
  120. hyperstack/models/{billing_response.py → partner_config.py} +31 -20
  121. hyperstack/models/payment_details_fields.py +5 -1
  122. hyperstack/models/{logout_payload.py → primary_color.py} +10 -8
  123. hyperstack/models/region_fields.py +16 -2
  124. hyperstack/models/{vm_usage_request_payload.py → request_instance_logs_payload.py} +8 -8
  125. hyperstack/models/{stock_visibility_user_payload.py → request_instance_logs_response.py} +8 -8
  126. hyperstack/models/{contract_billing_history.py → resource_level_billing_bucket_details_resources.py} +10 -10
  127. hyperstack/models/{node_response_model.py → resource_level_billing_history_resources_cluster.py} +21 -11
  128. hyperstack/models/resource_level_billing_history_response_attributes.py +3 -1
  129. hyperstack/models/{get_all_contracts_response_model.py → resource_level_bucket_billing_details_response_model.py} +11 -15
  130. hyperstack/models/{contract_billing_history_response_model.py → resource_level_bucket_billing_history_response_model.py} +11 -11
  131. hyperstack/models/resource_level_cluster_billing_details_response_model.py +95 -0
  132. hyperstack/models/resource_level_cluster_billing_history_response_model.py +95 -0
  133. hyperstack/models/{get_discount_detail_response.py → resource_level_cluster_graph_billing_details_response_model.py} +11 -11
  134. hyperstack/models/{organization_object_response.py → resource_level_graph_billing_details_bucket.py} +18 -14
  135. hyperstack/models/{update_discounts_status_payload.py → secondary_color.py} +10 -8
  136. hyperstack/models/{security_rules_fieldsfor_instance.py → security_rules_fields_for_instance.py} +4 -4
  137. hyperstack/models/serverless_inferenced_billing_history_details_response_schema.py +95 -0
  138. hyperstack/models/snapshot_fields.py +6 -1
  139. hyperstack/models/snapshot_retrieve_fields.py +29 -2
  140. hyperstack/models/start_deployment.py +3 -3
  141. hyperstack/models/{subscribeorunsubscribeupdatepayload.py → subscribe_or_unsubscribe_update_payload.py} +4 -4
  142. hyperstack/models/token_based_billing_history_response.py +95 -0
  143. hyperstack/models/{update_keypairnameresponse.py → update_keypair_name_response.py} +4 -4
  144. hyperstack/models/update_volume_attachment_payload.py +87 -0
  145. hyperstack/models/{verify_api_key_payload.py → update_volume_payload.py} +7 -7
  146. hyperstack/models/{stock_visibility_user_list_response.py → update_volume_response.py} +14 -16
  147. hyperstack/models/{auth_request_login_fields.py → uris.py} +19 -9
  148. hyperstack/models/{userinfopostpayload.py → user_info_post_payload.py} +4 -4
  149. hyperstack/models/{node_stock_response_model.py → user_organizations_response.py} +14 -14
  150. hyperstack/models/users_info_fields.py +3 -1
  151. hyperstack/models/volume_attachment_fields.py +9 -5
  152. hyperstack/models/volume_fields.py +14 -4
  153. hyperstack/models/{volume_fieldsfor_instance.py → volume_fields_for_instance.py} +4 -4
  154. hyperstack/models/volumes.py +17 -11
  155. hyperstack/models/{instances_summary_fields.py → volumes_fields.py} +33 -29
  156. hyperstack/models/workload_billing_history_response.py +95 -0
  157. {hyperstack-1.25.0a0.dist-info → hyperstack-1.41.2a0.dist-info}/METADATA +2 -2
  158. hyperstack-1.41.2a0.dist-info/RECORD +350 -0
  159. {hyperstack-1.25.0a0.dist-info → hyperstack-1.41.2a0.dist-info}/WHEEL +1 -1
  160. hyperstack/models/api_key_verify_fields.py +0 -93
  161. hyperstack/models/billing_immune_resources_response.py +0 -95
  162. hyperstack/models/contract_billing_history_response_attributes.py +0 -99
  163. hyperstack/models/contract_change_payload.py +0 -101
  164. hyperstack/models/contract_eligible_instances_response.py +0 -101
  165. hyperstack/models/contract_event_create_model.py +0 -91
  166. hyperstack/models/contract_resource_payload.py +0 -95
  167. hyperstack/models/contractl_billing_history_response_metrics.py +0 -87
  168. hyperstack/models/create_contract_fields.py +0 -110
  169. hyperstack/models/create_contract_payload.py +0 -106
  170. hyperstack/models/create_discounts_payload.py +0 -112
  171. hyperstack/models/create_update_permission_payload.py +0 -93
  172. hyperstack/models/create_update_policy_payload.py +0 -93
  173. hyperstack/models/creditrechargelimitfield.py +0 -93
  174. hyperstack/models/creditrechargelimitresponse.py +0 -99
  175. hyperstack/models/creditrequests.py +0 -96
  176. hyperstack/models/data.py +0 -91
  177. hyperstack/models/discount_entity_model.py +0 -97
  178. hyperstack/models/discount_fields.py +0 -100
  179. hyperstack/models/discount_plan_fields.py +0 -108
  180. hyperstack/models/discount_resource_fields.py +0 -93
  181. hyperstack/models/discount_resource_payload.py +0 -93
  182. hyperstack/models/exclude_billing_post_payload.py +0 -91
  183. hyperstack/models/field_change.py +0 -91
  184. hyperstack/models/flavor_payload.py +0 -101
  185. hyperstack/models/flavor_vms_response.py +0 -99
  186. hyperstack/models/future_node_stock_model.py +0 -93
  187. hyperstack/models/future_node_update_model.py +0 -98
  188. hyperstack/models/get_all_contract_fields.py +0 -100
  189. hyperstack/models/get_discount_response.py +0 -99
  190. hyperstack/models/get_entity_discount_detail_response.py +0 -108
  191. hyperstack/models/get_token_payload.py +0 -89
  192. hyperstack/models/get_version_response.py +0 -91
  193. hyperstack/models/historical_instance.py +0 -101
  194. hyperstack/models/infrahub_resource_object_response.py +0 -119
  195. hyperstack/models/insert_discount_plan_fields.py +0 -112
  196. hyperstack/models/internal_instance_fields.py +0 -156
  197. hyperstack/models/internal_instance_image_fields.py +0 -95
  198. hyperstack/models/internal_instances_response.py +0 -99
  199. hyperstack/models/internal_security_rules_fields_for_instance.py +0 -104
  200. hyperstack/models/internal_volume_attachment_fields.py +0 -98
  201. hyperstack/models/internal_volume_fields.py +0 -95
  202. hyperstack/models/internal_volumes_response.py +0 -99
  203. hyperstack/models/new_stock_update_response_model.py +0 -89
  204. hyperstack/models/node_model.py +0 -114
  205. hyperstack/models/node_payload_model.py +0 -97
  206. hyperstack/models/node_power_usage_model.py +0 -120
  207. hyperstack/models/node_stock_payload_model.py +0 -95
  208. hyperstack/models/organizationcreditrechargelimitresponse.py +0 -95
  209. hyperstack/models/power_usage_model.py +0 -89
  210. hyperstack/models/pricebook_resource_object_response.py +0 -107
  211. hyperstack/models/refresh_token_payload.py +0 -89
  212. hyperstack/models/region_response.py +0 -95
  213. hyperstack/models/set_defaults_payload.py +0 -89
  214. hyperstack/models/single_visibility_user_response.py +0 -91
  215. hyperstack/models/success_response_model.py +0 -89
  216. hyperstack/models/token_fields.py +0 -91
  217. hyperstack/models/update_contract_payload.py +0 -104
  218. hyperstack/models/update_discounts_payload.py +0 -102
  219. hyperstack/models/user_transfer_payload.py +0 -89
  220. hyperstack/models/volume_status_change_fields.py +0 -96
  221. hyperstack/models/volumes_last_status_change_response.py +0 -99
  222. hyperstack/models/warning_mail_log_fields.py +0 -99
  223. hyperstack/models/warning_mail_log_response.py +0 -101
  224. hyperstack-1.25.0a0.dist-info/RECORD +0 -401
  225. {hyperstack-1.25.0a0.dist-info → hyperstack-1.41.2a0.dist-info}/top_level.txt +0 -0
@@ -310,8 +310,7 @@ class ComplianceApi:
310
310
 
311
311
  # authentication setting
312
312
  _auth_settings: List[str] = [
313
- 'apiKey',
314
- 'accessToken'
313
+ 'apiKey'
315
314
  ]
316
315
 
317
316
  return self.api_client.param_serialize(
@@ -581,8 +580,7 @@ class ComplianceApi:
581
580
 
582
581
  # authentication setting
583
582
  _auth_settings: List[str] = [
584
- 'apiKey',
585
- 'accessToken'
583
+ 'apiKey'
586
584
  ]
587
585
 
588
586
  return self.api_client.param_serialize(
@@ -604,7 +602,7 @@ class ComplianceApi:
604
602
 
605
603
 
606
604
  @validate_call
607
- def retrieve_gpu_compliance(
605
+ def retrieve_compliance(
608
606
  self,
609
607
  gpu: Annotated[Optional[StrictStr], Field(description="This is for gpu model")] = None,
610
608
  _request_timeout: Union[
@@ -622,7 +620,7 @@ class ComplianceApi:
622
620
  ) -> ComplianceResponse:
623
621
  """Retrieve GPU compliance
624
622
 
625
- 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).
623
+ 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).
626
624
 
627
625
  :param gpu: This is for gpu model
628
626
  :type gpu: str
@@ -648,7 +646,7 @@ class ComplianceApi:
648
646
  :return: Returns the result object.
649
647
  """ # noqa: E501
650
648
 
651
- _param = self._retrieve_gpu_compliance_serialize(
649
+ _param = self._retrieve_compliance_serialize(
652
650
  gpu=gpu,
653
651
  _request_auth=_request_auth,
654
652
  _content_type=_content_type,
@@ -676,7 +674,7 @@ class ComplianceApi:
676
674
 
677
675
 
678
676
  @validate_call
679
- def retrieve_gpu_compliance_with_http_info(
677
+ def retrieve_compliance_with_http_info(
680
678
  self,
681
679
  gpu: Annotated[Optional[StrictStr], Field(description="This is for gpu model")] = None,
682
680
  _request_timeout: Union[
@@ -694,7 +692,7 @@ class ComplianceApi:
694
692
  ) -> ApiResponse[ComplianceResponse]:
695
693
  """Retrieve GPU compliance
696
694
 
697
- 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).
695
+ 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).
698
696
 
699
697
  :param gpu: This is for gpu model
700
698
  :type gpu: str
@@ -720,7 +718,7 @@ class ComplianceApi:
720
718
  :return: Returns the result object.
721
719
  """ # noqa: E501
722
720
 
723
- _param = self._retrieve_gpu_compliance_serialize(
721
+ _param = self._retrieve_compliance_serialize(
724
722
  gpu=gpu,
725
723
  _request_auth=_request_auth,
726
724
  _content_type=_content_type,
@@ -748,7 +746,7 @@ class ComplianceApi:
748
746
 
749
747
 
750
748
  @validate_call
751
- def retrieve_gpu_compliance_without_preload_content(
749
+ def retrieve_compliance_without_preload_content(
752
750
  self,
753
751
  gpu: Annotated[Optional[StrictStr], Field(description="This is for gpu model")] = None,
754
752
  _request_timeout: Union[
@@ -766,7 +764,7 @@ class ComplianceApi:
766
764
  ) -> RESTResponseType:
767
765
  """Retrieve GPU compliance
768
766
 
769
- 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).
767
+ 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).
770
768
 
771
769
  :param gpu: This is for gpu model
772
770
  :type gpu: str
@@ -792,7 +790,7 @@ class ComplianceApi:
792
790
  :return: Returns the result object.
793
791
  """ # noqa: E501
794
792
 
795
- _param = self._retrieve_gpu_compliance_serialize(
793
+ _param = self._retrieve_compliance_serialize(
796
794
  gpu=gpu,
797
795
  _request_auth=_request_auth,
798
796
  _content_type=_content_type,
@@ -815,7 +813,7 @@ class ComplianceApi:
815
813
  return response_data.response
816
814
 
817
815
 
818
- def _retrieve_gpu_compliance_serialize(
816
+ def _retrieve_compliance_serialize(
819
817
  self,
820
818
  gpu,
821
819
  _request_auth,
@@ -860,8 +858,7 @@ class ComplianceApi:
860
858
 
861
859
  # authentication setting
862
860
  _auth_settings: List[str] = [
863
- 'apiKey',
864
- 'accessToken'
861
+ 'apiKey'
865
862
  ]
866
863
 
867
864
  return self.api_client.param_serialize(
@@ -1147,8 +1144,7 @@ class ComplianceApi:
1147
1144
 
1148
1145
  # authentication setting
1149
1146
  _auth_settings: List[str] = [
1150
- 'apiKey',
1151
- 'accessToken'
1147
+ 'apiKey'
1152
1148
  ]
1153
1149
 
1154
1150
  return self.api_client.param_serialize(
@@ -16,7 +16,7 @@ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
16
  from typing import Any, Dict, List, Optional, Tuple, Union
17
17
  from typing_extensions import Annotated
18
18
 
19
- from ..models.getcreditandthresholdinfoinresponse import Getcreditandthresholdinfoinresponse
19
+ from ..models.get_credit_and_threshold_info_in_response import GetCreditAndThresholdInfoInResponse
20
20
 
21
21
  from ..api_client import ApiClient, RequestSerialized
22
22
  from ..api_response import ApiResponse
@@ -37,7 +37,7 @@ class CreditApi:
37
37
 
38
38
 
39
39
  @validate_call
40
- def get_view_credit_and_threshold(
40
+ def get_credit2(
41
41
  self,
42
42
  _request_timeout: Union[
43
43
  None,
@@ -51,9 +51,10 @@ class CreditApi:
51
51
  _content_type: Optional[StrictStr] = None,
52
52
  _headers: Optional[Dict[StrictStr, Any]] = None,
53
53
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
54
- ) -> Getcreditandthresholdinfoinresponse:
54
+ ) -> GetCreditAndThresholdInfoInResponse:
55
55
  """GET: View credit and threshold
56
56
 
57
+ 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/).
57
58
 
58
59
  :param _request_timeout: timeout setting for this request. If one
59
60
  number provided, it will be total request
@@ -77,7 +78,7 @@ class CreditApi:
77
78
  :return: Returns the result object.
78
79
  """ # noqa: E501
79
80
 
80
- _param = self._get_view_credit_and_threshold_serialize(
81
+ _param = self._get_credit2_serialize(
81
82
  _request_auth=_request_auth,
82
83
  _content_type=_content_type,
83
84
  _headers=_headers,
@@ -85,7 +86,7 @@ class CreditApi:
85
86
  )
86
87
 
87
88
  _response_types_map: Dict[str, Optional[str]] = {
88
- '200': "Getcreditandthresholdinfoinresponse",
89
+ '200': "GetCreditAndThresholdInfoInResponse",
89
90
  '400': "ErrorResponseModel",
90
91
  '401': "ErrorResponseModel",
91
92
  '403': "ErrorResponseModel",
@@ -104,7 +105,7 @@ class CreditApi:
104
105
 
105
106
 
106
107
  @validate_call
107
- def get_view_credit_and_threshold_with_http_info(
108
+ def get_credit2_with_http_info(
108
109
  self,
109
110
  _request_timeout: Union[
110
111
  None,
@@ -118,9 +119,10 @@ class CreditApi:
118
119
  _content_type: Optional[StrictStr] = None,
119
120
  _headers: Optional[Dict[StrictStr, Any]] = None,
120
121
  _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
121
- ) -> ApiResponse[Getcreditandthresholdinfoinresponse]:
122
+ ) -> ApiResponse[GetCreditAndThresholdInfoInResponse]:
122
123
  """GET: View credit and threshold
123
124
 
125
+ 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/).
124
126
 
125
127
  :param _request_timeout: timeout setting for this request. If one
126
128
  number provided, it will be total request
@@ -144,7 +146,7 @@ class CreditApi:
144
146
  :return: Returns the result object.
145
147
  """ # noqa: E501
146
148
 
147
- _param = self._get_view_credit_and_threshold_serialize(
149
+ _param = self._get_credit2_serialize(
148
150
  _request_auth=_request_auth,
149
151
  _content_type=_content_type,
150
152
  _headers=_headers,
@@ -152,7 +154,7 @@ class CreditApi:
152
154
  )
153
155
 
154
156
  _response_types_map: Dict[str, Optional[str]] = {
155
- '200': "Getcreditandthresholdinfoinresponse",
157
+ '200': "GetCreditAndThresholdInfoInResponse",
156
158
  '400': "ErrorResponseModel",
157
159
  '401': "ErrorResponseModel",
158
160
  '403': "ErrorResponseModel",
@@ -171,7 +173,7 @@ class CreditApi:
171
173
 
172
174
 
173
175
  @validate_call
174
- def get_view_credit_and_threshold_without_preload_content(
176
+ def get_credit2_without_preload_content(
175
177
  self,
176
178
  _request_timeout: Union[
177
179
  None,
@@ -188,6 +190,7 @@ class CreditApi:
188
190
  ) -> RESTResponseType:
189
191
  """GET: View credit and threshold
190
192
 
193
+ 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/).
191
194
 
192
195
  :param _request_timeout: timeout setting for this request. If one
193
196
  number provided, it will be total request
@@ -211,7 +214,7 @@ class CreditApi:
211
214
  :return: Returns the result object.
212
215
  """ # noqa: E501
213
216
 
214
- _param = self._get_view_credit_and_threshold_serialize(
217
+ _param = self._get_credit2_serialize(
215
218
  _request_auth=_request_auth,
216
219
  _content_type=_content_type,
217
220
  _headers=_headers,
@@ -219,7 +222,7 @@ class CreditApi:
219
222
  )
220
223
 
221
224
  _response_types_map: Dict[str, Optional[str]] = {
222
- '200': "Getcreditandthresholdinfoinresponse",
225
+ '200': "GetCreditAndThresholdInfoInResponse",
223
226
  '400': "ErrorResponseModel",
224
227
  '401': "ErrorResponseModel",
225
228
  '403': "ErrorResponseModel",
@@ -233,7 +236,7 @@ class CreditApi:
233
236
  return response_data.response
234
237
 
235
238
 
236
- def _get_view_credit_and_threshold_serialize(
239
+ def _get_credit2_serialize(
237
240
  self,
238
241
  _request_auth,
239
242
  _content_type,
@@ -273,8 +276,7 @@ class CreditApi:
273
276
 
274
277
  # authentication setting
275
278
  _auth_settings: List[str] = [
276
- 'apiKey',
277
- 'accessToken'
279
+ 'apiKey'
278
280
  ]
279
281
 
280
282
  return self.api_client.param_serialize(
@@ -42,7 +42,7 @@ class CustomerContractApi:
42
42
 
43
43
 
44
44
  @validate_call
45
- def list_contracts(
45
+ def get_customer_contract(
46
46
  self,
47
47
  page: Optional[StrictInt] = None,
48
48
  per_page: Optional[StrictInt] = None,
@@ -61,7 +61,7 @@ class CustomerContractApi:
61
61
  ) -> GetCustomerContractsListResponseModel:
62
62
  """List Contracts
63
63
 
64
- 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).
64
+ 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).
65
65
 
66
66
  :param page:
67
67
  :type page: int
@@ -89,7 +89,7 @@ class CustomerContractApi:
89
89
  :return: Returns the result object.
90
90
  """ # noqa: E501
91
91
 
92
- _param = self._list_contracts_serialize(
92
+ _param = self._get_customer_contract_serialize(
93
93
  page=page,
94
94
  per_page=per_page,
95
95
  _request_auth=_request_auth,
@@ -117,7 +117,7 @@ class CustomerContractApi:
117
117
 
118
118
 
119
119
  @validate_call
120
- def list_contracts_with_http_info(
120
+ def get_customer_contract_with_http_info(
121
121
  self,
122
122
  page: Optional[StrictInt] = None,
123
123
  per_page: Optional[StrictInt] = None,
@@ -136,7 +136,7 @@ class CustomerContractApi:
136
136
  ) -> ApiResponse[GetCustomerContractsListResponseModel]:
137
137
  """List Contracts
138
138
 
139
- 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).
139
+ 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).
140
140
 
141
141
  :param page:
142
142
  :type page: int
@@ -164,7 +164,7 @@ class CustomerContractApi:
164
164
  :return: Returns the result object.
165
165
  """ # noqa: E501
166
166
 
167
- _param = self._list_contracts_serialize(
167
+ _param = self._get_customer_contract_serialize(
168
168
  page=page,
169
169
  per_page=per_page,
170
170
  _request_auth=_request_auth,
@@ -192,7 +192,7 @@ class CustomerContractApi:
192
192
 
193
193
 
194
194
  @validate_call
195
- def list_contracts_without_preload_content(
195
+ def get_customer_contract_without_preload_content(
196
196
  self,
197
197
  page: Optional[StrictInt] = None,
198
198
  per_page: Optional[StrictInt] = None,
@@ -211,7 +211,7 @@ class CustomerContractApi:
211
211
  ) -> RESTResponseType:
212
212
  """List Contracts
213
213
 
214
- 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).
214
+ 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).
215
215
 
216
216
  :param page:
217
217
  :type page: int
@@ -239,7 +239,7 @@ class CustomerContractApi:
239
239
  :return: Returns the result object.
240
240
  """ # noqa: E501
241
241
 
242
- _param = self._list_contracts_serialize(
242
+ _param = self._get_customer_contract_serialize(
243
243
  page=page,
244
244
  per_page=per_page,
245
245
  _request_auth=_request_auth,
@@ -262,7 +262,7 @@ class CustomerContractApi:
262
262
  return response_data.response
263
263
 
264
264
 
265
- def _list_contracts_serialize(
265
+ def _get_customer_contract_serialize(
266
266
  self,
267
267
  page,
268
268
  per_page,
@@ -312,8 +312,7 @@ class CustomerContractApi:
312
312
 
313
313
  # authentication setting
314
314
  _auth_settings: List[str] = [
315
- 'apiKey',
316
- 'accessToken'
315
+ 'apiKey'
317
316
  ]
318
317
 
319
318
  return self.api_client.param_serialize(
@@ -335,7 +334,7 @@ class CustomerContractApi:
335
334
 
336
335
 
337
336
  @validate_call
338
- def retrieve_contract_details(
337
+ def get_customer_contract_details(
339
338
  self,
340
339
  contract_id: StrictInt,
341
340
  _request_timeout: Union[
@@ -353,7 +352,7 @@ class CustomerContractApi:
353
352
  ) -> CustomerContractDetailResponseModel:
354
353
  """Retrieve Contract Details
355
354
 
356
- 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).
355
+ 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).
357
356
 
358
357
  :param contract_id: (required)
359
358
  :type contract_id: int
@@ -379,7 +378,7 @@ class CustomerContractApi:
379
378
  :return: Returns the result object.
380
379
  """ # noqa: E501
381
380
 
382
- _param = self._retrieve_contract_details_serialize(
381
+ _param = self._get_customer_contract_details_serialize(
383
382
  contract_id=contract_id,
384
383
  _request_auth=_request_auth,
385
384
  _content_type=_content_type,
@@ -407,7 +406,7 @@ class CustomerContractApi:
407
406
 
408
407
 
409
408
  @validate_call
410
- def retrieve_contract_details_with_http_info(
409
+ def get_customer_contract_details_with_http_info(
411
410
  self,
412
411
  contract_id: StrictInt,
413
412
  _request_timeout: Union[
@@ -425,7 +424,7 @@ class CustomerContractApi:
425
424
  ) -> ApiResponse[CustomerContractDetailResponseModel]:
426
425
  """Retrieve Contract Details
427
426
 
428
- 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).
427
+ 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).
429
428
 
430
429
  :param contract_id: (required)
431
430
  :type contract_id: int
@@ -451,7 +450,7 @@ class CustomerContractApi:
451
450
  :return: Returns the result object.
452
451
  """ # noqa: E501
453
452
 
454
- _param = self._retrieve_contract_details_serialize(
453
+ _param = self._get_customer_contract_details_serialize(
455
454
  contract_id=contract_id,
456
455
  _request_auth=_request_auth,
457
456
  _content_type=_content_type,
@@ -479,7 +478,7 @@ class CustomerContractApi:
479
478
 
480
479
 
481
480
  @validate_call
482
- def retrieve_contract_details_without_preload_content(
481
+ def get_customer_contract_details_without_preload_content(
483
482
  self,
484
483
  contract_id: StrictInt,
485
484
  _request_timeout: Union[
@@ -497,7 +496,7 @@ class CustomerContractApi:
497
496
  ) -> RESTResponseType:
498
497
  """Retrieve Contract Details
499
498
 
500
- 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).
499
+ 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).
501
500
 
502
501
  :param contract_id: (required)
503
502
  :type contract_id: int
@@ -523,7 +522,7 @@ class CustomerContractApi:
523
522
  :return: Returns the result object.
524
523
  """ # noqa: E501
525
524
 
526
- _param = self._retrieve_contract_details_serialize(
525
+ _param = self._get_customer_contract_details_serialize(
527
526
  contract_id=contract_id,
528
527
  _request_auth=_request_auth,
529
528
  _content_type=_content_type,
@@ -546,7 +545,7 @@ class CustomerContractApi:
546
545
  return response_data.response
547
546
 
548
547
 
549
- def _retrieve_contract_details_serialize(
548
+ def _get_customer_contract_details_serialize(
550
549
  self,
551
550
  contract_id,
552
551
  _request_auth,
@@ -589,8 +588,7 @@ class CustomerContractApi:
589
588
 
590
589
  # authentication setting
591
590
  _auth_settings: List[str] = [
592
- 'apiKey',
593
- 'accessToken'
591
+ 'apiKey'
594
592
  ]
595
593
 
596
594
  return self.api_client.param_serialize(
@@ -612,7 +610,7 @@ class CustomerContractApi:
612
610
 
613
611
 
614
612
  @validate_call
615
- def retrieve_gpu_allocation_graph_for_contract(
613
+ def get_customer_contract_gpu_allocation_graph(
616
614
  self,
617
615
  contract_id: StrictInt,
618
616
  start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
@@ -662,7 +660,7 @@ class CustomerContractApi:
662
660
  :return: Returns the result object.
663
661
  """ # noqa: E501
664
662
 
665
- _param = self._retrieve_gpu_allocation_graph_for_contract_serialize(
663
+ _param = self._get_customer_contract_gpu_allocation_graph_serialize(
666
664
  contract_id=contract_id,
667
665
  start_date=start_date,
668
666
  end_date=end_date,
@@ -692,7 +690,7 @@ class CustomerContractApi:
692
690
 
693
691
 
694
692
  @validate_call
695
- def retrieve_gpu_allocation_graph_for_contract_with_http_info(
693
+ def get_customer_contract_gpu_allocation_graph_with_http_info(
696
694
  self,
697
695
  contract_id: StrictInt,
698
696
  start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
@@ -742,7 +740,7 @@ class CustomerContractApi:
742
740
  :return: Returns the result object.
743
741
  """ # noqa: E501
744
742
 
745
- _param = self._retrieve_gpu_allocation_graph_for_contract_serialize(
743
+ _param = self._get_customer_contract_gpu_allocation_graph_serialize(
746
744
  contract_id=contract_id,
747
745
  start_date=start_date,
748
746
  end_date=end_date,
@@ -772,7 +770,7 @@ class CustomerContractApi:
772
770
 
773
771
 
774
772
  @validate_call
775
- def retrieve_gpu_allocation_graph_for_contract_without_preload_content(
773
+ def get_customer_contract_gpu_allocation_graph_without_preload_content(
776
774
  self,
777
775
  contract_id: StrictInt,
778
776
  start_date: Annotated[Optional[StrictStr], Field(description="Date should be formatted in YYYY-MM-DDTHH:MM:SS")] = None,
@@ -822,7 +820,7 @@ class CustomerContractApi:
822
820
  :return: Returns the result object.
823
821
  """ # noqa: E501
824
822
 
825
- _param = self._retrieve_gpu_allocation_graph_for_contract_serialize(
823
+ _param = self._get_customer_contract_gpu_allocation_graph_serialize(
826
824
  contract_id=contract_id,
827
825
  start_date=start_date,
828
826
  end_date=end_date,
@@ -847,7 +845,7 @@ class CustomerContractApi:
847
845
  return response_data.response
848
846
 
849
847
 
850
- def _retrieve_gpu_allocation_graph_for_contract_serialize(
848
+ def _get_customer_contract_gpu_allocation_graph_serialize(
851
849
  self,
852
850
  contract_id,
853
851
  start_date,
@@ -900,8 +898,7 @@ class CustomerContractApi:
900
898
 
901
899
  # authentication setting
902
900
  _auth_settings: List[str] = [
903
- 'apiKey',
904
- 'accessToken'
901
+ 'apiKey'
905
902
  ]
906
903
 
907
904
  return self.api_client.param_serialize(
@@ -54,7 +54,7 @@ class DashboardApi:
54
54
  ) -> DashboardInfoResponse:
55
55
  """Retrieve Dashboard
56
56
 
57
- 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).
57
+ 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/).
58
58
 
59
59
  :param _request_timeout: timeout setting for this request. If one
60
60
  number provided, it will be total request
@@ -120,7 +120,7 @@ class DashboardApi:
120
120
  ) -> ApiResponse[DashboardInfoResponse]:
121
121
  """Retrieve Dashboard
122
122
 
123
- 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).
123
+ 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/).
124
124
 
125
125
  :param _request_timeout: timeout setting for this request. If one
126
126
  number provided, it will be total request
@@ -186,7 +186,7 @@ class DashboardApi:
186
186
  ) -> RESTResponseType:
187
187
  """Retrieve Dashboard
188
188
 
189
- 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).
189
+ 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/).
190
190
 
191
191
  :param _request_timeout: timeout setting for this request. If one
192
192
  number provided, it will be total request
@@ -270,8 +270,7 @@ class DashboardApi:
270
270
 
271
271
  # authentication setting
272
272
  _auth_settings: List[str] = [
273
- 'apiKey',
274
- 'accessToken'
273
+ 'apiKey'
275
274
  ]
276
275
 
277
276
  return self.api_client.param_serialize(
@@ -289,8 +289,7 @@ class DeploymentApi:
289
289
 
290
290
  # authentication setting
291
291
  _auth_settings: List[str] = [
292
- 'apiKey',
293
- 'accessToken'
292
+ 'apiKey'
294
293
  ]
295
294
 
296
295
  return self.api_client.param_serialize(
@@ -560,8 +559,7 @@ class DeploymentApi:
560
559
 
561
560
  # authentication setting
562
561
  _auth_settings: List[str] = [
563
- 'apiKey',
564
- 'accessToken'
562
+ 'apiKey'
565
563
  ]
566
564
 
567
565
  return self.api_client.param_serialize(
@@ -813,8 +811,7 @@ class DeploymentApi:
813
811
 
814
812
  # authentication setting
815
813
  _auth_settings: List[str] = [
816
- 'apiKey',
817
- 'accessToken'
814
+ 'apiKey'
818
815
  ]
819
816
 
820
817
  return self.api_client.param_serialize(
@@ -1100,8 +1097,7 @@ class DeploymentApi:
1100
1097
 
1101
1098
  # authentication setting
1102
1099
  _auth_settings: List[str] = [
1103
- 'apiKey',
1104
- 'accessToken'
1100
+ 'apiKey'
1105
1101
  ]
1106
1102
 
1107
1103
  return self.api_client.param_serialize(