Skip to content

Commit

Permalink
feat(api): manual updates (#2226)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored Nov 28, 2024
1 parent 0beecd1 commit 153a8fa
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
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."""

0 comments on commit 153a8fa

Please sign in to comment.