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
@@ -15,7 +15,7 @@ from ...._response import (
15
15
  async_to_streamed_response_wrapper,
16
16
  )
17
17
  from ...._base_client import make_request_options
18
- from ....types.cloud.baremetal import flavor_list_params, flavor_list_suitable_params
18
+ from ....types.cloud.baremetal import flavor_list_params
19
19
  from ....types.cloud.baremetal_flavor_list import BaremetalFlavorList
20
20
 
21
21
  __all__ = ["FlavorsResource", "AsyncFlavorsResource"]
@@ -59,11 +59,12 @@ class FlavorsResource(SyncAPIResource):
59
59
  extra_body: Body | None = None,
60
60
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
61
61
  ) -> BaremetalFlavorList:
62
- """Retrieve a list of flavors.
62
+ """List all available bare metal flavors in the specified project and region.
63
63
 
64
- When the `include_prices` query parameter is
65
- specified, the list shows prices. A client in trial mode gets all price values
66
- as 0. If you get Pricing Error contact the support
64
+ When
65
+ `include_prices` is specified, the list includes pricing information. A client
66
+ in trial mode gets all price values as 0. If you get Pricing Error contact the
67
+ support.
67
68
 
68
69
  Args:
69
70
  disabled: Flag for filtering disabled flavors in the region. Defaults to true
@@ -113,64 +114,6 @@ class FlavorsResource(SyncAPIResource):
113
114
  cast_to=BaremetalFlavorList,
114
115
  )
115
116
 
116
- def list_suitable(
117
- self,
118
- *,
119
- project_id: int | None = None,
120
- region_id: int | None = None,
121
- include_prices: bool | NotGiven = NOT_GIVEN,
122
- apptemplate_id: str | NotGiven = NOT_GIVEN,
123
- image_id: str | NotGiven = NOT_GIVEN,
124
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
125
- # The extra values given here take precedence over values defined on the client or passed to this method.
126
- extra_headers: Headers | None = None,
127
- extra_query: Query | None = None,
128
- extra_body: Body | None = None,
129
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
130
- ) -> BaremetalFlavorList:
131
- """
132
- List suitalbe flavors for bare metal server creation
133
-
134
- Args:
135
- include_prices: Set to true if flavor listing should include flavor prices
136
-
137
- apptemplate_id: Apptemplate ID
138
-
139
- image_id: Image ID
140
-
141
- extra_headers: Send extra headers
142
-
143
- extra_query: Add additional query parameters to the request
144
-
145
- extra_body: Add additional JSON properties to the request
146
-
147
- timeout: Override the client-level default timeout for this request, in seconds
148
- """
149
- if project_id is None:
150
- project_id = self._client._get_cloud_project_id_path_param()
151
- if region_id is None:
152
- region_id = self._client._get_cloud_region_id_path_param()
153
- return self._post(
154
- f"/cloud/v1/bminstances/{project_id}/{region_id}/available_flavors",
155
- body=maybe_transform(
156
- {
157
- "apptemplate_id": apptemplate_id,
158
- "image_id": image_id,
159
- },
160
- flavor_list_suitable_params.FlavorListSuitableParams,
161
- ),
162
- options=make_request_options(
163
- extra_headers=extra_headers,
164
- extra_query=extra_query,
165
- extra_body=extra_body,
166
- timeout=timeout,
167
- query=maybe_transform(
168
- {"include_prices": include_prices}, flavor_list_suitable_params.FlavorListSuitableParams
169
- ),
170
- ),
171
- cast_to=BaremetalFlavorList,
172
- )
173
-
174
117
 
175
118
  class AsyncFlavorsResource(AsyncAPIResource):
176
119
  @cached_property
@@ -210,11 +153,12 @@ class AsyncFlavorsResource(AsyncAPIResource):
210
153
  extra_body: Body | None = None,
211
154
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
212
155
  ) -> BaremetalFlavorList:
213
- """Retrieve a list of flavors.
156
+ """List all available bare metal flavors in the specified project and region.
214
157
 
215
- When the `include_prices` query parameter is
216
- specified, the list shows prices. A client in trial mode gets all price values
217
- as 0. If you get Pricing Error contact the support
158
+ When
159
+ `include_prices` is specified, the list includes pricing information. A client
160
+ in trial mode gets all price values as 0. If you get Pricing Error contact the
161
+ support.
218
162
 
219
163
  Args:
220
164
  disabled: Flag for filtering disabled flavors in the region. Defaults to true
@@ -264,64 +208,6 @@ class AsyncFlavorsResource(AsyncAPIResource):
264
208
  cast_to=BaremetalFlavorList,
265
209
  )
266
210
 
267
- async def list_suitable(
268
- self,
269
- *,
270
- project_id: int | None = None,
271
- region_id: int | None = None,
272
- include_prices: bool | NotGiven = NOT_GIVEN,
273
- apptemplate_id: str | NotGiven = NOT_GIVEN,
274
- image_id: str | NotGiven = NOT_GIVEN,
275
- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
276
- # The extra values given here take precedence over values defined on the client or passed to this method.
277
- extra_headers: Headers | None = None,
278
- extra_query: Query | None = None,
279
- extra_body: Body | None = None,
280
- timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
281
- ) -> BaremetalFlavorList:
282
- """
283
- List suitalbe flavors for bare metal server creation
284
-
285
- Args:
286
- include_prices: Set to true if flavor listing should include flavor prices
287
-
288
- apptemplate_id: Apptemplate ID
289
-
290
- image_id: Image ID
291
-
292
- extra_headers: Send extra headers
293
-
294
- extra_query: Add additional query parameters to the request
295
-
296
- extra_body: Add additional JSON properties to the request
297
-
298
- timeout: Override the client-level default timeout for this request, in seconds
299
- """
300
- if project_id is None:
301
- project_id = self._client._get_cloud_project_id_path_param()
302
- if region_id is None:
303
- region_id = self._client._get_cloud_region_id_path_param()
304
- return await self._post(
305
- f"/cloud/v1/bminstances/{project_id}/{region_id}/available_flavors",
306
- body=await async_maybe_transform(
307
- {
308
- "apptemplate_id": apptemplate_id,
309
- "image_id": image_id,
310
- },
311
- flavor_list_suitable_params.FlavorListSuitableParams,
312
- ),
313
- options=make_request_options(
314
- extra_headers=extra_headers,
315
- extra_query=extra_query,
316
- extra_body=extra_body,
317
- timeout=timeout,
318
- query=await async_maybe_transform(
319
- {"include_prices": include_prices}, flavor_list_suitable_params.FlavorListSuitableParams
320
- ),
321
- ),
322
- cast_to=BaremetalFlavorList,
323
- )
324
-
325
211
 
326
212
  class FlavorsResourceWithRawResponse:
327
213
  def __init__(self, flavors: FlavorsResource) -> None:
@@ -330,9 +216,6 @@ class FlavorsResourceWithRawResponse:
330
216
  self.list = to_raw_response_wrapper(
331
217
  flavors.list,
332
218
  )
333
- self.list_suitable = to_raw_response_wrapper(
334
- flavors.list_suitable,
335
- )
336
219
 
337
220
 
338
221
  class AsyncFlavorsResourceWithRawResponse:
@@ -342,9 +225,6 @@ class AsyncFlavorsResourceWithRawResponse:
342
225
  self.list = async_to_raw_response_wrapper(
343
226
  flavors.list,
344
227
  )
345
- self.list_suitable = async_to_raw_response_wrapper(
346
- flavors.list_suitable,
347
- )
348
228
 
349
229
 
350
230
  class FlavorsResourceWithStreamingResponse:
@@ -354,9 +234,6 @@ class FlavorsResourceWithStreamingResponse:
354
234
  self.list = to_streamed_response_wrapper(
355
235
  flavors.list,
356
236
  )
357
- self.list_suitable = to_streamed_response_wrapper(
358
- flavors.list_suitable,
359
- )
360
237
 
361
238
 
362
239
  class AsyncFlavorsResourceWithStreamingResponse:
@@ -366,6 +243,3 @@ class AsyncFlavorsResourceWithStreamingResponse:
366
243
  self.list = async_to_streamed_response_wrapper(
367
244
  flavors.list,
368
245
  )
369
- self.list_suitable = async_to_streamed_response_wrapper(
370
- flavors.list_suitable,
371
- )
@@ -61,10 +61,11 @@ class ImagesResource(SyncAPIResource):
61
61
  extra_body: Body | None = None,
62
62
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
63
63
  ) -> ImageList:
64
- """Retrieve the available images list for bare metal servers.
64
+ """Retrieve a list of available images for bare metal servers.
65
65
 
66
- Returned entities may
67
- or may not be owned by the project
66
+ The list can be
67
+ filtered by visibility, tags, and other parameters. Returned entities may or may
68
+ not be owned by the project.
68
69
 
69
70
  Args:
70
71
  include_prices: Show price
@@ -73,9 +74,7 @@ class ImagesResource(SyncAPIResource):
73
74
 
74
75
  tag_key: Filter by tag keys.
75
76
 
76
- tag_key_value: Filter by tag key-value pairs. Must be a valid JSON string. 'curl -G
77
- --data-urlencode '`tag_key_value`={"key": "value"}' --url
78
- 'http://localhost:1111/v1/images/1/1'"
77
+ tag_key_value: Filter by tag key-value pairs. Must be a valid JSON string.
79
78
 
80
79
  visibility: Image visibility. Globally visible images are public
81
80
 
@@ -150,10 +149,11 @@ class AsyncImagesResource(AsyncAPIResource):
150
149
  extra_body: Body | None = None,
151
150
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
152
151
  ) -> ImageList:
153
- """Retrieve the available images list for bare metal servers.
152
+ """Retrieve a list of available images for bare metal servers.
154
153
 
155
- Returned entities may
156
- or may not be owned by the project
154
+ The list can be
155
+ filtered by visibility, tags, and other parameters. Returned entities may or may
156
+ not be owned by the project.
157
157
 
158
158
  Args:
159
159
  include_prices: Show price
@@ -162,9 +162,7 @@ class AsyncImagesResource(AsyncAPIResource):
162
162
 
163
163
  tag_key: Filter by tag keys.
164
164
 
165
- tag_key_value: Filter by tag key-value pairs. Must be a valid JSON string. 'curl -G
166
- --data-urlencode '`tag_key_value`={"key": "value"}' --url
167
- 'http://localhost:1111/v1/images/1/1'"
165
+ tag_key_value: Filter by tag key-value pairs. Must be a valid JSON string.
168
166
 
169
167
  visibility: Image visibility. Globally visible images are public
170
168
 
@@ -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
8
8
 
@@ -22,7 +22,6 @@ from ....pagination import SyncOffsetPage, AsyncOffsetPage
22
22
  from ...._base_client import AsyncPaginator, make_request_options
23
23
  from ....types.cloud.baremetal import server_list_params, server_create_params, server_rebuild_params
24
24
  from ....types.cloud.task_id_list import TaskIDList
25
- from ....types.cloud.tag_update_map_param import TagUpdateMapParam
26
25
  from ....types.cloud.baremetal.baremetal_server import BaremetalServer
27
26
 
28
27
  __all__ = ["ServersResource", "AsyncServersResource"]
@@ -63,7 +62,7 @@ class ServersResource(SyncAPIResource):
63
62
  name_template: str | NotGiven = NOT_GIVEN,
64
63
  password: str | NotGiven = NOT_GIVEN,
65
64
  ssh_key_name: Optional[str] | NotGiven = NOT_GIVEN,
66
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
65
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
67
66
  user_data: str | NotGiven = NOT_GIVEN,
68
67
  username: str | NotGiven = NOT_GIVEN,
69
68
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -73,8 +72,10 @@ class ServersResource(SyncAPIResource):
73
72
  extra_body: Body | None = None,
74
73
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
75
74
  ) -> TaskIDList:
76
- """
77
- For Linux,
75
+ """Create a new bare metal server with the specified configuration.
76
+
77
+ How to get
78
+ access: For Linux,
78
79
 
79
80
  - Use the `user_data` field to provide a
80
81
  [cloud-init script](https://cloudinit.readthedocs.io/en/latest/reference/examples.html)
@@ -125,7 +126,7 @@ class ServersResource(SyncAPIResource):
125
126
  password of the Admin user cannot be updated via '`user_data`'.
126
127
 
127
128
  ssh_key_name: Specifies the name of the SSH keypair, created via the
128
- [/v1/`ssh_keys` endpoint](/docs/api-reference/ssh-keys/add-or-generate-ssh-key).
129
+ [/v1/`ssh_keys` endpoint](/docs/api-reference/cloud/ssh-keys/add-or-generate-ssh-key).
129
130
 
130
131
  tags: Key-value tags to associate with the resource. A tag is a key-value pair that
131
132
  can be associated with a resource, enabling efficient filtering and grouping for
@@ -217,8 +218,10 @@ class ServersResource(SyncAPIResource):
217
218
  extra_body: Body | None = None,
218
219
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
219
220
  ) -> SyncOffsetPage[BaremetalServer]:
220
- """
221
- List bare metal servers
221
+ """List all bare metal servers in the specified project and region.
222
+
223
+ Results can be
224
+ filtered by various parameters like name, status, and IP address.
222
225
 
223
226
  Args:
224
227
  project_id: Project ID
@@ -263,9 +266,7 @@ class ServersResource(SyncAPIResource):
263
266
 
264
267
  status: Filters instances by a server status, as a string.
265
268
 
266
- tag_key_value: Optional. Filter by tag key-value pairs. curl -G --data-urlencode
267
- "`tag_key_value`={"key": "value"}" --url
268
- "https://example.com/cloud/v1/resource/1/1"
269
+ tag_key_value: Optional. Filter by tag key-value pairs.
269
270
 
270
271
  tag_value: Optional. Filter by tag values. ?`tag_value`=value1&`tag_value`=value2
271
272
 
@@ -346,7 +347,7 @@ class ServersResource(SyncAPIResource):
346
347
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
347
348
  ) -> TaskIDList:
348
349
  """
349
- Rebuild bare metal server
350
+ Rebuild a bare metal server with a new image while preserving its configuration.
350
351
 
351
352
  Args:
352
353
  image_id: Image ID
@@ -399,7 +400,7 @@ class ServersResource(SyncAPIResource):
399
400
  name_template: str | NotGiven = NOT_GIVEN,
400
401
  password: str | NotGiven = NOT_GIVEN,
401
402
  ssh_key_name: Optional[str] | NotGiven = NOT_GIVEN,
402
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
403
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
403
404
  user_data: str | NotGiven = NOT_GIVEN,
404
405
  username: str | NotGiven = NOT_GIVEN,
405
406
  polling_interval_seconds: int | NotGiven = NOT_GIVEN,
@@ -483,7 +484,7 @@ class ServersResource(SyncAPIResource):
483
484
  extra_body=extra_body,
484
485
  )
485
486
  if not response.tasks:
486
- raise ValueError("Expected at least one task to be created")
487
+ raise ValueError("Expected at least one task to be created")
487
488
  self._client.cloud.tasks.poll(
488
489
  response.tasks[0],
489
490
  extra_headers=extra_headers,
@@ -501,7 +502,7 @@ class ServersResource(SyncAPIResource):
501
502
  raise ValueError(f"Server {server_id} not found")
502
503
  return servers.results[0]
503
504
 
504
-
505
+
505
506
  class AsyncServersResource(AsyncAPIResource):
506
507
  @cached_property
507
508
  def with_raw_response(self) -> AsyncServersResourceWithRawResponse:
@@ -537,7 +538,7 @@ class AsyncServersResource(AsyncAPIResource):
537
538
  name_template: str | NotGiven = NOT_GIVEN,
538
539
  password: str | NotGiven = NOT_GIVEN,
539
540
  ssh_key_name: Optional[str] | NotGiven = NOT_GIVEN,
540
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
541
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
541
542
  user_data: str | NotGiven = NOT_GIVEN,
542
543
  username: str | NotGiven = NOT_GIVEN,
543
544
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -547,8 +548,10 @@ class AsyncServersResource(AsyncAPIResource):
547
548
  extra_body: Body | None = None,
548
549
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
549
550
  ) -> TaskIDList:
550
- """
551
- For Linux,
551
+ """Create a new bare metal server with the specified configuration.
552
+
553
+ How to get
554
+ access: For Linux,
552
555
 
553
556
  - Use the `user_data` field to provide a
554
557
  [cloud-init script](https://cloudinit.readthedocs.io/en/latest/reference/examples.html)
@@ -599,7 +602,7 @@ class AsyncServersResource(AsyncAPIResource):
599
602
  password of the Admin user cannot be updated via '`user_data`'.
600
603
 
601
604
  ssh_key_name: Specifies the name of the SSH keypair, created via the
602
- [/v1/`ssh_keys` endpoint](/docs/api-reference/ssh-keys/add-or-generate-ssh-key).
605
+ [/v1/`ssh_keys` endpoint](/docs/api-reference/cloud/ssh-keys/add-or-generate-ssh-key).
603
606
 
604
607
  tags: Key-value tags to associate with the resource. A tag is a key-value pair that
605
608
  can be associated with a resource, enabling efficient filtering and grouping for
@@ -691,8 +694,10 @@ class AsyncServersResource(AsyncAPIResource):
691
694
  extra_body: Body | None = None,
692
695
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
693
696
  ) -> AsyncPaginator[BaremetalServer, AsyncOffsetPage[BaremetalServer]]:
694
- """
695
- List bare metal servers
697
+ """List all bare metal servers in the specified project and region.
698
+
699
+ Results can be
700
+ filtered by various parameters like name, status, and IP address.
696
701
 
697
702
  Args:
698
703
  project_id: Project ID
@@ -737,9 +742,7 @@ class AsyncServersResource(AsyncAPIResource):
737
742
 
738
743
  status: Filters instances by a server status, as a string.
739
744
 
740
- tag_key_value: Optional. Filter by tag key-value pairs. curl -G --data-urlencode
741
- "`tag_key_value`={"key": "value"}" --url
742
- "https://example.com/cloud/v1/resource/1/1"
745
+ tag_key_value: Optional. Filter by tag key-value pairs.
743
746
 
744
747
  tag_value: Optional. Filter by tag values. ?`tag_value`=value1&`tag_value`=value2
745
748
 
@@ -820,7 +823,7 @@ class AsyncServersResource(AsyncAPIResource):
820
823
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
821
824
  ) -> TaskIDList:
822
825
  """
823
- Rebuild bare metal server
826
+ Rebuild a bare metal server with a new image while preserving its configuration.
824
827
 
825
828
  Args:
826
829
  image_id: Image ID
@@ -873,7 +876,7 @@ class AsyncServersResource(AsyncAPIResource):
873
876
  name_template: str | NotGiven = NOT_GIVEN,
874
877
  password: str | NotGiven = NOT_GIVEN,
875
878
  ssh_key_name: Optional[str] | NotGiven = NOT_GIVEN,
876
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
879
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
877
880
  user_data: str | NotGiven = NOT_GIVEN,
878
881
  username: str | NotGiven = NOT_GIVEN,
879
882
  polling_interval_seconds: int | NotGiven = NOT_GIVEN,
@@ -907,8 +910,8 @@ class AsyncServersResource(AsyncAPIResource):
907
910
  extra_body=extra_body,
908
911
  )
909
912
  if not response.tasks or len(response.tasks) != 1:
910
- raise ValueError(f"Expected exactly one task to be created")
911
- task =await self._client.cloud.tasks.poll(
913
+ raise ValueError(f"Expected exactly one task to be created")
914
+ task = await self._client.cloud.tasks.poll(
912
915
  response.tasks[0],
913
916
  extra_headers=extra_headers,
914
917
  polling_interval_seconds=polling_interval_seconds,
@@ -957,7 +960,7 @@ class AsyncServersResource(AsyncAPIResource):
957
960
  extra_body=extra_body,
958
961
  )
959
962
  if not response.tasks:
960
- raise ValueError("Expected at least one task to be created")
963
+ raise ValueError("Expected at least one task to be created")
961
964
  await self._client.cloud.tasks.poll(
962
965
  response.tasks[0],
963
966
  extra_headers=extra_headers,
@@ -973,7 +976,7 @@ class AsyncServersResource(AsyncAPIResource):
973
976
  )
974
977
  if len(servers.results) != 1:
975
978
  raise ValueError(f"Server {server_id} not found")
976
- return servers.results[0]
979
+ return servers.results[0]
977
980
 
978
981
 
979
982
  class ServersResourceWithRawResponse:
@@ -160,7 +160,7 @@ class BillingReservationsResource(SyncAPIResource):
160
160
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
161
161
  ) -> BillingReservation:
162
162
  """
163
- Get specific reservation
163
+ Get reservation
164
164
 
165
165
  Args:
166
166
  reservation_id: ID of the reservation
@@ -316,7 +316,7 @@ class AsyncBillingReservationsResource(AsyncAPIResource):
316
316
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
317
317
  ) -> BillingReservation:
318
318
  """
319
- Get specific reservation
319
+ Get reservation
320
320
 
321
321
  Args:
322
322
  reservation_id: ID of the reservation
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Iterable
5
+ from typing import Dict, Iterable
6
6
  from typing_extensions import Literal, overload
7
7
 
8
8
  import httpx
@@ -35,7 +35,6 @@ from ....types.cloud import (
35
35
  from ...._base_client import AsyncPaginator, make_request_options
36
36
  from ....types.cloud.file_share import FileShare
37
37
  from ....types.cloud.task_id_list import TaskIDList
38
- from ....types.cloud.tag_update_map_param import TagUpdateMapParam
39
38
 
40
39
  __all__ = ["FileSharesResource", "AsyncFileSharesResource"]
41
40
 
@@ -75,7 +74,7 @@ class FileSharesResource(SyncAPIResource):
75
74
  protocol: Literal["NFS"],
76
75
  size: int,
77
76
  access: Iterable[file_share_create_params.CreateStandardFileShareSerializerAccess] | NotGiven = NOT_GIVEN,
78
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
77
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
79
78
  volume_type: Literal["default_share_type"] | NotGiven = NOT_GIVEN,
80
79
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
81
80
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -130,7 +129,7 @@ class FileSharesResource(SyncAPIResource):
130
129
  protocol: Literal["NFS"],
131
130
  size: int,
132
131
  volume_type: Literal["vast_share_type"],
133
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
132
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
134
133
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
135
134
  # The extra values given here take precedence over values defined on the client or passed to this method.
136
135
  extra_headers: Headers | None = None,
@@ -181,7 +180,7 @@ class FileSharesResource(SyncAPIResource):
181
180
  protocol: Literal["NFS"],
182
181
  size: int,
183
182
  access: Iterable[file_share_create_params.CreateStandardFileShareSerializerAccess] | NotGiven = NOT_GIVEN,
184
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
183
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
185
184
  volume_type: Literal["default_share_type"] | Literal["vast_share_type"] | NotGiven = NOT_GIVEN,
186
185
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
187
186
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -504,7 +503,7 @@ class AsyncFileSharesResource(AsyncAPIResource):
504
503
  protocol: Literal["NFS"],
505
504
  size: int,
506
505
  access: Iterable[file_share_create_params.CreateStandardFileShareSerializerAccess] | NotGiven = NOT_GIVEN,
507
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
506
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
508
507
  volume_type: Literal["default_share_type"] | NotGiven = NOT_GIVEN,
509
508
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
510
509
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -559,7 +558,7 @@ class AsyncFileSharesResource(AsyncAPIResource):
559
558
  protocol: Literal["NFS"],
560
559
  size: int,
561
560
  volume_type: Literal["vast_share_type"],
562
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
561
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
563
562
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
564
563
  # The extra values given here take precedence over values defined on the client or passed to this method.
565
564
  extra_headers: Headers | None = None,
@@ -610,7 +609,7 @@ class AsyncFileSharesResource(AsyncAPIResource):
610
609
  protocol: Literal["NFS"],
611
610
  size: int,
612
611
  access: Iterable[file_share_create_params.CreateStandardFileShareSerializerAccess] | NotGiven = NOT_GIVEN,
613
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
612
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
614
613
  volume_type: Literal["default_share_type"] | Literal["vast_share_type"] | NotGiven = NOT_GIVEN,
615
614
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
616
615
  # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -2,7 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List, Optional
5
+ from typing import Dict, List, Optional
6
6
 
7
7
  import httpx
8
8
 
@@ -22,7 +22,6 @@ from ..._base_client import AsyncPaginator, make_request_options
22
22
  from ...types.cloud.floating_ip import FloatingIP
23
23
  from ...types.cloud.task_id_list import TaskIDList
24
24
  from ...types.cloud.floating_ip_detailed import FloatingIPDetailed
25
- from ...types.cloud.tag_update_map_param import TagUpdateMapParam
26
25
 
27
26
  __all__ = ["FloatingIPsResource", "AsyncFloatingIPsResource"]
28
27
 
@@ -54,7 +53,7 @@ class FloatingIPsResource(SyncAPIResource):
54
53
  region_id: int | None = None,
55
54
  fixed_ip_address: Optional[str] | NotGiven = NOT_GIVEN,
56
55
  port_id: Optional[str] | NotGiven = NOT_GIVEN,
57
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
56
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
58
57
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
59
58
  # The extra values given here take precedence over values defined on the client or passed to this method.
60
59
  extra_headers: Headers | None = None,
@@ -141,9 +140,7 @@ class FloatingIPsResource(SyncAPIResource):
141
140
 
142
141
  tag_key: Optional. Filter by tag keys. ?`tag_key`=key1&`tag_key`=key2
143
142
 
144
- tag_key_value: Optional. Filter by tag key-value pairs. curl -G --data-urlencode
145
- "`tag_key_value`={"key": "value"}" --url
146
- "https://example.com/cloud/v1/resource/1/1"
143
+ tag_key_value: Optional. Filter by tag key-value pairs.
147
144
 
148
145
  extra_headers: Send extra headers
149
146
 
@@ -322,7 +319,7 @@ class FloatingIPsResource(SyncAPIResource):
322
319
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
323
320
  ) -> FloatingIP:
324
321
  """
325
- Unassign floating IP from the instance
322
+ Unassign floating IP
326
323
 
327
324
  Args:
328
325
  extra_headers: Send extra headers
@@ -375,7 +372,7 @@ class AsyncFloatingIPsResource(AsyncAPIResource):
375
372
  region_id: int | None = None,
376
373
  fixed_ip_address: Optional[str] | NotGiven = NOT_GIVEN,
377
374
  port_id: Optional[str] | NotGiven = NOT_GIVEN,
378
- tags: TagUpdateMapParam | NotGiven = NOT_GIVEN,
375
+ tags: Dict[str, str] | NotGiven = NOT_GIVEN,
379
376
  # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
380
377
  # The extra values given here take precedence over values defined on the client or passed to this method.
381
378
  extra_headers: Headers | None = None,
@@ -462,9 +459,7 @@ class AsyncFloatingIPsResource(AsyncAPIResource):
462
459
 
463
460
  tag_key: Optional. Filter by tag keys. ?`tag_key`=key1&`tag_key`=key2
464
461
 
465
- tag_key_value: Optional. Filter by tag key-value pairs. curl -G --data-urlencode
466
- "`tag_key_value`={"key": "value"}" --url
467
- "https://example.com/cloud/v1/resource/1/1"
462
+ tag_key_value: Optional. Filter by tag key-value pairs.
468
463
 
469
464
  extra_headers: Send extra headers
470
465
 
@@ -643,7 +638,7 @@ class AsyncFloatingIPsResource(AsyncAPIResource):
643
638
  timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
644
639
  ) -> FloatingIP:
645
640
  """
646
- Unassign floating IP from the instance
641
+ Unassign floating IP
647
642
 
648
643
  Args:
649
644
  extra_headers: Send extra headers