From c0f7159e0e37f0bcaf0d514df29b18d45c4b8034 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 23 Apr 2024 02:32:34 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#354) --- api.md | 10 ++-- .../access/applications/applications.py | 50 +++++++++---------- .../types/zero_trust/access/__init__.py | 16 +++--- .../types/zero_trust/access/application.py | 32 ++++++------ .../access/application_create_params.py | 32 ++++++------ .../access/application_update_params.py | 32 ++++++------ .../types/zero_trust/access/cors_headers.py | 4 +- .../zero_trust/access/cors_headers_param.py | 4 +- .../zero_trust/access/saas_app_name_format.py | 4 +- .../access/saas_app_name_id_format.py | 4 +- .../zero_trust/access/saas_app_source.py | 4 +- .../access/saas_app_source_param.py | 4 +- .../types/zero_trust/access/saml_saas_app.py | 16 +++--- .../zero_trust/access/saml_saas_app_param.py | 16 +++--- 14 files changed, 114 insertions(+), 114 deletions(-) diff --git a/api.md b/api.md index d7e50a129f5..3d64fc75b2f 100644 --- a/api.md +++ b/api.md @@ -5090,12 +5090,12 @@ from cloudflare.types.zero_trust.access import ( AllowedOriginsh, AppID, Application, - CorsHeaders, + CORSHeaders, CustomPagesh, - SaasAppNameFormat, - SaasAppNameIDFormat, - SaasAppSource, - SAMLSaasApp, + SaaSAppNameFormat, + SaaSAppNameIDFormat, + SaaSAppSource, + SAMLSaaSApp, SelfHostedDomainsh, ApplicationDeleteResponse, ApplicationRevokeTokensResponse, diff --git a/src/cloudflare/resources/zero_trust/access/applications/applications.py b/src/cloudflare/resources/zero_trust/access/applications/applications.py index aced0c376b3..e77e5ca2551 100644 --- a/src/cloudflare/resources/zero_trust/access/applications/applications.py +++ b/src/cloudflare/resources/zero_trust/access/applications/applications.py @@ -55,7 +55,7 @@ Application, AllowedIdpsh, CustomPagesh, - CorsHeadersParam, + CORSHeadersParam, SelfHostedDomainsh, ApplicationDeleteResponse, application_create_params, @@ -98,7 +98,7 @@ def create( allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN, + cors_headers: CORSHeadersParam | NotGiven = NOT_GIVEN, custom_deny_message: str | NotGiven = NOT_GIVEN, custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, @@ -213,7 +213,7 @@ def create( custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, - saas_app: application_create_params.SaaSApplicationSaasApp | NotGiven = NOT_GIVEN, + saas_app: application_create_params.SaaSApplicationSaaSApp | NotGiven = NOT_GIVEN, tags: List[str] | NotGiven = NOT_GIVEN, type: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -272,7 +272,7 @@ def create( allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN, + cors_headers: CORSHeadersParam | NotGiven = NOT_GIVEN, custom_deny_message: str | NotGiven = NOT_GIVEN, custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, @@ -387,7 +387,7 @@ def create( allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN, + cors_headers: CORSHeadersParam | NotGiven = NOT_GIVEN, custom_deny_message: str | NotGiven = NOT_GIVEN, custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, @@ -694,7 +694,7 @@ def create( allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN, + cors_headers: CORSHeadersParam | NotGiven = NOT_GIVEN, custom_deny_message: str | NotGiven = NOT_GIVEN, custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, @@ -711,7 +711,7 @@ def create( session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, tags: List[str] | NotGiven = NOT_GIVEN, - saas_app: application_create_params.SaaSApplicationSaasApp | NotGiven = NOT_GIVEN, + saas_app: application_create_params.SaaSApplicationSaaSApp | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -790,7 +790,7 @@ def update( allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN, + cors_headers: CORSHeadersParam | NotGiven = NOT_GIVEN, custom_deny_message: str | NotGiven = NOT_GIVEN, custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, @@ -908,7 +908,7 @@ def update( custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, - saas_app: application_update_params.SaaSApplicationSaasApp | NotGiven = NOT_GIVEN, + saas_app: application_update_params.SaaSApplicationSaaSApp | NotGiven = NOT_GIVEN, tags: List[str] | NotGiven = NOT_GIVEN, type: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -970,7 +970,7 @@ def update( allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN, + cors_headers: CORSHeadersParam | NotGiven = NOT_GIVEN, custom_deny_message: str | NotGiven = NOT_GIVEN, custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, @@ -1088,7 +1088,7 @@ def update( allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN, + cors_headers: CORSHeadersParam | NotGiven = NOT_GIVEN, custom_deny_message: str | NotGiven = NOT_GIVEN, custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, @@ -1410,7 +1410,7 @@ def update( allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN, + cors_headers: CORSHeadersParam | NotGiven = NOT_GIVEN, custom_deny_message: str | NotGiven = NOT_GIVEN, custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, @@ -1427,7 +1427,7 @@ def update( session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, tags: List[str] | NotGiven = NOT_GIVEN, - saas_app: application_update_params.SaaSApplicationSaasApp | NotGiven = NOT_GIVEN, + saas_app: application_update_params.SaaSApplicationSaaSApp | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -1746,7 +1746,7 @@ async def create( allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN, + cors_headers: CORSHeadersParam | NotGiven = NOT_GIVEN, custom_deny_message: str | NotGiven = NOT_GIVEN, custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, @@ -1861,7 +1861,7 @@ async def create( custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, - saas_app: application_create_params.SaaSApplicationSaasApp | NotGiven = NOT_GIVEN, + saas_app: application_create_params.SaaSApplicationSaaSApp | NotGiven = NOT_GIVEN, tags: List[str] | NotGiven = NOT_GIVEN, type: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -1920,7 +1920,7 @@ async def create( allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN, + cors_headers: CORSHeadersParam | NotGiven = NOT_GIVEN, custom_deny_message: str | NotGiven = NOT_GIVEN, custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, @@ -2035,7 +2035,7 @@ async def create( allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN, + cors_headers: CORSHeadersParam | NotGiven = NOT_GIVEN, custom_deny_message: str | NotGiven = NOT_GIVEN, custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, @@ -2342,7 +2342,7 @@ async def create( allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN, + cors_headers: CORSHeadersParam | NotGiven = NOT_GIVEN, custom_deny_message: str | NotGiven = NOT_GIVEN, custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, @@ -2359,7 +2359,7 @@ async def create( session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, tags: List[str] | NotGiven = NOT_GIVEN, - saas_app: application_create_params.SaaSApplicationSaasApp | NotGiven = NOT_GIVEN, + saas_app: application_create_params.SaaSApplicationSaaSApp | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -2438,7 +2438,7 @@ async def update( allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN, + cors_headers: CORSHeadersParam | NotGiven = NOT_GIVEN, custom_deny_message: str | NotGiven = NOT_GIVEN, custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, @@ -2556,7 +2556,7 @@ async def update( custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, - saas_app: application_update_params.SaaSApplicationSaasApp | NotGiven = NOT_GIVEN, + saas_app: application_update_params.SaaSApplicationSaaSApp | NotGiven = NOT_GIVEN, tags: List[str] | NotGiven = NOT_GIVEN, type: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -2618,7 +2618,7 @@ async def update( allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN, + cors_headers: CORSHeadersParam | NotGiven = NOT_GIVEN, custom_deny_message: str | NotGiven = NOT_GIVEN, custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, @@ -2736,7 +2736,7 @@ async def update( allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN, + cors_headers: CORSHeadersParam | NotGiven = NOT_GIVEN, custom_deny_message: str | NotGiven = NOT_GIVEN, custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, @@ -3058,7 +3058,7 @@ async def update( allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - cors_headers: CorsHeadersParam | NotGiven = NOT_GIVEN, + cors_headers: CORSHeadersParam | NotGiven = NOT_GIVEN, custom_deny_message: str | NotGiven = NOT_GIVEN, custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, @@ -3075,7 +3075,7 @@ async def update( session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, tags: List[str] | NotGiven = NOT_GIVEN, - saas_app: application_update_params.SaaSApplicationSaasApp | NotGiven = NOT_GIVEN, + saas_app: application_update_params.SaaSApplicationSaaSApp | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, diff --git a/src/cloudflare/types/zero_trust/access/__init__.py b/src/cloudflare/types/zero_trust/access/__init__.py index 8aa8ea34237..bdbafbcc60b 100644 --- a/src/cloudflare/types/zero_trust/access/__init__.py +++ b/src/cloudflare/types/zero_trust/access/__init__.py @@ -9,12 +9,12 @@ from .certificate import Certificate as Certificate from .custom_page import CustomPage as CustomPage from .app_id_param import AppIDParam as AppIDParam -from .cors_headers import CorsHeaders as CorsHeaders +from .cors_headers import CORSHeaders as CORSHeaders from .allowed_idpsh import AllowedIdpsh as AllowedIdpsh from .custom_pagesh import CustomPagesh as CustomPagesh -from .saml_saas_app import SAMLSaasApp as SAMLSaasApp +from .saml_saas_app import SAMLSaaSApp as SAMLSaaSApp from .service_token import ServiceToken as ServiceToken -from .saas_app_source import SaasAppSource as SaasAppSource +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 @@ -23,22 +23,22 @@ from .key_update_params import KeyUpdateParams as KeyUpdateParams from .tag_create_params import TagCreateParams as TagCreateParams from .tag_update_params import TagUpdateParams as TagUpdateParams -from .cors_headers_param import CorsHeadersParam as CorsHeadersParam +from .cors_headers_param import CORSHeadersParam as CORSHeadersParam from .group_create_params import GroupCreateParams as GroupCreateParams from .group_update_params import GroupUpdateParams as GroupUpdateParams 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 .saml_saas_app_param import SAMLSaaSAppParam as SAMLSaaSAppParam 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 .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 .saas_app_source_param import SaaSAppSourceParam as SaaSAppSourceParam from .bookmark_create_params import BookmarkCreateParams as BookmarkCreateParams from .bookmark_delete_params import BookmarkDeleteParams as BookmarkDeleteParams from .bookmark_update_params import BookmarkUpdateParams as BookmarkUpdateParams -from .saas_app_name_id_format import SaasAppNameIDFormat as SaasAppNameIDFormat +from .saas_app_name_id_format import SaaSAppNameIDFormat as SaaSAppNameIDFormat from .bookmark_delete_response import BookmarkDeleteResponse as BookmarkDeleteResponse from .custom_page_without_html import CustomPageWithoutHTML as CustomPageWithoutHTML from .application_create_params import ApplicationCreateParams as ApplicationCreateParams diff --git a/src/cloudflare/types/zero_trust/access/application.py b/src/cloudflare/types/zero_trust/access/application.py index 95515d14e80..cd1cae01256 100644 --- a/src/cloudflare/types/zero_trust/access/application.py +++ b/src/cloudflare/types/zero_trust/access/application.py @@ -5,20 +5,20 @@ from typing_extensions import Literal from ...._models import BaseModel -from .cors_headers import CorsHeaders +from .cors_headers import CORSHeaders from .allowed_idpsh import AllowedIdpsh from .custom_pagesh import CustomPagesh -from .saml_saas_app import SAMLSaasApp +from .saml_saas_app import SAMLSaaSApp from .self_hosted_domainsh import SelfHostedDomainsh __all__ = [ "Application", "SelfHostedApplication", "SaaSApplication", - "SaaSApplicationSaasApp", - "SaaSApplicationSaasAppAccessOIDCSaasApp", - "SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims", - "SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource", + "SaaSApplicationSaaSApp", + "SaaSApplicationSaaSAppAccessOIDCSaaSApp", + "SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaims", + "SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSource", "BrowserSSHApplication", "BrowserVncApplication", "AppLauncherApplication", @@ -70,7 +70,7 @@ class SelfHostedApplication(BaseModel): You must specify only one identity provider in allowed_idps. """ - cors_headers: Optional[CorsHeaders] = None + cors_headers: Optional[CORSHeaders] = None created_at: Optional[datetime] = None @@ -156,12 +156,12 @@ class SelfHostedApplication(BaseModel): updated_at: Optional[datetime] = None -class SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource(BaseModel): +class SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSource(BaseModel): name: Optional[str] = None """The name of the IdP claim.""" -class SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims(BaseModel): +class SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaims(BaseModel): name: Optional[str] = None """The name of the claim.""" @@ -174,10 +174,10 @@ class SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims(BaseModel): scope: Optional[Literal["groups", "profile", "email", "openid"]] = None """The scope of the claim.""" - source: Optional[SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource] = None + source: Optional[SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSource] = None -class SaaSApplicationSaasAppAccessOIDCSaasApp(BaseModel): +class SaaSApplicationSaaSAppAccessOIDCSaaSApp(BaseModel): app_launcher_url: Optional[str] = None """The URL where this applications tile redirects users""" @@ -195,7 +195,7 @@ class SaaSApplicationSaasAppAccessOIDCSaasApp(BaseModel): created_at: Optional[datetime] = None - custom_claims: Optional[SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims] = None + custom_claims: Optional[SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaims] = None grant_types: Optional[List[Literal["authorization_code", "authorization_code_with_pkce"]]] = None """The OIDC flows supported by this application""" @@ -218,7 +218,7 @@ class SaaSApplicationSaasAppAccessOIDCSaasApp(BaseModel): updated_at: Optional[datetime] = None -SaaSApplicationSaasApp = Union[SAMLSaasApp, SaaSApplicationSaasAppAccessOIDCSaasApp] +SaaSApplicationSaaSApp = Union[SAMLSaaSApp, SaaSApplicationSaaSAppAccessOIDCSaaSApp] class SaaSApplication(BaseModel): @@ -256,7 +256,7 @@ class SaaSApplication(BaseModel): name: Optional[str] = None """The name of the application.""" - saas_app: Optional[SaaSApplicationSaasApp] = None + saas_app: Optional[SaaSApplicationSaaSApp] = None tags: Optional[List[str]] = None """The tags you want assigned to an application. @@ -312,7 +312,7 @@ class BrowserSSHApplication(BaseModel): You must specify only one identity provider in allowed_idps. """ - cors_headers: Optional[CorsHeaders] = None + cors_headers: Optional[CORSHeaders] = None created_at: Optional[datetime] = None @@ -440,7 +440,7 @@ class BrowserVncApplication(BaseModel): You must specify only one identity provider in allowed_idps. """ - cors_headers: Optional[CorsHeaders] = None + cors_headers: Optional[CORSHeaders] = None created_at: Optional[datetime] = None diff --git a/src/cloudflare/types/zero_trust/access/application_create_params.py b/src/cloudflare/types/zero_trust/access/application_create_params.py index 7bd4a2d4e5a..0197e6e388d 100644 --- a/src/cloudflare/types/zero_trust/access/application_create_params.py +++ b/src/cloudflare/types/zero_trust/access/application_create_params.py @@ -7,18 +7,18 @@ from .allowed_idpsh import AllowedIdpsh from .custom_pagesh import CustomPagesh -from .cors_headers_param import CorsHeadersParam -from .saml_saas_app_param import SAMLSaasAppParam +from .cors_headers_param import CORSHeadersParam +from .saml_saas_app_param import SAMLSaaSAppParam from .self_hosted_domainsh import SelfHostedDomainsh __all__ = [ "ApplicationCreateParams", "SelfHostedApplication", "SaaSApplication", - "SaaSApplicationSaasApp", - "SaaSApplicationSaasAppAccessOIDCSaasApp", - "SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims", - "SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource", + "SaaSApplicationSaaSApp", + "SaaSApplicationSaaSAppAccessOIDCSaaSApp", + "SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaims", + "SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSource", "BrowserSSHApplication", "BrowserVncApplication", "AppLauncherApplication", @@ -70,7 +70,7 @@ class SelfHostedApplication(TypedDict, total=False): You must specify only one identity provider in allowed_idps. """ - cors_headers: CorsHeadersParam + cors_headers: CORSHeadersParam custom_deny_message: str """ @@ -185,7 +185,7 @@ class SaaSApplication(TypedDict, total=False): name: str """The name of the application.""" - saas_app: SaaSApplicationSaasApp + saas_app: SaaSApplicationSaaSApp tags: List[str] """The tags you want assigned to an application. @@ -197,12 +197,12 @@ class SaaSApplication(TypedDict, total=False): """The application type.""" -class SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource(TypedDict, total=False): +class SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSource(TypedDict, total=False): name: str """The name of the IdP claim.""" -class SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims(TypedDict, total=False): +class SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaims(TypedDict, total=False): name: str """The name of the claim.""" @@ -215,10 +215,10 @@ class SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims(TypedDict, total=False scope: Literal["groups", "profile", "email", "openid"] """The scope of the claim.""" - source: SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource + source: SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSource -class SaaSApplicationSaasAppAccessOIDCSaasApp(TypedDict, total=False): +class SaaSApplicationSaaSAppAccessOIDCSaaSApp(TypedDict, total=False): app_launcher_url: str """The URL where this applications tile redirects users""" @@ -234,7 +234,7 @@ class SaaSApplicationSaasAppAccessOIDCSaasApp(TypedDict, total=False): client_secret: str """The application client secret, only returned on POST request.""" - custom_claims: SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims + custom_claims: SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaims grant_types: List[Literal["authorization_code", "authorization_code_with_pkce"]] """The OIDC flows supported by this application""" @@ -255,7 +255,7 @@ class SaaSApplicationSaasAppAccessOIDCSaasApp(TypedDict, total=False): """Define the user information shared with access""" -SaaSApplicationSaasApp = Union[SAMLSaasAppParam, SaaSApplicationSaasAppAccessOIDCSaasApp] +SaaSApplicationSaaSApp = Union[SAMLSaaSAppParam, SaaSApplicationSaaSAppAccessOIDCSaaSApp] class BrowserSSHApplication(TypedDict, total=False): @@ -300,7 +300,7 @@ class BrowserSSHApplication(TypedDict, total=False): You must specify only one identity provider in allowed_idps. """ - cors_headers: CorsHeadersParam + cors_headers: CORSHeadersParam custom_deny_message: str """ @@ -424,7 +424,7 @@ class BrowserVncApplication(TypedDict, total=False): You must specify only one identity provider in allowed_idps. """ - cors_headers: CorsHeadersParam + cors_headers: CORSHeadersParam custom_deny_message: str """ diff --git a/src/cloudflare/types/zero_trust/access/application_update_params.py b/src/cloudflare/types/zero_trust/access/application_update_params.py index 62e51159e6b..06535294710 100644 --- a/src/cloudflare/types/zero_trust/access/application_update_params.py +++ b/src/cloudflare/types/zero_trust/access/application_update_params.py @@ -7,18 +7,18 @@ from .allowed_idpsh import AllowedIdpsh from .custom_pagesh import CustomPagesh -from .cors_headers_param import CorsHeadersParam -from .saml_saas_app_param import SAMLSaasAppParam +from .cors_headers_param import CORSHeadersParam +from .saml_saas_app_param import SAMLSaaSAppParam from .self_hosted_domainsh import SelfHostedDomainsh __all__ = [ "ApplicationUpdateParams", "SelfHostedApplication", "SaaSApplication", - "SaaSApplicationSaasApp", - "SaaSApplicationSaasAppAccessOIDCSaasApp", - "SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims", - "SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource", + "SaaSApplicationSaaSApp", + "SaaSApplicationSaaSAppAccessOIDCSaaSApp", + "SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaims", + "SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSource", "BrowserSSHApplication", "BrowserVncApplication", "AppLauncherApplication", @@ -70,7 +70,7 @@ class SelfHostedApplication(TypedDict, total=False): You must specify only one identity provider in allowed_idps. """ - cors_headers: CorsHeadersParam + cors_headers: CORSHeadersParam custom_deny_message: str """ @@ -185,7 +185,7 @@ class SaaSApplication(TypedDict, total=False): name: str """The name of the application.""" - saas_app: SaaSApplicationSaasApp + saas_app: SaaSApplicationSaaSApp tags: List[str] """The tags you want assigned to an application. @@ -197,12 +197,12 @@ class SaaSApplication(TypedDict, total=False): """The application type.""" -class SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource(TypedDict, total=False): +class SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSource(TypedDict, total=False): name: str """The name of the IdP claim.""" -class SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims(TypedDict, total=False): +class SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaims(TypedDict, total=False): name: str """The name of the claim.""" @@ -215,10 +215,10 @@ class SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims(TypedDict, total=False scope: Literal["groups", "profile", "email", "openid"] """The scope of the claim.""" - source: SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaimsSource + source: SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaimsSource -class SaaSApplicationSaasAppAccessOIDCSaasApp(TypedDict, total=False): +class SaaSApplicationSaaSAppAccessOIDCSaaSApp(TypedDict, total=False): app_launcher_url: str """The URL where this applications tile redirects users""" @@ -234,7 +234,7 @@ class SaaSApplicationSaasAppAccessOIDCSaasApp(TypedDict, total=False): client_secret: str """The application client secret, only returned on POST request.""" - custom_claims: SaaSApplicationSaasAppAccessOIDCSaasAppCustomClaims + custom_claims: SaaSApplicationSaaSAppAccessOIDCSaaSAppCustomClaims grant_types: List[Literal["authorization_code", "authorization_code_with_pkce"]] """The OIDC flows supported by this application""" @@ -255,7 +255,7 @@ class SaaSApplicationSaasAppAccessOIDCSaasApp(TypedDict, total=False): """Define the user information shared with access""" -SaaSApplicationSaasApp = Union[SAMLSaasAppParam, SaaSApplicationSaasAppAccessOIDCSaasApp] +SaaSApplicationSaaSApp = Union[SAMLSaaSAppParam, SaaSApplicationSaaSAppAccessOIDCSaaSApp] class BrowserSSHApplication(TypedDict, total=False): @@ -300,7 +300,7 @@ class BrowserSSHApplication(TypedDict, total=False): You must specify only one identity provider in allowed_idps. """ - cors_headers: CorsHeadersParam + cors_headers: CORSHeadersParam custom_deny_message: str """ @@ -424,7 +424,7 @@ class BrowserVncApplication(TypedDict, total=False): You must specify only one identity provider in allowed_idps. """ - cors_headers: CorsHeadersParam + cors_headers: CORSHeadersParam custom_deny_message: str """ diff --git a/src/cloudflare/types/zero_trust/access/cors_headers.py b/src/cloudflare/types/zero_trust/access/cors_headers.py index 5d6fb107ec0..dd0d1dee6d6 100644 --- a/src/cloudflare/types/zero_trust/access/cors_headers.py +++ b/src/cloudflare/types/zero_trust/access/cors_headers.py @@ -7,10 +7,10 @@ from .allowed_methodsh import AllowedMethodsh from .allowed_originsh import AllowedOriginsh -__all__ = ["CorsHeaders"] +__all__ = ["CORSHeaders"] -class CorsHeaders(BaseModel): +class CORSHeaders(BaseModel): allow_all_headers: Optional[bool] = None """Allows all HTTP request headers.""" diff --git a/src/cloudflare/types/zero_trust/access/cors_headers_param.py b/src/cloudflare/types/zero_trust/access/cors_headers_param.py index e2125acc5ef..9a78d765436 100644 --- a/src/cloudflare/types/zero_trust/access/cors_headers_param.py +++ b/src/cloudflare/types/zero_trust/access/cors_headers_param.py @@ -9,10 +9,10 @@ from .allowed_methodsh import AllowedMethodsh from .allowed_originsh import AllowedOriginsh -__all__ = ["CorsHeadersParam"] +__all__ = ["CORSHeadersParam"] -class CorsHeadersParam(TypedDict, total=False): +class CORSHeadersParam(TypedDict, total=False): allow_all_headers: bool """Allows all HTTP request headers.""" diff --git a/src/cloudflare/types/zero_trust/access/saas_app_name_format.py b/src/cloudflare/types/zero_trust/access/saas_app_name_format.py index e8197aad4ec..07f7e79cfae 100644 --- a/src/cloudflare/types/zero_trust/access/saas_app_name_format.py +++ b/src/cloudflare/types/zero_trust/access/saas_app_name_format.py @@ -2,9 +2,9 @@ from typing_extensions import Literal -__all__ = ["SaasAppNameFormat"] +__all__ = ["SaaSAppNameFormat"] -SaasAppNameFormat = Literal[ +SaaSAppNameFormat = Literal[ "urn:oasis:names:tc:SAML:2.0:attrname-format:unspecified", "urn:oasis:names:tc:SAML:2.0:attrname-format:basic", "urn:oasis:names:tc:SAML:2.0:attrname-format:uri", diff --git a/src/cloudflare/types/zero_trust/access/saas_app_name_id_format.py b/src/cloudflare/types/zero_trust/access/saas_app_name_id_format.py index e2ae5e89b24..15af2a15b16 100644 --- a/src/cloudflare/types/zero_trust/access/saas_app_name_id_format.py +++ b/src/cloudflare/types/zero_trust/access/saas_app_name_id_format.py @@ -2,6 +2,6 @@ from typing_extensions import Literal -__all__ = ["SaasAppNameIDFormat"] +__all__ = ["SaaSAppNameIDFormat"] -SaasAppNameIDFormat = Literal["id", "email"] +SaaSAppNameIDFormat = Literal["id", "email"] diff --git a/src/cloudflare/types/zero_trust/access/saas_app_source.py b/src/cloudflare/types/zero_trust/access/saas_app_source.py index 25d44eff2f2..5a4e157c195 100644 --- a/src/cloudflare/types/zero_trust/access/saas_app_source.py +++ b/src/cloudflare/types/zero_trust/access/saas_app_source.py @@ -4,10 +4,10 @@ from ...._models import BaseModel -__all__ = ["SaasAppSource"] +__all__ = ["SaaSAppSource"] -class SaasAppSource(BaseModel): +class SaaSAppSource(BaseModel): name: Optional[str] = None """The name of the IdP attribute.""" diff --git a/src/cloudflare/types/zero_trust/access/saas_app_source_param.py b/src/cloudflare/types/zero_trust/access/saas_app_source_param.py index a6982144712..12b4abc2d05 100644 --- a/src/cloudflare/types/zero_trust/access/saas_app_source_param.py +++ b/src/cloudflare/types/zero_trust/access/saas_app_source_param.py @@ -5,10 +5,10 @@ from typing import Dict from typing_extensions import TypedDict -__all__ = ["SaasAppSourceParam"] +__all__ = ["SaaSAppSourceParam"] -class SaasAppSourceParam(TypedDict, total=False): +class SaaSAppSourceParam(TypedDict, total=False): name: str """The name of the IdP attribute.""" diff --git a/src/cloudflare/types/zero_trust/access/saml_saas_app.py b/src/cloudflare/types/zero_trust/access/saml_saas_app.py index d2414862cc6..495e76604aa 100644 --- a/src/cloudflare/types/zero_trust/access/saml_saas_app.py +++ b/src/cloudflare/types/zero_trust/access/saml_saas_app.py @@ -5,11 +5,11 @@ from typing_extensions import Literal from ...._models import BaseModel -from .saas_app_source import SaasAppSource -from .saas_app_name_format import SaasAppNameFormat -from .saas_app_name_id_format import SaasAppNameIDFormat +from .saas_app_source import SaaSAppSource +from .saas_app_name_format import SaaSAppNameFormat +from .saas_app_name_id_format import SaaSAppNameIDFormat -__all__ = ["SAMLSaasApp", "CustomAttributes"] +__all__ = ["SAMLSaaSApp", "CustomAttributes"] class CustomAttributes(BaseModel): @@ -19,16 +19,16 @@ class CustomAttributes(BaseModel): name: Optional[str] = None """The name of the attribute.""" - name_format: Optional[SaasAppNameFormat] = None + name_format: Optional[SaaSAppNameFormat] = None """A globally unique name for an identity or service provider.""" required: Optional[bool] = None """If the attribute is required when building a SAML assertion.""" - source: Optional[SaasAppSource] = None + source: Optional[SaaSAppSource] = None -class SAMLSaasApp(BaseModel): +class SAMLSaaSApp(BaseModel): auth_type: Optional[Literal["saml", "oidc"]] = None """Optional identifier indicating the authentication protocol used for the saas app. @@ -55,7 +55,7 @@ class SAMLSaasApp(BaseModel): idp_entity_id: Optional[str] = None """The unique identifier for your SaaS application.""" - name_id_format: Optional[SaasAppNameIDFormat] = None + name_id_format: Optional[SaaSAppNameIDFormat] = None """The format of the name identifier sent to the SaaS application.""" name_id_transform_jsonata: Optional[str] = None diff --git a/src/cloudflare/types/zero_trust/access/saml_saas_app_param.py b/src/cloudflare/types/zero_trust/access/saml_saas_app_param.py index f0a4dff5547..8eace9c0634 100644 --- a/src/cloudflare/types/zero_trust/access/saml_saas_app_param.py +++ b/src/cloudflare/types/zero_trust/access/saml_saas_app_param.py @@ -4,11 +4,11 @@ from typing_extensions import Literal, TypedDict -from .saas_app_name_format import SaasAppNameFormat -from .saas_app_source_param import SaasAppSourceParam -from .saas_app_name_id_format import SaasAppNameIDFormat +from .saas_app_name_format import SaaSAppNameFormat +from .saas_app_source_param import SaaSAppSourceParam +from .saas_app_name_id_format import SaaSAppNameIDFormat -__all__ = ["SAMLSaasAppParam", "CustomAttributes"] +__all__ = ["SAMLSaaSAppParam", "CustomAttributes"] class CustomAttributes(TypedDict, total=False): @@ -18,16 +18,16 @@ class CustomAttributes(TypedDict, total=False): name: str """The name of the attribute.""" - name_format: SaasAppNameFormat + name_format: SaaSAppNameFormat """A globally unique name for an identity or service provider.""" required: bool """If the attribute is required when building a SAML assertion.""" - source: SaasAppSourceParam + source: SaaSAppSourceParam -class SAMLSaasAppParam(TypedDict, total=False): +class SAMLSaaSAppParam(TypedDict, total=False): auth_type: Literal["saml", "oidc"] """Optional identifier indicating the authentication protocol used for the saas app. @@ -52,7 +52,7 @@ class SAMLSaasAppParam(TypedDict, total=False): idp_entity_id: str """The unique identifier for your SaaS application.""" - name_id_format: SaasAppNameIDFormat + name_id_format: SaaSAppNameIDFormat """The format of the name identifier sent to the SaaS application.""" name_id_transform_jsonata: str