diff --git a/src/cloudflare/types/zero_trust/access/__init__.py b/src/cloudflare/types/zero_trust/access/__init__.py index dad5650905a..eca299d4f71 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 c284eef8e64..c1c9e45b63b 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 313038b6af7..00000000000 --- 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 9ddee58fe63..36337dcbc64 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 583c165ce75..2ddd6c8de42 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]