Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/cloudflare/types/pagerules/target.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import Optional
from typing_extensions import Literal

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


class Target(BaseModel):
constraint: Constraint
constraint: Optional[Constraint] = None
"""String constraint."""

target: Literal["url"]
target: Optional[Literal["url"]] = None
"""A target based on the URL of the request."""
4 changes: 2 additions & 2 deletions src/cloudflare/types/pagerules/target_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ class Constraint(TypedDict, total=False):


class TargetParam(TypedDict, total=False):
constraint: Required[Constraint]
constraint: Constraint
"""String constraint."""

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