gcore 0.2.0__py3-none-any.whl → 0.4.0__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 (315) hide show
  1. gcore/__init__.py +2 -1
  2. gcore/_base_client.py +44 -2
  3. gcore/_client.py +9 -0
  4. gcore/_models.py +2 -0
  5. gcore/_types.py +2 -0
  6. gcore/_version.py +1 -1
  7. gcore/pagination.py +61 -1
  8. gcore/resources/__init__.py +14 -0
  9. gcore/resources/cloud/baremetal/flavors.py +11 -137
  10. gcore/resources/cloud/baremetal/images.py +10 -12
  11. gcore/resources/cloud/baremetal/servers.py +75 -78
  12. gcore/resources/cloud/billing_reservations.py +2 -2
  13. gcore/resources/cloud/file_shares/file_shares.py +7 -8
  14. gcore/resources/cloud/floating_ips.py +9 -14
  15. gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +39 -28
  16. gcore/resources/cloud/gpu_baremetal_clusters/images.py +11 -12
  17. gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +2 -2
  18. gcore/resources/cloud/gpu_baremetal_clusters/servers.py +12 -8
  19. gcore/resources/cloud/inference/deployments/deployments.py +16 -8
  20. gcore/resources/cloud/inference/registry_credentials.py +2 -2
  21. gcore/resources/cloud/inference/secrets.py +8 -8
  22. gcore/resources/cloud/instances/flavors.py +9 -233
  23. gcore/resources/cloud/instances/images.py +47 -37
  24. gcore/resources/cloud/instances/instances.py +107 -100
  25. gcore/resources/cloud/instances/interfaces.py +6 -6
  26. gcore/resources/cloud/ip_ranges.py +34 -2
  27. gcore/resources/cloud/load_balancers/flavors.py +2 -2
  28. gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +30 -22
  29. gcore/resources/cloud/load_balancers/listeners.py +31 -22
  30. gcore/resources/cloud/load_balancers/load_balancers.py +99 -43
  31. gcore/resources/cloud/load_balancers/metrics.py +2 -2
  32. gcore/resources/cloud/load_balancers/pools/health_monitors.py +2 -2
  33. gcore/resources/cloud/load_balancers/pools/members.py +12 -8
  34. gcore/resources/cloud/networks/networks.py +83 -19
  35. gcore/resources/cloud/networks/routers.py +18 -18
  36. gcore/resources/cloud/networks/subnets.py +55 -15
  37. gcore/resources/cloud/projects.py +38 -24
  38. gcore/resources/cloud/quotas/quotas.py +6 -6
  39. gcore/resources/cloud/quotas/requests.py +8 -8
  40. gcore/resources/cloud/registries/artifacts.py +4 -4
  41. gcore/resources/cloud/registries/registries.py +14 -20
  42. gcore/resources/cloud/registries/repositories.py +4 -4
  43. gcore/resources/cloud/registries/tags.py +2 -2
  44. gcore/resources/cloud/registries/users.py +25 -32
  45. gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +26 -26
  46. gcore/resources/cloud/reserved_fixed_ips/vip.py +10 -10
  47. gcore/resources/cloud/security_groups/rules.py +6 -6
  48. gcore/resources/cloud/security_groups/security_groups.py +70 -31
  49. gcore/resources/cloud/ssh_keys.py +2 -2
  50. gcore/resources/cloud/tasks.py +102 -94
  51. gcore/resources/cloud/users/role_assignments.py +16 -18
  52. gcore/resources/cloud/volumes.py +155 -65
  53. gcore/resources/iam/__init__.py +47 -0
  54. gcore/resources/iam/api_tokens.py +521 -0
  55. gcore/resources/iam/iam.py +199 -0
  56. gcore/resources/iam/users.py +642 -0
  57. gcore/resources/waap/__init__.py +84 -0
  58. gcore/resources/waap/advanced_rules.py +135 -0
  59. gcore/resources/waap/custom_page_sets.py +805 -0
  60. gcore/resources/waap/domains/__init__.py +140 -0
  61. gcore/resources/waap/domains/advanced_rules.py +876 -0
  62. gcore/resources/waap/domains/analytics/__init__.py +33 -0
  63. gcore/resources/waap/domains/analytics/analytics.py +676 -0
  64. gcore/resources/waap/domains/analytics/requests.py +378 -0
  65. gcore/resources/waap/domains/api_discovery/__init__.py +33 -0
  66. gcore/resources/waap/domains/api_discovery/api_discovery.py +530 -0
  67. gcore/resources/waap/domains/api_discovery/scan_results.py +352 -0
  68. gcore/resources/waap/domains/api_path_groups.py +163 -0
  69. gcore/resources/waap/domains/api_paths.py +771 -0
  70. gcore/resources/waap/domains/custom_rules.py +889 -0
  71. gcore/resources/waap/domains/domains.py +399 -0
  72. gcore/resources/waap/domains/firewall_rules.py +884 -0
  73. gcore/resources/waap/domains/insight_silences.py +689 -0
  74. gcore/resources/waap/domains/insights.py +425 -0
  75. gcore/resources/waap/domains/policies.py +173 -0
  76. gcore/resources/waap/domains/settings.py +5 -5
  77. gcore/resources/waap/ip_info.py +1017 -0
  78. gcore/resources/waap/organizations.py +217 -0
  79. gcore/resources/waap/statistics.py +225 -0
  80. gcore/resources/waap/tags.py +233 -0
  81. gcore/resources/waap/waap.py +257 -0
  82. gcore/types/cloud/allowed_address_pairs.py +2 -2
  83. gcore/types/cloud/baremetal/__init__.py +0 -1
  84. gcore/types/cloud/baremetal/baremetal_server.py +1 -1
  85. gcore/types/cloud/baremetal/image_list_params.py +1 -5
  86. gcore/types/cloud/baremetal/server_create_params.py +13 -17
  87. gcore/types/cloud/baremetal/server_list_params.py +8 -12
  88. gcore/types/cloud/baremetal/server_rebuild_params.py +1 -1
  89. gcore/types/cloud/baremetal_flavor.py +3 -3
  90. gcore/types/cloud/container_probe_config.py +1 -1
  91. gcore/types/cloud/container_probe_config_create_param.py +1 -1
  92. gcore/types/cloud/container_scale_triggers.py +2 -2
  93. gcore/types/cloud/ddos_profile.py +9 -3
  94. gcore/types/cloud/file_share_create_params.py +3 -5
  95. gcore/types/cloud/floating_ip_create_params.py +2 -4
  96. gcore/types/cloud/floating_ip_detailed.py +1 -1
  97. gcore/types/cloud/floating_ip_list_params.py +2 -6
  98. gcore/types/cloud/gpu_baremetal_cluster.py +1 -1
  99. gcore/types/cloud/gpu_baremetal_cluster_create_params.py +4 -5
  100. gcore/types/cloud/gpu_baremetal_cluster_delete_params.py +1 -1
  101. gcore/types/cloud/gpu_baremetal_cluster_rebuild_params.py +1 -1
  102. gcore/types/cloud/gpu_baremetal_cluster_server.py +1 -1
  103. gcore/types/cloud/gpu_baremetal_clusters/image_upload_params.py +3 -5
  104. gcore/types/cloud/gpu_baremetal_clusters/server_attach_interface_params.py +10 -10
  105. gcore/types/cloud/gpu_baremetal_flavor.py +3 -3
  106. gcore/types/cloud/health_monitor.py +6 -1
  107. gcore/types/cloud/image.py +1 -1
  108. gcore/types/cloud/inference/deployment_create_params.py +4 -4
  109. gcore/types/cloud/inference/deployment_update_params.py +6 -6
  110. gcore/types/cloud/inference/inference.py +2 -4
  111. gcore/types/cloud/instance.py +1 -1
  112. gcore/types/cloud/instance_create_params.py +15 -18
  113. gcore/types/cloud/instance_list_params.py +8 -12
  114. gcore/types/cloud/instances/__init__.py +0 -2
  115. gcore/types/cloud/instances/image_create_from_volume_params.py +2 -4
  116. gcore/types/cloud/instances/image_list_params.py +1 -5
  117. gcore/types/cloud/instances/image_upload_params.py +2 -4
  118. gcore/types/cloud/instances/instance_flavor.py +3 -3
  119. gcore/types/cloud/instances/interface_attach_params.py +10 -10
  120. gcore/types/cloud/load_balancer_create_params.py +25 -19
  121. gcore/types/cloud/load_balancer_flavor_detail.py +3 -3
  122. gcore/types/cloud/load_balancer_l7_policy.py +5 -5
  123. gcore/types/cloud/load_balancer_list_params.py +5 -9
  124. gcore/types/cloud/load_balancer_listener_detail.py +4 -4
  125. gcore/types/cloud/load_balancer_update_params.py +24 -0
  126. gcore/types/cloud/load_balancers/l7_policy_create_params.py +5 -5
  127. gcore/types/cloud/load_balancers/l7_policy_replace_params.py +5 -5
  128. gcore/types/cloud/load_balancers/listener_create_params.py +4 -4
  129. gcore/types/cloud/load_balancers/listener_update_params.py +3 -3
  130. gcore/types/cloud/load_balancers/pool_create_params.py +10 -5
  131. gcore/types/cloud/load_balancers/pool_update_params.py +10 -5
  132. gcore/types/cloud/load_balancers/pools/member_add_params.py +9 -4
  133. gcore/types/cloud/member.py +8 -3
  134. gcore/types/cloud/network.py +2 -2
  135. gcore/types/cloud/network_create_params.py +2 -3
  136. gcore/types/cloud/network_details.py +2 -2
  137. gcore/types/cloud/network_list_params.py +5 -6
  138. gcore/types/cloud/network_update_params.py +28 -2
  139. gcore/types/cloud/networks/router_list_params.py +2 -2
  140. gcore/types/cloud/networks/subnet_create_params.py +3 -4
  141. gcore/types/cloud/networks/subnet_list_params.py +2 -6
  142. gcore/types/cloud/networks/subnet_update_params.py +25 -0
  143. gcore/types/cloud/region.py +4 -4
  144. gcore/types/cloud/registries/__init__.py +1 -0
  145. gcore/types/cloud/registries/user_create_multiple_params.py +3 -5
  146. gcore/types/cloud/registries/user_create_params.py +3 -5
  147. gcore/types/cloud/registries/user_refresh_secret_response.py +31 -0
  148. gcore/types/cloud/registry_create_params.py +3 -5
  149. gcore/types/cloud/reserved_fixed_ip_create_params.py +2 -2
  150. gcore/types/cloud/reserved_fixed_ip_list_params.py +3 -3
  151. gcore/types/cloud/security_group_list_params.py +3 -7
  152. gcore/types/cloud/security_group_update_params.py +25 -0
  153. gcore/types/cloud/session_persistence.py +1 -1
  154. gcore/types/cloud/ssh_key_created.py +3 -6
  155. gcore/types/cloud/tag_update_map_param.py +2 -2
  156. gcore/types/cloud/task.py +1 -1
  157. gcore/types/cloud/task_list_params.py +49 -45
  158. gcore/types/cloud/users/role_assignment_create_params.py +1 -1
  159. gcore/types/cloud/users/role_assignment_update_params.py +1 -1
  160. gcore/types/cloud/volume_create_params.py +6 -6
  161. gcore/types/cloud/volume_list_params.py +3 -7
  162. gcore/types/cloud/volume_update_params.py +29 -3
  163. gcore/types/iam/__init__.py +17 -0
  164. gcore/types/iam/account_overview.py +488 -0
  165. gcore/types/iam/api_token.py +78 -0
  166. gcore/types/iam/api_token_create.py +15 -0
  167. gcore/types/iam/api_token_create_params.py +42 -0
  168. gcore/types/iam/api_token_list.py +81 -0
  169. gcore/types/iam/api_token_list_params.py +41 -0
  170. gcore/types/iam/user.py +86 -0
  171. gcore/types/iam/user_detailed.py +104 -0
  172. gcore/types/iam/user_invite.py +15 -0
  173. gcore/types/iam/user_invite_params.py +37 -0
  174. gcore/types/iam/user_list_params.py +15 -0
  175. gcore/types/iam/user_update.py +104 -0
  176. gcore/types/iam/user_update_params.py +52 -0
  177. gcore/types/waap/__init__.py +97 -2
  178. gcore/types/waap/custom_page_set_create_params.py +35 -0
  179. gcore/types/waap/custom_page_set_list_params.py +25 -0
  180. gcore/types/waap/custom_page_set_preview_params.py +34 -0
  181. gcore/types/waap/custom_page_set_update_params.py +35 -0
  182. gcore/types/waap/domain_list_rule_sets_response.py +10 -0
  183. gcore/types/waap/domains/__init__.py +42 -0
  184. gcore/types/waap/domains/advanced_rule_create_params.py +80 -0
  185. gcore/types/waap/domains/advanced_rule_list_params.py +58 -0
  186. gcore/types/waap/domains/advanced_rule_update_params.py +83 -0
  187. gcore/types/waap/domains/analytics/__init__.py +5 -0
  188. gcore/types/waap/domains/analytics/request_list_params.py +53 -0
  189. gcore/types/waap/domains/analytics_get_event_statistics_params.py +34 -0
  190. gcore/types/waap/domains/analytics_list_ddos_attacks_params.py +28 -0
  191. gcore/types/waap/domains/analytics_list_ddos_info_params.py +31 -0
  192. gcore/types/waap/domains/analytics_list_event_traffic_params.py +26 -0
  193. gcore/types/waap/domains/analytics_list_event_traffic_response.py +10 -0
  194. gcore/types/waap/domains/api_discovery/__init__.py +7 -0
  195. gcore/types/waap/domains/api_discovery/scan_result_get_response.py +29 -0
  196. gcore/types/waap/domains/api_discovery/scan_result_list_params.py +41 -0
  197. gcore/types/waap/domains/api_discovery/scan_result_list_response.py +29 -0
  198. gcore/types/waap/domains/api_discovery_get_settings_response.py +36 -0
  199. gcore/types/waap/domains/api_discovery_scan_openapi_response.py +10 -0
  200. gcore/types/waap/domains/api_discovery_update_settings_params.py +34 -0
  201. gcore/types/waap/domains/api_discovery_update_settings_response.py +36 -0
  202. gcore/types/waap/domains/api_discovery_upload_openapi_params.py +19 -0
  203. gcore/types/waap/domains/api_discovery_upload_openapi_response.py +10 -0
  204. gcore/types/waap/domains/api_path_create_params.py +31 -0
  205. gcore/types/waap/domains/api_path_create_response.py +50 -0
  206. gcore/types/waap/domains/api_path_get_response.py +50 -0
  207. gcore/types/waap/domains/api_path_group_list_response.py +12 -0
  208. gcore/types/waap/domains/api_path_list_params.py +62 -0
  209. gcore/types/waap/domains/api_path_list_response.py +50 -0
  210. gcore/types/waap/domains/api_path_update_params.py +29 -0
  211. gcore/types/waap/domains/custom_rule_create_params.py +372 -0
  212. gcore/types/waap/domains/custom_rule_delete_multiple_params.py +13 -0
  213. gcore/types/waap/domains/custom_rule_list_params.py +35 -0
  214. gcore/types/waap/domains/custom_rule_update_params.py +375 -0
  215. gcore/types/waap/domains/firewall_rule_create_params.py +75 -0
  216. gcore/types/waap/domains/firewall_rule_delete_multiple_params.py +13 -0
  217. gcore/types/waap/domains/firewall_rule_list_params.py +33 -0
  218. gcore/types/waap/domains/firewall_rule_update_params.py +78 -0
  219. gcore/types/waap/domains/insight_list_params.py +34 -0
  220. gcore/types/waap/domains/insight_replace_params.py +17 -0
  221. gcore/types/waap/domains/insight_silence_create_params.py +28 -0
  222. gcore/types/waap/domains/insight_silence_list_params.py +33 -0
  223. gcore/types/waap/domains/insight_silence_update_params.py +28 -0
  224. gcore/types/waap/domains/setting_update_params.py +7 -0
  225. gcore/types/waap/ip_info_get_attack_time_series_params.py +12 -0
  226. gcore/types/waap/ip_info_get_attack_time_series_response.py +10 -0
  227. gcore/types/waap/ip_info_get_blocked_requests_params.py +15 -0
  228. gcore/types/waap/ip_info_get_blocked_requests_response.py +10 -0
  229. gcore/types/waap/ip_info_get_counts_params.py +19 -0
  230. gcore/types/waap/ip_info_get_ddos_attack_series_params.py +12 -0
  231. gcore/types/waap/ip_info_get_params.py +12 -0
  232. gcore/types/waap/ip_info_get_top_sessions_params.py +15 -0
  233. gcore/types/waap/ip_info_get_top_sessions_response.py +10 -0
  234. gcore/types/waap/ip_info_get_top_urls_params.py +15 -0
  235. gcore/types/waap/ip_info_get_top_urls_response.py +10 -0
  236. gcore/types/waap/ip_info_get_top_user_agents_params.py +15 -0
  237. gcore/types/waap/ip_info_get_top_user_agents_response.py +10 -0
  238. gcore/types/waap/ip_info_list_attacked_countries_params.py +12 -0
  239. gcore/types/waap/ip_info_list_attacked_countries_response.py +10 -0
  240. gcore/types/waap/organization_list_params.py +22 -0
  241. gcore/types/waap/statistic_get_usage_series_params.py +25 -0
  242. gcore/types/waap/tag_list_params.py +28 -0
  243. gcore/types/waap/waap_advanced_rule.py +83 -0
  244. gcore/types/waap/waap_advanced_rule_descriptor.py +49 -0
  245. gcore/types/waap/waap_advanced_rule_descriptor_list.py +15 -0
  246. gcore/types/waap/waap_block_csrf_page_data.py +28 -0
  247. gcore/types/waap/waap_block_csrf_page_data_param.py +28 -0
  248. gcore/types/waap/waap_block_page_data.py +28 -0
  249. gcore/types/waap/waap_block_page_data_param.py +28 -0
  250. gcore/types/waap/waap_blocked_statistics.py +36 -0
  251. gcore/types/waap/waap_captcha_page_data.py +31 -0
  252. gcore/types/waap/waap_captcha_page_data_param.py +31 -0
  253. gcore/types/waap/waap_common_tag.py +16 -0
  254. gcore/types/waap/waap_cookie_disabled_page_data.py +18 -0
  255. gcore/types/waap/waap_cookie_disabled_page_data_param.py +18 -0
  256. gcore/types/waap/waap_count_statistics.py +36 -0
  257. gcore/types/waap/waap_custom_page_preview.py +10 -0
  258. gcore/types/waap/waap_custom_page_set.py +36 -0
  259. gcore/types/waap/waap_custom_rule.py +377 -0
  260. gcore/types/waap/waap_customer_rule_state.py +7 -0
  261. gcore/types/waap/waap_ddos_attack.py +16 -0
  262. gcore/types/waap/waap_ddos_info.py +17 -0
  263. gcore/types/waap/{waap_api_urls.py → waap_domain_api_settings.py} +9 -2
  264. gcore/types/waap/waap_domain_policy.py +29 -0
  265. gcore/types/waap/{waap_domain_settings.py → waap_domain_settings_model.py} +4 -4
  266. gcore/types/waap/waap_event_statistics.py +15 -0
  267. gcore/types/waap/waap_firewall_rule.py +78 -0
  268. gcore/types/waap/waap_get_account_overview_response.py +34 -0
  269. gcore/types/waap/waap_handshake_page_data.py +25 -0
  270. gcore/types/waap/waap_handshake_page_data_param.py +25 -0
  271. gcore/types/waap/waap_insight.py +38 -0
  272. gcore/types/waap/waap_insight_silence.py +28 -0
  273. gcore/types/waap/waap_insight_silence_sort_by.py +9 -0
  274. gcore/types/waap/waap_insight_sort_by.py +20 -0
  275. gcore/types/waap/waap_insight_status.py +7 -0
  276. gcore/types/waap/waap_ip_country_attack.py +16 -0
  277. gcore/types/waap/waap_ip_ddos_info_model.py +23 -0
  278. gcore/types/waap/waap_ip_info.py +57 -0
  279. gcore/types/waap/waap_ip_info_counts.py +16 -0
  280. gcore/types/waap/waap_javascript_disabled_page_data.py +18 -0
  281. gcore/types/waap/waap_javascript_disabled_page_data_param.py +18 -0
  282. gcore/types/waap/waap_network_details.py +17 -0
  283. gcore/types/waap/waap_organization.py +13 -0
  284. gcore/types/waap/waap_page_type.py +9 -0
  285. gcore/types/waap/waap_paginated_custom_page_set.py +22 -0
  286. gcore/types/waap/waap_paginated_ddos_attack.py +22 -0
  287. gcore/types/waap/waap_paginated_ddos_info.py +22 -0
  288. gcore/types/waap/waap_paginated_request_summary.py +22 -0
  289. gcore/types/waap/waap_pattern_matched_tag.py +37 -0
  290. gcore/types/waap/waap_policy_action.py +7 -0
  291. gcore/types/waap/waap_policy_mode.py +10 -0
  292. gcore/types/waap/waap_request_details.py +92 -0
  293. gcore/types/waap/waap_request_organization.py +13 -0
  294. gcore/types/waap/waap_request_summary.py +59 -0
  295. gcore/types/waap/waap_resolution.py +7 -0
  296. gcore/types/waap/waap_rule_action_type.py +7 -0
  297. gcore/types/waap/waap_rule_blocked_requests.py +16 -0
  298. gcore/types/waap/waap_rule_set.py +41 -0
  299. gcore/types/waap/waap_statistic_item.py +18 -0
  300. gcore/types/waap/waap_statistics_series.py +16 -0
  301. gcore/types/waap/waap_tag.py +16 -0
  302. gcore/types/waap/waap_time_series_attack.py +23 -0
  303. gcore/types/waap/waap_top_session.py +24 -0
  304. gcore/types/waap/waap_top_url.py +13 -0
  305. gcore/types/waap/waap_top_user_agent.py +13 -0
  306. gcore/types/waap/waap_traffic_metrics.py +68 -0
  307. gcore/types/waap/waap_traffic_type.py +28 -0
  308. gcore/types/waap/waap_user_agent_details.py +40 -0
  309. {gcore-0.2.0.dist-info → gcore-0.4.0.dist-info}/METADATA +40 -3
  310. {gcore-0.2.0.dist-info → gcore-0.4.0.dist-info}/RECORD +312 -149
  311. gcore/types/cloud/baremetal/flavor_list_suitable_params.py +0 -22
  312. gcore/types/cloud/instances/flavor_list_for_resize_params.py +0 -16
  313. gcore/types/cloud/instances/flavor_list_suitable_params.py +0 -56
  314. {gcore-0.2.0.dist-info → gcore-0.4.0.dist-info}/WHEEL +0 -0
  315. {gcore-0.2.0.dist-info → gcore-0.4.0.dist-info}/licenses/LICENSE +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List, Union, Iterable, Optional
5
+ from typing import Dict, List, Union, Iterable, Optional
6
6
  from datetime import datetime
7
7
  from typing_extensions import Literal, overload
8
8
 
@@ -68,7 +68,6 @@ from ....types.cloud.console import Console
68
68
  from ....types.cloud.instance import Instance
69
69
  from ....types.cloud.task_id_list import TaskIDList
70
70
  from ....types.cloud.instance_interface import InstanceInterface
71
- from ....types.cloud.tag_update_map_param import TagUpdateMapParam
72
71
 
73
72
  __all__ = ["InstancesResource", "AsyncInstancesResource"]
74
73
 
@@ -125,7 +124,7 @@ class InstancesResource(SyncAPIResource):
125
124
  security_groups: Iterable[instance_create_params.SecurityGroup] | NotGiven = NOT_GIVEN,
126
125
  servergroup_id: str | NotGiven = NOT_GIVEN,
127
126
  ssh_key_name: Optional[str] | NotGiven = NOT_GIVEN,
128
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
127
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
129
128
  user_data: str | NotGiven = NOT_GIVEN,
130
129
  username: str | NotGiven = NOT_GIVEN,
131
130
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -135,22 +134,20 @@ class InstancesResource(SyncAPIResource):
135
134
  extra_body: Body | None = None,
136
135
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
137
136
  ) -> TaskIDList:
138
- """
139
- For Linux,
137
+ """Create an instance with specified configuration.
138
+
139
+ How to get access: For Linux,
140
140
 
141
141
  - Use the `user_data` field to provide a
142
- <a href=https://cloudinit.readthedocs.io/en/latest/reference/examples.html>cloud-init
143
- script</a> in base64 to apply configurations to the instance.
142
+ [cloud-init script](https://cloudinit.readthedocs.io/en/latest/reference/examples.html)
143
+ in base64 to apply configurations to the instance.
144
144
  - Specify the `username` and `password` to create a new user.
145
145
  - When only `password` is provided, it is set as the password for the default
146
146
  user of the image.
147
- - The `user_data` is ignored when the `password` is specified.
148
-
149
- For Windows,
150
-
147
+ - The `user_data` is ignored when the `password` is specified. For Windows,
151
148
  - Use the `user_data` field to provide a
152
- <a href=https://cloudbase-init.readthedocs.io/en/latest/userdata.html#cloud-config>cloudbase-init
153
- script</a> in base64 to create new users on Windows.
149
+ [cloudbase-init script](https://cloudbase-init.readthedocs.io/en/latest/userdata.html#cloud-config)
150
+ in base64 to create new users on Windows.
154
151
  - Use the `password` field to set the password for the 'Admin' user on Windows.
155
152
  - The password of the Admin user cannot be updated via `user_data`.
156
153
  - The `username` cannot be specified in the request.
@@ -179,21 +176,20 @@ class InstancesResource(SyncAPIResource):
179
176
  name_template: If you want the instance name to be automatically generated based on IP
180
177
  addresses, you can provide a name template instead of specifying the name
181
178
  manually. The template should include a placeholder that will be replaced during
182
- provisioning. Supported placeholders are: `{ip_octets}` (last 3 octets of the
183
- IP), `{two_ip_octets}`, and `{one_ip_octet}`.
179
+ provisioning. Supported placeholders are: `{`ip_octets`}` (last 3 octets of the
180
+ IP), `{`two_ip_octets`}`, and `{`one_ip_octet`}`.
184
181
 
185
182
  password: For Linux instances, 'username' and 'password' are used to create a new user.
186
183
  When only 'password' is provided, it is set as the password for the default user
187
184
  of the image. For Windows instances, 'username' cannot be specified. Use the
188
185
  'password' field to set the password for the 'Admin' user on Windows. Use the
189
- 'user_data' field to provide a script to create new users on Windows. The
190
- password of the Admin user cannot be updated via 'user_data'.
186
+ '`user_data`' field to provide a script to create new users on Windows. The
187
+ password of the Admin user cannot be updated via '`user_data`'.
191
188
 
192
189
  security_groups: Specifies security group UUIDs to be applied to all instance network interfaces.
193
190
 
194
- servergroup_id: Placement group ID for instance placement policy.
195
-
196
- Supported group types:
191
+ servergroup_id:
192
+ Placement group ID for instance placement policy. Supported group types:
197
193
 
198
194
  - `anti-affinity`: Ensures instances are placed on different hosts for high
199
195
  availability.
@@ -202,7 +198,7 @@ class InstancesResource(SyncAPIResource):
202
198
  sharing if needed.
203
199
 
204
200
  ssh_key_name: Specifies the name of the SSH keypair, created via the
205
- <a href="#operation/SSHKeyCollectionViewSet.post">/v1/ssh_keys endpoint</a>.
201
+ [/v1/`ssh_keys` endpoint](/docs/api-reference/ssh-keys/add-or-generate-ssh-key).
206
202
 
207
203
  tags: Key-value tags to associate with the resource. A tag is a key-value pair that
208
204
  can be associated with a resource, enabling efficient filtering and grouping for
@@ -210,10 +206,10 @@ class InstancesResource(SyncAPIResource):
210
206
  modified by the user. Tags are also integrated with cost reports, allowing cost
211
207
  data to be filtered based on tag keys or values.
212
208
 
213
- user_data: String in base64 format. For Linux instances, 'user_data' is ignored when
209
+ user_data: String in base64 format. For Linux instances, '`user_data`' is ignored when
214
210
  'password' field is provided. For Windows instances, Admin user password is set
215
- by 'password' field and cannot be updated via 'user_data'. Examples of the
216
- user_data: https://cloudinit.readthedocs.io/en/latest/topics/examples.html
211
+ by 'password' field and cannot be updated via '`user_data`'. Examples of the
212
+ `user_data`: https://cloudinit.readthedocs.io/en/latest/topics/examples.html
217
213
 
218
214
  username: For Linux instances, 'username' and 'password' are used to create a new user.
219
215
  For Windows instances, 'username' cannot be specified. Use 'password' field to
@@ -274,7 +270,7 @@ class InstancesResource(SyncAPIResource):
274
270
  security_groups: Iterable[instance_create_params.SecurityGroup] | NotGiven = NOT_GIVEN,
275
271
  servergroup_id: str | NotGiven = NOT_GIVEN,
276
272
  ssh_key_name: Optional[str] | NotGiven = NOT_GIVEN,
277
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
273
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
278
274
  user_data: str | NotGiven = NOT_GIVEN,
279
275
  username: str | NotGiven = NOT_GIVEN,
280
276
  polling_interval_seconds: int | NotGiven = NOT_GIVEN,
@@ -433,8 +429,10 @@ class InstancesResource(SyncAPIResource):
433
429
  extra_body: Body | None = None,
434
430
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
435
431
  ) -> SyncOffsetPage[Instance]:
436
- """
437
- List instances
432
+ """List all instances in the specified project and region.
433
+
434
+ Results can be filtered
435
+ by various parameters like name, status, and IP address.
438
436
 
439
437
  Args:
440
438
  project_id: Project ID
@@ -452,9 +450,9 @@ class InstancesResource(SyncAPIResource):
452
450
 
453
451
  exclude_secgroup: Exclude instances with specified security group name
454
452
 
455
- flavor_id: Filter out instances by flavor_id. Flavor id must match exactly.
453
+ flavor_id: Filter out instances by `flavor_id`. Flavor id must match exactly.
456
454
 
457
- flavor_prefix: Filter out instances by flavor_prefix.
455
+ flavor_prefix: Filter out instances by `flavor_prefix`.
458
456
 
459
457
  include_ai: Include GPU clusters' servers
460
458
 
@@ -481,22 +479,20 @@ class InstancesResource(SyncAPIResource):
481
479
 
482
480
  order_by: Order by field and direction.
483
481
 
484
- profile_name: Filter result by ddos protection profile name. Effective only with with_ddos set
485
- to true.
482
+ profile_name: Filter result by ddos protection profile name. Effective only with `with_ddos`
483
+ set to true.
486
484
 
487
- protection_status: Filter result by DDoS protection_status. if parameter is provided. Effective
488
- only with with_ddos set to true. (Active, Queued or Error)
485
+ protection_status: Filter result by DDoS `protection_status`. if parameter is provided. Effective
486
+ only with `with_ddos` set to true. (Active, Queued or Error)
489
487
 
490
488
  status: Filters instances by status.
491
489
 
492
- tag_key_value: Optional. Filter by tag key-value pairs. curl -G --data-urlencode
493
- "tag_key_value={"key": "value"}" --url
494
- "https://example.com/cloud/v1/resource/1/1"
490
+ tag_key_value: Optional. Filter by tag key-value pairs.
495
491
 
496
- tag_value: Optional. Filter by tag values. ?tag_value=value1&tag_value=value2
492
+ tag_value: Optional. Filter by tag values. ?`tag_value`=value1&`tag_value`=value2
497
493
 
498
494
  type_ddos_profile: Return bare metals either only with advanced or only basic DDoS protection.
499
- Effective only with with_ddos set to true. (advanced or basic)
495
+ Effective only with `with_ddos` set to true. (advanced or basic)
500
496
 
501
497
  uuid: Filter the server list result by the UUID of the server. Allowed UUID part
502
498
 
@@ -691,7 +687,7 @@ class InstancesResource(SyncAPIResource):
691
687
  ) -> TaskIDList:
692
688
  """
693
689
  The action can be one of: start, stop, reboot, powercycle, suspend or resume.
694
- Suspend and resume are not available for baremetal instances.
690
+ Suspend and resume are not available for bare metal instances.
695
691
 
696
692
  Args:
697
693
  action: Instance action name
@@ -725,7 +721,7 @@ class InstancesResource(SyncAPIResource):
725
721
  ) -> TaskIDList:
726
722
  """
727
723
  The action can be one of: start, stop, reboot, powercycle, suspend or resume.
728
- Suspend and resume are not available for baremetal instances.
724
+ Suspend and resume are not available for bare metal instances.
729
725
 
730
726
  Args:
731
727
  action: Instance action name
@@ -791,8 +787,10 @@ class InstancesResource(SyncAPIResource):
791
787
  extra_body: Body | None = None,
792
788
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
793
789
  ) -> TaskIDList:
794
- """
795
- Put instance into the server group
790
+ """Add an instance to a server group.
791
+
792
+ The instance must not already be in a server
793
+ group. Bare metal servers do not support server groups.
796
794
 
797
795
  Args:
798
796
  servergroup_id: Anti-affinity or affinity or soft-anti-affinity server group ID.
@@ -884,7 +882,7 @@ class InstancesResource(SyncAPIResource):
884
882
  """Assign the security group to the server.
885
883
 
886
884
  To assign multiple security groups to
887
- all ports, use the NULL value for the port_id field
885
+ all ports, use the NULL value for the `port_id` field
888
886
 
889
887
  Args:
890
888
  name: Security group name, applies to all ports
@@ -1012,14 +1010,17 @@ class InstancesResource(SyncAPIResource):
1012
1010
  extra_body: Body | None = None,
1013
1011
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1014
1012
  ) -> Instance:
1015
- """
1016
- **Cookie Parameters**:
1013
+ """Retrieve detailed information about a specific instance.
1014
+
1015
+ The response content
1016
+ language for `ddos_profile` can be controlled via the 'language' cookie
1017
+ parameter. **Cookie Parameters**:
1017
1018
 
1018
1019
  - `language` (str, optional): Language for the response content. Affects the
1019
1020
  `ddos_profile` field. Supported values:
1020
- - `'en'` (default)
1021
- - `'de'`
1022
- - `'ru'`
1021
+ - `'en'` (default)
1022
+ - `'de'`
1023
+ - `'ru'`
1023
1024
 
1024
1025
  Args:
1025
1026
  project_id: Project ID
@@ -1111,8 +1112,10 @@ class InstancesResource(SyncAPIResource):
1111
1112
  extra_body: Body | None = None,
1112
1113
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1113
1114
  ) -> TaskIDList:
1114
- """
1115
- Remove instance from the server group
1115
+ """Remove an instance from its current server group.
1116
+
1117
+ The instance must be in a
1118
+ server group to be removed. Bare metal servers do not support server groups.
1116
1119
 
1117
1120
  Args:
1118
1121
  extra_headers: Send extra headers
@@ -1281,7 +1284,7 @@ class InstancesResource(SyncAPIResource):
1281
1284
  """Un-assign the security group to the server.
1282
1285
 
1283
1286
  To un-assign multiple security
1284
- groups to all ports, use the NULL value for the port_id field
1287
+ groups to all ports, use the NULL value for the `port_id` field
1285
1288
 
1286
1289
  Args:
1287
1290
  name: Security group name, applies to all ports
@@ -1371,7 +1374,7 @@ class AsyncInstancesResource(AsyncAPIResource):
1371
1374
  security_groups: Iterable[instance_create_params.SecurityGroup] | NotGiven = NOT_GIVEN,
1372
1375
  servergroup_id: str | NotGiven = NOT_GIVEN,
1373
1376
  ssh_key_name: Optional[str] | NotGiven = NOT_GIVEN,
1374
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
1377
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
1375
1378
  user_data: str | NotGiven = NOT_GIVEN,
1376
1379
  username: str | NotGiven = NOT_GIVEN,
1377
1380
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -1381,22 +1384,20 @@ class AsyncInstancesResource(AsyncAPIResource):
1381
1384
  extra_body: Body | None = None,
1382
1385
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1383
1386
  ) -> TaskIDList:
1384
- """
1385
- For Linux,
1387
+ """Create an instance with specified configuration.
1388
+
1389
+ How to get access: For Linux,
1386
1390
 
1387
1391
  - Use the `user_data` field to provide a
1388
- <a href=https://cloudinit.readthedocs.io/en/latest/reference/examples.html>cloud-init
1389
- script</a> in base64 to apply configurations to the instance.
1392
+ [cloud-init script](https://cloudinit.readthedocs.io/en/latest/reference/examples.html)
1393
+ in base64 to apply configurations to the instance.
1390
1394
  - Specify the `username` and `password` to create a new user.
1391
1395
  - When only `password` is provided, it is set as the password for the default
1392
1396
  user of the image.
1393
- - The `user_data` is ignored when the `password` is specified.
1394
-
1395
- For Windows,
1396
-
1397
+ - The `user_data` is ignored when the `password` is specified. For Windows,
1397
1398
  - Use the `user_data` field to provide a
1398
- <a href=https://cloudbase-init.readthedocs.io/en/latest/userdata.html#cloud-config>cloudbase-init
1399
- script</a> in base64 to create new users on Windows.
1399
+ [cloudbase-init script](https://cloudbase-init.readthedocs.io/en/latest/userdata.html#cloud-config)
1400
+ in base64 to create new users on Windows.
1400
1401
  - Use the `password` field to set the password for the 'Admin' user on Windows.
1401
1402
  - The password of the Admin user cannot be updated via `user_data`.
1402
1403
  - The `username` cannot be specified in the request.
@@ -1425,21 +1426,20 @@ class AsyncInstancesResource(AsyncAPIResource):
1425
1426
  name_template: If you want the instance name to be automatically generated based on IP
1426
1427
  addresses, you can provide a name template instead of specifying the name
1427
1428
  manually. The template should include a placeholder that will be replaced during
1428
- provisioning. Supported placeholders are: `{ip_octets}` (last 3 octets of the
1429
- IP), `{two_ip_octets}`, and `{one_ip_octet}`.
1429
+ provisioning. Supported placeholders are: `{`ip_octets`}` (last 3 octets of the
1430
+ IP), `{`two_ip_octets`}`, and `{`one_ip_octet`}`.
1430
1431
 
1431
1432
  password: For Linux instances, 'username' and 'password' are used to create a new user.
1432
1433
  When only 'password' is provided, it is set as the password for the default user
1433
1434
  of the image. For Windows instances, 'username' cannot be specified. Use the
1434
1435
  'password' field to set the password for the 'Admin' user on Windows. Use the
1435
- 'user_data' field to provide a script to create new users on Windows. The
1436
- password of the Admin user cannot be updated via 'user_data'.
1436
+ '`user_data`' field to provide a script to create new users on Windows. The
1437
+ password of the Admin user cannot be updated via '`user_data`'.
1437
1438
 
1438
1439
  security_groups: Specifies security group UUIDs to be applied to all instance network interfaces.
1439
1440
 
1440
- servergroup_id: Placement group ID for instance placement policy.
1441
-
1442
- Supported group types:
1441
+ servergroup_id:
1442
+ Placement group ID for instance placement policy. Supported group types:
1443
1443
 
1444
1444
  - `anti-affinity`: Ensures instances are placed on different hosts for high
1445
1445
  availability.
@@ -1448,7 +1448,7 @@ class AsyncInstancesResource(AsyncAPIResource):
1448
1448
  sharing if needed.
1449
1449
 
1450
1450
  ssh_key_name: Specifies the name of the SSH keypair, created via the
1451
- <a href="#operation/SSHKeyCollectionViewSet.post">/v1/ssh_keys endpoint</a>.
1451
+ [/v1/`ssh_keys` endpoint](/docs/api-reference/ssh-keys/add-or-generate-ssh-key).
1452
1452
 
1453
1453
  tags: Key-value tags to associate with the resource. A tag is a key-value pair that
1454
1454
  can be associated with a resource, enabling efficient filtering and grouping for
@@ -1456,10 +1456,10 @@ class AsyncInstancesResource(AsyncAPIResource):
1456
1456
  modified by the user. Tags are also integrated with cost reports, allowing cost
1457
1457
  data to be filtered based on tag keys or values.
1458
1458
 
1459
- user_data: String in base64 format. For Linux instances, 'user_data' is ignored when
1459
+ user_data: String in base64 format. For Linux instances, '`user_data`' is ignored when
1460
1460
  'password' field is provided. For Windows instances, Admin user password is set
1461
- by 'password' field and cannot be updated via 'user_data'. Examples of the
1462
- user_data: https://cloudinit.readthedocs.io/en/latest/topics/examples.html
1461
+ by 'password' field and cannot be updated via '`user_data`'. Examples of the
1462
+ `user_data`: https://cloudinit.readthedocs.io/en/latest/topics/examples.html
1463
1463
 
1464
1464
  username: For Linux instances, 'username' and 'password' are used to create a new user.
1465
1465
  For Windows instances, 'username' cannot be specified. Use 'password' field to
@@ -1520,7 +1520,7 @@ class AsyncInstancesResource(AsyncAPIResource):
1520
1520
  security_groups: Iterable[instance_create_params.SecurityGroup] | NotGiven = NOT_GIVEN,
1521
1521
  servergroup_id: str | NotGiven = NOT_GIVEN,
1522
1522
  ssh_key_name: Optional[str] | NotGiven = NOT_GIVEN,
1523
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
1523
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
1524
1524
  user_data: str | NotGiven = NOT_GIVEN,
1525
1525
  username: str | NotGiven = NOT_GIVEN,
1526
1526
  polling_interval_seconds: int | NotGiven = NOT_GIVEN,
@@ -1679,8 +1679,10 @@ class AsyncInstancesResource(AsyncAPIResource):
1679
1679
  extra_body: Body | None = None,
1680
1680
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
1681
1681
  ) -> AsyncPaginator[Instance, AsyncOffsetPage[Instance]]:
1682
- """
1683
- List instances
1682
+ """List all instances in the specified project and region.
1683
+
1684
+ Results can be filtered
1685
+ by various parameters like name, status, and IP address.
1684
1686
 
1685
1687
  Args:
1686
1688
  project_id: Project ID
@@ -1698,9 +1700,9 @@ class AsyncInstancesResource(AsyncAPIResource):
1698
1700
 
1699
1701
  exclude_secgroup: Exclude instances with specified security group name
1700
1702
 
1701
- flavor_id: Filter out instances by flavor_id. Flavor id must match exactly.
1703
+ flavor_id: Filter out instances by `flavor_id`. Flavor id must match exactly.
1702
1704
 
1703
- flavor_prefix: Filter out instances by flavor_prefix.
1705
+ flavor_prefix: Filter out instances by `flavor_prefix`.
1704
1706
 
1705
1707
  include_ai: Include GPU clusters' servers
1706
1708
 
@@ -1727,22 +1729,20 @@ class AsyncInstancesResource(AsyncAPIResource):
1727
1729
 
1728
1730
  order_by: Order by field and direction.
1729
1731
 
1730
- profile_name: Filter result by ddos protection profile name. Effective only with with_ddos set
1731
- to true.
1732
+ profile_name: Filter result by ddos protection profile name. Effective only with `with_ddos`
1733
+ set to true.
1732
1734
 
1733
- protection_status: Filter result by DDoS protection_status. if parameter is provided. Effective
1734
- only with with_ddos set to true. (Active, Queued or Error)
1735
+ protection_status: Filter result by DDoS `protection_status`. if parameter is provided. Effective
1736
+ only with `with_ddos` set to true. (Active, Queued or Error)
1735
1737
 
1736
1738
  status: Filters instances by status.
1737
1739
 
1738
- tag_key_value: Optional. Filter by tag key-value pairs. curl -G --data-urlencode
1739
- "tag_key_value={"key": "value"}" --url
1740
- "https://example.com/cloud/v1/resource/1/1"
1740
+ tag_key_value: Optional. Filter by tag key-value pairs.
1741
1741
 
1742
- tag_value: Optional. Filter by tag values. ?tag_value=value1&tag_value=value2
1742
+ tag_value: Optional. Filter by tag values. ?`tag_value`=value1&`tag_value`=value2
1743
1743
 
1744
1744
  type_ddos_profile: Return bare metals either only with advanced or only basic DDoS protection.
1745
- Effective only with with_ddos set to true. (advanced or basic)
1745
+ Effective only with `with_ddos` set to true. (advanced or basic)
1746
1746
 
1747
1747
  uuid: Filter the server list result by the UUID of the server. Allowed UUID part
1748
1748
 
@@ -1937,7 +1937,7 @@ class AsyncInstancesResource(AsyncAPIResource):
1937
1937
  ) -> TaskIDList:
1938
1938
  """
1939
1939
  The action can be one of: start, stop, reboot, powercycle, suspend or resume.
1940
- Suspend and resume are not available for baremetal instances.
1940
+ Suspend and resume are not available for bare metal instances.
1941
1941
 
1942
1942
  Args:
1943
1943
  action: Instance action name
@@ -1971,7 +1971,7 @@ class AsyncInstancesResource(AsyncAPIResource):
1971
1971
  ) -> TaskIDList:
1972
1972
  """
1973
1973
  The action can be one of: start, stop, reboot, powercycle, suspend or resume.
1974
- Suspend and resume are not available for baremetal instances.
1974
+ Suspend and resume are not available for bare metal instances.
1975
1975
 
1976
1976
  Args:
1977
1977
  action: Instance action name
@@ -2037,8 +2037,10 @@ class AsyncInstancesResource(AsyncAPIResource):
2037
2037
  extra_body: Body | None = None,
2038
2038
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
2039
2039
  ) -> TaskIDList:
2040
- """
2041
- Put instance into the server group
2040
+ """Add an instance to a server group.
2041
+
2042
+ The instance must not already be in a server
2043
+ group. Bare metal servers do not support server groups.
2042
2044
 
2043
2045
  Args:
2044
2046
  servergroup_id: Anti-affinity or affinity or soft-anti-affinity server group ID.
@@ -2130,7 +2132,7 @@ class AsyncInstancesResource(AsyncAPIResource):
2130
2132
  """Assign the security group to the server.
2131
2133
 
2132
2134
  To assign multiple security groups to
2133
- all ports, use the NULL value for the port_id field
2135
+ all ports, use the NULL value for the `port_id` field
2134
2136
 
2135
2137
  Args:
2136
2138
  name: Security group name, applies to all ports
@@ -2258,14 +2260,17 @@ class AsyncInstancesResource(AsyncAPIResource):
2258
2260
  extra_body: Body | None = None,
2259
2261
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
2260
2262
  ) -> Instance:
2261
- """
2262
- **Cookie Parameters**:
2263
+ """Retrieve detailed information about a specific instance.
2264
+
2265
+ The response content
2266
+ language for `ddos_profile` can be controlled via the 'language' cookie
2267
+ parameter. **Cookie Parameters**:
2263
2268
 
2264
2269
  - `language` (str, optional): Language for the response content. Affects the
2265
2270
  `ddos_profile` field. Supported values:
2266
- - `'en'` (default)
2267
- - `'de'`
2268
- - `'ru'`
2271
+ - `'en'` (default)
2272
+ - `'de'`
2273
+ - `'ru'`
2269
2274
 
2270
2275
  Args:
2271
2276
  project_id: Project ID
@@ -2357,8 +2362,10 @@ class AsyncInstancesResource(AsyncAPIResource):
2357
2362
  extra_body: Body | None = None,
2358
2363
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
2359
2364
  ) -> TaskIDList:
2360
- """
2361
- Remove instance from the server group
2365
+ """Remove an instance from its current server group.
2366
+
2367
+ The instance must be in a
2368
+ server group to be removed. Bare metal servers do not support server groups.
2362
2369
 
2363
2370
  Args:
2364
2371
  extra_headers: Send extra headers
@@ -2527,7 +2534,7 @@ class AsyncInstancesResource(AsyncAPIResource):
2527
2534
  """Un-assign the security group to the server.
2528
2535
 
2529
2536
  To un-assign multiple security
2530
- groups to all ports, use the NULL value for the port_id field
2537
+ groups to all ports, use the NULL value for the `port_id` field
2531
2538
 
2532
2539
  Args:
2533
2540
  name: Security group name, applies to all ports
@@ -59,7 +59,7 @@ class InterfacesResource(SyncAPIResource):
59
59
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
60
60
  ) -> NetworkInterfaceList:
61
61
  """
62
- List network interfaces attached to the instance
62
+ List all network interfaces attached to the specified instance.
63
63
 
64
64
  Args:
65
65
  extra_headers: Send extra headers
@@ -217,7 +217,7 @@ class InterfacesResource(SyncAPIResource):
217
217
 
218
218
  security_groups: List of security group IDs
219
219
 
220
- type: Must be 'any_subnet'
220
+ type: Must be '`any_subnet`'
221
221
 
222
222
  extra_headers: Send extra headers
223
223
 
@@ -264,7 +264,7 @@ class InterfacesResource(SyncAPIResource):
264
264
 
265
265
  security_groups: List of security group IDs
266
266
 
267
- type: Must be 'reserved_fixed_ip'. Union tag
267
+ type: Must be '`reserved_fixed_ip`'. Union tag
268
268
 
269
269
  extra_headers: Send extra headers
270
270
 
@@ -415,7 +415,7 @@ class AsyncInterfacesResource(AsyncAPIResource):
415
415
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
416
416
  ) -> NetworkInterfaceList:
417
417
  """
418
- List network interfaces attached to the instance
418
+ List all network interfaces attached to the specified instance.
419
419
 
420
420
  Args:
421
421
  extra_headers: Send extra headers
@@ -573,7 +573,7 @@ class AsyncInterfacesResource(AsyncAPIResource):
573
573
 
574
574
  security_groups: List of security group IDs
575
575
 
576
- type: Must be 'any_subnet'
576
+ type: Must be '`any_subnet`'
577
577
 
578
578
  extra_headers: Send extra headers
579
579
 
@@ -620,7 +620,7 @@ class AsyncInterfacesResource(AsyncAPIResource):
620
620
 
621
621
  security_groups: List of security group IDs
622
622
 
623
- type: Must be 'reserved_fixed_ip'. Union tag
623
+ type: Must be '`reserved_fixed_ip`'. Union tag
624
624
 
625
625
  extra_headers: Send extra headers
626
626
 
@@ -49,7 +49,23 @@ class IPRangesResource(SyncAPIResource):
49
49
  extra_body: Body | None = None,
50
50
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
51
51
  ) -> IPRanges:
52
- """List of all Edge Cloud Egress Public IPs."""
52
+ """
53
+ Returns the complete list of IPv4 and IPv6 address ranges that Cloud uses for
54
+ outbound (egress) traffic. Typical reasons to call this endpoint:
55
+
56
+ - Host-file delivery workflows – You upload images or other assets to the Cloud
57
+ and share a download link that points to your own infrastructure. Add these
58
+ egress prefixes to your firewall or object-storage allow-list so our clients
59
+ can fetch the files without being blocked.
60
+ - Push integrations / webhooks – You subscribe to the user-actions event log and
61
+ Cloud pushes events to your listener endpoint. Whitelisting the egress IP
62
+ ranges lets you accept only traffic that originates from us.
63
+ - General security controls, audit tooling, or SIEM rules that need to verify
64
+ that traffic truly comes from the Cloud. The list is global (covers all
65
+ regions) and refreshed automatically whenever Gcore allocates new egress IP
66
+ space. The response is an array of CIDR blocks; duplicate prefixes are not
67
+ returned.
68
+ """
53
69
  return self._get(
54
70
  "/cloud/public/v1/ipranges/egress",
55
71
  options=make_request_options(
@@ -89,7 +105,23 @@ class AsyncIPRangesResource(AsyncAPIResource):
89
105
  extra_body: Body | None = None,
90
106
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
91
107
  ) -> IPRanges:
92
- """List of all Edge Cloud Egress Public IPs."""
108
+ """
109
+ Returns the complete list of IPv4 and IPv6 address ranges that Cloud uses for
110
+ outbound (egress) traffic. Typical reasons to call this endpoint:
111
+
112
+ - Host-file delivery workflows – You upload images or other assets to the Cloud
113
+ and share a download link that points to your own infrastructure. Add these
114
+ egress prefixes to your firewall or object-storage allow-list so our clients
115
+ can fetch the files without being blocked.
116
+ - Push integrations / webhooks – You subscribe to the user-actions event log and
117
+ Cloud pushes events to your listener endpoint. Whitelisting the egress IP
118
+ ranges lets you accept only traffic that originates from us.
119
+ - General security controls, audit tooling, or SIEM rules that need to verify
120
+ that traffic truly comes from the Cloud. The list is global (covers all
121
+ regions) and refreshed automatically whenever Gcore allocates new egress IP
122
+ space. The response is an array of CIDR blocks; duplicate prefixes are not
123
+ returned.
124
+ """
93
125
  return await self._get(
94
126
  "/cloud/public/v1/ipranges/egress",
95
127
  options=make_request_options(
@@ -56,7 +56,7 @@ class FlavorsResource(SyncAPIResource):
56
56
  ) -> LoadBalancerFlavorList:
57
57
  """Retrieve a list of load balancer flavors.
58
58
 
59
- When the include_prices query
59
+ When the `include_prices` query
60
60
  parameter is specified, the list shows prices. A client in trial mode gets all
61
61
  price values as 0. If you get Pricing Error contact the support
62
62
 
@@ -123,7 +123,7 @@ class AsyncFlavorsResource(AsyncAPIResource):
123
123
  ) -> LoadBalancerFlavorList:
124
124
  """Retrieve a list of load balancer flavors.
125
125
 
126
- When the include_prices query
126
+ When the `include_prices` query
127
127
  parameter is specified, the list shows prices. A client in trial mode gets all
128
128
  price values as 0. If you get Pricing Error contact the support
129
129