Skip to content

Commit 7065932

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): manual updates (#2226)
1 parent c04d762 commit 7065932

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/cloudflare/types/pagerules/target.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3+
from typing import Optional
34
from typing_extensions import Literal
45

56
from ..._models import BaseModel
@@ -21,8 +22,8 @@ class Constraint(BaseModel):
2122

2223

2324
class Target(BaseModel):
24-
constraint: Constraint
25+
constraint: Optional[Constraint] = None
2526
"""String constraint."""
2627

27-
target: Literal["url"]
28+
target: Optional[Literal["url"]] = None
2829
"""A target based on the URL of the request."""

src/cloudflare/types/pagerules/target_param.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ class Constraint(TypedDict, total=False):
2121

2222

2323
class TargetParam(TypedDict, total=False):
24-
constraint: Required[Constraint]
24+
constraint: Constraint
2525
"""String constraint."""
2626

27-
target: Required[Literal["url"]]
27+
target: Literal["url"]
2828
"""A target based on the URL of the request."""

0 commit comments

Comments
 (0)