Skip to content

Commit b745f43

Browse files
feat(api): aggregated API specs update
1 parent 2c2fa17 commit b745f43

5 files changed

Lines changed: 12 additions & 12 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 633
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-415b3e1ff98241ebe58f65df0e6ee1381f07ced3d6e9af8bbf9ff8ba25ad655d.yml
3-
openapi_spec_hash: cbcb8f94fedaa853d6fa4763016ce6e0
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/gcore%2Fgcore-8f63354e3e247d4c5010b1c3a26dde23083f7f750c7f4906ec4417e42696b8b3.yml
3+
openapi_spec_hash: ff1ed42b10de1567fa35e3c5260bf431
44
config_hash: c71c5fd84e30d315500ae54ec3a83b71

src/gcore/resources/cloud/load_balancers/l7_policies/rules.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def create(
9191
9292
invert: When true the logic of the rule is inverted.
9393
94-
key: The key to use for the comparison.
94+
key: The key to use for the comparison. Required for COOKIE and HEADER `type` only.
9595
9696
tags: A list of simple strings assigned to the l7 rule
9797
@@ -319,7 +319,7 @@ def replace(
319319
320320
invert: When true the logic of the rule is inverted.
321321
322-
key: The key to use for the comparison.
322+
key: The key to use for the comparison. Required for COOKIE and HEADER `type` only.
323323
324324
tags: A list of simple strings assigned to the l7 rule
325325
@@ -598,7 +598,7 @@ async def create(
598598
599599
invert: When true the logic of the rule is inverted.
600600
601-
key: The key to use for the comparison.
601+
key: The key to use for the comparison. Required for COOKIE and HEADER `type` only.
602602
603603
tags: A list of simple strings assigned to the l7 rule
604604
@@ -826,7 +826,7 @@ async def replace(
826826
827827
invert: When true the logic of the rule is inverted.
828828
829-
key: The key to use for the comparison.
829+
key: The key to use for the comparison. Required for COOKIE and HEADER `type` only.
830830
831831
tags: A list of simple strings assigned to the l7 rule
832832

src/gcore/types/cloud/load_balancers/l7_policies/rule_create_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class RuleCreateParams(TypedDict, total=False):
4040
"""When true the logic of the rule is inverted."""
4141

4242
key: str
43-
"""The key to use for the comparison."""
43+
"""The key to use for the comparison. Required for COOKIE and HEADER `type` only."""
4444

4545
tags: SequenceNotStr[str]
4646
"""A list of simple strings assigned to the l7 rule"""

src/gcore/types/cloud/load_balancers/l7_policies/rule_replace_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class RuleReplaceParams(TypedDict, total=False):
2626
"""When true the logic of the rule is inverted."""
2727

2828
key: str
29-
"""The key to use for the comparison."""
29+
"""The key to use for the comparison. Required for COOKIE and HEADER `type` only."""
3030

3131
tags: SequenceNotStr[str]
3232
"""A list of simple strings assigned to the l7 rule"""

tests/api_resources/cloud/load_balancers/l7_policies/test_rules.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def test_method_create_with_all_params(self, client: Gcore) -> None:
3939
type="PATH",
4040
value="/images*",
4141
invert=True,
42-
key="the name of the cookie to evaluate.",
42+
key="the name of the cookie or header to evaluate.",
4343
tags=["test_tag_1", "test_tag_2"],
4444
)
4545
assert_matches_type(TaskIDList, rule, path=["response"])
@@ -272,7 +272,7 @@ def test_method_replace_with_all_params(self, client: Gcore) -> None:
272272
l7policy_id="023f2e34-7806-443b-bfae-16c324569a3d",
273273
compare_type="REGEX",
274274
invert=True,
275-
key="the name of the cookie to evaluate.",
275+
key="the name of the cookie or header to evaluate.",
276276
tags=["test_tag_1", "test_tag_2"],
277277
type="PATH",
278278
value="/images*",
@@ -359,7 +359,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncGcore) ->
359359
type="PATH",
360360
value="/images*",
361361
invert=True,
362-
key="the name of the cookie to evaluate.",
362+
key="the name of the cookie or header to evaluate.",
363363
tags=["test_tag_1", "test_tag_2"],
364364
)
365365
assert_matches_type(TaskIDList, rule, path=["response"])
@@ -592,7 +592,7 @@ async def test_method_replace_with_all_params(self, async_client: AsyncGcore) ->
592592
l7policy_id="023f2e34-7806-443b-bfae-16c324569a3d",
593593
compare_type="REGEX",
594594
invert=True,
595-
key="the name of the cookie to evaluate.",
595+
key="the name of the cookie or header to evaluate.",
596596
tags=["test_tag_1", "test_tag_2"],
597597
type="PATH",
598598
value="/images*",

0 commit comments

Comments
 (0)