Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#475)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored May 7, 2024
1 parent ca7eafc commit b27a1b9
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 18 deletions.
1 change: 0 additions & 1 deletion src/cloudflare/types/zero_trust/access/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 1 addition & 2 deletions src/cloudflare/types/zero_trust/access/allowed_methods.py
Original file line number Diff line number Diff line change
@@ -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"]
12 changes: 0 additions & 12 deletions src/cloudflare/types/zero_trust/access/allowed_methods_param.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/cloudflare/types/zero_trust/access/cors_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions src/cloudflare/types/zero_trust/access/cors_headers_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

Expand All @@ -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]
Expand Down

0 comments on commit b27a1b9

Please sign in to comment.