Skip to content

feat(api): update via SDK Studio #475

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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