gcore 0.15.0__py3-none-any.whl → 0.17.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 +18 -8
- gcore/_version.py +1 -1
- gcore/resources/cdn/audit_log.py +4 -12
- gcore/resources/cdn/cdn.py +130 -39
- gcore/resources/cdn/certificates.py +16 -40
- gcore/resources/cdn/ip_ranges.py +4 -8
- gcore/resources/cdn/{logs/logs.py → logs.py} +13 -53
- 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 +14 -18
- gcore/resources/cloud/billing_reservations.py +25 -208
- gcore/resources/cloud/cloud.py +18 -0
- 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 +126 -42
- gcore/resources/cloud/floating_ips.py +22 -42
- gcore/resources/cloud/gpu_baremetal_clusters/flavors.py +2 -6
- gcore/resources/cloud/gpu_baremetal_clusters/gpu_baremetal_clusters.py +30 -54
- gcore/resources/cloud/gpu_baremetal_clusters/images.py +16 -24
- gcore/resources/cloud/gpu_baremetal_clusters/interfaces.py +2 -6
- gcore/resources/cloud/gpu_baremetal_clusters/servers.py +18 -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 +28 -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 +24 -36
- gcore/resources/cloud/instances/instances.py +119 -94
- gcore/resources/cloud/instances/interfaces.py +18 -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 +22 -30
- gcore/resources/cloud/load_balancers/l7_policies/rules.py +22 -30
- gcore/resources/cloud/load_balancers/listeners.py +38 -46
- gcore/resources/cloud/load_balancers/load_balancers.py +509 -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 +38 -46
- gcore/resources/cloud/load_balancers/statuses.py +10 -18
- gcore/resources/cloud/networks/networks.py +18 -30
- gcore/resources/cloud/networks/routers.py +14 -42
- gcore/resources/cloud/networks/subnets.py +14 -30
- gcore/resources/cloud/placement_groups.py +16 -24
- gcore/resources/cloud/projects.py +117 -129
- 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 +28 -30
- gcore/resources/cloud/reserved_fixed_ips/vip.py +10 -30
- gcore/resources/cloud/secrets.py +12 -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 +36 -33
- gcore/resources/cloud/usage_reports.py +18 -24
- gcore/resources/cloud/users/role_assignments.py +8 -24
- gcore/resources/cloud/volumes.py +47 -61
- 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 +8 -24
- 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/__init__.py +3 -0
- gcore/types/cdn/alibaba_regions.py +22 -0
- gcore/types/cdn/aws_regions.py +22 -0
- gcore/types/cdn/cdn_list_purge_statuses_response.py +10 -0
- gcore/types/cdn/cdn_resource.py +1 -1
- gcore/types/cdn/logs_aggregated_stats.py +1 -1
- gcore/types/cdn/resource_create_params.py +1 -1
- gcore/types/cdn/resource_replace_params.py +1 -1
- gcore/types/cdn/resource_update_params.py +1 -1
- gcore/types/cdn/resources/cdn_resource_rule.py +1 -1
- gcore/types/cdn/resources/rule_create_params.py +1 -1
- gcore/types/cdn/resources/rule_replace_params.py +1 -1
- gcore/types/cdn/resources/rule_update_params.py +1 -1
- gcore/types/cdn/rule_template.py +1 -1
- gcore/types/cdn/rule_template_create_params.py +1 -1
- gcore/types/cdn/rule_template_replace_params.py +1 -1
- gcore/types/cdn/rule_template_update_params.py +1 -1
- gcore/types/cloud/__init__.py +2 -1
- 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/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/{project_replace_params.py → project_update_params.py} +2 -2
- gcore/types/cloud/task_list_params.py +3 -3
- gcore/types/cloud/usage_report_get_params.py +2 -2
- gcore/types/security/profile_create_params.py +2 -2
- {gcore-0.15.0.dist-info → gcore-0.17.0.dist-info}/METADATA +2 -2
- {gcore-0.15.0.dist-info → gcore-0.17.0.dist-info}/RECORD +193 -195
- gcore/resources/cdn/logs/__init__.py +0 -33
- gcore/resources/cdn/logs/settings.py +0 -1081
- gcore/types/cdn/logs/__init__.py +0 -7
- 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.15.0.dist-info → gcore-0.17.0.dist-info}/WHEEL +0 -0
- {gcore-0.15.0.dist-info → gcore-0.17.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -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
|
|
@@ -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]]
|
|
@@ -5,10 +5,10 @@ from __future__ import annotations
|
|
|
5
5
|
from typing import Optional
|
|
6
6
|
from typing_extensions import Required, TypedDict
|
|
7
7
|
|
|
8
|
-
__all__ = ["
|
|
8
|
+
__all__ = ["ProjectUpdateParams"]
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
class
|
|
11
|
+
class ProjectUpdateParams(TypedDict, total=False):
|
|
12
12
|
project_id: int
|
|
13
13
|
|
|
14
14
|
name: Required[str]
|
|
@@ -103,9 +103,9 @@ class TaskListParams(TypedDict, total=False):
|
|
|
103
103
|
'`suspend_vm`', '`sync_private_flavors`', '`update_ddos_profile`',
|
|
104
104
|
'`update_inference_application`', '`update_inference_instance`',
|
|
105
105
|
'`update_k8s_cluster_v2`', '`update_lbmetadata`',
|
|
106
|
-
'`update_port_allowed_address_pairs`', '`
|
|
107
|
-
'`
|
|
108
|
-
'`upscale_gpu_virtual_cluster`']
|
|
106
|
+
'`update_port_allowed_address_pairs`', '`update_sfs`',
|
|
107
|
+
'`update_tags_gpu_virtual_cluster`', '`upgrade_k8s_cluster_v2`',
|
|
108
|
+
'`upscale_ai_cluster_gpu`', '`upscale_gpu_virtual_cluster`']
|
|
109
109
|
"""
|
|
110
110
|
|
|
111
111
|
to_timestamp: Annotated[Union[str, datetime, None], PropertyInfo(format="iso8601")]
|
|
@@ -47,13 +47,13 @@ class UsageReportGetParams(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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.3
|
|
2
2
|
Name: gcore
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.17.0
|
|
4
4
|
Summary: The official Python library for the gcore API
|
|
5
5
|
Project-URL: Homepage, https://github.com/G-Core/gcore-python
|
|
6
6
|
Project-URL: Repository, https://github.com/G-Core/gcore-python
|
|
@@ -30,7 +30,7 @@ Requires-Dist: sniffio
|
|
|
30
30
|
Requires-Dist: typing-extensions<5,>=4.10
|
|
31
31
|
Provides-Extra: aiohttp
|
|
32
32
|
Requires-Dist: aiohttp; extra == 'aiohttp'
|
|
33
|
-
Requires-Dist: httpx-aiohttp>=0.1.
|
|
33
|
+
Requires-Dist: httpx-aiohttp>=0.1.9; extra == 'aiohttp'
|
|
34
34
|
Description-Content-Type: text/markdown
|
|
35
35
|
|
|
36
36
|
# Gcore Python API library
|