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
|
@@ -2,14 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List, Union
|
|
6
|
-
from datetime import date, datetime
|
|
7
5
|
from typing_extensions import Literal
|
|
8
6
|
|
|
9
7
|
import httpx
|
|
10
8
|
|
|
11
9
|
from ..._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
12
|
-
from ..._utils import maybe_transform
|
|
10
|
+
from ..._utils import maybe_transform, async_maybe_transform
|
|
13
11
|
from ..._compat import cached_property
|
|
14
12
|
from ..._resource import SyncAPIResource, AsyncAPIResource
|
|
15
13
|
from ..._response import (
|
|
@@ -18,10 +16,9 @@ from ..._response import (
|
|
|
18
16
|
async_to_raw_response_wrapper,
|
|
19
17
|
async_to_streamed_response_wrapper,
|
|
20
18
|
)
|
|
21
|
-
from ...pagination import SyncOffsetPage, AsyncOffsetPage
|
|
22
19
|
from ...types.cloud import billing_reservation_list_params
|
|
23
|
-
from ..._base_client import
|
|
24
|
-
from ...types.cloud.
|
|
20
|
+
from ..._base_client import make_request_options
|
|
21
|
+
from ...types.cloud.billing_reservations import BillingReservations
|
|
25
22
|
|
|
26
23
|
__all__ = ["BillingReservationsResource", "AsyncBillingReservationsResource"]
|
|
27
24
|
|
|
@@ -49,67 +46,29 @@ class BillingReservationsResource(SyncAPIResource):
|
|
|
49
46
|
def list(
|
|
50
47
|
self,
|
|
51
48
|
*,
|
|
52
|
-
activated_from: Union[str, date] | Omit = omit,
|
|
53
|
-
activated_to: Union[str, date] | Omit = omit,
|
|
54
|
-
created_from: Union[str, datetime] | Omit = omit,
|
|
55
|
-
created_to: Union[str, datetime] | Omit = omit,
|
|
56
|
-
deactivated_from: Union[str, date] | Omit = omit,
|
|
57
|
-
deactivated_to: Union[str, date] | Omit = omit,
|
|
58
|
-
limit: int | Omit = omit,
|
|
59
49
|
metric_name: str | Omit = omit,
|
|
60
|
-
|
|
61
|
-
order_by: Literal[
|
|
62
|
-
"active_from.asc",
|
|
63
|
-
"active_from.desc",
|
|
64
|
-
"active_to.asc",
|
|
65
|
-
"active_to.desc",
|
|
66
|
-
"created_at.asc",
|
|
67
|
-
"created_at.desc",
|
|
68
|
-
]
|
|
69
|
-
| Omit = omit,
|
|
50
|
+
order_by: Literal["active_from.asc", "active_from.desc", "active_to.asc", "active_to.desc"] | Omit = omit,
|
|
70
51
|
region_id: int | Omit = omit,
|
|
71
|
-
|
|
72
|
-
Literal[
|
|
73
|
-
"ACTIVATED", "APPROVED", "COPIED", "CREATED", "EXPIRED", "REJECTED", "RESERVED", "WAITING_FOR_PAYMENT"
|
|
74
|
-
]
|
|
75
|
-
]
|
|
76
|
-
| Omit = omit,
|
|
52
|
+
show_inactive: bool | Omit = omit,
|
|
77
53
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
78
54
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
79
55
|
extra_headers: Headers | None = None,
|
|
80
56
|
extra_query: Query | None = None,
|
|
81
57
|
extra_body: Body | None = None,
|
|
82
58
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
83
|
-
) ->
|
|
59
|
+
) -> BillingReservations:
|
|
84
60
|
"""
|
|
85
|
-
|
|
61
|
+
Get a list of billing reservations along with detailed information on resource
|
|
62
|
+
configurations and associated pricing.
|
|
86
63
|
|
|
87
64
|
Args:
|
|
88
|
-
activated_from: Lower bound, starting from what date the reservation was/will be activated
|
|
89
|
-
|
|
90
|
-
activated_to: High bound, before what date the reservation was/will be activated
|
|
91
|
-
|
|
92
|
-
created_from: Lower bound the filter, showing result(s) equal to or greater than date the
|
|
93
|
-
reservation was created
|
|
94
|
-
|
|
95
|
-
created_to: High bound the filter, showing result(s) equal to or less date the reservation
|
|
96
|
-
was created
|
|
97
|
-
|
|
98
|
-
deactivated_from: Lower bound, starting from what date the reservation was/will be deactivated
|
|
99
|
-
|
|
100
|
-
deactivated_to: High bound, before what date the reservation was/will be deactivated
|
|
101
|
-
|
|
102
|
-
limit: Limit of reservation list page
|
|
103
|
-
|
|
104
65
|
metric_name: Name from billing features for specific resource
|
|
105
66
|
|
|
106
|
-
offset: Offset in reservation list
|
|
107
|
-
|
|
108
67
|
order_by: Order by field and direction.
|
|
109
68
|
|
|
110
69
|
region_id: Region for reservation
|
|
111
70
|
|
|
112
|
-
|
|
71
|
+
show_inactive: Include inactive commits in the response
|
|
113
72
|
|
|
114
73
|
extra_headers: Send extra headers
|
|
115
74
|
|
|
@@ -119,11 +78,8 @@ class BillingReservationsResource(SyncAPIResource):
|
|
|
119
78
|
|
|
120
79
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
121
80
|
"""
|
|
122
|
-
return self.
|
|
123
|
-
"/cloud/
|
|
124
|
-
if self._client._base_url_overridden
|
|
125
|
-
else "https://api.gcore.com//cloud/v1/reservations",
|
|
126
|
-
page=SyncOffsetPage[BillingReservation],
|
|
81
|
+
return self._get(
|
|
82
|
+
"/cloud/v2/reservations",
|
|
127
83
|
options=make_request_options(
|
|
128
84
|
extra_headers=extra_headers,
|
|
129
85
|
extra_query=extra_query,
|
|
@@ -131,58 +87,15 @@ class BillingReservationsResource(SyncAPIResource):
|
|
|
131
87
|
timeout=timeout,
|
|
132
88
|
query=maybe_transform(
|
|
133
89
|
{
|
|
134
|
-
"activated_from": activated_from,
|
|
135
|
-
"activated_to": activated_to,
|
|
136
|
-
"created_from": created_from,
|
|
137
|
-
"created_to": created_to,
|
|
138
|
-
"deactivated_from": deactivated_from,
|
|
139
|
-
"deactivated_to": deactivated_to,
|
|
140
|
-
"limit": limit,
|
|
141
90
|
"metric_name": metric_name,
|
|
142
|
-
"offset": offset,
|
|
143
91
|
"order_by": order_by,
|
|
144
92
|
"region_id": region_id,
|
|
145
|
-
"
|
|
93
|
+
"show_inactive": show_inactive,
|
|
146
94
|
},
|
|
147
95
|
billing_reservation_list_params.BillingReservationListParams,
|
|
148
96
|
),
|
|
149
97
|
),
|
|
150
|
-
|
|
151
|
-
)
|
|
152
|
-
|
|
153
|
-
def get(
|
|
154
|
-
self,
|
|
155
|
-
reservation_id: int,
|
|
156
|
-
*,
|
|
157
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
158
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
159
|
-
extra_headers: Headers | None = None,
|
|
160
|
-
extra_query: Query | None = None,
|
|
161
|
-
extra_body: Body | None = None,
|
|
162
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
163
|
-
) -> BillingReservation:
|
|
164
|
-
"""
|
|
165
|
-
Get reservation
|
|
166
|
-
|
|
167
|
-
Args:
|
|
168
|
-
reservation_id: ID of the reservation
|
|
169
|
-
|
|
170
|
-
extra_headers: Send extra headers
|
|
171
|
-
|
|
172
|
-
extra_query: Add additional query parameters to the request
|
|
173
|
-
|
|
174
|
-
extra_body: Add additional JSON properties to the request
|
|
175
|
-
|
|
176
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
177
|
-
"""
|
|
178
|
-
return self._get(
|
|
179
|
-
f"/cloud/v1/reservations/{reservation_id}"
|
|
180
|
-
if self._client._base_url_overridden
|
|
181
|
-
else f"https://api.gcore.com//cloud/v1/reservations/{reservation_id}",
|
|
182
|
-
options=make_request_options(
|
|
183
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
184
|
-
),
|
|
185
|
-
cast_to=BillingReservation,
|
|
98
|
+
cast_to=BillingReservations,
|
|
186
99
|
)
|
|
187
100
|
|
|
188
101
|
|
|
@@ -206,70 +119,32 @@ class AsyncBillingReservationsResource(AsyncAPIResource):
|
|
|
206
119
|
"""
|
|
207
120
|
return AsyncBillingReservationsResourceWithStreamingResponse(self)
|
|
208
121
|
|
|
209
|
-
def list(
|
|
122
|
+
async def list(
|
|
210
123
|
self,
|
|
211
124
|
*,
|
|
212
|
-
activated_from: Union[str, date] | Omit = omit,
|
|
213
|
-
activated_to: Union[str, date] | Omit = omit,
|
|
214
|
-
created_from: Union[str, datetime] | Omit = omit,
|
|
215
|
-
created_to: Union[str, datetime] | Omit = omit,
|
|
216
|
-
deactivated_from: Union[str, date] | Omit = omit,
|
|
217
|
-
deactivated_to: Union[str, date] | Omit = omit,
|
|
218
|
-
limit: int | Omit = omit,
|
|
219
125
|
metric_name: str | Omit = omit,
|
|
220
|
-
|
|
221
|
-
order_by: Literal[
|
|
222
|
-
"active_from.asc",
|
|
223
|
-
"active_from.desc",
|
|
224
|
-
"active_to.asc",
|
|
225
|
-
"active_to.desc",
|
|
226
|
-
"created_at.asc",
|
|
227
|
-
"created_at.desc",
|
|
228
|
-
]
|
|
229
|
-
| Omit = omit,
|
|
126
|
+
order_by: Literal["active_from.asc", "active_from.desc", "active_to.asc", "active_to.desc"] | Omit = omit,
|
|
230
127
|
region_id: int | Omit = omit,
|
|
231
|
-
|
|
232
|
-
Literal[
|
|
233
|
-
"ACTIVATED", "APPROVED", "COPIED", "CREATED", "EXPIRED", "REJECTED", "RESERVED", "WAITING_FOR_PAYMENT"
|
|
234
|
-
]
|
|
235
|
-
]
|
|
236
|
-
| Omit = omit,
|
|
128
|
+
show_inactive: bool | Omit = omit,
|
|
237
129
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
238
130
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
239
131
|
extra_headers: Headers | None = None,
|
|
240
132
|
extra_query: Query | None = None,
|
|
241
133
|
extra_body: Body | None = None,
|
|
242
134
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
243
|
-
) ->
|
|
135
|
+
) -> BillingReservations:
|
|
244
136
|
"""
|
|
245
|
-
|
|
137
|
+
Get a list of billing reservations along with detailed information on resource
|
|
138
|
+
configurations and associated pricing.
|
|
246
139
|
|
|
247
140
|
Args:
|
|
248
|
-
activated_from: Lower bound, starting from what date the reservation was/will be activated
|
|
249
|
-
|
|
250
|
-
activated_to: High bound, before what date the reservation was/will be activated
|
|
251
|
-
|
|
252
|
-
created_from: Lower bound the filter, showing result(s) equal to or greater than date the
|
|
253
|
-
reservation was created
|
|
254
|
-
|
|
255
|
-
created_to: High bound the filter, showing result(s) equal to or less date the reservation
|
|
256
|
-
was created
|
|
257
|
-
|
|
258
|
-
deactivated_from: Lower bound, starting from what date the reservation was/will be deactivated
|
|
259
|
-
|
|
260
|
-
deactivated_to: High bound, before what date the reservation was/will be deactivated
|
|
261
|
-
|
|
262
|
-
limit: Limit of reservation list page
|
|
263
|
-
|
|
264
141
|
metric_name: Name from billing features for specific resource
|
|
265
142
|
|
|
266
|
-
offset: Offset in reservation list
|
|
267
|
-
|
|
268
143
|
order_by: Order by field and direction.
|
|
269
144
|
|
|
270
145
|
region_id: Region for reservation
|
|
271
146
|
|
|
272
|
-
|
|
147
|
+
show_inactive: Include inactive commits in the response
|
|
273
148
|
|
|
274
149
|
extra_headers: Send extra headers
|
|
275
150
|
|
|
@@ -279,70 +154,24 @@ class AsyncBillingReservationsResource(AsyncAPIResource):
|
|
|
279
154
|
|
|
280
155
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
281
156
|
"""
|
|
282
|
-
return self.
|
|
283
|
-
"/cloud/
|
|
284
|
-
if self._client._base_url_overridden
|
|
285
|
-
else "https://api.gcore.com//cloud/v1/reservations",
|
|
286
|
-
page=AsyncOffsetPage[BillingReservation],
|
|
157
|
+
return await self._get(
|
|
158
|
+
"/cloud/v2/reservations",
|
|
287
159
|
options=make_request_options(
|
|
288
160
|
extra_headers=extra_headers,
|
|
289
161
|
extra_query=extra_query,
|
|
290
162
|
extra_body=extra_body,
|
|
291
163
|
timeout=timeout,
|
|
292
|
-
query=
|
|
164
|
+
query=await async_maybe_transform(
|
|
293
165
|
{
|
|
294
|
-
"activated_from": activated_from,
|
|
295
|
-
"activated_to": activated_to,
|
|
296
|
-
"created_from": created_from,
|
|
297
|
-
"created_to": created_to,
|
|
298
|
-
"deactivated_from": deactivated_from,
|
|
299
|
-
"deactivated_to": deactivated_to,
|
|
300
|
-
"limit": limit,
|
|
301
166
|
"metric_name": metric_name,
|
|
302
|
-
"offset": offset,
|
|
303
167
|
"order_by": order_by,
|
|
304
168
|
"region_id": region_id,
|
|
305
|
-
"
|
|
169
|
+
"show_inactive": show_inactive,
|
|
306
170
|
},
|
|
307
171
|
billing_reservation_list_params.BillingReservationListParams,
|
|
308
172
|
),
|
|
309
173
|
),
|
|
310
|
-
|
|
311
|
-
)
|
|
312
|
-
|
|
313
|
-
async def get(
|
|
314
|
-
self,
|
|
315
|
-
reservation_id: int,
|
|
316
|
-
*,
|
|
317
|
-
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
318
|
-
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
319
|
-
extra_headers: Headers | None = None,
|
|
320
|
-
extra_query: Query | None = None,
|
|
321
|
-
extra_body: Body | None = None,
|
|
322
|
-
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
323
|
-
) -> BillingReservation:
|
|
324
|
-
"""
|
|
325
|
-
Get reservation
|
|
326
|
-
|
|
327
|
-
Args:
|
|
328
|
-
reservation_id: ID of the reservation
|
|
329
|
-
|
|
330
|
-
extra_headers: Send extra headers
|
|
331
|
-
|
|
332
|
-
extra_query: Add additional query parameters to the request
|
|
333
|
-
|
|
334
|
-
extra_body: Add additional JSON properties to the request
|
|
335
|
-
|
|
336
|
-
timeout: Override the client-level default timeout for this request, in seconds
|
|
337
|
-
"""
|
|
338
|
-
return await self._get(
|
|
339
|
-
f"/cloud/v1/reservations/{reservation_id}"
|
|
340
|
-
if self._client._base_url_overridden
|
|
341
|
-
else f"https://api.gcore.com//cloud/v1/reservations/{reservation_id}",
|
|
342
|
-
options=make_request_options(
|
|
343
|
-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
344
|
-
),
|
|
345
|
-
cast_to=BillingReservation,
|
|
174
|
+
cast_to=BillingReservations,
|
|
346
175
|
)
|
|
347
176
|
|
|
348
177
|
|
|
@@ -353,9 +182,6 @@ class BillingReservationsResourceWithRawResponse:
|
|
|
353
182
|
self.list = to_raw_response_wrapper(
|
|
354
183
|
billing_reservations.list,
|
|
355
184
|
)
|
|
356
|
-
self.get = to_raw_response_wrapper(
|
|
357
|
-
billing_reservations.get,
|
|
358
|
-
)
|
|
359
185
|
|
|
360
186
|
|
|
361
187
|
class AsyncBillingReservationsResourceWithRawResponse:
|
|
@@ -365,9 +191,6 @@ class AsyncBillingReservationsResourceWithRawResponse:
|
|
|
365
191
|
self.list = async_to_raw_response_wrapper(
|
|
366
192
|
billing_reservations.list,
|
|
367
193
|
)
|
|
368
|
-
self.get = async_to_raw_response_wrapper(
|
|
369
|
-
billing_reservations.get,
|
|
370
|
-
)
|
|
371
194
|
|
|
372
195
|
|
|
373
196
|
class BillingReservationsResourceWithStreamingResponse:
|
|
@@ -377,9 +200,6 @@ class BillingReservationsResourceWithStreamingResponse:
|
|
|
377
200
|
self.list = to_streamed_response_wrapper(
|
|
378
201
|
billing_reservations.list,
|
|
379
202
|
)
|
|
380
|
-
self.get = to_streamed_response_wrapper(
|
|
381
|
-
billing_reservations.get,
|
|
382
|
-
)
|
|
383
203
|
|
|
384
204
|
|
|
385
205
|
class AsyncBillingReservationsResourceWithStreamingResponse:
|
|
@@ -389,6 +209,3 @@ class AsyncBillingReservationsResourceWithStreamingResponse:
|
|
|
389
209
|
self.list = async_to_streamed_response_wrapper(
|
|
390
210
|
billing_reservations.list,
|
|
391
211
|
)
|
|
392
|
-
self.get = async_to_streamed_response_wrapper(
|
|
393
|
-
billing_reservations.get,
|
|
394
|
-
)
|
|
@@ -110,19 +110,18 @@ class CostReportsResource(SyncAPIResource):
|
|
|
110
110
|
/v1/`reservation_cost_report`/totals, as the results from this report will not
|
|
111
111
|
be accurate.
|
|
112
112
|
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
missing data is filled in.
|
|
113
|
+
Data from the past hour may not reflect the full set of statistics. For the most
|
|
114
|
+
complete and accurate results, we recommend accessing the data at least one hour
|
|
115
|
+
after the relevant time period. Updates are generally available within a 24-hour
|
|
116
|
+
window, though timing can vary. Scheduled maintenance or other exceptions may
|
|
117
|
+
occasionally cause delays beyond 24 hours.
|
|
119
118
|
|
|
120
119
|
Args:
|
|
121
120
|
time_from: The start date of the report period (ISO 8601). The report starts from the
|
|
122
|
-
beginning of this day.
|
|
121
|
+
beginning of this day in UTC.
|
|
123
122
|
|
|
124
123
|
time_to: The end date of the report period (ISO 8601). The report ends just before the
|
|
125
|
-
beginning of this day.
|
|
124
|
+
beginning of this day in UTC.
|
|
126
125
|
|
|
127
126
|
enable_last_day: Expenses for the last specified day are taken into account. As the default,
|
|
128
127
|
False.
|
|
@@ -150,9 +149,7 @@ class CostReportsResource(SyncAPIResource):
|
|
|
150
149
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
151
150
|
"""
|
|
152
151
|
return self._post(
|
|
153
|
-
"/cloud/v1/cost_report/totals"
|
|
154
|
-
if self._client._base_url_overridden
|
|
155
|
-
else "https://api.gcore.com//cloud/v1/cost_report/totals",
|
|
152
|
+
"/cloud/v1/cost_report/totals",
|
|
156
153
|
body=maybe_transform(
|
|
157
154
|
{
|
|
158
155
|
"time_from": time_from,
|
|
@@ -228,12 +225,11 @@ class CostReportsResource(SyncAPIResource):
|
|
|
228
225
|
spent billing units (e.g., hours or GB) for resources. The "`time_to`" parameter
|
|
229
226
|
represents all days in the specified month.
|
|
230
227
|
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
missing data is filled in.
|
|
228
|
+
Data from the past hour may not reflect the full set of statistics. For the most
|
|
229
|
+
complete and accurate results, we recommend accessing the data at least one hour
|
|
230
|
+
after the relevant time period. Updates are generally available within a 24-hour
|
|
231
|
+
window, though timing can vary. Scheduled maintenance or other exceptions may
|
|
232
|
+
occasionally cause delays beyond 24 hours.
|
|
237
233
|
|
|
238
234
|
Args:
|
|
239
235
|
regions: List of region IDs.
|
|
@@ -263,9 +259,7 @@ class CostReportsResource(SyncAPIResource):
|
|
|
263
259
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
264
260
|
"""
|
|
265
261
|
return self._post(
|
|
266
|
-
"/cloud/v1/reservation_cost_report/totals"
|
|
267
|
-
if self._client._base_url_overridden
|
|
268
|
-
else "https://api.gcore.com//cloud/v1/reservation_cost_report/totals",
|
|
262
|
+
"/cloud/v1/reservation_cost_report/totals",
|
|
269
263
|
body=maybe_transform(
|
|
270
264
|
{
|
|
271
265
|
"regions": regions,
|
|
@@ -348,19 +342,18 @@ class CostReportsResource(SyncAPIResource):
|
|
|
348
342
|
/v1/`reservation_cost_report`/totals, as the results from this report will not
|
|
349
343
|
be accurate.
|
|
350
344
|
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
missing data is filled in.
|
|
345
|
+
Data from the past hour may not reflect the full set of statistics. For the most
|
|
346
|
+
complete and accurate results, we recommend accessing the data at least one hour
|
|
347
|
+
after the relevant time period. Updates are generally available within a 24-hour
|
|
348
|
+
window, though timing can vary. Scheduled maintenance or other exceptions may
|
|
349
|
+
occasionally cause delays beyond 24 hours.
|
|
357
350
|
|
|
358
351
|
Args:
|
|
359
352
|
time_from: The start date of the report period (ISO 8601). The report starts from the
|
|
360
|
-
beginning of this day.
|
|
353
|
+
beginning of this day in UTC.
|
|
361
354
|
|
|
362
355
|
time_to: The end date of the report period (ISO 8601). The report ends just before the
|
|
363
|
-
beginning of this day.
|
|
356
|
+
beginning of this day in UTC.
|
|
364
357
|
|
|
365
358
|
enable_last_day: Expenses for the last specified day are taken into account. As the default,
|
|
366
359
|
False.
|
|
@@ -394,9 +387,7 @@ class CostReportsResource(SyncAPIResource):
|
|
|
394
387
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
395
388
|
"""
|
|
396
389
|
return self._post(
|
|
397
|
-
"/cloud/v1/cost_report/resources"
|
|
398
|
-
if self._client._base_url_overridden
|
|
399
|
-
else "https://api.gcore.com//cloud/v1/cost_report/resources",
|
|
390
|
+
"/cloud/v1/cost_report/resources",
|
|
400
391
|
body=maybe_transform(
|
|
401
392
|
{
|
|
402
393
|
"time_from": time_from,
|
|
@@ -501,19 +492,18 @@ class AsyncCostReportsResource(AsyncAPIResource):
|
|
|
501
492
|
/v1/`reservation_cost_report`/totals, as the results from this report will not
|
|
502
493
|
be accurate.
|
|
503
494
|
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
missing data is filled in.
|
|
495
|
+
Data from the past hour may not reflect the full set of statistics. For the most
|
|
496
|
+
complete and accurate results, we recommend accessing the data at least one hour
|
|
497
|
+
after the relevant time period. Updates are generally available within a 24-hour
|
|
498
|
+
window, though timing can vary. Scheduled maintenance or other exceptions may
|
|
499
|
+
occasionally cause delays beyond 24 hours.
|
|
510
500
|
|
|
511
501
|
Args:
|
|
512
502
|
time_from: The start date of the report period (ISO 8601). The report starts from the
|
|
513
|
-
beginning of this day.
|
|
503
|
+
beginning of this day in UTC.
|
|
514
504
|
|
|
515
505
|
time_to: The end date of the report period (ISO 8601). The report ends just before the
|
|
516
|
-
beginning of this day.
|
|
506
|
+
beginning of this day in UTC.
|
|
517
507
|
|
|
518
508
|
enable_last_day: Expenses for the last specified day are taken into account. As the default,
|
|
519
509
|
False.
|
|
@@ -541,9 +531,7 @@ class AsyncCostReportsResource(AsyncAPIResource):
|
|
|
541
531
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
542
532
|
"""
|
|
543
533
|
return await self._post(
|
|
544
|
-
"/cloud/v1/cost_report/totals"
|
|
545
|
-
if self._client._base_url_overridden
|
|
546
|
-
else "https://api.gcore.com//cloud/v1/cost_report/totals",
|
|
534
|
+
"/cloud/v1/cost_report/totals",
|
|
547
535
|
body=await async_maybe_transform(
|
|
548
536
|
{
|
|
549
537
|
"time_from": time_from,
|
|
@@ -619,12 +607,11 @@ class AsyncCostReportsResource(AsyncAPIResource):
|
|
|
619
607
|
spent billing units (e.g., hours or GB) for resources. The "`time_to`" parameter
|
|
620
608
|
represents all days in the specified month.
|
|
621
609
|
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
missing data is filled in.
|
|
610
|
+
Data from the past hour may not reflect the full set of statistics. For the most
|
|
611
|
+
complete and accurate results, we recommend accessing the data at least one hour
|
|
612
|
+
after the relevant time period. Updates are generally available within a 24-hour
|
|
613
|
+
window, though timing can vary. Scheduled maintenance or other exceptions may
|
|
614
|
+
occasionally cause delays beyond 24 hours.
|
|
628
615
|
|
|
629
616
|
Args:
|
|
630
617
|
regions: List of region IDs.
|
|
@@ -654,9 +641,7 @@ class AsyncCostReportsResource(AsyncAPIResource):
|
|
|
654
641
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
655
642
|
"""
|
|
656
643
|
return await self._post(
|
|
657
|
-
"/cloud/v1/reservation_cost_report/totals"
|
|
658
|
-
if self._client._base_url_overridden
|
|
659
|
-
else "https://api.gcore.com//cloud/v1/reservation_cost_report/totals",
|
|
644
|
+
"/cloud/v1/reservation_cost_report/totals",
|
|
660
645
|
body=await async_maybe_transform(
|
|
661
646
|
{
|
|
662
647
|
"regions": regions,
|
|
@@ -739,19 +724,18 @@ class AsyncCostReportsResource(AsyncAPIResource):
|
|
|
739
724
|
/v1/`reservation_cost_report`/totals, as the results from this report will not
|
|
740
725
|
be accurate.
|
|
741
726
|
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
missing data is filled in.
|
|
727
|
+
Data from the past hour may not reflect the full set of statistics. For the most
|
|
728
|
+
complete and accurate results, we recommend accessing the data at least one hour
|
|
729
|
+
after the relevant time period. Updates are generally available within a 24-hour
|
|
730
|
+
window, though timing can vary. Scheduled maintenance or other exceptions may
|
|
731
|
+
occasionally cause delays beyond 24 hours.
|
|
748
732
|
|
|
749
733
|
Args:
|
|
750
734
|
time_from: The start date of the report period (ISO 8601). The report starts from the
|
|
751
|
-
beginning of this day.
|
|
735
|
+
beginning of this day in UTC.
|
|
752
736
|
|
|
753
737
|
time_to: The end date of the report period (ISO 8601). The report ends just before the
|
|
754
|
-
beginning of this day.
|
|
738
|
+
beginning of this day in UTC.
|
|
755
739
|
|
|
756
740
|
enable_last_day: Expenses for the last specified day are taken into account. As the default,
|
|
757
741
|
False.
|
|
@@ -785,9 +769,7 @@ class AsyncCostReportsResource(AsyncAPIResource):
|
|
|
785
769
|
timeout: Override the client-level default timeout for this request, in seconds
|
|
786
770
|
"""
|
|
787
771
|
return await self._post(
|
|
788
|
-
"/cloud/v1/cost_report/resources"
|
|
789
|
-
if self._client._base_url_overridden
|
|
790
|
-
else "https://api.gcore.com//cloud/v1/cost_report/resources",
|
|
772
|
+
"/cloud/v1/cost_report/resources",
|
|
791
773
|
body=await async_maybe_transform(
|
|
792
774
|
{
|
|
793
775
|
"time_from": time_from,
|
|
@@ -88,9 +88,7 @@ class AccessRulesResource(SyncAPIResource):
|
|
|
88
88
|
if not file_share_id:
|
|
89
89
|
raise ValueError(f"Expected a non-empty value for `file_share_id` but received {file_share_id!r}")
|
|
90
90
|
return self._post(
|
|
91
|
-
f"/cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule"
|
|
92
|
-
if self._client._base_url_overridden
|
|
93
|
-
else f"https://api.gcore.com//cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule",
|
|
91
|
+
f"/cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule",
|
|
94
92
|
body=maybe_transform(
|
|
95
93
|
{
|
|
96
94
|
"access_mode": access_mode,
|
|
@@ -142,9 +140,7 @@ class AccessRulesResource(SyncAPIResource):
|
|
|
142
140
|
if not file_share_id:
|
|
143
141
|
raise ValueError(f"Expected a non-empty value for `file_share_id` but received {file_share_id!r}")
|
|
144
142
|
return self._get(
|
|
145
|
-
f"/cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule"
|
|
146
|
-
if self._client._base_url_overridden
|
|
147
|
-
else f"https://api.gcore.com//cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule",
|
|
143
|
+
f"/cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule",
|
|
148
144
|
options=make_request_options(
|
|
149
145
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
150
146
|
),
|
|
@@ -195,9 +191,7 @@ class AccessRulesResource(SyncAPIResource):
|
|
|
195
191
|
raise ValueError(f"Expected a non-empty value for `access_rule_id` but received {access_rule_id!r}")
|
|
196
192
|
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
197
193
|
return self._delete(
|
|
198
|
-
f"/cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule/{access_rule_id}"
|
|
199
|
-
if self._client._base_url_overridden
|
|
200
|
-
else f"https://api.gcore.com//cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule/{access_rule_id}",
|
|
194
|
+
f"/cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule/{access_rule_id}",
|
|
201
195
|
options=make_request_options(
|
|
202
196
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
203
197
|
),
|
|
@@ -269,9 +263,7 @@ class AsyncAccessRulesResource(AsyncAPIResource):
|
|
|
269
263
|
if not file_share_id:
|
|
270
264
|
raise ValueError(f"Expected a non-empty value for `file_share_id` but received {file_share_id!r}")
|
|
271
265
|
return await self._post(
|
|
272
|
-
f"/cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule"
|
|
273
|
-
if self._client._base_url_overridden
|
|
274
|
-
else f"https://api.gcore.com//cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule",
|
|
266
|
+
f"/cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule",
|
|
275
267
|
body=await async_maybe_transform(
|
|
276
268
|
{
|
|
277
269
|
"access_mode": access_mode,
|
|
@@ -323,9 +315,7 @@ class AsyncAccessRulesResource(AsyncAPIResource):
|
|
|
323
315
|
if not file_share_id:
|
|
324
316
|
raise ValueError(f"Expected a non-empty value for `file_share_id` but received {file_share_id!r}")
|
|
325
317
|
return await self._get(
|
|
326
|
-
f"/cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule"
|
|
327
|
-
if self._client._base_url_overridden
|
|
328
|
-
else f"https://api.gcore.com//cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule",
|
|
318
|
+
f"/cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule",
|
|
329
319
|
options=make_request_options(
|
|
330
320
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
331
321
|
),
|
|
@@ -376,9 +366,7 @@ class AsyncAccessRulesResource(AsyncAPIResource):
|
|
|
376
366
|
raise ValueError(f"Expected a non-empty value for `access_rule_id` but received {access_rule_id!r}")
|
|
377
367
|
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
378
368
|
return await self._delete(
|
|
379
|
-
f"/cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule/{access_rule_id}"
|
|
380
|
-
if self._client._base_url_overridden
|
|
381
|
-
else f"https://api.gcore.com//cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule/{access_rule_id}",
|
|
369
|
+
f"/cloud/v1/file_shares/{project_id}/{region_id}/{file_share_id}/access_rule/{access_rule_id}",
|
|
382
370
|
options=make_request_options(
|
|
383
371
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
384
372
|
),
|