gcore 0.16.0__py3-none-any.whl → 0.23.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 (220) hide show
  1. gcore/_client.py +16 -0
  2. gcore/_models.py +37 -15
  3. gcore/_streaming.py +12 -12
  4. gcore/_utils/_sync.py +3 -31
  5. gcore/_utils/_utils.py +1 -1
  6. gcore/_version.py +1 -1
  7. gcore/resources/cdn/audit_log.py +4 -4
  8. gcore/resources/cdn/cdn.py +120 -21
  9. gcore/resources/cdn/ip_ranges.py +97 -5
  10. gcore/resources/cdn/{logs/logs.py → logs.py} +9 -9
  11. gcore/resources/cdn/resources/resources.py +20 -20
  12. gcore/resources/cdn/statistics.py +56 -58
  13. gcore/resources/cloud/__init__.py +40 -12
  14. gcore/resources/cloud/audit_logs.py +20 -0
  15. gcore/resources/cloud/baremetal/servers.py +48 -14
  16. gcore/resources/cloud/billing_reservations.py +2 -2
  17. gcore/resources/cloud/cloud.py +100 -18
  18. gcore/resources/cloud/databases/__init__.py +33 -0
  19. gcore/resources/cloud/databases/databases.py +102 -0
  20. gcore/resources/cloud/databases/postgres/__init__.py +61 -0
  21. gcore/resources/cloud/databases/postgres/clusters/__init__.py +33 -0
  22. gcore/resources/cloud/databases/postgres/clusters/clusters.py +716 -0
  23. gcore/resources/cloud/databases/postgres/clusters/user_credentials.py +281 -0
  24. gcore/resources/cloud/databases/postgres/configurations.py +169 -0
  25. gcore/resources/cloud/databases/postgres/custom_configurations.py +197 -0
  26. gcore/resources/cloud/databases/postgres/postgres.py +166 -0
  27. gcore/resources/cloud/file_shares/file_shares.py +154 -49
  28. gcore/resources/cloud/floating_ips.py +42 -10
  29. gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +70 -10
  30. gcore/resources/cloud/gpu_baremetal_clusters/images.py +40 -6
  31. gcore/resources/cloud/gpu_baremetal_clusters/servers.py +16 -0
  32. gcore/resources/cloud/gpu_virtual_clusters/__init__.py +89 -0
  33. gcore/resources/cloud/gpu_virtual_clusters/flavors.py +211 -0
  34. gcore/resources/cloud/gpu_virtual_clusters/gpu_virtual_clusters.py +1551 -0
  35. gcore/resources/cloud/gpu_virtual_clusters/images.py +582 -0
  36. gcore/resources/cloud/gpu_virtual_clusters/interfaces.py +187 -0
  37. gcore/resources/cloud/gpu_virtual_clusters/servers.py +506 -0
  38. gcore/resources/cloud/gpu_virtual_clusters/volumes.py +187 -0
  39. gcore/resources/cloud/inference/deployments/deployments.py +52 -4
  40. gcore/resources/cloud/instances/images.py +72 -18
  41. gcore/resources/cloud/instances/instances.py +110 -18
  42. gcore/resources/cloud/instances/interfaces.py +12 -0
  43. gcore/resources/cloud/k8s/__init__.py +12 -12
  44. gcore/resources/cloud/k8s/clusters/clusters.py +25 -25
  45. gcore/resources/cloud/k8s/clusters/pools/pools.py +14 -14
  46. gcore/resources/cloud/k8s/k8s.py +24 -24
  47. gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +1420 -218
  48. gcore/resources/cloud/load_balancers/l7_policies/rules.py +134 -22
  49. gcore/resources/cloud/load_balancers/listeners.py +77 -6
  50. gcore/resources/cloud/load_balancers/load_balancers.py +92 -14
  51. gcore/resources/cloud/load_balancers/pools/pools.py +52 -4
  52. gcore/resources/cloud/networks/networks.py +30 -10
  53. gcore/resources/cloud/networks/subnets.py +26 -10
  54. gcore/resources/cloud/placement_groups.py +8 -0
  55. gcore/resources/cloud/projects.py +99 -119
  56. gcore/resources/cloud/quotas/requests.py +0 -8
  57. gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +18 -0
  58. gcore/resources/cloud/secrets.py +16 -0
  59. gcore/resources/cloud/security_groups/security_groups.py +38 -12
  60. gcore/resources/cloud/ssh_keys.py +10 -0
  61. gcore/resources/cloud/tasks.py +22 -7
  62. gcore/resources/cloud/volumes.py +65 -23
  63. gcore/resources/dns/zones/rrsets.py +10 -10
  64. gcore/resources/dns/zones/zones.py +2 -2
  65. gcore/resources/security/bgp_announces.py +0 -4
  66. gcore/resources/security/profiles.py +31 -7
  67. gcore/resources/storage/credentials.py +0 -28
  68. gcore/resources/storage/storage.py +2 -2
  69. gcore/types/cdn/__init__.py +5 -0
  70. gcore/types/cdn/alibaba_regions.py +22 -0
  71. gcore/types/cdn/audit_log_list_params.py +2 -2
  72. gcore/types/cdn/aws_regions.py +22 -0
  73. gcore/types/cdn/cdn_list_purge_statuses_response.py +10 -0
  74. gcore/types/cdn/cdn_resource.py +17 -12
  75. gcore/types/cdn/ip_range_list_ips_params.py +19 -0
  76. gcore/types/cdn/ip_range_list_params.py +19 -0
  77. gcore/types/cdn/resource_create_params.py +17 -12
  78. gcore/types/cdn/resource_purge_params.py +4 -4
  79. gcore/types/cdn/resource_replace_params.py +17 -12
  80. gcore/types/cdn/resource_update_params.py +17 -12
  81. gcore/types/cdn/resource_usage_stats.py +16 -15
  82. gcore/types/cdn/resources/cdn_resource_rule.py +15 -10
  83. gcore/types/cdn/resources/rule_create_params.py +15 -10
  84. gcore/types/cdn/resources/rule_replace_params.py +15 -10
  85. gcore/types/cdn/resources/rule_update_params.py +15 -10
  86. gcore/types/cdn/rule_template.py +15 -10
  87. gcore/types/cdn/rule_template_create_params.py +15 -10
  88. gcore/types/cdn/rule_template_replace_params.py +15 -10
  89. gcore/types/cdn/rule_template_update_params.py +15 -10
  90. gcore/types/cdn/statistic_get_logs_usage_aggregated_params.py +4 -1
  91. gcore/types/cdn/statistic_get_logs_usage_series_params.py +5 -12
  92. gcore/types/cdn/statistic_get_resource_usage_aggregated_params.py +10 -21
  93. gcore/types/cdn/statistic_get_resource_usage_series_params.py +6 -1
  94. gcore/types/cdn/statistic_get_shield_usage_aggregated_params.py +5 -2
  95. gcore/types/cdn/statistic_get_shield_usage_series_params.py +3 -0
  96. gcore/types/cloud/__init__.py +9 -3
  97. gcore/types/cloud/audit_log_entry.py +9 -3
  98. gcore/types/cloud/audit_log_list_params.py +12 -0
  99. gcore/types/cloud/baremetal/server_create_params.py +7 -7
  100. gcore/types/cloud/baremetal_flavor.py +0 -6
  101. gcore/types/cloud/billing_reservation_list_params.py +1 -1
  102. gcore/types/cloud/blackhole_port.py +4 -1
  103. gcore/types/cloud/databases/postgres/__init__.py +12 -0
  104. gcore/types/cloud/databases/postgres/cluster_create_params.py +108 -0
  105. gcore/types/cloud/databases/postgres/cluster_list_params.py +19 -0
  106. gcore/types/cloud/databases/postgres/cluster_update_params.py +102 -0
  107. gcore/types/cloud/databases/postgres/clusters/__init__.py +5 -0
  108. gcore/types/cloud/databases/postgres/clusters/postgres_user_credentials.py +13 -0
  109. gcore/types/cloud/databases/postgres/custom_configuration_validate_params.py +19 -0
  110. gcore/types/cloud/databases/postgres/pg_conf_validation.py +15 -0
  111. gcore/types/cloud/databases/postgres/postgres_cluster.py +118 -0
  112. gcore/types/cloud/databases/postgres/postgres_cluster_short.py +22 -0
  113. gcore/types/cloud/databases/postgres/postgres_configuration.py +31 -0
  114. gcore/types/cloud/file_share_create_params.py +8 -8
  115. gcore/types/cloud/file_share_update_params.py +7 -2
  116. gcore/types/cloud/floating_ip.py +5 -1
  117. gcore/types/cloud/floating_ip_create_params.py +4 -4
  118. gcore/types/cloud/floating_ip_detailed.py +5 -1
  119. gcore/types/cloud/floating_ip_list_params.py +8 -0
  120. gcore/types/cloud/floating_ip_update_params.py +7 -2
  121. gcore/types/cloud/gpu_baremetal_cluster.py +18 -3
  122. gcore/types/cloud/gpu_baremetal_cluster_action_params.py +7 -2
  123. gcore/types/cloud/gpu_baremetal_cluster_create_params.py +16 -4
  124. gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_cluster_server.py +5 -2
  125. gcore/types/cloud/gpu_baremetal_clusters/image_upload_params.py +4 -4
  126. gcore/types/cloud/gpu_image.py +9 -0
  127. gcore/types/cloud/gpu_virtual_cluster.py +189 -0
  128. gcore/types/cloud/gpu_virtual_cluster_action_params.py +127 -0
  129. gcore/types/cloud/gpu_virtual_cluster_create_params.py +213 -0
  130. gcore/types/cloud/gpu_virtual_cluster_delete_params.py +41 -0
  131. gcore/types/cloud/gpu_virtual_cluster_list_params.py +21 -0
  132. gcore/types/cloud/gpu_virtual_cluster_update_params.py +18 -0
  133. gcore/types/cloud/gpu_virtual_clusters/__init__.py +16 -0
  134. gcore/types/cloud/gpu_virtual_clusters/flavor_list_params.py +21 -0
  135. gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_cluster_server.py +77 -0
  136. gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_cluster_server_list.py +16 -0
  137. gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_cluster_volume.py +64 -0
  138. gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_cluster_volume_list.py +16 -0
  139. gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_flavor.py +155 -0
  140. gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_flavor_list.py +16 -0
  141. gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_interface.py +190 -0
  142. gcore/types/cloud/gpu_virtual_clusters/gpu_virtual_interface_list.py +16 -0
  143. gcore/types/cloud/gpu_virtual_clusters/image_upload_params.py +56 -0
  144. gcore/types/cloud/gpu_virtual_clusters/server_delete_params.py +44 -0
  145. gcore/types/cloud/gpu_virtual_clusters/server_list_params.py +75 -0
  146. gcore/types/cloud/image.py +9 -0
  147. gcore/types/cloud/inference/deployment_create_params.py +1 -1
  148. gcore/types/cloud/inference/deployment_update_params.py +1 -1
  149. gcore/types/cloud/inference/inference_deployment.py +1 -1
  150. gcore/types/cloud/instance_create_params.py +27 -27
  151. gcore/types/cloud/instance_update_params.py +7 -2
  152. gcore/types/cloud/instances/image_create_from_volume_params.py +4 -4
  153. gcore/types/cloud/instances/image_update_params.py +4 -4
  154. gcore/types/cloud/instances/image_upload_params.py +4 -4
  155. gcore/types/cloud/k8s/__init__.py +4 -4
  156. gcore/types/cloud/k8s/cluster_update_params.py +5 -5
  157. gcore/types/cloud/k8s/clusters/__init__.py +2 -2
  158. gcore/types/cloud/k8s/clusters/k8s_cluster_pool.py +2 -2
  159. gcore/types/cloud/k8s/clusters/k8s_cluster_pool_list.py +4 -4
  160. gcore/types/cloud/k8s/k8s_cluster.py +4 -4
  161. gcore/types/cloud/k8s/k8s_cluster_certificate.py +2 -2
  162. gcore/types/cloud/k8s/k8s_cluster_kubeconfig.py +14 -2
  163. gcore/types/cloud/k8s/k8s_cluster_list.py +4 -4
  164. gcore/types/cloud/k8s_cluster_version.py +2 -2
  165. gcore/types/cloud/k8s_cluster_version_list.py +4 -4
  166. gcore/types/cloud/load_balancer_create_params.py +14 -8
  167. gcore/types/cloud/load_balancer_flavor_detail.py +2 -2
  168. gcore/types/cloud/load_balancer_l7_policy.py +29 -16
  169. gcore/types/cloud/load_balancer_l7_policy_list.py +3 -3
  170. gcore/types/cloud/load_balancer_l7_rule.py +14 -23
  171. gcore/types/cloud/load_balancer_l7_rule_list.py +3 -3
  172. gcore/types/cloud/load_balancer_listener_detail.py +2 -2
  173. gcore/types/cloud/load_balancer_update_params.py +7 -2
  174. gcore/types/cloud/load_balancers/__init__.py +1 -0
  175. gcore/types/cloud/load_balancers/l7_policies/rule_create_params.py +5 -10
  176. gcore/types/cloud/load_balancers/l7_policies/rule_replace_params.py +7 -11
  177. gcore/types/cloud/load_balancers/l7_policy_create_params.py +102 -18
  178. gcore/types/cloud/load_balancers/l7_policy_replace_params.py +94 -16
  179. gcore/types/cloud/load_balancers/listener_create_params.py +4 -1
  180. gcore/types/cloud/load_balancers/listener_delete_params.py +18 -0
  181. gcore/types/cloud/load_balancers/listener_update_params.py +4 -1
  182. gcore/types/cloud/load_balancers/pool_create_params.py +1 -1
  183. gcore/types/cloud/network_create_params.py +4 -4
  184. gcore/types/cloud/network_update_params.py +7 -2
  185. gcore/types/cloud/networks/subnet_create_params.py +4 -4
  186. gcore/types/cloud/networks/subnet_update_params.py +7 -2
  187. gcore/types/cloud/project_create_params.py +0 -6
  188. gcore/types/cloud/{project_replace_params.py → project_update_params.py} +2 -2
  189. gcore/types/cloud/quotas/request_create_params.py +0 -3
  190. gcore/types/cloud/region.py +3 -3
  191. gcore/types/cloud/security_group.py +8 -1
  192. gcore/types/cloud/security_group_create_params.py +7 -5
  193. gcore/types/cloud/security_group_list_params.py +6 -4
  194. gcore/types/cloud/security_group_update_params.py +7 -2
  195. gcore/types/cloud/ssh_key_list_params.py +7 -0
  196. gcore/types/cloud/tag.py +2 -2
  197. gcore/types/cloud/task_id_list.py +3 -3
  198. gcore/types/cloud/volume_create_params.py +12 -12
  199. gcore/types/cloud/volume_update_params.py +7 -2
  200. gcore/types/dns/zone_list_params.py +1 -1
  201. gcore/types/iam/api_token_create.py +70 -1
  202. gcore/types/security/bgp_announce_list_params.py +0 -2
  203. gcore/types/security/client_profile.py +1 -0
  204. gcore/types/security/profile_create_params.py +4 -2
  205. gcore/types/security/profile_recreate_params.py +4 -2
  206. gcore/types/security/profile_replace_params.py +4 -2
  207. gcore/types/storage/credential_recreate_params.py +0 -17
  208. gcore/types/storage/storage.py +1 -1
  209. gcore/types/storage/storage_create_params.py +1 -1
  210. gcore/types/streaming/stream.py +3 -2
  211. gcore/types/streaming/video.py +1 -1
  212. gcore/types/waap/domains/custom_rule_create_params.py +1 -1
  213. gcore/types/waap/domains/custom_rule_update_params.py +1 -1
  214. gcore/types/waap/domains/waap_custom_rule.py +1 -1
  215. {gcore-0.16.0.dist-info → gcore-0.23.0.dist-info}/METADATA +14 -14
  216. {gcore-0.16.0.dist-info → gcore-0.23.0.dist-info}/RECORD +219 -168
  217. gcore/resources/cdn/logs/__init__.py +0 -19
  218. /gcore/types/{cdn/logs → cloud/databases}/__init__.py +0 -0
  219. {gcore-0.16.0.dist-info → gcore-0.23.0.dist-info}/WHEEL +0 -0
  220. {gcore-0.16.0.dist-info → gcore-0.23.0.dist-info}/licenses/LICENSE +0 -0
@@ -242,7 +242,7 @@ class OptionsCors(TypedDict, total=False):
242
242
  Possible values:
243
243
 
244
244
  - **Adds \\** as the Access-Control-Allow-Origin header value** - Content will be
245
- uploaded for requests from any domain. `"value": ["\\**"]`
245
+ uploaded for requests from any domain. `"value": ["*"]`
246
246
  - **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value if the
247
247
  origin matches one of the listed domains** - Content will be uploaded only for
248
248
  requests from the domains specified in the field.
@@ -250,7 +250,7 @@ class OptionsCors(TypedDict, total=False):
250
250
  - **Adds "$`http_origin`" as the Access-Control-Allow-Origin header value** -
251
251
  Content will be uploaded for requests from any domain, and the domain from
252
252
  which the request was sent will be added to the "Access-Control-Allow-Origin"
253
- header in the response. `"value": ["$`http_origin`"]`
253
+ header in the response. `"value": ["$http_origin"]`
254
254
  """
255
255
 
256
256
  always: bool
@@ -796,7 +796,10 @@ class OptionsProxyConnectTimeout(TypedDict, total=False):
796
796
  """
797
797
 
798
798
  value: Required[str]
799
- """Timeout value in seconds."""
799
+ """Timeout value in seconds.
800
+
801
+ Supported range: **1s - 5s**.
802
+ """
800
803
 
801
804
 
802
805
  class OptionsProxyReadTimeout(TypedDict, total=False):
@@ -810,7 +813,10 @@ class OptionsProxyReadTimeout(TypedDict, total=False):
810
813
  """
811
814
 
812
815
  value: Required[str]
813
- """Timeout value in seconds."""
816
+ """Timeout value in seconds.
817
+
818
+ Supported range: **1s - 30s**.
819
+ """
814
820
 
815
821
 
816
822
  class OptionsQueryParamsBlacklist(TypedDict, total=False):
@@ -949,7 +955,7 @@ class OptionsReferrerACL(TypedDict, total=False):
949
955
  Examples:
950
956
 
951
957
  - `example.com`
952
- - `\\**.example.com`
958
+ - `*.example.com`
953
959
  """
954
960
 
955
961
  policy_type: Required[Literal["allow", "deny"]]
@@ -1035,7 +1041,7 @@ class OptionsRewrite(TypedDict, total=False):
1035
1041
 
1036
1042
  Example:
1037
1043
 
1038
- - `/(.\\**) /media/$1`
1044
+ - `/(.*) /media/$1`
1039
1045
  """
1040
1046
 
1041
1047
  enabled: Required[bool]
@@ -1224,7 +1230,7 @@ class OptionsStaticHeaders(TypedDict, total=False):
1224
1230
  - **false** - Option is disabled.
1225
1231
  """
1226
1232
 
1227
- value: Required[Dict[str, str]]
1233
+ value: Required[object]
1228
1234
  """A MAP for static headers in a format of `header_name: header_value`.
1229
1235
 
1230
1236
  Restrictions:
@@ -1421,7 +1427,7 @@ class Options(TypedDict, total=False):
1421
1427
  2. `fetch_compressed` overrides `gzipON` and `brotli_compression` in rule. If
1422
1428
  you enable it in CDN resource and want to use `gzipON` and
1423
1429
  `brotli_compression` in a rule, you have to specify
1424
- `"`fetch_compressed`": false` in the rule.
1430
+ `"fetch_compressed": false` in the rule.
1425
1431
  """
1426
1432
 
1427
1433
  follow_origin_redirect: Optional[OptionsFollowOriginRedirect]
@@ -1455,8 +1461,7 @@ class Options(TypedDict, total=False):
1455
1461
  options enabled.
1456
1462
  2. `fetch_compressed` option in CDN resource settings overrides `gzipON` in
1457
1463
  rules. If you enable `fetch_compressed` in CDN resource and want to enable
1458
- `gzipON` in rules, you need to specify `"`fetch_compressed`":false` for
1459
- rules.
1464
+ `gzipON` in rules, you need to specify `"fetch_compressed":false` for rules.
1460
1465
  """
1461
1466
 
1462
1467
  host_header: Annotated[Optional[OptionsHostHeader], PropertyInfo(alias="hostHeader")]
@@ -17,7 +17,7 @@ class StatisticGetLogsUsageAggregatedParams(TypedDict, total=False):
17
17
  """End of the requested time period (ISO 8601/RFC 3339 format, UTC.)"""
18
18
 
19
19
  flat: bool
20
- """The waу parameters are arranged in the response.
20
+ """The way the parameters are arranged in the response.
21
21
 
22
22
  Possible values:
23
23
 
@@ -39,4 +39,7 @@ class StatisticGetLogsUsageAggregatedParams(TypedDict, total=False):
39
39
  To request multiple values, use:
40
40
 
41
41
  - &resource=1&resource=2
42
+
43
+ If CDN resource ID is not specified, data related to all CDN resources is
44
+ returned.
42
45
  """
@@ -11,20 +11,10 @@ __all__ = ["StatisticGetLogsUsageSeriesParams"]
11
11
 
12
12
  class StatisticGetLogsUsageSeriesParams(TypedDict, total=False):
13
13
  from_: Required[Annotated[str, PropertyInfo(alias="from")]]
14
- """Beginning of the requested time period (ISO 8601/RFC 3339 format, UTC.)
15
-
16
- Example:
17
-
18
- - &from=2020-01-01T00:00:00.000
19
- """
14
+ """Beginning of the requested time period (ISO 8601/RFC 3339 format, UTC.)"""
20
15
 
21
16
  to: Required[str]
22
- """End of the requested time period (ISO 8601/RFC 3339 format, UTC.)
23
-
24
- Example:
25
-
26
- - &from=2020-01-01T00:00:00.000
27
- """
17
+ """End of the requested time period (ISO 8601/RFC 3339 format, UTC.)"""
28
18
 
29
19
  resource: int
30
20
  """CDN resources IDs by that statistics data is grouped.
@@ -32,4 +22,7 @@ class StatisticGetLogsUsageSeriesParams(TypedDict, total=False):
32
22
  To request multiple values, use:
33
23
 
34
24
  - &resource=1&resource=2
25
+
26
+ If CDN resource ID is not specified, data related to all CDN resources is
27
+ returned.
35
28
  """
@@ -11,13 +11,7 @@ __all__ = ["StatisticGetResourceUsageAggregatedParams"]
11
11
 
12
12
  class StatisticGetResourceUsageAggregatedParams(TypedDict, total=False):
13
13
  from_: Required[Annotated[str, PropertyInfo(alias="from")]]
14
- """Beginning of the requested time period (ISO 8601/RFC 3339 format, UTC.)
15
-
16
- Examples:
17
-
18
- - &from=2018-11-01T00:00:00.000
19
- - &from=2018-11-01
20
- """
14
+ """Beginning of the requested time period (ISO 8601/RFC 3339 format, UTC.)"""
21
15
 
22
16
  metrics: Required[str]
23
17
  """Types of statistics data.
@@ -78,19 +72,12 @@ class StatisticGetResourceUsageAggregatedParams(TypedDict, total=False):
78
72
  """
79
73
 
80
74
  to: Required[str]
81
- """End of the requested time period (ISO 8601/RFC 3339 format, UTC.)
82
-
83
- Examples:
84
-
85
- - &to=2018-11-01T00:00:00.000
86
- - &to=2018-11-01
87
- """
75
+ """End of the requested time period (ISO 8601/RFC 3339 format, UTC.)"""
88
76
 
89
77
  countries: str
90
- """Names of countries for which data is displayed.
91
-
92
- English short name from [ISO 3166 standard][1] without the definite article
93
- "the" should be used.
78
+ """
79
+ Names of countries for which data should be displayed. English short name from
80
+ [ISO 3166 standard][1] without the definite article ("the") should be used.
94
81
 
95
82
  [1]: https://www.iso.org/obp/ui/#search/code/
96
83
 
@@ -100,7 +87,7 @@ class StatisticGetResourceUsageAggregatedParams(TypedDict, total=False):
100
87
  """
101
88
 
102
89
  flat: bool
103
- """The waу the parameters are arranged in the response.
90
+ """The way the parameters are arranged in the response.
104
91
 
105
92
  Possible values:
106
93
 
@@ -116,7 +103,9 @@ class StatisticGetResourceUsageAggregatedParams(TypedDict, total=False):
116
103
  - **resource** – Data is grouped by CDN resources IDs.
117
104
  - **region** – Data is grouped by regions of CDN edge servers.
118
105
  - **country** – Data is grouped by countries of CDN edge servers.
119
- - **vhost** – Data is grouped by resources CNAME.
106
+ - **vhost** – Data is grouped by resources CNAMEs.
107
+ - **`client_country`** - Data is grouped by countries, based on end-users'
108
+ location.
120
109
 
121
110
  To request multiple values, use:
122
111
 
@@ -140,7 +129,7 @@ class StatisticGetResourceUsageAggregatedParams(TypedDict, total=False):
140
129
  """
141
130
 
142
131
  resource: int
143
- """CDN resources IDs by which statistics data is grouped.
132
+ """CDN resources IDs by that statistics data is grouped.
144
133
 
145
134
  To request multiple values, use:
146
135
 
@@ -100,6 +100,8 @@ class StatisticGetResourceUsageSeriesParams(TypedDict, total=False):
100
100
  - **region** – Data is grouped by regions of CDN edge servers.
101
101
  - **country** – Data is grouped by countries of CDN edge servers.
102
102
  - **vhost** – Data is grouped by resources CNAMEs.
103
+ - **`client_country`** - Data is grouped by countries, based on end-users'
104
+ location.
103
105
 
104
106
  To request multiple values, use:
105
107
 
@@ -123,9 +125,12 @@ class StatisticGetResourceUsageSeriesParams(TypedDict, total=False):
123
125
  """
124
126
 
125
127
  resource: int
126
- """CDN resource IDs.
128
+ """CDN resources IDs by that statistics data is grouped.
127
129
 
128
130
  To request multiple values, use:
129
131
 
130
132
  - &resource=1&resource=2
133
+
134
+ If CDN resource ID is not specified, data related to all CDN resources is
135
+ returned.
131
136
  """
@@ -17,7 +17,7 @@ class StatisticGetShieldUsageAggregatedParams(TypedDict, total=False):
17
17
  """End of the requested time period (ISO 8601/RFC 3339 format, UTC.)"""
18
18
 
19
19
  flat: bool
20
- """The waу parameters are arranged in the response.
20
+ """The way the parameters are arranged in the response.
21
21
 
22
22
  Possible values:
23
23
 
@@ -30,7 +30,7 @@ class StatisticGetShieldUsageAggregatedParams(TypedDict, total=False):
30
30
 
31
31
  Possible value:
32
32
 
33
- - **resource** - Data is grouped by CDN resource.
33
+ - **resource** - Data is grouped by CDN resources.
34
34
  """
35
35
 
36
36
  resource: int
@@ -39,4 +39,7 @@ class StatisticGetShieldUsageAggregatedParams(TypedDict, total=False):
39
39
  To request multiple values, use:
40
40
 
41
41
  - &resource=1&resource=2
42
+
43
+ If CDN resource ID is not specified, data related to all CDN resources is
44
+ returned.
42
45
  """
@@ -22,4 +22,7 @@ class StatisticGetShieldUsageSeriesParams(TypedDict, total=False):
22
22
  To request multiple values, use:
23
23
 
24
24
  - &resource=1&resource=2
25
+
26
+ If CDN resource ID is not specified, data related to all CDN resources is
27
+ returned.
25
28
  """
@@ -64,8 +64,9 @@ from .volume_list_params import VolumeListParams as VolumeListParams
64
64
  from .billing_reservation import BillingReservation as BillingReservation
65
65
  from .ddos_profile_status import DDOSProfileStatus as DDOSProfileStatus
66
66
  from .fixed_address_short import FixedAddressShort as FixedAddressShort
67
+ from .gpu_virtual_cluster import GPUVirtualCluster as GPUVirtualCluster
67
68
  from .interface_ip_family import InterfaceIPFamily as InterfaceIPFamily
68
- from .k8s_cluster_version import K8sClusterVersion as K8sClusterVersion
69
+ from .k8s_cluster_version import K8SClusterVersion as K8SClusterVersion
69
70
  from .network_list_params import NetworkListParams as NetworkListParams
70
71
  from .project_list_params import ProjectListParams as ProjectListParams
71
72
  from .provisioning_status import ProvisioningStatus as ProvisioningStatus
@@ -95,6 +96,7 @@ from .load_balancer_metrics import LoadBalancerMetrics as LoadBalancerMetrics
95
96
  from .network_create_params import NetworkCreateParams as NetworkCreateParams
96
97
  from .network_update_params import NetworkUpdateParams as NetworkUpdateParams
97
98
  from .project_create_params import ProjectCreateParams as ProjectCreateParams
99
+ from .project_update_params import ProjectUpdateParams as ProjectUpdateParams
98
100
  from .ssh_key_create_params import SSHKeyCreateParams as SSHKeyCreateParams
99
101
  from .ssh_key_update_params import SSHKeyUpdateParams as SSHKeyUpdateParams
100
102
  from .cost_report_aggregated import CostReportAggregated as CostReportAggregated
@@ -106,7 +108,6 @@ from .instance_resize_params import InstanceResizeParams as InstanceResizeParams
106
108
  from .instance_update_params import InstanceUpdateParams as InstanceUpdateParams
107
109
  from .lb_health_monitor_type import LbHealthMonitorType as LbHealthMonitorType
108
110
  from .network_interface_list import NetworkInterfaceList as NetworkInterfaceList
109
- from .project_replace_params import ProjectReplaceParams as ProjectReplaceParams
110
111
  from .quota_get_all_response import QuotaGetAllResponse as QuotaGetAllResponse
111
112
  from .registry_create_params import RegistryCreateParams as RegistryCreateParams
112
113
  from .registry_resize_params import RegistryResizeParams as RegistryResizeParams
@@ -118,7 +119,7 @@ from .ddos_profile_option_list import DDOSProfileOptionList as DDOSProfileOption
118
119
  from .file_share_create_params import FileShareCreateParams as FileShareCreateParams
119
120
  from .file_share_resize_params import FileShareResizeParams as FileShareResizeParams
120
121
  from .file_share_update_params import FileShareUpdateParams as FileShareUpdateParams
121
- from .k8s_cluster_version_list import K8sClusterVersionList as K8sClusterVersionList
122
+ from .k8s_cluster_version_list import K8SClusterVersionList as K8SClusterVersionList
122
123
  from .load_balancer_get_params import LoadBalancerGetParams as LoadBalancerGetParams
123
124
  from .load_balancer_statistics import LoadBalancerStatistics as LoadBalancerStatistics
124
125
  from .floating_ip_assign_params import FloatingIPAssignParams as FloatingIPAssignParams
@@ -160,11 +161,16 @@ from .inference_region_capacity_list import InferenceRegionCapacityList as Infer
160
161
  from .load_balancer_operating_status import LoadBalancerOperatingStatus as LoadBalancerOperatingStatus
161
162
  from .billing_reservation_list_params import BillingReservationListParams as BillingReservationListParams
162
163
  from .cost_report_get_detailed_params import CostReportGetDetailedParams as CostReportGetDetailedParams
164
+ from .gpu_virtual_cluster_list_params import GPUVirtualClusterListParams as GPUVirtualClusterListParams
163
165
  from .reserved_fixed_ip_create_params import ReservedFixedIPCreateParams as ReservedFixedIPCreateParams
164
166
  from .reserved_fixed_ip_update_params import ReservedFixedIPUpdateParams as ReservedFixedIPUpdateParams
165
167
  from .volume_attach_to_instance_params import VolumeAttachToInstanceParams as VolumeAttachToInstanceParams
166
168
  from .cost_report_get_aggregated_params import CostReportGetAggregatedParams as CostReportGetAggregatedParams
167
169
  from .gpu_baremetal_cluster_list_params import GPUBaremetalClusterListParams as GPUBaremetalClusterListParams
170
+ from .gpu_virtual_cluster_action_params import GPUVirtualClusterActionParams as GPUVirtualClusterActionParams
171
+ from .gpu_virtual_cluster_create_params import GPUVirtualClusterCreateParams as GPUVirtualClusterCreateParams
172
+ from .gpu_virtual_cluster_delete_params import GPUVirtualClusterDeleteParams as GPUVirtualClusterDeleteParams
173
+ from .gpu_virtual_cluster_update_params import GPUVirtualClusterUpdateParams as GPUVirtualClusterUpdateParams
168
174
  from .laas_index_retention_policy_param import LaasIndexRetentionPolicyParam as LaasIndexRetentionPolicyParam
169
175
  from .load_balancer_member_connectivity import LoadBalancerMemberConnectivity as LoadBalancerMemberConnectivity
170
176
  from .volume_detach_from_instance_params import VolumeDetachFromInstanceParams as VolumeDetachFromInstanceParams
@@ -1,6 +1,6 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- from typing import List, Optional
3
+ from typing import Dict, List, Optional
4
4
  from datetime import datetime
5
5
  from typing_extensions import Literal
6
6
 
@@ -81,7 +81,7 @@ class Resource(BaseModel):
81
81
  ]
82
82
  """Resource type"""
83
83
 
84
- resource_body: Optional[object] = None
84
+ resource_body: Optional[Dict[str, object]] = None
85
85
  """Free-form object, resource body."""
86
86
 
87
87
  search_field: Optional[str] = None
@@ -115,7 +115,7 @@ class AuditLogEntry(BaseModel):
115
115
  User action log was successfully received by its subscriber in case there is one
116
116
  """
117
117
 
118
- action_data: Optional[object] = None
118
+ action_data: Optional[Dict[str, object]] = None
119
119
  """Additional information about the action"""
120
120
 
121
121
  action_type: Literal[
@@ -238,6 +238,9 @@ class AuditLogEntry(BaseModel):
238
238
  resources: List[Resource]
239
239
  """Resources"""
240
240
 
241
+ source_user_ip: Optional[str] = None
242
+ """User IP that made the request"""
243
+
241
244
  task_id: Optional[str] = None
242
245
  """Task ID"""
243
246
 
@@ -250,5 +253,8 @@ class AuditLogEntry(BaseModel):
250
253
  total_price: Optional[TotalPrice] = None
251
254
  """Total resource price VAT inclusive"""
252
255
 
256
+ user_agent: Optional[str] = None
257
+ """User-Agent that made the request"""
258
+
253
259
  user_id: int
254
260
  """User ID"""
@@ -152,8 +152,20 @@ class AuditLogListParams(TypedDict, total=False):
152
152
  Oldest first, or most recent first
153
153
  """
154
154
 
155
+ source_user_ips: SequenceNotStr[str]
156
+ """Originating IP address of the client making the request.
157
+
158
+ Several options can be specified.
159
+ """
160
+
155
161
  to_timestamp: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
156
162
  """ISO formatted datetime string.
157
163
 
158
164
  Ending timestamp until which user actions are requested
159
165
  """
166
+
167
+ user_agents: SequenceNotStr[str]
168
+ """User-Agent string identifying the client making the request.
169
+
170
+ Several options can be specified.
171
+ """
@@ -44,7 +44,7 @@ class ServerCreateParams(TypedDict, total=False):
44
44
  You can create one or more interfaces - private, public, or both.
45
45
  """
46
46
 
47
- app_config: Optional[object]
47
+ app_config: Optional[Dict[str, object]]
48
48
  """
49
49
  Parameters for the application template if creating the instance from an
50
50
  `apptemplate`.
@@ -67,8 +67,8 @@ class ServerCreateParams(TypedDict, total=False):
67
67
  If you want server names to be automatically generated based on IP addresses,
68
68
  you can provide a name template instead of specifying the name manually. The
69
69
  template should include a placeholder that will be replaced during provisioning.
70
- Supported placeholders are: `{`ip_octets`}` (last 3 octets of the IP),
71
- `{`two_ip_octets`}`, and `{`one_ip_octet`}`.
70
+ Supported placeholders are: `{ip_octets}` (last 3 octets of the IP),
71
+ `{two_ip_octets}`, and `{one_ip_octet}`.
72
72
  """
73
73
 
74
74
  password: str
@@ -91,10 +91,10 @@ class ServerCreateParams(TypedDict, total=False):
91
91
  """Key-value tags to associate with the resource.
92
92
 
93
93
  A tag is a key-value pair that can be associated with a resource, enabling
94
- efficient filtering and grouping for better organization and management. Some
95
- tags are read-only and cannot be modified by the user. Tags are also integrated
96
- with cost reports, allowing cost data to be filtered based on tag keys or
97
- values.
94
+ efficient filtering and grouping for better organization and management. Both
95
+ tag keys and values have a maximum length of 255 characters. Some tags are
96
+ read-only and cannot be modified by the user. Tags are also integrated with cost
97
+ reports, allowing cost data to be filtered based on tag keys or values.
98
98
  """
99
99
 
100
100
  user_data: str
@@ -50,9 +50,3 @@ class BaremetalFlavor(BaseModel):
50
50
 
51
51
  price_status: Optional[Literal["error", "hide", "show"]] = None
52
52
  """Price status for the UI"""
53
-
54
- reserved_in_stock: Optional[int] = None
55
- """Count of reserved but not used nodes.
56
-
57
- If a client don't have reservations for the flavor, it's None.
58
- """
@@ -9,7 +9,7 @@ __all__ = ["BillingReservationListParams"]
9
9
 
10
10
  class BillingReservationListParams(TypedDict, total=False):
11
11
  metric_name: str
12
- """Name from billing features for specific resource"""
12
+ """Metric name for the resource (e.g., 'bm1-hf-`medium_min`')"""
13
13
 
14
14
  order_by: Literal["active_from.asc", "active_from.desc", "active_to.asc", "active_to.desc"]
15
15
  """Order by field and direction."""
@@ -12,7 +12,10 @@ __all__ = ["BlackholePort"]
12
12
 
13
13
  class BlackholePort(BaseModel):
14
14
  alarm_end: datetime = FieldInfo(alias="AlarmEnd")
15
- """A date-time string giving the time that the alarm ended"""
15
+ """A date-time string giving the time that the alarm ended.
16
+
17
+ If not yet ended, time will be given as 0001-01-01T00:00:00Z
18
+ """
16
19
 
17
20
  alarm_start: datetime = FieldInfo(alias="AlarmStart")
18
21
  """A date-time string giving the time that the alarm started"""
@@ -0,0 +1,12 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from .postgres_cluster import PostgresCluster as PostgresCluster
6
+ from .pg_conf_validation import PgConfValidation as PgConfValidation
7
+ from .cluster_list_params import ClusterListParams as ClusterListParams
8
+ from .cluster_create_params import ClusterCreateParams as ClusterCreateParams
9
+ from .cluster_update_params import ClusterUpdateParams as ClusterUpdateParams
10
+ from .postgres_cluster_short import PostgresClusterShort as PostgresClusterShort
11
+ from .postgres_configuration import PostgresConfiguration as PostgresConfiguration
12
+ from .custom_configuration_validate_params import CustomConfigurationValidateParams as CustomConfigurationValidateParams
@@ -0,0 +1,108 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing import List, Iterable, Optional
6
+ from typing_extensions import Literal, Required, TypedDict
7
+
8
+ from ....._types import SequenceNotStr
9
+
10
+ __all__ = [
11
+ "ClusterCreateParams",
12
+ "Flavor",
13
+ "HighAvailability",
14
+ "Network",
15
+ "PgServerConfiguration",
16
+ "PgServerConfigurationPooler",
17
+ "Storage",
18
+ "Database",
19
+ "User",
20
+ ]
21
+
22
+
23
+ class ClusterCreateParams(TypedDict, total=False):
24
+ project_id: int
25
+
26
+ region_id: int
27
+
28
+ cluster_name: Required[str]
29
+ """PostgreSQL cluster name"""
30
+
31
+ flavor: Required[Flavor]
32
+ """Instance RAM and CPU"""
33
+
34
+ high_availability: Required[Optional[HighAvailability]]
35
+ """High Availability settings"""
36
+
37
+ network: Required[Network]
38
+
39
+ pg_server_configuration: Required[PgServerConfiguration]
40
+ """PosgtreSQL cluster configuration"""
41
+
42
+ storage: Required[Storage]
43
+ """Cluster's storage configuration"""
44
+
45
+ databases: Iterable[Database]
46
+
47
+ users: Iterable[User]
48
+
49
+
50
+ class Flavor(TypedDict, total=False):
51
+ cpu: Required[int]
52
+ """Maximum available cores for instance"""
53
+
54
+ memory_gib: Required[int]
55
+ """Maximum available RAM for instance"""
56
+
57
+
58
+ class HighAvailability(TypedDict, total=False):
59
+ replication_mode: Required[Literal["async", "sync"]]
60
+ """Type of replication"""
61
+
62
+
63
+ class Network(TypedDict, total=False):
64
+ acl: Required[SequenceNotStr[str]]
65
+ """Allowed IPs and subnets for incoming traffic"""
66
+
67
+ network_type: Required[Literal["public"]]
68
+ """Network Type"""
69
+
70
+
71
+ class PgServerConfigurationPooler(TypedDict, total=False):
72
+ mode: Required[Literal["session", "statement", "transaction"]]
73
+
74
+ type: Literal["pgbouncer"]
75
+
76
+
77
+ class PgServerConfiguration(TypedDict, total=False):
78
+ pg_conf: Required[str]
79
+ """pg.conf settings"""
80
+
81
+ version: Required[str]
82
+ """Cluster version"""
83
+
84
+ pooler: Optional[PgServerConfigurationPooler]
85
+
86
+
87
+ class Storage(TypedDict, total=False):
88
+ size_gib: Required[int]
89
+ """Total available storage for database"""
90
+
91
+ type: Required[str]
92
+ """Storage type"""
93
+
94
+
95
+ class Database(TypedDict, total=False):
96
+ name: Required[str]
97
+ """Database name"""
98
+
99
+ owner: Required[str]
100
+ """Database owner from users list"""
101
+
102
+
103
+ class User(TypedDict, total=False):
104
+ name: Required[str]
105
+ """User name"""
106
+
107
+ role_attributes: Required[List[Literal["BYPASSRLS", "CREATEDB", "CREATEROLE", "INHERIT", "LOGIN", "NOLOGIN"]]]
108
+ """User's attributes"""
@@ -0,0 +1,19 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from __future__ import annotations
4
+
5
+ from typing_extensions import TypedDict
6
+
7
+ __all__ = ["ClusterListParams"]
8
+
9
+
10
+ class ClusterListParams(TypedDict, total=False):
11
+ project_id: int
12
+
13
+ region_id: int
14
+
15
+ limit: int
16
+ """Maximum number of clusters to return"""
17
+
18
+ offset: int
19
+ """Number of clusters to skip"""