Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 7, 2024
1 parent a1ed70a commit d9857ff
Show file tree
Hide file tree
Showing 18 changed files with 191 additions and 167 deletions.
13 changes: 7 additions & 6 deletions api.md
Original file line number Diff line number Diff line change
Expand Up @@ -5083,19 +5083,20 @@ Types:

```python
from cloudflare.types.zero_trust.access import (
AllowedHeadersh,
AllowedIdpsh,
AllowedMethodsh,
AllowedOriginsh,
AllowedHeaders,
AllowedHTTPMethods,
AllowedIdPs,
AllowedMethods,
AllowedOrigins,
AppID,
Application,
CORSHeaders,
CustomPagesh,
CustomPages,
SaaSAppNameFormat,
SaaSAppNameIDFormat,
SaaSAppSource,
SAMLSaaSApp,
SelfHostedDomainsh,
SelfHostedDomains,
ApplicationDeleteResponse,
ApplicationRevokeTokensResponse,
)
Expand Down

Large diffs are not rendered by default.

14 changes: 8 additions & 6 deletions src/cloudflare/types/zero_trust/access/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,16 @@
from .application import Application as Application
from .certificate import Certificate as Certificate
from .custom_page import CustomPage as CustomPage
from .allowed_idps import AllowedIdPs as AllowedIdPs
from .app_id_param import AppIDParam as AppIDParam
from .cors_headers import CORSHeaders as CORSHeaders
from .allowed_idpsh import AllowedIdpsh as AllowedIdpsh
from .custom_pagesh import CustomPagesh as CustomPagesh
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 .allowed_headersh import AllowedHeadersh as AllowedHeadersh
from .allowed_methodsh import AllowedMethodsh as AllowedMethodsh
from .allowed_originsh import AllowedOriginsh as AllowedOriginsh
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 @@ -29,10 +29,11 @@
from .key_rotate_response import KeyRotateResponse as KeyRotateResponse
from .key_update_response import KeyUpdateResponse as KeyUpdateResponse
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 .self_hosted_domainsh import SelfHostedDomainsh as SelfHostedDomainsh
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 @@ -46,6 +47,7 @@
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
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.


__all__ = ["AllowedHeadersh"]
__all__ = ["AllowedHeaders"]

AllowedHeadersh = str
AllowedHeaders = str
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import List

from .allowed_methods import AllowedMethods

__all__ = ["AllowedHTTPMethods"]

AllowedHTTPMethods = List[AllowedMethods]
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__ = ["AllowedMethods"]

AllowedMethods = Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]

AllowedHTTPMethodsParam = List[AllowedMethods]
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.


__all__ = ["AllowedIdpsh"]
__all__ = ["AllowedIdPs"]

AllowedIdpsh = str
AllowedIdPs = str
7 changes: 7 additions & 0 deletions src/cloudflare/types/zero_trust/access/allowed_methods.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__ = ["AllowedMethods"]

AllowedMethods = Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"]
7 changes: 0 additions & 7 deletions src/cloudflare/types/zero_trust/access/allowed_methodsh.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.


__all__ = ["AllowedOriginsh"]
__all__ = ["AllowedOrigins"]

AllowedOriginsh = str
AllowedOrigins = str
34 changes: 17 additions & 17 deletions src/cloudflare/types/zero_trust/access/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
from typing_extensions import Literal

from ...._models import BaseModel
from .allowed_idps import AllowedIdPs
from .cors_headers import CORSHeaders
from .allowed_idpsh import AllowedIdpsh
from .custom_pagesh import CustomPagesh
from .custom_pages import CustomPages
from .saml_saas_app import SAMLSaaSApp
from .self_hosted_domainsh import SelfHostedDomainsh
from .self_hosted_domains import SelfHostedDomains

__all__ = [
"Application",
Expand Down Expand Up @@ -50,7 +50,7 @@ class SelfHostedApplication(BaseModel):
authentication.
"""

allowed_idps: Optional[List[AllowedIdpsh]] = None
allowed_idps: Optional[List[AllowedIdPs]] = None
"""The identity providers your users can select when connecting to this
application.
Expand Down Expand Up @@ -92,7 +92,7 @@ class SelfHostedApplication(BaseModel):
application when failing non-identity rules.
"""

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

enable_binding_cookie: Optional[bool] = None
Expand Down Expand Up @@ -131,7 +131,7 @@ class SelfHostedApplication(BaseModel):
attacks.
"""

self_hosted_domains: Optional[List[SelfHostedDomainsh]] = None
self_hosted_domains: Optional[List[SelfHostedDomains]] = None
"""List of domains that Access will secure."""

service_auth_401_redirect: Optional[bool] = None
Expand Down Expand Up @@ -225,7 +225,7 @@ class SaaSApplication(BaseModel):
id: Optional[str] = None
"""UUID"""

allowed_idps: Optional[List[AllowedIdpsh]] = None
allowed_idps: Optional[List[AllowedIdPs]] = None
"""The identity providers your users can select when connecting to this
application.
Expand All @@ -247,7 +247,7 @@ class SaaSApplication(BaseModel):

created_at: Optional[datetime] = None

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

logo_url: Optional[str] = None
Expand Down Expand Up @@ -292,7 +292,7 @@ class BrowserSSHApplication(BaseModel):
authentication.
"""

allowed_idps: Optional[List[AllowedIdpsh]] = None
allowed_idps: Optional[List[AllowedIdPs]] = None
"""The identity providers your users can select when connecting to this
application.
Expand Down Expand Up @@ -334,7 +334,7 @@ class BrowserSSHApplication(BaseModel):
application when failing non-identity rules.
"""

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

enable_binding_cookie: Optional[bool] = None
Expand Down Expand Up @@ -373,7 +373,7 @@ class BrowserSSHApplication(BaseModel):
attacks.
"""

self_hosted_domains: Optional[List[SelfHostedDomainsh]] = None
self_hosted_domains: Optional[List[SelfHostedDomains]] = None
"""List of domains that Access will secure."""

service_auth_401_redirect: Optional[bool] = None
Expand Down Expand Up @@ -420,7 +420,7 @@ class BrowserVncApplication(BaseModel):
authentication.
"""

allowed_idps: Optional[List[AllowedIdpsh]] = None
allowed_idps: Optional[List[AllowedIdPs]] = None
"""The identity providers your users can select when connecting to this
application.
Expand Down Expand Up @@ -462,7 +462,7 @@ class BrowserVncApplication(BaseModel):
application when failing non-identity rules.
"""

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

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

self_hosted_domains: Optional[List[SelfHostedDomainsh]] = None
self_hosted_domains: Optional[List[SelfHostedDomains]] = None
"""List of domains that Access will secure."""

service_auth_401_redirect: Optional[bool] = None
Expand Down Expand Up @@ -533,7 +533,7 @@ class AppLauncherApplication(BaseModel):
id: Optional[str] = None
"""UUID"""

allowed_idps: Optional[List[AllowedIdpsh]] = None
allowed_idps: Optional[List[AllowedIdPs]] = None
"""The identity providers your users can select when connecting to this
application.
Expand Down Expand Up @@ -579,7 +579,7 @@ class DeviceEnrollmentPermissionsApplication(BaseModel):
id: Optional[str] = None
"""UUID"""

allowed_idps: Optional[List[AllowedIdpsh]] = None
allowed_idps: Optional[List[AllowedIdPs]] = None
"""The identity providers your users can select when connecting to this
application.
Expand Down Expand Up @@ -625,7 +625,7 @@ class BrowserIsolationPermissionsApplication(BaseModel):
id: Optional[str] = None
"""UUID"""

allowed_idps: Optional[List[AllowedIdpsh]] = None
allowed_idps: Optional[List[AllowedIdPs]] = None
"""The identity providers your users can select when connecting to this
application.
Expand Down
Loading

0 comments on commit d9857ff

Please sign in to comment.