From 5251292a578dfcc6295d31e20826594909b8636c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 10 Apr 2024 00:52:21 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#258) --- api.md | 1 - src/cloudflare/types/zero_trust/__init__.py | 2 -- src/cloudflare/types/zero_trust/access_rule.py | 15 ++++++++++++--- .../types/zero_trust/access_rule_param.py | 15 ++++++++++++--- .../zero_trust/any_valid_service_token_rule.py | 10 ---------- .../any_valid_service_token_rule_param.py | 12 ------------ 6 files changed, 24 insertions(+), 31 deletions(-) delete mode 100644 src/cloudflare/types/zero_trust/any_valid_service_token_rule.py delete mode 100644 src/cloudflare/types/zero_trust/any_valid_service_token_rule_param.py diff --git a/api.md b/api.md index d21c136e7575..178fa42b67c7 100644 --- a/api.md +++ b/api.md @@ -4901,7 +4901,6 @@ Types: ```python from cloudflare.types.zero_trust import ( AccessRule, - AnyValidServiceTokenRule, AuthenticationMethodRule, AzureGroupRule, CertificateRule, diff --git a/src/cloudflare/types/zero_trust/__init__.py b/src/cloudflare/types/zero_trust/__init__.py index 99795df55fd1..4e364446e6b7 100644 --- a/src/cloudflare/types/zero_trust/__init__.py +++ b/src/cloudflare/types/zero_trust/__init__.py @@ -61,7 +61,6 @@ from .generic_oauth_config_param import GenericOAuthConfigParam as GenericOAuthConfigParam from .organization_create_params import OrganizationCreateParams as OrganizationCreateParams from .organization_update_params import OrganizationUpdateParams as OrganizationUpdateParams -from .any_valid_service_token_rule import AnyValidServiceTokenRule as AnyValidServiceTokenRule from .external_evaluation_rule_param import ExternalEvaluationRuleParam as ExternalEvaluationRuleParam from .github_organization_rule_param import GitHubOrganizationRuleParam as GitHubOrganizationRuleParam from .identity_provider_create_params import IdentityProviderCreateParams as IdentityProviderCreateParams @@ -72,7 +71,6 @@ from .organization_revoke_users_params import OrganizationRevokeUsersParams as OrganizationRevokeUsersParams from .connectivity_setting_get_response import ConnectivitySettingGetResponse as ConnectivitySettingGetResponse from .identity_provider_delete_response import IdentityProviderDeleteResponse as IdentityProviderDeleteResponse -from .any_valid_service_token_rule_param import AnyValidServiceTokenRuleParam as AnyValidServiceTokenRuleParam from .connectivity_setting_edit_response import ConnectivitySettingEditResponse as ConnectivitySettingEditResponse from .organization_revoke_users_response import OrganizationRevokeUsersResponse as OrganizationRevokeUsersResponse from .unnamed_schema_ref_bf9e2abcf1b78a6cab8e6e29e2228a11 import ( diff --git a/src/cloudflare/types/zero_trust/access_rule.py b/src/cloudflare/types/zero_trust/access_rule.py index 87bdc0cf4a4e..10ba8f0be7bf 100644 --- a/src/cloudflare/types/zero_trust/access_rule.py +++ b/src/cloudflare/types/zero_trust/access_rule.py @@ -20,9 +20,18 @@ from .external_evaluation_rule import ExternalEvaluationRule from .github_organization_rule import GitHubOrganizationRule from .authentication_method_rule import AuthenticationMethodRule -from .any_valid_service_token_rule import AnyValidServiceTokenRule -__all__ = ["AccessRule", "AccessDevicePostureRule", "AccessDevicePostureRuleDevicePosture"] +__all__ = [ + "AccessRule", + "AccessAnyValidServiceTokenRule", + "AccessDevicePostureRule", + "AccessDevicePostureRuleDevicePosture", +] + + +class AccessAnyValidServiceTokenRule(BaseModel): + any_valid_service_token: object + """An empty object which matches on all service tokens.""" class AccessDevicePostureRuleDevicePosture(BaseModel): @@ -49,7 +58,7 @@ class AccessDevicePostureRule(BaseModel): OktaGroupRule, SAMLGroupRule, ServiceTokenRule, - AnyValidServiceTokenRule, + AccessAnyValidServiceTokenRule, ExternalEvaluationRule, CountryRule, AuthenticationMethodRule, diff --git a/src/cloudflare/types/zero_trust/access_rule_param.py b/src/cloudflare/types/zero_trust/access_rule_param.py index bdf9e2ff2312..1b5ae8d5b7ee 100644 --- a/src/cloudflare/types/zero_trust/access_rule_param.py +++ b/src/cloudflare/types/zero_trust/access_rule_param.py @@ -22,9 +22,18 @@ from .external_evaluation_rule_param import ExternalEvaluationRuleParam from .github_organization_rule_param import GitHubOrganizationRuleParam from .authentication_method_rule_param import AuthenticationMethodRuleParam -from .any_valid_service_token_rule_param import AnyValidServiceTokenRuleParam -__all__ = ["AccessRuleParam", "AccessDevicePostureRule", "AccessDevicePostureRuleDevicePosture"] +__all__ = [ + "AccessRuleParam", + "AccessAnyValidServiceTokenRule", + "AccessDevicePostureRule", + "AccessDevicePostureRuleDevicePosture", +] + + +class AccessAnyValidServiceTokenRule(TypedDict, total=False): + any_valid_service_token: Required[object] + """An empty object which matches on all service tokens.""" class AccessDevicePostureRuleDevicePosture(TypedDict, total=False): @@ -51,7 +60,7 @@ class AccessDevicePostureRule(TypedDict, total=False): OktaGroupRuleParam, SAMLGroupRuleParam, ServiceTokenRuleParam, - AnyValidServiceTokenRuleParam, + AccessAnyValidServiceTokenRule, ExternalEvaluationRuleParam, CountryRuleParam, AuthenticationMethodRuleParam, diff --git a/src/cloudflare/types/zero_trust/any_valid_service_token_rule.py b/src/cloudflare/types/zero_trust/any_valid_service_token_rule.py deleted file mode 100644 index 2613ccdd5fdd..000000000000 --- a/src/cloudflare/types/zero_trust/any_valid_service_token_rule.py +++ /dev/null @@ -1,10 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from ..._models import BaseModel - -__all__ = ["AnyValidServiceTokenRule"] - - -class AnyValidServiceTokenRule(BaseModel): - any_valid_service_token: object - """An empty object which matches on all service tokens.""" diff --git a/src/cloudflare/types/zero_trust/any_valid_service_token_rule_param.py b/src/cloudflare/types/zero_trust/any_valid_service_token_rule_param.py deleted file mode 100644 index 462d4957f898..000000000000 --- a/src/cloudflare/types/zero_trust/any_valid_service_token_rule_param.py +++ /dev/null @@ -1,12 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Required, TypedDict - -__all__ = ["AnyValidServiceTokenRuleParam"] - - -class AnyValidServiceTokenRuleParam(TypedDict, total=False): - any_valid_service_token: Required[object] - """An empty object which matches on all service tokens."""