hyperstack 0.1.23__py3-none-any.whl → 1.41.0a0__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 +79 -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 +2492 -146
  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 +154 -47
  51. hyperstack/models/__init__.py +76 -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 +10 -8
  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 +14 -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/{creditrequestresponse.py → master_flavors_response.py} +14 -14
  112. hyperstack/models/{customer_payload.py → mfa_status_fields.py} +8 -10
  113. hyperstack/models/{gpu.py → mfa_status_response.py} +11 -11
  114. hyperstack/models/model_evaluation_billing_history_details_response_schema.py +95 -0
  115. hyperstack/models/{organization_thresholdfields.py → organization_threshold_fields.py} +4 -4
  116. hyperstack/models/{organizationthresholdupdateresponse.py → organization_threshold_update_response.py} +7 -7
  117. hyperstack/models/{organizationthresholdsresponse.py → organization_thresholds_response.py} +7 -7
  118. hyperstack/models/{logo_get_response.py → pagination.py} +12 -12
  119. hyperstack/models/{billing_response.py → partner_config.py} +31 -20
  120. hyperstack/models/payment_details_fields.py +5 -1
  121. hyperstack/models/{logout_payload.py → primary_color.py} +10 -8
  122. hyperstack/models/region_fields.py +16 -2
  123. hyperstack/models/{vm_usage_request_payload.py → request_instance_logs_payload.py} +8 -8
  124. hyperstack/models/{stock_visibility_user_payload.py → request_instance_logs_response.py} +8 -8
  125. hyperstack/models/{contract_billing_history.py → resource_level_billing_bucket_details_resources.py} +10 -10
  126. hyperstack/models/{node_response_model.py → resource_level_billing_history_resources_cluster.py} +21 -11
  127. hyperstack/models/resource_level_billing_history_response_attributes.py +3 -1
  128. hyperstack/models/{get_all_contracts_response_model.py → resource_level_bucket_billing_details_response_model.py} +11 -15
  129. hyperstack/models/{contract_billing_history_response_model.py → resource_level_bucket_billing_history_response_model.py} +11 -11
  130. hyperstack/models/resource_level_cluster_billing_details_response_model.py +95 -0
  131. hyperstack/models/resource_level_cluster_billing_history_response_model.py +95 -0
  132. hyperstack/models/{get_discount_detail_response.py → resource_level_cluster_graph_billing_details_response_model.py} +11 -11
  133. hyperstack/models/{organization_object_response.py → resource_level_graph_billing_details_bucket.py} +18 -14
  134. hyperstack/models/{update_discounts_status_payload.py → secondary_color.py} +10 -8
  135. hyperstack/models/{security_rules_fieldsfor_instance.py → security_rules_fields_for_instance.py} +4 -4
  136. hyperstack/models/serverless_inferenced_billing_history_details_response_schema.py +95 -0
  137. hyperstack/models/snapshot_fields.py +6 -1
  138. hyperstack/models/snapshot_retrieve_fields.py +29 -2
  139. hyperstack/models/start_deployment.py +3 -3
  140. hyperstack/models/{subscribeorunsubscribeupdatepayload.py → subscribe_or_unsubscribe_update_payload.py} +4 -4
  141. hyperstack/models/token_based_billing_history_response.py +95 -0
  142. hyperstack/models/{update_keypairnameresponse.py → update_keypair_name_response.py} +4 -4
  143. hyperstack/models/update_volume_attachment_payload.py +87 -0
  144. hyperstack/models/{verify_api_key_payload.py → update_volume_payload.py} +7 -7
  145. hyperstack/models/{stock_visibility_user_list_response.py → update_volume_response.py} +14 -16
  146. hyperstack/models/{auth_request_login_fields.py → uris.py} +19 -9
  147. hyperstack/models/{userinfopostpayload.py → user_info_post_payload.py} +4 -4
  148. hyperstack/models/{node_stock_response_model.py → user_organizations_response.py} +14 -14
  149. hyperstack/models/users_info_fields.py +3 -1
  150. hyperstack/models/volume_attachment_fields.py +9 -5
  151. hyperstack/models/volume_fields.py +14 -4
  152. hyperstack/models/{volume_fieldsfor_instance.py → volume_fields_for_instance.py} +4 -4
  153. hyperstack/models/volumes.py +17 -11
  154. hyperstack/models/{instances_summary_fields.py → volumes_fields.py} +33 -29
  155. hyperstack/models/workload_billing_history_response.py +95 -0
  156. {hyperstack-0.1.23.dist-info → hyperstack-1.41.0a0.dist-info}/METADATA +9 -2
  157. hyperstack-1.41.0a0.dist-info/RECORD +349 -0
  158. {hyperstack-0.1.23.dist-info → hyperstack-1.41.0a0.dist-info}/WHEEL +1 -1
  159. hyperstack/models/api_key_verify_fields.py +0 -93
  160. hyperstack/models/billing_immune_resources_response.py +0 -95
  161. hyperstack/models/contract_billing_history_response_attributes.py +0 -99
  162. hyperstack/models/contract_change_payload.py +0 -101
  163. hyperstack/models/contract_eligible_instances_response.py +0 -101
  164. hyperstack/models/contract_event_create_model.py +0 -91
  165. hyperstack/models/contract_resource_payload.py +0 -95
  166. hyperstack/models/contractl_billing_history_response_metrics.py +0 -87
  167. hyperstack/models/create_contract_fields.py +0 -110
  168. hyperstack/models/create_contract_payload.py +0 -106
  169. hyperstack/models/create_discounts_payload.py +0 -112
  170. hyperstack/models/create_update_permission_payload.py +0 -93
  171. hyperstack/models/create_update_policy_payload.py +0 -93
  172. hyperstack/models/creditrechargelimitfield.py +0 -93
  173. hyperstack/models/creditrechargelimitresponse.py +0 -99
  174. hyperstack/models/creditrequests.py +0 -96
  175. hyperstack/models/data.py +0 -91
  176. hyperstack/models/discount_entity_model.py +0 -97
  177. hyperstack/models/discount_fields.py +0 -100
  178. hyperstack/models/discount_plan_fields.py +0 -108
  179. hyperstack/models/discount_resource_fields.py +0 -93
  180. hyperstack/models/discount_resource_payload.py +0 -93
  181. hyperstack/models/exclude_billing_post_payload.py +0 -91
  182. hyperstack/models/field_change.py +0 -91
  183. hyperstack/models/flavor_payload.py +0 -101
  184. hyperstack/models/flavor_vms_response.py +0 -99
  185. hyperstack/models/future_node_stock_model.py +0 -93
  186. hyperstack/models/future_node_update_model.py +0 -98
  187. hyperstack/models/get_all_contract_fields.py +0 -100
  188. hyperstack/models/get_discount_response.py +0 -99
  189. hyperstack/models/get_entity_discount_detail_response.py +0 -108
  190. hyperstack/models/get_token_payload.py +0 -89
  191. hyperstack/models/get_version_response.py +0 -91
  192. hyperstack/models/historical_instance.py +0 -101
  193. hyperstack/models/infrahub_resource_object_response.py +0 -119
  194. hyperstack/models/insert_discount_plan_fields.py +0 -112
  195. hyperstack/models/internal_instance_fields.py +0 -156
  196. hyperstack/models/internal_instance_image_fields.py +0 -95
  197. hyperstack/models/internal_instances_response.py +0 -99
  198. hyperstack/models/internal_security_rules_fields_for_instance.py +0 -104
  199. hyperstack/models/internal_volume_attachment_fields.py +0 -98
  200. hyperstack/models/internal_volume_fields.py +0 -95
  201. hyperstack/models/internal_volumes_response.py +0 -99
  202. hyperstack/models/new_stock_update_response_model.py +0 -89
  203. hyperstack/models/node_model.py +0 -114
  204. hyperstack/models/node_payload_model.py +0 -97
  205. hyperstack/models/node_power_usage_model.py +0 -120
  206. hyperstack/models/node_stock_payload_model.py +0 -95
  207. hyperstack/models/organizationcreditrechargelimitresponse.py +0 -95
  208. hyperstack/models/power_usage_model.py +0 -89
  209. hyperstack/models/pricebook_resource_object_response.py +0 -107
  210. hyperstack/models/refresh_token_payload.py +0 -89
  211. hyperstack/models/region_response.py +0 -95
  212. hyperstack/models/set_defaults_payload.py +0 -89
  213. hyperstack/models/single_visibility_user_response.py +0 -91
  214. hyperstack/models/success_response_model.py +0 -89
  215. hyperstack/models/token_fields.py +0 -91
  216. hyperstack/models/update_contract_payload.py +0 -104
  217. hyperstack/models/update_discounts_payload.py +0 -102
  218. hyperstack/models/user_transfer_payload.py +0 -89
  219. hyperstack/models/verify_api_key_response_model.py +0 -95
  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-0.1.23.dist-info/RECORD +0 -401
  225. {hyperstack-0.1.23.dist-info → hyperstack-1.41.0a0.dist-info}/top_level.txt +0 -0
@@ -22,6 +22,7 @@ from typing_extensions import Annotated
22
22
  from ..models.create_environment import CreateEnvironment
23
23
  from ..models.environment import Environment
24
24
  from ..models.environments import Environments
25
+ from ..models.name_available_model import NameAvailableModel
25
26
  from ..models.response_model import ResponseModel
26
27
  from ..models.update_environment import UpdateEnvironment
27
28
 
@@ -62,7 +63,7 @@ class EnvironmentApi:
62
63
  ) -> Environment:
63
64
  """Create environment
64
65
 
65
- 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.
66
+ 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.
66
67
 
67
68
  :param payload: (required)
68
69
  :type payload: CreateEnvironment
@@ -134,7 +135,7 @@ class EnvironmentApi:
134
135
  ) -> ApiResponse[Environment]:
135
136
  """Create environment
136
137
 
137
- 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.
138
+ 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.
138
139
 
139
140
  :param payload: (required)
140
141
  :type payload: CreateEnvironment
@@ -206,7 +207,7 @@ class EnvironmentApi:
206
207
  ) -> RESTResponseType:
207
208
  """Create environment
208
209
 
209
- 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.
210
+ 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.
210
211
 
211
212
  :param payload: (required)
212
213
  :type payload: CreateEnvironment
@@ -311,8 +312,7 @@ class EnvironmentApi:
311
312
 
312
313
  # authentication setting
313
314
  _auth_settings: List[str] = [
314
- 'apiKey',
315
- 'accessToken'
315
+ 'apiKey'
316
316
  ]
317
317
 
318
318
  return self.api_client.param_serialize(
@@ -585,8 +585,7 @@ class EnvironmentApi:
585
585
 
586
586
  # authentication setting
587
587
  _auth_settings: List[str] = [
588
- 'apiKey',
589
- 'accessToken'
588
+ 'apiKey'
590
589
  ]
591
590
 
592
591
  return self.api_client.param_serialize(
@@ -607,6 +606,279 @@ class EnvironmentApi:
607
606
 
608
607
 
609
608
 
609
+ @validate_call
610
+ def fetch_environment_name_availability(
611
+ self,
612
+ name: StrictStr,
613
+ _request_timeout: Union[
614
+ None,
615
+ Annotated[StrictFloat, Field(gt=0)],
616
+ Tuple[
617
+ Annotated[StrictFloat, Field(gt=0)],
618
+ Annotated[StrictFloat, Field(gt=0)]
619
+ ]
620
+ ] = None,
621
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
622
+ _content_type: Optional[StrictStr] = None,
623
+ _headers: Optional[Dict[StrictStr, Any]] = None,
624
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
625
+ ) -> NameAvailableModel:
626
+ """Fetch environment name availability
627
+
628
+ Check if a Environment name is available
629
+
630
+ :param name: (required)
631
+ :type name: str
632
+ :param _request_timeout: timeout setting for this request. If one
633
+ number provided, it will be total request
634
+ timeout. It can also be a pair (tuple) of
635
+ (connection, read) timeouts.
636
+ :type _request_timeout: int, tuple(int, int), optional
637
+ :param _request_auth: set to override the auth_settings for an a single
638
+ request; this effectively ignores the
639
+ authentication in the spec for a single request.
640
+ :type _request_auth: dict, optional
641
+ :param _content_type: force content-type for the request.
642
+ :type _content_type: str, Optional
643
+ :param _headers: set to override the headers for a single
644
+ request; this effectively ignores the headers
645
+ in the spec for a single request.
646
+ :type _headers: dict, optional
647
+ :param _host_index: set to override the host_index for a single
648
+ request; this effectively ignores the host_index
649
+ in the spec for a single request.
650
+ :type _host_index: int, optional
651
+ :return: Returns the result object.
652
+ """ # noqa: E501
653
+
654
+ _param = self._fetch_environment_name_availability_serialize(
655
+ name=name,
656
+ _request_auth=_request_auth,
657
+ _content_type=_content_type,
658
+ _headers=_headers,
659
+ _host_index=_host_index
660
+ )
661
+
662
+ _response_types_map: Dict[str, Optional[str]] = {
663
+ '200': "NameAvailableModel",
664
+ '400': "ErrorResponseModel",
665
+ '401': "ErrorResponseModel",
666
+ '404': "ErrorResponseModel",
667
+ '500': None,
668
+ }
669
+ response_data = self.api_client.call_api(
670
+ *_param,
671
+ _request_timeout=_request_timeout
672
+ )
673
+ response_data.read()
674
+ return self.api_client.response_deserialize(
675
+ response_data=response_data,
676
+ response_types_map=_response_types_map,
677
+ ).data
678
+
679
+
680
+ @validate_call
681
+ def fetch_environment_name_availability_with_http_info(
682
+ self,
683
+ name: StrictStr,
684
+ _request_timeout: Union[
685
+ None,
686
+ Annotated[StrictFloat, Field(gt=0)],
687
+ Tuple[
688
+ Annotated[StrictFloat, Field(gt=0)],
689
+ Annotated[StrictFloat, Field(gt=0)]
690
+ ]
691
+ ] = None,
692
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
693
+ _content_type: Optional[StrictStr] = None,
694
+ _headers: Optional[Dict[StrictStr, Any]] = None,
695
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
696
+ ) -> ApiResponse[NameAvailableModel]:
697
+ """Fetch environment name availability
698
+
699
+ Check if a Environment name is available
700
+
701
+ :param name: (required)
702
+ :type name: str
703
+ :param _request_timeout: timeout setting for this request. If one
704
+ number provided, it will be total request
705
+ timeout. It can also be a pair (tuple) of
706
+ (connection, read) timeouts.
707
+ :type _request_timeout: int, tuple(int, int), optional
708
+ :param _request_auth: set to override the auth_settings for an a single
709
+ request; this effectively ignores the
710
+ authentication in the spec for a single request.
711
+ :type _request_auth: dict, optional
712
+ :param _content_type: force content-type for the request.
713
+ :type _content_type: str, Optional
714
+ :param _headers: set to override the headers for a single
715
+ request; this effectively ignores the headers
716
+ in the spec for a single request.
717
+ :type _headers: dict, optional
718
+ :param _host_index: set to override the host_index for a single
719
+ request; this effectively ignores the host_index
720
+ in the spec for a single request.
721
+ :type _host_index: int, optional
722
+ :return: Returns the result object.
723
+ """ # noqa: E501
724
+
725
+ _param = self._fetch_environment_name_availability_serialize(
726
+ name=name,
727
+ _request_auth=_request_auth,
728
+ _content_type=_content_type,
729
+ _headers=_headers,
730
+ _host_index=_host_index
731
+ )
732
+
733
+ _response_types_map: Dict[str, Optional[str]] = {
734
+ '200': "NameAvailableModel",
735
+ '400': "ErrorResponseModel",
736
+ '401': "ErrorResponseModel",
737
+ '404': "ErrorResponseModel",
738
+ '500': None,
739
+ }
740
+ response_data = self.api_client.call_api(
741
+ *_param,
742
+ _request_timeout=_request_timeout
743
+ )
744
+ response_data.read()
745
+ return self.api_client.response_deserialize(
746
+ response_data=response_data,
747
+ response_types_map=_response_types_map,
748
+ )
749
+
750
+
751
+ @validate_call
752
+ def fetch_environment_name_availability_without_preload_content(
753
+ self,
754
+ name: StrictStr,
755
+ _request_timeout: Union[
756
+ None,
757
+ Annotated[StrictFloat, Field(gt=0)],
758
+ Tuple[
759
+ Annotated[StrictFloat, Field(gt=0)],
760
+ Annotated[StrictFloat, Field(gt=0)]
761
+ ]
762
+ ] = None,
763
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
764
+ _content_type: Optional[StrictStr] = None,
765
+ _headers: Optional[Dict[StrictStr, Any]] = None,
766
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
767
+ ) -> RESTResponseType:
768
+ """Fetch environment name availability
769
+
770
+ Check if a Environment name is available
771
+
772
+ :param name: (required)
773
+ :type name: str
774
+ :param _request_timeout: timeout setting for this request. If one
775
+ number provided, it will be total request
776
+ timeout. It can also be a pair (tuple) of
777
+ (connection, read) timeouts.
778
+ :type _request_timeout: int, tuple(int, int), optional
779
+ :param _request_auth: set to override the auth_settings for an a single
780
+ request; this effectively ignores the
781
+ authentication in the spec for a single request.
782
+ :type _request_auth: dict, optional
783
+ :param _content_type: force content-type for the request.
784
+ :type _content_type: str, Optional
785
+ :param _headers: set to override the headers for a single
786
+ request; this effectively ignores the headers
787
+ in the spec for a single request.
788
+ :type _headers: dict, optional
789
+ :param _host_index: set to override the host_index for a single
790
+ request; this effectively ignores the host_index
791
+ in the spec for a single request.
792
+ :type _host_index: int, optional
793
+ :return: Returns the result object.
794
+ """ # noqa: E501
795
+
796
+ _param = self._fetch_environment_name_availability_serialize(
797
+ name=name,
798
+ _request_auth=_request_auth,
799
+ _content_type=_content_type,
800
+ _headers=_headers,
801
+ _host_index=_host_index
802
+ )
803
+
804
+ _response_types_map: Dict[str, Optional[str]] = {
805
+ '200': "NameAvailableModel",
806
+ '400': "ErrorResponseModel",
807
+ '401': "ErrorResponseModel",
808
+ '404': "ErrorResponseModel",
809
+ '500': None,
810
+ }
811
+ response_data = self.api_client.call_api(
812
+ *_param,
813
+ _request_timeout=_request_timeout
814
+ )
815
+ return response_data.response
816
+
817
+
818
+ def _fetch_environment_name_availability_serialize(
819
+ self,
820
+ name,
821
+ _request_auth,
822
+ _content_type,
823
+ _headers,
824
+ _host_index,
825
+ ) -> RequestSerialized:
826
+
827
+ _host = None
828
+
829
+ _collection_formats: Dict[str, str] = {
830
+ }
831
+
832
+ _path_params: Dict[str, str] = {}
833
+ _query_params: List[Tuple[str, str]] = []
834
+ _header_params: Dict[str, Optional[str]] = _headers or {}
835
+ _form_params: List[Tuple[str, str]] = []
836
+ _files: Dict[
837
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
838
+ ] = {}
839
+ _body_params: Optional[bytes] = None
840
+
841
+ # process the path parameters
842
+ if name is not None:
843
+ _path_params['name'] = name
844
+ # process the query parameters
845
+ # process the header parameters
846
+ # process the form parameters
847
+ # process the body parameter
848
+
849
+
850
+ # set the HTTP header `Accept`
851
+ if 'Accept' not in _header_params:
852
+ _header_params['Accept'] = self.api_client.select_header_accept(
853
+ [
854
+ 'application/json'
855
+ ]
856
+ )
857
+
858
+
859
+ # authentication setting
860
+ _auth_settings: List[str] = [
861
+ 'apiKey'
862
+ ]
863
+
864
+ return self.api_client.param_serialize(
865
+ method='GET',
866
+ resource_path='/core/environments/name-availability/{name}',
867
+ path_params=_path_params,
868
+ query_params=_query_params,
869
+ header_params=_header_params,
870
+ body=_body_params,
871
+ post_params=_form_params,
872
+ files=_files,
873
+ auth_settings=_auth_settings,
874
+ collection_formats=_collection_formats,
875
+ _host=_host,
876
+ _request_auth=_request_auth
877
+ )
878
+
879
+
880
+
881
+
610
882
  @validate_call
611
883
  def list_environments(
612
884
  self,
@@ -628,7 +900,7 @@ class EnvironmentApi:
628
900
  ) -> Environments:
629
901
  """List environments
630
902
 
631
- 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).
903
+ 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/).
632
904
 
633
905
  :param page: Page Number
634
906
  :type page: str
@@ -706,7 +978,7 @@ class EnvironmentApi:
706
978
  ) -> ApiResponse[Environments]:
707
979
  """List environments
708
980
 
709
- 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).
981
+ 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/).
710
982
 
711
983
  :param page: Page Number
712
984
  :type page: str
@@ -784,7 +1056,7 @@ class EnvironmentApi:
784
1056
  ) -> RESTResponseType:
785
1057
  """List environments
786
1058
 
787
- 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).
1059
+ 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/).
788
1060
 
789
1061
  :param page: Page Number
790
1062
  :type page: str
@@ -892,8 +1164,7 @@ class EnvironmentApi:
892
1164
 
893
1165
  # authentication setting
894
1166
  _auth_settings: List[str] = [
895
- 'apiKey',
896
- 'accessToken'
1167
+ 'apiKey'
897
1168
  ]
898
1169
 
899
1170
  return self.api_client.param_serialize(
@@ -1166,8 +1437,7 @@ class EnvironmentApi:
1166
1437
 
1167
1438
  # authentication setting
1168
1439
  _auth_settings: List[str] = [
1169
- 'apiKey',
1170
- 'accessToken'
1440
+ 'apiKey'
1171
1441
  ]
1172
1442
 
1173
1443
  return self.api_client.param_serialize(
@@ -1468,8 +1738,7 @@ class EnvironmentApi:
1468
1738
 
1469
1739
  # authentication setting
1470
1740
  _auth_settings: List[str] = [
1471
- 'apiKey',
1472
- 'accessToken'
1741
+ 'apiKey'
1473
1742
  ]
1474
1743
 
1475
1744
  return self.api_client.param_serialize(
@@ -39,7 +39,7 @@ class FirewallAttachmentApi:
39
39
 
40
40
 
41
41
  @validate_call
42
- def attach_firewalls_to_vms(
42
+ def post_attach_security_groups(
43
43
  self,
44
44
  firewall_id: StrictInt,
45
45
  payload: AttachFirewallWithVM,
@@ -58,6 +58,7 @@ class FirewallAttachmentApi:
58
58
  ) -> ResponseModel:
59
59
  """Attach Firewalls to VMs
60
60
 
61
+ 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).
61
62
 
62
63
  :param firewall_id: (required)
63
64
  :type firewall_id: int
@@ -85,7 +86,7 @@ class FirewallAttachmentApi:
85
86
  :return: Returns the result object.
86
87
  """ # noqa: E501
87
88
 
88
- _param = self._attach_firewalls_to_vms_serialize(
89
+ _param = self._post_attach_security_groups_serialize(
89
90
  firewall_id=firewall_id,
90
91
  payload=payload,
91
92
  _request_auth=_request_auth,
@@ -115,7 +116,7 @@ class FirewallAttachmentApi:
115
116
 
116
117
 
117
118
  @validate_call
118
- def attach_firewalls_to_vms_with_http_info(
119
+ def post_attach_security_groups_with_http_info(
119
120
  self,
120
121
  firewall_id: StrictInt,
121
122
  payload: AttachFirewallWithVM,
@@ -134,6 +135,7 @@ class FirewallAttachmentApi:
134
135
  ) -> ApiResponse[ResponseModel]:
135
136
  """Attach Firewalls to VMs
136
137
 
138
+ 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).
137
139
 
138
140
  :param firewall_id: (required)
139
141
  :type firewall_id: int
@@ -161,7 +163,7 @@ class FirewallAttachmentApi:
161
163
  :return: Returns the result object.
162
164
  """ # noqa: E501
163
165
 
164
- _param = self._attach_firewalls_to_vms_serialize(
166
+ _param = self._post_attach_security_groups_serialize(
165
167
  firewall_id=firewall_id,
166
168
  payload=payload,
167
169
  _request_auth=_request_auth,
@@ -191,7 +193,7 @@ class FirewallAttachmentApi:
191
193
 
192
194
 
193
195
  @validate_call
194
- def attach_firewalls_to_vms_without_preload_content(
196
+ def post_attach_security_groups_without_preload_content(
195
197
  self,
196
198
  firewall_id: StrictInt,
197
199
  payload: AttachFirewallWithVM,
@@ -210,6 +212,7 @@ class FirewallAttachmentApi:
210
212
  ) -> RESTResponseType:
211
213
  """Attach Firewalls to VMs
212
214
 
215
+ 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).
213
216
 
214
217
  :param firewall_id: (required)
215
218
  :type firewall_id: int
@@ -237,7 +240,7 @@ class FirewallAttachmentApi:
237
240
  :return: Returns the result object.
238
241
  """ # noqa: E501
239
242
 
240
- _param = self._attach_firewalls_to_vms_serialize(
243
+ _param = self._post_attach_security_groups_serialize(
241
244
  firewall_id=firewall_id,
242
245
  payload=payload,
243
246
  _request_auth=_request_auth,
@@ -262,7 +265,7 @@ class FirewallAttachmentApi:
262
265
  return response_data.response
263
266
 
264
267
 
265
- def _attach_firewalls_to_vms_serialize(
268
+ def _post_attach_security_groups_serialize(
266
269
  self,
267
270
  firewall_id,
268
271
  payload,
@@ -321,8 +324,7 @@ class FirewallAttachmentApi:
321
324
 
322
325
  # authentication setting
323
326
  _auth_settings: List[str] = [
324
- 'apiKey',
325
- 'accessToken'
327
+ 'apiKey'
326
328
  ]
327
329
 
328
330
  return self.api_client.param_serialize(