hyperstack 1.25.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 (401) hide show
  1. hyperstack/__init__.py +420 -0
  2. hyperstack/api/__init__.py +48 -0
  3. hyperstack/api/alive_api.py +270 -0
  4. hyperstack/api/api_key_api.py +1161 -0
  5. hyperstack/api/assigning_member_role_api.py +615 -0
  6. hyperstack/api/auth_api.py +292 -0
  7. hyperstack/api/billing_api.py +5946 -0
  8. hyperstack/api/calculate_api.py +326 -0
  9. hyperstack/api/callbacks_api.py +1795 -0
  10. hyperstack/api/cluster_events_api.py +308 -0
  11. hyperstack/api/clusters_api.py +1651 -0
  12. hyperstack/api/compliance_api.py +1169 -0
  13. hyperstack/api/credit_api.py +295 -0
  14. hyperstack/api/customer_contract_api.py +922 -0
  15. hyperstack/api/dashboard_api.py +292 -0
  16. hyperstack/api/deployment_api.py +1122 -0
  17. hyperstack/api/environment_api.py +1490 -0
  18. hyperstack/api/firewall_attachment_api.py +343 -0
  19. hyperstack/api/firewalls_api.py +1819 -0
  20. hyperstack/api/flavor_api.py +315 -0
  21. hyperstack/api/floating_ip_api.py +585 -0
  22. hyperstack/api/gpu_api.py +292 -0
  23. hyperstack/api/image_api.py +1228 -0
  24. hyperstack/api/invite_api.py +857 -0
  25. hyperstack/api/keypair_api.py +1217 -0
  26. hyperstack/api/organization_api.py +864 -0
  27. hyperstack/api/payment_api.py +584 -0
  28. hyperstack/api/permission_api.py +292 -0
  29. hyperstack/api/policy_api.py +292 -0
  30. hyperstack/api/pricebook_api.py +293 -0
  31. hyperstack/api/profile_api.py +1131 -0
  32. hyperstack/api/rbac_role_api.py +1434 -0
  33. hyperstack/api/region_api.py +292 -0
  34. hyperstack/api/security_rules_api.py +292 -0
  35. hyperstack/api/snapshot_events_api.py +291 -0
  36. hyperstack/api/snapshots_api.py +1779 -0
  37. hyperstack/api/stock_api.py +292 -0
  38. hyperstack/api/template_api.py +1497 -0
  39. hyperstack/api/user_api.py +871 -0
  40. hyperstack/api/user_detail_choice_api.py +295 -0
  41. hyperstack/api/user_permission_api.py +567 -0
  42. hyperstack/api/virtual_machine_api.py +5289 -0
  43. hyperstack/api/virtual_machine_events_api.py +311 -0
  44. hyperstack/api/vnc_url_api.py +595 -0
  45. hyperstack/api/volume_api.py +1742 -0
  46. hyperstack/api/volume_attachment_api.py +650 -0
  47. hyperstack/api_client.py +797 -0
  48. hyperstack/api_response.py +21 -0
  49. hyperstack/configuration.py +605 -0
  50. hyperstack/exceptions.py +199 -0
  51. hyperstack/models/__init__.py +360 -0
  52. hyperstack/models/add_update_flavor_organization_payload.py +111 -0
  53. hyperstack/models/add_user_info_success_response_model.py +95 -0
  54. hyperstack/models/allocated_gpu_count_graph.py +89 -0
  55. hyperstack/models/api_key_fields.py +96 -0
  56. hyperstack/models/api_key_verify_fields.py +93 -0
  57. hyperstack/models/assign_rbac_role_payload.py +87 -0
  58. hyperstack/models/attach_callback_payload.py +87 -0
  59. hyperstack/models/attach_callback_response.py +91 -0
  60. hyperstack/models/attach_firewall_with_vm.py +87 -0
  61. hyperstack/models/attach_firewalls_to_vm_payload.py +87 -0
  62. hyperstack/models/attach_volume_fields.py +96 -0
  63. hyperstack/models/attach_volumes.py +99 -0
  64. hyperstack/models/attach_volumes_payload.py +87 -0
  65. hyperstack/models/auth_get_token_response_model.py +97 -0
  66. hyperstack/models/auth_request_login_fields.py +89 -0
  67. hyperstack/models/auth_request_login_response_model.py +95 -0
  68. hyperstack/models/auth_user_fields.py +94 -0
  69. hyperstack/models/auth_user_info_response_model.py +95 -0
  70. hyperstack/models/billing_immune_resources_response.py +95 -0
  71. hyperstack/models/billing_response.py +100 -0
  72. hyperstack/models/billingmetricesfields.py +108 -0
  73. hyperstack/models/billingmetricesresponse.py +99 -0
  74. hyperstack/models/cluster_events.py +99 -0
  75. hyperstack/models/cluster_events_fields.py +104 -0
  76. hyperstack/models/cluster_fields.py +114 -0
  77. hyperstack/models/cluster_list_response.py +99 -0
  78. hyperstack/models/cluster_response.py +95 -0
  79. hyperstack/models/cluster_versions.py +91 -0
  80. hyperstack/models/common_response_model.py +89 -0
  81. hyperstack/models/compliance_fields.py +93 -0
  82. hyperstack/models/compliance_model_fields.py +99 -0
  83. hyperstack/models/compliance_payload.py +97 -0
  84. hyperstack/models/compliance_response.py +95 -0
  85. hyperstack/models/container_overview_fields.py +95 -0
  86. hyperstack/models/contract.py +105 -0
  87. hyperstack/models/contract_billing_history.py +97 -0
  88. hyperstack/models/contract_billing_history_response_attributes.py +99 -0
  89. hyperstack/models/contract_billing_history_response_model.py +95 -0
  90. hyperstack/models/contract_change_payload.py +101 -0
  91. hyperstack/models/contract_discount_plan_fields.py +103 -0
  92. hyperstack/models/contract_eligible_instance_fields.py +99 -0
  93. hyperstack/models/contract_eligible_instances_response.py +101 -0
  94. hyperstack/models/contract_event_create_model.py +91 -0
  95. hyperstack/models/contract_gpu_allocation_graph_response.py +95 -0
  96. hyperstack/models/contract_instance_fields.py +102 -0
  97. hyperstack/models/contract_instances_response.py +99 -0
  98. hyperstack/models/contract_resource_payload.py +95 -0
  99. hyperstack/models/contractl_billing_history_response_metrics.py +87 -0
  100. hyperstack/models/create_cluster_payload.py +101 -0
  101. hyperstack/models/create_contract_fields.py +110 -0
  102. hyperstack/models/create_contract_payload.py +106 -0
  103. hyperstack/models/create_discount_response.py +95 -0
  104. hyperstack/models/create_discounts_payload.py +112 -0
  105. hyperstack/models/create_environment.py +90 -0
  106. hyperstack/models/create_firewall_payload.py +91 -0
  107. hyperstack/models/create_firewall_rule_payload.py +104 -0
  108. hyperstack/models/create_gpu.py +91 -0
  109. hyperstack/models/create_image.py +91 -0
  110. hyperstack/models/create_image_payload.py +89 -0
  111. hyperstack/models/create_instances_payload.py +134 -0
  112. hyperstack/models/create_instances_response.py +99 -0
  113. hyperstack/models/create_profile_payload.py +92 -0
  114. hyperstack/models/create_profile_response.py +95 -0
  115. hyperstack/models/create_security_rule_payload.py +104 -0
  116. hyperstack/models/create_snapshot_payload.py +93 -0
  117. hyperstack/models/create_snapshot_response.py +95 -0
  118. hyperstack/models/create_update_compliance_response.py +95 -0
  119. hyperstack/models/create_update_permission_payload.py +93 -0
  120. hyperstack/models/create_update_permission_response_model.py +95 -0
  121. hyperstack/models/create_update_policy_payload.py +93 -0
  122. hyperstack/models/create_update_policy_response_model.py +95 -0
  123. hyperstack/models/create_update_rbac_role_payload.py +94 -0
  124. hyperstack/models/create_volume_payload.py +100 -0
  125. hyperstack/models/creditrechargelimitfield.py +93 -0
  126. hyperstack/models/creditrechargelimitresponse.py +99 -0
  127. hyperstack/models/creditrequestresponse.py +99 -0
  128. hyperstack/models/creditrequests.py +96 -0
  129. hyperstack/models/customer_contract_detail_response_model.py +95 -0
  130. hyperstack/models/customer_contract_fields.py +112 -0
  131. hyperstack/models/customer_fields.py +89 -0
  132. hyperstack/models/customer_payload.py +89 -0
  133. hyperstack/models/dashboard_info_response.py +95 -0
  134. hyperstack/models/data.py +91 -0
  135. hyperstack/models/deployment_fields.py +98 -0
  136. hyperstack/models/deployment_fieldsforstartdeployments.py +100 -0
  137. hyperstack/models/deployments.py +99 -0
  138. hyperstack/models/detach_volumes.py +99 -0
  139. hyperstack/models/detach_volumes_payload.py +87 -0
  140. hyperstack/models/discount_entity_model.py +97 -0
  141. hyperstack/models/discount_fields.py +100 -0
  142. hyperstack/models/discount_plan_fields.py +108 -0
  143. hyperstack/models/discount_resource_fields.py +93 -0
  144. hyperstack/models/discount_resource_payload.py +93 -0
  145. hyperstack/models/editlabelofanexisting_vm_payload.py +87 -0
  146. hyperstack/models/environment.py +95 -0
  147. hyperstack/models/environment_features.py +87 -0
  148. hyperstack/models/environment_fields.py +100 -0
  149. hyperstack/models/environment_fieldsfor_volume.py +87 -0
  150. hyperstack/models/environments.py +105 -0
  151. hyperstack/models/error_response_model.py +91 -0
  152. hyperstack/models/exclude_billing_post_payload.py +91 -0
  153. hyperstack/models/exclude_billing_post_response.py +91 -0
  154. hyperstack/models/export_billing_data_request.py +105 -0
  155. hyperstack/models/export_billing_data_response.py +89 -0
  156. hyperstack/models/field_change.py +91 -0
  157. hyperstack/models/firewall_attachment_model.py +98 -0
  158. hyperstack/models/firewall_attachment_vm_model.py +98 -0
  159. hyperstack/models/firewall_detail_fields.py +122 -0
  160. hyperstack/models/firewall_detail_response.py +95 -0
  161. hyperstack/models/firewall_environment_fields.py +91 -0
  162. hyperstack/models/firewall_fields.py +102 -0
  163. hyperstack/models/firewall_response.py +95 -0
  164. hyperstack/models/firewall_rule.py +95 -0
  165. hyperstack/models/firewalls_list_response.py +105 -0
  166. hyperstack/models/flavor_fields.py +120 -0
  167. hyperstack/models/flavor_item_get_response.py +99 -0
  168. hyperstack/models/flavor_list_response.py +99 -0
  169. hyperstack/models/flavor_object_fields.py +95 -0
  170. hyperstack/models/flavor_payload.py +101 -0
  171. hyperstack/models/flavor_response.py +95 -0
  172. hyperstack/models/flavor_vm_fields.py +100 -0
  173. hyperstack/models/flavor_vms_response.py +99 -0
  174. hyperstack/models/future_node_model.py +106 -0
  175. hyperstack/models/future_node_response_model.py +97 -0
  176. hyperstack/models/future_node_stock_model.py +93 -0
  177. hyperstack/models/future_node_update_model.py +98 -0
  178. hyperstack/models/future_nodes_stock_model.py +95 -0
  179. hyperstack/models/generate_update_api_key_payload.py +89 -0
  180. hyperstack/models/generate_update_api_key_response_model.py +95 -0
  181. hyperstack/models/get_all_contract_fields.py +100 -0
  182. hyperstack/models/get_all_contracts_response_model.py +99 -0
  183. hyperstack/models/get_all_discount_for_all_organization_response.py +99 -0
  184. hyperstack/models/get_all_discounts_fields.py +106 -0
  185. hyperstack/models/get_api_keys_response_model.py +99 -0
  186. hyperstack/models/get_customer_contracts_list_response_model.py +101 -0
  187. hyperstack/models/get_discount_detail_response.py +95 -0
  188. hyperstack/models/get_discount_response.py +99 -0
  189. hyperstack/models/get_entity_discount_detail_response.py +108 -0
  190. hyperstack/models/get_invites_response_model.py +99 -0
  191. hyperstack/models/get_organization_response_model.py +95 -0
  192. hyperstack/models/get_permissions_response_model.py +99 -0
  193. hyperstack/models/get_policies_response_model.py +99 -0
  194. hyperstack/models/get_rbac_roles_response_model.py +99 -0
  195. hyperstack/models/get_token_payload.py +89 -0
  196. hyperstack/models/get_user_permissions_response_model.py +99 -0
  197. hyperstack/models/get_version_response.py +91 -0
  198. hyperstack/models/getcreditandthresholdinfo.py +91 -0
  199. hyperstack/models/getcreditandthresholdinfoinresponse.py +95 -0
  200. hyperstack/models/gpu.py +95 -0
  201. hyperstack/models/gpu_fields.py +106 -0
  202. hyperstack/models/gpu_list.py +99 -0
  203. hyperstack/models/gpu_region_fields.py +89 -0
  204. hyperstack/models/graph_datetime_value_model.py +89 -0
  205. hyperstack/models/historical_instance.py +101 -0
  206. hyperstack/models/historical_instances_fields.py +110 -0
  207. hyperstack/models/image.py +91 -0
  208. hyperstack/models/image_fields.py +113 -0
  209. hyperstack/models/image_get_response.py +101 -0
  210. hyperstack/models/image_logos.py +99 -0
  211. hyperstack/models/images.py +99 -0
  212. hyperstack/models/import_keypair_payload.py +92 -0
  213. hyperstack/models/import_keypair_response.py +95 -0
  214. hyperstack/models/infrahub_resource_object_response.py +119 -0
  215. hyperstack/models/infrahub_resource_object_response_for_customer.py +109 -0
  216. hyperstack/models/insert_discount_plan_fields.py +112 -0
  217. hyperstack/models/instance.py +95 -0
  218. hyperstack/models/instance_environment_fields.py +99 -0
  219. hyperstack/models/instance_events.py +99 -0
  220. hyperstack/models/instance_events_fields.py +102 -0
  221. hyperstack/models/instance_fields.py +162 -0
  222. hyperstack/models/instance_flavor_fields.py +101 -0
  223. hyperstack/models/instance_image_fields.py +87 -0
  224. hyperstack/models/instance_keypair_fields.py +87 -0
  225. hyperstack/models/instance_overview_fields.py +95 -0
  226. hyperstack/models/instance_resize_payload.py +93 -0
  227. hyperstack/models/instances.py +105 -0
  228. hyperstack/models/instances_summary_fields.py +120 -0
  229. hyperstack/models/internal_environment_fields.py +94 -0
  230. hyperstack/models/internal_instance_fields.py +156 -0
  231. hyperstack/models/internal_instance_flavor_fields.py +104 -0
  232. hyperstack/models/internal_instance_image_fields.py +95 -0
  233. hyperstack/models/internal_instance_keypair_fields.py +98 -0
  234. hyperstack/models/internal_instances_response.py +99 -0
  235. hyperstack/models/internal_security_rules_fields_for_instance.py +104 -0
  236. hyperstack/models/internal_volume_attachment_fields.py +98 -0
  237. hyperstack/models/internal_volume_fields.py +95 -0
  238. hyperstack/models/internal_volumes_response.py +99 -0
  239. hyperstack/models/invite_fields.py +94 -0
  240. hyperstack/models/invite_user_payload.py +88 -0
  241. hyperstack/models/invite_user_response_model.py +95 -0
  242. hyperstack/models/keypair_fields.py +98 -0
  243. hyperstack/models/keypairs.py +105 -0
  244. hyperstack/models/lable_resonse.py +89 -0
  245. hyperstack/models/lastdaycostfields.py +93 -0
  246. hyperstack/models/lastdaycostresponse.py +95 -0
  247. hyperstack/models/logo_get_response.py +91 -0
  248. hyperstack/models/logout_payload.py +87 -0
  249. hyperstack/models/metric_item_fields.py +91 -0
  250. hyperstack/models/metrics_fields.py +116 -0
  251. hyperstack/models/name_available_model.py +91 -0
  252. hyperstack/models/new_configurations_response.py +95 -0
  253. hyperstack/models/new_model_response.py +101 -0
  254. hyperstack/models/new_stock_response.py +99 -0
  255. hyperstack/models/new_stock_retrive_response.py +95 -0
  256. hyperstack/models/new_stock_update_response_model.py +89 -0
  257. hyperstack/models/node_model.py +114 -0
  258. hyperstack/models/node_payload_model.py +97 -0
  259. hyperstack/models/node_power_usage_model.py +120 -0
  260. hyperstack/models/node_response_model.py +97 -0
  261. hyperstack/models/node_stock_payload_model.py +95 -0
  262. hyperstack/models/node_stock_response_model.py +95 -0
  263. hyperstack/models/node_stocks_payload.py +93 -0
  264. hyperstack/models/organization_fields.py +114 -0
  265. hyperstack/models/organization_level_billing_history.py +99 -0
  266. hyperstack/models/organization_level_billing_history_resources.py +97 -0
  267. hyperstack/models/organization_level_billing_history_response_attributes.py +87 -0
  268. hyperstack/models/organization_level_billing_history_response_metrics.py +97 -0
  269. hyperstack/models/organization_level_billing_history_response_model.py +95 -0
  270. hyperstack/models/organization_object_response.py +97 -0
  271. hyperstack/models/organization_thresholdfields.py +95 -0
  272. hyperstack/models/organization_user_response_model.py +112 -0
  273. hyperstack/models/organizationcreditrechargelimitresponse.py +95 -0
  274. hyperstack/models/organizationthresholdsresponse.py +99 -0
  275. hyperstack/models/organizationthresholdupdateresponse.py +95 -0
  276. hyperstack/models/overview_info.py +103 -0
  277. hyperstack/models/pagination_data.py +91 -0
  278. hyperstack/models/payment_details_fields.py +106 -0
  279. hyperstack/models/payment_details_response.py +95 -0
  280. hyperstack/models/payment_initiate_fields.py +87 -0
  281. hyperstack/models/payment_initiate_payload.py +87 -0
  282. hyperstack/models/payment_initiate_response.py +95 -0
  283. hyperstack/models/permission_fields.py +98 -0
  284. hyperstack/models/policy_fields.py +104 -0
  285. hyperstack/models/policy_permission_fields.py +91 -0
  286. hyperstack/models/power_usage_model.py +89 -0
  287. hyperstack/models/pricebook_model.py +100 -0
  288. hyperstack/models/pricebook_resource_object_response.py +107 -0
  289. hyperstack/models/pricebook_resource_object_response_for_customer.py +99 -0
  290. hyperstack/models/profile_fields.py +96 -0
  291. hyperstack/models/profile_list_response.py +99 -0
  292. hyperstack/models/profile_object_fields.py +89 -0
  293. hyperstack/models/rbac_role_detail_response_model.py +95 -0
  294. hyperstack/models/rbac_role_detail_response_model_fixed.py +95 -0
  295. hyperstack/models/rbac_role_field.py +87 -0
  296. hyperstack/models/rbac_role_fields.py +114 -0
  297. hyperstack/models/refresh_token_payload.py +89 -0
  298. hyperstack/models/region_fields.py +91 -0
  299. hyperstack/models/region_payload.py +89 -0
  300. hyperstack/models/region_response.py +95 -0
  301. hyperstack/models/regions.py +99 -0
  302. hyperstack/models/remove_member_from_organization_response_model.py +89 -0
  303. hyperstack/models/remove_member_payload.py +88 -0
  304. hyperstack/models/request_console.py +91 -0
  305. hyperstack/models/resource_billing_events_history_metrics.py +95 -0
  306. hyperstack/models/resource_billing_events_history_response.py +99 -0
  307. hyperstack/models/resource_billing_response_for_customer.py +95 -0
  308. hyperstack/models/resource_level_billing_details_attributes.py +91 -0
  309. hyperstack/models/resource_level_billing_details_metrics.py +101 -0
  310. hyperstack/models/resource_level_billing_details_vm.py +99 -0
  311. hyperstack/models/resource_level_billing_details_volume.py +99 -0
  312. hyperstack/models/resource_level_billing_details_volume_attributes.py +95 -0
  313. hyperstack/models/resource_level_billing_details_volume_metrics.py +95 -0
  314. hyperstack/models/resource_level_billing_history.py +105 -0
  315. hyperstack/models/resource_level_billing_history_resources.py +97 -0
  316. hyperstack/models/resource_level_billing_history_response_attributes.py +93 -0
  317. hyperstack/models/resource_level_billing_history_response_metrics.py +91 -0
  318. hyperstack/models/resource_level_billing_vm_details_resources.py +97 -0
  319. hyperstack/models/resource_level_billing_volume_details_resources.py +97 -0
  320. hyperstack/models/resource_level_graph_billing_detail_volume.py +101 -0
  321. hyperstack/models/resource_level_graph_billing_details_attributes.py +91 -0
  322. hyperstack/models/resource_level_graph_billing_details_metrics.py +97 -0
  323. hyperstack/models/resource_level_graph_billing_details_vm.py +101 -0
  324. hyperstack/models/resource_level_graph_billing_vm_details_resources.py +97 -0
  325. hyperstack/models/resource_level_graph_billing_volume_details_resources.py +97 -0
  326. hyperstack/models/resource_level_vm_billing_details_response_model.py +95 -0
  327. hyperstack/models/resource_level_vm_billing_history_response_model.py +95 -0
  328. hyperstack/models/resource_level_vm_graph_billing_details_response_model.py +95 -0
  329. hyperstack/models/resource_level_volume_billing_details_response_model.py +95 -0
  330. hyperstack/models/resource_level_volume_billing_history_response_model.py +95 -0
  331. hyperstack/models/resource_level_volume_graph_billing_details_response_model.py +95 -0
  332. hyperstack/models/resource_object_response_for_customer.py +93 -0
  333. hyperstack/models/response_model.py +89 -0
  334. hyperstack/models/role_permission_fields.py +91 -0
  335. hyperstack/models/role_policy_fields.py +91 -0
  336. hyperstack/models/security_group_rule.py +95 -0
  337. hyperstack/models/security_group_rule_fields.py +104 -0
  338. hyperstack/models/security_rules_fieldsfor_instance.py +104 -0
  339. hyperstack/models/security_rules_protocol_fields.py +91 -0
  340. hyperstack/models/set_defaults_payload.py +89 -0
  341. hyperstack/models/single_visibility_user_response.py +91 -0
  342. hyperstack/models/snapshot_fields.py +105 -0
  343. hyperstack/models/snapshot_restore_request.py +89 -0
  344. hyperstack/models/snapshot_retrieve.py +95 -0
  345. hyperstack/models/snapshot_retrieve_fields.py +103 -0
  346. hyperstack/models/snapshots.py +105 -0
  347. hyperstack/models/start_deployment.py +95 -0
  348. hyperstack/models/start_deployment_payload.py +93 -0
  349. hyperstack/models/stock_visibility_user_list_response.py +99 -0
  350. hyperstack/models/stock_visibility_user_payload.py +87 -0
  351. hyperstack/models/sub_resource_graph_billing_details_metrics.py +152 -0
  352. hyperstack/models/sub_resources_costs_response_model.py +101 -0
  353. hyperstack/models/sub_resources_graph_billing_history_fields.py +97 -0
  354. hyperstack/models/sub_resources_graph_response_model.py +95 -0
  355. hyperstack/models/subscribeorunsubscribeupdatepayload.py +87 -0
  356. hyperstack/models/success_response_model.py +89 -0
  357. hyperstack/models/template.py +95 -0
  358. hyperstack/models/template_fields.py +98 -0
  359. hyperstack/models/templates.py +99 -0
  360. hyperstack/models/token_fields.py +91 -0
  361. hyperstack/models/update_contract_payload.py +104 -0
  362. hyperstack/models/update_discounts_payload.py +102 -0
  363. hyperstack/models/update_discounts_status_payload.py +87 -0
  364. hyperstack/models/update_environment.py +88 -0
  365. hyperstack/models/update_gpu.py +91 -0
  366. hyperstack/models/update_keypair_name.py +88 -0
  367. hyperstack/models/update_keypairnameresponse.py +95 -0
  368. hyperstack/models/update_organization_payload.py +88 -0
  369. hyperstack/models/update_organization_response_model.py +89 -0
  370. hyperstack/models/update_template.py +91 -0
  371. hyperstack/models/user_default_choice_for_user_fields.py +91 -0
  372. hyperstack/models/user_default_choices_for_user_response.py +99 -0
  373. hyperstack/models/user_permission_fields.py +91 -0
  374. hyperstack/models/user_transfer_payload.py +89 -0
  375. hyperstack/models/userinfopostpayload.py +107 -0
  376. hyperstack/models/users_info_fields.py +114 -0
  377. hyperstack/models/users_info_list_response.py +95 -0
  378. hyperstack/models/verify_api_key_payload.py +87 -0
  379. hyperstack/models/verify_api_key_response_model.py +95 -0
  380. hyperstack/models/virtual_machine_usage.py +93 -0
  381. hyperstack/models/vm_usage_request_payload.py +87 -0
  382. hyperstack/models/vm_usage_response.py +101 -0
  383. hyperstack/models/vncurl.py +95 -0
  384. hyperstack/models/vncurl_fields.py +89 -0
  385. hyperstack/models/volume.py +95 -0
  386. hyperstack/models/volume_attachment_fields.py +98 -0
  387. hyperstack/models/volume_fields.py +116 -0
  388. hyperstack/models/volume_fieldsfor_instance.py +97 -0
  389. hyperstack/models/volume_overview_fields.py +91 -0
  390. hyperstack/models/volume_status_change_fields.py +96 -0
  391. hyperstack/models/volume_types.py +91 -0
  392. hyperstack/models/volumes.py +99 -0
  393. hyperstack/models/volumes_last_status_change_response.py +99 -0
  394. hyperstack/models/warning_mail_log_fields.py +99 -0
  395. hyperstack/models/warning_mail_log_response.py +101 -0
  396. hyperstack/py.typed +0 -0
  397. hyperstack/rest.py +257 -0
  398. hyperstack-1.25.0a0.dist-info/METADATA +23 -0
  399. hyperstack-1.25.0a0.dist-info/RECORD +401 -0
  400. hyperstack-1.25.0a0.dist-info/WHEEL +5 -0
  401. hyperstack-1.25.0a0.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,360 @@
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 .add_update_flavor_organization_payload import AddUpdateFlavorOrganizationPayload
18
+ from .add_user_info_success_response_model import AddUserInfoSuccessResponseModel
19
+ from .allocated_gpu_count_graph import AllocatedGPUCountGraph
20
+ from .api_key_fields import ApiKeyFields
21
+ from .api_key_verify_fields import ApiKeyVerifyFields
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 .auth_get_token_response_model import AuthGetTokenResponseModel
31
+ from .auth_request_login_fields import AuthRequestLoginFields
32
+ from .auth_request_login_response_model import AuthRequestLoginResponseModel
33
+ from .auth_user_fields import AuthUserFields
34
+ from .auth_user_info_response_model import AuthUserInfoResponseModel
35
+ from .billing_immune_resources_response import BillingImmuneResourcesResponse
36
+ from .billing_response import BillingResponse
37
+ from .billingmetricesfields import Billingmetricesfields
38
+ from .billingmetricesresponse import Billingmetricesresponse
39
+ from .cluster_events import ClusterEvents
40
+ from .cluster_events_fields import ClusterEventsFields
41
+ from .cluster_fields import ClusterFields
42
+ from .cluster_list_response import ClusterListResponse
43
+ from .cluster_response import ClusterResponse
44
+ from .cluster_versions import ClusterVersions
45
+ from .common_response_model import CommonResponseModel
46
+ from .compliance_fields import ComplianceFields
47
+ from .compliance_model_fields import ComplianceModelFields
48
+ from .compliance_payload import CompliancePayload
49
+ from .compliance_response import ComplianceResponse
50
+ from .container_overview_fields import ContainerOverviewFields
51
+ from .contract import Contract
52
+ from .contract_billing_history import ContractBillingHistory
53
+ from .contract_billing_history_response_attributes import ContractBillingHistoryResponseAttributes
54
+ from .contract_billing_history_response_model import ContractBillingHistoryResponseModel
55
+ from .contract_change_payload import ContractChangePayload
56
+ from .contract_discount_plan_fields import ContractDiscountPlanFields
57
+ from .contract_eligible_instance_fields import ContractEligibleInstanceFields
58
+ from .contract_eligible_instances_response import ContractEligibleInstancesResponse
59
+ from .contract_event_create_model import ContractEventCreateModel
60
+ from .contract_gpu_allocation_graph_response import ContractGPUAllocationGraphResponse
61
+ from .contract_instance_fields import ContractInstanceFields
62
+ from .contract_instances_response import ContractInstancesResponse
63
+ from .contract_resource_payload import ContractResourcePayload
64
+ from .contractl_billing_history_response_metrics import ContractlBillingHistoryResponseMetrics
65
+ from .create_cluster_payload import CreateClusterPayload
66
+ from .create_contract_fields import CreateContractFields
67
+ from .create_contract_payload import CreateContractPayload
68
+ from .create_discount_response import CreateDiscountResponse
69
+ from .create_discounts_payload import CreateDiscountsPayload
70
+ from .create_environment import CreateEnvironment
71
+ from .create_firewall_payload import CreateFirewallPayload
72
+ from .create_firewall_rule_payload import CreateFirewallRulePayload
73
+ from .create_gpu import CreateGPU
74
+ from .create_image import CreateImage
75
+ from .create_image_payload import CreateImagePayload
76
+ from .create_instances_payload import CreateInstancesPayload
77
+ from .create_instances_response import CreateInstancesResponse
78
+ from .create_profile_payload import CreateProfilePayload
79
+ from .create_profile_response import CreateProfileResponse
80
+ from .create_security_rule_payload import CreateSecurityRulePayload
81
+ from .create_snapshot_payload import CreateSnapshotPayload
82
+ from .create_snapshot_response import CreateSnapshotResponse
83
+ from .create_update_compliance_response import CreateUpdateComplianceResponse
84
+ from .create_update_permission_payload import CreateUpdatePermissionPayload
85
+ from .create_update_permission_response_model import CreateUpdatePermissionResponseModel
86
+ from .create_update_policy_payload import CreateUpdatePolicyPayload
87
+ from .create_update_policy_response_model import CreateUpdatePolicyResponseModel
88
+ from .create_update_rbac_role_payload import CreateUpdateRbacRolePayload
89
+ from .create_volume_payload import CreateVolumePayload
90
+ from .creditrechargelimitfield import Creditrechargelimitfield
91
+ from .creditrechargelimitresponse import Creditrechargelimitresponse
92
+ from .creditrequestresponse import Creditrequestresponse
93
+ from .creditrequests import Creditrequests
94
+ from .customer_contract_detail_response_model import CustomerContractDetailResponseModel
95
+ from .customer_contract_fields import CustomerContractFields
96
+ from .customer_fields import CustomerFields
97
+ from .customer_payload import CustomerPayload
98
+ from .dashboard_info_response import DashboardInfoResponse
99
+ from .data import Data
100
+ from .deployment_fields import DeploymentFields
101
+ from .deployment_fieldsforstartdeployments import DeploymentFieldsforstartdeployments
102
+ from .deployments import Deployments
103
+ from .detach_volumes import DetachVolumes
104
+ from .detach_volumes_payload import DetachVolumesPayload
105
+ from .discount_entity_model import DiscountEntityModel
106
+ from .discount_fields import DiscountFields
107
+ from .discount_plan_fields import DiscountPlanFields
108
+ from .discount_resource_fields import DiscountResourceFields
109
+ from .discount_resource_payload import DiscountResourcePayload
110
+ from .editlabelofanexisting_vm_payload import EditlabelofanexistingVMPayload
111
+ from .environment import Environment
112
+ from .environment_features import EnvironmentFeatures
113
+ from .environment_fields import EnvironmentFields
114
+ from .environment_fieldsfor_volume import EnvironmentFieldsforVolume
115
+ from .environments import Environments
116
+ from .error_response_model import ErrorResponseModel
117
+ from .exclude_billing_post_payload import ExcludeBillingPostPayload
118
+ from .exclude_billing_post_response import ExcludeBillingPostResponse
119
+ from .export_billing_data_request import ExportBillingDataRequest
120
+ from .export_billing_data_response import ExportBillingDataResponse
121
+ from .field_change import FieldChange
122
+ from .firewall_attachment_model import FirewallAttachmentModel
123
+ from .firewall_attachment_vm_model import FirewallAttachmentVMModel
124
+ from .firewall_detail_fields import FirewallDetailFields
125
+ from .firewall_detail_response import FirewallDetailResponse
126
+ from .firewall_environment_fields import FirewallEnvironmentFields
127
+ from .firewall_fields import FirewallFields
128
+ from .firewall_response import FirewallResponse
129
+ from .firewall_rule import FirewallRule
130
+ from .firewalls_list_response import FirewallsListResponse
131
+ from .flavor_fields import FlavorFields
132
+ from .flavor_item_get_response import FlavorItemGetResponse
133
+ from .flavor_list_response import FlavorListResponse
134
+ from .flavor_object_fields import FlavorObjectFields
135
+ from .flavor_payload import FlavorPayload
136
+ from .flavor_response import FlavorResponse
137
+ from .flavor_vm_fields import FlavorVMFields
138
+ from .flavor_vms_response import FlavorVMsResponse
139
+ from .future_node_model import FutureNodeModel
140
+ from .future_node_response_model import FutureNodeResponseModel
141
+ from .future_node_stock_model import FutureNodeStockModel
142
+ from .future_node_update_model import FutureNodeUpdateModel
143
+ from .future_nodes_stock_model import FutureNodesStockModel
144
+ from .gpu import GPU
145
+ from .gpu_fields import GPUFields
146
+ from .gpu_list import GPUList
147
+ from .gpu_region_fields import GPURegionFields
148
+ from .generate_update_api_key_payload import GenerateUpdateApiKeyPayload
149
+ from .generate_update_api_key_response_model import GenerateUpdateApiKeyResponseModel
150
+ from .get_all_contract_fields import GetAllContractFields
151
+ from .get_all_contracts_response_model import GetAllContractsResponseModel
152
+ from .get_all_discount_for_all_organization_response import GetAllDiscountForAllOrganizationResponse
153
+ from .get_all_discounts_fields import GetAllDiscountsFields
154
+ from .get_api_keys_response_model import GetApiKeysResponseModel
155
+ from .get_customer_contracts_list_response_model import GetCustomerContractsListResponseModel
156
+ from .get_discount_detail_response import GetDiscountDetailResponse
157
+ from .get_discount_response import GetDiscountResponse
158
+ from .get_entity_discount_detail_response import GetEntityDiscountDetailResponse
159
+ from .get_invites_response_model import GetInvitesResponseModel
160
+ from .get_organization_response_model import GetOrganizationResponseModel
161
+ from .get_permissions_response_model import GetPermissionsResponseModel
162
+ from .get_policies_response_model import GetPoliciesResponseModel
163
+ from .get_rbac_roles_response_model import GetRbacRolesResponseModel
164
+ from .get_token_payload import GetTokenPayload
165
+ from .get_user_permissions_response_model import GetUserPermissionsResponseModel
166
+ from .get_version_response import GetVersionResponse
167
+ from .getcreditandthresholdinfo import Getcreditandthresholdinfo
168
+ from .getcreditandthresholdinfoinresponse import Getcreditandthresholdinfoinresponse
169
+ from .graph_datetime_value_model import GraphDatetimeValueModel
170
+ from .historical_instance import HistoricalInstance
171
+ from .historical_instances_fields import HistoricalInstancesFields
172
+ from .image import Image
173
+ from .image_fields import ImageFields
174
+ from .image_get_response import ImageGetResponse
175
+ from .image_logos import ImageLogos
176
+ from .images import Images
177
+ from .import_keypair_payload import ImportKeypairPayload
178
+ from .import_keypair_response import ImportKeypairResponse
179
+ from .infrahub_resource_object_response import InfrahubResourceObjectResponse
180
+ from .infrahub_resource_object_response_for_customer import InfrahubResourceObjectResponseForCustomer
181
+ from .insert_discount_plan_fields import InsertDiscountPlanFields
182
+ from .instance import Instance
183
+ from .instance_environment_fields import InstanceEnvironmentFields
184
+ from .instance_events import InstanceEvents
185
+ from .instance_events_fields import InstanceEventsFields
186
+ from .instance_fields import InstanceFields
187
+ from .instance_flavor_fields import InstanceFlavorFields
188
+ from .instance_image_fields import InstanceImageFields
189
+ from .instance_keypair_fields import InstanceKeypairFields
190
+ from .instance_overview_fields import InstanceOverviewFields
191
+ from .instance_resize_payload import InstanceResizePayload
192
+ from .instances import Instances
193
+ from .instances_summary_fields import InstancesSummaryFields
194
+ from .internal_environment_fields import InternalEnvironmentFields
195
+ from .internal_instance_fields import InternalInstanceFields
196
+ from .internal_instance_flavor_fields import InternalInstanceFlavorFields
197
+ from .internal_instance_image_fields import InternalInstanceImageFields
198
+ from .internal_instance_keypair_fields import InternalInstanceKeypairFields
199
+ from .internal_instances_response import InternalInstancesResponse
200
+ from .internal_security_rules_fields_for_instance import InternalSecurityRulesFieldsForInstance
201
+ from .internal_volume_attachment_fields import InternalVolumeAttachmentFields
202
+ from .internal_volume_fields import InternalVolumeFields
203
+ from .internal_volumes_response import InternalVolumesResponse
204
+ from .invite_fields import InviteFields
205
+ from .invite_user_payload import InviteUserPayload
206
+ from .invite_user_response_model import InviteUserResponseModel
207
+ from .keypair_fields import KeypairFields
208
+ from .keypairs import Keypairs
209
+ from .lable_resonse import LableResonse
210
+ from .lastdaycostfields import Lastdaycostfields
211
+ from .lastdaycostresponse import Lastdaycostresponse
212
+ from .logo_get_response import LogoGetResponse
213
+ from .logout_payload import LogoutPayload
214
+ from .metric_item_fields import MetricItemFields
215
+ from .metrics_fields import MetricsFields
216
+ from .name_available_model import NameAvailableModel
217
+ from .new_configurations_response import NewConfigurationsResponse
218
+ from .new_model_response import NewModelResponse
219
+ from .new_stock_response import NewStockResponse
220
+ from .new_stock_retrive_response import NewStockRetriveResponse
221
+ from .new_stock_update_response_model import NewStockUpdateResponseModel
222
+ from .node_model import NodeModel
223
+ from .node_payload_model import NodePayloadModel
224
+ from .node_power_usage_model import NodePowerUsageModel
225
+ from .node_response_model import NodeResponseModel
226
+ from .node_stock_payload_model import NodeStockPayloadModel
227
+ from .node_stock_response_model import NodeStockResponseModel
228
+ from .node_stocks_payload import NodeStocksPayload
229
+ from .organization_fields import OrganizationFields
230
+ from .organization_level_billing_history import OrganizationLevelBillingHistory
231
+ from .organization_level_billing_history_resources import OrganizationLevelBillingHistoryResources
232
+ from .organization_level_billing_history_response_attributes import OrganizationLevelBillingHistoryResponseAttributes
233
+ from .organization_level_billing_history_response_metrics import OrganizationLevelBillingHistoryResponseMetrics
234
+ from .organization_level_billing_history_response_model import OrganizationLevelBillingHistoryResponseModel
235
+ from .organization_object_response import OrganizationObjectResponse
236
+ from .organization_thresholdfields import OrganizationThresholdfields
237
+ from .organization_user_response_model import OrganizationUserResponseModel
238
+ from .organizationcreditrechargelimitresponse import Organizationcreditrechargelimitresponse
239
+ from .organizationthresholdsresponse import Organizationthresholdsresponse
240
+ from .organizationthresholdupdateresponse import Organizationthresholdupdateresponse
241
+ from .overview_info import OverviewInfo
242
+ from .pagination_data import PaginationData
243
+ from .payment_details_fields import PaymentDetailsFields
244
+ from .payment_details_response import PaymentDetailsResponse
245
+ from .payment_initiate_fields import PaymentInitiateFields
246
+ from .payment_initiate_payload import PaymentInitiatePayload
247
+ from .payment_initiate_response import PaymentInitiateResponse
248
+ from .permission_fields import PermissionFields
249
+ from .policy_fields import PolicyFields
250
+ from .policy_permission_fields import PolicyPermissionFields
251
+ from .power_usage_model import PowerUsageModel
252
+ from .pricebook_model import PricebookModel
253
+ from .pricebook_resource_object_response import PricebookResourceObjectResponse
254
+ from .pricebook_resource_object_response_for_customer import PricebookResourceObjectResponseForCustomer
255
+ from .profile_fields import ProfileFields
256
+ from .profile_list_response import ProfileListResponse
257
+ from .profile_object_fields import ProfileObjectFields
258
+ from .rbac_role_detail_response_model import RbacRoleDetailResponseModel
259
+ from .rbac_role_detail_response_model_fixed import RbacRoleDetailResponseModelFixed
260
+ from .rbac_role_field import RbacRoleField
261
+ from .rbac_role_fields import RbacRoleFields
262
+ from .refresh_token_payload import RefreshTokenPayload
263
+ from .region_fields import RegionFields
264
+ from .region_payload import RegionPayload
265
+ from .region_response import RegionResponse
266
+ from .regions import Regions
267
+ from .remove_member_from_organization_response_model import RemoveMemberFromOrganizationResponseModel
268
+ from .remove_member_payload import RemoveMemberPayload
269
+ from .request_console import RequestConsole
270
+ from .resource_billing_events_history_metrics import ResourceBillingEventsHistoryMetrics
271
+ from .resource_billing_events_history_response import ResourceBillingEventsHistoryResponse
272
+ from .resource_billing_response_for_customer import ResourceBillingResponseForCustomer
273
+ from .resource_level_billing_details_attributes import ResourceLevelBillingDetailsAttributes
274
+ from .resource_level_billing_details_metrics import ResourceLevelBillingDetailsMetrics
275
+ from .resource_level_billing_details_vm import ResourceLevelBillingDetailsVM
276
+ from .resource_level_billing_details_volume import ResourceLevelBillingDetailsVolume
277
+ from .resource_level_billing_details_volume_attributes import ResourceLevelBillingDetailsVolumeAttributes
278
+ from .resource_level_billing_details_volume_metrics import ResourceLevelBillingDetailsVolumeMetrics
279
+ from .resource_level_billing_history import ResourceLevelBillingHistory
280
+ from .resource_level_billing_history_resources import ResourceLevelBillingHistoryResources
281
+ from .resource_level_billing_history_response_attributes import ResourceLevelBillingHistoryResponseAttributes
282
+ from .resource_level_billing_history_response_metrics import ResourceLevelBillingHistoryResponseMetrics
283
+ from .resource_level_billing_vm_details_resources import ResourceLevelBillingVMDetailsResources
284
+ from .resource_level_billing_volume_details_resources import ResourceLevelBillingVolumeDetailsResources
285
+ from .resource_level_graph_billing_detail_volume import ResourceLevelGraphBillingDetailVolume
286
+ from .resource_level_graph_billing_details_attributes import ResourceLevelGraphBillingDetailsAttributes
287
+ from .resource_level_graph_billing_details_metrics import ResourceLevelGraphBillingDetailsMetrics
288
+ from .resource_level_graph_billing_details_vm import ResourceLevelGraphBillingDetailsVM
289
+ from .resource_level_graph_billing_vm_details_resources import ResourceLevelGraphBillingVMDetailsResources
290
+ from .resource_level_graph_billing_volume_details_resources import ResourceLevelGraphBillingVolumeDetailsResources
291
+ from .resource_level_vm_billing_details_response_model import ResourceLevelVMBillingDetailsResponseModel
292
+ from .resource_level_vm_billing_history_response_model import ResourceLevelVmBillingHistoryResponseModel
293
+ from .resource_level_vm_graph_billing_details_response_model import ResourceLevelVmGraphBillingDetailsResponseModel
294
+ from .resource_level_volume_billing_details_response_model import ResourceLevelVolumeBillingDetailsResponseModel
295
+ from .resource_level_volume_billing_history_response_model import ResourceLevelVolumeBillingHistoryResponseModel
296
+ from .resource_level_volume_graph_billing_details_response_model import ResourceLevelVolumeGraphBillingDetailsResponseModel
297
+ from .resource_object_response_for_customer import ResourceObjectResponseForCustomer
298
+ from .response_model import ResponseModel
299
+ from .role_permission_fields import RolePermissionFields
300
+ from .role_policy_fields import RolePolicyFields
301
+ from .security_group_rule import SecurityGroupRule
302
+ from .security_group_rule_fields import SecurityGroupRuleFields
303
+ from .security_rules_fieldsfor_instance import SecurityRulesFieldsforInstance
304
+ from .security_rules_protocol_fields import SecurityRulesProtocolFields
305
+ from .set_defaults_payload import SetDefaultsPayload
306
+ from .single_visibility_user_response import SingleVisibilityUserResponse
307
+ from .snapshot_fields import SnapshotFields
308
+ from .snapshot_restore_request import SnapshotRestoreRequest
309
+ from .snapshot_retrieve import SnapshotRetrieve
310
+ from .snapshot_retrieve_fields import SnapshotRetrieveFields
311
+ from .snapshots import Snapshots
312
+ from .start_deployment import StartDeployment
313
+ from .start_deployment_payload import StartDeploymentPayload
314
+ from .stock_visibility_user_list_response import StockVisibilityUserListResponse
315
+ from .stock_visibility_user_payload import StockVisibilityUserPayload
316
+ from .sub_resource_graph_billing_details_metrics import SubResourceGraphBillingDetailsMetrics
317
+ from .sub_resources_costs_response_model import SubResourcesCostsResponseModel
318
+ from .sub_resources_graph_billing_history_fields import SubResourcesGraphBillingHistoryFields
319
+ from .sub_resources_graph_response_model import SubResourcesGraphResponseModel
320
+ from .subscribeorunsubscribeupdatepayload import Subscribeorunsubscribeupdatepayload
321
+ from .success_response_model import SuccessResponseModel
322
+ from .template import Template
323
+ from .template_fields import TemplateFields
324
+ from .templates import Templates
325
+ from .token_fields import TokenFields
326
+ from .update_contract_payload import UpdateContractPayload
327
+ from .update_discounts_payload import UpdateDiscountsPayload
328
+ from .update_discounts_status_payload import UpdateDiscountsStatusPayload
329
+ from .update_environment import UpdateEnvironment
330
+ from .update_gpu import UpdateGPU
331
+ from .update_keypair_name import UpdateKeypairName
332
+ from .update_keypairnameresponse import UpdateKeypairnameresponse
333
+ from .update_organization_payload import UpdateOrganizationPayload
334
+ from .update_organization_response_model import UpdateOrganizationResponseModel
335
+ from .update_template import UpdateTemplate
336
+ from .user_default_choice_for_user_fields import UserDefaultChoiceForUserFields
337
+ from .user_default_choices_for_user_response import UserDefaultChoicesForUserResponse
338
+ from .user_permission_fields import UserPermissionFields
339
+ from .user_transfer_payload import UserTransferPayload
340
+ from .userinfopostpayload import Userinfopostpayload
341
+ from .users_info_fields import UsersInfoFields
342
+ from .users_info_list_response import UsersInfoListResponse
343
+ from .vm_usage_request_payload import VMUsageRequestPayload
344
+ from .vm_usage_response import VMUsageResponse
345
+ from .vncurl import VNCURL
346
+ from .vncurl_fields import VNCURLFields
347
+ from .verify_api_key_payload import VerifyApiKeyPayload
348
+ from .verify_api_key_response_model import VerifyApiKeyResponseModel
349
+ from .virtual_machine_usage import VirtualMachineUsage
350
+ from .volume import Volume
351
+ from .volume_attachment_fields import VolumeAttachmentFields
352
+ from .volume_fields import VolumeFields
353
+ from .volume_fieldsfor_instance import VolumeFieldsforInstance
354
+ from .volume_overview_fields import VolumeOverviewFields
355
+ from .volume_status_change_fields import VolumeStatusChangeFields
356
+ from .volume_types import VolumeTypes
357
+ from .volumes import Volumes
358
+ from .volumes_last_status_change_response import VolumesLastStatusChangeResponse
359
+ from .warning_mail_log_fields import WarningMailLogFields
360
+ from .warning_mail_log_response import WarningMailLogResponse
@@ -0,0 +1,111 @@
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, StrictBool, StrictFloat, StrictInt, StrictStr
21
+ from typing import Any, ClassVar, Dict, List, Optional, Union
22
+ from typing import Optional, Set
23
+ from typing_extensions import Self
24
+
25
+ class AddUpdateFlavorOrganizationPayload(BaseModel):
26
+ """
27
+ AddUpdateFlavorOrganizationPayload
28
+ """ # noqa: E501
29
+ cpu: StrictInt
30
+ description: Optional[StrictStr] = None
31
+ disk: StrictInt
32
+ ephemeral: Optional[StrictInt] = None
33
+ gpu_count: StrictInt
34
+ gpu_id: StrictInt
35
+ is_public: StrictBool
36
+ labels: Optional[List[StrictStr]] = None
37
+ name: StrictStr
38
+ openstack_id: StrictStr
39
+ organizations: List[StrictInt]
40
+ ram: Union[StrictFloat, StrictInt]
41
+ region_id: StrictInt
42
+ __properties: ClassVar[List[str]] = ["cpu", "description", "disk", "ephemeral", "gpu_count", "gpu_id", "is_public", "labels", "name", "openstack_id", "organizations", "ram", "region_id"]
43
+
44
+ model_config = ConfigDict(
45
+ populate_by_name=True,
46
+ validate_assignment=True,
47
+ protected_namespaces=(),
48
+ )
49
+
50
+
51
+ def to_str(self) -> str:
52
+ """Returns the string representation of the model using alias"""
53
+ return pprint.pformat(self.model_dump(by_alias=True))
54
+
55
+ def to_json(self) -> str:
56
+ """Returns the JSON representation of the model using alias"""
57
+ # TODO: pydantic v2: use .model_dump_json(by_alias=True, exclude_unset=True) instead
58
+ return json.dumps(self.to_dict())
59
+
60
+ @classmethod
61
+ def from_json(cls, json_str: str) -> Optional[Self]:
62
+ """Create an instance of AddUpdateFlavorOrganizationPayload from a JSON string"""
63
+ return cls.from_dict(json.loads(json_str))
64
+
65
+ def to_dict(self) -> Dict[str, Any]:
66
+ """Return the dictionary representation of the model using alias.
67
+
68
+ This has the following differences from calling pydantic's
69
+ `self.model_dump(by_alias=True)`:
70
+
71
+ * `None` is only added to the output dict for nullable fields that
72
+ were set at model initialization. Other fields with value `None`
73
+ are ignored.
74
+ """
75
+ excluded_fields: Set[str] = set([
76
+ ])
77
+
78
+ _dict = self.model_dump(
79
+ by_alias=True,
80
+ exclude=excluded_fields,
81
+ exclude_none=True,
82
+ )
83
+ return _dict
84
+
85
+ @classmethod
86
+ def from_dict(cls, obj: Optional[Dict[str, Any]]) -> Optional[Self]:
87
+ """Create an instance of AddUpdateFlavorOrganizationPayload from a dict"""
88
+ if obj is None:
89
+ return None
90
+
91
+ if not isinstance(obj, dict):
92
+ return cls.model_validate(obj)
93
+
94
+ _obj = cls.model_validate({
95
+ "cpu": obj.get("cpu"),
96
+ "description": obj.get("description"),
97
+ "disk": obj.get("disk"),
98
+ "ephemeral": obj.get("ephemeral"),
99
+ "gpu_count": obj.get("gpu_count"),
100
+ "gpu_id": obj.get("gpu_id"),
101
+ "is_public": obj.get("is_public"),
102
+ "labels": obj.get("labels"),
103
+ "name": obj.get("name"),
104
+ "openstack_id": obj.get("openstack_id"),
105
+ "organizations": obj.get("organizations"),
106
+ "ram": obj.get("ram"),
107
+ "region_id": obj.get("region_id")
108
+ })
109
+ return _obj
110
+
111
+