Skip to content
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

feat(api): update via SDK Studio #474

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
3 changes: 1 addition & 2 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5084,14 +5084,13 @@ Types:
```python
from cloudflare.types.zero_trust.access import (
AllowedHeaders,
AllowedHTTPMethods,
AllowedIdPs,
AllowedMethods,
AllowedOrigins,
AppID,
Application,
ApplicationType,
CORSHeaders,
CustomPages,
SaaSAppNameFormat,
SaaSAppNameIDFormat,
SaaSAppSource,
Expand Down

Large diffs are not rendered by default.

5 changes: 2 additions & 3 deletions src/cloudflare/types/zero_trust/access/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@
from .allowed_idps import AllowedIdPs as AllowedIdPs
from .app_id_param import AppIDParam as AppIDParam
from .cors_headers import CORSHeaders as CORSHeaders
from .custom_pages import CustomPages as CustomPages
from .saml_saas_app import SAMLSaaSApp as SAMLSaaSApp
from .service_token import ServiceToken as ServiceToken
from .allowed_headers import AllowedHeaders as AllowedHeaders
from .allowed_methods import AllowedMethods as AllowedMethods
from .allowed_origins import AllowedOrigins as AllowedOrigins
from .saas_app_source import SaaSAppSource as SaaSAppSource
from .application_type import ApplicationType as ApplicationType
from .key_get_response import KeyGetResponse as KeyGetResponse
from .zero_trust_group import ZeroTrustGroup as ZeroTrustGroup
from .key_update_params import KeyUpdateParams as KeyUpdateParams
Expand All @@ -31,9 +31,9 @@
from .saml_saas_app_param import SAMLSaaSAppParam as SAMLSaaSAppParam
from .self_hosted_domains import SelfHostedDomains as SelfHostedDomains
from .tag_delete_response import TagDeleteResponse as TagDeleteResponse
from .allowed_http_methods import AllowedHTTPMethods as AllowedHTTPMethods
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 All @@ -47,7 +47,6 @@
from .certificate_update_params import CertificateUpdateParams as CertificateUpdateParams
from .custom_page_create_params import CustomPageCreateParams as CustomPageCreateParams
from .custom_page_update_params import CustomPageUpdateParams as CustomPageUpdateParams
from .allowed_http_methods_param import AllowedHTTPMethodsParam as AllowedHTTPMethodsParam
from .application_delete_response import ApplicationDeleteResponse as ApplicationDeleteResponse
from .certificate_delete_response import CertificateDeleteResponse as CertificateDeleteResponse
from .custom_page_delete_response import CustomPageDeleteResponse as CustomPageDeleteResponse
Expand Down

This file was deleted.

This file was deleted.

3 changes: 2 additions & 1 deletion src/cloudflare/types/zero_trust/access/allowed_methods.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# 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 = Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]
AllowedMethods = List[Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]]
12 changes: 12 additions & 0 deletions src/cloudflare/types/zero_trust/access/allowed_methods_param.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# 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"]]
16 changes: 8 additions & 8 deletions src/cloudflare/types/zero_trust/access/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
from ...._models import BaseModel
from .allowed_idps import AllowedIdPs
from .cors_headers import CORSHeaders
from .custom_pages import CustomPages
from .saml_saas_app import SAMLSaaSApp
from .application_type import ApplicationType
from .self_hosted_domains import SelfHostedDomains

__all__ = [
Expand Down Expand Up @@ -92,7 +92,7 @@ class SelfHostedApplication(BaseModel):
application when failing non-identity rules.
"""

custom_pages: Optional[List[CustomPages]] = None
custom_pages: Optional[List[str]] = None
"""The custom pages that will be displayed when applicable for this application"""

enable_binding_cookie: Optional[bool] = None
Expand Down Expand Up @@ -247,7 +247,7 @@ class SaaSApplication(BaseModel):

created_at: Optional[datetime] = None

custom_pages: Optional[List[CustomPages]] = None
custom_pages: Optional[List[str]] = None
"""The custom pages that will be displayed when applicable for this application"""

logo_url: Optional[str] = None
Expand Down Expand Up @@ -334,7 +334,7 @@ class BrowserSSHApplication(BaseModel):
application when failing non-identity rules.
"""

custom_pages: Optional[List[CustomPages]] = None
custom_pages: Optional[List[str]] = None
"""The custom pages that will be displayed when applicable for this application"""

enable_binding_cookie: Optional[bool] = None
Expand Down Expand Up @@ -462,7 +462,7 @@ class BrowserVncApplication(BaseModel):
application when failing non-identity rules.
"""

custom_pages: Optional[List[CustomPages]] = None
custom_pages: Optional[List[str]] = None
"""The custom pages that will be displayed when applicable for this application"""

enable_binding_cookie: Optional[bool] = None
Expand Down Expand Up @@ -527,7 +527,7 @@ class BrowserVncApplication(BaseModel):


class AppLauncherApplication(BaseModel):
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]
type: ApplicationType
"""The application type."""

id: Optional[str] = None
Expand Down Expand Up @@ -573,7 +573,7 @@ class AppLauncherApplication(BaseModel):


class DeviceEnrollmentPermissionsApplication(BaseModel):
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]
type: ApplicationType
"""The application type."""

id: Optional[str] = None
Expand Down Expand Up @@ -619,7 +619,7 @@ class DeviceEnrollmentPermissionsApplication(BaseModel):


class BrowserIsolationPermissionsApplication(BaseModel):
type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]
type: ApplicationType
"""The application type."""

id: Optional[str] = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from typing_extensions import Literal, Required, TypedDict

from .allowed_idps import AllowedIdPs
from .custom_pages import CustomPages
from .application_type import ApplicationType
from .cors_headers_param import CORSHeadersParam
from .saml_saas_app_param import SAMLSaaSAppParam
from .self_hosted_domains import SelfHostedDomains
Expand Down Expand Up @@ -90,7 +90,7 @@ class SelfHostedApplication(TypedDict, total=False):
application when failing non-identity rules.
"""

custom_pages: List[CustomPages]
custom_pages: List[str]
"""The custom pages that will be displayed when applicable for this application"""

enable_binding_cookie: bool
Expand Down Expand Up @@ -176,7 +176,7 @@ class SaaSApplication(TypedDict, total=False):
You must specify only one identity provider in allowed_idps.
"""

custom_pages: List[CustomPages]
custom_pages: List[str]
"""The custom pages that will be displayed when applicable for this application"""

logo_url: str
Expand Down Expand Up @@ -320,7 +320,7 @@ class BrowserSSHApplication(TypedDict, total=False):
application when failing non-identity rules.
"""

custom_pages: List[CustomPages]
custom_pages: List[str]
"""The custom pages that will be displayed when applicable for this application"""

enable_binding_cookie: bool
Expand Down Expand Up @@ -444,7 +444,7 @@ class BrowserVncApplication(TypedDict, total=False):
application when failing non-identity rules.
"""

custom_pages: List[CustomPages]
custom_pages: List[str]
"""The custom pages that will be displayed when applicable for this application"""

enable_binding_cookie: bool
Expand Down Expand Up @@ -507,7 +507,7 @@ class BrowserVncApplication(TypedDict, total=False):


class AppLauncherApplication(TypedDict, total=False):
type: Required[Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]]
type: Required[ApplicationType]
"""The application type."""

account_id: str
Expand Down Expand Up @@ -539,7 +539,7 @@ class AppLauncherApplication(TypedDict, total=False):


class DeviceEnrollmentPermissionsApplication(TypedDict, total=False):
type: Required[Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]]
type: Required[ApplicationType]
"""The application type."""

account_id: str
Expand Down Expand Up @@ -571,7 +571,7 @@ class DeviceEnrollmentPermissionsApplication(TypedDict, total=False):


class BrowserIsolationPermissionsApplication(TypedDict, total=False):
type: Required[Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]]
type: Required[ApplicationType]
"""The application type."""

account_id: str
Expand Down
7 changes: 7 additions & 0 deletions src/cloudflare/types/zero_trust/access/application_type.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing_extensions import Literal

__all__ = ["ApplicationType"]

ApplicationType = Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from typing_extensions import Literal, Required, TypedDict

from .allowed_idps import AllowedIdPs
from .custom_pages import CustomPages
from .application_type import ApplicationType
from .cors_headers_param import CORSHeadersParam
from .saml_saas_app_param import SAMLSaaSAppParam
from .self_hosted_domains import SelfHostedDomains
Expand Down Expand Up @@ -90,7 +90,7 @@ class SelfHostedApplication(TypedDict, total=False):
application when failing non-identity rules.
"""

custom_pages: List[CustomPages]
custom_pages: List[str]
"""The custom pages that will be displayed when applicable for this application"""

enable_binding_cookie: bool
Expand Down Expand Up @@ -176,7 +176,7 @@ class SaaSApplication(TypedDict, total=False):
You must specify only one identity provider in allowed_idps.
"""

custom_pages: List[CustomPages]
custom_pages: List[str]
"""The custom pages that will be displayed when applicable for this application"""

logo_url: str
Expand Down Expand Up @@ -320,7 +320,7 @@ class BrowserSSHApplication(TypedDict, total=False):
application when failing non-identity rules.
"""

custom_pages: List[CustomPages]
custom_pages: List[str]
"""The custom pages that will be displayed when applicable for this application"""

enable_binding_cookie: bool
Expand Down Expand Up @@ -444,7 +444,7 @@ class BrowserVncApplication(TypedDict, total=False):
application when failing non-identity rules.
"""

custom_pages: List[CustomPages]
custom_pages: List[str]
"""The custom pages that will be displayed when applicable for this application"""

enable_binding_cookie: bool
Expand Down Expand Up @@ -507,7 +507,7 @@ class BrowserVncApplication(TypedDict, total=False):


class AppLauncherApplication(TypedDict, total=False):
type: Required[Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]]
type: Required[ApplicationType]
"""The application type."""

account_id: str
Expand Down Expand Up @@ -539,7 +539,7 @@ class AppLauncherApplication(TypedDict, total=False):


class DeviceEnrollmentPermissionsApplication(TypedDict, total=False):
type: Required[Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]]
type: Required[ApplicationType]
"""The application type."""

account_id: str
Expand Down Expand Up @@ -571,7 +571,7 @@ class DeviceEnrollmentPermissionsApplication(TypedDict, total=False):


class BrowserIsolationPermissionsApplication(TypedDict, total=False):
type: Required[Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"]]
type: Required[ApplicationType]
"""The application type."""

account_id: str
Expand Down
4 changes: 2 additions & 2 deletions src/cloudflare/types/zero_trust/access/cors_headers.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

from ...._models import BaseModel
from .allowed_headers import AllowedHeaders
from .allowed_methods import AllowedMethods
from .allowed_origins import AllowedOrigins
from .allowed_http_methods import AllowedHTTPMethods

__all__ = ["CORSHeaders"]

Expand All @@ -29,7 +29,7 @@ class CORSHeaders(BaseModel):
allowed_headers: Optional[List[AllowedHeaders]] = None
"""Allowed HTTP request headers."""

allowed_methods: Optional[AllowedHTTPMethods] = None
allowed_methods: Optional[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 @@ -7,7 +7,7 @@

from .allowed_headers import AllowedHeaders
from .allowed_origins import AllowedOrigins
from .allowed_http_methods_param import AllowedHTTPMethodsParam
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: AllowedHTTPMethodsParam
allowed_methods: AllowedMethodsParam
"""Allowed HTTP request methods."""

allowed_origins: List[AllowedOrigins]
Expand Down
6 changes: 0 additions & 6 deletions src/cloudflare/types/zero_trust/access/custom_pages.py

This file was deleted.