From 22d7cc8175004a5aba593bf16e8ef97cf7dcff1d 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:57:36 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#259) --- api.md | 1 - src/cloudflare/types/zero_trust/__init__.py | 2 -- src/cloudflare/types/zero_trust/access_rule.py | 16 ++++++++++++++-- .../types/zero_trust/access_rule_param.py | 16 ++++++++++++++-- .../zero_trust/authentication_method_rule.py | 16 ---------------- .../authentication_method_rule_param.py | 18 ------------------ 6 files changed, 28 insertions(+), 41 deletions(-) delete mode 100644 src/cloudflare/types/zero_trust/authentication_method_rule.py delete mode 100644 src/cloudflare/types/zero_trust/authentication_method_rule_param.py diff --git a/api.md b/api.md index 178fa42b67c7..c275036987a7 100644 --- a/api.md +++ b/api.md @@ -4901,7 +4901,6 @@ Types: ```python from cloudflare.types.zero_trust import ( AccessRule, - AuthenticationMethodRule, AzureGroupRule, CertificateRule, CountryRule, diff --git a/src/cloudflare/types/zero_trust/__init__.py b/src/cloudflare/types/zero_trust/__init__.py index 4e364446e6b7..4592f85007cd 100644 --- a/src/cloudflare/types/zero_trust/__init__.py +++ b/src/cloudflare/types/zero_trust/__init__.py @@ -57,7 +57,6 @@ from .external_evaluation_rule import ExternalEvaluationRule as ExternalEvaluationRule from .github_organization_rule import GitHubOrganizationRule as GitHubOrganizationRule from .service_token_rule_param import ServiceTokenRuleParam as ServiceTokenRuleParam -from .authentication_method_rule import AuthenticationMethodRule as AuthenticationMethodRule 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 @@ -66,7 +65,6 @@ from .identity_provider_create_params import IdentityProviderCreateParams as IdentityProviderCreateParams from .identity_provider_list_response import IdentityProviderListResponse as IdentityProviderListResponse from .identity_provider_update_params import IdentityProviderUpdateParams as IdentityProviderUpdateParams -from .authentication_method_rule_param import AuthenticationMethodRuleParam as AuthenticationMethodRuleParam from .connectivity_setting_edit_params import ConnectivitySettingEditParams as ConnectivitySettingEditParams from .organization_revoke_users_params import OrganizationRevokeUsersParams as OrganizationRevokeUsersParams from .connectivity_setting_get_response import ConnectivitySettingGetResponse as ConnectivitySettingGetResponse diff --git a/src/cloudflare/types/zero_trust/access_rule.py b/src/cloudflare/types/zero_trust/access_rule.py index 10ba8f0be7bf..fbb7ee1c440c 100644 --- a/src/cloudflare/types/zero_trust/access_rule.py +++ b/src/cloudflare/types/zero_trust/access_rule.py @@ -19,11 +19,12 @@ from .service_token_rule import ServiceTokenRule from .external_evaluation_rule import ExternalEvaluationRule from .github_organization_rule import GitHubOrganizationRule -from .authentication_method_rule import AuthenticationMethodRule __all__ = [ "AccessRule", "AccessAnyValidServiceTokenRule", + "AccessAuthenticationMethodRule", + "AccessAuthenticationMethodRuleAuthMethod", "AccessDevicePostureRule", "AccessDevicePostureRuleDevicePosture", ] @@ -34,6 +35,17 @@ class AccessAnyValidServiceTokenRule(BaseModel): """An empty object which matches on all service tokens.""" +class AccessAuthenticationMethodRuleAuthMethod(BaseModel): + auth_method: str + """ + The type of authentication method https://datatracker.ietf.org/doc/html/rfc8176. + """ + + +class AccessAuthenticationMethodRule(BaseModel): + auth_method: AccessAuthenticationMethodRuleAuthMethod + + class AccessDevicePostureRuleDevicePosture(BaseModel): integration_uid: str """The ID of a device posture integration.""" @@ -61,6 +73,6 @@ class AccessDevicePostureRule(BaseModel): AccessAnyValidServiceTokenRule, ExternalEvaluationRule, CountryRule, - AuthenticationMethodRule, + AccessAuthenticationMethodRule, AccessDevicePostureRule, ] diff --git a/src/cloudflare/types/zero_trust/access_rule_param.py b/src/cloudflare/types/zero_trust/access_rule_param.py index 1b5ae8d5b7ee..c4cd63fbdf41 100644 --- a/src/cloudflare/types/zero_trust/access_rule_param.py +++ b/src/cloudflare/types/zero_trust/access_rule_param.py @@ -21,11 +21,12 @@ from .service_token_rule_param import ServiceTokenRuleParam from .external_evaluation_rule_param import ExternalEvaluationRuleParam from .github_organization_rule_param import GitHubOrganizationRuleParam -from .authentication_method_rule_param import AuthenticationMethodRuleParam __all__ = [ "AccessRuleParam", "AccessAnyValidServiceTokenRule", + "AccessAuthenticationMethodRule", + "AccessAuthenticationMethodRuleAuthMethod", "AccessDevicePostureRule", "AccessDevicePostureRuleDevicePosture", ] @@ -36,6 +37,17 @@ class AccessAnyValidServiceTokenRule(TypedDict, total=False): """An empty object which matches on all service tokens.""" +class AccessAuthenticationMethodRuleAuthMethod(TypedDict, total=False): + auth_method: Required[str] + """ + The type of authentication method https://datatracker.ietf.org/doc/html/rfc8176. + """ + + +class AccessAuthenticationMethodRule(TypedDict, total=False): + auth_method: Required[AccessAuthenticationMethodRuleAuthMethod] + + class AccessDevicePostureRuleDevicePosture(TypedDict, total=False): integration_uid: Required[str] """The ID of a device posture integration.""" @@ -63,6 +75,6 @@ class AccessDevicePostureRule(TypedDict, total=False): AccessAnyValidServiceTokenRule, ExternalEvaluationRuleParam, CountryRuleParam, - AuthenticationMethodRuleParam, + AccessAuthenticationMethodRule, AccessDevicePostureRule, ] diff --git a/src/cloudflare/types/zero_trust/authentication_method_rule.py b/src/cloudflare/types/zero_trust/authentication_method_rule.py deleted file mode 100644 index 6c95a0f424b5..000000000000 --- a/src/cloudflare/types/zero_trust/authentication_method_rule.py +++ /dev/null @@ -1,16 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from ..._models import BaseModel - -__all__ = ["AuthenticationMethodRule", "AuthMethod"] - - -class AuthMethod(BaseModel): - auth_method: str - """ - The type of authentication method https://datatracker.ietf.org/doc/html/rfc8176. - """ - - -class AuthenticationMethodRule(BaseModel): - auth_method: AuthMethod diff --git a/src/cloudflare/types/zero_trust/authentication_method_rule_param.py b/src/cloudflare/types/zero_trust/authentication_method_rule_param.py deleted file mode 100644 index 369c85cbe305..000000000000 --- a/src/cloudflare/types/zero_trust/authentication_method_rule_param.py +++ /dev/null @@ -1,18 +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__ = ["AuthenticationMethodRuleParam", "AuthMethod"] - - -class AuthMethod(TypedDict, total=False): - auth_method: Required[str] - """ - The type of authentication method https://datatracker.ietf.org/doc/html/rfc8176. - """ - - -class AuthenticationMethodRuleParam(TypedDict, total=False): - auth_method: Required[AuthMethod]