gcore 0.14.0__py3-none-any.whl → 0.15.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/_version.py +1 -1
- gcore/resources/cloud/networks/subnets.py +5 -7
- gcore/resources/cloud/reserved_fixed_ips/reserved_fixed_ips.py +110 -1
- gcore/resources/iam/api_tokens.py +4 -2
- gcore/types/cdn/cdn_resource.py +20 -0
- 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 +1 -0
- gcore/types/cloud/gpu_baremetal_clusters/gpu_baremetal_flavor.py +12 -0
- 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/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-0.14.0.dist-info → gcore-0.15.0.dist-info}/METADATA +1 -1
- {gcore-0.14.0.dist-info → gcore-0.15.0.dist-info}/RECORD +35 -34
- {gcore-0.14.0.dist-info → gcore-0.15.0.dist-info}/WHEEL +0 -0
- {gcore-0.14.0.dist-info → gcore-0.15.0.dist-info}/licenses/LICENSE +0 -0
gcore/_version.py
CHANGED
|
@@ -7,7 +7,7 @@ from typing_extensions import Literal
|
|
|
7
7
|
|
|
8
8
|
import httpx
|
|
9
9
|
|
|
10
|
-
from ...._types import NOT_GIVEN, Body, Omit, Query, Headers,
|
|
10
|
+
from ...._types import NOT_GIVEN, Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
|
|
11
11
|
from ...._utils import maybe_transform, async_maybe_transform
|
|
12
12
|
from ...._compat import cached_property
|
|
13
13
|
from ...._resource import SyncAPIResource, AsyncAPIResource
|
|
@@ -413,7 +413,7 @@ class SubnetsResource(SyncAPIResource):
|
|
|
413
413
|
extra_query: Query | None = None,
|
|
414
414
|
extra_body: Body | None = None,
|
|
415
415
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
416
|
-
) ->
|
|
416
|
+
) -> TaskIDList:
|
|
417
417
|
"""
|
|
418
418
|
Delete subnet
|
|
419
419
|
|
|
@@ -438,7 +438,6 @@ class SubnetsResource(SyncAPIResource):
|
|
|
438
438
|
region_id = self._client._get_cloud_region_id_path_param()
|
|
439
439
|
if not subnet_id:
|
|
440
440
|
raise ValueError(f"Expected a non-empty value for `subnet_id` but received {subnet_id!r}")
|
|
441
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
442
441
|
return self._delete(
|
|
443
442
|
f"/cloud/v1/subnets/{project_id}/{region_id}/{subnet_id}"
|
|
444
443
|
if self._client._base_url_overridden
|
|
@@ -446,7 +445,7 @@ class SubnetsResource(SyncAPIResource):
|
|
|
446
445
|
options=make_request_options(
|
|
447
446
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
448
447
|
),
|
|
449
|
-
cast_to=
|
|
448
|
+
cast_to=TaskIDList,
|
|
450
449
|
)
|
|
451
450
|
|
|
452
451
|
def get(
|
|
@@ -881,7 +880,7 @@ class AsyncSubnetsResource(AsyncAPIResource):
|
|
|
881
880
|
extra_query: Query | None = None,
|
|
882
881
|
extra_body: Body | None = None,
|
|
883
882
|
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
884
|
-
) ->
|
|
883
|
+
) -> TaskIDList:
|
|
885
884
|
"""
|
|
886
885
|
Delete subnet
|
|
887
886
|
|
|
@@ -906,7 +905,6 @@ class AsyncSubnetsResource(AsyncAPIResource):
|
|
|
906
905
|
region_id = self._client._get_cloud_region_id_path_param()
|
|
907
906
|
if not subnet_id:
|
|
908
907
|
raise ValueError(f"Expected a non-empty value for `subnet_id` but received {subnet_id!r}")
|
|
909
|
-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
|
|
910
908
|
return await self._delete(
|
|
911
909
|
f"/cloud/v1/subnets/{project_id}/{region_id}/{subnet_id}"
|
|
912
910
|
if self._client._base_url_overridden
|
|
@@ -914,7 +912,7 @@ class AsyncSubnetsResource(AsyncAPIResource):
|
|
|
914
912
|
options=make_request_options(
|
|
915
913
|
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
916
914
|
),
|
|
917
|
-
cast_to=
|
|
915
|
+
cast_to=TaskIDList,
|
|
918
916
|
)
|
|
919
917
|
|
|
920
918
|
async def get(
|
|
@@ -26,7 +26,12 @@ from ...._response import (
|
|
|
26
26
|
async_to_streamed_response_wrapper,
|
|
27
27
|
)
|
|
28
28
|
from ....pagination import SyncOffsetPage, AsyncOffsetPage
|
|
29
|
-
from ....types.cloud import
|
|
29
|
+
from ....types.cloud import (
|
|
30
|
+
InterfaceIPFamily,
|
|
31
|
+
reserved_fixed_ip_list_params,
|
|
32
|
+
reserved_fixed_ip_create_params,
|
|
33
|
+
reserved_fixed_ip_update_params,
|
|
34
|
+
)
|
|
30
35
|
from ...._base_client import AsyncPaginator, make_request_options
|
|
31
36
|
from ....types.cloud.task_id_list import TaskIDList
|
|
32
37
|
from ....types.cloud.reserved_fixed_ip import ReservedFixedIP
|
|
@@ -295,6 +300,51 @@ class ReservedFixedIPsResource(SyncAPIResource):
|
|
|
295
300
|
cast_to=TaskIDList,
|
|
296
301
|
)
|
|
297
302
|
|
|
303
|
+
def update(
|
|
304
|
+
self,
|
|
305
|
+
port_id: str,
|
|
306
|
+
*,
|
|
307
|
+
project_id: int | None = None,
|
|
308
|
+
region_id: int | None = None,
|
|
309
|
+
is_vip: bool,
|
|
310
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
311
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
312
|
+
extra_headers: Headers | None = None,
|
|
313
|
+
extra_query: Query | None = None,
|
|
314
|
+
extra_body: Body | None = None,
|
|
315
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
316
|
+
) -> ReservedFixedIP:
|
|
317
|
+
"""
|
|
318
|
+
Update the VIP status of a reserved fixed IP.
|
|
319
|
+
|
|
320
|
+
Args:
|
|
321
|
+
is_vip: If reserved fixed IP should be a VIP
|
|
322
|
+
|
|
323
|
+
extra_headers: Send extra headers
|
|
324
|
+
|
|
325
|
+
extra_query: Add additional query parameters to the request
|
|
326
|
+
|
|
327
|
+
extra_body: Add additional JSON properties to the request
|
|
328
|
+
|
|
329
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
330
|
+
"""
|
|
331
|
+
if project_id is None:
|
|
332
|
+
project_id = self._client._get_cloud_project_id_path_param()
|
|
333
|
+
if region_id is None:
|
|
334
|
+
region_id = self._client._get_cloud_region_id_path_param()
|
|
335
|
+
if not port_id:
|
|
336
|
+
raise ValueError(f"Expected a non-empty value for `port_id` but received {port_id!r}")
|
|
337
|
+
return self._patch(
|
|
338
|
+
f"/cloud/v1/reserved_fixed_ips/{project_id}/{region_id}/{port_id}"
|
|
339
|
+
if self._client._base_url_overridden
|
|
340
|
+
else f"https://api.gcore.com//cloud/v1/reserved_fixed_ips/{project_id}/{region_id}/{port_id}",
|
|
341
|
+
body=maybe_transform({"is_vip": is_vip}, reserved_fixed_ip_update_params.ReservedFixedIPUpdateParams),
|
|
342
|
+
options=make_request_options(
|
|
343
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
344
|
+
),
|
|
345
|
+
cast_to=ReservedFixedIP,
|
|
346
|
+
)
|
|
347
|
+
|
|
298
348
|
def list(
|
|
299
349
|
self,
|
|
300
350
|
*,
|
|
@@ -1016,6 +1066,53 @@ class AsyncReservedFixedIPsResource(AsyncAPIResource):
|
|
|
1016
1066
|
cast_to=TaskIDList,
|
|
1017
1067
|
)
|
|
1018
1068
|
|
|
1069
|
+
async def update(
|
|
1070
|
+
self,
|
|
1071
|
+
port_id: str,
|
|
1072
|
+
*,
|
|
1073
|
+
project_id: int | None = None,
|
|
1074
|
+
region_id: int | None = None,
|
|
1075
|
+
is_vip: bool,
|
|
1076
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
1077
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
1078
|
+
extra_headers: Headers | None = None,
|
|
1079
|
+
extra_query: Query | None = None,
|
|
1080
|
+
extra_body: Body | None = None,
|
|
1081
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
1082
|
+
) -> ReservedFixedIP:
|
|
1083
|
+
"""
|
|
1084
|
+
Update the VIP status of a reserved fixed IP.
|
|
1085
|
+
|
|
1086
|
+
Args:
|
|
1087
|
+
is_vip: If reserved fixed IP should be a VIP
|
|
1088
|
+
|
|
1089
|
+
extra_headers: Send extra headers
|
|
1090
|
+
|
|
1091
|
+
extra_query: Add additional query parameters to the request
|
|
1092
|
+
|
|
1093
|
+
extra_body: Add additional JSON properties to the request
|
|
1094
|
+
|
|
1095
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
1096
|
+
"""
|
|
1097
|
+
if project_id is None:
|
|
1098
|
+
project_id = self._client._get_cloud_project_id_path_param()
|
|
1099
|
+
if region_id is None:
|
|
1100
|
+
region_id = self._client._get_cloud_region_id_path_param()
|
|
1101
|
+
if not port_id:
|
|
1102
|
+
raise ValueError(f"Expected a non-empty value for `port_id` but received {port_id!r}")
|
|
1103
|
+
return await self._patch(
|
|
1104
|
+
f"/cloud/v1/reserved_fixed_ips/{project_id}/{region_id}/{port_id}"
|
|
1105
|
+
if self._client._base_url_overridden
|
|
1106
|
+
else f"https://api.gcore.com//cloud/v1/reserved_fixed_ips/{project_id}/{region_id}/{port_id}",
|
|
1107
|
+
body=await async_maybe_transform(
|
|
1108
|
+
{"is_vip": is_vip}, reserved_fixed_ip_update_params.ReservedFixedIPUpdateParams
|
|
1109
|
+
),
|
|
1110
|
+
options=make_request_options(
|
|
1111
|
+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
|
|
1112
|
+
),
|
|
1113
|
+
cast_to=ReservedFixedIP,
|
|
1114
|
+
)
|
|
1115
|
+
|
|
1019
1116
|
def list(
|
|
1020
1117
|
self,
|
|
1021
1118
|
*,
|
|
@@ -1484,6 +1581,9 @@ class ReservedFixedIPsResourceWithRawResponse:
|
|
|
1484
1581
|
self.create = to_raw_response_wrapper(
|
|
1485
1582
|
reserved_fixed_ips.create,
|
|
1486
1583
|
)
|
|
1584
|
+
self.update = to_raw_response_wrapper(
|
|
1585
|
+
reserved_fixed_ips.update,
|
|
1586
|
+
)
|
|
1487
1587
|
self.list = to_raw_response_wrapper(
|
|
1488
1588
|
reserved_fixed_ips.list,
|
|
1489
1589
|
)
|
|
@@ -1512,6 +1612,9 @@ class AsyncReservedFixedIPsResourceWithRawResponse:
|
|
|
1512
1612
|
self.create = async_to_raw_response_wrapper(
|
|
1513
1613
|
reserved_fixed_ips.create,
|
|
1514
1614
|
)
|
|
1615
|
+
self.update = async_to_raw_response_wrapper(
|
|
1616
|
+
reserved_fixed_ips.update,
|
|
1617
|
+
)
|
|
1515
1618
|
self.list = async_to_raw_response_wrapper(
|
|
1516
1619
|
reserved_fixed_ips.list,
|
|
1517
1620
|
)
|
|
@@ -1540,6 +1643,9 @@ class ReservedFixedIPsResourceWithStreamingResponse:
|
|
|
1540
1643
|
self.create = to_streamed_response_wrapper(
|
|
1541
1644
|
reserved_fixed_ips.create,
|
|
1542
1645
|
)
|
|
1646
|
+
self.update = to_streamed_response_wrapper(
|
|
1647
|
+
reserved_fixed_ips.update,
|
|
1648
|
+
)
|
|
1543
1649
|
self.list = to_streamed_response_wrapper(
|
|
1544
1650
|
reserved_fixed_ips.list,
|
|
1545
1651
|
)
|
|
@@ -1568,6 +1674,9 @@ class AsyncReservedFixedIPsResourceWithStreamingResponse:
|
|
|
1568
1674
|
self.create = async_to_streamed_response_wrapper(
|
|
1569
1675
|
reserved_fixed_ips.create,
|
|
1570
1676
|
)
|
|
1677
|
+
self.update = async_to_streamed_response_wrapper(
|
|
1678
|
+
reserved_fixed_ips.update,
|
|
1679
|
+
)
|
|
1571
1680
|
self.list = async_to_streamed_response_wrapper(
|
|
1572
1681
|
reserved_fixed_ips.list,
|
|
1573
1682
|
)
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from typing import Optional
|
|
6
|
+
|
|
5
7
|
import httpx
|
|
6
8
|
|
|
7
9
|
from ..._types import Body, Omit, Query, Headers, NoneType, NotGiven, omit, not_given
|
|
@@ -48,7 +50,7 @@ class APITokensResource(SyncAPIResource):
|
|
|
48
50
|
client_id: int,
|
|
49
51
|
*,
|
|
50
52
|
client_user: api_token_create_params.ClientUser,
|
|
51
|
-
exp_date: str,
|
|
53
|
+
exp_date: Optional[str],
|
|
52
54
|
name: str,
|
|
53
55
|
description: str | Omit = omit,
|
|
54
56
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
@@ -269,7 +271,7 @@ class AsyncAPITokensResource(AsyncAPIResource):
|
|
|
269
271
|
client_id: int,
|
|
270
272
|
*,
|
|
271
273
|
client_user: api_token_create_params.ClientUser,
|
|
272
|
-
exp_date: str,
|
|
274
|
+
exp_date: Optional[str],
|
|
273
275
|
name: str,
|
|
274
276
|
description: str | Omit = omit,
|
|
275
277
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
gcore/types/cdn/cdn_resource.py
CHANGED
|
@@ -832,6 +832,26 @@ class OptionsQueryStringForwarding(BaseModel):
|
|
|
832
832
|
of the streaming session.
|
|
833
833
|
"""
|
|
834
834
|
|
|
835
|
+
forward_except_keys: Optional[List[str]] = None
|
|
836
|
+
"""
|
|
837
|
+
The `forward_except_keys` field provides a mechanism to exclude specific
|
|
838
|
+
parameters from being forwarded from playlist files to media chunk files. By
|
|
839
|
+
listing certain keys in this field, you can ensure that these parameters are
|
|
840
|
+
omitted during the forwarding process. This is particularly useful for
|
|
841
|
+
preventing sensitive or irrelevant information from being included in requests
|
|
842
|
+
for media chunks, thereby enhancing security and optimizing performance.
|
|
843
|
+
"""
|
|
844
|
+
|
|
845
|
+
forward_only_keys: Optional[List[str]] = None
|
|
846
|
+
"""
|
|
847
|
+
The `forward_only_keys` field allows for granular control over which specific
|
|
848
|
+
parameters are forwarded from playlist files to media chunk files. By specifying
|
|
849
|
+
certain keys, only those parameters will be propagated, ensuring that only
|
|
850
|
+
relevant information is passed along. This is particularly useful for security
|
|
851
|
+
and performance optimization, as it prevents unnecessary or sensitive data from
|
|
852
|
+
being included in requests for media chunks.
|
|
853
|
+
"""
|
|
854
|
+
|
|
835
855
|
|
|
836
856
|
class OptionsRedirectHTTPToHTTPS(BaseModel):
|
|
837
857
|
enabled: bool
|
|
@@ -955,6 +955,26 @@ class OptionsQueryStringForwarding(TypedDict, total=False):
|
|
|
955
955
|
of the streaming session.
|
|
956
956
|
"""
|
|
957
957
|
|
|
958
|
+
forward_except_keys: SequenceNotStr[str]
|
|
959
|
+
"""
|
|
960
|
+
The `forward_except_keys` field provides a mechanism to exclude specific
|
|
961
|
+
parameters from being forwarded from playlist files to media chunk files. By
|
|
962
|
+
listing certain keys in this field, you can ensure that these parameters are
|
|
963
|
+
omitted during the forwarding process. This is particularly useful for
|
|
964
|
+
preventing sensitive or irrelevant information from being included in requests
|
|
965
|
+
for media chunks, thereby enhancing security and optimizing performance.
|
|
966
|
+
"""
|
|
967
|
+
|
|
968
|
+
forward_only_keys: SequenceNotStr[str]
|
|
969
|
+
"""
|
|
970
|
+
The `forward_only_keys` field allows for granular control over which specific
|
|
971
|
+
parameters are forwarded from playlist files to media chunk files. By specifying
|
|
972
|
+
certain keys, only those parameters will be propagated, ensuring that only
|
|
973
|
+
relevant information is passed along. This is particularly useful for security
|
|
974
|
+
and performance optimization, as it prevents unnecessary or sensitive data from
|
|
975
|
+
being included in requests for media chunks.
|
|
976
|
+
"""
|
|
977
|
+
|
|
958
978
|
|
|
959
979
|
class OptionsRedirectHTTPToHTTPS(TypedDict, total=False):
|
|
960
980
|
enabled: Required[bool]
|
|
@@ -933,6 +933,26 @@ class OptionsQueryStringForwarding(TypedDict, total=False):
|
|
|
933
933
|
of the streaming session.
|
|
934
934
|
"""
|
|
935
935
|
|
|
936
|
+
forward_except_keys: SequenceNotStr[str]
|
|
937
|
+
"""
|
|
938
|
+
The `forward_except_keys` field provides a mechanism to exclude specific
|
|
939
|
+
parameters from being forwarded from playlist files to media chunk files. By
|
|
940
|
+
listing certain keys in this field, you can ensure that these parameters are
|
|
941
|
+
omitted during the forwarding process. This is particularly useful for
|
|
942
|
+
preventing sensitive or irrelevant information from being included in requests
|
|
943
|
+
for media chunks, thereby enhancing security and optimizing performance.
|
|
944
|
+
"""
|
|
945
|
+
|
|
946
|
+
forward_only_keys: SequenceNotStr[str]
|
|
947
|
+
"""
|
|
948
|
+
The `forward_only_keys` field allows for granular control over which specific
|
|
949
|
+
parameters are forwarded from playlist files to media chunk files. By specifying
|
|
950
|
+
certain keys, only those parameters will be propagated, ensuring that only
|
|
951
|
+
relevant information is passed along. This is particularly useful for security
|
|
952
|
+
and performance optimization, as it prevents unnecessary or sensitive data from
|
|
953
|
+
being included in requests for media chunks.
|
|
954
|
+
"""
|
|
955
|
+
|
|
936
956
|
|
|
937
957
|
class OptionsRedirectHTTPToHTTPS(TypedDict, total=False):
|
|
938
958
|
enabled: Required[bool]
|
|
@@ -924,6 +924,26 @@ class OptionsQueryStringForwarding(TypedDict, total=False):
|
|
|
924
924
|
of the streaming session.
|
|
925
925
|
"""
|
|
926
926
|
|
|
927
|
+
forward_except_keys: SequenceNotStr[str]
|
|
928
|
+
"""
|
|
929
|
+
The `forward_except_keys` field provides a mechanism to exclude specific
|
|
930
|
+
parameters from being forwarded from playlist files to media chunk files. By
|
|
931
|
+
listing certain keys in this field, you can ensure that these parameters are
|
|
932
|
+
omitted during the forwarding process. This is particularly useful for
|
|
933
|
+
preventing sensitive or irrelevant information from being included in requests
|
|
934
|
+
for media chunks, thereby enhancing security and optimizing performance.
|
|
935
|
+
"""
|
|
936
|
+
|
|
937
|
+
forward_only_keys: SequenceNotStr[str]
|
|
938
|
+
"""
|
|
939
|
+
The `forward_only_keys` field allows for granular control over which specific
|
|
940
|
+
parameters are forwarded from playlist files to media chunk files. By specifying
|
|
941
|
+
certain keys, only those parameters will be propagated, ensuring that only
|
|
942
|
+
relevant information is passed along. This is particularly useful for security
|
|
943
|
+
and performance optimization, as it prevents unnecessary or sensitive data from
|
|
944
|
+
being included in requests for media chunks.
|
|
945
|
+
"""
|
|
946
|
+
|
|
927
947
|
|
|
928
948
|
class OptionsRedirectHTTPToHTTPS(TypedDict, total=False):
|
|
929
949
|
enabled: Required[bool]
|
|
@@ -809,6 +809,26 @@ class OptionsQueryStringForwarding(BaseModel):
|
|
|
809
809
|
of the streaming session.
|
|
810
810
|
"""
|
|
811
811
|
|
|
812
|
+
forward_except_keys: Optional[List[str]] = None
|
|
813
|
+
"""
|
|
814
|
+
The `forward_except_keys` field provides a mechanism to exclude specific
|
|
815
|
+
parameters from being forwarded from playlist files to media chunk files. By
|
|
816
|
+
listing certain keys in this field, you can ensure that these parameters are
|
|
817
|
+
omitted during the forwarding process. This is particularly useful for
|
|
818
|
+
preventing sensitive or irrelevant information from being included in requests
|
|
819
|
+
for media chunks, thereby enhancing security and optimizing performance.
|
|
820
|
+
"""
|
|
821
|
+
|
|
822
|
+
forward_only_keys: Optional[List[str]] = None
|
|
823
|
+
"""
|
|
824
|
+
The `forward_only_keys` field allows for granular control over which specific
|
|
825
|
+
parameters are forwarded from playlist files to media chunk files. By specifying
|
|
826
|
+
certain keys, only those parameters will be propagated, ensuring that only
|
|
827
|
+
relevant information is passed along. This is particularly useful for security
|
|
828
|
+
and performance optimization, as it prevents unnecessary or sensitive data from
|
|
829
|
+
being included in requests for media chunks.
|
|
830
|
+
"""
|
|
831
|
+
|
|
812
832
|
|
|
813
833
|
class OptionsRedirectHTTPToHTTPS(BaseModel):
|
|
814
834
|
enabled: bool
|
|
@@ -885,6 +885,26 @@ class OptionsQueryStringForwarding(TypedDict, total=False):
|
|
|
885
885
|
of the streaming session.
|
|
886
886
|
"""
|
|
887
887
|
|
|
888
|
+
forward_except_keys: SequenceNotStr[str]
|
|
889
|
+
"""
|
|
890
|
+
The `forward_except_keys` field provides a mechanism to exclude specific
|
|
891
|
+
parameters from being forwarded from playlist files to media chunk files. By
|
|
892
|
+
listing certain keys in this field, you can ensure that these parameters are
|
|
893
|
+
omitted during the forwarding process. This is particularly useful for
|
|
894
|
+
preventing sensitive or irrelevant information from being included in requests
|
|
895
|
+
for media chunks, thereby enhancing security and optimizing performance.
|
|
896
|
+
"""
|
|
897
|
+
|
|
898
|
+
forward_only_keys: SequenceNotStr[str]
|
|
899
|
+
"""
|
|
900
|
+
The `forward_only_keys` field allows for granular control over which specific
|
|
901
|
+
parameters are forwarded from playlist files to media chunk files. By specifying
|
|
902
|
+
certain keys, only those parameters will be propagated, ensuring that only
|
|
903
|
+
relevant information is passed along. This is particularly useful for security
|
|
904
|
+
and performance optimization, as it prevents unnecessary or sensitive data from
|
|
905
|
+
being included in requests for media chunks.
|
|
906
|
+
"""
|
|
907
|
+
|
|
888
908
|
|
|
889
909
|
class OptionsRedirectHTTPToHTTPS(TypedDict, total=False):
|
|
890
910
|
enabled: Required[bool]
|
|
@@ -887,6 +887,26 @@ class OptionsQueryStringForwarding(TypedDict, total=False):
|
|
|
887
887
|
of the streaming session.
|
|
888
888
|
"""
|
|
889
889
|
|
|
890
|
+
forward_except_keys: SequenceNotStr[str]
|
|
891
|
+
"""
|
|
892
|
+
The `forward_except_keys` field provides a mechanism to exclude specific
|
|
893
|
+
parameters from being forwarded from playlist files to media chunk files. By
|
|
894
|
+
listing certain keys in this field, you can ensure that these parameters are
|
|
895
|
+
omitted during the forwarding process. This is particularly useful for
|
|
896
|
+
preventing sensitive or irrelevant information from being included in requests
|
|
897
|
+
for media chunks, thereby enhancing security and optimizing performance.
|
|
898
|
+
"""
|
|
899
|
+
|
|
900
|
+
forward_only_keys: SequenceNotStr[str]
|
|
901
|
+
"""
|
|
902
|
+
The `forward_only_keys` field allows for granular control over which specific
|
|
903
|
+
parameters are forwarded from playlist files to media chunk files. By specifying
|
|
904
|
+
certain keys, only those parameters will be propagated, ensuring that only
|
|
905
|
+
relevant information is passed along. This is particularly useful for security
|
|
906
|
+
and performance optimization, as it prevents unnecessary or sensitive data from
|
|
907
|
+
being included in requests for media chunks.
|
|
908
|
+
"""
|
|
909
|
+
|
|
890
910
|
|
|
891
911
|
class OptionsRedirectHTTPToHTTPS(TypedDict, total=False):
|
|
892
912
|
enabled: Required[bool]
|
|
@@ -887,6 +887,26 @@ class OptionsQueryStringForwarding(TypedDict, total=False):
|
|
|
887
887
|
of the streaming session.
|
|
888
888
|
"""
|
|
889
889
|
|
|
890
|
+
forward_except_keys: SequenceNotStr[str]
|
|
891
|
+
"""
|
|
892
|
+
The `forward_except_keys` field provides a mechanism to exclude specific
|
|
893
|
+
parameters from being forwarded from playlist files to media chunk files. By
|
|
894
|
+
listing certain keys in this field, you can ensure that these parameters are
|
|
895
|
+
omitted during the forwarding process. This is particularly useful for
|
|
896
|
+
preventing sensitive or irrelevant information from being included in requests
|
|
897
|
+
for media chunks, thereby enhancing security and optimizing performance.
|
|
898
|
+
"""
|
|
899
|
+
|
|
900
|
+
forward_only_keys: SequenceNotStr[str]
|
|
901
|
+
"""
|
|
902
|
+
The `forward_only_keys` field allows for granular control over which specific
|
|
903
|
+
parameters are forwarded from playlist files to media chunk files. By specifying
|
|
904
|
+
certain keys, only those parameters will be propagated, ensuring that only
|
|
905
|
+
relevant information is passed along. This is particularly useful for security
|
|
906
|
+
and performance optimization, as it prevents unnecessary or sensitive data from
|
|
907
|
+
being included in requests for media chunks.
|
|
908
|
+
"""
|
|
909
|
+
|
|
890
910
|
|
|
891
911
|
class OptionsRedirectHTTPToHTTPS(TypedDict, total=False):
|
|
892
912
|
enabled: Required[bool]
|
gcore/types/cdn/rule_template.py
CHANGED
|
@@ -809,6 +809,26 @@ class OptionsQueryStringForwarding(BaseModel):
|
|
|
809
809
|
of the streaming session.
|
|
810
810
|
"""
|
|
811
811
|
|
|
812
|
+
forward_except_keys: Optional[List[str]] = None
|
|
813
|
+
"""
|
|
814
|
+
The `forward_except_keys` field provides a mechanism to exclude specific
|
|
815
|
+
parameters from being forwarded from playlist files to media chunk files. By
|
|
816
|
+
listing certain keys in this field, you can ensure that these parameters are
|
|
817
|
+
omitted during the forwarding process. This is particularly useful for
|
|
818
|
+
preventing sensitive or irrelevant information from being included in requests
|
|
819
|
+
for media chunks, thereby enhancing security and optimizing performance.
|
|
820
|
+
"""
|
|
821
|
+
|
|
822
|
+
forward_only_keys: Optional[List[str]] = None
|
|
823
|
+
"""
|
|
824
|
+
The `forward_only_keys` field allows for granular control over which specific
|
|
825
|
+
parameters are forwarded from playlist files to media chunk files. By specifying
|
|
826
|
+
certain keys, only those parameters will be propagated, ensuring that only
|
|
827
|
+
relevant information is passed along. This is particularly useful for security
|
|
828
|
+
and performance optimization, as it prevents unnecessary or sensitive data from
|
|
829
|
+
being included in requests for media chunks.
|
|
830
|
+
"""
|
|
831
|
+
|
|
812
832
|
|
|
813
833
|
class OptionsRedirectHTTPToHTTPS(BaseModel):
|
|
814
834
|
enabled: bool
|
|
@@ -869,6 +869,26 @@ class OptionsQueryStringForwarding(TypedDict, total=False):
|
|
|
869
869
|
of the streaming session.
|
|
870
870
|
"""
|
|
871
871
|
|
|
872
|
+
forward_except_keys: SequenceNotStr[str]
|
|
873
|
+
"""
|
|
874
|
+
The `forward_except_keys` field provides a mechanism to exclude specific
|
|
875
|
+
parameters from being forwarded from playlist files to media chunk files. By
|
|
876
|
+
listing certain keys in this field, you can ensure that these parameters are
|
|
877
|
+
omitted during the forwarding process. This is particularly useful for
|
|
878
|
+
preventing sensitive or irrelevant information from being included in requests
|
|
879
|
+
for media chunks, thereby enhancing security and optimizing performance.
|
|
880
|
+
"""
|
|
881
|
+
|
|
882
|
+
forward_only_keys: SequenceNotStr[str]
|
|
883
|
+
"""
|
|
884
|
+
The `forward_only_keys` field allows for granular control over which specific
|
|
885
|
+
parameters are forwarded from playlist files to media chunk files. By specifying
|
|
886
|
+
certain keys, only those parameters will be propagated, ensuring that only
|
|
887
|
+
relevant information is passed along. This is particularly useful for security
|
|
888
|
+
and performance optimization, as it prevents unnecessary or sensitive data from
|
|
889
|
+
being included in requests for media chunks.
|
|
890
|
+
"""
|
|
891
|
+
|
|
872
892
|
|
|
873
893
|
class OptionsRedirectHTTPToHTTPS(TypedDict, total=False):
|
|
874
894
|
enabled: Required[bool]
|
|
@@ -869,6 +869,26 @@ class OptionsQueryStringForwarding(TypedDict, total=False):
|
|
|
869
869
|
of the streaming session.
|
|
870
870
|
"""
|
|
871
871
|
|
|
872
|
+
forward_except_keys: SequenceNotStr[str]
|
|
873
|
+
"""
|
|
874
|
+
The `forward_except_keys` field provides a mechanism to exclude specific
|
|
875
|
+
parameters from being forwarded from playlist files to media chunk files. By
|
|
876
|
+
listing certain keys in this field, you can ensure that these parameters are
|
|
877
|
+
omitted during the forwarding process. This is particularly useful for
|
|
878
|
+
preventing sensitive or irrelevant information from being included in requests
|
|
879
|
+
for media chunks, thereby enhancing security and optimizing performance.
|
|
880
|
+
"""
|
|
881
|
+
|
|
882
|
+
forward_only_keys: SequenceNotStr[str]
|
|
883
|
+
"""
|
|
884
|
+
The `forward_only_keys` field allows for granular control over which specific
|
|
885
|
+
parameters are forwarded from playlist files to media chunk files. By specifying
|
|
886
|
+
certain keys, only those parameters will be propagated, ensuring that only
|
|
887
|
+
relevant information is passed along. This is particularly useful for security
|
|
888
|
+
and performance optimization, as it prevents unnecessary or sensitive data from
|
|
889
|
+
being included in requests for media chunks.
|
|
890
|
+
"""
|
|
891
|
+
|
|
872
892
|
|
|
873
893
|
class OptionsRedirectHTTPToHTTPS(TypedDict, total=False):
|
|
874
894
|
enabled: Required[bool]
|
|
@@ -869,6 +869,26 @@ class OptionsQueryStringForwarding(TypedDict, total=False):
|
|
|
869
869
|
of the streaming session.
|
|
870
870
|
"""
|
|
871
871
|
|
|
872
|
+
forward_except_keys: SequenceNotStr[str]
|
|
873
|
+
"""
|
|
874
|
+
The `forward_except_keys` field provides a mechanism to exclude specific
|
|
875
|
+
parameters from being forwarded from playlist files to media chunk files. By
|
|
876
|
+
listing certain keys in this field, you can ensure that these parameters are
|
|
877
|
+
omitted during the forwarding process. This is particularly useful for
|
|
878
|
+
preventing sensitive or irrelevant information from being included in requests
|
|
879
|
+
for media chunks, thereby enhancing security and optimizing performance.
|
|
880
|
+
"""
|
|
881
|
+
|
|
882
|
+
forward_only_keys: SequenceNotStr[str]
|
|
883
|
+
"""
|
|
884
|
+
The `forward_only_keys` field allows for granular control over which specific
|
|
885
|
+
parameters are forwarded from playlist files to media chunk files. By specifying
|
|
886
|
+
certain keys, only those parameters will be propagated, ensuring that only
|
|
887
|
+
relevant information is passed along. This is particularly useful for security
|
|
888
|
+
and performance optimization, as it prevents unnecessary or sensitive data from
|
|
889
|
+
being included in requests for media chunks.
|
|
890
|
+
"""
|
|
891
|
+
|
|
872
892
|
|
|
873
893
|
class OptionsRedirectHTTPToHTTPS(TypedDict, total=False):
|
|
874
894
|
enabled: Required[bool]
|
gcore/types/cloud/__init__.py
CHANGED
|
@@ -160,6 +160,7 @@ from .load_balancer_operating_status import LoadBalancerOperatingStatus as LoadB
|
|
|
160
160
|
from .billing_reservation_list_params import BillingReservationListParams as BillingReservationListParams
|
|
161
161
|
from .cost_report_get_detailed_params import CostReportGetDetailedParams as CostReportGetDetailedParams
|
|
162
162
|
from .reserved_fixed_ip_create_params import ReservedFixedIPCreateParams as ReservedFixedIPCreateParams
|
|
163
|
+
from .reserved_fixed_ip_update_params import ReservedFixedIPUpdateParams as ReservedFixedIPUpdateParams
|
|
163
164
|
from .volume_attach_to_instance_params import VolumeAttachToInstanceParams as VolumeAttachToInstanceParams
|
|
164
165
|
from .cost_report_get_aggregated_params import CostReportGetAggregatedParams as CostReportGetAggregatedParams
|
|
165
166
|
from .gpu_baremetal_cluster_list_params import GPUBaremetalClusterListParams as GPUBaremetalClusterListParams
|
|
@@ -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
|
|
@@ -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"""
|