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.
- gcore/_client.py +2 -8
- gcore/_version.py +1 -1
- gcore/resources/cdn/audit_log.py +4 -12
- gcore/resources/cdn/cdn.py +10 -18
- gcore/resources/cdn/certificates.py +16 -40
- gcore/resources/cdn/ip_ranges.py +4 -8
- gcore/resources/cdn/logs/__init__.py +0 -14
- gcore/resources/cdn/logs/logs.py +4 -44
- gcore/resources/cdn/logs_uploader/configs.py +14 -42
- gcore/resources/cdn/logs_uploader/policies.py +14 -42
- gcore/resources/cdn/logs_uploader/targets.py +14 -42
- gcore/resources/cdn/metrics.py +2 -6
- gcore/resources/cdn/network_capacity.py +2 -6
- gcore/resources/cdn/origin_groups.py +12 -32
- gcore/resources/cdn/resources/resources.py +18 -46
- gcore/resources/cdn/resources/rules.py +12 -36
- gcore/resources/cdn/resources/shield.py +4 -12
- gcore/resources/cdn/rule_templates.py +12 -36
- gcore/resources/cdn/shields.py +2 -6
- gcore/resources/cdn/statistics.py +16 -40
- gcore/resources/cdn/trusted_ca_certificates.py +10 -30
- gcore/resources/cloud/audit_logs.py +2 -6
- gcore/resources/cloud/baremetal/flavors.py +2 -6
- gcore/resources/cloud/baremetal/images.py +2 -6
- gcore/resources/cloud/baremetal/servers.py +6 -18
- gcore/resources/cloud/billing_reservations.py +25 -208
- gcore/resources/cloud/cost_reports.py +44 -62
- gcore/resources/cloud/file_shares/access_rules.py +6 -18
- gcore/resources/cloud/file_shares/file_shares.py +37 -44
- gcore/resources/cloud/floating_ips.py +14 -42
- gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +2 -6
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +18 -54
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +8 -24
- gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +2 -6
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +14 -42
- gcore/resources/cloud/inference/api_keys.py +10 -30
- gcore/resources/cloud/inference/applications/deployments.py +135 -155
- gcore/resources/cloud/inference/applications/templates.py +4 -12
- gcore/resources/cloud/inference/deployments/deployments.py +16 -48
- gcore/resources/cloud/inference/deployments/logs.py +2 -6
- gcore/resources/cloud/inference/flavors.py +4 -12
- gcore/resources/cloud/inference/inference.py +2 -6
- gcore/resources/cloud/inference/registry_credentials.py +10 -30
- gcore/resources/cloud/inference/secrets.py +10 -30
- gcore/resources/cloud/instances/flavors.py +2 -6
- gcore/resources/cloud/instances/images.py +12 -36
- gcore/resources/cloud/instances/instances.py +99 -94
- gcore/resources/cloud/instances/interfaces.py +6 -18
- gcore/resources/cloud/instances/metrics.py +2 -6
- gcore/resources/cloud/ip_ranges.py +2 -6
- gcore/resources/cloud/k8s/clusters/clusters.py +18 -54
- gcore/resources/cloud/k8s/clusters/nodes.py +4 -12
- gcore/resources/cloud/k8s/clusters/pools/nodes.py +4 -12
- gcore/resources/cloud/k8s/clusters/pools/pools.py +12 -36
- gcore/resources/cloud/k8s/flavors.py +2 -6
- gcore/resources/cloud/k8s/k8s.py +2 -6
- gcore/resources/cloud/load_balancers/flavors.py +2 -6
- gcore/resources/cloud/load_balancers/l7_policies/l7_policies.py +10 -30
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +10 -30
- gcore/resources/cloud/load_balancers/listeners.py +26 -46
- gcore/resources/cloud/load_balancers/load_balancers.py +493 -521
- gcore/resources/cloud/load_balancers/metrics.py +8 -12
- gcore/resources/cloud/load_balancers/pools/health_monitors.py +4 -12
- gcore/resources/cloud/load_balancers/pools/members.py +4 -12
- gcore/resources/cloud/load_balancers/pools/pools.py +26 -46
- gcore/resources/cloud/load_balancers/statuses.py +10 -18
- gcore/resources/cloud/networks/networks.py +10 -30
- gcore/resources/cloud/networks/routers.py +14 -42
- gcore/resources/cloud/networks/subnets.py +15 -37
- gcore/resources/cloud/placement_groups.py +8 -24
- gcore/resources/cloud/projects.py +10 -22
- gcore/resources/cloud/quotas/quotas.py +6 -18
- gcore/resources/cloud/quotas/requests.py +8 -24
- gcore/resources/cloud/regions.py +4 -8
- gcore/resources/cloud/registries/artifacts.py +4 -12
- gcore/resources/cloud/registries/registries.py +10 -30
- gcore/resources/cloud/registries/repositories.py +4 -12
- gcore/resources/cloud/registries/tags.py +2 -6
- gcore/resources/cloud/registries/users.py +12 -36
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +114 -25
- gcore/resources/cloud/reserved_fixed_ips/vip.py +10 -30
- gcore/resources/cloud/secrets.py +8 -24
- gcore/resources/cloud/security_groups/rules.py +6 -18
- gcore/resources/cloud/security_groups/security_groups.py +14 -42
- gcore/resources/cloud/ssh_keys.py +10 -30
- gcore/resources/cloud/tasks.py +14 -26
- gcore/resources/cloud/usage_reports.py +18 -24
- gcore/resources/cloud/users/role_assignments.py +8 -24
- gcore/resources/cloud/volumes.py +20 -60
- gcore/resources/dns/dns.py +4 -8
- gcore/resources/dns/locations.py +8 -20
- gcore/resources/dns/metrics.py +2 -6
- gcore/resources/dns/pickers/pickers.py +2 -2
- gcore/resources/dns/pickers/presets.py +2 -6
- gcore/resources/dns/zones/dnssec.py +4 -12
- gcore/resources/dns/zones/rrsets.py +12 -36
- gcore/resources/dns/zones/zones.py +22 -58
- gcore/resources/fastedge/apps/apps.py +12 -28
- gcore/resources/fastedge/apps/logs.py +2 -6
- gcore/resources/fastedge/binaries.py +8 -24
- gcore/resources/fastedge/fastedge.py +2 -2
- gcore/resources/fastedge/kv_stores.py +10 -22
- gcore/resources/fastedge/secrets.py +12 -36
- gcore/resources/fastedge/statistics.py +4 -12
- gcore/resources/fastedge/templates.py +10 -30
- gcore/resources/iam/api_tokens.py +12 -26
- gcore/resources/iam/iam.py +2 -2
- gcore/resources/iam/users.py +10 -26
- gcore/resources/security/bgp_announces.py +4 -12
- gcore/resources/security/events.py +2 -6
- gcore/resources/security/profile_templates.py +2 -6
- gcore/resources/security/profiles.py +16 -40
- gcore/resources/storage/buckets/buckets.py +6 -18
- gcore/resources/storage/buckets/cors.py +4 -12
- gcore/resources/storage/buckets/lifecycle.py +4 -12
- gcore/resources/storage/buckets/policy.py +6 -18
- gcore/resources/storage/credentials.py +2 -6
- gcore/resources/storage/locations.py +2 -6
- gcore/resources/storage/statistics.py +4 -12
- gcore/resources/storage/storage.py +16 -48
- gcore/resources/streaming/ai_tasks.py +10 -18
- gcore/resources/streaming/broadcasts.py +12 -36
- gcore/resources/streaming/directories.py +10 -30
- gcore/resources/streaming/players.py +12 -28
- gcore/resources/streaming/playlists.py +12 -36
- gcore/resources/streaming/quality_sets.py +4 -12
- gcore/resources/streaming/restreams.py +10 -30
- gcore/resources/streaming/statistics.py +46 -138
- gcore/resources/streaming/streams/overlays.py +12 -36
- gcore/resources/streaming/streams/streams.py +20 -52
- gcore/resources/streaming/videos/subtitles.py +10 -30
- gcore/resources/streaming/videos/videos.py +16 -40
- gcore/resources/waap/advanced_rules.py +2 -6
- gcore/resources/waap/custom_page_sets.py +12 -36
- gcore/resources/waap/domains/advanced_rules.py +12 -36
- gcore/resources/waap/domains/api_discovery.py +12 -36
- gcore/resources/waap/domains/api_path_groups.py +2 -6
- gcore/resources/waap/domains/api_paths.py +10 -30
- gcore/resources/waap/domains/custom_rules.py +14 -42
- gcore/resources/waap/domains/domains.py +12 -32
- gcore/resources/waap/domains/firewall_rules.py +14 -42
- gcore/resources/waap/domains/insight_silences.py +10 -30
- gcore/resources/waap/domains/insights.py +6 -18
- gcore/resources/waap/domains/settings.py +4 -12
- gcore/resources/waap/domains/statistics.py +12 -36
- gcore/resources/waap/insights.py +2 -6
- gcore/resources/waap/ip_info/ip_info.py +16 -48
- gcore/resources/waap/ip_info/metrics.py +2 -6
- gcore/resources/waap/organizations.py +2 -6
- gcore/resources/waap/statistics.py +2 -6
- gcore/resources/waap/tags.py +2 -2
- gcore/resources/waap/waap.py +2 -2
- gcore/types/cdn/cdn_resource.py +20 -0
- gcore/types/cdn/logs/__init__.py +0 -4
- gcore/types/cdn/logs_aggregated_stats.py +1 -1
- gcore/types/cdn/resource_create_params.py +20 -0
- gcore/types/cdn/resource_replace_params.py +20 -0
- gcore/types/cdn/resource_update_params.py +20 -0
- gcore/types/cdn/resources/cdn_resource_rule.py +20 -0
- gcore/types/cdn/resources/rule_create_params.py +20 -0
- gcore/types/cdn/resources/rule_replace_params.py +20 -0
- gcore/types/cdn/resources/rule_update_params.py +20 -0
- gcore/types/cdn/rule_template.py +20 -0
- gcore/types/cdn/rule_template_create_params.py +20 -0
- gcore/types/cdn/rule_template_replace_params.py +20 -0
- gcore/types/cdn/rule_template_update_params.py +20 -0
- gcore/types/cloud/__init__.py +2 -0
- gcore/types/cloud/billing_reservation.py +52 -114
- gcore/types/cloud/billing_reservation_list_params.py +4 -42
- gcore/types/cloud/billing_reservations.py +16 -0
- gcore/types/cloud/cost_report_get_aggregated_params.py +2 -2
- gcore/types/cloud/cost_report_get_detailed_params.py +2 -2
- gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_flavor.py +12 -0
- gcore/types/cloud/inference/applications/__init__.py +1 -1
- gcore/types/cloud/inference/applications/{deployment_patch_params.py → deployment_update_params.py} +2 -2
- gcore/types/cloud/instance_list_params.py +1 -1
- gcore/types/cloud/instance_update_params.py +31 -3
- gcore/types/cloud/load_balancer_create_params.py +1 -1
- gcore/types/cloud/load_balancer_listener_detail.py +1 -1
- gcore/types/cloud/load_balancers/listener_create_params.py +1 -1
- gcore/types/cloud/load_balancers/listener_list_params.py +1 -1
- gcore/types/cloud/load_balancers/pool_create_params.py +1 -1
- gcore/types/cloud/load_balancers/pool_list_params.py +1 -1
- gcore/types/cloud/quota_get_all_response.py +8 -8
- gcore/types/cloud/quota_get_by_region_response.py +8 -8
- gcore/types/cloud/quotas/request_create_params.py +4 -4
- gcore/types/cloud/quotas/request_get_response.py +4 -4
- gcore/types/cloud/quotas/request_list_response.py +4 -4
- gcore/types/cloud/reserved_fixed_ip_update_params.py +16 -0
- gcore/types/cloud/task_list_params.py +3 -3
- gcore/types/cloud/usage_report_get_params.py +2 -2
- gcore/types/iam/account_overview.py +24 -26
- gcore/types/iam/api_token.py +24 -24
- gcore/types/iam/api_token_create_params.py +2 -1
- gcore/types/iam/api_token_list.py +24 -24
- gcore/types/iam/user_detailed.py +15 -15
- gcore/types/iam/user_invite.py +2 -4
- gcore/types/iam/user_update.py +15 -15
- gcore/types/security/profile_create_params.py +2 -2
- {gcore-0.14.0.dist-info → gcore-0.16.0.dist-info}/METADATA +1 -1
- {gcore-0.14.0.dist-info → gcore-0.16.0.dist-info}/RECORD +203 -205
- gcore/resources/cdn/logs/settings.py +0 -1081
- gcore/types/cdn/logs/log_settings.py +0 -172
- gcore/types/cdn/logs/setting_create_params.py +0 -200
- gcore/types/cdn/logs/setting_update_params.py +0 -200
- {gcore-0.14.0.dist-info → gcore-0.16.0.dist-info}/WHEEL +0 -0
- {gcore-0.14.0.dist-info → gcore-0.16.0.dist-info}/licenses/LICENSE +0 -0
gcore/types/cloud/__init__.py
CHANGED
|
@@ -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
|
|
4
|
-
from datetime import
|
|
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", "
|
|
8
|
+
__all__ = ["BillingReservation", "ActiveOvercommit", "Commit", "HardwareInfo"]
|
|
10
9
|
|
|
11
10
|
|
|
12
|
-
class
|
|
13
|
-
|
|
14
|
-
"""
|
|
11
|
+
class ActiveOvercommit(BaseModel):
|
|
12
|
+
active_from: datetime
|
|
13
|
+
"""Billing subscription active from date"""
|
|
15
14
|
|
|
16
|
-
|
|
17
|
-
"""
|
|
15
|
+
plan_item_id: Optional[int] = None
|
|
16
|
+
"""Billing plan item ID"""
|
|
18
17
|
|
|
19
|
-
|
|
20
|
-
"""
|
|
18
|
+
price_per_month: str
|
|
19
|
+
"""Price per month"""
|
|
21
20
|
|
|
22
|
-
|
|
23
|
-
"""
|
|
21
|
+
price_per_unit: str
|
|
22
|
+
"""Price per unit (hourly)"""
|
|
24
23
|
|
|
25
|
-
|
|
26
|
-
"""
|
|
24
|
+
price_total: str
|
|
25
|
+
"""Total price for the reservation period"""
|
|
27
26
|
|
|
28
|
-
|
|
29
|
-
"""
|
|
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
|
-
|
|
36
|
-
|
|
37
|
-
"""Name of the billing period, e.g month"""
|
|
35
|
+
active_to: Optional[datetime] = None
|
|
36
|
+
"""Billing subscription active to date"""
|
|
38
37
|
|
|
39
|
-
|
|
40
|
-
"""
|
|
38
|
+
price_per_month: str
|
|
39
|
+
"""Price per month, per one resource"""
|
|
41
40
|
|
|
42
|
-
|
|
43
|
-
"""
|
|
41
|
+
price_per_unit: str
|
|
42
|
+
"""Price per unit, per one resource (hourly)"""
|
|
44
43
|
|
|
45
|
-
|
|
46
|
-
"""
|
|
44
|
+
price_total: str
|
|
45
|
+
"""Total price for the reservation period for the full reserved amount"""
|
|
47
46
|
|
|
48
|
-
|
|
49
|
-
"""
|
|
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
|
-
"""
|
|
53
|
+
"""CPU specification"""
|
|
86
54
|
|
|
87
55
|
disk: Optional[str] = None
|
|
88
|
-
"""
|
|
56
|
+
"""Disk specification"""
|
|
89
57
|
|
|
90
58
|
ram: Optional[str] = None
|
|
91
|
-
"""
|
|
59
|
+
"""RAM specification"""
|
|
92
60
|
|
|
93
61
|
|
|
94
62
|
class BillingReservation(BaseModel):
|
|
95
|
-
|
|
96
|
-
"""
|
|
97
|
-
|
|
98
|
-
active_from: date
|
|
99
|
-
"""Reservation active from date"""
|
|
63
|
+
active_billing_plan_id: int
|
|
64
|
+
"""Active billing plan ID"""
|
|
100
65
|
|
|
101
|
-
|
|
102
|
-
"""
|
|
66
|
+
active_overcommit: ActiveOvercommit
|
|
67
|
+
"""Overcommit pricing details"""
|
|
103
68
|
|
|
104
|
-
|
|
105
|
-
"""
|
|
69
|
+
commit: Commit
|
|
70
|
+
"""Commit pricing details"""
|
|
106
71
|
|
|
107
|
-
|
|
108
|
-
"""
|
|
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
|
-
|
|
144
|
-
"""
|
|
78
|
+
resource_count: int
|
|
79
|
+
"""Number of reserved resource items"""
|
|
145
80
|
|
|
146
|
-
|
|
147
|
-
"""
|
|
81
|
+
resource_name: str
|
|
82
|
+
"""Resource name"""
|
|
148
83
|
|
|
149
|
-
|
|
150
|
-
"""
|
|
84
|
+
unit_name: str
|
|
85
|
+
"""Unit name (e.g., 'H' for hours)"""
|
|
151
86
|
|
|
152
|
-
|
|
153
|
-
"""
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
57
|
-
|
|
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
|
gcore/types/cloud/inference/applications/{deployment_patch_params.py → deployment_update_params.py}
RENAMED
|
@@ -8,14 +8,14 @@ from typing_extensions import Required, TypedDict
|
|
|
8
8
|
from ....._types import SequenceNotStr
|
|
9
9
|
|
|
10
10
|
__all__ = [
|
|
11
|
-
"
|
|
11
|
+
"DeploymentUpdateParams",
|
|
12
12
|
"ComponentsConfiguration",
|
|
13
13
|
"ComponentsConfigurationParameterOverrides",
|
|
14
14
|
"ComponentsConfigurationScale",
|
|
15
15
|
]
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
class
|
|
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
|
|
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:
|
|
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
|
-
|
|
277
|
+
load_balancer_id: Optional[str]
|
|
278
278
|
"""Loadbalancer ID"""
|
|
279
279
|
|
|
280
280
|
members: Optional[Iterable[ListenerPoolMember]]
|
|
@@ -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
|
-
"""
|
|
62
|
+
"""Bare metal A100 GPU server count limit"""
|
|
63
63
|
|
|
64
64
|
baremetal_gpu_a100_count_usage: Optional[int] = None
|
|
65
|
-
"""
|
|
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
|
-
"""
|
|
84
|
+
"""Bare metal H100 GPU server count limit"""
|
|
85
85
|
|
|
86
86
|
baremetal_gpu_h100_count_usage: Optional[int] = None
|
|
87
|
-
"""
|
|
87
|
+
"""Bare metal H100 GPU server count usage"""
|
|
88
88
|
|
|
89
89
|
baremetal_gpu_h200_count_limit: Optional[int] = None
|
|
90
|
-
"""
|
|
90
|
+
"""Bare metal H200 GPU server count limit"""
|
|
91
91
|
|
|
92
92
|
baremetal_gpu_h200_count_usage: Optional[int] = None
|
|
93
|
-
"""
|
|
93
|
+
"""Bare metal H200 GPU server count usage"""
|
|
94
94
|
|
|
95
95
|
baremetal_gpu_l40s_count_limit: Optional[int] = None
|
|
96
|
-
"""
|
|
96
|
+
"""Bare metal L40S GPU server count limit"""
|
|
97
97
|
|
|
98
98
|
baremetal_gpu_l40s_count_usage: Optional[int] = None
|
|
99
|
-
"""
|
|
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
|
-
"""
|
|
18
|
+
"""Bare metal A100 GPU server count limit"""
|
|
19
19
|
|
|
20
20
|
baremetal_gpu_a100_count_usage: Optional[int] = None
|
|
21
|
-
"""
|
|
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
|
-
"""
|
|
40
|
+
"""Bare metal H100 GPU server count limit"""
|
|
41
41
|
|
|
42
42
|
baremetal_gpu_h100_count_usage: Optional[int] = None
|
|
43
|
-
"""
|
|
43
|
+
"""Bare metal H100 GPU server count usage"""
|
|
44
44
|
|
|
45
45
|
baremetal_gpu_h200_count_limit: Optional[int] = None
|
|
46
|
-
"""
|
|
46
|
+
"""Bare metal H200 GPU server count limit"""
|
|
47
47
|
|
|
48
48
|
baremetal_gpu_h200_count_usage: Optional[int] = None
|
|
49
|
-
"""
|
|
49
|
+
"""Bare metal H200 GPU server count usage"""
|
|
50
50
|
|
|
51
51
|
baremetal_gpu_l40s_count_limit: Optional[int] = None
|
|
52
|
-
"""
|
|
52
|
+
"""Bare metal L40S GPU server count limit"""
|
|
53
53
|
|
|
54
54
|
baremetal_gpu_l40s_count_usage: Optional[int] = None
|
|
55
|
-
"""
|
|
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
|
-
"""
|
|
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
|
-
"""
|
|
61
|
+
"""Bare metal H100 GPU server count limit"""
|
|
62
62
|
|
|
63
63
|
baremetal_gpu_h200_count_limit: int
|
|
64
|
-
"""
|
|
64
|
+
"""Bare metal H200 GPU server count limit"""
|
|
65
65
|
|
|
66
66
|
baremetal_gpu_l40s_count_limit: int
|
|
67
|
-
"""
|
|
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
|
-
"""
|
|
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
|
-
"""
|
|
50
|
+
"""Bare metal H100 GPU server count limit"""
|
|
51
51
|
|
|
52
52
|
baremetal_gpu_h200_count_limit: Optional[int] = None
|
|
53
|
-
"""
|
|
53
|
+
"""Bare metal H200 GPU server count limit"""
|
|
54
54
|
|
|
55
55
|
baremetal_gpu_l40s_count_limit: Optional[int] = None
|
|
56
|
-
"""
|
|
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"""
|