From d893b1ad262cd5c38255bbf2d254c402036c08dc Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 7 May 2024 05:06:16 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#475) --- src/cloudflare/types/zero_trust/access/__init__.py | 1 - .../types/zero_trust/access/allowed_methods.py | 3 +-- .../types/zero_trust/access/allowed_methods_param.py | 12 ------------ .../types/zero_trust/access/cors_headers.py | 2 +- .../types/zero_trust/access/cors_headers_param.py | 4 ++-- 5 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 src/cloudflare/types/zero_trust/access/allowed_methods_param.py diff --git a/src/cloudflare/types/zero_trust/access/__init__.py b/src/cloudflare/types/zero_trust/access/__init__.py index dad5650905a2..eca299d4f711 100644 --- a/src/cloudflare/types/zero_trust/access/__init__.py +++ b/src/cloudflare/types/zero_trust/access/__init__.py @@ -33,7 +33,6 @@ from .tag_delete_response import TagDeleteResponse as TagDeleteResponse from .associated_hostnames import AssociatedHostnames as AssociatedHostnames from .saas_app_name_format import SaaSAppNameFormat as SaaSAppNameFormat -from .allowed_methods_param import AllowedMethodsParam as AllowedMethodsParam from .group_delete_response import GroupDeleteResponse as GroupDeleteResponse from .saas_app_source_param import SaaSAppSourceParam as SaaSAppSourceParam from .bookmark_create_params import BookmarkCreateParams as BookmarkCreateParams diff --git a/src/cloudflare/types/zero_trust/access/allowed_methods.py b/src/cloudflare/types/zero_trust/access/allowed_methods.py index c284eef8e648..c1c9e45b63b1 100644 --- a/src/cloudflare/types/zero_trust/access/allowed_methods.py +++ b/src/cloudflare/types/zero_trust/access/allowed_methods.py @@ -1,8 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import List from typing_extensions import Literal __all__ = ["AllowedMethods"] -AllowedMethods = List[Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]] +AllowedMethods = Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"] diff --git a/src/cloudflare/types/zero_trust/access/allowed_methods_param.py b/src/cloudflare/types/zero_trust/access/allowed_methods_param.py deleted file mode 100644 index 313038b6af77..000000000000 --- a/src/cloudflare/types/zero_trust/access/allowed_methods_param.py +++ /dev/null @@ -1,12 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import List -from typing_extensions import Literal - -__all__ = ["AllowedMethodsParamItem"] - -AllowedMethodsParamItem = Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"] - -AllowedMethodsParam = List[Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]] diff --git a/src/cloudflare/types/zero_trust/access/cors_headers.py b/src/cloudflare/types/zero_trust/access/cors_headers.py index 9ddee58fe636..36337dcbc647 100644 --- a/src/cloudflare/types/zero_trust/access/cors_headers.py +++ b/src/cloudflare/types/zero_trust/access/cors_headers.py @@ -29,7 +29,7 @@ class CORSHeaders(BaseModel): allowed_headers: Optional[List[AllowedHeaders]] = None """Allowed HTTP request headers.""" - allowed_methods: Optional[AllowedMethods] = None + allowed_methods: Optional[List[AllowedMethods]] = None """Allowed HTTP request methods.""" allowed_origins: Optional[List[AllowedOrigins]] = None diff --git a/src/cloudflare/types/zero_trust/access/cors_headers_param.py b/src/cloudflare/types/zero_trust/access/cors_headers_param.py index 583c165ce750..2ddd6c8de427 100644 --- a/src/cloudflare/types/zero_trust/access/cors_headers_param.py +++ b/src/cloudflare/types/zero_trust/access/cors_headers_param.py @@ -6,8 +6,8 @@ from typing_extensions import TypedDict from .allowed_headers import AllowedHeaders +from .allowed_methods import AllowedMethods from .allowed_origins import AllowedOrigins -from .allowed_methods_param import AllowedMethodsParam __all__ = ["CORSHeadersParam"] @@ -31,7 +31,7 @@ class CORSHeadersParam(TypedDict, total=False): allowed_headers: List[AllowedHeaders] """Allowed HTTP request headers.""" - allowed_methods: AllowedMethodsParam + allowed_methods: List[AllowedMethods] """Allowed HTTP request methods.""" allowed_origins: List[AllowedOrigins]