Skip to content

Commit b9690dc

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat: update via SDK Studio (#59)
1 parent 82292fd commit b9690dc

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

src/cloudflare/types/rulesets/rule_create_params.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing import Union
66
from typing_extensions import Required, TypedDict
77

8-
__all__ = ["RuleCreateParams", "Position", "PositionPosition"]
8+
__all__ = ["RuleCreateParams", "Position", "PositionBefore", "PositionAfter", "PositionIndex"]
99

1010

1111
class RuleCreateParams(TypedDict, total=False):
@@ -19,25 +19,25 @@ class RuleCreateParams(TypedDict, total=False):
1919
"""An object configuring where the rule will be placed."""
2020

2121

22-
class PositionPosition(TypedDict, total=False):
22+
class PositionBefore(TypedDict, total=False):
2323
before: str
2424
"""The ID of another rule to place the rule before.
2525
2626
An empty value causes the rule to be placed at the top.
2727
"""
2828

2929

30-
class PositionPosition(TypedDict, total=False):
30+
class PositionAfter(TypedDict, total=False):
3131
after: str
3232
"""The ID of another rule to place the rule after.
3333
3434
An empty value causes the rule to be placed at the bottom.
3535
"""
3636

3737

38-
class PositionPosition(TypedDict, total=False):
38+
class PositionIndex(TypedDict, total=False):
3939
index: float
4040
"""An index at which to place the rule, where index 1 is the first rule."""
4141

4242

43-
Position = Union[PositionPosition, PositionPosition, PositionPosition]
43+
Position = Union[PositionBefore, PositionAfter, PositionIndex]

src/cloudflare/types/rulesets/rule_edit_params.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from typing import Union
66
from typing_extensions import Required, TypedDict
77

8-
__all__ = ["RuleEditParams", "Position", "PositionPosition"]
8+
__all__ = ["RuleEditParams", "Position", "PositionBefore", "PositionAfter", "PositionIndex"]
99

1010

1111
class RuleEditParams(TypedDict, total=False):
@@ -19,25 +19,25 @@ class RuleEditParams(TypedDict, total=False):
1919
"""An object configuring where the rule will be placed."""
2020

2121

22-
class PositionPosition(TypedDict, total=False):
22+
class PositionBefore(TypedDict, total=False):
2323
before: str
2424
"""The ID of another rule to place the rule before.
2525
2626
An empty value causes the rule to be placed at the top.
2727
"""
2828

2929

30-
class PositionPosition(TypedDict, total=False):
30+
class PositionAfter(TypedDict, total=False):
3131
after: str
3232
"""The ID of another rule to place the rule after.
3333
3434
An empty value causes the rule to be placed at the bottom.
3535
"""
3636

3737

38-
class PositionPosition(TypedDict, total=False):
38+
class PositionIndex(TypedDict, total=False):
3939
index: float
4040
"""An index at which to place the rule, where index 1 is the first rule."""
4141

4242

43-
Position = Union[PositionPosition, PositionPosition, PositionPosition]
43+
Position = Union[PositionBefore, PositionAfter, PositionIndex]

0 commit comments

Comments
 (0)