From ace26df932afdff7531a4797aff9e38563fa3bb0 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 21 Nov 2024 20:51:54 +0000 Subject: [PATCH] feat(api): api update (#2202) --- .stats.yml | 2 +- .../access/applications/applications.py | 164 +++-------- .../zero_trust/organizations/organizations.py | 52 +--- .../access/application_create_params.py | 105 +------ .../access/application_create_response.py | 121 ++------ .../access/application_get_response.py | 121 ++------ .../access/application_list_response.py | 121 ++------ .../access/application_update_params.py | 105 +------ .../access/application_update_response.py | 121 ++------ .../organization_revoke_users_params.py | 20 +- .../zero_trust/access/test_applications.py | 264 ------------------ .../zero_trust/test_organizations.py | 8 - 12 files changed, 148 insertions(+), 1056 deletions(-) diff --git a/.stats.yml b/.stats.yml index 72b7f7f18cd..26b763d67c5 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1449 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1c6fe7515b7879a7cd51bbe9433aeee5d3d30feaf519f42d0d81c64b19f45875.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-f3bf5786ed274253519d4c0cf9abb19fb072872380a2c0bf90917f78f16cfaa6.yml diff --git a/src/cloudflare/resources/zero_trust/access/applications/applications.py b/src/cloudflare/resources/zero_trust/access/applications/applications.py index fbf653c4ace..f285c7f9c6c 100644 --- a/src/cloudflare/resources/zero_trust/access/applications/applications.py +++ b/src/cloudflare/resources/zero_trust/access/applications/applications.py @@ -130,7 +130,6 @@ def create( custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, custom_pages: List[str] | NotGiven = NOT_GIVEN, - destinations: Iterable[application_create_params.SelfHostedApplicationDestination] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -156,8 +155,8 @@ def create( Adds a new application to Access. Args: - domain: The primary hostname and path secured by Access. This domain will be displayed - if the app is visible in the App Launcher. + domain: The primary hostname and path that Access will secure. If the app is visible in + the App Launcher dashboard, this is the domain that will be displayed. type: The application type. @@ -189,10 +188,6 @@ def create( custom_pages: The custom pages that will be displayed when applicable for this application - destinations: List of destinations secured by Access. This supersedes `self_hosted_domains` to - allow for more flexibility in defining different types of domains. If - `destinations` are provided, then `self_hosted_domains` will be ignored. - enable_binding_cookie: Enables the binding cookie, which increases security against compromised authorization tokens and CSRF attacks. @@ -219,9 +214,7 @@ def create( scim_config: Configuration for provisioning to this application via SCIM. This is currently in closed beta. - self_hosted_domains: List of public domains that Access will secure. This field is deprecated in - favor of `destinations` and will be supported until **November 21, 2025.** If - `destinations` are provided, then `self_hosted_domains` will be ignored. + self_hosted_domains: List of domains that Access will secure. service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy. @@ -329,7 +322,6 @@ def create( custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, custom_pages: List[str] | NotGiven = NOT_GIVEN, - destinations: Iterable[application_create_params.BrowserSSHApplicationDestination] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -355,8 +347,8 @@ def create( Adds a new application to Access. Args: - domain: The primary hostname and path secured by Access. This domain will be displayed - if the app is visible in the App Launcher. + domain: The primary hostname and path that Access will secure. If the app is visible in + the App Launcher dashboard, this is the domain that will be displayed. type: The application type. @@ -388,10 +380,6 @@ def create( custom_pages: The custom pages that will be displayed when applicable for this application - destinations: List of destinations secured by Access. This supersedes `self_hosted_domains` to - allow for more flexibility in defining different types of domains. If - `destinations` are provided, then `self_hosted_domains` will be ignored. - enable_binding_cookie: Enables the binding cookie, which increases security against compromised authorization tokens and CSRF attacks. @@ -418,9 +406,7 @@ def create( scim_config: Configuration for provisioning to this application via SCIM. This is currently in closed beta. - self_hosted_domains: List of public domains that Access will secure. This field is deprecated in - favor of `destinations` and will be supported until **November 21, 2025.** If - `destinations` are provided, then `self_hosted_domains` will be ignored. + self_hosted_domains: List of domains that Access will secure. service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy. @@ -460,7 +446,6 @@ def create( custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, custom_pages: List[str] | NotGiven = NOT_GIVEN, - destinations: Iterable[application_create_params.BrowserVNCApplicationDestination] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -486,8 +471,8 @@ def create( Adds a new application to Access. Args: - domain: The primary hostname and path secured by Access. This domain will be displayed - if the app is visible in the App Launcher. + domain: The primary hostname and path that Access will secure. If the app is visible in + the App Launcher dashboard, this is the domain that will be displayed. type: The application type. @@ -519,10 +504,6 @@ def create( custom_pages: The custom pages that will be displayed when applicable for this application - destinations: List of destinations secured by Access. This supersedes `self_hosted_domains` to - allow for more flexibility in defining different types of domains. If - `destinations` are provided, then `self_hosted_domains` will be ignored. - enable_binding_cookie: Enables the binding cookie, which increases security against compromised authorization tokens and CSRF attacks. @@ -549,9 +530,7 @@ def create( scim_config: Configuration for provisioning to this application via SCIM. This is currently in closed beta. - self_hosted_domains: List of public domains that Access will secure. This field is deprecated in - favor of `destinations` and will be supported until **November 21, 2025.** If - `destinations` are provided, then `self_hosted_domains` will be ignored. + self_hosted_domains: List of domains that Access will secure. service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy. @@ -911,7 +890,6 @@ def create( custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, custom_pages: List[str] | NotGiven = NOT_GIVEN, - destinations: Iterable[application_create_params.SelfHostedApplicationDestination] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -973,7 +951,6 @@ def create( "custom_deny_url": custom_deny_url, "custom_non_identity_deny_url": custom_non_identity_deny_url, "custom_pages": custom_pages, - "destinations": destinations, "enable_binding_cookie": enable_binding_cookie, "http_only_cookie_attribute": http_only_cookie_attribute, "logo_url": logo_url, @@ -1030,7 +1007,6 @@ def update( custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, custom_pages: List[str] | NotGiven = NOT_GIVEN, - destinations: Iterable[application_update_params.SelfHostedApplicationDestination] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -1058,8 +1034,8 @@ def update( Args: app_id: Identifier - domain: The primary hostname and path secured by Access. This domain will be displayed - if the app is visible in the App Launcher. + domain: The primary hostname and path that Access will secure. If the app is visible in + the App Launcher dashboard, this is the domain that will be displayed. type: The application type. @@ -1091,10 +1067,6 @@ def update( custom_pages: The custom pages that will be displayed when applicable for this application - destinations: List of destinations secured by Access. This supersedes `self_hosted_domains` to - allow for more flexibility in defining different types of domains. If - `destinations` are provided, then `self_hosted_domains` will be ignored. - enable_binding_cookie: Enables the binding cookie, which increases security against compromised authorization tokens and CSRF attacks. @@ -1121,9 +1093,7 @@ def update( scim_config: Configuration for provisioning to this application via SCIM. This is currently in closed beta. - self_hosted_domains: List of public domains that Access will secure. This field is deprecated in - favor of `destinations` and will be supported until **November 21, 2025.** If - `destinations` are provided, then `self_hosted_domains` will be ignored. + self_hosted_domains: List of domains that Access will secure. service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy. @@ -1235,7 +1205,6 @@ def update( custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, custom_pages: List[str] | NotGiven = NOT_GIVEN, - destinations: Iterable[application_update_params.BrowserSSHApplicationDestination] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -1263,8 +1232,8 @@ def update( Args: app_id: Identifier - domain: The primary hostname and path secured by Access. This domain will be displayed - if the app is visible in the App Launcher. + domain: The primary hostname and path that Access will secure. If the app is visible in + the App Launcher dashboard, this is the domain that will be displayed. type: The application type. @@ -1296,10 +1265,6 @@ def update( custom_pages: The custom pages that will be displayed when applicable for this application - destinations: List of destinations secured by Access. This supersedes `self_hosted_domains` to - allow for more flexibility in defining different types of domains. If - `destinations` are provided, then `self_hosted_domains` will be ignored. - enable_binding_cookie: Enables the binding cookie, which increases security against compromised authorization tokens and CSRF attacks. @@ -1326,9 +1291,7 @@ def update( scim_config: Configuration for provisioning to this application via SCIM. This is currently in closed beta. - self_hosted_domains: List of public domains that Access will secure. This field is deprecated in - favor of `destinations` and will be supported until **November 21, 2025.** If - `destinations` are provided, then `self_hosted_domains` will be ignored. + self_hosted_domains: List of domains that Access will secure. service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy. @@ -1369,7 +1332,6 @@ def update( custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, custom_pages: List[str] | NotGiven = NOT_GIVEN, - destinations: Iterable[application_update_params.BrowserVNCApplicationDestination] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -1397,8 +1359,8 @@ def update( Args: app_id: Identifier - domain: The primary hostname and path secured by Access. This domain will be displayed - if the app is visible in the App Launcher. + domain: The primary hostname and path that Access will secure. If the app is visible in + the App Launcher dashboard, this is the domain that will be displayed. type: The application type. @@ -1430,10 +1392,6 @@ def update( custom_pages: The custom pages that will be displayed when applicable for this application - destinations: List of destinations secured by Access. This supersedes `self_hosted_domains` to - allow for more flexibility in defining different types of domains. If - `destinations` are provided, then `self_hosted_domains` will be ignored. - enable_binding_cookie: Enables the binding cookie, which increases security against compromised authorization tokens and CSRF attacks. @@ -1460,9 +1418,7 @@ def update( scim_config: Configuration for provisioning to this application via SCIM. This is currently in closed beta. - self_hosted_domains: List of public domains that Access will secure. This field is deprecated in - favor of `destinations` and will be supported until **November 21, 2025.** If - `destinations` are provided, then `self_hosted_domains` will be ignored. + self_hosted_domains: List of domains that Access will secure. service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy. @@ -1838,7 +1794,6 @@ def update( custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, custom_pages: List[str] | NotGiven = NOT_GIVEN, - destinations: Iterable[application_update_params.SelfHostedApplicationDestination] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -1902,7 +1857,6 @@ def update( "custom_deny_url": custom_deny_url, "custom_non_identity_deny_url": custom_non_identity_deny_url, "custom_pages": custom_pages, - "destinations": destinations, "enable_binding_cookie": enable_binding_cookie, "http_only_cookie_attribute": http_only_cookie_attribute, "logo_url": logo_url, @@ -2244,7 +2198,6 @@ async def create( custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, custom_pages: List[str] | NotGiven = NOT_GIVEN, - destinations: Iterable[application_create_params.SelfHostedApplicationDestination] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -2270,8 +2223,8 @@ async def create( Adds a new application to Access. Args: - domain: The primary hostname and path secured by Access. This domain will be displayed - if the app is visible in the App Launcher. + domain: The primary hostname and path that Access will secure. If the app is visible in + the App Launcher dashboard, this is the domain that will be displayed. type: The application type. @@ -2303,10 +2256,6 @@ async def create( custom_pages: The custom pages that will be displayed when applicable for this application - destinations: List of destinations secured by Access. This supersedes `self_hosted_domains` to - allow for more flexibility in defining different types of domains. If - `destinations` are provided, then `self_hosted_domains` will be ignored. - enable_binding_cookie: Enables the binding cookie, which increases security against compromised authorization tokens and CSRF attacks. @@ -2333,9 +2282,7 @@ async def create( scim_config: Configuration for provisioning to this application via SCIM. This is currently in closed beta. - self_hosted_domains: List of public domains that Access will secure. This field is deprecated in - favor of `destinations` and will be supported until **November 21, 2025.** If - `destinations` are provided, then `self_hosted_domains` will be ignored. + self_hosted_domains: List of domains that Access will secure. service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy. @@ -2443,7 +2390,6 @@ async def create( custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, custom_pages: List[str] | NotGiven = NOT_GIVEN, - destinations: Iterable[application_create_params.BrowserSSHApplicationDestination] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -2469,8 +2415,8 @@ async def create( Adds a new application to Access. Args: - domain: The primary hostname and path secured by Access. This domain will be displayed - if the app is visible in the App Launcher. + domain: The primary hostname and path that Access will secure. If the app is visible in + the App Launcher dashboard, this is the domain that will be displayed. type: The application type. @@ -2502,10 +2448,6 @@ async def create( custom_pages: The custom pages that will be displayed when applicable for this application - destinations: List of destinations secured by Access. This supersedes `self_hosted_domains` to - allow for more flexibility in defining different types of domains. If - `destinations` are provided, then `self_hosted_domains` will be ignored. - enable_binding_cookie: Enables the binding cookie, which increases security against compromised authorization tokens and CSRF attacks. @@ -2532,9 +2474,7 @@ async def create( scim_config: Configuration for provisioning to this application via SCIM. This is currently in closed beta. - self_hosted_domains: List of public domains that Access will secure. This field is deprecated in - favor of `destinations` and will be supported until **November 21, 2025.** If - `destinations` are provided, then `self_hosted_domains` will be ignored. + self_hosted_domains: List of domains that Access will secure. service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy. @@ -2574,7 +2514,6 @@ async def create( custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, custom_pages: List[str] | NotGiven = NOT_GIVEN, - destinations: Iterable[application_create_params.BrowserVNCApplicationDestination] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -2600,8 +2539,8 @@ async def create( Adds a new application to Access. Args: - domain: The primary hostname and path secured by Access. This domain will be displayed - if the app is visible in the App Launcher. + domain: The primary hostname and path that Access will secure. If the app is visible in + the App Launcher dashboard, this is the domain that will be displayed. type: The application type. @@ -2633,10 +2572,6 @@ async def create( custom_pages: The custom pages that will be displayed when applicable for this application - destinations: List of destinations secured by Access. This supersedes `self_hosted_domains` to - allow for more flexibility in defining different types of domains. If - `destinations` are provided, then `self_hosted_domains` will be ignored. - enable_binding_cookie: Enables the binding cookie, which increases security against compromised authorization tokens and CSRF attacks. @@ -2663,9 +2598,7 @@ async def create( scim_config: Configuration for provisioning to this application via SCIM. This is currently in closed beta. - self_hosted_domains: List of public domains that Access will secure. This field is deprecated in - favor of `destinations` and will be supported until **November 21, 2025.** If - `destinations` are provided, then `self_hosted_domains` will be ignored. + self_hosted_domains: List of domains that Access will secure. service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy. @@ -3025,7 +2958,6 @@ async def create( custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, custom_pages: List[str] | NotGiven = NOT_GIVEN, - destinations: Iterable[application_create_params.SelfHostedApplicationDestination] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -3087,7 +3019,6 @@ async def create( "custom_deny_url": custom_deny_url, "custom_non_identity_deny_url": custom_non_identity_deny_url, "custom_pages": custom_pages, - "destinations": destinations, "enable_binding_cookie": enable_binding_cookie, "http_only_cookie_attribute": http_only_cookie_attribute, "logo_url": logo_url, @@ -3144,7 +3075,6 @@ async def update( custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, custom_pages: List[str] | NotGiven = NOT_GIVEN, - destinations: Iterable[application_update_params.SelfHostedApplicationDestination] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -3172,8 +3102,8 @@ async def update( Args: app_id: Identifier - domain: The primary hostname and path secured by Access. This domain will be displayed - if the app is visible in the App Launcher. + domain: The primary hostname and path that Access will secure. If the app is visible in + the App Launcher dashboard, this is the domain that will be displayed. type: The application type. @@ -3205,10 +3135,6 @@ async def update( custom_pages: The custom pages that will be displayed when applicable for this application - destinations: List of destinations secured by Access. This supersedes `self_hosted_domains` to - allow for more flexibility in defining different types of domains. If - `destinations` are provided, then `self_hosted_domains` will be ignored. - enable_binding_cookie: Enables the binding cookie, which increases security against compromised authorization tokens and CSRF attacks. @@ -3235,9 +3161,7 @@ async def update( scim_config: Configuration for provisioning to this application via SCIM. This is currently in closed beta. - self_hosted_domains: List of public domains that Access will secure. This field is deprecated in - favor of `destinations` and will be supported until **November 21, 2025.** If - `destinations` are provided, then `self_hosted_domains` will be ignored. + self_hosted_domains: List of domains that Access will secure. service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy. @@ -3349,7 +3273,6 @@ async def update( custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, custom_pages: List[str] | NotGiven = NOT_GIVEN, - destinations: Iterable[application_update_params.BrowserSSHApplicationDestination] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -3377,8 +3300,8 @@ async def update( Args: app_id: Identifier - domain: The primary hostname and path secured by Access. This domain will be displayed - if the app is visible in the App Launcher. + domain: The primary hostname and path that Access will secure. If the app is visible in + the App Launcher dashboard, this is the domain that will be displayed. type: The application type. @@ -3410,10 +3333,6 @@ async def update( custom_pages: The custom pages that will be displayed when applicable for this application - destinations: List of destinations secured by Access. This supersedes `self_hosted_domains` to - allow for more flexibility in defining different types of domains. If - `destinations` are provided, then `self_hosted_domains` will be ignored. - enable_binding_cookie: Enables the binding cookie, which increases security against compromised authorization tokens and CSRF attacks. @@ -3440,9 +3359,7 @@ async def update( scim_config: Configuration for provisioning to this application via SCIM. This is currently in closed beta. - self_hosted_domains: List of public domains that Access will secure. This field is deprecated in - favor of `destinations` and will be supported until **November 21, 2025.** If - `destinations` are provided, then `self_hosted_domains` will be ignored. + self_hosted_domains: List of domains that Access will secure. service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy. @@ -3483,7 +3400,6 @@ async def update( custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, custom_pages: List[str] | NotGiven = NOT_GIVEN, - destinations: Iterable[application_update_params.BrowserVNCApplicationDestination] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -3511,8 +3427,8 @@ async def update( Args: app_id: Identifier - domain: The primary hostname and path secured by Access. This domain will be displayed - if the app is visible in the App Launcher. + domain: The primary hostname and path that Access will secure. If the app is visible in + the App Launcher dashboard, this is the domain that will be displayed. type: The application type. @@ -3544,10 +3460,6 @@ async def update( custom_pages: The custom pages that will be displayed when applicable for this application - destinations: List of destinations secured by Access. This supersedes `self_hosted_domains` to - allow for more flexibility in defining different types of domains. If - `destinations` are provided, then `self_hosted_domains` will be ignored. - enable_binding_cookie: Enables the binding cookie, which increases security against compromised authorization tokens and CSRF attacks. @@ -3574,9 +3486,7 @@ async def update( scim_config: Configuration for provisioning to this application via SCIM. This is currently in closed beta. - self_hosted_domains: List of public domains that Access will secure. This field is deprecated in - favor of `destinations` and will be supported until **November 21, 2025.** If - `destinations` are provided, then `self_hosted_domains` will be ignored. + self_hosted_domains: List of domains that Access will secure. service_auth_401_redirect: Returns a 401 status code when the request is blocked by a Service Auth policy. @@ -3952,7 +3862,6 @@ async def update( custom_deny_url: str | NotGiven = NOT_GIVEN, custom_non_identity_deny_url: str | NotGiven = NOT_GIVEN, custom_pages: List[str] | NotGiven = NOT_GIVEN, - destinations: Iterable[application_update_params.SelfHostedApplicationDestination] | NotGiven = NOT_GIVEN, enable_binding_cookie: bool | NotGiven = NOT_GIVEN, http_only_cookie_attribute: bool | NotGiven = NOT_GIVEN, logo_url: str | NotGiven = NOT_GIVEN, @@ -4016,7 +3925,6 @@ async def update( "custom_deny_url": custom_deny_url, "custom_non_identity_deny_url": custom_non_identity_deny_url, "custom_pages": custom_pages, - "destinations": destinations, "enable_binding_cookie": enable_binding_cookie, "http_only_cookie_attribute": http_only_cookie_attribute, "logo_url": logo_url, diff --git a/src/cloudflare/resources/zero_trust/organizations/organizations.py b/src/cloudflare/resources/zero_trust/organizations/organizations.py index 8590795d427..1889f704ada 100644 --- a/src/cloudflare/resources/zero_trust/organizations/organizations.py +++ b/src/cloudflare/resources/zero_trust/organizations/organizations.py @@ -335,10 +335,6 @@ def revoke_users( email: str, account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - query_devices: bool | NotGiven = NOT_GIVEN, - body_devices: bool | NotGiven = NOT_GIVEN, - user_uid: str | NotGiven = NOT_GIVEN, - warp_session_reauth: bool | 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, @@ -356,16 +352,6 @@ def revoke_users( zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. - query_devices: When set to `true`, all devices associated with the user will be revoked. - - body_devices: When set to `true`, all devices associated with the user will be revoked. - - user_uid: The uuid of the user to revoke. - - warp_session_reauth: When set to `true`, the user will be required to re-authenticate to WARP for all - Gateway policies that enforce a WARP client session duration. When `false`, the - user’s WARP session will remain active - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -388,23 +374,12 @@ def revoke_users( account_or_zone_id = zone_id return self._post( f"/{account_or_zone}/{account_or_zone_id}/access/organizations/revoke_user", - body=maybe_transform( - { - "email": email, - "body_devices": body_devices, - "user_uid": user_uid, - "warp_session_reauth": warp_session_reauth, - }, - organization_revoke_users_params.OrganizationRevokeUsersParams, - ), + body=maybe_transform({"email": email}, organization_revoke_users_params.OrganizationRevokeUsersParams), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout, - query=maybe_transform( - {"query_devices": query_devices}, organization_revoke_users_params.OrganizationRevokeUsersParams - ), post_parser=ResultWrapper[Optional[OrganizationRevokeUsersResponse]]._unwrapper, ), cast_to=cast( @@ -707,10 +682,6 @@ async def revoke_users( email: str, account_id: str | NotGiven = NOT_GIVEN, zone_id: str | NotGiven = NOT_GIVEN, - query_devices: bool | NotGiven = NOT_GIVEN, - body_devices: bool | NotGiven = NOT_GIVEN, - user_uid: str | NotGiven = NOT_GIVEN, - warp_session_reauth: bool | 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, @@ -728,16 +699,6 @@ async def revoke_users( zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID. - query_devices: When set to `true`, all devices associated with the user will be revoked. - - body_devices: When set to `true`, all devices associated with the user will be revoked. - - user_uid: The uuid of the user to revoke. - - warp_session_reauth: When set to `true`, the user will be required to re-authenticate to WARP for all - Gateway policies that enforce a WARP client session duration. When `false`, the - user’s WARP session will remain active - extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -761,22 +722,13 @@ async def revoke_users( return await self._post( f"/{account_or_zone}/{account_or_zone_id}/access/organizations/revoke_user", body=await async_maybe_transform( - { - "email": email, - "body_devices": body_devices, - "user_uid": user_uid, - "warp_session_reauth": warp_session_reauth, - }, - organization_revoke_users_params.OrganizationRevokeUsersParams, + {"email": email}, organization_revoke_users_params.OrganizationRevokeUsersParams ), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout, - query=await async_maybe_transform( - {"query_devices": query_devices}, organization_revoke_users_params.OrganizationRevokeUsersParams - ), post_parser=ResultWrapper[Optional[OrganizationRevokeUsersResponse]]._unwrapper, ), cast_to=cast( 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 5e7ff63435e..05b4af4fdd0 100644 --- a/src/cloudflare/types/zero_trust/access/application_create_params.py +++ b/src/cloudflare/types/zero_trust/access/application_create_params.py @@ -22,7 +22,6 @@ __all__ = [ "ApplicationCreateParams", "SelfHostedApplication", - "SelfHostedApplicationDestination", "SelfHostedApplicationPolicy", "SelfHostedApplicationPolicyAccessAppPolicyLink", "SelfHostedApplicationPolicyUnionMember2", @@ -36,14 +35,12 @@ "SaaSApplicationSCIMConfig", "SaaSApplicationSCIMConfigAuthentication", "BrowserSSHApplication", - "BrowserSSHApplicationDestination", "BrowserSSHApplicationPolicy", "BrowserSSHApplicationPolicyAccessAppPolicyLink", "BrowserSSHApplicationPolicyUnionMember2", "BrowserSSHApplicationSCIMConfig", "BrowserSSHApplicationSCIMConfigAuthentication", "BrowserVNCApplication", - "BrowserVNCApplicationDestination", "BrowserVNCApplicationPolicy", "BrowserVNCApplicationPolicyAccessAppPolicyLink", "BrowserVNCApplicationPolicyUnionMember2", @@ -84,9 +81,10 @@ class SelfHostedApplication(TypedDict, total=False): domain: Required[str] - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: Required[str] @@ -146,14 +144,6 @@ class SelfHostedApplication(TypedDict, total=False): custom_pages: List[str] """The custom pages that will be displayed when applicable for this application""" - destinations: Iterable[SelfHostedApplicationDestination] - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: bool """ Enables the binding cookie, which increases security against compromised @@ -204,12 +194,7 @@ class SelfHostedApplication(TypedDict, total=False): """ self_hosted_domains: List[SelfHostedDomains] - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: bool """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -231,20 +216,6 @@ class SelfHostedApplication(TypedDict, total=False): """ -class SelfHostedApplicationDestination(TypedDict, total=False): - type: Literal["public", "private"] - - uri: str - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - class SelfHostedApplicationPolicyAccessAppPolicyLink(TypedDict, total=False): id: str """The UUID of the policy""" @@ -497,9 +468,10 @@ class SaaSApplicationSCIMConfig(TypedDict, total=False): class BrowserSSHApplication(TypedDict, total=False): domain: Required[str] - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: Required[str] @@ -559,14 +531,6 @@ class BrowserSSHApplication(TypedDict, total=False): custom_pages: List[str] """The custom pages that will be displayed when applicable for this application""" - destinations: Iterable[BrowserSSHApplicationDestination] - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: bool """ Enables the binding cookie, which increases security against compromised @@ -617,12 +581,7 @@ class BrowserSSHApplication(TypedDict, total=False): """ self_hosted_domains: List[SelfHostedDomains] - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: bool """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -644,20 +603,6 @@ class BrowserSSHApplication(TypedDict, total=False): """ -class BrowserSSHApplicationDestination(TypedDict, total=False): - type: Literal["public", "private"] - - uri: str - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - class BrowserSSHApplicationPolicyAccessAppPolicyLink(TypedDict, total=False): id: str """The UUID of the policy""" @@ -755,9 +700,10 @@ class BrowserSSHApplicationSCIMConfig(TypedDict, total=False): class BrowserVNCApplication(TypedDict, total=False): domain: Required[str] - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: Required[str] @@ -817,14 +763,6 @@ class BrowserVNCApplication(TypedDict, total=False): custom_pages: List[str] """The custom pages that will be displayed when applicable for this application""" - destinations: Iterable[BrowserVNCApplicationDestination] - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: bool """ Enables the binding cookie, which increases security against compromised @@ -875,12 +813,7 @@ class BrowserVNCApplication(TypedDict, total=False): """ self_hosted_domains: List[SelfHostedDomains] - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: bool """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -902,20 +835,6 @@ class BrowserVNCApplication(TypedDict, total=False): """ -class BrowserVNCApplicationDestination(TypedDict, total=False): - type: Literal["public", "private"] - - uri: str - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - class BrowserVNCApplicationPolicyAccessAppPolicyLink(TypedDict, total=False): id: str """The UUID of the policy""" diff --git a/src/cloudflare/types/zero_trust/access/application_create_response.py b/src/cloudflare/types/zero_trust/access/application_create_response.py index 0d58317ac07..f8de645988f 100644 --- a/src/cloudflare/types/zero_trust/access/application_create_response.py +++ b/src/cloudflare/types/zero_trust/access/application_create_response.py @@ -22,7 +22,6 @@ __all__ = [ "ApplicationCreateResponse", "SelfHostedApplication", - "SelfHostedApplicationDestination", "SelfHostedApplicationSCIMConfig", "SelfHostedApplicationSCIMConfigAuthentication", "SaaSApplication", @@ -30,11 +29,9 @@ "SaaSApplicationSCIMConfig", "SaaSApplicationSCIMConfigAuthentication", "BrowserSSHApplication", - "BrowserSSHApplicationDestination", "BrowserSSHApplicationSCIMConfig", "BrowserSSHApplicationSCIMConfigAuthentication", "BrowserVNCApplication", - "BrowserVNCApplicationDestination", "BrowserVNCApplicationSCIMConfig", "BrowserVNCApplicationSCIMConfigAuthentication", "AppLauncherApplication", @@ -62,21 +59,6 @@ "InfrastructureApplicationSCIMConfigAuthentication", ] - -class SelfHostedApplicationDestination(BaseModel): - type: Optional[Literal["public", "private"]] = None - - uri: Optional[str] = None - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - SelfHostedApplicationSCIMConfigAuthentication: TypeAlias = Union[ SCIMConfigAuthenticationHTTPBasic, SCIMConfigAuthenticationOAuthBearerToken, SCIMConfigAuthenticationOauth2 ] @@ -117,9 +99,10 @@ class SelfHostedApplicationSCIMConfig(BaseModel): class SelfHostedApplication(BaseModel): domain: str - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: str @@ -181,14 +164,6 @@ class SelfHostedApplication(BaseModel): custom_pages: Optional[List[str]] = None """The custom pages that will be displayed when applicable for this application""" - destinations: Optional[List[SelfHostedApplicationDestination]] = None - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: Optional[bool] = None """ Enables the binding cookie, which increases security against compromised @@ -234,12 +209,7 @@ class SelfHostedApplication(BaseModel): """ self_hosted_domains: Optional[List[SelfHostedDomains]] = None - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: Optional[bool] = None """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -360,20 +330,6 @@ class SaaSApplication(BaseModel): updated_at: Optional[datetime] = None -class BrowserSSHApplicationDestination(BaseModel): - type: Optional[Literal["public", "private"]] = None - - uri: Optional[str] = None - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - BrowserSSHApplicationSCIMConfigAuthentication: TypeAlias = Union[ SCIMConfigAuthenticationHTTPBasic, SCIMConfigAuthenticationOAuthBearerToken, SCIMConfigAuthenticationOauth2 ] @@ -414,9 +370,10 @@ class BrowserSSHApplicationSCIMConfig(BaseModel): class BrowserSSHApplication(BaseModel): domain: str - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: str @@ -478,14 +435,6 @@ class BrowserSSHApplication(BaseModel): custom_pages: Optional[List[str]] = None """The custom pages that will be displayed when applicable for this application""" - destinations: Optional[List[BrowserSSHApplicationDestination]] = None - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: Optional[bool] = None """ Enables the binding cookie, which increases security against compromised @@ -531,12 +480,7 @@ class BrowserSSHApplication(BaseModel): """ self_hosted_domains: Optional[List[SelfHostedDomains]] = None - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: Optional[bool] = None """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -560,20 +504,6 @@ class BrowserSSHApplication(BaseModel): updated_at: Optional[datetime] = None -class BrowserVNCApplicationDestination(BaseModel): - type: Optional[Literal["public", "private"]] = None - - uri: Optional[str] = None - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - BrowserVNCApplicationSCIMConfigAuthentication: TypeAlias = Union[ SCIMConfigAuthenticationHTTPBasic, SCIMConfigAuthenticationOAuthBearerToken, SCIMConfigAuthenticationOauth2 ] @@ -614,9 +544,10 @@ class BrowserVNCApplicationSCIMConfig(BaseModel): class BrowserVNCApplication(BaseModel): domain: str - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: str @@ -678,14 +609,6 @@ class BrowserVNCApplication(BaseModel): custom_pages: Optional[List[str]] = None """The custom pages that will be displayed when applicable for this application""" - destinations: Optional[List[BrowserVNCApplicationDestination]] = None - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: Optional[bool] = None """ Enables the binding cookie, which increases security against compromised @@ -731,12 +654,7 @@ class BrowserVNCApplication(BaseModel): """ self_hosted_domains: Optional[List[SelfHostedDomains]] = None - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: Optional[bool] = None """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -856,9 +774,10 @@ class AppLauncherApplication(BaseModel): created_at: Optional[datetime] = None domain: Optional[str] = None - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ footer_links: Optional[List[AppLauncherApplicationFooterLink]] = None @@ -990,9 +909,10 @@ class DeviceEnrollmentPermissionsApplication(BaseModel): created_at: Optional[datetime] = None domain: Optional[str] = None - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ footer_links: Optional[List[DeviceEnrollmentPermissionsApplicationFooterLink]] = None @@ -1124,9 +1044,10 @@ class BrowserIsolationPermissionsApplication(BaseModel): created_at: Optional[datetime] = None domain: Optional[str] = None - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ footer_links: Optional[List[BrowserIsolationPermissionsApplicationFooterLink]] = None diff --git a/src/cloudflare/types/zero_trust/access/application_get_response.py b/src/cloudflare/types/zero_trust/access/application_get_response.py index 462a8a5259f..1fcf4418fd1 100644 --- a/src/cloudflare/types/zero_trust/access/application_get_response.py +++ b/src/cloudflare/types/zero_trust/access/application_get_response.py @@ -22,7 +22,6 @@ __all__ = [ "ApplicationGetResponse", "SelfHostedApplication", - "SelfHostedApplicationDestination", "SelfHostedApplicationSCIMConfig", "SelfHostedApplicationSCIMConfigAuthentication", "SaaSApplication", @@ -30,11 +29,9 @@ "SaaSApplicationSCIMConfig", "SaaSApplicationSCIMConfigAuthentication", "BrowserSSHApplication", - "BrowserSSHApplicationDestination", "BrowserSSHApplicationSCIMConfig", "BrowserSSHApplicationSCIMConfigAuthentication", "BrowserVNCApplication", - "BrowserVNCApplicationDestination", "BrowserVNCApplicationSCIMConfig", "BrowserVNCApplicationSCIMConfigAuthentication", "AppLauncherApplication", @@ -62,21 +59,6 @@ "InfrastructureApplicationSCIMConfigAuthentication", ] - -class SelfHostedApplicationDestination(BaseModel): - type: Optional[Literal["public", "private"]] = None - - uri: Optional[str] = None - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - SelfHostedApplicationSCIMConfigAuthentication: TypeAlias = Union[ SCIMConfigAuthenticationHTTPBasic, SCIMConfigAuthenticationOAuthBearerToken, SCIMConfigAuthenticationOauth2 ] @@ -117,9 +99,10 @@ class SelfHostedApplicationSCIMConfig(BaseModel): class SelfHostedApplication(BaseModel): domain: str - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: str @@ -181,14 +164,6 @@ class SelfHostedApplication(BaseModel): custom_pages: Optional[List[str]] = None """The custom pages that will be displayed when applicable for this application""" - destinations: Optional[List[SelfHostedApplicationDestination]] = None - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: Optional[bool] = None """ Enables the binding cookie, which increases security against compromised @@ -234,12 +209,7 @@ class SelfHostedApplication(BaseModel): """ self_hosted_domains: Optional[List[SelfHostedDomains]] = None - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: Optional[bool] = None """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -360,20 +330,6 @@ class SaaSApplication(BaseModel): updated_at: Optional[datetime] = None -class BrowserSSHApplicationDestination(BaseModel): - type: Optional[Literal["public", "private"]] = None - - uri: Optional[str] = None - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - BrowserSSHApplicationSCIMConfigAuthentication: TypeAlias = Union[ SCIMConfigAuthenticationHTTPBasic, SCIMConfigAuthenticationOAuthBearerToken, SCIMConfigAuthenticationOauth2 ] @@ -414,9 +370,10 @@ class BrowserSSHApplicationSCIMConfig(BaseModel): class BrowserSSHApplication(BaseModel): domain: str - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: str @@ -478,14 +435,6 @@ class BrowserSSHApplication(BaseModel): custom_pages: Optional[List[str]] = None """The custom pages that will be displayed when applicable for this application""" - destinations: Optional[List[BrowserSSHApplicationDestination]] = None - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: Optional[bool] = None """ Enables the binding cookie, which increases security against compromised @@ -531,12 +480,7 @@ class BrowserSSHApplication(BaseModel): """ self_hosted_domains: Optional[List[SelfHostedDomains]] = None - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: Optional[bool] = None """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -560,20 +504,6 @@ class BrowserSSHApplication(BaseModel): updated_at: Optional[datetime] = None -class BrowserVNCApplicationDestination(BaseModel): - type: Optional[Literal["public", "private"]] = None - - uri: Optional[str] = None - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - BrowserVNCApplicationSCIMConfigAuthentication: TypeAlias = Union[ SCIMConfigAuthenticationHTTPBasic, SCIMConfigAuthenticationOAuthBearerToken, SCIMConfigAuthenticationOauth2 ] @@ -614,9 +544,10 @@ class BrowserVNCApplicationSCIMConfig(BaseModel): class BrowserVNCApplication(BaseModel): domain: str - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: str @@ -678,14 +609,6 @@ class BrowserVNCApplication(BaseModel): custom_pages: Optional[List[str]] = None """The custom pages that will be displayed when applicable for this application""" - destinations: Optional[List[BrowserVNCApplicationDestination]] = None - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: Optional[bool] = None """ Enables the binding cookie, which increases security against compromised @@ -731,12 +654,7 @@ class BrowserVNCApplication(BaseModel): """ self_hosted_domains: Optional[List[SelfHostedDomains]] = None - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: Optional[bool] = None """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -856,9 +774,10 @@ class AppLauncherApplication(BaseModel): created_at: Optional[datetime] = None domain: Optional[str] = None - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ footer_links: Optional[List[AppLauncherApplicationFooterLink]] = None @@ -990,9 +909,10 @@ class DeviceEnrollmentPermissionsApplication(BaseModel): created_at: Optional[datetime] = None domain: Optional[str] = None - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ footer_links: Optional[List[DeviceEnrollmentPermissionsApplicationFooterLink]] = None @@ -1124,9 +1044,10 @@ class BrowserIsolationPermissionsApplication(BaseModel): created_at: Optional[datetime] = None domain: Optional[str] = None - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ footer_links: Optional[List[BrowserIsolationPermissionsApplicationFooterLink]] = None diff --git a/src/cloudflare/types/zero_trust/access/application_list_response.py b/src/cloudflare/types/zero_trust/access/application_list_response.py index 88f3c0d8ad1..5360b6d7fe9 100644 --- a/src/cloudflare/types/zero_trust/access/application_list_response.py +++ b/src/cloudflare/types/zero_trust/access/application_list_response.py @@ -22,7 +22,6 @@ __all__ = [ "ApplicationListResponse", "SelfHostedApplication", - "SelfHostedApplicationDestination", "SelfHostedApplicationSCIMConfig", "SelfHostedApplicationSCIMConfigAuthentication", "SaaSApplication", @@ -30,11 +29,9 @@ "SaaSApplicationSCIMConfig", "SaaSApplicationSCIMConfigAuthentication", "BrowserSSHApplication", - "BrowserSSHApplicationDestination", "BrowserSSHApplicationSCIMConfig", "BrowserSSHApplicationSCIMConfigAuthentication", "BrowserVNCApplication", - "BrowserVNCApplicationDestination", "BrowserVNCApplicationSCIMConfig", "BrowserVNCApplicationSCIMConfigAuthentication", "AppLauncherApplication", @@ -62,21 +59,6 @@ "InfrastructureApplicationSCIMConfigAuthentication", ] - -class SelfHostedApplicationDestination(BaseModel): - type: Optional[Literal["public", "private"]] = None - - uri: Optional[str] = None - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - SelfHostedApplicationSCIMConfigAuthentication: TypeAlias = Union[ SCIMConfigAuthenticationHTTPBasic, SCIMConfigAuthenticationOAuthBearerToken, SCIMConfigAuthenticationOauth2 ] @@ -117,9 +99,10 @@ class SelfHostedApplicationSCIMConfig(BaseModel): class SelfHostedApplication(BaseModel): domain: str - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: str @@ -181,14 +164,6 @@ class SelfHostedApplication(BaseModel): custom_pages: Optional[List[str]] = None """The custom pages that will be displayed when applicable for this application""" - destinations: Optional[List[SelfHostedApplicationDestination]] = None - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: Optional[bool] = None """ Enables the binding cookie, which increases security against compromised @@ -234,12 +209,7 @@ class SelfHostedApplication(BaseModel): """ self_hosted_domains: Optional[List[SelfHostedDomains]] = None - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: Optional[bool] = None """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -360,20 +330,6 @@ class SaaSApplication(BaseModel): updated_at: Optional[datetime] = None -class BrowserSSHApplicationDestination(BaseModel): - type: Optional[Literal["public", "private"]] = None - - uri: Optional[str] = None - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - BrowserSSHApplicationSCIMConfigAuthentication: TypeAlias = Union[ SCIMConfigAuthenticationHTTPBasic, SCIMConfigAuthenticationOAuthBearerToken, SCIMConfigAuthenticationOauth2 ] @@ -414,9 +370,10 @@ class BrowserSSHApplicationSCIMConfig(BaseModel): class BrowserSSHApplication(BaseModel): domain: str - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: str @@ -478,14 +435,6 @@ class BrowserSSHApplication(BaseModel): custom_pages: Optional[List[str]] = None """The custom pages that will be displayed when applicable for this application""" - destinations: Optional[List[BrowserSSHApplicationDestination]] = None - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: Optional[bool] = None """ Enables the binding cookie, which increases security against compromised @@ -531,12 +480,7 @@ class BrowserSSHApplication(BaseModel): """ self_hosted_domains: Optional[List[SelfHostedDomains]] = None - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: Optional[bool] = None """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -560,20 +504,6 @@ class BrowserSSHApplication(BaseModel): updated_at: Optional[datetime] = None -class BrowserVNCApplicationDestination(BaseModel): - type: Optional[Literal["public", "private"]] = None - - uri: Optional[str] = None - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - BrowserVNCApplicationSCIMConfigAuthentication: TypeAlias = Union[ SCIMConfigAuthenticationHTTPBasic, SCIMConfigAuthenticationOAuthBearerToken, SCIMConfigAuthenticationOauth2 ] @@ -614,9 +544,10 @@ class BrowserVNCApplicationSCIMConfig(BaseModel): class BrowserVNCApplication(BaseModel): domain: str - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: str @@ -678,14 +609,6 @@ class BrowserVNCApplication(BaseModel): custom_pages: Optional[List[str]] = None """The custom pages that will be displayed when applicable for this application""" - destinations: Optional[List[BrowserVNCApplicationDestination]] = None - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: Optional[bool] = None """ Enables the binding cookie, which increases security against compromised @@ -731,12 +654,7 @@ class BrowserVNCApplication(BaseModel): """ self_hosted_domains: Optional[List[SelfHostedDomains]] = None - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: Optional[bool] = None """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -856,9 +774,10 @@ class AppLauncherApplication(BaseModel): created_at: Optional[datetime] = None domain: Optional[str] = None - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ footer_links: Optional[List[AppLauncherApplicationFooterLink]] = None @@ -990,9 +909,10 @@ class DeviceEnrollmentPermissionsApplication(BaseModel): created_at: Optional[datetime] = None domain: Optional[str] = None - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ footer_links: Optional[List[DeviceEnrollmentPermissionsApplicationFooterLink]] = None @@ -1124,9 +1044,10 @@ class BrowserIsolationPermissionsApplication(BaseModel): created_at: Optional[datetime] = None domain: Optional[str] = None - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ footer_links: Optional[List[BrowserIsolationPermissionsApplicationFooterLink]] = None 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 db1842e6805..81723e9e582 100644 --- a/src/cloudflare/types/zero_trust/access/application_update_params.py +++ b/src/cloudflare/types/zero_trust/access/application_update_params.py @@ -22,7 +22,6 @@ __all__ = [ "ApplicationUpdateParams", "SelfHostedApplication", - "SelfHostedApplicationDestination", "SelfHostedApplicationPolicy", "SelfHostedApplicationPolicyAccessAppPolicyLink", "SelfHostedApplicationPolicyUnionMember2", @@ -36,14 +35,12 @@ "SaaSApplicationSCIMConfig", "SaaSApplicationSCIMConfigAuthentication", "BrowserSSHApplication", - "BrowserSSHApplicationDestination", "BrowserSSHApplicationPolicy", "BrowserSSHApplicationPolicyAccessAppPolicyLink", "BrowserSSHApplicationPolicyUnionMember2", "BrowserSSHApplicationSCIMConfig", "BrowserSSHApplicationSCIMConfigAuthentication", "BrowserVNCApplication", - "BrowserVNCApplicationDestination", "BrowserVNCApplicationPolicy", "BrowserVNCApplicationPolicyAccessAppPolicyLink", "BrowserVNCApplicationPolicyUnionMember2", @@ -84,9 +81,10 @@ class SelfHostedApplication(TypedDict, total=False): domain: Required[str] - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: Required[str] @@ -146,14 +144,6 @@ class SelfHostedApplication(TypedDict, total=False): custom_pages: List[str] """The custom pages that will be displayed when applicable for this application""" - destinations: Iterable[SelfHostedApplicationDestination] - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: bool """ Enables the binding cookie, which increases security against compromised @@ -204,12 +194,7 @@ class SelfHostedApplication(TypedDict, total=False): """ self_hosted_domains: List[SelfHostedDomains] - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: bool """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -231,20 +216,6 @@ class SelfHostedApplication(TypedDict, total=False): """ -class SelfHostedApplicationDestination(TypedDict, total=False): - type: Literal["public", "private"] - - uri: str - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - class SelfHostedApplicationPolicyAccessAppPolicyLink(TypedDict, total=False): id: str """The UUID of the policy""" @@ -497,9 +468,10 @@ class SaaSApplicationSCIMConfig(TypedDict, total=False): class BrowserSSHApplication(TypedDict, total=False): domain: Required[str] - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: Required[str] @@ -559,14 +531,6 @@ class BrowserSSHApplication(TypedDict, total=False): custom_pages: List[str] """The custom pages that will be displayed when applicable for this application""" - destinations: Iterable[BrowserSSHApplicationDestination] - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: bool """ Enables the binding cookie, which increases security against compromised @@ -617,12 +581,7 @@ class BrowserSSHApplication(TypedDict, total=False): """ self_hosted_domains: List[SelfHostedDomains] - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: bool """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -644,20 +603,6 @@ class BrowserSSHApplication(TypedDict, total=False): """ -class BrowserSSHApplicationDestination(TypedDict, total=False): - type: Literal["public", "private"] - - uri: str - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - class BrowserSSHApplicationPolicyAccessAppPolicyLink(TypedDict, total=False): id: str """The UUID of the policy""" @@ -755,9 +700,10 @@ class BrowserSSHApplicationSCIMConfig(TypedDict, total=False): class BrowserVNCApplication(TypedDict, total=False): domain: Required[str] - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: Required[str] @@ -817,14 +763,6 @@ class BrowserVNCApplication(TypedDict, total=False): custom_pages: List[str] """The custom pages that will be displayed when applicable for this application""" - destinations: Iterable[BrowserVNCApplicationDestination] - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: bool """ Enables the binding cookie, which increases security against compromised @@ -875,12 +813,7 @@ class BrowserVNCApplication(TypedDict, total=False): """ self_hosted_domains: List[SelfHostedDomains] - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: bool """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -902,20 +835,6 @@ class BrowserVNCApplication(TypedDict, total=False): """ -class BrowserVNCApplicationDestination(TypedDict, total=False): - type: Literal["public", "private"] - - uri: str - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - class BrowserVNCApplicationPolicyAccessAppPolicyLink(TypedDict, total=False): id: str """The UUID of the policy""" diff --git a/src/cloudflare/types/zero_trust/access/application_update_response.py b/src/cloudflare/types/zero_trust/access/application_update_response.py index 4ccb2bedf25..13703de5c08 100644 --- a/src/cloudflare/types/zero_trust/access/application_update_response.py +++ b/src/cloudflare/types/zero_trust/access/application_update_response.py @@ -22,7 +22,6 @@ __all__ = [ "ApplicationUpdateResponse", "SelfHostedApplication", - "SelfHostedApplicationDestination", "SelfHostedApplicationSCIMConfig", "SelfHostedApplicationSCIMConfigAuthentication", "SaaSApplication", @@ -30,11 +29,9 @@ "SaaSApplicationSCIMConfig", "SaaSApplicationSCIMConfigAuthentication", "BrowserSSHApplication", - "BrowserSSHApplicationDestination", "BrowserSSHApplicationSCIMConfig", "BrowserSSHApplicationSCIMConfigAuthentication", "BrowserVNCApplication", - "BrowserVNCApplicationDestination", "BrowserVNCApplicationSCIMConfig", "BrowserVNCApplicationSCIMConfigAuthentication", "AppLauncherApplication", @@ -62,21 +59,6 @@ "InfrastructureApplicationSCIMConfigAuthentication", ] - -class SelfHostedApplicationDestination(BaseModel): - type: Optional[Literal["public", "private"]] = None - - uri: Optional[str] = None - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - SelfHostedApplicationSCIMConfigAuthentication: TypeAlias = Union[ SCIMConfigAuthenticationHTTPBasic, SCIMConfigAuthenticationOAuthBearerToken, SCIMConfigAuthenticationOauth2 ] @@ -117,9 +99,10 @@ class SelfHostedApplicationSCIMConfig(BaseModel): class SelfHostedApplication(BaseModel): domain: str - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: str @@ -181,14 +164,6 @@ class SelfHostedApplication(BaseModel): custom_pages: Optional[List[str]] = None """The custom pages that will be displayed when applicable for this application""" - destinations: Optional[List[SelfHostedApplicationDestination]] = None - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: Optional[bool] = None """ Enables the binding cookie, which increases security against compromised @@ -234,12 +209,7 @@ class SelfHostedApplication(BaseModel): """ self_hosted_domains: Optional[List[SelfHostedDomains]] = None - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: Optional[bool] = None """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -360,20 +330,6 @@ class SaaSApplication(BaseModel): updated_at: Optional[datetime] = None -class BrowserSSHApplicationDestination(BaseModel): - type: Optional[Literal["public", "private"]] = None - - uri: Optional[str] = None - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - BrowserSSHApplicationSCIMConfigAuthentication: TypeAlias = Union[ SCIMConfigAuthenticationHTTPBasic, SCIMConfigAuthenticationOAuthBearerToken, SCIMConfigAuthenticationOauth2 ] @@ -414,9 +370,10 @@ class BrowserSSHApplicationSCIMConfig(BaseModel): class BrowserSSHApplication(BaseModel): domain: str - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: str @@ -478,14 +435,6 @@ class BrowserSSHApplication(BaseModel): custom_pages: Optional[List[str]] = None """The custom pages that will be displayed when applicable for this application""" - destinations: Optional[List[BrowserSSHApplicationDestination]] = None - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: Optional[bool] = None """ Enables the binding cookie, which increases security against compromised @@ -531,12 +480,7 @@ class BrowserSSHApplication(BaseModel): """ self_hosted_domains: Optional[List[SelfHostedDomains]] = None - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: Optional[bool] = None """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -560,20 +504,6 @@ class BrowserSSHApplication(BaseModel): updated_at: Optional[datetime] = None -class BrowserVNCApplicationDestination(BaseModel): - type: Optional[Literal["public", "private"]] = None - - uri: Optional[str] = None - """The URI of the destination. - - Public destinations can include a domain and path with - [wildcards](https://developers.cloudflare.com/cloudflare-one/policies/access/app-paths/). - Private destinations are an early access feature and gated behind a feature - flag. Private destinations support private IPv4, IPv6, and Server Name - Indications (SNI) with optional port ranges. - """ - - BrowserVNCApplicationSCIMConfigAuthentication: TypeAlias = Union[ SCIMConfigAuthenticationHTTPBasic, SCIMConfigAuthenticationOAuthBearerToken, SCIMConfigAuthenticationOauth2 ] @@ -614,9 +544,10 @@ class BrowserVNCApplicationSCIMConfig(BaseModel): class BrowserVNCApplication(BaseModel): domain: str - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ type: str @@ -678,14 +609,6 @@ class BrowserVNCApplication(BaseModel): custom_pages: Optional[List[str]] = None """The custom pages that will be displayed when applicable for this application""" - destinations: Optional[List[BrowserVNCApplicationDestination]] = None - """List of destinations secured by Access. - - This supersedes `self_hosted_domains` to allow for more flexibility in defining - different types of domains. If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ - enable_binding_cookie: Optional[bool] = None """ Enables the binding cookie, which increases security against compromised @@ -731,12 +654,7 @@ class BrowserVNCApplication(BaseModel): """ self_hosted_domains: Optional[List[SelfHostedDomains]] = None - """List of public domains that Access will secure. - - This field is deprecated in favor of `destinations` and will be supported until - **November 21, 2025.** If `destinations` are provided, then - `self_hosted_domains` will be ignored. - """ + """List of domains that Access will secure.""" service_auth_401_redirect: Optional[bool] = None """Returns a 401 status code when the request is blocked by a Service Auth policy.""" @@ -856,9 +774,10 @@ class AppLauncherApplication(BaseModel): created_at: Optional[datetime] = None domain: Optional[str] = None - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ footer_links: Optional[List[AppLauncherApplicationFooterLink]] = None @@ -990,9 +909,10 @@ class DeviceEnrollmentPermissionsApplication(BaseModel): created_at: Optional[datetime] = None domain: Optional[str] = None - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ footer_links: Optional[List[DeviceEnrollmentPermissionsApplicationFooterLink]] = None @@ -1124,9 +1044,10 @@ class BrowserIsolationPermissionsApplication(BaseModel): created_at: Optional[datetime] = None domain: Optional[str] = None - """The primary hostname and path secured by Access. + """The primary hostname and path that Access will secure. - This domain will be displayed if the app is visible in the App Launcher. + If the app is visible in the App Launcher dashboard, this is the domain that + will be displayed. """ footer_links: Optional[List[BrowserIsolationPermissionsApplicationFooterLink]] = None diff --git a/src/cloudflare/types/zero_trust/organization_revoke_users_params.py b/src/cloudflare/types/zero_trust/organization_revoke_users_params.py index d9467bcd648..e7b4d725195 100644 --- a/src/cloudflare/types/zero_trust/organization_revoke_users_params.py +++ b/src/cloudflare/types/zero_trust/organization_revoke_users_params.py @@ -2,9 +2,7 @@ from __future__ import annotations -from typing_extensions import Required, Annotated, TypedDict - -from ..._utils import PropertyInfo +from typing_extensions import Required, TypedDict __all__ = ["OrganizationRevokeUsersParams"] @@ -18,19 +16,3 @@ class OrganizationRevokeUsersParams(TypedDict, total=False): zone_id: str """The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.""" - - query_devices: Annotated[bool, PropertyInfo(alias="devices")] - """When set to `true`, all devices associated with the user will be revoked.""" - - body_devices: Annotated[bool, PropertyInfo(alias="devices")] - """When set to `true`, all devices associated with the user will be revoked.""" - - user_uid: str - """The uuid of the user to revoke.""" - - warp_session_reauth: bool - """ - When set to `true`, the user will be required to re-authenticate to WARP for all - Gateway policies that enforce a WARP client session duration. When `false`, the - user’s WARP session will remain active - """ diff --git a/tests/api_resources/zero_trust/access/test_applications.py b/tests/api_resources/zero_trust/access/test_applications.py index 9ba489166cb..4ca45e92de6 100644 --- a/tests/api_resources/zero_trust/access/test_applications.py +++ b/tests/api_resources/zero_trust/access/test_applications.py @@ -59,28 +59,6 @@ def test_method_create_with_all_params_overload_1(self, client: Cloudflare) -> N custom_deny_url="custom_deny_url", custom_non_identity_deny_url="custom_non_identity_deny_url", custom_pages=["699d98642c564d2e855e9661899b7252"], - destinations=[ - { - "type": "public", - "uri": "test.example.com/admin", - }, - { - "type": "public", - "uri": "test.anotherexample.com/staff", - }, - { - "type": "public", - "uri": "10.5.0.2", - }, - { - "type": "public", - "uri": "10.5.0.3/32:1234-4321", - }, - { - "type": "public", - "uri": "private-sni.example.com", - }, - ], enable_binding_cookie=True, http_only_cookie_attribute=True, logo_url="https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg", @@ -330,28 +308,6 @@ def test_method_create_with_all_params_overload_3(self, client: Cloudflare) -> N custom_deny_url="custom_deny_url", custom_non_identity_deny_url="custom_non_identity_deny_url", custom_pages=["699d98642c564d2e855e9661899b7252"], - destinations=[ - { - "type": "public", - "uri": "test.example.com/admin", - }, - { - "type": "public", - "uri": "test.anotherexample.com/staff", - }, - { - "type": "public", - "uri": "10.5.0.2", - }, - { - "type": "public", - "uri": "10.5.0.3/32:1234-4321", - }, - { - "type": "public", - "uri": "private-sni.example.com", - }, - ], enable_binding_cookie=True, http_only_cookie_attribute=True, logo_url="https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg", @@ -480,28 +436,6 @@ def test_method_create_with_all_params_overload_4(self, client: Cloudflare) -> N custom_deny_url="custom_deny_url", custom_non_identity_deny_url="custom_non_identity_deny_url", custom_pages=["699d98642c564d2e855e9661899b7252"], - destinations=[ - { - "type": "public", - "uri": "test.example.com/admin", - }, - { - "type": "public", - "uri": "test.anotherexample.com/staff", - }, - { - "type": "public", - "uri": "10.5.0.2", - }, - { - "type": "public", - "uri": "10.5.0.3/32:1234-4321", - }, - { - "type": "public", - "uri": "private-sni.example.com", - }, - ], enable_binding_cookie=True, http_only_cookie_attribute=True, logo_url="https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg", @@ -1167,28 +1101,6 @@ def test_method_update_with_all_params_overload_1(self, client: Cloudflare) -> N custom_deny_url="custom_deny_url", custom_non_identity_deny_url="custom_non_identity_deny_url", custom_pages=["699d98642c564d2e855e9661899b7252"], - destinations=[ - { - "type": "public", - "uri": "test.example.com/admin", - }, - { - "type": "public", - "uri": "test.anotherexample.com/staff", - }, - { - "type": "public", - "uri": "10.5.0.2", - }, - { - "type": "public", - "uri": "10.5.0.3/32:1234-4321", - }, - { - "type": "public", - "uri": "private-sni.example.com", - }, - ], enable_binding_cookie=True, http_only_cookie_attribute=True, logo_url="https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg", @@ -1464,28 +1376,6 @@ def test_method_update_with_all_params_overload_3(self, client: Cloudflare) -> N custom_deny_url="custom_deny_url", custom_non_identity_deny_url="custom_non_identity_deny_url", custom_pages=["699d98642c564d2e855e9661899b7252"], - destinations=[ - { - "type": "public", - "uri": "test.example.com/admin", - }, - { - "type": "public", - "uri": "test.anotherexample.com/staff", - }, - { - "type": "public", - "uri": "10.5.0.2", - }, - { - "type": "public", - "uri": "10.5.0.3/32:1234-4321", - }, - { - "type": "public", - "uri": "private-sni.example.com", - }, - ], enable_binding_cookie=True, http_only_cookie_attribute=True, logo_url="https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg", @@ -1628,28 +1518,6 @@ def test_method_update_with_all_params_overload_4(self, client: Cloudflare) -> N custom_deny_url="custom_deny_url", custom_non_identity_deny_url="custom_non_identity_deny_url", custom_pages=["699d98642c564d2e855e9661899b7252"], - destinations=[ - { - "type": "public", - "uri": "test.example.com/admin", - }, - { - "type": "public", - "uri": "test.anotherexample.com/staff", - }, - { - "type": "public", - "uri": "10.5.0.2", - }, - { - "type": "public", - "uri": "10.5.0.3/32:1234-4321", - }, - { - "type": "public", - "uri": "private-sni.example.com", - }, - ], enable_binding_cookie=True, http_only_cookie_attribute=True, logo_url="https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg", @@ -2660,28 +2528,6 @@ async def test_method_create_with_all_params_overload_1(self, async_client: Asyn custom_deny_url="custom_deny_url", custom_non_identity_deny_url="custom_non_identity_deny_url", custom_pages=["699d98642c564d2e855e9661899b7252"], - destinations=[ - { - "type": "public", - "uri": "test.example.com/admin", - }, - { - "type": "public", - "uri": "test.anotherexample.com/staff", - }, - { - "type": "public", - "uri": "10.5.0.2", - }, - { - "type": "public", - "uri": "10.5.0.3/32:1234-4321", - }, - { - "type": "public", - "uri": "private-sni.example.com", - }, - ], enable_binding_cookie=True, http_only_cookie_attribute=True, logo_url="https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg", @@ -2931,28 +2777,6 @@ async def test_method_create_with_all_params_overload_3(self, async_client: Asyn custom_deny_url="custom_deny_url", custom_non_identity_deny_url="custom_non_identity_deny_url", custom_pages=["699d98642c564d2e855e9661899b7252"], - destinations=[ - { - "type": "public", - "uri": "test.example.com/admin", - }, - { - "type": "public", - "uri": "test.anotherexample.com/staff", - }, - { - "type": "public", - "uri": "10.5.0.2", - }, - { - "type": "public", - "uri": "10.5.0.3/32:1234-4321", - }, - { - "type": "public", - "uri": "private-sni.example.com", - }, - ], enable_binding_cookie=True, http_only_cookie_attribute=True, logo_url="https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg", @@ -3081,28 +2905,6 @@ async def test_method_create_with_all_params_overload_4(self, async_client: Asyn custom_deny_url="custom_deny_url", custom_non_identity_deny_url="custom_non_identity_deny_url", custom_pages=["699d98642c564d2e855e9661899b7252"], - destinations=[ - { - "type": "public", - "uri": "test.example.com/admin", - }, - { - "type": "public", - "uri": "test.anotherexample.com/staff", - }, - { - "type": "public", - "uri": "10.5.0.2", - }, - { - "type": "public", - "uri": "10.5.0.3/32:1234-4321", - }, - { - "type": "public", - "uri": "private-sni.example.com", - }, - ], enable_binding_cookie=True, http_only_cookie_attribute=True, logo_url="https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg", @@ -3768,28 +3570,6 @@ async def test_method_update_with_all_params_overload_1(self, async_client: Asyn custom_deny_url="custom_deny_url", custom_non_identity_deny_url="custom_non_identity_deny_url", custom_pages=["699d98642c564d2e855e9661899b7252"], - destinations=[ - { - "type": "public", - "uri": "test.example.com/admin", - }, - { - "type": "public", - "uri": "test.anotherexample.com/staff", - }, - { - "type": "public", - "uri": "10.5.0.2", - }, - { - "type": "public", - "uri": "10.5.0.3/32:1234-4321", - }, - { - "type": "public", - "uri": "private-sni.example.com", - }, - ], enable_binding_cookie=True, http_only_cookie_attribute=True, logo_url="https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg", @@ -4065,28 +3845,6 @@ async def test_method_update_with_all_params_overload_3(self, async_client: Asyn custom_deny_url="custom_deny_url", custom_non_identity_deny_url="custom_non_identity_deny_url", custom_pages=["699d98642c564d2e855e9661899b7252"], - destinations=[ - { - "type": "public", - "uri": "test.example.com/admin", - }, - { - "type": "public", - "uri": "test.anotherexample.com/staff", - }, - { - "type": "public", - "uri": "10.5.0.2", - }, - { - "type": "public", - "uri": "10.5.0.3/32:1234-4321", - }, - { - "type": "public", - "uri": "private-sni.example.com", - }, - ], enable_binding_cookie=True, http_only_cookie_attribute=True, logo_url="https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg", @@ -4229,28 +3987,6 @@ async def test_method_update_with_all_params_overload_4(self, async_client: Asyn custom_deny_url="custom_deny_url", custom_non_identity_deny_url="custom_non_identity_deny_url", custom_pages=["699d98642c564d2e855e9661899b7252"], - destinations=[ - { - "type": "public", - "uri": "test.example.com/admin", - }, - { - "type": "public", - "uri": "test.anotherexample.com/staff", - }, - { - "type": "public", - "uri": "10.5.0.2", - }, - { - "type": "public", - "uri": "10.5.0.3/32:1234-4321", - }, - { - "type": "public", - "uri": "private-sni.example.com", - }, - ], enable_binding_cookie=True, http_only_cookie_attribute=True, logo_url="https://www.cloudflare.com/img/logo-web-badges/cf-logo-on-white-bg.svg", diff --git a/tests/api_resources/zero_trust/test_organizations.py b/tests/api_resources/zero_trust/test_organizations.py index fb6bc127b49..c9e36255338 100644 --- a/tests/api_resources/zero_trust/test_organizations.py +++ b/tests/api_resources/zero_trust/test_organizations.py @@ -246,10 +246,6 @@ def test_method_revoke_users_with_all_params(self, client: Cloudflare) -> None: organization = client.zero_trust.organizations.revoke_users( email="test@example.com", account_id="account_id", - query_devices=True, - body_devices=True, - user_uid="699d98642c564d2e855e9661899b7252", - warp_session_reauth=True, ) assert_matches_type(Optional[OrganizationRevokeUsersResponse], organization, path=["response"]) @@ -526,10 +522,6 @@ async def test_method_revoke_users_with_all_params(self, async_client: AsyncClou organization = await async_client.zero_trust.organizations.revoke_users( email="test@example.com", account_id="account_id", - query_devices=True, - body_devices=True, - user_uid="699d98642c564d2e855e9661899b7252", - warp_session_reauth=True, ) assert_matches_type(Optional[OrganizationRevokeUsersResponse], organization, path=["response"])