gcore 0.1.0a1__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.

Potentially problematic release.


This version of gcore might be problematic. Click here for more details.

Files changed (420) hide show
  1. gcore/__init__.py +84 -0
  2. gcore/_base_client.py +1943 -0
  3. gcore/_client.py +484 -0
  4. gcore/_compat.py +219 -0
  5. gcore/_constants.py +16 -0
  6. gcore/_exceptions.py +108 -0
  7. gcore/_files.py +123 -0
  8. gcore/_models.py +803 -0
  9. gcore/_qs.py +150 -0
  10. gcore/_resource.py +43 -0
  11. gcore/_response.py +830 -0
  12. gcore/_streaming.py +333 -0
  13. gcore/_types.py +217 -0
  14. gcore/_utils/__init__.py +57 -0
  15. gcore/_utils/_logs.py +25 -0
  16. gcore/_utils/_proxy.py +62 -0
  17. gcore/_utils/_reflection.py +42 -0
  18. gcore/_utils/_streams.py +12 -0
  19. gcore/_utils/_sync.py +86 -0
  20. gcore/_utils/_transform.py +447 -0
  21. gcore/_utils/_typing.py +151 -0
  22. gcore/_utils/_utils.py +422 -0
  23. gcore/_version.py +4 -0
  24. gcore/lib/.keep +4 -0
  25. gcore/lib/polling.py +19 -0
  26. gcore/pagination.py +70 -0
  27. gcore/py.typed +0 -0
  28. gcore/resources/__init__.py +19 -0
  29. gcore/resources/cloud/__init__.py +327 -0
  30. gcore/resources/cloud/baremetal/__init__.py +61 -0
  31. gcore/resources/cloud/baremetal/baremetal.py +166 -0
  32. gcore/resources/cloud/baremetal/flavors.py +371 -0
  33. gcore/resources/cloud/baremetal/images.py +238 -0
  34. gcore/resources/cloud/baremetal/servers.py +808 -0
  35. gcore/resources/cloud/billing_reservations.py +362 -0
  36. gcore/resources/cloud/cloud.py +774 -0
  37. gcore/resources/cloud/file_shares/__init__.py +33 -0
  38. gcore/resources/cloud/file_shares/access_rules.py +434 -0
  39. gcore/resources/cloud/file_shares/file_shares.py +994 -0
  40. gcore/resources/cloud/floating_ips.py +765 -0
  41. gcore/resources/cloud/gpu_baremetal_clusters/__init__.py +75 -0
  42. gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +211 -0
  43. gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +1143 -0
  44. gcore/resources/cloud/gpu_baremetal_clusters/images.py +581 -0
  45. gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +175 -0
  46. gcore/resources/cloud/gpu_baremetal_clusters/servers.py +1098 -0
  47. gcore/resources/cloud/inference/__init__.py +89 -0
  48. gcore/resources/cloud/inference/deployments/__init__.py +33 -0
  49. gcore/resources/cloud/inference/deployments/deployments.py +1187 -0
  50. gcore/resources/cloud/inference/deployments/logs.py +235 -0
  51. gcore/resources/cloud/inference/flavors.py +280 -0
  52. gcore/resources/cloud/inference/inference.py +295 -0
  53. gcore/resources/cloud/inference/models.py +289 -0
  54. gcore/resources/cloud/inference/registry_credentials.py +649 -0
  55. gcore/resources/cloud/inference/secrets.py +629 -0
  56. gcore/resources/cloud/instances/__init__.py +75 -0
  57. gcore/resources/cloud/instances/flavors.py +449 -0
  58. gcore/resources/cloud/instances/images.py +987 -0
  59. gcore/resources/cloud/instances/instances.py +2349 -0
  60. gcore/resources/cloud/instances/interfaces.py +797 -0
  61. gcore/resources/cloud/instances/metrics.py +217 -0
  62. gcore/resources/cloud/ip_ranges.py +135 -0
  63. gcore/resources/cloud/load_balancers/__init__.py +103 -0
  64. gcore/resources/cloud/load_balancers/flavors.py +193 -0
  65. gcore/resources/cloud/load_balancers/l7_policies/__init__.py +33 -0
  66. gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +738 -0
  67. gcore/resources/cloud/load_balancers/l7_policies/rules.py +722 -0
  68. gcore/resources/cloud/load_balancers/listeners.py +788 -0
  69. gcore/resources/cloud/load_balancers/load_balancers.py +1237 -0
  70. gcore/resources/cloud/load_balancers/metrics.py +205 -0
  71. gcore/resources/cloud/load_balancers/pools/__init__.py +47 -0
  72. gcore/resources/cloud/load_balancers/pools/health_monitors.py +352 -0
  73. gcore/resources/cloud/load_balancers/pools/members.py +353 -0
  74. gcore/resources/cloud/load_balancers/pools/pools.py +872 -0
  75. gcore/resources/cloud/load_balancers/statuses.py +260 -0
  76. gcore/resources/cloud/networks/__init__.py +47 -0
  77. gcore/resources/cloud/networks/networks.py +715 -0
  78. gcore/resources/cloud/networks/routers.py +875 -0
  79. gcore/resources/cloud/networks/subnets.py +865 -0
  80. gcore/resources/cloud/placement_groups.py +465 -0
  81. gcore/resources/cloud/projects.py +608 -0
  82. gcore/resources/cloud/quotas/__init__.py +33 -0
  83. gcore/resources/cloud/quotas/quotas.py +335 -0
  84. gcore/resources/cloud/quotas/requests.py +482 -0
  85. gcore/resources/cloud/regions.py +328 -0
  86. gcore/resources/cloud/registries/__init__.py +75 -0
  87. gcore/resources/cloud/registries/artifacts.py +277 -0
  88. gcore/resources/cloud/registries/registries.py +688 -0
  89. gcore/resources/cloud/registries/repositories.py +265 -0
  90. gcore/resources/cloud/registries/tags.py +190 -0
  91. gcore/resources/cloud/registries/users.py +701 -0
  92. gcore/resources/cloud/reserved_fixed_ips/__init__.py +33 -0
  93. gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +965 -0
  94. gcore/resources/cloud/reserved_fixed_ips/vip.py +577 -0
  95. gcore/resources/cloud/secrets.py +797 -0
  96. gcore/resources/cloud/security_groups/__init__.py +33 -0
  97. gcore/resources/cloud/security_groups/rules.py +626 -0
  98. gcore/resources/cloud/security_groups/security_groups.py +863 -0
  99. gcore/resources/cloud/ssh_keys.py +635 -0
  100. gcore/resources/cloud/tasks.py +699 -0
  101. gcore/resources/cloud/users/__init__.py +33 -0
  102. gcore/resources/cloud/users/role_assignments.py +533 -0
  103. gcore/resources/cloud/users/users.py +102 -0
  104. gcore/resources/cloud/volumes.py +1710 -0
  105. gcore/types/__init__.py +3 -0
  106. gcore/types/cloud/__init__.py +199 -0
  107. gcore/types/cloud/allowed_address_pairs.py +15 -0
  108. gcore/types/cloud/aws_iam_data.py +13 -0
  109. gcore/types/cloud/aws_iam_data_param.py +15 -0
  110. gcore/types/cloud/baremetal/__init__.py +13 -0
  111. gcore/types/cloud/baremetal/baremetal_fixed_address.py +30 -0
  112. gcore/types/cloud/baremetal/baremetal_floating_address.py +15 -0
  113. gcore/types/cloud/baremetal/baremetal_server.py +178 -0
  114. gcore/types/cloud/baremetal/flavor_list_params.py +35 -0
  115. gcore/types/cloud/baremetal/flavor_list_suitable_params.py +22 -0
  116. gcore/types/cloud/baremetal/image_list_params.py +33 -0
  117. gcore/types/cloud/baremetal/server_create_params.py +370 -0
  118. gcore/types/cloud/baremetal/server_list_params.py +114 -0
  119. gcore/types/cloud/baremetal/server_rebuild_params.py +23 -0
  120. gcore/types/cloud/baremetal_flavor.py +58 -0
  121. gcore/types/cloud/baremetal_flavor_list.py +16 -0
  122. gcore/types/cloud/billing_reservation.py +153 -0
  123. gcore/types/cloud/billing_reservation_list_params.py +54 -0
  124. gcore/types/cloud/blackhole_port.py +66 -0
  125. gcore/types/cloud/capacity.py +13 -0
  126. gcore/types/cloud/console.py +18 -0
  127. gcore/types/cloud/container_probe.py +36 -0
  128. gcore/types/cloud/container_probe_config.py +16 -0
  129. gcore/types/cloud/container_probe_config_create_param.py +18 -0
  130. gcore/types/cloud/container_probe_create_param.py +38 -0
  131. gcore/types/cloud/container_probe_exec.py +12 -0
  132. gcore/types/cloud/container_probe_exec_create_param.py +13 -0
  133. gcore/types/cloud/container_probe_http_get.py +26 -0
  134. gcore/types/cloud/container_probe_http_get_create_param.py +25 -0
  135. gcore/types/cloud/container_probe_tcp_socket.py +10 -0
  136. gcore/types/cloud/container_probe_tcp_socket_create_param.py +12 -0
  137. gcore/types/cloud/container_scale.py +25 -0
  138. gcore/types/cloud/container_scale_trigger_rate.py +13 -0
  139. gcore/types/cloud/container_scale_trigger_sqs.py +33 -0
  140. gcore/types/cloud/container_scale_trigger_threshold.py +10 -0
  141. gcore/types/cloud/container_scale_triggers.py +36 -0
  142. gcore/types/cloud/ddos_profile.py +33 -0
  143. gcore/types/cloud/ddos_profile_field.py +31 -0
  144. gcore/types/cloud/ddos_profile_option_list.py +15 -0
  145. gcore/types/cloud/ddos_profile_status.py +13 -0
  146. gcore/types/cloud/ddos_profile_template.py +18 -0
  147. gcore/types/cloud/ddos_profile_template_field.py +23 -0
  148. gcore/types/cloud/deploy_status.py +13 -0
  149. gcore/types/cloud/file_share.py +111 -0
  150. gcore/types/cloud/file_share_create_params.py +104 -0
  151. gcore/types/cloud/file_share_list_params.py +24 -0
  152. gcore/types/cloud/file_share_resize_params.py +18 -0
  153. gcore/types/cloud/file_share_update_params.py +18 -0
  154. gcore/types/cloud/file_shares/__init__.py +7 -0
  155. gcore/types/cloud/file_shares/access_rule.py +21 -0
  156. gcore/types/cloud/file_shares/access_rule_create_params.py +21 -0
  157. gcore/types/cloud/file_shares/access_rule_list.py +16 -0
  158. gcore/types/cloud/fixed_address.py +38 -0
  159. gcore/types/cloud/fixed_address_short.py +24 -0
  160. gcore/types/cloud/flavor_hardware_description.py +27 -0
  161. gcore/types/cloud/floating_address.py +15 -0
  162. gcore/types/cloud/floating_ip.py +77 -0
  163. gcore/types/cloud/floating_ip_assign_params.py +20 -0
  164. gcore/types/cloud/floating_ip_create_params.py +40 -0
  165. gcore/types/cloud/floating_ip_detailed.py +222 -0
  166. gcore/types/cloud/floating_ip_list_params.py +35 -0
  167. gcore/types/cloud/floating_ip_status.py +7 -0
  168. gcore/types/cloud/gpu_baremetal_cluster.py +116 -0
  169. gcore/types/cloud/gpu_baremetal_cluster_create_params.py +135 -0
  170. gcore/types/cloud/gpu_baremetal_cluster_delete_params.py +28 -0
  171. gcore/types/cloud/gpu_baremetal_cluster_list_params.py +19 -0
  172. gcore/types/cloud/gpu_baremetal_cluster_rebuild_params.py +26 -0
  173. gcore/types/cloud/gpu_baremetal_cluster_resize_params.py +16 -0
  174. gcore/types/cloud/gpu_baremetal_cluster_server.py +200 -0
  175. gcore/types/cloud/gpu_baremetal_cluster_server_list.py +16 -0
  176. gcore/types/cloud/gpu_baremetal_clusters/__init__.py +9 -0
  177. gcore/types/cloud/gpu_baremetal_clusters/flavor_list_params.py +21 -0
  178. gcore/types/cloud/gpu_baremetal_clusters/image_upload_params.py +58 -0
  179. gcore/types/cloud/gpu_baremetal_clusters/server_attach_interface_params.py +253 -0
  180. gcore/types/cloud/gpu_baremetal_clusters/server_delete_params.py +21 -0
  181. gcore/types/cloud/gpu_baremetal_clusters/server_detach_interface_params.py +19 -0
  182. gcore/types/cloud/gpu_baremetal_flavor.py +133 -0
  183. gcore/types/cloud/gpu_baremetal_flavor_list.py +16 -0
  184. gcore/types/cloud/gpu_image.py +70 -0
  185. gcore/types/cloud/gpu_image_list.py +16 -0
  186. gcore/types/cloud/health_monitor.py +48 -0
  187. gcore/types/cloud/health_monitor_status.py +22 -0
  188. gcore/types/cloud/http_method.py +7 -0
  189. gcore/types/cloud/image.py +100 -0
  190. gcore/types/cloud/image_list.py +16 -0
  191. gcore/types/cloud/inference/__init__.py +25 -0
  192. gcore/types/cloud/inference/container.py +26 -0
  193. gcore/types/cloud/inference/deployment_create_params.py +222 -0
  194. gcore/types/cloud/inference/deployment_list_params.py +21 -0
  195. gcore/types/cloud/inference/deployment_update_params.py +215 -0
  196. gcore/types/cloud/inference/deployments/__init__.py +5 -0
  197. gcore/types/cloud/inference/deployments/log_list_params.py +28 -0
  198. gcore/types/cloud/inference/flavor_list_params.py +18 -0
  199. gcore/types/cloud/inference/inference.py +95 -0
  200. gcore/types/cloud/inference/inference_apikey_secret.py +15 -0
  201. gcore/types/cloud/inference/inference_flavor.py +34 -0
  202. gcore/types/cloud/inference/inference_log.py +21 -0
  203. gcore/types/cloud/inference/inference_registry_credential.py +19 -0
  204. gcore/types/cloud/inference/inference_registry_credential_full.py +22 -0
  205. gcore/types/cloud/inference/inference_secret.py +17 -0
  206. gcore/types/cloud/inference/mlcatalog_model_card.py +65 -0
  207. gcore/types/cloud/inference/mlcatalog_order_by_choices.py +7 -0
  208. gcore/types/cloud/inference/model_list_params.py +23 -0
  209. gcore/types/cloud/inference/registry_credential_create_params.py +24 -0
  210. gcore/types/cloud/inference/registry_credential_list_params.py +21 -0
  211. gcore/types/cloud/inference/registry_credential_replace_params.py +21 -0
  212. gcore/types/cloud/inference/secret_create_params.py +23 -0
  213. gcore/types/cloud/inference/secret_list_params.py +21 -0
  214. gcore/types/cloud/inference/secret_replace_params.py +20 -0
  215. gcore/types/cloud/inference_probes.py +19 -0
  216. gcore/types/cloud/ingress_opts_out.py +16 -0
  217. gcore/types/cloud/ingress_opts_param.py +18 -0
  218. gcore/types/cloud/instance.py +296 -0
  219. gcore/types/cloud/instance_action_params.py +32 -0
  220. gcore/types/cloud/instance_add_to_placement_group_params.py +16 -0
  221. gcore/types/cloud/instance_assign_security_group_params.py +28 -0
  222. gcore/types/cloud/instance_create_params.py +622 -0
  223. gcore/types/cloud/instance_delete_params.py +33 -0
  224. gcore/types/cloud/instance_get_console_params.py +16 -0
  225. gcore/types/cloud/instance_interface.py +40 -0
  226. gcore/types/cloud/instance_isolation.py +12 -0
  227. gcore/types/cloud/instance_list.py +16 -0
  228. gcore/types/cloud/instance_list_params.py +146 -0
  229. gcore/types/cloud/instance_metrics_time_unit.py +7 -0
  230. gcore/types/cloud/instance_resize_params.py +16 -0
  231. gcore/types/cloud/instance_unassign_security_group_params.py +28 -0
  232. gcore/types/cloud/instance_update_params.py +18 -0
  233. gcore/types/cloud/instances/__init__.py +19 -0
  234. gcore/types/cloud/instances/flavor_list_for_resize_params.py +16 -0
  235. gcore/types/cloud/instances/flavor_list_params.py +25 -0
  236. gcore/types/cloud/instances/flavor_list_suitable_params.py +56 -0
  237. gcore/types/cloud/instances/image_create_from_volume_params.py +53 -0
  238. gcore/types/cloud/instances/image_get_params.py +16 -0
  239. gcore/types/cloud/instances/image_list_params.py +33 -0
  240. gcore/types/cloud/instances/image_update_params.py +43 -0
  241. gcore/types/cloud/instances/image_upload_params.py +62 -0
  242. gcore/types/cloud/instances/instance_flavor.py +49 -0
  243. gcore/types/cloud/instances/instance_flavor_list.py +16 -0
  244. gcore/types/cloud/instances/interface_attach_params.py +253 -0
  245. gcore/types/cloud/instances/interface_detach_params.py +19 -0
  246. gcore/types/cloud/instances/metric_list_params.py +23 -0
  247. gcore/types/cloud/instances/metrics.py +52 -0
  248. gcore/types/cloud/instances/metrics_list.py +16 -0
  249. gcore/types/cloud/interface_ip_family.py +7 -0
  250. gcore/types/cloud/ip_assignment.py +13 -0
  251. gcore/types/cloud/ip_ranges.py +12 -0
  252. gcore/types/cloud/ip_version.py +7 -0
  253. gcore/types/cloud/laas_index_retention_policy.py +12 -0
  254. gcore/types/cloud/laas_index_retention_policy_param.py +13 -0
  255. gcore/types/cloud/lb_algorithm.py +7 -0
  256. gcore/types/cloud/lb_health_monitor_type.py +7 -0
  257. gcore/types/cloud/lb_listener_protocol.py +7 -0
  258. gcore/types/cloud/lb_pool_protocol.py +7 -0
  259. gcore/types/cloud/lb_session_persistence_type.py +7 -0
  260. gcore/types/cloud/listener_status.py +27 -0
  261. gcore/types/cloud/load_balancer.py +144 -0
  262. gcore/types/cloud/load_balancer_create_params.py +327 -0
  263. gcore/types/cloud/load_balancer_failover_params.py +16 -0
  264. gcore/types/cloud/load_balancer_flavor_detail.py +40 -0
  265. gcore/types/cloud/load_balancer_flavor_list.py +16 -0
  266. gcore/types/cloud/load_balancer_get_params.py +19 -0
  267. gcore/types/cloud/load_balancer_instance_role.py +7 -0
  268. gcore/types/cloud/load_balancer_l7_policy.py +86 -0
  269. gcore/types/cloud/load_balancer_l7_policy_list.py +16 -0
  270. gcore/types/cloud/load_balancer_l7_rule.py +72 -0
  271. gcore/types/cloud/load_balancer_l7_rule_list.py +16 -0
  272. gcore/types/cloud/load_balancer_list_params.py +53 -0
  273. gcore/types/cloud/load_balancer_listener_detail.py +97 -0
  274. gcore/types/cloud/load_balancer_listener_list.py +16 -0
  275. gcore/types/cloud/load_balancer_member_connectivity.py +7 -0
  276. gcore/types/cloud/load_balancer_metrics.py +32 -0
  277. gcore/types/cloud/load_balancer_metrics_list.py +16 -0
  278. gcore/types/cloud/load_balancer_operating_status.py +7 -0
  279. gcore/types/cloud/load_balancer_pool.py +87 -0
  280. gcore/types/cloud/load_balancer_pool_list.py +16 -0
  281. gcore/types/cloud/load_balancer_resize_params.py +16 -0
  282. gcore/types/cloud/load_balancer_statistics.py +22 -0
  283. gcore/types/cloud/load_balancer_status.py +38 -0
  284. gcore/types/cloud/load_balancer_status_list.py +16 -0
  285. gcore/types/cloud/load_balancer_update_params.py +43 -0
  286. gcore/types/cloud/load_balancers/__init__.py +15 -0
  287. gcore/types/cloud/load_balancers/flavor_list_params.py +16 -0
  288. gcore/types/cloud/load_balancers/l7_policies/__init__.py +6 -0
  289. gcore/types/cloud/load_balancers/l7_policies/rule_create_params.py +50 -0
  290. gcore/types/cloud/load_balancers/l7_policies/rule_replace_params.py +43 -0
  291. gcore/types/cloud/load_balancers/l7_policy_create_params.py +54 -0
  292. gcore/types/cloud/load_balancers/l7_policy_replace_params.py +51 -0
  293. gcore/types/cloud/load_balancers/listener_create_params.py +72 -0
  294. gcore/types/cloud/load_balancers/listener_get_params.py +16 -0
  295. gcore/types/cloud/load_balancers/listener_list_params.py +19 -0
  296. gcore/types/cloud/load_balancers/listener_update_params.py +55 -0
  297. gcore/types/cloud/load_balancers/metric_list_params.py +21 -0
  298. gcore/types/cloud/load_balancers/pool_create_params.py +141 -0
  299. gcore/types/cloud/load_balancers/pool_list_params.py +25 -0
  300. gcore/types/cloud/load_balancers/pool_update_params.py +139 -0
  301. gcore/types/cloud/load_balancers/pools/__init__.py +6 -0
  302. gcore/types/cloud/load_balancers/pools/health_monitor_create_params.py +49 -0
  303. gcore/types/cloud/load_balancers/pools/member_add_params.py +44 -0
  304. gcore/types/cloud/logging.py +22 -0
  305. gcore/types/cloud/member.py +47 -0
  306. gcore/types/cloud/member_status.py +24 -0
  307. gcore/types/cloud/network.py +79 -0
  308. gcore/types/cloud/network_create_params.py +34 -0
  309. gcore/types/cloud/network_details.py +79 -0
  310. gcore/types/cloud/network_interface.py +78 -0
  311. gcore/types/cloud/network_interface_list.py +16 -0
  312. gcore/types/cloud/network_list_params.py +36 -0
  313. gcore/types/cloud/network_update_params.py +16 -0
  314. gcore/types/cloud/networks/__init__.py +14 -0
  315. gcore/types/cloud/networks/router.py +83 -0
  316. gcore/types/cloud/networks/router_attach_subnet_params.py +24 -0
  317. gcore/types/cloud/networks/router_create_params.py +75 -0
  318. gcore/types/cloud/networks/router_detach_subnet_params.py +16 -0
  319. gcore/types/cloud/networks/router_list.py +16 -0
  320. gcore/types/cloud/networks/router_list_params.py +19 -0
  321. gcore/types/cloud/networks/router_update_params.py +45 -0
  322. gcore/types/cloud/networks/subnet_create_params.py +82 -0
  323. gcore/types/cloud/networks/subnet_list_params.py +58 -0
  324. gcore/types/cloud/networks/subnet_update_params.py +47 -0
  325. gcore/types/cloud/placement_group.py +41 -0
  326. gcore/types/cloud/placement_group_create_params.py +19 -0
  327. gcore/types/cloud/placement_group_list.py +16 -0
  328. gcore/types/cloud/pool_status.py +31 -0
  329. gcore/types/cloud/project.py +47 -0
  330. gcore/types/cloud/project_create_params.py +22 -0
  331. gcore/types/cloud/project_list_params.py +27 -0
  332. gcore/types/cloud/project_replace_params.py +18 -0
  333. gcore/types/cloud/provisioning_status.py +9 -0
  334. gcore/types/cloud/quota_get_all_response.py +340 -0
  335. gcore/types/cloud/quota_get_by_region_response.py +288 -0
  336. gcore/types/cloud/quota_get_global_response.py +51 -0
  337. gcore/types/cloud/quotas/__init__.py +8 -0
  338. gcore/types/cloud/quotas/request_create_params.py +193 -0
  339. gcore/types/cloud/quotas/request_get_response.py +205 -0
  340. gcore/types/cloud/quotas/request_list_params.py +22 -0
  341. gcore/types/cloud/quotas/request_list_response.py +205 -0
  342. gcore/types/cloud/region.py +101 -0
  343. gcore/types/cloud/region_capacity.py +16 -0
  344. gcore/types/cloud/region_capacity_list.py +16 -0
  345. gcore/types/cloud/region_get_params.py +18 -0
  346. gcore/types/cloud/region_list_params.py +31 -0
  347. gcore/types/cloud/registries/__init__.py +14 -0
  348. gcore/types/cloud/registries/registry_artifact.py +35 -0
  349. gcore/types/cloud/registries/registry_artifact_list.py +16 -0
  350. gcore/types/cloud/registries/registry_repository.py +30 -0
  351. gcore/types/cloud/registries/registry_repository_list.py +16 -0
  352. gcore/types/cloud/registries/registry_user.py +28 -0
  353. gcore/types/cloud/registries/registry_user_created.py +31 -0
  354. gcore/types/cloud/registries/registry_user_list.py +16 -0
  355. gcore/types/cloud/registries/user_create_multiple_params.py +36 -0
  356. gcore/types/cloud/registries/user_create_params.py +30 -0
  357. gcore/types/cloud/registries/user_update_params.py +21 -0
  358. gcore/types/cloud/registry.py +33 -0
  359. gcore/types/cloud/registry_create_params.py +24 -0
  360. gcore/types/cloud/registry_list.py +16 -0
  361. gcore/types/cloud/registry_resize_params.py +16 -0
  362. gcore/types/cloud/registry_tag.py +27 -0
  363. gcore/types/cloud/reserved_fixed_ip.py +98 -0
  364. gcore/types/cloud/reserved_fixed_ip_create_params.py +107 -0
  365. gcore/types/cloud/reserved_fixed_ip_list_params.py +47 -0
  366. gcore/types/cloud/reserved_fixed_ips/__init__.py +12 -0
  367. gcore/types/cloud/reserved_fixed_ips/candidate_port.py +26 -0
  368. gcore/types/cloud/reserved_fixed_ips/candidate_port_list.py +16 -0
  369. gcore/types/cloud/reserved_fixed_ips/connected_port.py +26 -0
  370. gcore/types/cloud/reserved_fixed_ips/connected_port_list.py +16 -0
  371. gcore/types/cloud/reserved_fixed_ips/ip_with_subnet.py +17 -0
  372. gcore/types/cloud/reserved_fixed_ips/vip_replace_connected_ports_params.py +17 -0
  373. gcore/types/cloud/reserved_fixed_ips/vip_toggle_params.py +16 -0
  374. gcore/types/cloud/reserved_fixed_ips/vip_update_connected_ports_params.py +17 -0
  375. gcore/types/cloud/route.py +16 -0
  376. gcore/types/cloud/secret.py +64 -0
  377. gcore/types/cloud/secret_create_params.py +66 -0
  378. gcore/types/cloud/secret_list_response.py +16 -0
  379. gcore/types/cloud/secret_upload_tls_certificate_params.py +39 -0
  380. gcore/types/cloud/security_group.py +45 -0
  381. gcore/types/cloud/security_group_copy_params.py +16 -0
  382. gcore/types/cloud/security_group_create_params.py +94 -0
  383. gcore/types/cloud/security_group_list_params.py +30 -0
  384. gcore/types/cloud/security_group_rule.py +83 -0
  385. gcore/types/cloud/security_group_update_params.py +83 -0
  386. gcore/types/cloud/security_groups/__init__.py +6 -0
  387. gcore/types/cloud/security_groups/rule_create_params.py +65 -0
  388. gcore/types/cloud/security_groups/rule_replace_params.py +72 -0
  389. gcore/types/cloud/session_persistence.py +22 -0
  390. gcore/types/cloud/ssh_key.py +39 -0
  391. gcore/types/cloud/ssh_key_create_params.py +31 -0
  392. gcore/types/cloud/ssh_key_created.py +53 -0
  393. gcore/types/cloud/ssh_key_list_params.py +21 -0
  394. gcore/types/cloud/ssh_key_update_params.py +15 -0
  395. gcore/types/cloud/subnet.py +87 -0
  396. gcore/types/cloud/tag.py +16 -0
  397. gcore/types/cloud/tag_update_map_param.py +10 -0
  398. gcore/types/cloud/task.py +191 -0
  399. gcore/types/cloud/task_acknowledge_all_params.py +16 -0
  400. gcore/types/cloud/task_id_list.py +12 -0
  401. gcore/types/cloud/task_list_params.py +104 -0
  402. gcore/types/cloud/users/__init__.py +9 -0
  403. gcore/types/cloud/users/role_assignment.py +33 -0
  404. gcore/types/cloud/users/role_assignment_create_params.py +22 -0
  405. gcore/types/cloud/users/role_assignment_list_params.py +25 -0
  406. gcore/types/cloud/users/role_assignment_update_delete.py +10 -0
  407. gcore/types/cloud/users/role_assignment_update_params.py +22 -0
  408. gcore/types/cloud/volume.py +141 -0
  409. gcore/types/cloud/volume_attach_to_instance_params.py +21 -0
  410. gcore/types/cloud/volume_change_type_params.py +18 -0
  411. gcore/types/cloud/volume_create_params.py +176 -0
  412. gcore/types/cloud/volume_delete_params.py +18 -0
  413. gcore/types/cloud/volume_detach_from_instance_params.py +18 -0
  414. gcore/types/cloud/volume_list_params.py +56 -0
  415. gcore/types/cloud/volume_resize_params.py +18 -0
  416. gcore/types/cloud/volume_update_params.py +18 -0
  417. gcore-0.1.0a1.dist-info/METADATA +485 -0
  418. gcore-0.1.0a1.dist-info/RECORD +420 -0
  419. gcore-0.1.0a1.dist-info/WHEEL +4 -0
  420. gcore-0.1.0a1.dist-info/licenses/LICENSE +201 -0
@@ -0,0 +1,774 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from .tasks import (
6
+ TasksResource,
7
+ AsyncTasksResource,
8
+ TasksResourceWithRawResponse,
9
+ AsyncTasksResourceWithRawResponse,
10
+ TasksResourceWithStreamingResponse,
11
+ AsyncTasksResourceWithStreamingResponse,
12
+ )
13
+ from .regions import (
14
+ RegionsResource,
15
+ AsyncRegionsResource,
16
+ RegionsResourceWithRawResponse,
17
+ AsyncRegionsResourceWithRawResponse,
18
+ RegionsResourceWithStreamingResponse,
19
+ AsyncRegionsResourceWithStreamingResponse,
20
+ )
21
+ from .secrets import (
22
+ SecretsResource,
23
+ AsyncSecretsResource,
24
+ SecretsResourceWithRawResponse,
25
+ AsyncSecretsResourceWithRawResponse,
26
+ SecretsResourceWithStreamingResponse,
27
+ AsyncSecretsResourceWithStreamingResponse,
28
+ )
29
+ from .volumes import (
30
+ VolumesResource,
31
+ AsyncVolumesResource,
32
+ VolumesResourceWithRawResponse,
33
+ AsyncVolumesResourceWithRawResponse,
34
+ VolumesResourceWithStreamingResponse,
35
+ AsyncVolumesResourceWithStreamingResponse,
36
+ )
37
+ from .projects import (
38
+ ProjectsResource,
39
+ AsyncProjectsResource,
40
+ ProjectsResourceWithRawResponse,
41
+ AsyncProjectsResourceWithRawResponse,
42
+ ProjectsResourceWithStreamingResponse,
43
+ AsyncProjectsResourceWithStreamingResponse,
44
+ )
45
+ from .ssh_keys import (
46
+ SSHKeysResource,
47
+ AsyncSSHKeysResource,
48
+ SSHKeysResourceWithRawResponse,
49
+ AsyncSSHKeysResourceWithRawResponse,
50
+ SSHKeysResourceWithStreamingResponse,
51
+ AsyncSSHKeysResourceWithStreamingResponse,
52
+ )
53
+ from ..._compat import cached_property
54
+ from .ip_ranges import (
55
+ IPRangesResource,
56
+ AsyncIPRangesResource,
57
+ IPRangesResourceWithRawResponse,
58
+ AsyncIPRangesResourceWithRawResponse,
59
+ IPRangesResourceWithStreamingResponse,
60
+ AsyncIPRangesResourceWithStreamingResponse,
61
+ )
62
+ from ..._resource import SyncAPIResource, AsyncAPIResource
63
+ from .users.users import (
64
+ UsersResource,
65
+ AsyncUsersResource,
66
+ UsersResourceWithRawResponse,
67
+ AsyncUsersResourceWithRawResponse,
68
+ UsersResourceWithStreamingResponse,
69
+ AsyncUsersResourceWithStreamingResponse,
70
+ )
71
+ from .floating_ips import (
72
+ FloatingIPsResource,
73
+ AsyncFloatingIPsResource,
74
+ FloatingIPsResourceWithRawResponse,
75
+ AsyncFloatingIPsResourceWithRawResponse,
76
+ FloatingIPsResourceWithStreamingResponse,
77
+ AsyncFloatingIPsResourceWithStreamingResponse,
78
+ )
79
+ from .quotas.quotas import (
80
+ QuotasResource,
81
+ AsyncQuotasResource,
82
+ QuotasResourceWithRawResponse,
83
+ AsyncQuotasResourceWithRawResponse,
84
+ QuotasResourceWithStreamingResponse,
85
+ AsyncQuotasResourceWithStreamingResponse,
86
+ )
87
+ from .placement_groups import (
88
+ PlacementGroupsResource,
89
+ AsyncPlacementGroupsResource,
90
+ PlacementGroupsResourceWithRawResponse,
91
+ AsyncPlacementGroupsResourceWithRawResponse,
92
+ PlacementGroupsResourceWithStreamingResponse,
93
+ AsyncPlacementGroupsResourceWithStreamingResponse,
94
+ )
95
+ from .networks.networks import (
96
+ NetworksResource,
97
+ AsyncNetworksResource,
98
+ NetworksResourceWithRawResponse,
99
+ AsyncNetworksResourceWithRawResponse,
100
+ NetworksResourceWithStreamingResponse,
101
+ AsyncNetworksResourceWithStreamingResponse,
102
+ )
103
+ from .baremetal.baremetal import (
104
+ BaremetalResource,
105
+ AsyncBaremetalResource,
106
+ BaremetalResourceWithRawResponse,
107
+ AsyncBaremetalResourceWithRawResponse,
108
+ BaremetalResourceWithStreamingResponse,
109
+ AsyncBaremetalResourceWithStreamingResponse,
110
+ )
111
+ from .inference.inference import (
112
+ InferenceResource,
113
+ AsyncInferenceResource,
114
+ InferenceResourceWithRawResponse,
115
+ AsyncInferenceResourceWithRawResponse,
116
+ InferenceResourceWithStreamingResponse,
117
+ AsyncInferenceResourceWithStreamingResponse,
118
+ )
119
+ from .instances.instances import (
120
+ InstancesResource,
121
+ AsyncInstancesResource,
122
+ InstancesResourceWithRawResponse,
123
+ AsyncInstancesResourceWithRawResponse,
124
+ InstancesResourceWithStreamingResponse,
125
+ AsyncInstancesResourceWithStreamingResponse,
126
+ )
127
+ from .billing_reservations import (
128
+ BillingReservationsResource,
129
+ AsyncBillingReservationsResource,
130
+ BillingReservationsResourceWithRawResponse,
131
+ AsyncBillingReservationsResourceWithRawResponse,
132
+ BillingReservationsResourceWithStreamingResponse,
133
+ AsyncBillingReservationsResourceWithStreamingResponse,
134
+ )
135
+ from .registries.registries import (
136
+ RegistriesResource,
137
+ AsyncRegistriesResource,
138
+ RegistriesResourceWithRawResponse,
139
+ AsyncRegistriesResourceWithRawResponse,
140
+ RegistriesResourceWithStreamingResponse,
141
+ AsyncRegistriesResourceWithStreamingResponse,
142
+ )
143
+ from .file_shares.file_shares import (
144
+ FileSharesResource,
145
+ AsyncFileSharesResource,
146
+ FileSharesResourceWithRawResponse,
147
+ AsyncFileSharesResourceWithRawResponse,
148
+ FileSharesResourceWithStreamingResponse,
149
+ AsyncFileSharesResourceWithStreamingResponse,
150
+ )
151
+ from .load_balancers.load_balancers import (
152
+ LoadBalancersResource,
153
+ AsyncLoadBalancersResource,
154
+ LoadBalancersResourceWithRawResponse,
155
+ AsyncLoadBalancersResourceWithRawResponse,
156
+ LoadBalancersResourceWithStreamingResponse,
157
+ AsyncLoadBalancersResourceWithStreamingResponse,
158
+ )
159
+ from .security_groups.security_groups import (
160
+ SecurityGroupsResource,
161
+ AsyncSecurityGroupsResource,
162
+ SecurityGroupsResourceWithRawResponse,
163
+ AsyncSecurityGroupsResourceWithRawResponse,
164
+ SecurityGroupsResourceWithStreamingResponse,
165
+ AsyncSecurityGroupsResourceWithStreamingResponse,
166
+ )
167
+ from .reserved_fixed_ips.reserved_fixed_ips import (
168
+ ReservedFixedIPsResource,
169
+ AsyncReservedFixedIPsResource,
170
+ ReservedFixedIPsResourceWithRawResponse,
171
+ AsyncReservedFixedIPsResourceWithRawResponse,
172
+ ReservedFixedIPsResourceWithStreamingResponse,
173
+ AsyncReservedFixedIPsResourceWithStreamingResponse,
174
+ )
175
+ from .gpu_baremetal_clusters.gpu_baremetal_clusters import (
176
+ GPUBaremetalClustersResource,
177
+ AsyncGPUBaremetalClustersResource,
178
+ GPUBaremetalClustersResourceWithRawResponse,
179
+ AsyncGPUBaremetalClustersResourceWithRawResponse,
180
+ GPUBaremetalClustersResourceWithStreamingResponse,
181
+ AsyncGPUBaremetalClustersResourceWithStreamingResponse,
182
+ )
183
+
184
+ __all__ = ["CloudResource", "AsyncCloudResource"]
185
+
186
+
187
+ class CloudResource(SyncAPIResource):
188
+ @cached_property
189
+ def projects(self) -> ProjectsResource:
190
+ return ProjectsResource(self._client)
191
+
192
+ @cached_property
193
+ def tasks(self) -> TasksResource:
194
+ return TasksResource(self._client)
195
+
196
+ @cached_property
197
+ def regions(self) -> RegionsResource:
198
+ return RegionsResource(self._client)
199
+
200
+ @cached_property
201
+ def quotas(self) -> QuotasResource:
202
+ return QuotasResource(self._client)
203
+
204
+ @cached_property
205
+ def secrets(self) -> SecretsResource:
206
+ return SecretsResource(self._client)
207
+
208
+ @cached_property
209
+ def ssh_keys(self) -> SSHKeysResource:
210
+ return SSHKeysResource(self._client)
211
+
212
+ @cached_property
213
+ def ip_ranges(self) -> IPRangesResource:
214
+ return IPRangesResource(self._client)
215
+
216
+ @cached_property
217
+ def load_balancers(self) -> LoadBalancersResource:
218
+ return LoadBalancersResource(self._client)
219
+
220
+ @cached_property
221
+ def reserved_fixed_ips(self) -> ReservedFixedIPsResource:
222
+ return ReservedFixedIPsResource(self._client)
223
+
224
+ @cached_property
225
+ def networks(self) -> NetworksResource:
226
+ return NetworksResource(self._client)
227
+
228
+ @cached_property
229
+ def volumes(self) -> VolumesResource:
230
+ return VolumesResource(self._client)
231
+
232
+ @cached_property
233
+ def floating_ips(self) -> FloatingIPsResource:
234
+ return FloatingIPsResource(self._client)
235
+
236
+ @cached_property
237
+ def security_groups(self) -> SecurityGroupsResource:
238
+ return SecurityGroupsResource(self._client)
239
+
240
+ @cached_property
241
+ def users(self) -> UsersResource:
242
+ return UsersResource(self._client)
243
+
244
+ @cached_property
245
+ def inference(self) -> InferenceResource:
246
+ return InferenceResource(self._client)
247
+
248
+ @cached_property
249
+ def placement_groups(self) -> PlacementGroupsResource:
250
+ return PlacementGroupsResource(self._client)
251
+
252
+ @cached_property
253
+ def baremetal(self) -> BaremetalResource:
254
+ return BaremetalResource(self._client)
255
+
256
+ @cached_property
257
+ def registries(self) -> RegistriesResource:
258
+ return RegistriesResource(self._client)
259
+
260
+ @cached_property
261
+ def file_shares(self) -> FileSharesResource:
262
+ return FileSharesResource(self._client)
263
+
264
+ @cached_property
265
+ def billing_reservations(self) -> BillingReservationsResource:
266
+ return BillingReservationsResource(self._client)
267
+
268
+ @cached_property
269
+ def gpu_baremetal_clusters(self) -> GPUBaremetalClustersResource:
270
+ return GPUBaremetalClustersResource(self._client)
271
+
272
+ @cached_property
273
+ def instances(self) -> InstancesResource:
274
+ return InstancesResource(self._client)
275
+
276
+ @cached_property
277
+ def with_raw_response(self) -> CloudResourceWithRawResponse:
278
+ """
279
+ This property can be used as a prefix for any HTTP method call to return
280
+ the raw response object instead of the parsed content.
281
+
282
+ For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
283
+ """
284
+ return CloudResourceWithRawResponse(self)
285
+
286
+ @cached_property
287
+ def with_streaming_response(self) -> CloudResourceWithStreamingResponse:
288
+ """
289
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
290
+
291
+ For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
292
+ """
293
+ return CloudResourceWithStreamingResponse(self)
294
+
295
+
296
+ class AsyncCloudResource(AsyncAPIResource):
297
+ @cached_property
298
+ def projects(self) -> AsyncProjectsResource:
299
+ return AsyncProjectsResource(self._client)
300
+
301
+ @cached_property
302
+ def tasks(self) -> AsyncTasksResource:
303
+ return AsyncTasksResource(self._client)
304
+
305
+ @cached_property
306
+ def regions(self) -> AsyncRegionsResource:
307
+ return AsyncRegionsResource(self._client)
308
+
309
+ @cached_property
310
+ def quotas(self) -> AsyncQuotasResource:
311
+ return AsyncQuotasResource(self._client)
312
+
313
+ @cached_property
314
+ def secrets(self) -> AsyncSecretsResource:
315
+ return AsyncSecretsResource(self._client)
316
+
317
+ @cached_property
318
+ def ssh_keys(self) -> AsyncSSHKeysResource:
319
+ return AsyncSSHKeysResource(self._client)
320
+
321
+ @cached_property
322
+ def ip_ranges(self) -> AsyncIPRangesResource:
323
+ return AsyncIPRangesResource(self._client)
324
+
325
+ @cached_property
326
+ def load_balancers(self) -> AsyncLoadBalancersResource:
327
+ return AsyncLoadBalancersResource(self._client)
328
+
329
+ @cached_property
330
+ def reserved_fixed_ips(self) -> AsyncReservedFixedIPsResource:
331
+ return AsyncReservedFixedIPsResource(self._client)
332
+
333
+ @cached_property
334
+ def networks(self) -> AsyncNetworksResource:
335
+ return AsyncNetworksResource(self._client)
336
+
337
+ @cached_property
338
+ def volumes(self) -> AsyncVolumesResource:
339
+ return AsyncVolumesResource(self._client)
340
+
341
+ @cached_property
342
+ def floating_ips(self) -> AsyncFloatingIPsResource:
343
+ return AsyncFloatingIPsResource(self._client)
344
+
345
+ @cached_property
346
+ def security_groups(self) -> AsyncSecurityGroupsResource:
347
+ return AsyncSecurityGroupsResource(self._client)
348
+
349
+ @cached_property
350
+ def users(self) -> AsyncUsersResource:
351
+ return AsyncUsersResource(self._client)
352
+
353
+ @cached_property
354
+ def inference(self) -> AsyncInferenceResource:
355
+ return AsyncInferenceResource(self._client)
356
+
357
+ @cached_property
358
+ def placement_groups(self) -> AsyncPlacementGroupsResource:
359
+ return AsyncPlacementGroupsResource(self._client)
360
+
361
+ @cached_property
362
+ def baremetal(self) -> AsyncBaremetalResource:
363
+ return AsyncBaremetalResource(self._client)
364
+
365
+ @cached_property
366
+ def registries(self) -> AsyncRegistriesResource:
367
+ return AsyncRegistriesResource(self._client)
368
+
369
+ @cached_property
370
+ def file_shares(self) -> AsyncFileSharesResource:
371
+ return AsyncFileSharesResource(self._client)
372
+
373
+ @cached_property
374
+ def billing_reservations(self) -> AsyncBillingReservationsResource:
375
+ return AsyncBillingReservationsResource(self._client)
376
+
377
+ @cached_property
378
+ def gpu_baremetal_clusters(self) -> AsyncGPUBaremetalClustersResource:
379
+ return AsyncGPUBaremetalClustersResource(self._client)
380
+
381
+ @cached_property
382
+ def instances(self) -> AsyncInstancesResource:
383
+ return AsyncInstancesResource(self._client)
384
+
385
+ @cached_property
386
+ def with_raw_response(self) -> AsyncCloudResourceWithRawResponse:
387
+ """
388
+ This property can be used as a prefix for any HTTP method call to return
389
+ the raw response object instead of the parsed content.
390
+
391
+ For more information, see https://www.github.com/G-Core/gcore-python#accessing-raw-response-data-eg-headers
392
+ """
393
+ return AsyncCloudResourceWithRawResponse(self)
394
+
395
+ @cached_property
396
+ def with_streaming_response(self) -> AsyncCloudResourceWithStreamingResponse:
397
+ """
398
+ An alternative to `.with_raw_response` that doesn't eagerly read the response body.
399
+
400
+ For more information, see https://www.github.com/G-Core/gcore-python#with_streaming_response
401
+ """
402
+ return AsyncCloudResourceWithStreamingResponse(self)
403
+
404
+
405
+ class CloudResourceWithRawResponse:
406
+ def __init__(self, cloud: CloudResource) -> None:
407
+ self._cloud = cloud
408
+
409
+ @cached_property
410
+ def projects(self) -> ProjectsResourceWithRawResponse:
411
+ return ProjectsResourceWithRawResponse(self._cloud.projects)
412
+
413
+ @cached_property
414
+ def tasks(self) -> TasksResourceWithRawResponse:
415
+ return TasksResourceWithRawResponse(self._cloud.tasks)
416
+
417
+ @cached_property
418
+ def regions(self) -> RegionsResourceWithRawResponse:
419
+ return RegionsResourceWithRawResponse(self._cloud.regions)
420
+
421
+ @cached_property
422
+ def quotas(self) -> QuotasResourceWithRawResponse:
423
+ return QuotasResourceWithRawResponse(self._cloud.quotas)
424
+
425
+ @cached_property
426
+ def secrets(self) -> SecretsResourceWithRawResponse:
427
+ return SecretsResourceWithRawResponse(self._cloud.secrets)
428
+
429
+ @cached_property
430
+ def ssh_keys(self) -> SSHKeysResourceWithRawResponse:
431
+ return SSHKeysResourceWithRawResponse(self._cloud.ssh_keys)
432
+
433
+ @cached_property
434
+ def ip_ranges(self) -> IPRangesResourceWithRawResponse:
435
+ return IPRangesResourceWithRawResponse(self._cloud.ip_ranges)
436
+
437
+ @cached_property
438
+ def load_balancers(self) -> LoadBalancersResourceWithRawResponse:
439
+ return LoadBalancersResourceWithRawResponse(self._cloud.load_balancers)
440
+
441
+ @cached_property
442
+ def reserved_fixed_ips(self) -> ReservedFixedIPsResourceWithRawResponse:
443
+ return ReservedFixedIPsResourceWithRawResponse(self._cloud.reserved_fixed_ips)
444
+
445
+ @cached_property
446
+ def networks(self) -> NetworksResourceWithRawResponse:
447
+ return NetworksResourceWithRawResponse(self._cloud.networks)
448
+
449
+ @cached_property
450
+ def volumes(self) -> VolumesResourceWithRawResponse:
451
+ return VolumesResourceWithRawResponse(self._cloud.volumes)
452
+
453
+ @cached_property
454
+ def floating_ips(self) -> FloatingIPsResourceWithRawResponse:
455
+ return FloatingIPsResourceWithRawResponse(self._cloud.floating_ips)
456
+
457
+ @cached_property
458
+ def security_groups(self) -> SecurityGroupsResourceWithRawResponse:
459
+ return SecurityGroupsResourceWithRawResponse(self._cloud.security_groups)
460
+
461
+ @cached_property
462
+ def users(self) -> UsersResourceWithRawResponse:
463
+ return UsersResourceWithRawResponse(self._cloud.users)
464
+
465
+ @cached_property
466
+ def inference(self) -> InferenceResourceWithRawResponse:
467
+ return InferenceResourceWithRawResponse(self._cloud.inference)
468
+
469
+ @cached_property
470
+ def placement_groups(self) -> PlacementGroupsResourceWithRawResponse:
471
+ return PlacementGroupsResourceWithRawResponse(self._cloud.placement_groups)
472
+
473
+ @cached_property
474
+ def baremetal(self) -> BaremetalResourceWithRawResponse:
475
+ return BaremetalResourceWithRawResponse(self._cloud.baremetal)
476
+
477
+ @cached_property
478
+ def registries(self) -> RegistriesResourceWithRawResponse:
479
+ return RegistriesResourceWithRawResponse(self._cloud.registries)
480
+
481
+ @cached_property
482
+ def file_shares(self) -> FileSharesResourceWithRawResponse:
483
+ return FileSharesResourceWithRawResponse(self._cloud.file_shares)
484
+
485
+ @cached_property
486
+ def billing_reservations(self) -> BillingReservationsResourceWithRawResponse:
487
+ return BillingReservationsResourceWithRawResponse(self._cloud.billing_reservations)
488
+
489
+ @cached_property
490
+ def gpu_baremetal_clusters(self) -> GPUBaremetalClustersResourceWithRawResponse:
491
+ return GPUBaremetalClustersResourceWithRawResponse(self._cloud.gpu_baremetal_clusters)
492
+
493
+ @cached_property
494
+ def instances(self) -> InstancesResourceWithRawResponse:
495
+ return InstancesResourceWithRawResponse(self._cloud.instances)
496
+
497
+
498
+ class AsyncCloudResourceWithRawResponse:
499
+ def __init__(self, cloud: AsyncCloudResource) -> None:
500
+ self._cloud = cloud
501
+
502
+ @cached_property
503
+ def projects(self) -> AsyncProjectsResourceWithRawResponse:
504
+ return AsyncProjectsResourceWithRawResponse(self._cloud.projects)
505
+
506
+ @cached_property
507
+ def tasks(self) -> AsyncTasksResourceWithRawResponse:
508
+ return AsyncTasksResourceWithRawResponse(self._cloud.tasks)
509
+
510
+ @cached_property
511
+ def regions(self) -> AsyncRegionsResourceWithRawResponse:
512
+ return AsyncRegionsResourceWithRawResponse(self._cloud.regions)
513
+
514
+ @cached_property
515
+ def quotas(self) -> AsyncQuotasResourceWithRawResponse:
516
+ return AsyncQuotasResourceWithRawResponse(self._cloud.quotas)
517
+
518
+ @cached_property
519
+ def secrets(self) -> AsyncSecretsResourceWithRawResponse:
520
+ return AsyncSecretsResourceWithRawResponse(self._cloud.secrets)
521
+
522
+ @cached_property
523
+ def ssh_keys(self) -> AsyncSSHKeysResourceWithRawResponse:
524
+ return AsyncSSHKeysResourceWithRawResponse(self._cloud.ssh_keys)
525
+
526
+ @cached_property
527
+ def ip_ranges(self) -> AsyncIPRangesResourceWithRawResponse:
528
+ return AsyncIPRangesResourceWithRawResponse(self._cloud.ip_ranges)
529
+
530
+ @cached_property
531
+ def load_balancers(self) -> AsyncLoadBalancersResourceWithRawResponse:
532
+ return AsyncLoadBalancersResourceWithRawResponse(self._cloud.load_balancers)
533
+
534
+ @cached_property
535
+ def reserved_fixed_ips(self) -> AsyncReservedFixedIPsResourceWithRawResponse:
536
+ return AsyncReservedFixedIPsResourceWithRawResponse(self._cloud.reserved_fixed_ips)
537
+
538
+ @cached_property
539
+ def networks(self) -> AsyncNetworksResourceWithRawResponse:
540
+ return AsyncNetworksResourceWithRawResponse(self._cloud.networks)
541
+
542
+ @cached_property
543
+ def volumes(self) -> AsyncVolumesResourceWithRawResponse:
544
+ return AsyncVolumesResourceWithRawResponse(self._cloud.volumes)
545
+
546
+ @cached_property
547
+ def floating_ips(self) -> AsyncFloatingIPsResourceWithRawResponse:
548
+ return AsyncFloatingIPsResourceWithRawResponse(self._cloud.floating_ips)
549
+
550
+ @cached_property
551
+ def security_groups(self) -> AsyncSecurityGroupsResourceWithRawResponse:
552
+ return AsyncSecurityGroupsResourceWithRawResponse(self._cloud.security_groups)
553
+
554
+ @cached_property
555
+ def users(self) -> AsyncUsersResourceWithRawResponse:
556
+ return AsyncUsersResourceWithRawResponse(self._cloud.users)
557
+
558
+ @cached_property
559
+ def inference(self) -> AsyncInferenceResourceWithRawResponse:
560
+ return AsyncInferenceResourceWithRawResponse(self._cloud.inference)
561
+
562
+ @cached_property
563
+ def placement_groups(self) -> AsyncPlacementGroupsResourceWithRawResponse:
564
+ return AsyncPlacementGroupsResourceWithRawResponse(self._cloud.placement_groups)
565
+
566
+ @cached_property
567
+ def baremetal(self) -> AsyncBaremetalResourceWithRawResponse:
568
+ return AsyncBaremetalResourceWithRawResponse(self._cloud.baremetal)
569
+
570
+ @cached_property
571
+ def registries(self) -> AsyncRegistriesResourceWithRawResponse:
572
+ return AsyncRegistriesResourceWithRawResponse(self._cloud.registries)
573
+
574
+ @cached_property
575
+ def file_shares(self) -> AsyncFileSharesResourceWithRawResponse:
576
+ return AsyncFileSharesResourceWithRawResponse(self._cloud.file_shares)
577
+
578
+ @cached_property
579
+ def billing_reservations(self) -> AsyncBillingReservationsResourceWithRawResponse:
580
+ return AsyncBillingReservationsResourceWithRawResponse(self._cloud.billing_reservations)
581
+
582
+ @cached_property
583
+ def gpu_baremetal_clusters(self) -> AsyncGPUBaremetalClustersResourceWithRawResponse:
584
+ return AsyncGPUBaremetalClustersResourceWithRawResponse(self._cloud.gpu_baremetal_clusters)
585
+
586
+ @cached_property
587
+ def instances(self) -> AsyncInstancesResourceWithRawResponse:
588
+ return AsyncInstancesResourceWithRawResponse(self._cloud.instances)
589
+
590
+
591
+ class CloudResourceWithStreamingResponse:
592
+ def __init__(self, cloud: CloudResource) -> None:
593
+ self._cloud = cloud
594
+
595
+ @cached_property
596
+ def projects(self) -> ProjectsResourceWithStreamingResponse:
597
+ return ProjectsResourceWithStreamingResponse(self._cloud.projects)
598
+
599
+ @cached_property
600
+ def tasks(self) -> TasksResourceWithStreamingResponse:
601
+ return TasksResourceWithStreamingResponse(self._cloud.tasks)
602
+
603
+ @cached_property
604
+ def regions(self) -> RegionsResourceWithStreamingResponse:
605
+ return RegionsResourceWithStreamingResponse(self._cloud.regions)
606
+
607
+ @cached_property
608
+ def quotas(self) -> QuotasResourceWithStreamingResponse:
609
+ return QuotasResourceWithStreamingResponse(self._cloud.quotas)
610
+
611
+ @cached_property
612
+ def secrets(self) -> SecretsResourceWithStreamingResponse:
613
+ return SecretsResourceWithStreamingResponse(self._cloud.secrets)
614
+
615
+ @cached_property
616
+ def ssh_keys(self) -> SSHKeysResourceWithStreamingResponse:
617
+ return SSHKeysResourceWithStreamingResponse(self._cloud.ssh_keys)
618
+
619
+ @cached_property
620
+ def ip_ranges(self) -> IPRangesResourceWithStreamingResponse:
621
+ return IPRangesResourceWithStreamingResponse(self._cloud.ip_ranges)
622
+
623
+ @cached_property
624
+ def load_balancers(self) -> LoadBalancersResourceWithStreamingResponse:
625
+ return LoadBalancersResourceWithStreamingResponse(self._cloud.load_balancers)
626
+
627
+ @cached_property
628
+ def reserved_fixed_ips(self) -> ReservedFixedIPsResourceWithStreamingResponse:
629
+ return ReservedFixedIPsResourceWithStreamingResponse(self._cloud.reserved_fixed_ips)
630
+
631
+ @cached_property
632
+ def networks(self) -> NetworksResourceWithStreamingResponse:
633
+ return NetworksResourceWithStreamingResponse(self._cloud.networks)
634
+
635
+ @cached_property
636
+ def volumes(self) -> VolumesResourceWithStreamingResponse:
637
+ return VolumesResourceWithStreamingResponse(self._cloud.volumes)
638
+
639
+ @cached_property
640
+ def floating_ips(self) -> FloatingIPsResourceWithStreamingResponse:
641
+ return FloatingIPsResourceWithStreamingResponse(self._cloud.floating_ips)
642
+
643
+ @cached_property
644
+ def security_groups(self) -> SecurityGroupsResourceWithStreamingResponse:
645
+ return SecurityGroupsResourceWithStreamingResponse(self._cloud.security_groups)
646
+
647
+ @cached_property
648
+ def users(self) -> UsersResourceWithStreamingResponse:
649
+ return UsersResourceWithStreamingResponse(self._cloud.users)
650
+
651
+ @cached_property
652
+ def inference(self) -> InferenceResourceWithStreamingResponse:
653
+ return InferenceResourceWithStreamingResponse(self._cloud.inference)
654
+
655
+ @cached_property
656
+ def placement_groups(self) -> PlacementGroupsResourceWithStreamingResponse:
657
+ return PlacementGroupsResourceWithStreamingResponse(self._cloud.placement_groups)
658
+
659
+ @cached_property
660
+ def baremetal(self) -> BaremetalResourceWithStreamingResponse:
661
+ return BaremetalResourceWithStreamingResponse(self._cloud.baremetal)
662
+
663
+ @cached_property
664
+ def registries(self) -> RegistriesResourceWithStreamingResponse:
665
+ return RegistriesResourceWithStreamingResponse(self._cloud.registries)
666
+
667
+ @cached_property
668
+ def file_shares(self) -> FileSharesResourceWithStreamingResponse:
669
+ return FileSharesResourceWithStreamingResponse(self._cloud.file_shares)
670
+
671
+ @cached_property
672
+ def billing_reservations(self) -> BillingReservationsResourceWithStreamingResponse:
673
+ return BillingReservationsResourceWithStreamingResponse(self._cloud.billing_reservations)
674
+
675
+ @cached_property
676
+ def gpu_baremetal_clusters(self) -> GPUBaremetalClustersResourceWithStreamingResponse:
677
+ return GPUBaremetalClustersResourceWithStreamingResponse(self._cloud.gpu_baremetal_clusters)
678
+
679
+ @cached_property
680
+ def instances(self) -> InstancesResourceWithStreamingResponse:
681
+ return InstancesResourceWithStreamingResponse(self._cloud.instances)
682
+
683
+
684
+ class AsyncCloudResourceWithStreamingResponse:
685
+ def __init__(self, cloud: AsyncCloudResource) -> None:
686
+ self._cloud = cloud
687
+
688
+ @cached_property
689
+ def projects(self) -> AsyncProjectsResourceWithStreamingResponse:
690
+ return AsyncProjectsResourceWithStreamingResponse(self._cloud.projects)
691
+
692
+ @cached_property
693
+ def tasks(self) -> AsyncTasksResourceWithStreamingResponse:
694
+ return AsyncTasksResourceWithStreamingResponse(self._cloud.tasks)
695
+
696
+ @cached_property
697
+ def regions(self) -> AsyncRegionsResourceWithStreamingResponse:
698
+ return AsyncRegionsResourceWithStreamingResponse(self._cloud.regions)
699
+
700
+ @cached_property
701
+ def quotas(self) -> AsyncQuotasResourceWithStreamingResponse:
702
+ return AsyncQuotasResourceWithStreamingResponse(self._cloud.quotas)
703
+
704
+ @cached_property
705
+ def secrets(self) -> AsyncSecretsResourceWithStreamingResponse:
706
+ return AsyncSecretsResourceWithStreamingResponse(self._cloud.secrets)
707
+
708
+ @cached_property
709
+ def ssh_keys(self) -> AsyncSSHKeysResourceWithStreamingResponse:
710
+ return AsyncSSHKeysResourceWithStreamingResponse(self._cloud.ssh_keys)
711
+
712
+ @cached_property
713
+ def ip_ranges(self) -> AsyncIPRangesResourceWithStreamingResponse:
714
+ return AsyncIPRangesResourceWithStreamingResponse(self._cloud.ip_ranges)
715
+
716
+ @cached_property
717
+ def load_balancers(self) -> AsyncLoadBalancersResourceWithStreamingResponse:
718
+ return AsyncLoadBalancersResourceWithStreamingResponse(self._cloud.load_balancers)
719
+
720
+ @cached_property
721
+ def reserved_fixed_ips(self) -> AsyncReservedFixedIPsResourceWithStreamingResponse:
722
+ return AsyncReservedFixedIPsResourceWithStreamingResponse(self._cloud.reserved_fixed_ips)
723
+
724
+ @cached_property
725
+ def networks(self) -> AsyncNetworksResourceWithStreamingResponse:
726
+ return AsyncNetworksResourceWithStreamingResponse(self._cloud.networks)
727
+
728
+ @cached_property
729
+ def volumes(self) -> AsyncVolumesResourceWithStreamingResponse:
730
+ return AsyncVolumesResourceWithStreamingResponse(self._cloud.volumes)
731
+
732
+ @cached_property
733
+ def floating_ips(self) -> AsyncFloatingIPsResourceWithStreamingResponse:
734
+ return AsyncFloatingIPsResourceWithStreamingResponse(self._cloud.floating_ips)
735
+
736
+ @cached_property
737
+ def security_groups(self) -> AsyncSecurityGroupsResourceWithStreamingResponse:
738
+ return AsyncSecurityGroupsResourceWithStreamingResponse(self._cloud.security_groups)
739
+
740
+ @cached_property
741
+ def users(self) -> AsyncUsersResourceWithStreamingResponse:
742
+ return AsyncUsersResourceWithStreamingResponse(self._cloud.users)
743
+
744
+ @cached_property
745
+ def inference(self) -> AsyncInferenceResourceWithStreamingResponse:
746
+ return AsyncInferenceResourceWithStreamingResponse(self._cloud.inference)
747
+
748
+ @cached_property
749
+ def placement_groups(self) -> AsyncPlacementGroupsResourceWithStreamingResponse:
750
+ return AsyncPlacementGroupsResourceWithStreamingResponse(self._cloud.placement_groups)
751
+
752
+ @cached_property
753
+ def baremetal(self) -> AsyncBaremetalResourceWithStreamingResponse:
754
+ return AsyncBaremetalResourceWithStreamingResponse(self._cloud.baremetal)
755
+
756
+ @cached_property
757
+ def registries(self) -> AsyncRegistriesResourceWithStreamingResponse:
758
+ return AsyncRegistriesResourceWithStreamingResponse(self._cloud.registries)
759
+
760
+ @cached_property
761
+ def file_shares(self) -> AsyncFileSharesResourceWithStreamingResponse:
762
+ return AsyncFileSharesResourceWithStreamingResponse(self._cloud.file_shares)
763
+
764
+ @cached_property
765
+ def billing_reservations(self) -> AsyncBillingReservationsResourceWithStreamingResponse:
766
+ return AsyncBillingReservationsResourceWithStreamingResponse(self._cloud.billing_reservations)
767
+
768
+ @cached_property
769
+ def gpu_baremetal_clusters(self) -> AsyncGPUBaremetalClustersResourceWithStreamingResponse:
770
+ return AsyncGPUBaremetalClustersResourceWithStreamingResponse(self._cloud.gpu_baremetal_clusters)
771
+
772
+ @cached_property
773
+ def instances(self) -> AsyncInstancesResourceWithStreamingResponse:
774
+ return AsyncInstancesResourceWithStreamingResponse(self._cloud.instances)