gcore 0.3.0__py3-none-any.whl → 0.5.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 (226) hide show
  1. gcore/__init__.py +2 -1
  2. gcore/_base_client.py +31 -2
  3. gcore/_client.py +18 -0
  4. gcore/_constants.py +2 -2
  5. gcore/_models.py +8 -5
  6. gcore/_version.py +1 -1
  7. gcore/pagination.py +252 -1
  8. gcore/resources/__init__.py +28 -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 +33 -30
  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 +7 -12
  15. gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +33 -22
  16. gcore/resources/cloud/gpu_baremetal_clusters/images.py +9 -10
  17. gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +2 -2
  18. gcore/resources/cloud/gpu_baremetal_clusters/servers.py +8 -4
  19. gcore/resources/cloud/inference/deployments/deployments.py +76 -35
  20. gcore/resources/cloud/inference/deployments/logs.py +7 -7
  21. gcore/resources/cloud/inference/inference.py +5 -5
  22. gcore/resources/cloud/inference/models.py +16 -15
  23. gcore/resources/cloud/inference/registry_credentials.py +18 -18
  24. gcore/resources/cloud/inference/secrets.py +12 -13
  25. gcore/resources/cloud/instances/flavors.py +9 -233
  26. gcore/resources/cloud/instances/images.py +47 -37
  27. gcore/resources/cloud/instances/instances.py +49 -34
  28. gcore/resources/cloud/instances/interfaces.py +2 -2
  29. gcore/resources/cloud/ip_ranges.py +34 -2
  30. gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +10 -2
  31. gcore/resources/cloud/load_balancers/listeners.py +17 -8
  32. gcore/resources/cloud/load_balancers/load_balancers.py +73 -21
  33. gcore/resources/cloud/load_balancers/metrics.py +2 -2
  34. gcore/resources/cloud/load_balancers/pools/health_monitors.py +2 -2
  35. gcore/resources/cloud/load_balancers/pools/members.py +6 -2
  36. gcore/resources/cloud/networks/networks.py +81 -17
  37. gcore/resources/cloud/networks/routers.py +18 -18
  38. gcore/resources/cloud/networks/subnets.py +51 -11
  39. gcore/resources/cloud/projects.py +38 -24
  40. gcore/resources/cloud/quotas/quotas.py +6 -6
  41. gcore/resources/cloud/quotas/requests.py +8 -8
  42. gcore/resources/cloud/registries/artifacts.py +4 -4
  43. gcore/resources/cloud/registries/registries.py +14 -16
  44. gcore/resources/cloud/registries/repositories.py +4 -4
  45. gcore/resources/cloud/registries/tags.py +2 -2
  46. gcore/resources/cloud/registries/users.py +21 -22
  47. gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +20 -20
  48. gcore/resources/cloud/reserved_fixed_ips/vip.py +10 -10
  49. gcore/resources/cloud/secrets.py +14 -224
  50. gcore/resources/cloud/security_groups/rules.py +6 -6
  51. gcore/resources/cloud/security_groups/security_groups.py +70 -31
  52. gcore/resources/cloud/tasks.py +34 -32
  53. gcore/resources/cloud/users/role_assignments.py +12 -14
  54. gcore/resources/cloud/volumes.py +139 -49
  55. gcore/resources/fastedge/__init__.py +103 -0
  56. gcore/resources/fastedge/apps/__init__.py +33 -0
  57. gcore/resources/fastedge/apps/apps.py +932 -0
  58. gcore/resources/fastedge/apps/logs.py +248 -0
  59. gcore/resources/fastedge/binaries.py +286 -0
  60. gcore/resources/fastedge/fastedge.py +327 -0
  61. gcore/resources/fastedge/kv_stores.py +523 -0
  62. gcore/resources/fastedge/secrets.py +687 -0
  63. gcore/resources/fastedge/statistics.py +347 -0
  64. gcore/resources/fastedge/templates.py +652 -0
  65. gcore/resources/iam/__init__.py +47 -0
  66. gcore/resources/iam/api_tokens.py +521 -0
  67. gcore/resources/iam/iam.py +199 -0
  68. gcore/resources/iam/users.py +642 -0
  69. gcore/resources/waap/__init__.py +0 -14
  70. gcore/resources/waap/waap.py +0 -32
  71. gcore/types/cloud/__init__.py +2 -28
  72. gcore/types/cloud/baremetal/__init__.py +0 -1
  73. gcore/types/cloud/baremetal/image_list_params.py +1 -5
  74. gcore/types/cloud/baremetal/server_create_params.py +5 -9
  75. gcore/types/cloud/baremetal/server_list_params.py +1 -5
  76. gcore/types/cloud/ddos_profile.py +9 -3
  77. gcore/types/cloud/file_share_create_params.py +3 -5
  78. gcore/types/cloud/floating_ip_create_params.py +2 -4
  79. gcore/types/cloud/floating_ip_list_params.py +1 -5
  80. gcore/types/cloud/gpu_baremetal_cluster_create_params.py +3 -4
  81. gcore/types/cloud/gpu_baremetal_clusters/image_upload_params.py +2 -4
  82. gcore/types/cloud/health_monitor.py +6 -1
  83. gcore/types/cloud/inference/__init__.py +12 -8
  84. gcore/types/cloud/inference/deployment_create_params.py +224 -7
  85. gcore/types/cloud/inference/deployment_update_params.py +24 -3
  86. gcore/types/cloud/inference/deployments/__init__.py +1 -0
  87. gcore/types/cloud/inference/{inference_log.py → deployments/inference_deployment_log.py} +3 -3
  88. gcore/types/cloud/inference/inference_deployment.py +266 -0
  89. gcore/types/cloud/inference/{inference_apikey_secret.py → inference_deployment_api_key.py} +2 -2
  90. gcore/types/cloud/inference/{mlcatalog_model_card.py → inference_model.py} +2 -2
  91. gcore/types/cloud/inference/{inference_registry_credential.py → inference_registry_credentials.py} +2 -2
  92. gcore/types/cloud/inference/{inference_registry_credential_full.py → inference_registry_credentials_create.py} +2 -2
  93. gcore/types/cloud/inference/inference_secret.py +10 -3
  94. gcore/types/cloud/inference/model_list_params.py +2 -4
  95. gcore/types/cloud/{container_probe.py → inference/probe.py} +9 -9
  96. gcore/types/cloud/{container_probe_config.py → inference/probe_config.py} +5 -5
  97. gcore/types/cloud/{container_probe_exec.py → inference/probe_exec.py} +3 -3
  98. gcore/types/cloud/{container_probe_http_get.py → inference/probe_http_get.py} +3 -3
  99. gcore/types/cloud/{container_probe_tcp_socket.py → inference/probe_tcp_socket.py} +3 -3
  100. gcore/types/cloud/inference/secret_create_params.py +10 -4
  101. gcore/types/cloud/inference/secret_replace_params.py +10 -4
  102. gcore/types/cloud/{region_capacity.py → inference_region_capacity.py} +10 -3
  103. gcore/types/cloud/{region_capacity_list.py → inference_region_capacity_list.py} +4 -4
  104. gcore/types/cloud/instance_create_params.py +8 -9
  105. gcore/types/cloud/instance_list_params.py +1 -5
  106. gcore/types/cloud/instances/__init__.py +0 -2
  107. gcore/types/cloud/instances/image_create_from_volume_params.py +2 -4
  108. gcore/types/cloud/instances/image_list_params.py +1 -5
  109. gcore/types/cloud/instances/image_upload_params.py +2 -4
  110. gcore/types/cloud/load_balancer_create_params.py +8 -4
  111. gcore/types/cloud/load_balancer_list_params.py +1 -5
  112. gcore/types/cloud/load_balancer_update_params.py +24 -0
  113. gcore/types/cloud/load_balancers/pool_create_params.py +6 -1
  114. gcore/types/cloud/load_balancers/pool_update_params.py +6 -1
  115. gcore/types/cloud/load_balancers/pools/member_add_params.py +6 -1
  116. gcore/types/cloud/member.py +6 -1
  117. gcore/types/cloud/network_create_params.py +2 -3
  118. gcore/types/cloud/network_list_params.py +4 -5
  119. gcore/types/cloud/network_update_params.py +28 -2
  120. gcore/types/cloud/networks/router_list_params.py +2 -2
  121. gcore/types/cloud/networks/subnet_create_params.py +2 -3
  122. gcore/types/cloud/networks/subnet_list_params.py +1 -5
  123. gcore/types/cloud/networks/subnet_update_params.py +25 -0
  124. gcore/types/cloud/registries/__init__.py +1 -0
  125. gcore/types/cloud/registries/user_refresh_secret_response.py +31 -0
  126. gcore/types/cloud/reserved_fixed_ip_list_params.py +2 -2
  127. gcore/types/cloud/security_group_list_params.py +3 -7
  128. gcore/types/cloud/security_group_update_params.py +25 -0
  129. gcore/types/cloud/tag_update_map_param.py +2 -2
  130. gcore/types/cloud/task_list_params.py +15 -14
  131. gcore/types/cloud/volume_list_params.py +1 -5
  132. gcore/types/cloud/volume_update_params.py +29 -3
  133. gcore/types/fastedge/__init__.py +48 -0
  134. gcore/types/fastedge/app.py +81 -0
  135. gcore/types/fastedge/app_create_params.py +56 -0
  136. gcore/types/fastedge/app_list_params.py +50 -0
  137. gcore/types/fastedge/app_param.py +56 -0
  138. gcore/types/fastedge/app_replace_params.py +17 -0
  139. gcore/types/fastedge/app_short.py +60 -0
  140. gcore/types/fastedge/app_update_params.py +56 -0
  141. gcore/types/fastedge/apps/__init__.py +6 -0
  142. gcore/types/fastedge/apps/log.py +28 -0
  143. gcore/types/fastedge/apps/log_list_params.py +37 -0
  144. gcore/types/fastedge/binary.py +40 -0
  145. gcore/types/fastedge/binary_list_response.py +12 -0
  146. gcore/types/fastedge/binary_short.py +32 -0
  147. gcore/types/fastedge/call_status.py +24 -0
  148. gcore/types/fastedge/client.py +57 -0
  149. gcore/types/fastedge/duration_stats.py +30 -0
  150. gcore/types/fastedge/kv_store.py +33 -0
  151. gcore/types/fastedge/kv_store_create_params.py +23 -0
  152. gcore/types/fastedge/kv_store_get_response.py +10 -0
  153. gcore/types/fastedge/kv_store_list_params.py +12 -0
  154. gcore/types/fastedge/kv_store_list_response.py +15 -0
  155. gcore/types/fastedge/kv_store_replace_params.py +23 -0
  156. gcore/types/fastedge/kv_store_short.py +19 -0
  157. gcore/types/fastedge/kv_store_stats.py +26 -0
  158. gcore/types/fastedge/secret.py +29 -0
  159. gcore/types/fastedge/secret_create_params.py +27 -0
  160. gcore/types/fastedge/secret_create_response.py +12 -0
  161. gcore/types/fastedge/secret_delete_params.py +12 -0
  162. gcore/types/fastedge/secret_list_params.py +15 -0
  163. gcore/types/{cloud → fastedge}/secret_list_response.py +2 -6
  164. gcore/types/fastedge/secret_replace_params.py +27 -0
  165. gcore/types/fastedge/secret_short.py +21 -0
  166. gcore/types/fastedge/secret_update_params.py +27 -0
  167. gcore/types/fastedge/statistic_get_call_series_params.py +28 -0
  168. gcore/types/fastedge/statistic_get_call_series_response.py +12 -0
  169. gcore/types/fastedge/statistic_get_duration_series_params.py +28 -0
  170. gcore/types/fastedge/statistic_get_duration_series_response.py +12 -0
  171. gcore/types/fastedge/template.py +31 -0
  172. gcore/types/fastedge/template_create_params.py +30 -0
  173. gcore/types/fastedge/template_delete_params.py +12 -0
  174. gcore/types/fastedge/template_list_params.py +25 -0
  175. gcore/types/fastedge/template_parameter.py +22 -0
  176. gcore/types/fastedge/template_parameter_param.py +21 -0
  177. gcore/types/fastedge/template_replace_params.py +30 -0
  178. gcore/types/fastedge/template_short.py +27 -0
  179. gcore/types/iam/__init__.py +17 -0
  180. gcore/types/iam/account_overview.py +488 -0
  181. gcore/types/iam/api_token.py +78 -0
  182. gcore/types/iam/api_token_create.py +15 -0
  183. gcore/types/iam/api_token_create_params.py +42 -0
  184. gcore/types/iam/api_token_list.py +81 -0
  185. gcore/types/iam/api_token_list_params.py +41 -0
  186. gcore/types/iam/user.py +86 -0
  187. gcore/types/iam/user_detailed.py +104 -0
  188. gcore/types/iam/user_invite.py +15 -0
  189. gcore/types/iam/user_invite_params.py +37 -0
  190. gcore/types/iam/user_list_params.py +15 -0
  191. gcore/types/iam/user_update.py +104 -0
  192. gcore/types/iam/user_update_params.py +52 -0
  193. gcore/types/waap/__init__.py +0 -1
  194. gcore/types/waap/domains/custom_rule_create_params.py +7 -3
  195. gcore/types/waap/domains/custom_rule_update_params.py +7 -3
  196. gcore/types/waap/waap_custom_rule.py +7 -3
  197. {gcore-0.3.0.dist-info → gcore-0.5.0.dist-info}/METADATA +44 -5
  198. {gcore-0.3.0.dist-info → gcore-0.5.0.dist-info}/RECORD +200 -151
  199. gcore/resources/waap/clients.py +0 -135
  200. gcore/types/cloud/aws_iam_data.py +0 -13
  201. gcore/types/cloud/aws_iam_data_param.py +0 -15
  202. gcore/types/cloud/baremetal/flavor_list_suitable_params.py +0 -22
  203. gcore/types/cloud/capacity.py +0 -13
  204. gcore/types/cloud/container_probe_config_create_param.py +0 -17
  205. gcore/types/cloud/container_probe_create_param.py +0 -38
  206. gcore/types/cloud/container_probe_exec_create_param.py +0 -13
  207. gcore/types/cloud/container_probe_http_get_create_param.py +0 -25
  208. gcore/types/cloud/container_probe_tcp_socket_create_param.py +0 -12
  209. gcore/types/cloud/container_scale.py +0 -25
  210. gcore/types/cloud/container_scale_trigger_rate.py +0 -13
  211. gcore/types/cloud/container_scale_trigger_sqs.py +0 -33
  212. gcore/types/cloud/container_scale_trigger_threshold.py +0 -10
  213. gcore/types/cloud/container_scale_triggers.py +0 -36
  214. gcore/types/cloud/deploy_status.py +0 -13
  215. gcore/types/cloud/inference/container.py +0 -26
  216. gcore/types/cloud/inference/inference.py +0 -95
  217. gcore/types/cloud/inference/mlcatalog_order_by_choices.py +0 -7
  218. gcore/types/cloud/inference_probes.py +0 -19
  219. gcore/types/cloud/ingress_opts_out.py +0 -16
  220. gcore/types/cloud/ingress_opts_param.py +0 -18
  221. gcore/types/cloud/instances/flavor_list_for_resize_params.py +0 -16
  222. gcore/types/cloud/instances/flavor_list_suitable_params.py +0 -59
  223. gcore/types/cloud/secret_create_params.py +0 -66
  224. gcore/types/waap/client_me_response.py +0 -34
  225. {gcore-0.3.0.dist-info → gcore-0.5.0.dist-info}/WHEEL +0 -0
  226. {gcore-0.3.0.dist-info → gcore-0.5.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, Iterable, Optional
5
+ from typing import Dict, List, Iterable, Optional
6
6
  from typing_extensions import Literal
7
7
 
8
8
  import httpx
@@ -64,7 +64,7 @@ class SubnetsResource(SyncAPIResource):
64
64
  host_routes: Optional[Iterable[subnet_create_params.HostRoute]] | NotGiven = NOT_GIVEN,
65
65
  ip_version: IPVersion | NotGiven = NOT_GIVEN,
66
66
  router_id_to_connect: Optional[str] | NotGiven = NOT_GIVEN,
67
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
67
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
68
68
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
69
69
  # The extra values given here take precedence over values defined on the client or passed to this method.
70
70
  extra_headers: Headers | None = None,
@@ -159,6 +159,7 @@ class SubnetsResource(SyncAPIResource):
159
159
  gateway_ip: Optional[str] | NotGiven = NOT_GIVEN,
160
160
  host_routes: Optional[Iterable[subnet_update_params.HostRoute]] | NotGiven = NOT_GIVEN,
161
161
  name: Optional[str] | NotGiven = NOT_GIVEN,
162
+ tags: Optional[TagUpdateMapParam] | NotGiven = NOT_GIVEN,
162
163
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
163
164
  # The extra values given here take precedence over values defined on the client or passed to this method.
164
165
  extra_headers: Headers | None = None,
@@ -167,7 +168,7 @@ class SubnetsResource(SyncAPIResource):
167
168
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
168
169
  ) -> Subnet:
169
170
  """
170
- Change subnet properties
171
+ Update subnet
171
172
 
172
173
  Args:
173
174
  project_id: Project ID
@@ -189,6 +190,26 @@ class SubnetsResource(SyncAPIResource):
189
190
 
190
191
  name: Name
191
192
 
193
+ tags: Update key-value tags using JSON Merge Patch semantics (RFC 7386). Provide
194
+ key-value pairs to add or update tags. Set tag values to `null` to remove tags.
195
+ Unspecified tags remain unchanged. Read-only tags are always preserved and
196
+ cannot be modified. **Examples:**
197
+
198
+ - **Add/update tags:**
199
+ `{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
200
+ updates existing ones.
201
+ - **Delete tags:** `{'tags': {'`old_tag`': null}}` removes specific tags.
202
+ - **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
203
+ tags are preserved).
204
+ - **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
205
+ specified tags.
206
+ - **Mixed operations:**
207
+ `{'tags': {'environment': 'production', '`cost_center`': 'engineering', '`deprecated_tag`': null}}`
208
+ adds/updates 'environment' and '`cost_center`' while removing
209
+ '`deprecated_tag`', preserving other existing tags.
210
+ - **Replace all:** first delete existing tags with null values, then add new
211
+ ones in the same request.
212
+
192
213
  extra_headers: Send extra headers
193
214
 
194
215
  extra_query: Add additional query parameters to the request
@@ -212,6 +233,7 @@ class SubnetsResource(SyncAPIResource):
212
233
  "gateway_ip": gateway_ip,
213
234
  "host_routes": host_routes,
214
235
  "name": name,
236
+ "tags": tags,
215
237
  },
216
238
  subnet_update_params.SubnetUpdateParams,
217
239
  ),
@@ -274,9 +296,7 @@ class SubnetsResource(SyncAPIResource):
274
296
 
275
297
  tag_key: Optional. Filter by tag keys. ?`tag_key`=key1&`tag_key`=key2
276
298
 
277
- tag_key_value: Optional. Filter by tag key-value pairs. curl -G --data-urlencode
278
- "`tag_key_value`={"key": "value"}" --url
279
- "https://example.com/cloud/v1/resource/1/1"
299
+ tag_key_value: Optional. Filter by tag key-value pairs.
280
300
 
281
301
  extra_headers: Send extra headers
282
302
 
@@ -440,7 +460,7 @@ class AsyncSubnetsResource(AsyncAPIResource):
440
460
  host_routes: Optional[Iterable[subnet_create_params.HostRoute]] | NotGiven = NOT_GIVEN,
441
461
  ip_version: IPVersion | NotGiven = NOT_GIVEN,
442
462
  router_id_to_connect: Optional[str] | NotGiven = NOT_GIVEN,
443
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
463
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
444
464
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
445
465
  # The extra values given here take precedence over values defined on the client or passed to this method.
446
466
  extra_headers: Headers | None = None,
@@ -535,6 +555,7 @@ class AsyncSubnetsResource(AsyncAPIResource):
535
555
  gateway_ip: Optional[str] | NotGiven = NOT_GIVEN,
536
556
  host_routes: Optional[Iterable[subnet_update_params.HostRoute]] | NotGiven = NOT_GIVEN,
537
557
  name: Optional[str] | NotGiven = NOT_GIVEN,
558
+ tags: Optional[TagUpdateMapParam] | NotGiven = NOT_GIVEN,
538
559
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
539
560
  # The extra values given here take precedence over values defined on the client or passed to this method.
540
561
  extra_headers: Headers | None = None,
@@ -543,7 +564,7 @@ class AsyncSubnetsResource(AsyncAPIResource):
543
564
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
544
565
  ) -> Subnet:
545
566
  """
546
- Change subnet properties
567
+ Update subnet
547
568
 
548
569
  Args:
549
570
  project_id: Project ID
@@ -565,6 +586,26 @@ class AsyncSubnetsResource(AsyncAPIResource):
565
586
 
566
587
  name: Name
567
588
 
589
+ tags: Update key-value tags using JSON Merge Patch semantics (RFC 7386). Provide
590
+ key-value pairs to add or update tags. Set tag values to `null` to remove tags.
591
+ Unspecified tags remain unchanged. Read-only tags are always preserved and
592
+ cannot be modified. **Examples:**
593
+
594
+ - **Add/update tags:**
595
+ `{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
596
+ updates existing ones.
597
+ - **Delete tags:** `{'tags': {'`old_tag`': null}}` removes specific tags.
598
+ - **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
599
+ tags are preserved).
600
+ - **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
601
+ specified tags.
602
+ - **Mixed operations:**
603
+ `{'tags': {'environment': 'production', '`cost_center`': 'engineering', '`deprecated_tag`': null}}`
604
+ adds/updates 'environment' and '`cost_center`' while removing
605
+ '`deprecated_tag`', preserving other existing tags.
606
+ - **Replace all:** first delete existing tags with null values, then add new
607
+ ones in the same request.
608
+
568
609
  extra_headers: Send extra headers
569
610
 
570
611
  extra_query: Add additional query parameters to the request
@@ -588,6 +629,7 @@ class AsyncSubnetsResource(AsyncAPIResource):
588
629
  "gateway_ip": gateway_ip,
589
630
  "host_routes": host_routes,
590
631
  "name": name,
632
+ "tags": tags,
591
633
  },
592
634
  subnet_update_params.SubnetUpdateParams,
593
635
  ),
@@ -650,9 +692,7 @@ class AsyncSubnetsResource(AsyncAPIResource):
650
692
 
651
693
  tag_key: Optional. Filter by tag keys. ?`tag_key`=key1&`tag_key`=key2
652
694
 
653
- tag_key_value: Optional. Filter by tag key-value pairs. curl -G --data-urlencode
654
- "`tag_key_value`={"key": "value"}" --url
655
- "https://example.com/cloud/v1/resource/1/1"
695
+ tag_key_value: Optional. Filter by tag key-value pairs.
656
696
 
657
697
  extra_headers: Send extra headers
658
698
 
@@ -60,12 +60,13 @@ class ProjectsResource(SyncAPIResource):
60
60
  extra_body: Body | None = None,
61
61
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
62
62
  ) -> Project:
63
- """Create project
63
+ """Create a new project for a client.
64
64
 
65
- Args:
66
- name: Unique project name for a client.
65
+ Project management must be enabled to perform
66
+ this operation.
67
67
 
68
- Each client always has one "default" project.
68
+ Args:
69
+ name: Unique project name for a client. Each client always has one "default" project.
69
70
 
70
71
  client_id: ID associated with the client.
71
72
 
@@ -114,8 +115,10 @@ class ProjectsResource(SyncAPIResource):
114
115
  extra_body: Body | None = None,
115
116
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
116
117
  ) -> SyncOffsetPage[Project]:
117
- """
118
- List projects
118
+ """Retrieve a list of projects for a client.
119
+
120
+ Results can be filtered by name and
121
+ ordered by various fields.
119
122
 
120
123
  Args:
121
124
  client_id: Client ID filter for administrators.
@@ -172,9 +175,11 @@ class ProjectsResource(SyncAPIResource):
172
175
  extra_body: Body | None = None,
173
176
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
174
177
  ) -> TaskIDList:
175
- """
176
- All cloud resources in all regions that belong to the project will be deleted
177
- and will not be recoverable
178
+ """Delete a project and all its associated cloud resources across all regions.
179
+
180
+ This
181
+ operation is irreversible and cannot be undone. Default projects cannot be
182
+ deleted.
178
183
 
179
184
  Args:
180
185
  extra_headers: Send extra headers
@@ -207,7 +212,7 @@ class ProjectsResource(SyncAPIResource):
207
212
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
208
213
  ) -> Project:
209
214
  """
210
- Get Project
215
+ Retrieve detailed information about a specific project.
211
216
 
212
217
  Args:
213
218
  extra_headers: Send extra headers
@@ -241,8 +246,10 @@ class ProjectsResource(SyncAPIResource):
241
246
  extra_body: Body | None = None,
242
247
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
243
248
  ) -> Project:
244
- """
245
- Update Project
249
+ """Update project name and description.
250
+
251
+ Project management must be enabled to
252
+ perform this operation.
246
253
 
247
254
  Args:
248
255
  name: Name of the entity, following a specific format.
@@ -309,12 +316,13 @@ class AsyncProjectsResource(AsyncAPIResource):
309
316
  extra_body: Body | None = None,
310
317
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
311
318
  ) -> Project:
312
- """Create project
319
+ """Create a new project for a client.
313
320
 
314
- Args:
315
- name: Unique project name for a client.
321
+ Project management must be enabled to perform
322
+ this operation.
316
323
 
317
- Each client always has one "default" project.
324
+ Args:
325
+ name: Unique project name for a client. Each client always has one "default" project.
318
326
 
319
327
  client_id: ID associated with the client.
320
328
 
@@ -363,8 +371,10 @@ class AsyncProjectsResource(AsyncAPIResource):
363
371
  extra_body: Body | None = None,
364
372
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
365
373
  ) -> AsyncPaginator[Project, AsyncOffsetPage[Project]]:
366
- """
367
- List projects
374
+ """Retrieve a list of projects for a client.
375
+
376
+ Results can be filtered by name and
377
+ ordered by various fields.
368
378
 
369
379
  Args:
370
380
  client_id: Client ID filter for administrators.
@@ -421,9 +431,11 @@ class AsyncProjectsResource(AsyncAPIResource):
421
431
  extra_body: Body | None = None,
422
432
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
423
433
  ) -> TaskIDList:
424
- """
425
- All cloud resources in all regions that belong to the project will be deleted
426
- and will not be recoverable
434
+ """Delete a project and all its associated cloud resources across all regions.
435
+
436
+ This
437
+ operation is irreversible and cannot be undone. Default projects cannot be
438
+ deleted.
427
439
 
428
440
  Args:
429
441
  extra_headers: Send extra headers
@@ -456,7 +468,7 @@ class AsyncProjectsResource(AsyncAPIResource):
456
468
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
457
469
  ) -> Project:
458
470
  """
459
- Get Project
471
+ Retrieve detailed information about a specific project.
460
472
 
461
473
  Args:
462
474
  extra_headers: Send extra headers
@@ -490,8 +502,10 @@ class AsyncProjectsResource(AsyncAPIResource):
490
502
  extra_body: Body | None = None,
491
503
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
492
504
  ) -> Project:
493
- """
494
- Update Project
505
+ """Update project name and description.
506
+
507
+ Project management must be enabled to
508
+ perform this operation.
495
509
 
496
510
  Args:
497
511
  name: Name of the entity, following a specific format.
@@ -63,7 +63,7 @@ class QuotasResource(SyncAPIResource):
63
63
  extra_body: Body | None = None,
64
64
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
65
65
  ) -> QuotaGetAllResponse:
66
- """Get combined client quotas, regional and global."""
66
+ """Get combined client quotas, including both regional and global quotas."""
67
67
  return self._get(
68
68
  "/cloud/v2/client_quotas",
69
69
  options=make_request_options(
@@ -85,7 +85,7 @@ class QuotasResource(SyncAPIResource):
85
85
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
86
86
  ) -> QuotaGetByRegionResponse:
87
87
  """
88
- Get a quota by region
88
+ Get quotas for a specific region and client.
89
89
 
90
90
  Args:
91
91
  client_id: Client ID
@@ -122,7 +122,7 @@ class QuotasResource(SyncAPIResource):
122
122
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
123
123
  ) -> QuotaGetGlobalResponse:
124
124
  """
125
- Get global quota
125
+ Get global quotas for a specific client.
126
126
 
127
127
  Args:
128
128
  client_id: Client ID
@@ -178,7 +178,7 @@ class AsyncQuotasResource(AsyncAPIResource):
178
178
  extra_body: Body | None = None,
179
179
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
180
180
  ) -> QuotaGetAllResponse:
181
- """Get combined client quotas, regional and global."""
181
+ """Get combined client quotas, including both regional and global quotas."""
182
182
  return await self._get(
183
183
  "/cloud/v2/client_quotas",
184
184
  options=make_request_options(
@@ -200,7 +200,7 @@ class AsyncQuotasResource(AsyncAPIResource):
200
200
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
201
201
  ) -> QuotaGetByRegionResponse:
202
202
  """
203
- Get a quota by region
203
+ Get quotas for a specific region and client.
204
204
 
205
205
  Args:
206
206
  client_id: Client ID
@@ -237,7 +237,7 @@ class AsyncQuotasResource(AsyncAPIResource):
237
237
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
238
238
  ) -> QuotaGetGlobalResponse:
239
239
  """
240
- Get global quota
240
+ Get global quotas for a specific client.
241
241
 
242
242
  Args:
243
243
  client_id: Client ID
@@ -60,7 +60,7 @@ class RequestsResource(SyncAPIResource):
60
60
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
61
61
  ) -> None:
62
62
  """
63
- Create request to change quotas
63
+ Create a request to change current quotas.
64
64
 
65
65
  Args:
66
66
  description: Describe the reason, in general terms.
@@ -108,7 +108,7 @@ class RequestsResource(SyncAPIResource):
108
108
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
109
109
  ) -> SyncOffsetPage[RequestListResponse]:
110
110
  """
111
- Returns a list of sent requests to change current quotas and their statuses
111
+ Get a list of sent requests to change current quotas and their statuses.
112
112
 
113
113
  Args:
114
114
  limit: Optional. Limit the number of returned items
@@ -158,7 +158,7 @@ class RequestsResource(SyncAPIResource):
158
158
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
159
159
  ) -> None:
160
160
  """
161
- Delete request to change quotas
161
+ Delete a specific quota limit request.
162
162
 
163
163
  Args:
164
164
  request_id: LimitRequest ID
@@ -194,7 +194,7 @@ class RequestsResource(SyncAPIResource):
194
194
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
195
195
  ) -> RequestGetResponse:
196
196
  """
197
- Get request to change quota limits.
197
+ Get detailed information about a specific quota limit request.
198
198
 
199
199
  Args:
200
200
  request_id: LimitRequest ID
@@ -252,7 +252,7 @@ class AsyncRequestsResource(AsyncAPIResource):
252
252
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
253
253
  ) -> None:
254
254
  """
255
- Create request to change quotas
255
+ Create a request to change current quotas.
256
256
 
257
257
  Args:
258
258
  description: Describe the reason, in general terms.
@@ -300,7 +300,7 @@ class AsyncRequestsResource(AsyncAPIResource):
300
300
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
301
301
  ) -> AsyncPaginator[RequestListResponse, AsyncOffsetPage[RequestListResponse]]:
302
302
  """
303
- Returns a list of sent requests to change current quotas and their statuses
303
+ Get a list of sent requests to change current quotas and their statuses.
304
304
 
305
305
  Args:
306
306
  limit: Optional. Limit the number of returned items
@@ -350,7 +350,7 @@ class AsyncRequestsResource(AsyncAPIResource):
350
350
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
351
351
  ) -> None:
352
352
  """
353
- Delete request to change quotas
353
+ Delete a specific quota limit request.
354
354
 
355
355
  Args:
356
356
  request_id: LimitRequest ID
@@ -386,7 +386,7 @@ class AsyncRequestsResource(AsyncAPIResource):
386
386
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
387
387
  ) -> RequestGetResponse:
388
388
  """
389
- Get request to change quota limits.
389
+ Get detailed information about a specific quota limit request.
390
390
 
391
391
  Args:
392
392
  request_id: LimitRequest ID
@@ -54,7 +54,7 @@ class ArtifactsResource(SyncAPIResource):
54
54
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
55
55
  ) -> RegistryArtifactList:
56
56
  """
57
- List artifacts
57
+ List all artifacts in a specific repository.
58
58
 
59
59
  Args:
60
60
  extra_headers: Send extra headers
@@ -95,7 +95,7 @@ class ArtifactsResource(SyncAPIResource):
95
95
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
96
96
  ) -> None:
97
97
  """
98
- Delete an artifact
98
+ Delete a specific artifact from a repository.
99
99
 
100
100
  Args:
101
101
  extra_headers: Send extra headers
@@ -159,7 +159,7 @@ class AsyncArtifactsResource(AsyncAPIResource):
159
159
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
160
160
  ) -> RegistryArtifactList:
161
161
  """
162
- List artifacts
162
+ List all artifacts in a specific repository.
163
163
 
164
164
  Args:
165
165
  extra_headers: Send extra headers
@@ -200,7 +200,7 @@ class AsyncArtifactsResource(AsyncAPIResource):
200
200
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
201
201
  ) -> None:
202
202
  """
203
- Delete an artifact
203
+ Delete a specific artifact from a repository.
204
204
 
205
205
  Args:
206
206
  extra_headers: Send extra headers
@@ -104,12 +104,11 @@ class RegistriesResource(SyncAPIResource):
104
104
  extra_body: Body | None = None,
105
105
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
106
106
  ) -> Registry:
107
- """Create a registry
107
+ """
108
+ Create a new container registry with the specified configuration.
108
109
 
109
110
  Args:
110
- name: A name for the container registry.
111
-
112
- Should be in lowercase, consisting only of
111
+ name: A name for the container registry. Should be in lowercase, consisting only of
113
112
  numbers, letters and -, with maximum length of 24 characters
114
113
 
115
114
  storage_limit: Registry storage limit, GiB
@@ -154,7 +153,7 @@ class RegistriesResource(SyncAPIResource):
154
153
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
155
154
  ) -> RegistryList:
156
155
  """
157
- Get registry list
156
+ List all container registries in the specified project and region.
158
157
 
159
158
  Args:
160
159
  extra_headers: Send extra headers
@@ -191,7 +190,7 @@ class RegistriesResource(SyncAPIResource):
191
190
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
192
191
  ) -> None:
193
192
  """
194
- Delete a registry
193
+ Delete a specific container registry and all its associated resources.
195
194
 
196
195
  Args:
197
196
  extra_headers: Send extra headers
@@ -229,7 +228,7 @@ class RegistriesResource(SyncAPIResource):
229
228
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
230
229
  ) -> Registry:
231
230
  """
232
- Get a registry
231
+ Get detailed information about a specific container registry.
233
232
 
234
233
  Args:
235
234
  extra_headers: Send extra headers
@@ -267,7 +266,7 @@ class RegistriesResource(SyncAPIResource):
267
266
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
268
267
  ) -> Registry:
269
268
  """
270
- Resize a registry
269
+ Update the size of a container registry.
271
270
 
272
271
  Args:
273
272
  storage_limit: Registry storage limit, GiB
@@ -344,12 +343,11 @@ class AsyncRegistriesResource(AsyncAPIResource):
344
343
  extra_body: Body | None = None,
345
344
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
346
345
  ) -> Registry:
347
- """Create a registry
346
+ """
347
+ Create a new container registry with the specified configuration.
348
348
 
349
349
  Args:
350
- name: A name for the container registry.
351
-
352
- Should be in lowercase, consisting only of
350
+ name: A name for the container registry. Should be in lowercase, consisting only of
353
351
  numbers, letters and -, with maximum length of 24 characters
354
352
 
355
353
  storage_limit: Registry storage limit, GiB
@@ -394,7 +392,7 @@ class AsyncRegistriesResource(AsyncAPIResource):
394
392
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
395
393
  ) -> RegistryList:
396
394
  """
397
- Get registry list
395
+ List all container registries in the specified project and region.
398
396
 
399
397
  Args:
400
398
  extra_headers: Send extra headers
@@ -431,7 +429,7 @@ class AsyncRegistriesResource(AsyncAPIResource):
431
429
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
432
430
  ) -> None:
433
431
  """
434
- Delete a registry
432
+ Delete a specific container registry and all its associated resources.
435
433
 
436
434
  Args:
437
435
  extra_headers: Send extra headers
@@ -469,7 +467,7 @@ class AsyncRegistriesResource(AsyncAPIResource):
469
467
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
470
468
  ) -> Registry:
471
469
  """
472
- Get a registry
470
+ Get detailed information about a specific container registry.
473
471
 
474
472
  Args:
475
473
  extra_headers: Send extra headers
@@ -507,7 +505,7 @@ class AsyncRegistriesResource(AsyncAPIResource):
507
505
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
508
506
  ) -> Registry:
509
507
  """
510
- Resize a registry
508
+ Update the size of a container registry.
511
509
 
512
510
  Args:
513
511
  storage_limit: Registry storage limit, GiB
@@ -53,7 +53,7 @@ class RepositoriesResource(SyncAPIResource):
53
53
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
54
54
  ) -> RegistryRepositoryList:
55
55
  """
56
- List repositories
56
+ List all repositories in the container registry.
57
57
 
58
58
  Args:
59
59
  extra_headers: Send extra headers
@@ -91,7 +91,7 @@ class RepositoriesResource(SyncAPIResource):
91
91
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
92
92
  ) -> None:
93
93
  """
94
- Delete a repository
94
+ Delete a specific repository from the container registry.
95
95
 
96
96
  Args:
97
97
  extra_headers: Send extra headers
@@ -152,7 +152,7 @@ class AsyncRepositoriesResource(AsyncAPIResource):
152
152
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
153
153
  ) -> RegistryRepositoryList:
154
154
  """
155
- List repositories
155
+ List all repositories in the container registry.
156
156
 
157
157
  Args:
158
158
  extra_headers: Send extra headers
@@ -190,7 +190,7 @@ class AsyncRepositoriesResource(AsyncAPIResource):
190
190
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
191
191
  ) -> None:
192
192
  """
193
- Delete a repository
193
+ Delete a specific repository from the container registry.
194
194
 
195
195
  Args:
196
196
  extra_headers: Send extra headers
@@ -55,7 +55,7 @@ class TagsResource(SyncAPIResource):
55
55
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
56
56
  ) -> None:
57
57
  """
58
- Delete a tag
58
+ Delete a specific tag from an artifact.
59
59
 
60
60
  Args:
61
61
  extra_headers: Send extra headers
@@ -123,7 +123,7 @@ class AsyncTagsResource(AsyncAPIResource):
123
123
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
124
124
  ) -> None:
125
125
  """
126
- Delete a tag
126
+ Delete a specific tag from an artifact.
127
127
 
128
128
  Args:
129
129
  extra_headers: Send extra headers