hyperstack-async 1.55.1a0__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 (415) hide show
  1. hyperstack_async/__init__.py +434 -0
  2. hyperstack_async/api/__init__.py +60 -0
  3. hyperstack_async/api/access_keys_api.py +885 -0
  4. hyperstack_async/api/alive_api.py +510 -0
  5. hyperstack_async/api/api_key_api.py +1158 -0
  6. hyperstack_async/api/assigning_member_role_api.py +613 -0
  7. hyperstack_async/api/auth_api.py +1340 -0
  8. hyperstack_async/api/auto_topup_api.py +1376 -0
  9. hyperstack_async/api/beta_access_api.py +856 -0
  10. hyperstack_async/api/billing_api.py +12701 -0
  11. hyperstack_async/api/buckets_api.py +865 -0
  12. hyperstack_async/api/calculate_api.py +325 -0
  13. hyperstack_async/api/callbacks_api.py +1789 -0
  14. hyperstack_async/api/cluster_events_api.py +307 -0
  15. hyperstack_async/api/clusters_api.py +4884 -0
  16. hyperstack_async/api/compliance_api.py +1165 -0
  17. hyperstack_async/api/credit_api.py +297 -0
  18. hyperstack_async/api/customer_contract_api.py +919 -0
  19. hyperstack_async/api/dashboard_api.py +291 -0
  20. hyperstack_async/api/deployment_api.py +1118 -0
  21. hyperstack_async/api/email_opt_in_out_api.py +875 -0
  22. hyperstack_async/api/environment_api.py +2033 -0
  23. hyperstack_async/api/fip_exclusions_api.py +313 -0
  24. hyperstack_async/api/firewall_attachment_api.py +345 -0
  25. hyperstack_async/api/firewalls_api.py +1813 -0
  26. hyperstack_async/api/flavor_api.py +314 -0
  27. hyperstack_async/api/floating_ip_api.py +586 -0
  28. hyperstack_async/api/gpu_api.py +291 -0
  29. hyperstack_async/api/health_api.py +282 -0
  30. hyperstack_async/api/image_api.py +1224 -0
  31. hyperstack_async/api/invite_api.py +1127 -0
  32. hyperstack_async/api/keypair_api.py +1463 -0
  33. hyperstack_async/api/organization_api.py +861 -0
  34. hyperstack_async/api/partner_config_api.py +566 -0
  35. hyperstack_async/api/payment_api.py +865 -0
  36. hyperstack_async/api/permission_api.py +291 -0
  37. hyperstack_async/api/policy_api.py +291 -0
  38. hyperstack_async/api/pricebook_api.py +295 -0
  39. hyperstack_async/api/profile_api.py +1127 -0
  40. hyperstack_async/api/rbac_role_api.py +1429 -0
  41. hyperstack_async/api/region_api.py +291 -0
  42. hyperstack_async/api/regions_api.py +282 -0
  43. hyperstack_async/api/security_rules_api.py +291 -0
  44. hyperstack_async/api/snapshot_events_api.py +290 -0
  45. hyperstack_async/api/snapshots_api.py +1773 -0
  46. hyperstack_async/api/stock_api.py +291 -0
  47. hyperstack_async/api/template_api.py +1492 -0
  48. hyperstack_async/api/user_api.py +1130 -0
  49. hyperstack_async/api/user_consent_api.py +1416 -0
  50. hyperstack_async/api/user_consent_events_api.py +307 -0
  51. hyperstack_async/api/user_detail_choice_api.py +294 -0
  52. hyperstack_async/api/user_permission_api.py +565 -0
  53. hyperstack_async/api/virtual_machine_api.py +6246 -0
  54. hyperstack_async/api/virtual_machine_events_api.py +310 -0
  55. hyperstack_async/api/vnc_url_api.py +599 -0
  56. hyperstack_async/api/volume_api.py +2042 -0
  57. hyperstack_async/api/volume_attachment_api.py +950 -0
  58. hyperstack_async/api/vouchers_api.py +326 -0
  59. hyperstack_async/api_client.py +800 -0
  60. hyperstack_async/api_response.py +21 -0
  61. hyperstack_async/configuration.py +591 -0
  62. hyperstack_async/exceptions.py +199 -0
  63. hyperstack_async/models/__init__.py +362 -0
  64. hyperstack_async/models/access_token_field.py +100 -0
  65. hyperstack_async/models/add_user_info_success_response_model.py +108 -0
  66. hyperstack_async/models/allocated_gpu_count_graph.py +102 -0
  67. hyperstack_async/models/allowed_countries_response.py +102 -0
  68. hyperstack_async/models/api_key_fields.py +109 -0
  69. hyperstack_async/models/assign_rbac_role_payload.py +100 -0
  70. hyperstack_async/models/attach_callback_payload.py +100 -0
  71. hyperstack_async/models/attach_callback_response.py +104 -0
  72. hyperstack_async/models/attach_firewall_with_vm.py +100 -0
  73. hyperstack_async/models/attach_firewalls_to_vm_payload.py +100 -0
  74. hyperstack_async/models/attach_volume_fields.py +113 -0
  75. hyperstack_async/models/attach_volumes.py +112 -0
  76. hyperstack_async/models/attach_volumes_payload.py +102 -0
  77. hyperstack_async/models/attachments_fields_for_volume.py +108 -0
  78. hyperstack_async/models/attributes.py +110 -0
  79. hyperstack_async/models/auth_get_token_response_model.py +108 -0
  80. hyperstack_async/models/auth_user_fields.py +107 -0
  81. hyperstack_async/models/auth_user_info_response_model.py +108 -0
  82. hyperstack_async/models/auto_topup.py +108 -0
  83. hyperstack_async/models/auto_topup_error_response.py +104 -0
  84. hyperstack_async/models/auto_topup_status_schema.py +104 -0
  85. hyperstack_async/models/beta_access_request_fields.py +121 -0
  86. hyperstack_async/models/beta_access_request_payload.py +102 -0
  87. hyperstack_async/models/beta_access_request_response_model.py +108 -0
  88. hyperstack_async/models/beta_access_status_item.py +115 -0
  89. hyperstack_async/models/beta_access_status_response_model.py +112 -0
  90. hyperstack_async/models/billing_history.py +110 -0
  91. hyperstack_async/models/billing_history_data_synthesis_details.py +118 -0
  92. hyperstack_async/models/billing_history_fine_tuning.py +118 -0
  93. hyperstack_async/models/billing_history_image_generation_details.py +118 -0
  94. hyperstack_async/models/billing_history_model_evalutation_details.py +118 -0
  95. hyperstack_async/models/billing_history_serverless_inference.py +118 -0
  96. hyperstack_async/models/billing_history_serverless_inference_details.py +118 -0
  97. hyperstack_async/models/billing_metrices_fields.py +121 -0
  98. hyperstack_async/models/billing_metrices_response.py +112 -0
  99. hyperstack_async/models/cluster_events.py +112 -0
  100. hyperstack_async/models/cluster_events_fields.py +117 -0
  101. hyperstack_async/models/cluster_fields.py +147 -0
  102. hyperstack_async/models/cluster_flavor_fields.py +126 -0
  103. hyperstack_async/models/cluster_list_response.py +112 -0
  104. hyperstack_async/models/cluster_node_fields.py +125 -0
  105. hyperstack_async/models/cluster_node_group_fields.py +133 -0
  106. hyperstack_async/models/cluster_node_group_firewall_fields.py +104 -0
  107. hyperstack_async/models/cluster_node_groups_create_response.py +118 -0
  108. hyperstack_async/models/cluster_node_groups_get_response.py +108 -0
  109. hyperstack_async/models/cluster_node_groups_list_response.py +112 -0
  110. hyperstack_async/models/cluster_node_instance_fields.py +114 -0
  111. hyperstack_async/models/cluster_nodes_list_response.py +112 -0
  112. hyperstack_async/models/cluster_response.py +108 -0
  113. hyperstack_async/models/cluster_version.py +111 -0
  114. hyperstack_async/models/cluster_versions.py +112 -0
  115. hyperstack_async/models/colors.py +110 -0
  116. hyperstack_async/models/common_response_model.py +102 -0
  117. hyperstack_async/models/compatible_flavor.py +108 -0
  118. hyperstack_async/models/compliance_fields.py +106 -0
  119. hyperstack_async/models/compliance_model_fields.py +112 -0
  120. hyperstack_async/models/compliance_payload.py +110 -0
  121. hyperstack_async/models/compliance_response.py +108 -0
  122. hyperstack_async/models/consent_action_response.py +106 -0
  123. hyperstack_async/models/consent_block.py +112 -0
  124. hyperstack_async/models/consent_events_response.py +114 -0
  125. hyperstack_async/models/consent_template.py +110 -0
  126. hyperstack_async/models/consent_templates_response.py +100 -0
  127. hyperstack_async/models/container_overview_fields.py +108 -0
  128. hyperstack_async/models/contract.py +118 -0
  129. hyperstack_async/models/contract_discount_plan_fields.py +118 -0
  130. hyperstack_async/models/contract_gpu_allocation_graph_response.py +108 -0
  131. hyperstack_async/models/contract_instance_fields.py +121 -0
  132. hyperstack_async/models/contract_instances_response.py +112 -0
  133. hyperstack_async/models/create_auto_topup_payload.py +102 -0
  134. hyperstack_async/models/create_auto_topup_response.py +108 -0
  135. hyperstack_async/models/create_cluster_node_fields.py +115 -0
  136. hyperstack_async/models/create_cluster_node_group_payload.py +120 -0
  137. hyperstack_async/models/create_cluster_payload.py +137 -0
  138. hyperstack_async/models/create_environment.py +103 -0
  139. hyperstack_async/models/create_firewall_payload.py +104 -0
  140. hyperstack_async/models/create_firewall_rule_payload.py +117 -0
  141. hyperstack_async/models/create_image.py +104 -0
  142. hyperstack_async/models/create_image_payload.py +102 -0
  143. hyperstack_async/models/create_instances_payload.py +149 -0
  144. hyperstack_async/models/create_instances_response.py +112 -0
  145. hyperstack_async/models/create_profile_payload.py +105 -0
  146. hyperstack_async/models/create_profile_response.py +108 -0
  147. hyperstack_async/models/create_security_rule_payload.py +117 -0
  148. hyperstack_async/models/create_snapshot_payload.py +104 -0
  149. hyperstack_async/models/create_snapshot_response.py +108 -0
  150. hyperstack_async/models/create_update_compliance_response.py +108 -0
  151. hyperstack_async/models/create_update_rbac_role_payload.py +107 -0
  152. hyperstack_async/models/create_volume_payload.py +113 -0
  153. hyperstack_async/models/customer_contract_detail_response_model.py +108 -0
  154. hyperstack_async/models/customer_contract_fields.py +125 -0
  155. hyperstack_async/models/dashboard_info_response.py +108 -0
  156. hyperstack_async/models/data_synthesis_billing_history_details_response_schema.py +108 -0
  157. hyperstack_async/models/delete_cluster_nodes_fields.py +100 -0
  158. hyperstack_async/models/deployment_fields.py +111 -0
  159. hyperstack_async/models/deployment_fields_for_start_deployments.py +113 -0
  160. hyperstack_async/models/deployments.py +112 -0
  161. hyperstack_async/models/detach_volumes.py +112 -0
  162. hyperstack_async/models/detach_volumes_payload.py +100 -0
  163. hyperstack_async/models/disable_auto_topup_response.py +108 -0
  164. hyperstack_async/models/edit_label_of_an_existing_vm_payload.py +100 -0
  165. hyperstack_async/models/email_category.py +122 -0
  166. hyperstack_async/models/email_category_child.py +114 -0
  167. hyperstack_async/models/email_preferences_response.py +108 -0
  168. hyperstack_async/models/environment.py +108 -0
  169. hyperstack_async/models/environment_features.py +112 -0
  170. hyperstack_async/models/environment_fields.py +113 -0
  171. hyperstack_async/models/environment_fields_for_volume.py +104 -0
  172. hyperstack_async/models/environments.py +118 -0
  173. hyperstack_async/models/error_response_model.py +104 -0
  174. hyperstack_async/models/firewall_attachment_model.py +111 -0
  175. hyperstack_async/models/firewall_attachment_vm_model.py +111 -0
  176. hyperstack_async/models/firewall_detail_fields.py +135 -0
  177. hyperstack_async/models/firewall_detail_response.py +108 -0
  178. hyperstack_async/models/firewall_environment_fields.py +104 -0
  179. hyperstack_async/models/firewall_fields.py +115 -0
  180. hyperstack_async/models/firewall_response.py +108 -0
  181. hyperstack_async/models/firewall_rule.py +108 -0
  182. hyperstack_async/models/firewalls_list_response.py +118 -0
  183. hyperstack_async/models/flavor_fields.py +135 -0
  184. hyperstack_async/models/flavor_item_get_response.py +112 -0
  185. hyperstack_async/models/flavor_label_fields.py +102 -0
  186. hyperstack_async/models/flavor_list_response.py +112 -0
  187. hyperstack_async/models/flavor_object_fields.py +108 -0
  188. hyperstack_async/models/flavor_restrictions.py +112 -0
  189. hyperstack_async/models/generate_update_api_key_payload.py +103 -0
  190. hyperstack_async/models/generate_update_api_key_response_model.py +108 -0
  191. hyperstack_async/models/get_api_keys_response_model.py +112 -0
  192. hyperstack_async/models/get_auto_topup_response.py +108 -0
  193. hyperstack_async/models/get_credit_and_threshold_info.py +104 -0
  194. hyperstack_async/models/get_credit_and_threshold_info_in_response.py +108 -0
  195. hyperstack_async/models/get_customer_contracts_list_response_model.py +114 -0
  196. hyperstack_async/models/get_instance_logs_response.py +100 -0
  197. hyperstack_async/models/get_invites_response_model.py +112 -0
  198. hyperstack_async/models/get_organization_response_model.py +108 -0
  199. hyperstack_async/models/get_permissions_response_model.py +112 -0
  200. hyperstack_async/models/get_policies_response_model.py +112 -0
  201. hyperstack_async/models/get_rbac_roles_response_model.py +112 -0
  202. hyperstack_async/models/get_user_permissions_response_model.py +112 -0
  203. hyperstack_async/models/gpu_fields.py +119 -0
  204. hyperstack_async/models/gpu_list.py +112 -0
  205. hyperstack_async/models/gpu_region_fields.py +102 -0
  206. hyperstack_async/models/graph_datetime_value_model.py +102 -0
  207. hyperstack_async/models/image.py +104 -0
  208. hyperstack_async/models/image_fields.py +132 -0
  209. hyperstack_async/models/image_generation_billing_history_details_response_schema.py +108 -0
  210. hyperstack_async/models/image_get_response.py +114 -0
  211. hyperstack_async/models/images.py +112 -0
  212. hyperstack_async/models/import_keypair_payload.py +105 -0
  213. hyperstack_async/models/import_keypair_response.py +108 -0
  214. hyperstack_async/models/infrahub_resource_object_response_for_customer.py +122 -0
  215. hyperstack_async/models/instance.py +108 -0
  216. hyperstack_async/models/instance_enhanced_metrics_fields.py +100 -0
  217. hyperstack_async/models/instance_environment_fields.py +112 -0
  218. hyperstack_async/models/instance_events.py +112 -0
  219. hyperstack_async/models/instance_events_fields.py +115 -0
  220. hyperstack_async/models/instance_fields.py +185 -0
  221. hyperstack_async/models/instance_flavor_fields.py +126 -0
  222. hyperstack_async/models/instance_image_fields.py +100 -0
  223. hyperstack_async/models/instance_keypair_fields.py +100 -0
  224. hyperstack_async/models/instance_overview_fields.py +108 -0
  225. hyperstack_async/models/instance_resize_payload.py +106 -0
  226. hyperstack_async/models/instances.py +118 -0
  227. hyperstack_async/models/invite_fields.py +107 -0
  228. hyperstack_async/models/invite_user_payload.py +108 -0
  229. hyperstack_async/models/invite_user_response_model.py +108 -0
  230. hyperstack_async/models/keypair_environment_features.py +112 -0
  231. hyperstack_async/models/keypair_environment_fields.py +113 -0
  232. hyperstack_async/models/keypair_fields.py +115 -0
  233. hyperstack_async/models/keypairs.py +118 -0
  234. hyperstack_async/models/lable_resonse.py +102 -0
  235. hyperstack_async/models/last_day_cost_fields.py +106 -0
  236. hyperstack_async/models/last_day_cost_response.py +108 -0
  237. hyperstack_async/models/logos.py +106 -0
  238. hyperstack_async/models/manual_reconciliation_model.py +108 -0
  239. hyperstack_async/models/master_flavors_response.py +112 -0
  240. hyperstack_async/models/metric_item_fields.py +104 -0
  241. hyperstack_async/models/metrics.py +114 -0
  242. hyperstack_async/models/metrics_fields.py +129 -0
  243. hyperstack_async/models/mfa_status_fields.py +100 -0
  244. hyperstack_async/models/mfa_status_response.py +108 -0
  245. hyperstack_async/models/model_evaluation_billing_history_details_response_schema.py +108 -0
  246. hyperstack_async/models/name_available_model.py +104 -0
  247. hyperstack_async/models/new_configurations_response.py +108 -0
  248. hyperstack_async/models/new_model_response.py +114 -0
  249. hyperstack_async/models/new_stock_response.py +112 -0
  250. hyperstack_async/models/new_stock_retrive_response.py +108 -0
  251. hyperstack_async/models/object_storage_access_key_create_request.py +103 -0
  252. hyperstack_async/models/object_storage_access_key_create_response.py +114 -0
  253. hyperstack_async/models/object_storage_access_key_list_response.py +114 -0
  254. hyperstack_async/models/object_storage_access_key_response.py +112 -0
  255. hyperstack_async/models/object_storage_bucket_list_response.py +110 -0
  256. hyperstack_async/models/object_storage_bucket_response.py +114 -0
  257. hyperstack_async/models/object_storage_delete_response.py +100 -0
  258. hyperstack_async/models/object_storage_error_response.py +104 -0
  259. hyperstack_async/models/object_storage_health_response.py +100 -0
  260. hyperstack_async/models/object_storage_pagination_meta.py +104 -0
  261. hyperstack_async/models/object_storage_region_list_response.py +108 -0
  262. hyperstack_async/models/object_storage_region_response.py +100 -0
  263. hyperstack_async/models/object_storage_regions_enum.py +36 -0
  264. hyperstack_async/models/organization_fields.py +127 -0
  265. hyperstack_async/models/organization_level_billing_history.py +112 -0
  266. hyperstack_async/models/organization_level_billing_history_resources.py +110 -0
  267. hyperstack_async/models/organization_level_billing_history_response_attributes.py +100 -0
  268. hyperstack_async/models/organization_level_billing_history_response_metrics.py +110 -0
  269. hyperstack_async/models/organization_level_billing_history_response_model.py +108 -0
  270. hyperstack_async/models/organization_threshold_fields.py +108 -0
  271. hyperstack_async/models/organization_threshold_update_response.py +108 -0
  272. hyperstack_async/models/organization_thresholds_response.py +112 -0
  273. hyperstack_async/models/organization_user_response_model.py +125 -0
  274. hyperstack_async/models/overview_info.py +116 -0
  275. hyperstack_async/models/pagination.py +104 -0
  276. hyperstack_async/models/pagination_data.py +104 -0
  277. hyperstack_async/models/partner_config.py +124 -0
  278. hyperstack_async/models/payment_details_fields.py +131 -0
  279. hyperstack_async/models/payment_details_response.py +112 -0
  280. hyperstack_async/models/payment_initiate_fields.py +100 -0
  281. hyperstack_async/models/payment_initiate_payload.py +100 -0
  282. hyperstack_async/models/payment_initiate_response.py +108 -0
  283. hyperstack_async/models/permission_fields.py +111 -0
  284. hyperstack_async/models/policy_fields.py +117 -0
  285. hyperstack_async/models/policy_permission_fields.py +104 -0
  286. hyperstack_async/models/pricebook_model.py +113 -0
  287. hyperstack_async/models/pricebook_resource_object_response_for_customer.py +112 -0
  288. hyperstack_async/models/primary_color.py +102 -0
  289. hyperstack_async/models/profile_fields.py +109 -0
  290. hyperstack_async/models/profile_list_response.py +112 -0
  291. hyperstack_async/models/profile_object_fields.py +102 -0
  292. hyperstack_async/models/rbac_role_detail_response_model.py +108 -0
  293. hyperstack_async/models/rbac_role_detail_response_model_fixed.py +108 -0
  294. hyperstack_async/models/rbac_role_field.py +100 -0
  295. hyperstack_async/models/rbac_role_fields.py +127 -0
  296. hyperstack_async/models/record_consent_request.py +132 -0
  297. hyperstack_async/models/redeem_voucher_payload.py +100 -0
  298. hyperstack_async/models/region_fields.py +120 -0
  299. hyperstack_async/models/regions.py +112 -0
  300. hyperstack_async/models/remove_member_from_organization_response_model.py +102 -0
  301. hyperstack_async/models/remove_member_payload.py +101 -0
  302. hyperstack_async/models/request_console.py +104 -0
  303. hyperstack_async/models/request_instance_logs_payload.py +100 -0
  304. hyperstack_async/models/request_instance_logs_response.py +100 -0
  305. hyperstack_async/models/resource_billing_events_history_metrics.py +108 -0
  306. hyperstack_async/models/resource_billing_events_history_response.py +112 -0
  307. hyperstack_async/models/resource_billing_response_for_customer.py +108 -0
  308. hyperstack_async/models/resource_level_billing_bucket_details_resources.py +110 -0
  309. hyperstack_async/models/resource_level_billing_details_attributes.py +104 -0
  310. hyperstack_async/models/resource_level_billing_details_metrics.py +114 -0
  311. hyperstack_async/models/resource_level_billing_details_vm.py +112 -0
  312. hyperstack_async/models/resource_level_billing_details_volume.py +112 -0
  313. hyperstack_async/models/resource_level_billing_details_volume_attributes.py +108 -0
  314. hyperstack_async/models/resource_level_billing_details_volume_metrics.py +108 -0
  315. hyperstack_async/models/resource_level_billing_history.py +118 -0
  316. hyperstack_async/models/resource_level_billing_history_resources.py +110 -0
  317. hyperstack_async/models/resource_level_billing_history_resources_cluster.py +120 -0
  318. hyperstack_async/models/resource_level_billing_history_response_attributes.py +108 -0
  319. hyperstack_async/models/resource_level_billing_history_response_metrics.py +104 -0
  320. hyperstack_async/models/resource_level_billing_vm_details_resources.py +110 -0
  321. hyperstack_async/models/resource_level_billing_volume_details_resources.py +110 -0
  322. hyperstack_async/models/resource_level_bucket_billing_details_response_model.py +108 -0
  323. hyperstack_async/models/resource_level_bucket_billing_history_response_model.py +108 -0
  324. hyperstack_async/models/resource_level_cluster_billing_details_response_model.py +108 -0
  325. hyperstack_async/models/resource_level_cluster_billing_history_response_model.py +108 -0
  326. hyperstack_async/models/resource_level_cluster_graph_billing_details_response_model.py +108 -0
  327. hyperstack_async/models/resource_level_graph_billing_detail_volume.py +114 -0
  328. hyperstack_async/models/resource_level_graph_billing_details_attributes.py +104 -0
  329. hyperstack_async/models/resource_level_graph_billing_details_bucket.py +114 -0
  330. hyperstack_async/models/resource_level_graph_billing_details_metrics.py +110 -0
  331. hyperstack_async/models/resource_level_graph_billing_details_vm.py +114 -0
  332. hyperstack_async/models/resource_level_graph_billing_vm_details_resources.py +110 -0
  333. hyperstack_async/models/resource_level_graph_billing_volume_details_resources.py +110 -0
  334. hyperstack_async/models/resource_level_vm_billing_details_response_model.py +108 -0
  335. hyperstack_async/models/resource_level_vm_billing_history_response_model.py +108 -0
  336. hyperstack_async/models/resource_level_vm_graph_billing_details_response_model.py +108 -0
  337. hyperstack_async/models/resource_level_volume_billing_details_response_model.py +108 -0
  338. hyperstack_async/models/resource_level_volume_billing_history_response_model.py +108 -0
  339. hyperstack_async/models/resource_level_volume_graph_billing_details_response_model.py +108 -0
  340. hyperstack_async/models/resource_object_response_for_customer.py +106 -0
  341. hyperstack_async/models/response_model.py +102 -0
  342. hyperstack_async/models/role_permission_fields.py +104 -0
  343. hyperstack_async/models/role_policy_fields.py +104 -0
  344. hyperstack_async/models/secondary_color.py +102 -0
  345. hyperstack_async/models/security_group_rule.py +108 -0
  346. hyperstack_async/models/security_group_rule_fields.py +117 -0
  347. hyperstack_async/models/security_rules_fields_for_instance.py +117 -0
  348. hyperstack_async/models/security_rules_protocol_fields.py +104 -0
  349. hyperstack_async/models/serverless_inferenced_billing_history_details_response_schema.py +108 -0
  350. hyperstack_async/models/snapshot_fields.py +123 -0
  351. hyperstack_async/models/snapshot_restore_request.py +102 -0
  352. hyperstack_async/models/snapshot_retrieve.py +108 -0
  353. hyperstack_async/models/snapshot_retrieve_fields.py +143 -0
  354. hyperstack_async/models/snapshots.py +118 -0
  355. hyperstack_async/models/start_deployment.py +108 -0
  356. hyperstack_async/models/start_deployment_payload.py +106 -0
  357. hyperstack_async/models/sub_resource_graph_billing_details_metrics.py +165 -0
  358. hyperstack_async/models/sub_resources_costs_response_model.py +114 -0
  359. hyperstack_async/models/sub_resources_graph_billing_history_fields.py +110 -0
  360. hyperstack_async/models/sub_resources_graph_response_model.py +108 -0
  361. hyperstack_async/models/subscribe_or_unsubscribe_update_payload.py +100 -0
  362. hyperstack_async/models/supported_keypair_public_key_types_response.py +104 -0
  363. hyperstack_async/models/template.py +108 -0
  364. hyperstack_async/models/template_fields.py +111 -0
  365. hyperstack_async/models/templates.py +112 -0
  366. hyperstack_async/models/token_based_billing_history_response.py +108 -0
  367. hyperstack_async/models/update_auto_topup_payload.py +102 -0
  368. hyperstack_async/models/update_auto_topup_response.py +108 -0
  369. hyperstack_async/models/update_cluster_node_group_payload.py +105 -0
  370. hyperstack_async/models/update_consent_request.py +123 -0
  371. hyperstack_async/models/update_email_preference_input.py +100 -0
  372. hyperstack_async/models/update_email_preference_response.py +100 -0
  373. hyperstack_async/models/update_environment.py +101 -0
  374. hyperstack_async/models/update_keypair_name.py +101 -0
  375. hyperstack_async/models/update_keypair_name_response.py +108 -0
  376. hyperstack_async/models/update_organization_payload.py +101 -0
  377. hyperstack_async/models/update_organization_response_model.py +102 -0
  378. hyperstack_async/models/update_template.py +104 -0
  379. hyperstack_async/models/update_volume_attachment_payload.py +100 -0
  380. hyperstack_async/models/update_volume_payload.py +100 -0
  381. hyperstack_async/models/update_volume_response.py +110 -0
  382. hyperstack_async/models/uris.py +112 -0
  383. hyperstack_async/models/user_consent.py +116 -0
  384. hyperstack_async/models/user_consent_event.py +112 -0
  385. hyperstack_async/models/user_consents_response.py +108 -0
  386. hyperstack_async/models/user_default_choice_for_user_fields.py +104 -0
  387. hyperstack_async/models/user_default_choices_for_user_response.py +112 -0
  388. hyperstack_async/models/user_enhanced_metrics_payload.py +100 -0
  389. hyperstack_async/models/user_enhanced_metrics_response.py +110 -0
  390. hyperstack_async/models/user_enhanced_metrics_response_fields.py +100 -0
  391. hyperstack_async/models/user_info_post_payload.py +120 -0
  392. hyperstack_async/models/user_organizations_response.py +108 -0
  393. hyperstack_async/models/user_permission_fields.py +104 -0
  394. hyperstack_async/models/users_info_fields.py +129 -0
  395. hyperstack_async/models/users_info_list_response.py +108 -0
  396. hyperstack_async/models/vm_quota.py +112 -0
  397. hyperstack_async/models/vncurl.py +108 -0
  398. hyperstack_async/models/vncurl_fields.py +102 -0
  399. hyperstack_async/models/volume.py +108 -0
  400. hyperstack_async/models/volume_attachment_fields.py +115 -0
  401. hyperstack_async/models/volume_fields.py +139 -0
  402. hyperstack_async/models/volume_fields_for_instance.py +110 -0
  403. hyperstack_async/models/volume_overview_fields.py +104 -0
  404. hyperstack_async/models/volume_types.py +104 -0
  405. hyperstack_async/models/volumes.py +118 -0
  406. hyperstack_async/models/volumes_fields.py +137 -0
  407. hyperstack_async/models/voucher.py +110 -0
  408. hyperstack_async/models/voucher_redeem_response_schema.py +108 -0
  409. hyperstack_async/models/workload_billing_history_response.py +108 -0
  410. hyperstack_async/py.typed +0 -0
  411. hyperstack_async/rest.py +215 -0
  412. hyperstack_async-1.55.1a0.dist-info/METADATA +25 -0
  413. hyperstack_async-1.55.1a0.dist-info/RECORD +415 -0
  414. hyperstack_async-1.55.1a0.dist-info/WHEEL +5 -0
  415. hyperstack_async-1.55.1a0.dist-info/top_level.txt +1 -0
@@ -0,0 +1,199 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Infrahub-API
5
+
6
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+ from typing import Any, Optional
15
+ from typing_extensions import Self
16
+
17
+ class OpenApiException(Exception):
18
+ """The base exception class for all OpenAPIExceptions"""
19
+
20
+
21
+ class ApiTypeError(OpenApiException, TypeError):
22
+ def __init__(self, msg, path_to_item=None, valid_classes=None,
23
+ key_type=None) -> None:
24
+ """ Raises an exception for TypeErrors
25
+
26
+ Args:
27
+ msg (str): the exception message
28
+
29
+ Keyword Args:
30
+ path_to_item (list): a list of keys an indices to get to the
31
+ current_item
32
+ None if unset
33
+ valid_classes (tuple): the primitive classes that current item
34
+ should be an instance of
35
+ None if unset
36
+ key_type (bool): False if our value is a value in a dict
37
+ True if it is a key in a dict
38
+ False if our item is an item in a list
39
+ None if unset
40
+ """
41
+ self.path_to_item = path_to_item
42
+ self.valid_classes = valid_classes
43
+ self.key_type = key_type
44
+ full_msg = msg
45
+ if path_to_item:
46
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
47
+ super(ApiTypeError, self).__init__(full_msg)
48
+
49
+
50
+ class ApiValueError(OpenApiException, ValueError):
51
+ def __init__(self, msg, path_to_item=None) -> None:
52
+ """
53
+ Args:
54
+ msg (str): the exception message
55
+
56
+ Keyword Args:
57
+ path_to_item (list) the path to the exception in the
58
+ received_data dict. None if unset
59
+ """
60
+
61
+ self.path_to_item = path_to_item
62
+ full_msg = msg
63
+ if path_to_item:
64
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
65
+ super(ApiValueError, self).__init__(full_msg)
66
+
67
+
68
+ class ApiAttributeError(OpenApiException, AttributeError):
69
+ def __init__(self, msg, path_to_item=None) -> None:
70
+ """
71
+ Raised when an attribute reference or assignment fails.
72
+
73
+ Args:
74
+ msg (str): the exception message
75
+
76
+ Keyword Args:
77
+ path_to_item (None/list) the path to the exception in the
78
+ received_data dict
79
+ """
80
+ self.path_to_item = path_to_item
81
+ full_msg = msg
82
+ if path_to_item:
83
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
84
+ super(ApiAttributeError, self).__init__(full_msg)
85
+
86
+
87
+ class ApiKeyError(OpenApiException, KeyError):
88
+ def __init__(self, msg, path_to_item=None) -> None:
89
+ """
90
+ Args:
91
+ msg (str): the exception message
92
+
93
+ Keyword Args:
94
+ path_to_item (None/list) the path to the exception in the
95
+ received_data dict
96
+ """
97
+ self.path_to_item = path_to_item
98
+ full_msg = msg
99
+ if path_to_item:
100
+ full_msg = "{0} at {1}".format(msg, render_path(path_to_item))
101
+ super(ApiKeyError, self).__init__(full_msg)
102
+
103
+
104
+ class ApiException(OpenApiException):
105
+
106
+ def __init__(
107
+ self,
108
+ status=None,
109
+ reason=None,
110
+ http_resp=None,
111
+ *,
112
+ body: Optional[str] = None,
113
+ data: Optional[Any] = None,
114
+ ) -> None:
115
+ self.status = status
116
+ self.reason = reason
117
+ self.body = body
118
+ self.data = data
119
+ self.headers = None
120
+
121
+ if http_resp:
122
+ if self.status is None:
123
+ self.status = http_resp.status
124
+ if self.reason is None:
125
+ self.reason = http_resp.reason
126
+ if self.body is None:
127
+ try:
128
+ self.body = http_resp.data.decode('utf-8')
129
+ except Exception:
130
+ pass
131
+ self.headers = http_resp.getheaders()
132
+
133
+ @classmethod
134
+ def from_response(
135
+ cls,
136
+ *,
137
+ http_resp,
138
+ body: Optional[str],
139
+ data: Optional[Any],
140
+ ) -> Self:
141
+ if http_resp.status == 400:
142
+ raise BadRequestException(http_resp=http_resp, body=body, data=data)
143
+
144
+ if http_resp.status == 401:
145
+ raise UnauthorizedException(http_resp=http_resp, body=body, data=data)
146
+
147
+ if http_resp.status == 403:
148
+ raise ForbiddenException(http_resp=http_resp, body=body, data=data)
149
+
150
+ if http_resp.status == 404:
151
+ raise NotFoundException(http_resp=http_resp, body=body, data=data)
152
+
153
+ if 500 <= http_resp.status <= 599:
154
+ raise ServiceException(http_resp=http_resp, body=body, data=data)
155
+ raise ApiException(http_resp=http_resp, body=body, data=data)
156
+
157
+ def __str__(self):
158
+ """Custom error messages for exception"""
159
+ error_message = "({0})\n"\
160
+ "Reason: {1}\n".format(self.status, self.reason)
161
+ if self.headers:
162
+ error_message += "HTTP response headers: {0}\n".format(
163
+ self.headers)
164
+
165
+ if self.data or self.body:
166
+ error_message += "HTTP response body: {0}\n".format(self.data or self.body)
167
+
168
+ return error_message
169
+
170
+
171
+ class BadRequestException(ApiException):
172
+ pass
173
+
174
+
175
+ class NotFoundException(ApiException):
176
+ pass
177
+
178
+
179
+ class UnauthorizedException(ApiException):
180
+ pass
181
+
182
+
183
+ class ForbiddenException(ApiException):
184
+ pass
185
+
186
+
187
+ class ServiceException(ApiException):
188
+ pass
189
+
190
+
191
+ def render_path(path_to_item):
192
+ """Returns a string representation of a path"""
193
+ result = ""
194
+ for pth in path_to_item:
195
+ if isinstance(pth, int):
196
+ result += "[{0}]".format(pth)
197
+ else:
198
+ result += "['{0}']".format(pth)
199
+ return result
@@ -0,0 +1,362 @@
1
+ # coding: utf-8
2
+
3
+ # flake8: noqa
4
+ """
5
+ Infrahub-API
6
+
7
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
8
+
9
+ The version of the OpenAPI document: 1.0
10
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
11
+
12
+ Do not edit the class manually.
13
+ """ # noqa: E501
14
+
15
+
16
+ # import models into model package
17
+ from .access_token_field import AccessTokenField
18
+ from .add_user_info_success_response_model import AddUserInfoSuccessResponseModel
19
+ from .allocated_gpu_count_graph import AllocatedGPUCountGraph
20
+ from .allowed_countries_response import AllowedCountriesResponse
21
+ from .api_key_fields import ApiKeyFields
22
+ from .assign_rbac_role_payload import AssignRbacRolePayload
23
+ from .attach_callback_payload import AttachCallbackPayload
24
+ from .attach_callback_response import AttachCallbackResponse
25
+ from .attach_firewall_with_vm import AttachFirewallWithVM
26
+ from .attach_firewalls_to_vm_payload import AttachFirewallsToVMPayload
27
+ from .attach_volume_fields import AttachVolumeFields
28
+ from .attach_volumes import AttachVolumes
29
+ from .attach_volumes_payload import AttachVolumesPayload
30
+ from .attachments_fields_for_volume import AttachmentsFieldsForVolume
31
+ from .attributes import Attributes
32
+ from .auth_get_token_response_model import AuthGetTokenResponseModel
33
+ from .auth_user_fields import AuthUserFields
34
+ from .auth_user_info_response_model import AuthUserInfoResponseModel
35
+ from .auto_topup import AutoTopup
36
+ from .auto_topup_error_response import AutoTopupErrorResponse
37
+ from .auto_topup_status_schema import AutoTopupStatusSchema
38
+ from .beta_access_request_fields import BetaAccessRequestFields
39
+ from .beta_access_request_payload import BetaAccessRequestPayload
40
+ from .beta_access_request_response_model import BetaAccessRequestResponseModel
41
+ from .beta_access_status_item import BetaAccessStatusItem
42
+ from .beta_access_status_response_model import BetaAccessStatusResponseModel
43
+ from .billing_history import BillingHistory
44
+ from .billing_history_data_synthesis_details import BillingHistoryDataSynthesisDetails
45
+ from .billing_history_fine_tuning import BillingHistoryFineTuning
46
+ from .billing_history_image_generation_details import BillingHistoryImageGenerationDetails
47
+ from .billing_history_model_evalutation_details import BillingHistoryModelEvalutationDetails
48
+ from .billing_history_serverless_inference import BillingHistoryServerlessInference
49
+ from .billing_history_serverless_inference_details import BillingHistoryServerlessInferenceDetails
50
+ from .billing_metrices_fields import BillingMetricesFields
51
+ from .billing_metrices_response import BillingMetricesResponse
52
+ from .cluster_events import ClusterEvents
53
+ from .cluster_events_fields import ClusterEventsFields
54
+ from .cluster_fields import ClusterFields
55
+ from .cluster_flavor_fields import ClusterFlavorFields
56
+ from .cluster_list_response import ClusterListResponse
57
+ from .cluster_node_fields import ClusterNodeFields
58
+ from .cluster_node_group_fields import ClusterNodeGroupFields
59
+ from .cluster_node_group_firewall_fields import ClusterNodeGroupFirewallFields
60
+ from .cluster_node_groups_create_response import ClusterNodeGroupsCreateResponse
61
+ from .cluster_node_groups_get_response import ClusterNodeGroupsGetResponse
62
+ from .cluster_node_groups_list_response import ClusterNodeGroupsListResponse
63
+ from .cluster_node_instance_fields import ClusterNodeInstanceFields
64
+ from .cluster_nodes_list_response import ClusterNodesListResponse
65
+ from .cluster_response import ClusterResponse
66
+ from .cluster_version import ClusterVersion
67
+ from .cluster_versions import ClusterVersions
68
+ from .colors import Colors
69
+ from .common_response_model import CommonResponseModel
70
+ from .compatible_flavor import CompatibleFlavor
71
+ from .compliance_fields import ComplianceFields
72
+ from .compliance_model_fields import ComplianceModelFields
73
+ from .compliance_payload import CompliancePayload
74
+ from .compliance_response import ComplianceResponse
75
+ from .consent_action_response import ConsentActionResponse
76
+ from .consent_block import ConsentBlock
77
+ from .consent_events_response import ConsentEventsResponse
78
+ from .consent_template import ConsentTemplate
79
+ from .consent_templates_response import ConsentTemplatesResponse
80
+ from .container_overview_fields import ContainerOverviewFields
81
+ from .contract import Contract
82
+ from .contract_discount_plan_fields import ContractDiscountPlanFields
83
+ from .contract_gpu_allocation_graph_response import ContractGPUAllocationGraphResponse
84
+ from .contract_instance_fields import ContractInstanceFields
85
+ from .contract_instances_response import ContractInstancesResponse
86
+ from .create_auto_topup_payload import CreateAutoTopupPayload
87
+ from .create_auto_topup_response import CreateAutoTopupResponse
88
+ from .create_cluster_node_fields import CreateClusterNodeFields
89
+ from .create_cluster_node_group_payload import CreateClusterNodeGroupPayload
90
+ from .create_cluster_payload import CreateClusterPayload
91
+ from .create_environment import CreateEnvironment
92
+ from .create_firewall_payload import CreateFirewallPayload
93
+ from .create_firewall_rule_payload import CreateFirewallRulePayload
94
+ from .create_image import CreateImage
95
+ from .create_image_payload import CreateImagePayload
96
+ from .create_instances_payload import CreateInstancesPayload
97
+ from .create_instances_response import CreateInstancesResponse
98
+ from .create_profile_payload import CreateProfilePayload
99
+ from .create_profile_response import CreateProfileResponse
100
+ from .create_security_rule_payload import CreateSecurityRulePayload
101
+ from .create_snapshot_payload import CreateSnapshotPayload
102
+ from .create_snapshot_response import CreateSnapshotResponse
103
+ from .create_update_compliance_response import CreateUpdateComplianceResponse
104
+ from .create_update_rbac_role_payload import CreateUpdateRbacRolePayload
105
+ from .create_volume_payload import CreateVolumePayload
106
+ from .customer_contract_detail_response_model import CustomerContractDetailResponseModel
107
+ from .customer_contract_fields import CustomerContractFields
108
+ from .dashboard_info_response import DashboardInfoResponse
109
+ from .data_synthesis_billing_history_details_response_schema import DataSynthesisBillingHistoryDetailsResponseSchema
110
+ from .delete_cluster_nodes_fields import DeleteClusterNodesFields
111
+ from .deployment_fields import DeploymentFields
112
+ from .deployment_fields_for_start_deployments import DeploymentFieldsForStartDeployments
113
+ from .deployments import Deployments
114
+ from .detach_volumes import DetachVolumes
115
+ from .detach_volumes_payload import DetachVolumesPayload
116
+ from .disable_auto_topup_response import DisableAutoTopupResponse
117
+ from .edit_label_of_an_existing_vm_payload import EditLabelOfAnExistingVMPayload
118
+ from .email_category import EmailCategory
119
+ from .email_category_child import EmailCategoryChild
120
+ from .email_preferences_response import EmailPreferencesResponse
121
+ from .environment import Environment
122
+ from .environment_features import EnvironmentFeatures
123
+ from .environment_fields import EnvironmentFields
124
+ from .environment_fields_for_volume import EnvironmentFieldsForVolume
125
+ from .environments import Environments
126
+ from .error_response_model import ErrorResponseModel
127
+ from .firewall_attachment_model import FirewallAttachmentModel
128
+ from .firewall_attachment_vm_model import FirewallAttachmentVMModel
129
+ from .firewall_detail_fields import FirewallDetailFields
130
+ from .firewall_detail_response import FirewallDetailResponse
131
+ from .firewall_environment_fields import FirewallEnvironmentFields
132
+ from .firewall_fields import FirewallFields
133
+ from .firewall_response import FirewallResponse
134
+ from .firewall_rule import FirewallRule
135
+ from .firewalls_list_response import FirewallsListResponse
136
+ from .flavor_fields import FlavorFields
137
+ from .flavor_item_get_response import FlavorItemGetResponse
138
+ from .flavor_label_fields import FlavorLabelFields
139
+ from .flavor_list_response import FlavorListResponse
140
+ from .flavor_object_fields import FlavorObjectFields
141
+ from .flavor_restrictions import FlavorRestrictions
142
+ from .gpu_fields import GPUFields
143
+ from .gpu_list import GPUList
144
+ from .gpu_region_fields import GPURegionFields
145
+ from .generate_update_api_key_payload import GenerateUpdateApiKeyPayload
146
+ from .generate_update_api_key_response_model import GenerateUpdateApiKeyResponseModel
147
+ from .get_api_keys_response_model import GetApiKeysResponseModel
148
+ from .get_auto_topup_response import GetAutoTopupResponse
149
+ from .get_credit_and_threshold_info import GetCreditAndThresholdInfo
150
+ from .get_credit_and_threshold_info_in_response import GetCreditAndThresholdInfoInResponse
151
+ from .get_customer_contracts_list_response_model import GetCustomerContractsListResponseModel
152
+ from .get_instance_logs_response import GetInstanceLogsResponse
153
+ from .get_invites_response_model import GetInvitesResponseModel
154
+ from .get_organization_response_model import GetOrganizationResponseModel
155
+ from .get_permissions_response_model import GetPermissionsResponseModel
156
+ from .get_policies_response_model import GetPoliciesResponseModel
157
+ from .get_rbac_roles_response_model import GetRbacRolesResponseModel
158
+ from .get_user_permissions_response_model import GetUserPermissionsResponseModel
159
+ from .graph_datetime_value_model import GraphDatetimeValueModel
160
+ from .image import Image
161
+ from .image_fields import ImageFields
162
+ from .image_generation_billing_history_details_response_schema import ImageGenerationBillingHistoryDetailsResponseSchema
163
+ from .image_get_response import ImageGetResponse
164
+ from .images import Images
165
+ from .import_keypair_payload import ImportKeypairPayload
166
+ from .import_keypair_response import ImportKeypairResponse
167
+ from .infrahub_resource_object_response_for_customer import InfrahubResourceObjectResponseForCustomer
168
+ from .instance import Instance
169
+ from .instance_enhanced_metrics_fields import InstanceEnhancedMetricsFields
170
+ from .instance_environment_fields import InstanceEnvironmentFields
171
+ from .instance_events import InstanceEvents
172
+ from .instance_events_fields import InstanceEventsFields
173
+ from .instance_fields import InstanceFields
174
+ from .instance_flavor_fields import InstanceFlavorFields
175
+ from .instance_image_fields import InstanceImageFields
176
+ from .instance_keypair_fields import InstanceKeypairFields
177
+ from .instance_overview_fields import InstanceOverviewFields
178
+ from .instance_resize_payload import InstanceResizePayload
179
+ from .instances import Instances
180
+ from .invite_fields import InviteFields
181
+ from .invite_user_payload import InviteUserPayload
182
+ from .invite_user_response_model import InviteUserResponseModel
183
+ from .keypair_environment_features import KeypairEnvironmentFeatures
184
+ from .keypair_environment_fields import KeypairEnvironmentFields
185
+ from .keypair_fields import KeypairFields
186
+ from .keypairs import Keypairs
187
+ from .lable_resonse import LableResonse
188
+ from .last_day_cost_fields import LastDayCostFields
189
+ from .last_day_cost_response import LastDayCostResponse
190
+ from .logos import Logos
191
+ from .mfa_status_fields import MFAStatusFields
192
+ from .mfa_status_response import MFAStatusResponse
193
+ from .manual_reconciliation_model import ManualReconciliationModel
194
+ from .master_flavors_response import MasterFlavorsResponse
195
+ from .metric_item_fields import MetricItemFields
196
+ from .metrics import Metrics
197
+ from .metrics_fields import MetricsFields
198
+ from .model_evaluation_billing_history_details_response_schema import ModelEvaluationBillingHistoryDetailsResponseSchema
199
+ from .name_available_model import NameAvailableModel
200
+ from .new_configurations_response import NewConfigurationsResponse
201
+ from .new_model_response import NewModelResponse
202
+ from .new_stock_response import NewStockResponse
203
+ from .new_stock_retrive_response import NewStockRetriveResponse
204
+ from .object_storage_access_key_create_request import ObjectStorageAccessKeyCreateRequest
205
+ from .object_storage_access_key_create_response import ObjectStorageAccessKeyCreateResponse
206
+ from .object_storage_access_key_list_response import ObjectStorageAccessKeyListResponse
207
+ from .object_storage_access_key_response import ObjectStorageAccessKeyResponse
208
+ from .object_storage_bucket_list_response import ObjectStorageBucketListResponse
209
+ from .object_storage_bucket_response import ObjectStorageBucketResponse
210
+ from .object_storage_delete_response import ObjectStorageDeleteResponse
211
+ from .object_storage_error_response import ObjectStorageErrorResponse
212
+ from .object_storage_health_response import ObjectStorageHealthResponse
213
+ from .object_storage_pagination_meta import ObjectStoragePaginationMeta
214
+ from .object_storage_region_list_response import ObjectStorageRegionListResponse
215
+ from .object_storage_region_response import ObjectStorageRegionResponse
216
+ from .object_storage_regions_enum import ObjectStorageRegionsEnum
217
+ from .organization_fields import OrganizationFields
218
+ from .organization_level_billing_history import OrganizationLevelBillingHistory
219
+ from .organization_level_billing_history_resources import OrganizationLevelBillingHistoryResources
220
+ from .organization_level_billing_history_response_attributes import OrganizationLevelBillingHistoryResponseAttributes
221
+ from .organization_level_billing_history_response_metrics import OrganizationLevelBillingHistoryResponseMetrics
222
+ from .organization_level_billing_history_response_model import OrganizationLevelBillingHistoryResponseModel
223
+ from .organization_threshold_fields import OrganizationThresholdFields
224
+ from .organization_threshold_update_response import OrganizationThresholdUpdateResponse
225
+ from .organization_thresholds_response import OrganizationThresholdsResponse
226
+ from .organization_user_response_model import OrganizationUserResponseModel
227
+ from .overview_info import OverviewInfo
228
+ from .pagination import Pagination
229
+ from .pagination_data import PaginationData
230
+ from .partner_config import PartnerConfig
231
+ from .payment_details_fields import PaymentDetailsFields
232
+ from .payment_details_response import PaymentDetailsResponse
233
+ from .payment_initiate_fields import PaymentInitiateFields
234
+ from .payment_initiate_payload import PaymentInitiatePayload
235
+ from .payment_initiate_response import PaymentInitiateResponse
236
+ from .permission_fields import PermissionFields
237
+ from .policy_fields import PolicyFields
238
+ from .policy_permission_fields import PolicyPermissionFields
239
+ from .pricebook_model import PricebookModel
240
+ from .pricebook_resource_object_response_for_customer import PricebookResourceObjectResponseForCustomer
241
+ from .primary_color import PrimaryColor
242
+ from .profile_fields import ProfileFields
243
+ from .profile_list_response import ProfileListResponse
244
+ from .profile_object_fields import ProfileObjectFields
245
+ from .rbac_role_detail_response_model import RbacRoleDetailResponseModel
246
+ from .rbac_role_detail_response_model_fixed import RbacRoleDetailResponseModelFixed
247
+ from .rbac_role_field import RbacRoleField
248
+ from .rbac_role_fields import RbacRoleFields
249
+ from .record_consent_request import RecordConsentRequest
250
+ from .redeem_voucher_payload import RedeemVoucherPayload
251
+ from .region_fields import RegionFields
252
+ from .regions import Regions
253
+ from .remove_member_from_organization_response_model import RemoveMemberFromOrganizationResponseModel
254
+ from .remove_member_payload import RemoveMemberPayload
255
+ from .request_console import RequestConsole
256
+ from .request_instance_logs_payload import RequestInstanceLogsPayload
257
+ from .request_instance_logs_response import RequestInstanceLogsResponse
258
+ from .resource_billing_events_history_metrics import ResourceBillingEventsHistoryMetrics
259
+ from .resource_billing_events_history_response import ResourceBillingEventsHistoryResponse
260
+ from .resource_billing_response_for_customer import ResourceBillingResponseForCustomer
261
+ from .resource_level_billing_bucket_details_resources import ResourceLevelBillingBucketDetailsResources
262
+ from .resource_level_billing_details_attributes import ResourceLevelBillingDetailsAttributes
263
+ from .resource_level_billing_details_metrics import ResourceLevelBillingDetailsMetrics
264
+ from .resource_level_billing_details_vm import ResourceLevelBillingDetailsVM
265
+ from .resource_level_billing_details_volume import ResourceLevelBillingDetailsVolume
266
+ from .resource_level_billing_details_volume_attributes import ResourceLevelBillingDetailsVolumeAttributes
267
+ from .resource_level_billing_details_volume_metrics import ResourceLevelBillingDetailsVolumeMetrics
268
+ from .resource_level_billing_history import ResourceLevelBillingHistory
269
+ from .resource_level_billing_history_resources import ResourceLevelBillingHistoryResources
270
+ from .resource_level_billing_history_resources_cluster import ResourceLevelBillingHistoryResourcesCluster
271
+ from .resource_level_billing_history_response_attributes import ResourceLevelBillingHistoryResponseAttributes
272
+ from .resource_level_billing_history_response_metrics import ResourceLevelBillingHistoryResponseMetrics
273
+ from .resource_level_billing_vm_details_resources import ResourceLevelBillingVMDetailsResources
274
+ from .resource_level_billing_volume_details_resources import ResourceLevelBillingVolumeDetailsResources
275
+ from .resource_level_bucket_billing_details_response_model import ResourceLevelBucketBillingDetailsResponseModel
276
+ from .resource_level_bucket_billing_history_response_model import ResourceLevelBucketBillingHistoryResponseModel
277
+ from .resource_level_cluster_billing_details_response_model import ResourceLevelClusterBillingDetailsResponseModel
278
+ from .resource_level_cluster_billing_history_response_model import ResourceLevelClusterBillingHistoryResponseModel
279
+ from .resource_level_cluster_graph_billing_details_response_model import ResourceLevelClusterGraphBillingDetailsResponseModel
280
+ from .resource_level_graph_billing_detail_volume import ResourceLevelGraphBillingDetailVolume
281
+ from .resource_level_graph_billing_details_attributes import ResourceLevelGraphBillingDetailsAttributes
282
+ from .resource_level_graph_billing_details_bucket import ResourceLevelGraphBillingDetailsBucket
283
+ from .resource_level_graph_billing_details_metrics import ResourceLevelGraphBillingDetailsMetrics
284
+ from .resource_level_graph_billing_details_vm import ResourceLevelGraphBillingDetailsVM
285
+ from .resource_level_graph_billing_vm_details_resources import ResourceLevelGraphBillingVMDetailsResources
286
+ from .resource_level_graph_billing_volume_details_resources import ResourceLevelGraphBillingVolumeDetailsResources
287
+ from .resource_level_vm_billing_details_response_model import ResourceLevelVMBillingDetailsResponseModel
288
+ from .resource_level_vm_billing_history_response_model import ResourceLevelVmBillingHistoryResponseModel
289
+ from .resource_level_vm_graph_billing_details_response_model import ResourceLevelVmGraphBillingDetailsResponseModel
290
+ from .resource_level_volume_billing_details_response_model import ResourceLevelVolumeBillingDetailsResponseModel
291
+ from .resource_level_volume_billing_history_response_model import ResourceLevelVolumeBillingHistoryResponseModel
292
+ from .resource_level_volume_graph_billing_details_response_model import ResourceLevelVolumeGraphBillingDetailsResponseModel
293
+ from .resource_object_response_for_customer import ResourceObjectResponseForCustomer
294
+ from .response_model import ResponseModel
295
+ from .role_permission_fields import RolePermissionFields
296
+ from .role_policy_fields import RolePolicyFields
297
+ from .secondary_color import SecondaryColor
298
+ from .security_group_rule import SecurityGroupRule
299
+ from .security_group_rule_fields import SecurityGroupRuleFields
300
+ from .security_rules_fields_for_instance import SecurityRulesFieldsForInstance
301
+ from .security_rules_protocol_fields import SecurityRulesProtocolFields
302
+ from .serverless_inferenced_billing_history_details_response_schema import ServerlessInferencedBillingHistoryDetailsResponseSchema
303
+ from .snapshot_fields import SnapshotFields
304
+ from .snapshot_restore_request import SnapshotRestoreRequest
305
+ from .snapshot_retrieve import SnapshotRetrieve
306
+ from .snapshot_retrieve_fields import SnapshotRetrieveFields
307
+ from .snapshots import Snapshots
308
+ from .start_deployment import StartDeployment
309
+ from .start_deployment_payload import StartDeploymentPayload
310
+ from .sub_resource_graph_billing_details_metrics import SubResourceGraphBillingDetailsMetrics
311
+ from .sub_resources_costs_response_model import SubResourcesCostsResponseModel
312
+ from .sub_resources_graph_billing_history_fields import SubResourcesGraphBillingHistoryFields
313
+ from .sub_resources_graph_response_model import SubResourcesGraphResponseModel
314
+ from .subscribe_or_unsubscribe_update_payload import SubscribeOrUnsubscribeUpdatePayload
315
+ from .supported_keypair_public_key_types_response import SupportedKeypairPublicKeyTypesResponse
316
+ from .template import Template
317
+ from .template_fields import TemplateFields
318
+ from .templates import Templates
319
+ from .token_based_billing_history_response import TokenBasedBillingHistoryResponse
320
+ from .uris import URIs
321
+ from .update_auto_topup_payload import UpdateAutoTopupPayload
322
+ from .update_auto_topup_response import UpdateAutoTopupResponse
323
+ from .update_cluster_node_group_payload import UpdateClusterNodeGroupPayload
324
+ from .update_consent_request import UpdateConsentRequest
325
+ from .update_email_preference_input import UpdateEmailPreferenceInput
326
+ from .update_email_preference_response import UpdateEmailPreferenceResponse
327
+ from .update_environment import UpdateEnvironment
328
+ from .update_keypair_name import UpdateKeypairName
329
+ from .update_keypair_name_response import UpdateKeypairNameResponse
330
+ from .update_organization_payload import UpdateOrganizationPayload
331
+ from .update_organization_response_model import UpdateOrganizationResponseModel
332
+ from .update_template import UpdateTemplate
333
+ from .update_volume_attachment_payload import UpdateVolumeAttachmentPayload
334
+ from .update_volume_payload import UpdateVolumePayload
335
+ from .update_volume_response import UpdateVolumeResponse
336
+ from .user_consent import UserConsent
337
+ from .user_consent_event import UserConsentEvent
338
+ from .user_consents_response import UserConsentsResponse
339
+ from .user_default_choice_for_user_fields import UserDefaultChoiceForUserFields
340
+ from .user_default_choices_for_user_response import UserDefaultChoicesForUserResponse
341
+ from .user_enhanced_metrics_payload import UserEnhancedMetricsPayload
342
+ from .user_enhanced_metrics_response import UserEnhancedMetricsResponse
343
+ from .user_enhanced_metrics_response_fields import UserEnhancedMetricsResponseFields
344
+ from .user_info_post_payload import UserInfoPostPayload
345
+ from .user_organizations_response import UserOrganizationsResponse
346
+ from .user_permission_fields import UserPermissionFields
347
+ from .users_info_fields import UsersInfoFields
348
+ from .users_info_list_response import UsersInfoListResponse
349
+ from .vm_quota import VMQuota
350
+ from .vncurl import VNCURL
351
+ from .vncurl_fields import VNCURLFields
352
+ from .volume import Volume
353
+ from .volume_attachment_fields import VolumeAttachmentFields
354
+ from .volume_fields import VolumeFields
355
+ from .volume_fields_for_instance import VolumeFieldsForInstance
356
+ from .volume_overview_fields import VolumeOverviewFields
357
+ from .volume_types import VolumeTypes
358
+ from .volumes import Volumes
359
+ from .volumes_fields import VolumesFields
360
+ from .voucher import Voucher
361
+ from .voucher_redeem_response_schema import VoucherRedeemResponseSchema
362
+ from .workload_billing_history_response import WorkloadBillingHistoryResponse
@@ -0,0 +1,100 @@
1
+ # coding: utf-8
2
+
3
+ """
4
+ Infrahub-API
5
+
6
+ Leverage the Infrahub API and Hyperstack platform to easily create, manage, and scale powerful GPU virtual machines and their associated resources. Access this SDK to automate the deployment of your workloads and streamline your infrastructure management. To contribute, please raise an issue with a bug report, feature request, feedback, or general inquiry.
7
+
8
+ The version of the OpenAPI document: 1.0
9
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
10
+
11
+ Do not edit the class manually.
12
+ """ # noqa: E501
13
+
14
+
15
+ from __future__ import annotations
16
+ import pprint
17
+ import re # noqa: F401
18
+ import json
19
+
20
+ from pydantic import BaseModel, ConfigDict, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class AccessTokenField(BaseModel):
26
+ """
27
+ AccessTokenField
28
+ """ # noqa: E501
29
+ access_token: Optional[StrictStr] = None
30
+ additional_properties: Dict[str, Any] = {}
31
+ __properties: ClassVar[List[str]] = ["access_token"]
32
+
33
+ model_config = ConfigDict(
34
+ populate_by_name=True,
35
+ validate_assignment=True,
36
+ protected_namespaces=(),
37
+ )
38
+
39
+
40
+ def to_str(self) -> str:
41
+ """Returns the string representation of the model using alias"""
42
+ return pprint.pformat(self.model_dump(by_alias=True))
43
+
44
+ def to_json(self) -> str:
45
+ """Returns the JSON representation of the model using alias"""
46
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
47
+ return json.dumps(self.to_dict())
48
+
49
+ @classmethod
50
+ def from_json(cls, json_str: str) -> Optional[Self]:
51
+ """Create an instance of AccessTokenField from a JSON string"""
52
+ return cls.from_dict(json.loads(json_str))
53
+
54
+ def to_dict(self) -> Dict[str, Any]:
55
+ """Return the dictionary representation of the model using alias.
56
+
57
+ This has the following differences from calling pydantic's
58
+ `self.model_dump(by_alias=True)`:
59
+
60
+ * `None` is only added to the output dict for nullable fields that
61
+ were set at model initialization. Other fields with value `None`
62
+ are ignored.
63
+ * Fields in `self.additional_properties` are added to the output dict.
64
+ """
65
+ excluded_fields: Set[str] = set([
66
+ "additional_properties",
67
+ ])
68
+
69
+ _dict = self.model_dump(
70
+ by_alias=True,
71
+ exclude=excluded_fields,
72
+ exclude_none=True,
73
+ )
74
+ # puts key-value pairs in additional_properties in the top level
75
+ if self.additional_properties is not None:
76
+ for _key, _value in self.additional_properties.items():
77
+ _dict[_key] = _value
78
+
79
+ return _dict
80
+
81
+ @classmethod
82
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
83
+ """Create an instance of AccessTokenField from a dict"""
84
+ if obj is None:
85
+ return None
86
+
87
+ if not isinstance(obj, dict):
88
+ return cls.model_validate(obj)
89
+
90
+ _obj = cls.model_validate({
91
+ "access_token": obj.get("access_token")
92
+ })
93
+ # store additional fields in additional_properties
94
+ for _key in obj.keys():
95
+ if _key not in cls.__properties:
96
+ _obj.additional_properties[_key] = obj.get(_key)
97
+
98
+ return _obj
99
+
100
+