diff --git a/api.md b/api.md index ec5c8558fd2..06ee50ca89d 100644 --- a/api.md +++ b/api.md @@ -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, ) diff --git a/src/cloudflare/resources/zero_trust/access/applications/applications.py b/src/cloudflare/resources/zero_trust/access/applications/applications.py index 784827d16fd..7a78e2fe860 100644 --- a/src/cloudflare/resources/zero_trust/access/applications/applications.py +++ b/src/cloudflare/resources/zero_trust/access/applications/applications.py @@ -52,11 +52,11 @@ ) from .....types.zero_trust.access import application_create_params, application_update_params from .....types.zero_trust.access.application import Application +from .....types.zero_trust.access.allowed_idps import AllowedIdPs from .....types.zero_trust.access.app_id_param import AppIDParam -from .....types.zero_trust.access.allowed_idpsh import AllowedIdpsh -from .....types.zero_trust.access.custom_pagesh import CustomPagesh +from .....types.zero_trust.access.custom_pages import CustomPages from .....types.zero_trust.access.cors_headers_param import CORSHeadersParam -from .....types.zero_trust.access.self_hosted_domainsh import SelfHostedDomainsh +from .....types.zero_trust.access.self_hosted_domains import SelfHostedDomains from .....types.zero_trust.access.application_delete_response import ApplicationDeleteResponse __all__ = ["ApplicationsResource", "AsyncApplicationsResource"] @@ -92,14 +92,14 @@ def create( account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | 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, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -107,7 +107,7 @@ def create( options_preflight_bypass: bool | NotGiven = NOT_GIVEN, path_cookie_attribute: bool | NotGiven = NOT_GIVEN, same_site_cookie_attribute: str | NotGiven = NOT_GIVEN, - self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN, + self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN, service_auth_401_redirect: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, @@ -204,10 +204,10 @@ def create( *, account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, saas_app: application_create_params.SaaSApplicationSaaSApp | NotGiven = NOT_GIVEN, @@ -266,14 +266,14 @@ def create( account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | 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, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -281,7 +281,7 @@ def create( options_preflight_bypass: bool | NotGiven = NOT_GIVEN, path_cookie_attribute: bool | NotGiven = NOT_GIVEN, same_site_cookie_attribute: str | NotGiven = NOT_GIVEN, - self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN, + self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN, service_auth_401_redirect: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, @@ -381,14 +381,14 @@ def create( account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | 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, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -396,7 +396,7 @@ def create( options_preflight_bypass: bool | NotGiven = NOT_GIVEN, path_cookie_attribute: bool | NotGiven = NOT_GIVEN, same_site_cookie_attribute: str | NotGiven = NOT_GIVEN, - self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN, + self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN, service_auth_401_redirect: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, @@ -494,7 +494,7 @@ def create( type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"], account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -541,7 +541,7 @@ def create( type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"], account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -588,7 +588,7 @@ def create( type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"], account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -688,14 +688,14 @@ def create( account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | 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, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -703,7 +703,7 @@ def create( options_preflight_bypass: bool | NotGiven = NOT_GIVEN, path_cookie_attribute: bool | NotGiven = NOT_GIVEN, same_site_cookie_attribute: str | NotGiven = NOT_GIVEN, - self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN, + self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN, service_auth_401_redirect: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, @@ -784,14 +784,14 @@ def update( account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | 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, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -799,7 +799,7 @@ def update( options_preflight_bypass: bool | NotGiven = NOT_GIVEN, path_cookie_attribute: bool | NotGiven = NOT_GIVEN, same_site_cookie_attribute: str | NotGiven = NOT_GIVEN, - self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN, + self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN, service_auth_401_redirect: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, @@ -899,10 +899,10 @@ def update( *, account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, saas_app: application_update_params.SaaSApplicationSaaSApp | NotGiven = NOT_GIVEN, @@ -964,14 +964,14 @@ def update( account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | 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, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -979,7 +979,7 @@ def update( options_preflight_bypass: bool | NotGiven = NOT_GIVEN, path_cookie_attribute: bool | NotGiven = NOT_GIVEN, same_site_cookie_attribute: str | NotGiven = NOT_GIVEN, - self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN, + self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN, service_auth_401_redirect: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, @@ -1082,14 +1082,14 @@ def update( account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | 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, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -1097,7 +1097,7 @@ def update( options_preflight_bypass: bool | NotGiven = NOT_GIVEN, path_cookie_attribute: bool | NotGiven = NOT_GIVEN, same_site_cookie_attribute: str | NotGiven = NOT_GIVEN, - self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN, + self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN, service_auth_401_redirect: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, @@ -1198,7 +1198,7 @@ def update( type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"], account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -1248,7 +1248,7 @@ def update( type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"], account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -1298,7 +1298,7 @@ def update( type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"], account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -1404,14 +1404,14 @@ def update( account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | 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, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -1419,7 +1419,7 @@ def update( options_preflight_bypass: bool | NotGiven = NOT_GIVEN, path_cookie_attribute: bool | NotGiven = NOT_GIVEN, same_site_cookie_attribute: str | NotGiven = NOT_GIVEN, - self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN, + self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN, service_auth_401_redirect: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, @@ -1740,14 +1740,14 @@ async def create( account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | 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, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -1755,7 +1755,7 @@ async def create( options_preflight_bypass: bool | NotGiven = NOT_GIVEN, path_cookie_attribute: bool | NotGiven = NOT_GIVEN, same_site_cookie_attribute: str | NotGiven = NOT_GIVEN, - self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN, + self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN, service_auth_401_redirect: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, @@ -1852,10 +1852,10 @@ async def create( *, account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, saas_app: application_create_params.SaaSApplicationSaaSApp | NotGiven = NOT_GIVEN, @@ -1914,14 +1914,14 @@ async def create( account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | 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, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -1929,7 +1929,7 @@ async def create( options_preflight_bypass: bool | NotGiven = NOT_GIVEN, path_cookie_attribute: bool | NotGiven = NOT_GIVEN, same_site_cookie_attribute: str | NotGiven = NOT_GIVEN, - self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN, + self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN, service_auth_401_redirect: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, @@ -2029,14 +2029,14 @@ async def create( account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | 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, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -2044,7 +2044,7 @@ async def create( options_preflight_bypass: bool | NotGiven = NOT_GIVEN, path_cookie_attribute: bool | NotGiven = NOT_GIVEN, same_site_cookie_attribute: str | NotGiven = NOT_GIVEN, - self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN, + self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN, service_auth_401_redirect: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, @@ -2142,7 +2142,7 @@ async def create( type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"], account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -2189,7 +2189,7 @@ async def create( type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"], account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -2236,7 +2236,7 @@ async def create( type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"], account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -2336,14 +2336,14 @@ async def create( account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | 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, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -2351,7 +2351,7 @@ async def create( options_preflight_bypass: bool | NotGiven = NOT_GIVEN, path_cookie_attribute: bool | NotGiven = NOT_GIVEN, same_site_cookie_attribute: str | NotGiven = NOT_GIVEN, - self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN, + self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN, service_auth_401_redirect: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, @@ -2432,14 +2432,14 @@ async def update( account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | 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, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -2447,7 +2447,7 @@ async def update( options_preflight_bypass: bool | NotGiven = NOT_GIVEN, path_cookie_attribute: bool | NotGiven = NOT_GIVEN, same_site_cookie_attribute: str | NotGiven = NOT_GIVEN, - self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN, + self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN, service_auth_401_redirect: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, @@ -2547,10 +2547,10 @@ async def update( *, account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, name: str | NotGiven = NOT_GIVEN, saas_app: application_update_params.SaaSApplicationSaaSApp | NotGiven = NOT_GIVEN, @@ -2612,14 +2612,14 @@ async def update( account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | 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, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -2627,7 +2627,7 @@ async def update( options_preflight_bypass: bool | NotGiven = NOT_GIVEN, path_cookie_attribute: bool | NotGiven = NOT_GIVEN, same_site_cookie_attribute: str | NotGiven = NOT_GIVEN, - self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN, + self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN, service_auth_401_redirect: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, @@ -2730,14 +2730,14 @@ async def update( account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | 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, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -2745,7 +2745,7 @@ async def update( options_preflight_bypass: bool | NotGiven = NOT_GIVEN, path_cookie_attribute: bool | NotGiven = NOT_GIVEN, same_site_cookie_attribute: str | NotGiven = NOT_GIVEN, - self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN, + self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN, service_auth_401_redirect: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, @@ -2846,7 +2846,7 @@ async def update( type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"], account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -2896,7 +2896,7 @@ async def update( type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"], account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -2946,7 +2946,7 @@ async def update( type: Literal["self_hosted", "saas", "ssh", "vnc", "app_launcher", "warp", "biso", "bookmark", "dash_sso"], account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -3052,14 +3052,14 @@ async def update( account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, allow_authenticate_via_warp: bool | NotGiven = NOT_GIVEN, - allowed_idps: List[AllowedIdpsh] | NotGiven = NOT_GIVEN, + allowed_idps: List[AllowedIdPs] | NotGiven = NOT_GIVEN, app_launcher_visible: bool | NotGiven = NOT_GIVEN, auto_redirect_to_identity: bool | 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, - custom_pages: List[CustomPagesh] | NotGiven = NOT_GIVEN, + custom_pages: List[CustomPages] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -3067,7 +3067,7 @@ async def update( options_preflight_bypass: bool | NotGiven = NOT_GIVEN, path_cookie_attribute: bool | NotGiven = NOT_GIVEN, same_site_cookie_attribute: str | NotGiven = NOT_GIVEN, - self_hosted_domains: List[SelfHostedDomainsh] | NotGiven = NOT_GIVEN, + self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN, service_auth_401_redirect: bool | NotGiven = NOT_GIVEN, session_duration: str | NotGiven = NOT_GIVEN, skip_interstitial: bool | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/types/zero_trust/access/__init__.py b/src/cloudflare/types/zero_trust/access/__init__.py index bdd5a08a92f..d850ee36a25 100644 --- a/src/cloudflare/types/zero_trust/access/__init__.py +++ b/src/cloudflare/types/zero_trust/access/__init__.py @@ -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 @@ -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 @@ -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 diff --git a/src/cloudflare/types/zero_trust/access/allowed_headersh.py b/src/cloudflare/types/zero_trust/access/allowed_headers.py similarity index 63% rename from src/cloudflare/types/zero_trust/access/allowed_headersh.py rename to src/cloudflare/types/zero_trust/access/allowed_headers.py index 5eab7035a5c..4eeff39570c 100644 --- a/src/cloudflare/types/zero_trust/access/allowed_headersh.py +++ b/src/cloudflare/types/zero_trust/access/allowed_headers.py @@ -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 diff --git a/src/cloudflare/types/zero_trust/access/allowed_http_methods.py b/src/cloudflare/types/zero_trust/access/allowed_http_methods.py new file mode 100644 index 00000000000..f5cbe3ccdf4 --- /dev/null +++ b/src/cloudflare/types/zero_trust/access/allowed_http_methods.py @@ -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] diff --git a/src/cloudflare/types/zero_trust/access/allowed_http_methods_param.py b/src/cloudflare/types/zero_trust/access/allowed_http_methods_param.py new file mode 100644 index 00000000000..e4f0a3fd9ce --- /dev/null +++ b/src/cloudflare/types/zero_trust/access/allowed_http_methods_param.py @@ -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] diff --git a/src/cloudflare/types/zero_trust/access/allowed_idpsh.py b/src/cloudflare/types/zero_trust/access/allowed_idps.py similarity index 65% rename from src/cloudflare/types/zero_trust/access/allowed_idpsh.py rename to src/cloudflare/types/zero_trust/access/allowed_idps.py index 06ac561930d..79c7e1af7e3 100644 --- a/src/cloudflare/types/zero_trust/access/allowed_idpsh.py +++ b/src/cloudflare/types/zero_trust/access/allowed_idps.py @@ -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 diff --git a/src/cloudflare/types/zero_trust/access/allowed_methods.py b/src/cloudflare/types/zero_trust/access/allowed_methods.py new file mode 100644 index 00000000000..c1c9e45b63b --- /dev/null +++ b/src/cloudflare/types/zero_trust/access/allowed_methods.py @@ -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"] diff --git a/src/cloudflare/types/zero_trust/access/allowed_methodsh.py b/src/cloudflare/types/zero_trust/access/allowed_methodsh.py deleted file mode 100644 index 9ce6cd1709b..00000000000 --- a/src/cloudflare/types/zero_trust/access/allowed_methodsh.py +++ /dev/null @@ -1,7 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing_extensions import Literal - -__all__ = ["AllowedMethodsh"] - -AllowedMethodsh = Literal["GET", "POST", "HEAD", "PUT", "DELETE", "CONNECT", "OPTIONS", "TRACE", "PATCH"] diff --git a/src/cloudflare/types/zero_trust/access/allowed_originsh.py b/src/cloudflare/types/zero_trust/access/allowed_origins.py similarity index 63% rename from src/cloudflare/types/zero_trust/access/allowed_originsh.py rename to src/cloudflare/types/zero_trust/access/allowed_origins.py index dbd56ff86ca..d18558e3958 100644 --- a/src/cloudflare/types/zero_trust/access/allowed_originsh.py +++ b/src/cloudflare/types/zero_trust/access/allowed_origins.py @@ -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 diff --git a/src/cloudflare/types/zero_trust/access/application.py b/src/cloudflare/types/zero_trust/access/application.py index cd1cae01256..3042cdf94dc 100644 --- a/src/cloudflare/types/zero_trust/access/application.py +++ b/src/cloudflare/types/zero_trust/access/application.py @@ -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", @@ -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. @@ -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 @@ -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 @@ -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. @@ -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 @@ -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. @@ -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 @@ -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 @@ -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. @@ -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 @@ -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 @@ -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. @@ -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. @@ -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. 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 0197e6e388d..d70747a9766 100644 --- a/src/cloudflare/types/zero_trust/access/application_create_params.py +++ b/src/cloudflare/types/zero_trust/access/application_create_params.py @@ -5,11 +5,11 @@ from typing import Dict, List, Union from typing_extensions import Literal, Required, TypedDict -from .allowed_idpsh import AllowedIdpsh -from .custom_pagesh import CustomPagesh +from .allowed_idps import AllowedIdPs +from .custom_pages import CustomPages from .cors_headers_param import CORSHeadersParam from .saml_saas_app_param import SAMLSaaSAppParam -from .self_hosted_domainsh import SelfHostedDomainsh +from .self_hosted_domains import SelfHostedDomains __all__ = [ "ApplicationCreateParams", @@ -53,7 +53,7 @@ class SelfHostedApplication(TypedDict, total=False): authentication. """ - allowed_idps: List[AllowedIdpsh] + allowed_idps: List[AllowedIdPs] """The identity providers your users can select when connecting to this application. @@ -90,7 +90,7 @@ class SelfHostedApplication(TypedDict, total=False): application when failing non-identity rules. """ - custom_pages: List[CustomPagesh] + custom_pages: List[CustomPages] """The custom pages that will be displayed when applicable for this application""" enable_binding_cookie: bool @@ -129,7 +129,7 @@ class SelfHostedApplication(TypedDict, total=False): attacks. """ - self_hosted_domains: List[SelfHostedDomainsh] + self_hosted_domains: List[SelfHostedDomains] """List of domains that Access will secure.""" service_auth_401_redirect: bool @@ -159,7 +159,7 @@ class SaaSApplication(TypedDict, total=False): zone_id: str """The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.""" - allowed_idps: List[AllowedIdpsh] + allowed_idps: List[AllowedIdPs] """The identity providers your users can select when connecting to this application. @@ -176,7 +176,7 @@ class SaaSApplication(TypedDict, total=False): You must specify only one identity provider in allowed_idps. """ - custom_pages: List[CustomPagesh] + custom_pages: List[CustomPages] """The custom pages that will be displayed when applicable for this application""" logo_url: str @@ -283,7 +283,7 @@ class BrowserSSHApplication(TypedDict, total=False): authentication. """ - allowed_idps: List[AllowedIdpsh] + allowed_idps: List[AllowedIdPs] """The identity providers your users can select when connecting to this application. @@ -320,7 +320,7 @@ class BrowserSSHApplication(TypedDict, total=False): application when failing non-identity rules. """ - custom_pages: List[CustomPagesh] + custom_pages: List[CustomPages] """The custom pages that will be displayed when applicable for this application""" enable_binding_cookie: bool @@ -359,7 +359,7 @@ class BrowserSSHApplication(TypedDict, total=False): attacks. """ - self_hosted_domains: List[SelfHostedDomainsh] + self_hosted_domains: List[SelfHostedDomains] """List of domains that Access will secure.""" service_auth_401_redirect: bool @@ -407,7 +407,7 @@ class BrowserVncApplication(TypedDict, total=False): authentication. """ - allowed_idps: List[AllowedIdpsh] + allowed_idps: List[AllowedIdPs] """The identity providers your users can select when connecting to this application. @@ -444,7 +444,7 @@ class BrowserVncApplication(TypedDict, total=False): application when failing non-identity rules. """ - custom_pages: List[CustomPagesh] + custom_pages: List[CustomPages] """The custom pages that will be displayed when applicable for this application""" enable_binding_cookie: bool @@ -483,7 +483,7 @@ class BrowserVncApplication(TypedDict, total=False): attacks. """ - self_hosted_domains: List[SelfHostedDomainsh] + self_hosted_domains: List[SelfHostedDomains] """List of domains that Access will secure.""" service_auth_401_redirect: bool @@ -516,7 +516,7 @@ class AppLauncherApplication(TypedDict, total=False): zone_id: str """The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.""" - allowed_idps: List[AllowedIdpsh] + allowed_idps: List[AllowedIdPs] """The identity providers your users can select when connecting to this application. @@ -548,7 +548,7 @@ class DeviceEnrollmentPermissionsApplication(TypedDict, total=False): zone_id: str """The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.""" - allowed_idps: List[AllowedIdpsh] + allowed_idps: List[AllowedIdPs] """The identity providers your users can select when connecting to this application. @@ -580,7 +580,7 @@ class BrowserIsolationPermissionsApplication(TypedDict, total=False): zone_id: str """The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.""" - allowed_idps: List[AllowedIdpsh] + allowed_idps: List[AllowedIdPs] """The identity providers your users can select when connecting to this application. 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 06535294710..b40a12a51fe 100644 --- a/src/cloudflare/types/zero_trust/access/application_update_params.py +++ b/src/cloudflare/types/zero_trust/access/application_update_params.py @@ -5,11 +5,11 @@ from typing import Dict, List, Union from typing_extensions import Literal, Required, TypedDict -from .allowed_idpsh import AllowedIdpsh -from .custom_pagesh import CustomPagesh +from .allowed_idps import AllowedIdPs +from .custom_pages import CustomPages from .cors_headers_param import CORSHeadersParam from .saml_saas_app_param import SAMLSaaSAppParam -from .self_hosted_domainsh import SelfHostedDomainsh +from .self_hosted_domains import SelfHostedDomains __all__ = [ "ApplicationUpdateParams", @@ -53,7 +53,7 @@ class SelfHostedApplication(TypedDict, total=False): authentication. """ - allowed_idps: List[AllowedIdpsh] + allowed_idps: List[AllowedIdPs] """The identity providers your users can select when connecting to this application. @@ -90,7 +90,7 @@ class SelfHostedApplication(TypedDict, total=False): application when failing non-identity rules. """ - custom_pages: List[CustomPagesh] + custom_pages: List[CustomPages] """The custom pages that will be displayed when applicable for this application""" enable_binding_cookie: bool @@ -129,7 +129,7 @@ class SelfHostedApplication(TypedDict, total=False): attacks. """ - self_hosted_domains: List[SelfHostedDomainsh] + self_hosted_domains: List[SelfHostedDomains] """List of domains that Access will secure.""" service_auth_401_redirect: bool @@ -159,7 +159,7 @@ class SaaSApplication(TypedDict, total=False): zone_id: str """The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.""" - allowed_idps: List[AllowedIdpsh] + allowed_idps: List[AllowedIdPs] """The identity providers your users can select when connecting to this application. @@ -176,7 +176,7 @@ class SaaSApplication(TypedDict, total=False): You must specify only one identity provider in allowed_idps. """ - custom_pages: List[CustomPagesh] + custom_pages: List[CustomPages] """The custom pages that will be displayed when applicable for this application""" logo_url: str @@ -283,7 +283,7 @@ class BrowserSSHApplication(TypedDict, total=False): authentication. """ - allowed_idps: List[AllowedIdpsh] + allowed_idps: List[AllowedIdPs] """The identity providers your users can select when connecting to this application. @@ -320,7 +320,7 @@ class BrowserSSHApplication(TypedDict, total=False): application when failing non-identity rules. """ - custom_pages: List[CustomPagesh] + custom_pages: List[CustomPages] """The custom pages that will be displayed when applicable for this application""" enable_binding_cookie: bool @@ -359,7 +359,7 @@ class BrowserSSHApplication(TypedDict, total=False): attacks. """ - self_hosted_domains: List[SelfHostedDomainsh] + self_hosted_domains: List[SelfHostedDomains] """List of domains that Access will secure.""" service_auth_401_redirect: bool @@ -407,7 +407,7 @@ class BrowserVncApplication(TypedDict, total=False): authentication. """ - allowed_idps: List[AllowedIdpsh] + allowed_idps: List[AllowedIdPs] """The identity providers your users can select when connecting to this application. @@ -444,7 +444,7 @@ class BrowserVncApplication(TypedDict, total=False): application when failing non-identity rules. """ - custom_pages: List[CustomPagesh] + custom_pages: List[CustomPages] """The custom pages that will be displayed when applicable for this application""" enable_binding_cookie: bool @@ -483,7 +483,7 @@ class BrowserVncApplication(TypedDict, total=False): attacks. """ - self_hosted_domains: List[SelfHostedDomainsh] + self_hosted_domains: List[SelfHostedDomains] """List of domains that Access will secure.""" service_auth_401_redirect: bool @@ -516,7 +516,7 @@ class AppLauncherApplication(TypedDict, total=False): zone_id: str """The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.""" - allowed_idps: List[AllowedIdpsh] + allowed_idps: List[AllowedIdPs] """The identity providers your users can select when connecting to this application. @@ -548,7 +548,7 @@ class DeviceEnrollmentPermissionsApplication(TypedDict, total=False): zone_id: str """The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.""" - allowed_idps: List[AllowedIdpsh] + allowed_idps: List[AllowedIdPs] """The identity providers your users can select when connecting to this application. @@ -580,7 +580,7 @@ class BrowserIsolationPermissionsApplication(TypedDict, total=False): zone_id: str """The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.""" - allowed_idps: List[AllowedIdpsh] + allowed_idps: List[AllowedIdPs] """The identity providers your users can select when connecting to this application. diff --git a/src/cloudflare/types/zero_trust/access/cors_headers.py b/src/cloudflare/types/zero_trust/access/cors_headers.py index dd0d1dee6d6..c6e54ffda11 100644 --- a/src/cloudflare/types/zero_trust/access/cors_headers.py +++ b/src/cloudflare/types/zero_trust/access/cors_headers.py @@ -3,9 +3,9 @@ from typing import List, Optional from ...._models import BaseModel -from .allowed_headersh import AllowedHeadersh -from .allowed_methodsh import AllowedMethodsh -from .allowed_originsh import AllowedOriginsh +from .allowed_headers import AllowedHeaders +from .allowed_origins import AllowedOrigins +from .allowed_http_methods import AllowedHTTPMethods __all__ = ["CORSHeaders"] @@ -26,13 +26,13 @@ class CORSHeaders(BaseModel): client certificates) with requests. """ - allowed_headers: Optional[List[AllowedHeadersh]] = None + allowed_headers: Optional[List[AllowedHeaders]] = None """Allowed HTTP request headers.""" - allowed_methods: Optional[List[AllowedMethodsh]] = None + allowed_methods: Optional[AllowedHTTPMethods] = None """Allowed HTTP request methods.""" - allowed_origins: Optional[List[AllowedOriginsh]] = None + allowed_origins: Optional[List[AllowedOrigins]] = None """Allowed origins.""" max_age: Optional[float] = None 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 9a78d765436..d0ad003ae6a 100644 --- a/src/cloudflare/types/zero_trust/access/cors_headers_param.py +++ b/src/cloudflare/types/zero_trust/access/cors_headers_param.py @@ -5,9 +5,9 @@ from typing import List from typing_extensions import TypedDict -from .allowed_headersh import AllowedHeadersh -from .allowed_methodsh import AllowedMethodsh -from .allowed_originsh import AllowedOriginsh +from .allowed_headers import AllowedHeaders +from .allowed_origins import AllowedOrigins +from .allowed_http_methods_param import AllowedHTTPMethodsParam __all__ = ["CORSHeadersParam"] @@ -28,13 +28,13 @@ class CORSHeadersParam(TypedDict, total=False): client certificates) with requests. """ - allowed_headers: List[AllowedHeadersh] + allowed_headers: List[AllowedHeaders] """Allowed HTTP request headers.""" - allowed_methods: List[AllowedMethodsh] + allowed_methods: AllowedHTTPMethodsParam """Allowed HTTP request methods.""" - allowed_origins: List[AllowedOriginsh] + allowed_origins: List[AllowedOrigins] """Allowed origins.""" max_age: float diff --git a/src/cloudflare/types/zero_trust/access/custom_pagesh.py b/src/cloudflare/types/zero_trust/access/custom_pages.py similarity index 65% rename from src/cloudflare/types/zero_trust/access/custom_pagesh.py rename to src/cloudflare/types/zero_trust/access/custom_pages.py index c85ccdf5283..0187b4067c6 100644 --- a/src/cloudflare/types/zero_trust/access/custom_pagesh.py +++ b/src/cloudflare/types/zero_trust/access/custom_pages.py @@ -1,6 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -__all__ = ["CustomPagesh"] +__all__ = ["CustomPages"] -CustomPagesh = str +CustomPages = str diff --git a/src/cloudflare/types/zero_trust/access/self_hosted_domains.py b/src/cloudflare/types/zero_trust/access/self_hosted_domains.py new file mode 100644 index 00000000000..cadbea12ad3 --- /dev/null +++ b/src/cloudflare/types/zero_trust/access/self_hosted_domains.py @@ -0,0 +1,6 @@ +# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. + + +__all__ = ["SelfHostedDomains"] + +SelfHostedDomains = str diff --git a/src/cloudflare/types/zero_trust/access/self_hosted_domainsh.py b/src/cloudflare/types/zero_trust/access/self_hosted_domainsh.py deleted file mode 100644 index 7dd81dca382..00000000000 --- a/src/cloudflare/types/zero_trust/access/self_hosted_domainsh.py +++ /dev/null @@ -1,6 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - - -__all__ = ["SelfHostedDomainsh"] - -SelfHostedDomainsh = str