gcore 0.14.0__py3-none-any.whl → 0.16.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 (207) hide show
  1. gcore/_client.py +2 -8
  2. gcore/_version.py +1 -1
  3. gcore/resources/cdn/audit_log.py +4 -12
  4. gcore/resources/cdn/cdn.py +10 -18
  5. gcore/resources/cdn/certificates.py +16 -40
  6. gcore/resources/cdn/ip_ranges.py +4 -8
  7. gcore/resources/cdn/logs/__init__.py +0 -14
  8. gcore/resources/cdn/logs/logs.py +4 -44
  9. gcore/resources/cdn/logs_uploader/configs.py +14 -42
  10. gcore/resources/cdn/logs_uploader/policies.py +14 -42
  11. gcore/resources/cdn/logs_uploader/targets.py +14 -42
  12. gcore/resources/cdn/metrics.py +2 -6
  13. gcore/resources/cdn/network_capacity.py +2 -6
  14. gcore/resources/cdn/origin_groups.py +12 -32
  15. gcore/resources/cdn/resources/resources.py +18 -46
  16. gcore/resources/cdn/resources/rules.py +12 -36
  17. gcore/resources/cdn/resources/shield.py +4 -12
  18. gcore/resources/cdn/rule_templates.py +12 -36
  19. gcore/resources/cdn/shields.py +2 -6
  20. gcore/resources/cdn/statistics.py +16 -40
  21. gcore/resources/cdn/trusted_ca_certificates.py +10 -30
  22. gcore/resources/cloud/audit_logs.py +2 -6
  23. gcore/resources/cloud/baremetal/flavors.py +2 -6
  24. gcore/resources/cloud/baremetal/images.py +2 -6
  25. gcore/resources/cloud/baremetal/servers.py +6 -18
  26. gcore/resources/cloud/billing_reservations.py +25 -208
  27. gcore/resources/cloud/cost_reports.py +44 -62
  28. gcore/resources/cloud/file_shares/access_rules.py +6 -18
  29. gcore/resources/cloud/file_shares/file_shares.py +37 -44
  30. gcore/resources/cloud/floating_ips.py +14 -42
  31. gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +2 -6
  32. gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +18 -54
  33. gcore/resources/cloud/gpu_baremetal_clusters/images.py +8 -24
  34. gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +2 -6
  35. gcore/resources/cloud/gpu_baremetal_clusters/servers.py +14 -42
  36. gcore/resources/cloud/inference/api_keys.py +10 -30
  37. gcore/resources/cloud/inference/applications/deployments.py +135 -155
  38. gcore/resources/cloud/inference/applications/templates.py +4 -12
  39. gcore/resources/cloud/inference/deployments/deployments.py +16 -48
  40. gcore/resources/cloud/inference/deployments/logs.py +2 -6
  41. gcore/resources/cloud/inference/flavors.py +4 -12
  42. gcore/resources/cloud/inference/inference.py +2 -6
  43. gcore/resources/cloud/inference/registry_credentials.py +10 -30
  44. gcore/resources/cloud/inference/secrets.py +10 -30
  45. gcore/resources/cloud/instances/flavors.py +2 -6
  46. gcore/resources/cloud/instances/images.py +12 -36
  47. gcore/resources/cloud/instances/instances.py +99 -94
  48. gcore/resources/cloud/instances/interfaces.py +6 -18
  49. gcore/resources/cloud/instances/metrics.py +2 -6
  50. gcore/resources/cloud/ip_ranges.py +2 -6
  51. gcore/resources/cloud/k8s/clusters/clusters.py +18 -54
  52. gcore/resources/cloud/k8s/clusters/nodes.py +4 -12
  53. gcore/resources/cloud/k8s/clusters/pools/nodes.py +4 -12
  54. gcore/resources/cloud/k8s/clusters/pools/pools.py +12 -36
  55. gcore/resources/cloud/k8s/flavors.py +2 -6
  56. gcore/resources/cloud/k8s/k8s.py +2 -6
  57. gcore/resources/cloud/load_balancers/flavors.py +2 -6
  58. gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +10 -30
  59. gcore/resources/cloud/load_balancers/l7_policies/rules.py +10 -30
  60. gcore/resources/cloud/load_balancers/listeners.py +26 -46
  61. gcore/resources/cloud/load_balancers/load_balancers.py +493 -521
  62. gcore/resources/cloud/load_balancers/metrics.py +8 -12
  63. gcore/resources/cloud/load_balancers/pools/health_monitors.py +4 -12
  64. gcore/resources/cloud/load_balancers/pools/members.py +4 -12
  65. gcore/resources/cloud/load_balancers/pools/pools.py +26 -46
  66. gcore/resources/cloud/load_balancers/statuses.py +10 -18
  67. gcore/resources/cloud/networks/networks.py +10 -30
  68. gcore/resources/cloud/networks/routers.py +14 -42
  69. gcore/resources/cloud/networks/subnets.py +15 -37
  70. gcore/resources/cloud/placement_groups.py +8 -24
  71. gcore/resources/cloud/projects.py +10 -22
  72. gcore/resources/cloud/quotas/quotas.py +6 -18
  73. gcore/resources/cloud/quotas/requests.py +8 -24
  74. gcore/resources/cloud/regions.py +4 -8
  75. gcore/resources/cloud/registries/artifacts.py +4 -12
  76. gcore/resources/cloud/registries/registries.py +10 -30
  77. gcore/resources/cloud/registries/repositories.py +4 -12
  78. gcore/resources/cloud/registries/tags.py +2 -6
  79. gcore/resources/cloud/registries/users.py +12 -36
  80. gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +114 -25
  81. gcore/resources/cloud/reserved_fixed_ips/vip.py +10 -30
  82. gcore/resources/cloud/secrets.py +8 -24
  83. gcore/resources/cloud/security_groups/rules.py +6 -18
  84. gcore/resources/cloud/security_groups/security_groups.py +14 -42
  85. gcore/resources/cloud/ssh_keys.py +10 -30
  86. gcore/resources/cloud/tasks.py +14 -26
  87. gcore/resources/cloud/usage_reports.py +18 -24
  88. gcore/resources/cloud/users/role_assignments.py +8 -24
  89. gcore/resources/cloud/volumes.py +20 -60
  90. gcore/resources/dns/dns.py +4 -8
  91. gcore/resources/dns/locations.py +8 -20
  92. gcore/resources/dns/metrics.py +2 -6
  93. gcore/resources/dns/pickers/pickers.py +2 -2
  94. gcore/resources/dns/pickers/presets.py +2 -6
  95. gcore/resources/dns/zones/dnssec.py +4 -12
  96. gcore/resources/dns/zones/rrsets.py +12 -36
  97. gcore/resources/dns/zones/zones.py +22 -58
  98. gcore/resources/fastedge/apps/apps.py +12 -28
  99. gcore/resources/fastedge/apps/logs.py +2 -6
  100. gcore/resources/fastedge/binaries.py +8 -24
  101. gcore/resources/fastedge/fastedge.py +2 -2
  102. gcore/resources/fastedge/kv_stores.py +10 -22
  103. gcore/resources/fastedge/secrets.py +12 -36
  104. gcore/resources/fastedge/statistics.py +4 -12
  105. gcore/resources/fastedge/templates.py +10 -30
  106. gcore/resources/iam/api_tokens.py +12 -26
  107. gcore/resources/iam/iam.py +2 -2
  108. gcore/resources/iam/users.py +10 -26
  109. gcore/resources/security/bgp_announces.py +4 -12
  110. gcore/resources/security/events.py +2 -6
  111. gcore/resources/security/profile_templates.py +2 -6
  112. gcore/resources/security/profiles.py +16 -40
  113. gcore/resources/storage/buckets/buckets.py +6 -18
  114. gcore/resources/storage/buckets/cors.py +4 -12
  115. gcore/resources/storage/buckets/lifecycle.py +4 -12
  116. gcore/resources/storage/buckets/policy.py +6 -18
  117. gcore/resources/storage/credentials.py +2 -6
  118. gcore/resources/storage/locations.py +2 -6
  119. gcore/resources/storage/statistics.py +4 -12
  120. gcore/resources/storage/storage.py +16 -48
  121. gcore/resources/streaming/ai_tasks.py +10 -18
  122. gcore/resources/streaming/broadcasts.py +12 -36
  123. gcore/resources/streaming/directories.py +10 -30
  124. gcore/resources/streaming/players.py +12 -28
  125. gcore/resources/streaming/playlists.py +12 -36
  126. gcore/resources/streaming/quality_sets.py +4 -12
  127. gcore/resources/streaming/restreams.py +10 -30
  128. gcore/resources/streaming/statistics.py +46 -138
  129. gcore/resources/streaming/streams/overlays.py +12 -36
  130. gcore/resources/streaming/streams/streams.py +20 -52
  131. gcore/resources/streaming/videos/subtitles.py +10 -30
  132. gcore/resources/streaming/videos/videos.py +16 -40
  133. gcore/resources/waap/advanced_rules.py +2 -6
  134. gcore/resources/waap/custom_page_sets.py +12 -36
  135. gcore/resources/waap/domains/advanced_rules.py +12 -36
  136. gcore/resources/waap/domains/api_discovery.py +12 -36
  137. gcore/resources/waap/domains/api_path_groups.py +2 -6
  138. gcore/resources/waap/domains/api_paths.py +10 -30
  139. gcore/resources/waap/domains/custom_rules.py +14 -42
  140. gcore/resources/waap/domains/domains.py +12 -32
  141. gcore/resources/waap/domains/firewall_rules.py +14 -42
  142. gcore/resources/waap/domains/insight_silences.py +10 -30
  143. gcore/resources/waap/domains/insights.py +6 -18
  144. gcore/resources/waap/domains/settings.py +4 -12
  145. gcore/resources/waap/domains/statistics.py +12 -36
  146. gcore/resources/waap/insights.py +2 -6
  147. gcore/resources/waap/ip_info/ip_info.py +16 -48
  148. gcore/resources/waap/ip_info/metrics.py +2 -6
  149. gcore/resources/waap/organizations.py +2 -6
  150. gcore/resources/waap/statistics.py +2 -6
  151. gcore/resources/waap/tags.py +2 -2
  152. gcore/resources/waap/waap.py +2 -2
  153. gcore/types/cdn/cdn_resource.py +20 -0
  154. gcore/types/cdn/logs/__init__.py +0 -4
  155. gcore/types/cdn/logs_aggregated_stats.py +1 -1
  156. gcore/types/cdn/resource_create_params.py +20 -0
  157. gcore/types/cdn/resource_replace_params.py +20 -0
  158. gcore/types/cdn/resource_update_params.py +20 -0
  159. gcore/types/cdn/resources/cdn_resource_rule.py +20 -0
  160. gcore/types/cdn/resources/rule_create_params.py +20 -0
  161. gcore/types/cdn/resources/rule_replace_params.py +20 -0
  162. gcore/types/cdn/resources/rule_update_params.py +20 -0
  163. gcore/types/cdn/rule_template.py +20 -0
  164. gcore/types/cdn/rule_template_create_params.py +20 -0
  165. gcore/types/cdn/rule_template_replace_params.py +20 -0
  166. gcore/types/cdn/rule_template_update_params.py +20 -0
  167. gcore/types/cloud/__init__.py +2 -0
  168. gcore/types/cloud/billing_reservation.py +52 -114
  169. gcore/types/cloud/billing_reservation_list_params.py +4 -42
  170. gcore/types/cloud/billing_reservations.py +16 -0
  171. gcore/types/cloud/cost_report_get_aggregated_params.py +2 -2
  172. gcore/types/cloud/cost_report_get_detailed_params.py +2 -2
  173. gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_flavor.py +12 -0
  174. gcore/types/cloud/inference/applications/__init__.py +1 -1
  175. gcore/types/cloud/inference/applications/{deployment_patch_params.py → deployment_update_params.py} +2 -2
  176. gcore/types/cloud/instance_list_params.py +1 -1
  177. gcore/types/cloud/instance_update_params.py +31 -3
  178. gcore/types/cloud/load_balancer_create_params.py +1 -1
  179. gcore/types/cloud/load_balancer_listener_detail.py +1 -1
  180. gcore/types/cloud/load_balancers/listener_create_params.py +1 -1
  181. gcore/types/cloud/load_balancers/listener_list_params.py +1 -1
  182. gcore/types/cloud/load_balancers/pool_create_params.py +1 -1
  183. gcore/types/cloud/load_balancers/pool_list_params.py +1 -1
  184. gcore/types/cloud/quota_get_all_response.py +8 -8
  185. gcore/types/cloud/quota_get_by_region_response.py +8 -8
  186. gcore/types/cloud/quotas/request_create_params.py +4 -4
  187. gcore/types/cloud/quotas/request_get_response.py +4 -4
  188. gcore/types/cloud/quotas/request_list_response.py +4 -4
  189. gcore/types/cloud/reserved_fixed_ip_update_params.py +16 -0
  190. gcore/types/cloud/task_list_params.py +3 -3
  191. gcore/types/cloud/usage_report_get_params.py +2 -2
  192. gcore/types/iam/account_overview.py +24 -26
  193. gcore/types/iam/api_token.py +24 -24
  194. gcore/types/iam/api_token_create_params.py +2 -1
  195. gcore/types/iam/api_token_list.py +24 -24
  196. gcore/types/iam/user_detailed.py +15 -15
  197. gcore/types/iam/user_invite.py +2 -4
  198. gcore/types/iam/user_update.py +15 -15
  199. gcore/types/security/profile_create_params.py +2 -2
  200. {gcore-0.14.0.dist-info → gcore-0.16.0.dist-info}/METADATA +1 -1
  201. {gcore-0.14.0.dist-info → gcore-0.16.0.dist-info}/RECORD +203 -205
  202. gcore/resources/cdn/logs/settings.py +0 -1081
  203. gcore/types/cdn/logs/log_settings.py +0 -172
  204. gcore/types/cdn/logs/setting_create_params.py +0 -200
  205. gcore/types/cdn/logs/setting_update_params.py +0 -200
  206. {gcore-0.14.0.dist-info → gcore-0.16.0.dist-info}/WHEEL +0 -0
  207. {gcore-0.14.0.dist-info → gcore-0.16.0.dist-info}/licenses/LICENSE +0 -0
@@ -72,6 +72,7 @@ from .provisioning_status import ProvisioningStatus as ProvisioningStatus
72
72
  from .security_group_rule import SecurityGroupRule as SecurityGroupRule
73
73
  from .session_persistence import SessionPersistence as SessionPersistence
74
74
  from .ssh_key_list_params import SSHKeyListParams as SSHKeyListParams
75
+ from .billing_reservations import BillingReservations as BillingReservations
75
76
  from .cost_report_detailed import CostReportDetailed as CostReportDetailed
76
77
  from .floating_ip_detailed import FloatingIPDetailed as FloatingIPDetailed
77
78
  from .instance_list_params import InstanceListParams as InstanceListParams
@@ -160,6 +161,7 @@ from .load_balancer_operating_status import LoadBalancerOperatingStatus as LoadB
160
161
  from .billing_reservation_list_params import BillingReservationListParams as BillingReservationListParams
161
162
  from .cost_report_get_detailed_params import CostReportGetDetailedParams as CostReportGetDetailedParams
162
163
  from .reserved_fixed_ip_create_params import ReservedFixedIPCreateParams as ReservedFixedIPCreateParams
164
+ from .reserved_fixed_ip_update_params import ReservedFixedIPUpdateParams as ReservedFixedIPUpdateParams
163
165
  from .volume_attach_to_instance_params import VolumeAttachToInstanceParams as VolumeAttachToInstanceParams
164
166
  from .cost_report_get_aggregated_params import CostReportGetAggregatedParams as CostReportGetAggregatedParams
165
167
  from .gpu_baremetal_cluster_list_params import GPUBaremetalClusterListParams as GPUBaremetalClusterListParams
@@ -1,153 +1,91 @@
1
1
  # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
 
3
- from typing import List, Optional
4
- from datetime import date, datetime
5
- from typing_extensions import Literal
3
+ from typing import Optional
4
+ from datetime import datetime
6
5
 
7
6
  from ..._models import BaseModel
8
7
 
9
- __all__ = ["BillingReservation", "AmountPrices", "Resource"]
8
+ __all__ = ["BillingReservation", "ActiveOvercommit", "Commit", "HardwareInfo"]
10
9
 
11
10
 
12
- class AmountPrices(BaseModel):
13
- commit_price_per_month: str
14
- """Commit price of the item charged per month"""
11
+ class ActiveOvercommit(BaseModel):
12
+ active_from: datetime
13
+ """Billing subscription active from date"""
15
14
 
16
- commit_price_per_unit: str
17
- """Commit price of the item charged per hour"""
15
+ plan_item_id: Optional[int] = None
16
+ """Billing plan item ID"""
18
17
 
19
- commit_price_total: str
20
- """Commit price of the item charged for all period reservation"""
18
+ price_per_month: str
19
+ """Price per month"""
21
20
 
22
- currency_code: str
23
- """Currency code (3 letter code per ISO 4217)"""
21
+ price_per_unit: str
22
+ """Price per unit (hourly)"""
24
23
 
25
- overcommit_price_per_month: str
26
- """Overcommit price of the item charged per month"""
24
+ price_total: str
25
+ """Total price for the reservation period"""
27
26
 
28
- overcommit_price_per_unit: str
29
- """Overcommit price of the item charged per hour"""
27
+ subscription_id: Optional[int] = None
28
+ """Billing subscription ID for overcommit"""
30
29
 
31
- overcommit_price_total: str
32
- """Overcommit price of the item charged for all period reservation"""
33
30
 
31
+ class Commit(BaseModel):
32
+ active_from: datetime
33
+ """Billing subscription active from date"""
34
34
 
35
- class Resource(BaseModel):
36
- activity_period: str
37
- """Name of the billing period, e.g month"""
35
+ active_to: Optional[datetime] = None
36
+ """Billing subscription active to date"""
38
37
 
39
- activity_period_length: int
40
- """Length of the full reservation period by `activity_period`"""
38
+ price_per_month: str
39
+ """Price per month, per one resource"""
41
40
 
42
- billing_plan_item_id: int
43
- """Billing plan item id"""
41
+ price_per_unit: str
42
+ """Price per unit, per one resource (hourly)"""
44
43
 
45
- commit_price_per_month: str
46
- """Commit price of the item charged per month"""
44
+ price_total: str
45
+ """Total price for the reservation period for the full reserved amount"""
47
46
 
48
- commit_price_per_unit: str
49
- """Commit price of the item charged per hour"""
47
+ subscription_id: int
48
+ """Billing subscription ID for commit"""
50
49
 
51
- commit_price_total: str
52
- """Commit price of the item charged for all period reservation"""
53
-
54
- overcommit_billing_plan_item_id: int
55
- """Overcommit billing plan item id"""
56
-
57
- overcommit_price_per_month: str
58
- """Overcommit price of the item charged per month"""
59
-
60
- overcommit_price_per_unit: str
61
- """Overcommit price of the item charged per hour"""
62
-
63
- overcommit_price_total: str
64
- """Overcommit price of the item charged for all period reservation"""
65
-
66
- resource_count: int
67
- """Number of reserved resource items"""
68
-
69
- resource_name: str
70
- """Resource name"""
71
-
72
- resource_type: Literal["flavor"]
73
- """Resource type"""
74
-
75
- unit_name: str
76
- """Billing unit name"""
77
-
78
- unit_size_month: str
79
- """Minimal billing size, for example it is 744 hours per 1 month."""
80
-
81
- unit_size_total: str
82
- """Unit size month multiplied by count of resources in the reservation"""
83
50
 
51
+ class HardwareInfo(BaseModel):
84
52
  cpu: Optional[str] = None
85
- """Baremetal CPU description"""
53
+ """CPU specification"""
86
54
 
87
55
  disk: Optional[str] = None
88
- """Baremetal disk description"""
56
+ """Disk specification"""
89
57
 
90
58
  ram: Optional[str] = None
91
- """Baremetal RAM description"""
59
+ """RAM specification"""
92
60
 
93
61
 
94
62
  class BillingReservation(BaseModel):
95
- id: int
96
- """Reservation id"""
97
-
98
- active_from: date
99
- """Reservation active from date"""
63
+ active_billing_plan_id: int
64
+ """Active billing plan ID"""
100
65
 
101
- active_to: date
102
- """Reservation active to date"""
66
+ active_overcommit: ActiveOvercommit
67
+ """Overcommit pricing details"""
103
68
 
104
- activity_period: str
105
- """Name of the billing period, e.g month"""
69
+ commit: Commit
70
+ """Commit pricing details"""
106
71
 
107
- activity_period_length: int
108
- """Length of the full reservation period by `activity_period`"""
109
-
110
- amount_prices: AmountPrices
111
- """Reservation amount prices"""
112
-
113
- billing_plan_id: int
114
- """Billing plan id"""
115
-
116
- created_at: datetime
117
- """Reservation creation date"""
118
-
119
- error: Optional[str] = None
120
- """Error message if any occured during reservation"""
121
-
122
- eta: Optional[date] = None
123
- """ETA delivery if bare metal out of stock.
124
-
125
- Value None means that bare metal in stock.
126
- """
127
-
128
- is_expiration_message_visible: bool
129
- """Hide or show expiration message to customer."""
130
-
131
- name: str
132
- """Reservation name"""
133
-
134
- next_statuses: List[str]
135
- """List of possible next reservation statuses"""
136
-
137
- region_id: int
138
- """Region id"""
72
+ hardware_info: HardwareInfo
73
+ """Hardware specifications"""
139
74
 
140
75
  region_name: str
141
76
  """Region name"""
142
77
 
143
- remind_expiration_message: Optional[date] = None
144
- """The date when show expiration date to customer"""
78
+ resource_count: int
79
+ """Number of reserved resource items"""
145
80
 
146
- resources: List[Resource]
147
- """List of reservation resources"""
81
+ resource_name: str
82
+ """Resource name"""
148
83
 
149
- status: str
150
- """Reservation status"""
84
+ unit_name: str
85
+ """Unit name (e.g., 'H' for hours)"""
151
86
 
152
- user_status: str
153
- """User status"""
87
+ unit_size_month: str
88
+ """Unit size per month (e.g., 744 hours)"""
89
+
90
+ unit_size_total: str
91
+ """Unit size month multiplied by count of resources in the reservation"""
@@ -2,58 +2,20 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from typing import List, Union
6
- from datetime import date, datetime
7
- from typing_extensions import Literal, Annotated, TypedDict
8
-
9
- from ..._utils import PropertyInfo
5
+ from typing_extensions import Literal, TypedDict
10
6
 
11
7
  __all__ = ["BillingReservationListParams"]
12
8
 
13
9
 
14
10
  class BillingReservationListParams(TypedDict, total=False):
15
- activated_from: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
16
- """Lower bound, starting from what date the reservation was/will be activated"""
17
-
18
- activated_to: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
19
- """High bound, before what date the reservation was/will be activated"""
20
-
21
- created_from: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
22
- """
23
- Lower bound the filter, showing result(s) equal to or greater than date the
24
- reservation was created
25
- """
26
-
27
- created_to: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]
28
- """
29
- High bound the filter, showing result(s) equal to or less date the reservation
30
- was created
31
- """
32
-
33
- deactivated_from: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
34
- """Lower bound, starting from what date the reservation was/will be deactivated"""
35
-
36
- deactivated_to: Annotated[Union[str, date], PropertyInfo(format="iso8601")]
37
- """High bound, before what date the reservation was/will be deactivated"""
38
-
39
- limit: int
40
- """Limit of reservation list page"""
41
-
42
11
  metric_name: str
43
12
  """Name from billing features for specific resource"""
44
13
 
45
- offset: int
46
- """Offset in reservation list"""
47
-
48
- order_by: Literal[
49
- "active_from.asc", "active_from.desc", "active_to.asc", "active_to.desc", "created_at.asc", "created_at.desc"
50
- ]
14
+ order_by: Literal["active_from.asc", "active_from.desc", "active_to.asc", "active_to.desc"]
51
15
  """Order by field and direction."""
52
16
 
53
17
  region_id: int
54
18
  """Region for reservation"""
55
19
 
56
- status: List[
57
- Literal["ACTIVATED", "APPROVED", "COPIED", "CREATED", "EXPIRED", "REJECTED", "RESERVED", "WAITING_FOR_PAYMENT"]
58
- ]
59
- """Field for fixed a status by reservation workflow"""
20
+ show_inactive: bool
21
+ """Include inactive commits in the response"""
@@ -0,0 +1,16 @@
1
+ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+
3
+ from typing import List
4
+
5
+ from ..._models import BaseModel
6
+ from .billing_reservation import BillingReservation
7
+
8
+ __all__ = ["BillingReservations"]
9
+
10
+
11
+ class BillingReservations(BaseModel):
12
+ count: int
13
+ """Number of objects"""
14
+
15
+ results: List[BillingReservation]
16
+ """Objects"""
@@ -46,13 +46,13 @@ class CostReportGetAggregatedParams(TypedDict, total=False):
46
46
  time_from: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
47
47
  """The start date of the report period (ISO 8601).
48
48
 
49
- The report starts from the beginning of this day.
49
+ The report starts from the beginning of this day in UTC.
50
50
  """
51
51
 
52
52
  time_to: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
53
53
  """The end date of the report period (ISO 8601).
54
54
 
55
- The report ends just before the beginning of this day.
55
+ The report ends just before the beginning of this day in UTC.
56
56
  """
57
57
 
58
58
  enable_last_day: bool
@@ -47,13 +47,13 @@ class CostReportGetDetailedParams(TypedDict, total=False):
47
47
  time_from: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
48
48
  """The start date of the report period (ISO 8601).
49
49
 
50
- The report starts from the beginning of this day.
50
+ The report starts from the beginning of this day in UTC.
51
51
  """
52
52
 
53
53
  time_to: Required[Annotated[Union[str, datetime], PropertyInfo(format="iso8601")]]
54
54
  """The end date of the report period (ISO 8601).
55
55
 
56
- The report ends just before the beginning of this day.
56
+ The report ends just before the beginning of this day in UTC.
57
57
  """
58
58
 
59
59
  enable_last_day: bool
@@ -46,6 +46,12 @@ class GPUBaremetalFlavorSerializerWithoutPriceHardwareProperties(BaseModel):
46
46
  gpu_model: Optional[str] = None
47
47
  """GPU model"""
48
48
 
49
+ nic_eth: Optional[str] = None
50
+ """The configuration of the Ethernet ports"""
51
+
52
+ nic_ib: Optional[str] = None
53
+ """The configuration of the InfiniBand ports"""
54
+
49
55
 
50
56
  class GPUBaremetalFlavorSerializerWithoutPriceSupportedFeatures(BaseModel):
51
57
  security_groups: bool
@@ -101,6 +107,12 @@ class GPUBaremetalFlavorSerializerWithPricesHardwareProperties(BaseModel):
101
107
  gpu_model: Optional[str] = None
102
108
  """GPU model"""
103
109
 
110
+ nic_eth: Optional[str] = None
111
+ """The configuration of the Ethernet ports"""
112
+
113
+ nic_ib: Optional[str] = None
114
+ """The configuration of the InfiniBand ports"""
115
+
104
116
 
105
117
  class GPUBaremetalFlavorSerializerWithPricesPrice(BaseModel):
106
118
  currency_code: Optional[str] = None
@@ -2,8 +2,8 @@
2
2
 
3
3
  from __future__ import annotations
4
4
 
5
- from .deployment_patch_params import DeploymentPatchParams as DeploymentPatchParams
6
5
  from .deployment_create_params import DeploymentCreateParams as DeploymentCreateParams
6
+ from .deployment_update_params import DeploymentUpdateParams as DeploymentUpdateParams
7
7
  from .inference_application_template import InferenceApplicationTemplate as InferenceApplicationTemplate
8
8
  from .inference_application_deployment import InferenceApplicationDeployment as InferenceApplicationDeployment
9
9
  from .inference_application_template_list import InferenceApplicationTemplateList as InferenceApplicationTemplateList
@@ -8,14 +8,14 @@ from typing_extensions import Required, TypedDict
8
8
  from ....._types import SequenceNotStr
9
9
 
10
10
  __all__ = [
11
- "DeploymentPatchParams",
11
+ "DeploymentUpdateParams",
12
12
  "ComponentsConfiguration",
13
13
  "ComponentsConfigurationParameterOverrides",
14
14
  "ComponentsConfigurationScale",
15
15
  ]
16
16
 
17
17
 
18
- class DeploymentPatchParams(TypedDict, total=False):
18
+ class DeploymentUpdateParams(TypedDict, total=False):
19
19
  project_id: int
20
20
  """Project ID"""
21
21
 
@@ -82,7 +82,7 @@ class InstanceListParams(TypedDict, total=False):
82
82
  only_with_fixed_external_ip: bool
83
83
  """Return bare metals only with external fixed IP addresses."""
84
84
 
85
- order_by: Literal["created.asc", "created.desc", "name.asc", "name.desc"]
85
+ order_by: Literal["created.asc", "created.desc", "name.asc", "name.desc", "status.asc", "status.desc"]
86
86
  """Order by field and direction."""
87
87
 
88
88
  profile_name: str
@@ -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__ = ["InstanceUpdateParams"]
8
11
 
@@ -14,5 +17,30 @@ class InstanceUpdateParams(TypedDict, total=False):
14
17
  region_id: int
15
18
  """Region ID"""
16
19
 
17
- name: Required[str]
18
- """Name."""
20
+ name: str
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.
29
+
30
+ **Examples:**
31
+
32
+ - **Add/update tags:**
33
+ `{'tags': {'environment': 'production', 'team': 'backend'}}` adds new tags or
34
+ updates existing ones.
35
+ - **Delete tags:** `{'tags': {'`old_tag`': null}}` removes specific tags.
36
+ - **Remove all tags:** `{'tags': null}` removes all user-managed tags (read-only
37
+ tags are preserved).
38
+ - **Partial update:** `{'tags': {'environment': 'staging'}}` only updates
39
+ specified tags.
40
+ - **Mixed operations:**
41
+ `{'tags': {'environment': 'production', '`cost_center`': 'engineering', '`deprecated_tag`': null}}`
42
+ adds/updates 'environment' and '`cost_center`' while removing
43
+ '`deprecated_tag`', preserving other existing tags.
44
+ - **Replace all:** first delete existing tags with null values, then add new
45
+ ones in the same request.
46
+ """
@@ -274,7 +274,7 @@ class ListenerPool(TypedDict, total=False):
274
274
  listener_id: Optional[str]
275
275
  """Listener ID"""
276
276
 
277
- loadbalancer_id: Optional[str]
277
+ load_balancer_id: Optional[str]
278
278
  """Loadbalancer ID"""
279
279
 
280
280
  members: Optional[Iterable[ListenerPoolMember]]
@@ -38,7 +38,7 @@ class LoadBalancerListenerDetail(BaseModel):
38
38
  Only used with HTTP and `TERMINATED_HTTPS` protocols.
39
39
  """
40
40
 
41
- loadbalancer_id: Optional[str] = None
41
+ load_balancer_id: Optional[str] = None
42
42
  """Load balancer ID"""
43
43
 
44
44
  name: str
@@ -18,7 +18,7 @@ class ListenerCreateParams(TypedDict, total=False):
18
18
  region_id: int
19
19
  """Region ID"""
20
20
 
21
- loadbalancer_id: Required[str]
21
+ load_balancer_id: Required[str]
22
22
  """Load balancer ID"""
23
23
 
24
24
  name: Required[str]
@@ -14,7 +14,7 @@ class ListenerListParams(TypedDict, total=False):
14
14
  region_id: int
15
15
  """Region ID"""
16
16
 
17
- loadbalancer_id: str
17
+ load_balancer_id: str
18
18
  """Load Balancer ID"""
19
19
 
20
20
  show_stats: bool
@@ -42,7 +42,7 @@ class PoolCreateParams(TypedDict, total=False):
42
42
  listener_id: Optional[str]
43
43
  """Listener ID"""
44
44
 
45
- loadbalancer_id: Optional[str]
45
+ load_balancer_id: Optional[str]
46
46
  """Loadbalancer ID"""
47
47
 
48
48
  members: Optional[Iterable[Member]]
@@ -20,5 +20,5 @@ class PoolListParams(TypedDict, total=False):
20
20
  listener_id: str
21
21
  """Listener ID"""
22
22
 
23
- loadbalancer_id: str
23
+ load_balancer_id: str
24
24
  """Load Balancer ID"""
@@ -59,10 +59,10 @@ class RegionalQuota(BaseModel):
59
59
  """Basic bare metal servers count usage"""
60
60
 
61
61
  baremetal_gpu_a100_count_limit: Optional[int] = None
62
- """Baremetal A100 GPU card count limit"""
62
+ """Bare metal A100 GPU server count limit"""
63
63
 
64
64
  baremetal_gpu_a100_count_usage: Optional[int] = None
65
- """Baremetal A100 GPU card count usage"""
65
+ """Bare metal A100 GPU server count usage"""
66
66
 
67
67
  baremetal_gpu_count_limit: Optional[int] = None
68
68
  """Total number of AI GPU bare metal servers.
@@ -81,22 +81,22 @@ class RegionalQuota(BaseModel):
81
81
  """
82
82
 
83
83
  baremetal_gpu_h100_count_limit: Optional[int] = None
84
- """Baremetal H100 GPU card count limit"""
84
+ """Bare metal H100 GPU server count limit"""
85
85
 
86
86
  baremetal_gpu_h100_count_usage: Optional[int] = None
87
- """Baremetal H100 GPU card count usage"""
87
+ """Bare metal H100 GPU server count usage"""
88
88
 
89
89
  baremetal_gpu_h200_count_limit: Optional[int] = None
90
- """Baremetal H200 GPU card count limit"""
90
+ """Bare metal H200 GPU server count limit"""
91
91
 
92
92
  baremetal_gpu_h200_count_usage: Optional[int] = None
93
- """Baremetal H200 GPU card count usage"""
93
+ """Bare metal H200 GPU server count usage"""
94
94
 
95
95
  baremetal_gpu_l40s_count_limit: Optional[int] = None
96
- """Baremetal L40S GPU card count limit"""
96
+ """Bare metal L40S GPU server count limit"""
97
97
 
98
98
  baremetal_gpu_l40s_count_usage: Optional[int] = None
99
- """Baremetal L40S GPU card count usage"""
99
+ """Bare metal L40S GPU server count usage"""
100
100
 
101
101
  baremetal_hf_count_limit: Optional[int] = None
102
102
  """High-frequency bare metal servers count limit"""
@@ -15,10 +15,10 @@ class QuotaGetByRegionResponse(BaseModel):
15
15
  """Basic bare metal servers count usage"""
16
16
 
17
17
  baremetal_gpu_a100_count_limit: Optional[int] = None
18
- """Baremetal A100 GPU card count limit"""
18
+ """Bare metal A100 GPU server count limit"""
19
19
 
20
20
  baremetal_gpu_a100_count_usage: Optional[int] = None
21
- """Baremetal A100 GPU card count usage"""
21
+ """Bare metal A100 GPU server count usage"""
22
22
 
23
23
  baremetal_gpu_count_limit: Optional[int] = None
24
24
  """Total number of AI GPU bare metal servers.
@@ -37,22 +37,22 @@ class QuotaGetByRegionResponse(BaseModel):
37
37
  """
38
38
 
39
39
  baremetal_gpu_h100_count_limit: Optional[int] = None
40
- """Baremetal H100 GPU card count limit"""
40
+ """Bare metal H100 GPU server count limit"""
41
41
 
42
42
  baremetal_gpu_h100_count_usage: Optional[int] = None
43
- """Baremetal H100 GPU card count usage"""
43
+ """Bare metal H100 GPU server count usage"""
44
44
 
45
45
  baremetal_gpu_h200_count_limit: Optional[int] = None
46
- """Baremetal H200 GPU card count limit"""
46
+ """Bare metal H200 GPU server count limit"""
47
47
 
48
48
  baremetal_gpu_h200_count_usage: Optional[int] = None
49
- """Baremetal H200 GPU card count usage"""
49
+ """Bare metal H200 GPU server count usage"""
50
50
 
51
51
  baremetal_gpu_l40s_count_limit: Optional[int] = None
52
- """Baremetal L40S GPU card count limit"""
52
+ """Bare metal L40S GPU server count limit"""
53
53
 
54
54
  baremetal_gpu_l40s_count_usage: Optional[int] = None
55
- """Baremetal L40S GPU card count usage"""
55
+ """Bare metal L40S GPU server count usage"""
56
56
 
57
57
  baremetal_hf_count_limit: Optional[int] = None
58
58
  """High-frequency bare metal servers count limit"""
@@ -47,7 +47,7 @@ class RequestedLimitsRegionalLimit(TypedDict, total=False):
47
47
  """Basic bare metal servers count limit"""
48
48
 
49
49
  baremetal_gpu_a100_count_limit: int
50
- """Baremetal A100 GPU card count limit"""
50
+ """Bare metal A100 GPU server count limit"""
51
51
 
52
52
  baremetal_gpu_count_limit: int
53
53
  """Total number of AI GPU bare metal servers.
@@ -58,13 +58,13 @@ class RequestedLimitsRegionalLimit(TypedDict, total=False):
58
58
  """
59
59
 
60
60
  baremetal_gpu_h100_count_limit: int
61
- """Baremetal H100 GPU card count limit"""
61
+ """Bare metal H100 GPU server count limit"""
62
62
 
63
63
  baremetal_gpu_h200_count_limit: int
64
- """Baremetal H200 GPU card count limit"""
64
+ """Bare metal H200 GPU server count limit"""
65
65
 
66
66
  baremetal_gpu_l40s_count_limit: int
67
- """Baremetal L40S GPU card count limit"""
67
+ """Bare metal L40S GPU server count limit"""
68
68
 
69
69
  baremetal_hf_count_limit: int
70
70
  """High-frequency bare metal servers count limit"""
@@ -36,7 +36,7 @@ class RequestedLimitsRegionalLimit(BaseModel):
36
36
  """Basic bare metal servers count limit"""
37
37
 
38
38
  baremetal_gpu_a100_count_limit: Optional[int] = None
39
- """Baremetal A100 GPU card count limit"""
39
+ """Bare metal A100 GPU server count limit"""
40
40
 
41
41
  baremetal_gpu_count_limit: Optional[int] = None
42
42
  """Total number of AI GPU bare metal servers.
@@ -47,13 +47,13 @@ class RequestedLimitsRegionalLimit(BaseModel):
47
47
  """
48
48
 
49
49
  baremetal_gpu_h100_count_limit: Optional[int] = None
50
- """Baremetal H100 GPU card count limit"""
50
+ """Bare metal H100 GPU server count limit"""
51
51
 
52
52
  baremetal_gpu_h200_count_limit: Optional[int] = None
53
- """Baremetal H200 GPU card count limit"""
53
+ """Bare metal H200 GPU server count limit"""
54
54
 
55
55
  baremetal_gpu_l40s_count_limit: Optional[int] = None
56
- """Baremetal L40S GPU card count limit"""
56
+ """Bare metal L40S GPU server count limit"""
57
57
 
58
58
  baremetal_hf_count_limit: Optional[int] = None
59
59
  """High-frequency bare metal servers count limit"""