Skip to content

Commit 0a2f63b

Browse files
feat(api): aggregated API specs update
1 parent 933eaab commit 0a2f63b

20 files changed

+302
-16
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 612
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-d59e09eb6882032973e42339edbc5170a0d695dcb127e28e29109f1a1f088afd.yml
3-
openapi_spec_hash: 8768c88e22bbe1d3042539be56ea8469
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-751a4484d0fe654e54b278167d65ece7cc03a254ded11d7910878acc1c54d13f.yml
3+
openapi_spec_hash: b70c3cc1433a3ff2665b95afd8a4df81
44
config_hash: 11eb703eee66609eba76695b18f8cb4a

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ Methods:
344344
- <code title="post /cloud/v1/subnets/{project_id}/{region_id}">client.cloud.networks.subnets.<a href="./src/gcore/resources/cloud/networks/subnets.py">create</a>(\*, project_id, region_id, \*\*<a href="src/gcore/types/cloud/networks/subnet_create_params.py">params</a>) -> <a href="./src/gcore/types/cloud/task_id_list.py">TaskIDList</a></code>
345345
- <code title="patch /cloud/v1/subnets/{project_id}/{region_id}/{subnet_id}">client.cloud.networks.subnets.<a href="./src/gcore/resources/cloud/networks/subnets.py">update</a>(subnet_id, \*, project_id, region_id, \*\*<a href="src/gcore/types/cloud/networks/subnet_update_params.py">params</a>) -> <a href="./src/gcore/types/cloud/subnet.py">Subnet</a></code>
346346
- <code title="get /cloud/v1/subnets/{project_id}/{region_id}">client.cloud.networks.subnets.<a href="./src/gcore/resources/cloud/networks/subnets.py">list</a>(\*, project_id, region_id, \*\*<a href="src/gcore/types/cloud/networks/subnet_list_params.py">params</a>) -> <a href="./src/gcore/types/cloud/subnet.py">SyncOffsetPage[Subnet]</a></code>
347-
- <code title="delete /cloud/v1/subnets/{project_id}/{region_id}/{subnet_id}">client.cloud.networks.subnets.<a href="./src/gcore/resources/cloud/networks/subnets.py">delete</a>(subnet_id, \*, project_id, region_id) -> None</code>
347+
- <code title="delete /cloud/v1/subnets/{project_id}/{region_id}/{subnet_id}">client.cloud.networks.subnets.<a href="./src/gcore/resources/cloud/networks/subnets.py">delete</a>(subnet_id, \*, project_id, region_id) -> <a href="./src/gcore/types/cloud/task_id_list.py">TaskIDList</a></code>
348348
- <code title="get /cloud/v1/subnets/{project_id}/{region_id}/{subnet_id}">client.cloud.networks.subnets.<a href="./src/gcore/resources/cloud/networks/subnets.py">get</a>(subnet_id, \*, project_id, region_id) -> <a href="./src/gcore/types/cloud/subnet.py">Subnet</a></code>
349349

350350
### Routers

src/gcore/resources/cloud/networks/subnets.py

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
import httpx
99

10-
from ...._types import NOT_GIVEN, Body, Omit, Query, Headers, NoneType, NotGiven, SequenceNotStr, omit, not_given
10+
from ...._types import NOT_GIVEN, Body, Omit, Query, Headers, NotGiven, SequenceNotStr, omit, not_given
1111
from ...._utils import maybe_transform, async_maybe_transform
1212
from ...._compat import cached_property
1313
from ...._resource import SyncAPIResource, AsyncAPIResource
@@ -413,7 +413,7 @@ def delete(
413413
extra_query: Query | None = None,
414414
extra_body: Body | None = None,
415415
timeout: float | httpx.Timeout | None | NotGiven = not_given,
416-
) -> None:
416+
) -> TaskIDList:
417417
"""
418418
Delete subnet
419419
@@ -438,15 +438,14 @@ def delete(
438438
region_id = self._client._get_cloud_region_id_path_param()
439439
if not subnet_id:
440440
raise ValueError(f"Expected a non-empty value for `subnet_id` but received {subnet_id!r}")
441-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
442441
return self._delete(
443442
f"/cloud/v1/subnets/{project_id}/{region_id}/{subnet_id}"
444443
if self._client._base_url_overridden
445444
else f"https://api.gcore.com//cloud/v1/subnets/{project_id}/{region_id}/{subnet_id}",
446445
options=make_request_options(
447446
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
448447
),
449-
cast_to=NoneType,
448+
cast_to=TaskIDList,
450449
)
451450

452451
def get(
@@ -881,7 +880,7 @@ async def delete(
881880
extra_query: Query | None = None,
882881
extra_body: Body | None = None,
883882
timeout: float | httpx.Timeout | None | NotGiven = not_given,
884-
) -> None:
883+
) -> TaskIDList:
885884
"""
886885
Delete subnet
887886
@@ -906,15 +905,14 @@ async def delete(
906905
region_id = self._client._get_cloud_region_id_path_param()
907906
if not subnet_id:
908907
raise ValueError(f"Expected a non-empty value for `subnet_id` but received {subnet_id!r}")
909-
extra_headers = {"Accept": "*/*", **(extra_headers or {})}
910908
return await self._delete(
911909
f"/cloud/v1/subnets/{project_id}/{region_id}/{subnet_id}"
912910
if self._client._base_url_overridden
913911
else f"https://api.gcore.com//cloud/v1/subnets/{project_id}/{region_id}/{subnet_id}",
914912
options=make_request_options(
915913
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
916914
),
917-
cast_to=NoneType,
915+
cast_to=TaskIDList,
918916
)
919917

920918
async def get(

src/gcore/types/cdn/cdn_resource.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,26 @@ class OptionsQueryStringForwarding(BaseModel):
832832
of the streaming session.
833833
"""
834834

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+
835855

836856
class OptionsRedirectHTTPToHTTPS(BaseModel):
837857
enabled: bool

src/gcore/types/cdn/resource_create_params.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -955,6 +955,26 @@ class OptionsQueryStringForwarding(TypedDict, total=False):
955955
of the streaming session.
956956
"""
957957

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+
958978

959979
class OptionsRedirectHTTPToHTTPS(TypedDict, total=False):
960980
enabled: Required[bool]

src/gcore/types/cdn/resource_replace_params.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -933,6 +933,26 @@ class OptionsQueryStringForwarding(TypedDict, total=False):
933933
of the streaming session.
934934
"""
935935

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+
936956

937957
class OptionsRedirectHTTPToHTTPS(TypedDict, total=False):
938958
enabled: Required[bool]

src/gcore/types/cdn/resource_update_params.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -924,6 +924,26 @@ class OptionsQueryStringForwarding(TypedDict, total=False):
924924
of the streaming session.
925925
"""
926926

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+
927947

928948
class OptionsRedirectHTTPToHTTPS(TypedDict, total=False):
929949
enabled: Required[bool]

src/gcore/types/cdn/resources/cdn_resource_rule.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -809,6 +809,26 @@ class OptionsQueryStringForwarding(BaseModel):
809809
of the streaming session.
810810
"""
811811

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+
812832

813833
class OptionsRedirectHTTPToHTTPS(BaseModel):
814834
enabled: bool

src/gcore/types/cdn/resources/rule_create_params.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -885,6 +885,26 @@ class OptionsQueryStringForwarding(TypedDict, total=False):
885885
of the streaming session.
886886
"""
887887

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+
888908

889909
class OptionsRedirectHTTPToHTTPS(TypedDict, total=False):
890910
enabled: Required[bool]

src/gcore/types/cdn/resources/rule_replace_params.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,26 @@ class OptionsQueryStringForwarding(TypedDict, total=False):
887887
of the streaming session.
888888
"""
889889

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+
890910

891911
class OptionsRedirectHTTPToHTTPS(TypedDict, total=False):
892912
enabled: Required[bool]

0 commit comments

Comments
 (0)