From b4e096e1052c191db4112c8b2f3a934532d3cdd0 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Thu, 28 Nov 2024 05:01:15 +0000 Subject: [PATCH] feat(api): manual updates --- src/cloudflare/types/pagerules/target.py | 5 +++-- src/cloudflare/types/pagerules/target_param.py | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/cloudflare/types/pagerules/target.py b/src/cloudflare/types/pagerules/target.py index f15c3acef68..497c176cb88 100644 --- a/src/cloudflare/types/pagerules/target.py +++ b/src/cloudflare/types/pagerules/target.py @@ -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 @@ -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.""" diff --git a/src/cloudflare/types/pagerules/target_param.py b/src/cloudflare/types/pagerules/target_param.py index 2977b64466f..9d6e179693e 100644 --- a/src/cloudflare/types/pagerules/target_param.py +++ b/src/cloudflare/types/pagerules/target_param.py @@ -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."""