Skip to content

Commit 52fc220

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#475)
1 parent dbf1fc7 commit 52fc220

File tree

5 files changed

+4
-18
lines changed

5 files changed

+4
-18
lines changed

src/cloudflare/types/zero_trust/access/__init__.py

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
from .tag_delete_response import TagDeleteResponse as TagDeleteResponse
3434
from .associated_hostnames import AssociatedHostnames as AssociatedHostnames
3535
from .saas_app_name_format import SaaSAppNameFormat as SaaSAppNameFormat
36-
from .allowed_methods_param import AllowedMethodsParam as AllowedMethodsParam
3736
from .group_delete_response import GroupDeleteResponse as GroupDeleteResponse
3837
from .saas_app_source_param import SaaSAppSourceParam as SaaSAppSourceParam
3938
from .bookmark_create_params import BookmarkCreateParams as BookmarkCreateParams
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

3-
from typing import List
43
from typing_extensions import Literal
54

65
__all__ = ["AllowedMethods"]
76

8-
AllowedMethods = List[Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]]
7+
AllowedMethods = Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]

src/cloudflare/types/zero_trust/access/allowed_methods_param.py

-12
This file was deleted.

src/cloudflare/types/zero_trust/access/cors_headers.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class CORSHeaders(BaseModel):
2929
allowed_headers: Optional[List[AllowedHeaders]] = None
3030
"""Allowed HTTP request headers."""
3131

32-
allowed_methods: Optional[AllowedMethods] = None
32+
allowed_methods: Optional[List[AllowedMethods]] = None
3333
"""Allowed HTTP request methods."""
3434

3535
allowed_origins: Optional[List[AllowedOrigins]] = None

src/cloudflare/types/zero_trust/access/cors_headers_param.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@
66
from typing_extensions import TypedDict
77

88
from .allowed_headers import AllowedHeaders
9+
from .allowed_methods import AllowedMethods
910
from .allowed_origins import AllowedOrigins
10-
from .allowed_methods_param import AllowedMethodsParam
1111

1212
__all__ = ["CORSHeadersParam"]
1313

@@ -31,7 +31,7 @@ class CORSHeadersParam(TypedDict, total=False):
3131
allowed_headers: List[AllowedHeaders]
3232
"""Allowed HTTP request headers."""
3333

34-
allowed_methods: AllowedMethodsParam
34+
allowed_methods: List[AllowedMethods]
3535
"""Allowed HTTP request methods."""
3636

3737
allowed_origins: List[AllowedOrigins]

0 commit comments

Comments
 (0)