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
@@ -1,13 +1,20 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
3
  from ...._models import BaseModel
4
- from ..aws_iam_data import AwsIamData
5
4
 
6
- __all__ = ["InferenceSecret"]
5
+ __all__ = ["InferenceSecret", "Data"]
6
+
7
+
8
+ class Data(BaseModel):
9
+ aws_access_key_id: str
10
+ """AWS IAM key ID."""
11
+
12
+ aws_secret_access_key: str
13
+ """AWS IAM secret key."""
7
14
 
8
15
 
9
16
  class InferenceSecret(BaseModel):
10
- data: AwsIamData
17
+ data: Data
11
18
  """Secret data."""
12
19
 
13
20
  name: str
@@ -2,9 +2,7 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import TypedDict
6
-
7
- from .mlcatalog_order_by_choices import MlcatalogOrderByChoices
5
+ from typing_extensions import Literal, TypedDict
8
6
 
9
7
  __all__ = ["ModelListParams"]
10
8
 
@@ -19,5 +17,5 @@ class ModelListParams(TypedDict, total=False):
19
17
  Offset value is used to exclude the first set of records from the result
20
18
  """
21
19
 
22
- order_by: MlcatalogOrderByChoices
20
+ order_by: Literal["name.asc", "name.desc"]
23
21
  """Order instances by transmitted fields and directions"""
@@ -2,22 +2,22 @@
2
2
 
3
3
  from typing import Optional
4
4
 
5
- from ..._models import BaseModel
6
- from .container_probe_exec import ContainerProbeExec
7
- from .container_probe_http_get import ContainerProbeHTTPGet
8
- from .container_probe_tcp_socket import ContainerProbeTcpSocket
5
+ from ...._models import BaseModel
6
+ from .probe_exec import ProbeExec
7
+ from .probe_http_get import ProbeHTTPGet
8
+ from .probe_tcp_socket import ProbeTcpSocket
9
9
 
10
- __all__ = ["ContainerProbe"]
10
+ __all__ = ["Probe"]
11
11
 
12
12
 
13
- class ContainerProbe(BaseModel):
14
- exec: Optional[ContainerProbeExec] = None
13
+ class Probe(BaseModel):
14
+ exec: Optional[ProbeExec] = None
15
15
  """Exec probe configuration"""
16
16
 
17
17
  failure_threshold: int
18
18
  """The number of consecutive probe failures that mark the container as unhealthy."""
19
19
 
20
- http_get: Optional[ContainerProbeHTTPGet] = None
20
+ http_get: Optional[ProbeHTTPGet] = None
21
21
  """HTTP GET probe configuration"""
22
22
 
23
23
  initial_delay_seconds: int
@@ -29,7 +29,7 @@ class ContainerProbe(BaseModel):
29
29
  success_threshold: int
30
30
  """The number of consecutive successful probes that mark the container as healthy."""
31
31
 
32
- tcp_socket: Optional[ContainerProbeTcpSocket] = None
32
+ tcp_socket: Optional[ProbeTcpSocket] = None
33
33
  """TCP socket probe configuration"""
34
34
 
35
35
  timeout_seconds: int
@@ -2,15 +2,15 @@
2
2
 
3
3
  from typing import Optional
4
4
 
5
- from ..._models import BaseModel
6
- from .container_probe import ContainerProbe
5
+ from .probe import Probe
6
+ from ...._models import BaseModel
7
7
 
8
- __all__ = ["ContainerProbeConfig"]
8
+ __all__ = ["ProbeConfig"]
9
9
 
10
10
 
11
- class ContainerProbeConfig(BaseModel):
11
+ class ProbeConfig(BaseModel):
12
12
  enabled: bool
13
13
  """Whether the probe is enabled or not."""
14
14
 
15
- probe: Optional[ContainerProbe] = None
15
+ probe: Optional[Probe] = None
16
16
  """Probe configuration (exec, `http_get` or `tcp_socket`)"""
@@ -2,11 +2,11 @@
2
2
 
3
3
  from typing import List
4
4
 
5
- from ..._models import BaseModel
5
+ from ...._models import BaseModel
6
6
 
7
- __all__ = ["ContainerProbeExec"]
7
+ __all__ = ["ProbeExec"]
8
8
 
9
9
 
10
- class ContainerProbeExec(BaseModel):
10
+ class ProbeExec(BaseModel):
11
11
  command: List[str]
12
12
  """Command to be executed inside the running container."""
@@ -4,12 +4,12 @@ from typing import Dict, Optional
4
4
 
5
5
  from pydantic import Field as FieldInfo
6
6
 
7
- from ..._models import BaseModel
7
+ from ...._models import BaseModel
8
8
 
9
- __all__ = ["ContainerProbeHTTPGet"]
9
+ __all__ = ["ProbeHTTPGet"]
10
10
 
11
11
 
12
- class ContainerProbeHTTPGet(BaseModel):
12
+ class ProbeHTTPGet(BaseModel):
13
13
  headers: Dict[str, str]
14
14
  """HTTP headers to be sent with the request."""
15
15
 
@@ -1,10 +1,10 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- from ..._models import BaseModel
3
+ from ...._models import BaseModel
4
4
 
5
- __all__ = ["ContainerProbeTcpSocket"]
5
+ __all__ = ["ProbeTcpSocket"]
6
6
 
7
7
 
8
- class ContainerProbeTcpSocket(BaseModel):
8
+ class ProbeTcpSocket(BaseModel):
9
9
  port: int
10
10
  """Port number to check if it's open."""
@@ -4,16 +4,14 @@ from __future__ import annotations
4
4
 
5
5
  from typing_extensions import Required, TypedDict
6
6
 
7
- from ..aws_iam_data_param import AwsIamDataParam
8
-
9
- __all__ = ["SecretCreateParams"]
7
+ __all__ = ["SecretCreateParams", "Data"]
10
8
 
11
9
 
12
10
  class SecretCreateParams(TypedDict, total=False):
13
11
  project_id: int
14
12
  """Project ID"""
15
13
 
16
- data: Required[AwsIamDataParam]
14
+ data: Required[Data]
17
15
  """Secret data."""
18
16
 
19
17
  name: Required[str]
@@ -21,3 +19,11 @@ class SecretCreateParams(TypedDict, total=False):
21
19
 
22
20
  type: Required[str]
23
21
  """Secret type. Currently only `aws-iam` is supported."""
22
+
23
+
24
+ class Data(TypedDict, total=False):
25
+ aws_access_key_id: Required[str]
26
+ """AWS IAM key ID."""
27
+
28
+ aws_secret_access_key: Required[str]
29
+ """AWS IAM secret key."""
@@ -4,17 +4,23 @@ from __future__ import annotations
4
4
 
5
5
  from typing_extensions import Required, TypedDict
6
6
 
7
- from ..aws_iam_data_param import AwsIamDataParam
8
-
9
- __all__ = ["SecretReplaceParams"]
7
+ __all__ = ["SecretReplaceParams", "Data"]
10
8
 
11
9
 
12
10
  class SecretReplaceParams(TypedDict, total=False):
13
11
  project_id: int
14
12
  """Project ID"""
15
13
 
16
- data: Required[AwsIamDataParam]
14
+ data: Required[Data]
17
15
  """Secret data."""
18
16
 
19
17
  type: Required[str]
20
18
  """Secret type."""
19
+
20
+
21
+ class Data(TypedDict, total=False):
22
+ aws_access_key_id: Required[str]
23
+ """AWS IAM key ID."""
24
+
25
+ aws_secret_access_key: Required[str]
26
+ """AWS IAM secret key."""
@@ -2,13 +2,20 @@
2
2
 
3
3
  from typing import List
4
4
 
5
- from .capacity import Capacity
6
5
  from ..._models import BaseModel
7
6
 
8
- __all__ = ["RegionCapacity"]
7
+ __all__ = ["InferenceRegionCapacity", "Capacity"]
9
8
 
10
9
 
11
- class RegionCapacity(BaseModel):
10
+ class Capacity(BaseModel):
11
+ capacity: int
12
+ """Available capacity."""
13
+
14
+ flavor_name: str
15
+ """Flavor name."""
16
+
17
+
18
+ class InferenceRegionCapacity(BaseModel):
12
19
  capacity: List[Capacity]
13
20
  """List of capacities by flavor."""
14
21
 
@@ -3,14 +3,14 @@
3
3
  from typing import List
4
4
 
5
5
  from ..._models import BaseModel
6
- from .region_capacity import RegionCapacity
6
+ from .inference_region_capacity import InferenceRegionCapacity
7
7
 
8
- __all__ = ["RegionCapacityList"]
8
+ __all__ = ["InferenceRegionCapacityList"]
9
9
 
10
10
 
11
- class RegionCapacityList(BaseModel):
11
+ class InferenceRegionCapacityList(BaseModel):
12
12
  count: int
13
13
  """Number of objects"""
14
14
 
15
- results: List[RegionCapacity]
15
+ results: List[InferenceRegionCapacity]
16
16
  """Objects"""
@@ -2,11 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Union, Iterable, Optional
5
+ from typing import Dict, Union, Iterable, Optional
6
6
  from typing_extensions import Literal, Required, TypeAlias, TypedDict
7
7
 
8
8
  from .interface_ip_family import InterfaceIPFamily
9
- from .tag_update_map_param import TagUpdateMapParam
10
9
 
11
10
  __all__ = [
12
11
  "InstanceCreateParams",
@@ -110,10 +109,10 @@ class InstanceCreateParams(TypedDict, total=False):
110
109
  ssh_key_name: Optional[str]
111
110
  """
112
111
  Specifies the name of the SSH keypair, created via the
113
- [/v1/`ssh_keys` endpoint](/docs/api-reference/ssh-keys/add-or-generate-ssh-key).
112
+ [/v1/`ssh_keys` endpoint](/docs/api-reference/cloud/ssh-keys/add-or-generate-ssh-key).
114
113
  """
115
114
 
116
- tags: TagUpdateMapParam
115
+ tags: Dict[str, str]
117
116
  """Key-value tags to associate with the resource.
118
117
 
119
118
  A tag is a key-value pair that can be associated with a resource, enabling
@@ -389,7 +388,7 @@ class VolumeCreateInstanceCreateNewVolumeSerializer(TypedDict, total=False):
389
388
  If not specified, a name will be generated automatically.
390
389
  """
391
390
 
392
- tags: TagUpdateMapParam
391
+ tags: Dict[str, str]
393
392
  """Key-value tags to associate with the resource.
394
393
 
395
394
  A tag is a key-value pair that can be associated with a resource, enabling
@@ -450,7 +449,7 @@ class VolumeCreateInstanceCreateVolumeFromImageSerializer(TypedDict, total=False
450
449
  - For basic VMs: the size is set automatically based on the flavor.
451
450
  """
452
451
 
453
- tags: TagUpdateMapParam
452
+ tags: Dict[str, str]
454
453
  """Key-value tags to associate with the resource.
455
454
 
456
455
  A tag is a key-value pair that can be associated with a resource, enabling
@@ -504,7 +503,7 @@ class VolumeCreateInstanceCreateVolumeFromSnapshotSerializer(TypedDict, total=Fa
504
503
  If not specified, a name will be generated automatically.
505
504
  """
506
505
 
507
- tags: TagUpdateMapParam
506
+ tags: Dict[str, str]
508
507
  """Key-value tags to associate with the resource.
509
508
 
510
509
  A tag is a key-value pair that can be associated with a resource, enabling
@@ -550,7 +549,7 @@ class VolumeCreateInstanceCreateVolumeFromApptemplateSerializer(TypedDict, total
550
549
  size: int
551
550
  """Volume size in GiB."""
552
551
 
553
- tags: TagUpdateMapParam
552
+ tags: Dict[str, str]
554
553
  """Key-value tags to associate with the resource.
555
554
 
556
555
  A tag is a key-value pair that can be associated with a resource, enabling
@@ -595,7 +594,7 @@ class VolumeCreateInstanceExistingVolumeSerializer(TypedDict, total=False):
595
594
  delete_on_termination: bool
596
595
  """Set to `true` to automatically delete the volume when the instance is deleted."""
597
596
 
598
- tags: TagUpdateMapParam
597
+ tags: Dict[str, str]
599
598
  """Key-value tags to associate with the resource.
600
599
 
601
600
  A tag is a key-value pair that can be associated with a resource, enabling
@@ -118,11 +118,7 @@ class InstanceListParams(TypedDict, total=False):
118
118
  """Filters instances by status."""
119
119
 
120
120
  tag_key_value: str
121
- """Optional.
122
-
123
- Filter by tag key-value pairs. curl -G --data-urlencode "`tag_key_value`={"key":
124
- "value"}" --url "https://example.com/cloud/v1/resource/1/1"
125
- """
121
+ """Optional. Filter by tag key-value pairs."""
126
122
 
127
123
  tag_value: List[str]
128
124
  """Optional. Filter by tag values. ?`tag_value`=value1&`tag_value`=value2"""
@@ -14,6 +14,4 @@ from .image_upload_params import ImageUploadParams as ImageUploadParams
14
14
  from .instance_flavor_list import InstanceFlavorList as InstanceFlavorList
15
15
  from .interface_attach_params import InterfaceAttachParams as InterfaceAttachParams
16
16
  from .interface_detach_params import InterfaceDetachParams as InterfaceDetachParams
17
- from .flavor_list_suitable_params import FlavorListSuitableParams as FlavorListSuitableParams
18
- from .flavor_list_for_resize_params import FlavorListForResizeParams as FlavorListForResizeParams
19
17
  from .image_create_from_volume_params import ImageCreateFromVolumeParams as ImageCreateFromVolumeParams
@@ -2,11 +2,9 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Optional
5
+ from typing import Dict, Optional
6
6
  from typing_extensions import Literal, Required, TypedDict
7
7
 
8
- from ..tag_update_map_param import TagUpdateMapParam
9
-
10
8
  __all__ = ["ImageCreateFromVolumeParams"]
11
9
 
12
10
 
@@ -42,7 +40,7 @@ class ImageCreateFromVolumeParams(TypedDict, total=False):
42
40
  ssh_key: Literal["allow", "deny", "required"]
43
41
  """Whether the image supports SSH key or not"""
44
42
 
45
- tags: TagUpdateMapParam
43
+ tags: Dict[str, str]
46
44
  """Key-value tags to associate with the resource.
47
45
 
48
46
  A tag is a key-value pair that can be associated with a resource, enabling
@@ -23,11 +23,7 @@ class ImageListParams(TypedDict, total=False):
23
23
  """Filter by tag keys."""
24
24
 
25
25
  tag_key_value: str
26
- """Filter by tag key-value pairs.
27
-
28
- Must be a valid JSON string. 'curl -G --data-urlencode '`tag_key_value`={"key":
29
- "value"}' --url 'http://localhost:1111/v1/images/1/1'"
30
- """
26
+ """Filter by tag key-value pairs. Must be a valid JSON string."""
31
27
 
32
28
  visibility: Literal["private", "public", "shared"]
33
29
  """Image visibility. Globally visible images are public"""
@@ -2,11 +2,9 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import Optional
5
+ from typing import Dict, Optional
6
6
  from typing_extensions import Literal, Required, TypedDict
7
7
 
8
- from ..tag_update_map_param import TagUpdateMapParam
9
-
10
8
  __all__ = ["ImageUploadParams"]
11
9
 
12
10
 
@@ -51,7 +49,7 @@ class ImageUploadParams(TypedDict, total=False):
51
49
  ssh_key: Literal["allow", "deny", "required"]
52
50
  """Whether the image supports SSH key or not"""
53
51
 
54
- tags: TagUpdateMapParam
52
+ tags: Dict[str, str]
55
53
  """Key-value tags to associate with the resource.
56
54
 
57
55
  A tag is a key-value pair that can be associated with a resource, enabling
@@ -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 typing_extensions import Literal, Required, TypeAlias, TypedDict
7
7
 
8
8
  from .http_method import HTTPMethod
@@ -10,7 +10,6 @@ from .lb_algorithm import LbAlgorithm
10
10
  from .lb_pool_protocol import LbPoolProtocol
11
11
  from .interface_ip_family import InterfaceIPFamily
12
12
  from .lb_listener_protocol import LbListenerProtocol
13
- from .tag_update_map_param import TagUpdateMapParam
14
13
  from .lb_health_monitor_type import LbHealthMonitorType
15
14
  from .lb_session_persistence_type import LbSessionPersistenceType
16
15
  from .laas_index_retention_policy_param import LaasIndexRetentionPolicyParam
@@ -66,7 +65,7 @@ class LoadBalancerCreateParams(TypedDict, total=False):
66
65
  specification.
67
66
  """
68
67
 
69
- tags: TagUpdateMapParam
68
+ tags: Dict[str, str]
70
69
  """Key-value tags to associate with the resource.
71
70
 
72
71
  A tag is a key-value pair that can be associated with a resource, enabling
@@ -175,7 +174,12 @@ class ListenerPoolMember(TypedDict, total=False):
175
174
  """Member IP port"""
176
175
 
177
176
  admin_state_up: Optional[bool]
178
- """true if enabled. Defaults to true"""
177
+ """Administrative state of the resource.
178
+
179
+ When set to true, the resource is enabled and operational. When set to false,
180
+ the resource is disabled and will not process traffic. When null is passed, the
181
+ value is skipped and defaults to true.
182
+ """
179
183
 
180
184
  instance_id: Optional[str]
181
185
  """Either `subnet_id` or `instance_id` should be provided"""
@@ -43,11 +43,7 @@ class LoadBalancerListParams(TypedDict, total=False):
43
43
  """Filter by tag keys."""
44
44
 
45
45
  tag_key_value: str
46
- """Filter by tag key-value pairs.
47
-
48
- Must be a valid JSON string. curl -G --data-urlencode "`tag_key_value`={"key":
49
- "value"}" --url "http://localhost:1111/v1/loadbalancers/1/1"
50
- """
46
+ """Filter by tag key-value pairs. Must be a valid JSON string."""
51
47
 
52
48
  with_ddos: bool
53
49
  """Show Advanced DDoS protection profile, if exists"""
@@ -5,6 +5,7 @@ from __future__ import annotations
5
5
  from typing import Optional
6
6
  from typing_extensions import TypedDict
7
7
 
8
+ from .tag_update_map_param import TagUpdateMapParam
8
9
  from .laas_index_retention_policy_param import LaasIndexRetentionPolicyParam
9
10
  from .load_balancer_member_connectivity import LoadBalancerMemberConnectivity
10
11
 
@@ -28,6 +29,29 @@ class LoadBalancerUpdateParams(TypedDict, total=False):
28
29
  members
29
30
  """
30
31
 
32
+ tags: Optional[TagUpdateMapParam]
33
+ """Update key-value tags using JSON Merge Patch semantics (RFC 7386).
34
+
35
+ Provide key-value pairs to add or update tags. Set tag values to `null` to
36
+ remove tags. Unspecified tags remain unchanged. Read-only tags are always
37
+ preserved and cannot be modified. **Examples:**
38
+
39
+ - **Add/update tags:**
40
+ `{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
41
+ updates existing ones.
42
+ - **Delete tags:** `{'tags': {'`old_tag`': null}}` removes specific tags.
43
+ - **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
44
+ tags are preserved).
45
+ - **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
46
+ specified tags.
47
+ - **Mixed operations:**
48
+ `{'tags': {'environment': 'production', '`cost_center`': 'engineering', '`deprecated_tag`': null}}`
49
+ adds/updates 'environment' and '`cost_center`' while removing
50
+ '`deprecated_tag`', preserving other existing tags.
51
+ - **Replace all:** first delete existing tags with null values, then add new
52
+ ones in the same request.
53
+ """
54
+
31
55
 
32
56
  class Logging(TypedDict, total=False):
33
57
  destination_region_id: Optional[int]
@@ -105,7 +105,12 @@ class Member(TypedDict, total=False):
105
105
  """Member IP port"""
106
106
 
107
107
  admin_state_up: Optional[bool]
108
- """true if enabled. Defaults to true"""
108
+ """Administrative state of the resource.
109
+
110
+ When set to true, the resource is enabled and operational. When set to false,
111
+ the resource is disabled and will not process traffic. When null is passed, the
112
+ value is skipped and defaults to true.
113
+ """
109
114
 
110
115
  instance_id: Optional[str]
111
116
  """Either `subnet_id` or `instance_id` should be provided"""
@@ -103,7 +103,12 @@ class Member(TypedDict, total=False):
103
103
  """Member IP port"""
104
104
 
105
105
  admin_state_up: Optional[bool]
106
- """true if enabled. Defaults to true"""
106
+ """Administrative state of the resource.
107
+
108
+ When set to true, the resource is enabled and operational. When set to false,
109
+ the resource is disabled and will not process traffic. When null is passed, the
110
+ value is skipped and defaults to true.
111
+ """
107
112
 
108
113
  instance_id: Optional[str]
109
114
  """Either `subnet_id` or `instance_id` should be provided"""
@@ -22,7 +22,12 @@ class MemberAddParams(TypedDict, total=False):
22
22
  """Member IP port"""
23
23
 
24
24
  admin_state_up: Optional[bool]
25
- """true if enabled. Defaults to true"""
25
+ """Administrative state of the resource.
26
+
27
+ When set to true, the resource is enabled and operational. When set to false,
28
+ the resource is disabled and will not process traffic. When null is passed, the
29
+ value is skipped and defaults to true.
30
+ """
26
31
 
27
32
  instance_id: Optional[str]
28
33
  """Either `subnet_id` or `instance_id` should be provided"""
@@ -17,7 +17,12 @@ class Member(BaseModel):
17
17
  """Member IP address"""
18
18
 
19
19
  admin_state_up: bool
20
- """true if enabled. Defaults to true"""
20
+ """Administrative state of the resource.
21
+
22
+ When set to true, the resource is enabled and operational. When set to false,
23
+ the resource is disabled and will not process traffic. When null is passed, the
24
+ value is skipped and defaults to true.
25
+ """
21
26
 
22
27
  operating_status: LoadBalancerOperatingStatus
23
28
  """Member operating status of the entity"""
@@ -2,10 +2,9 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
+ from typing import Dict
5
6
  from typing_extensions import Literal, Required, TypedDict
6
7
 
7
- from .tag_update_map_param import TagUpdateMapParam
8
-
9
8
  __all__ = ["NetworkCreateParams"]
10
9
 
11
10
 
@@ -22,7 +21,7 @@ class NetworkCreateParams(TypedDict, total=False):
22
21
  create_router: bool
23
22
  """Defaults to True"""
24
23
 
25
- tags: TagUpdateMapParam
24
+ tags: Dict[str, str]
26
25
  """Key-value tags to associate with the resource.
27
26
 
28
27
  A tag is a key-value pair that can be associated with a resource, enabling
@@ -18,6 +18,9 @@ class NetworkListParams(TypedDict, total=False):
18
18
  limit: int
19
19
  """Optional. Limit the number of returned items"""
20
20
 
21
+ name: str
22
+ """Filter networks by name"""
23
+
21
24
  offset: int
22
25
  """Optional.
23
26
 
@@ -34,8 +37,4 @@ class NetworkListParams(TypedDict, total=False):
34
37
  """Optional. Filter by tag keys. ?`tag_key`=key1&`tag_key`=key2"""
35
38
 
36
39
  tag_key_value: str
37
- """Optional.
38
-
39
- Filter by tag key-value pairs. curl -G --data-urlencode "`tag_key_value`={"key":
40
- "value"}" --url "https://example.com/cloud/v1/resource/1/1"
41
- """
40
+ """Optional. Filter by tag key-value pairs."""
@@ -2,7 +2,10 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing_extensions import Required, TypedDict
5
+ from typing import Optional
6
+ from typing_extensions import TypedDict
7
+
8
+ from .tag_update_map_param import TagUpdateMapParam
6
9
 
7
10
  __all__ = ["NetworkUpdateParams"]
8
11
 
@@ -14,5 +17,28 @@ class NetworkUpdateParams(TypedDict, total=False):
14
17
  region_id: int
15
18
  """Region ID"""
16
19
 
17
- name: Required[str]
20
+ name: str
18
21
  """Name."""
22
+
23
+ tags: Optional[TagUpdateMapParam]
24
+ """Update key-value tags using JSON Merge Patch semantics (RFC 7386).
25
+
26
+ Provide key-value pairs to add or update tags. Set tag values to `null` to
27
+ remove tags. Unspecified tags remain unchanged. Read-only tags are always
28
+ preserved and cannot be modified. **Examples:**
29
+
30
+ - **Add/update tags:**
31
+ `{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
32
+ updates existing ones.
33
+ - **Delete tags:** `{'tags': {'`old_tag`': null}}` removes specific tags.
34
+ - **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
35
+ tags are preserved).
36
+ - **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
37
+ specified tags.
38
+ - **Mixed operations:**
39
+ `{'tags': {'environment': 'production', '`cost_center`': 'engineering', '`deprecated_tag`': null}}`
40
+ adds/updates 'environment' and '`cost_center`' while removing
41
+ '`deprecated_tag`', preserving other existing tags.
42
+ - **Replace all:** first delete existing tags with null values, then add new
43
+ ones in the same request.
44
+ """
@@ -13,7 +13,7 @@ class RouterListParams(TypedDict, total=False):
13
13
  region_id: int
14
14
 
15
15
  limit: int
16
- """Limit the number of returned limit request entities."""
16
+ """Limit the number of returned routers"""
17
17
 
18
18
  offset: int
19
- """Offset value is used to exclude the first set of records from the result."""
19
+ """Offset value is used to exclude the first set of records from the result"""