Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1351
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b4dba4430b26f417c70439d217f2331c4fc6ad5fec2364423ae4802bb610bdc3.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-43ec199cd07941ed7f26e1a4d9b6b9be625fc1ca913b13b91cdeb9aea7b55219.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@
from .....types.zero_trust.access.cors_headers_param import CORSHeadersParam
from .....types.zero_trust.access.self_hosted_domains import SelfHostedDomains
from .....types.zero_trust.access.application_get_response import ApplicationGetResponse
from .....types.zero_trust.access.application_policy_param import ApplicationPolicyParam
from .....types.zero_trust.access.application_list_response import ApplicationListResponse
from .....types.zero_trust.access.application_create_response import ApplicationCreateResponse
from .....types.zero_trust.access.application_delete_response import ApplicationDeleteResponse
Expand Down Expand Up @@ -832,6 +833,45 @@ def create(
"""
...

@overload
def create(
self,
*,
target_criteria: Iterable[application_create_params.InfrastructureApplicationTargetCriterion],
type: ApplicationType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
policies: Iterable[ApplicationPolicyParam] | 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,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[ApplicationCreateResponse]:
"""
Adds a new application to Access.

Args:
type: The application type.

account_id: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

name: The name of the application.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds
"""
...

def create(
self,
*,
Expand All @@ -854,7 +894,9 @@ def create(
name: str | NotGiven = NOT_GIVEN,
options_preflight_bypass: bool | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
policies: List[application_create_params.SelfHostedApplicationPolicy] | NotGiven = NOT_GIVEN,
policies: List[application_create_params.SelfHostedApplicationPolicy]
| Iterable[ApplicationPolicyParam]
| NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
scim_config: application_create_params.SelfHostedApplicationSCIMConfig | NotGiven = NOT_GIVEN,
self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN,
Expand All @@ -869,6 +911,8 @@ def create(
header_bg_color: str | NotGiven = NOT_GIVEN,
landing_page_design: application_create_params.AppLauncherApplicationLandingPageDesign | NotGiven = NOT_GIVEN,
skip_app_launcher_login_page: bool | NotGiven = NOT_GIVEN,
target_criteria: Iterable[application_create_params.InfrastructureApplicationTargetCriterion]
| 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,
Expand Down Expand Up @@ -926,6 +970,7 @@ def create(
"header_bg_color": header_bg_color,
"landing_page_design": landing_page_design,
"skip_app_launcher_login_page": skip_app_launcher_login_page,
"target_criteria": target_criteria,
},
application_create_params.ApplicationCreateParams,
),
Expand Down Expand Up @@ -1686,6 +1731,48 @@ def update(
"""
...

@overload
def update(
self,
app_id: AppID,
*,
target_criteria: Iterable[application_update_params.InfrastructureApplicationTargetCriterion],
type: ApplicationType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
policies: Iterable[ApplicationPolicyParam] | 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,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[ApplicationUpdateResponse]:
"""
Updates an Access application.

Args:
app_id: Identifier

type: The application type.

account_id: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

name: The name of the application.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds
"""
...

def update(
self,
app_id: AppID,
Expand All @@ -1709,7 +1796,9 @@ def update(
name: str | NotGiven = NOT_GIVEN,
options_preflight_bypass: bool | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
policies: List[application_update_params.SelfHostedApplicationPolicy] | NotGiven = NOT_GIVEN,
policies: List[application_update_params.SelfHostedApplicationPolicy]
| Iterable[ApplicationPolicyParam]
| NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
scim_config: application_update_params.SelfHostedApplicationSCIMConfig | NotGiven = NOT_GIVEN,
self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN,
Expand All @@ -1724,6 +1813,8 @@ def update(
header_bg_color: str | NotGiven = NOT_GIVEN,
landing_page_design: application_update_params.AppLauncherApplicationLandingPageDesign | NotGiven = NOT_GIVEN,
skip_app_launcher_login_page: bool | NotGiven = NOT_GIVEN,
target_criteria: Iterable[application_update_params.InfrastructureApplicationTargetCriterion]
| 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,
Expand Down Expand Up @@ -1783,6 +1874,7 @@ def update(
"header_bg_color": header_bg_color,
"landing_page_design": landing_page_design,
"skip_app_launcher_login_page": skip_app_launcher_login_page,
"target_criteria": target_criteria,
},
application_update_params.ApplicationUpdateParams,
),
Expand Down Expand Up @@ -2781,6 +2873,45 @@ async def create(
"""
...

@overload
async def create(
self,
*,
target_criteria: Iterable[application_create_params.InfrastructureApplicationTargetCriterion],
type: ApplicationType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
policies: Iterable[ApplicationPolicyParam] | 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,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[ApplicationCreateResponse]:
"""
Adds a new application to Access.

Args:
type: The application type.

account_id: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

name: The name of the application.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds
"""
...

async def create(
self,
*,
Expand All @@ -2803,7 +2934,9 @@ async def create(
name: str | NotGiven = NOT_GIVEN,
options_preflight_bypass: bool | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
policies: List[application_create_params.SelfHostedApplicationPolicy] | NotGiven = NOT_GIVEN,
policies: List[application_create_params.SelfHostedApplicationPolicy]
| Iterable[ApplicationPolicyParam]
| NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
scim_config: application_create_params.SelfHostedApplicationSCIMConfig | NotGiven = NOT_GIVEN,
self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN,
Expand All @@ -2818,6 +2951,8 @@ async def create(
header_bg_color: str | NotGiven = NOT_GIVEN,
landing_page_design: application_create_params.AppLauncherApplicationLandingPageDesign | NotGiven = NOT_GIVEN,
skip_app_launcher_login_page: bool | NotGiven = NOT_GIVEN,
target_criteria: Iterable[application_create_params.InfrastructureApplicationTargetCriterion]
| 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,
Expand Down Expand Up @@ -2875,6 +3010,7 @@ async def create(
"header_bg_color": header_bg_color,
"landing_page_design": landing_page_design,
"skip_app_launcher_login_page": skip_app_launcher_login_page,
"target_criteria": target_criteria,
},
application_create_params.ApplicationCreateParams,
),
Expand Down Expand Up @@ -3635,6 +3771,48 @@ async def update(
"""
...

@overload
async def update(
self,
app_id: AppID,
*,
target_criteria: Iterable[application_update_params.InfrastructureApplicationTargetCriterion],
type: ApplicationType,
account_id: str | NotGiven = NOT_GIVEN,
zone_id: str | NotGiven = NOT_GIVEN,
name: str | NotGiven = NOT_GIVEN,
policies: Iterable[ApplicationPolicyParam] | 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,
extra_query: Query | None = None,
extra_body: Body | None = None,
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> Optional[ApplicationUpdateResponse]:
"""
Updates an Access application.

Args:
app_id: Identifier

type: The application type.

account_id: The Account ID to use for this endpoint. Mutually exclusive with the Zone ID.

zone_id: The Zone ID to use for this endpoint. Mutually exclusive with the Account ID.

name: The name of the application.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request

extra_body: Add additional JSON properties to the request

timeout: Override the client-level default timeout for this request, in seconds
"""
...

async def update(
self,
app_id: AppID,
Expand All @@ -3658,7 +3836,9 @@ async def update(
name: str | NotGiven = NOT_GIVEN,
options_preflight_bypass: bool | NotGiven = NOT_GIVEN,
path_cookie_attribute: bool | NotGiven = NOT_GIVEN,
policies: List[application_update_params.SelfHostedApplicationPolicy] | NotGiven = NOT_GIVEN,
policies: List[application_update_params.SelfHostedApplicationPolicy]
| Iterable[ApplicationPolicyParam]
| NotGiven = NOT_GIVEN,
same_site_cookie_attribute: str | NotGiven = NOT_GIVEN,
scim_config: application_update_params.SelfHostedApplicationSCIMConfig | NotGiven = NOT_GIVEN,
self_hosted_domains: List[SelfHostedDomains] | NotGiven = NOT_GIVEN,
Expand All @@ -3673,6 +3853,8 @@ async def update(
header_bg_color: str | NotGiven = NOT_GIVEN,
landing_page_design: application_update_params.AppLauncherApplicationLandingPageDesign | NotGiven = NOT_GIVEN,
skip_app_launcher_login_page: bool | NotGiven = NOT_GIVEN,
target_criteria: Iterable[application_update_params.InfrastructureApplicationTargetCriterion]
| 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,
Expand Down Expand Up @@ -3732,6 +3914,7 @@ async def update(
"header_bg_color": header_bg_color,
"landing_page_design": landing_page_design,
"skip_app_launcher_login_page": skip_app_launcher_login_page,
"target_criteria": target_criteria,
},
application_update_params.ApplicationUpdateParams,
),
Expand Down
Loading