Skip to content

Commit 1e66658

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#259)
1 parent 33da158 commit 1e66658

File tree

6 files changed

+28
-41
lines changed

6 files changed

+28
-41
lines changed

api.md

-1
Original file line numberDiff line numberDiff line change
@@ -4901,7 +4901,6 @@ Types:
49014901
```python
49024902
from cloudflare.types.zero_trust import (
49034903
AccessRule,
4904-
AuthenticationMethodRule,
49054904
AzureGroupRule,
49064905
CertificateRule,
49074906
CountryRule,

src/cloudflare/types/zero_trust/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
from .external_evaluation_rule import ExternalEvaluationRule as ExternalEvaluationRule
5858
from .github_organization_rule import GitHubOrganizationRule as GitHubOrganizationRule
5959
from .service_token_rule_param import ServiceTokenRuleParam as ServiceTokenRuleParam
60-
from .authentication_method_rule import AuthenticationMethodRule as AuthenticationMethodRule
6160
from .generic_oauth_config_param import GenericOAuthConfigParam as GenericOAuthConfigParam
6261
from .organization_create_params import OrganizationCreateParams as OrganizationCreateParams
6362
from .organization_update_params import OrganizationUpdateParams as OrganizationUpdateParams
@@ -66,7 +65,6 @@
6665
from .identity_provider_create_params import IdentityProviderCreateParams as IdentityProviderCreateParams
6766
from .identity_provider_list_response import IdentityProviderListResponse as IdentityProviderListResponse
6867
from .identity_provider_update_params import IdentityProviderUpdateParams as IdentityProviderUpdateParams
69-
from .authentication_method_rule_param import AuthenticationMethodRuleParam as AuthenticationMethodRuleParam
7068
from .connectivity_setting_edit_params import ConnectivitySettingEditParams as ConnectivitySettingEditParams
7169
from .organization_revoke_users_params import OrganizationRevokeUsersParams as OrganizationRevokeUsersParams
7270
from .connectivity_setting_get_response import ConnectivitySettingGetResponse as ConnectivitySettingGetResponse

src/cloudflare/types/zero_trust/access_rule.py

+14-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@
1919
from .service_token_rule import ServiceTokenRule
2020
from .external_evaluation_rule import ExternalEvaluationRule
2121
from .github_organization_rule import GitHubOrganizationRule
22-
from .authentication_method_rule import AuthenticationMethodRule
2322

2423
__all__ = [
2524
"AccessRule",
2625
"AccessAnyValidServiceTokenRule",
26+
"AccessAuthenticationMethodRule",
27+
"AccessAuthenticationMethodRuleAuthMethod",
2728
"AccessDevicePostureRule",
2829
"AccessDevicePostureRuleDevicePosture",
2930
]
@@ -34,6 +35,17 @@ class AccessAnyValidServiceTokenRule(BaseModel):
3435
"""An empty object which matches on all service tokens."""
3536

3637

38+
class AccessAuthenticationMethodRuleAuthMethod(BaseModel):
39+
auth_method: str
40+
"""
41+
The type of authentication method https://datatracker.ietf.org/doc/html/rfc8176.
42+
"""
43+
44+
45+
class AccessAuthenticationMethodRule(BaseModel):
46+
auth_method: AccessAuthenticationMethodRuleAuthMethod
47+
48+
3749
class AccessDevicePostureRuleDevicePosture(BaseModel):
3850
integration_uid: str
3951
"""The ID of a device posture integration."""
@@ -61,6 +73,6 @@ class AccessDevicePostureRule(BaseModel):
6173
AccessAnyValidServiceTokenRule,
6274
ExternalEvaluationRule,
6375
CountryRule,
64-
AuthenticationMethodRule,
76+
AccessAuthenticationMethodRule,
6577
AccessDevicePostureRule,
6678
]

src/cloudflare/types/zero_trust/access_rule_param.py

+14-2
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,12 @@
2121
from .service_token_rule_param import ServiceTokenRuleParam
2222
from .external_evaluation_rule_param import ExternalEvaluationRuleParam
2323
from .github_organization_rule_param import GitHubOrganizationRuleParam
24-
from .authentication_method_rule_param import AuthenticationMethodRuleParam
2524

2625
__all__ = [
2726
"AccessRuleParam",
2827
"AccessAnyValidServiceTokenRule",
28+
"AccessAuthenticationMethodRule",
29+
"AccessAuthenticationMethodRuleAuthMethod",
2930
"AccessDevicePostureRule",
3031
"AccessDevicePostureRuleDevicePosture",
3132
]
@@ -36,6 +37,17 @@ class AccessAnyValidServiceTokenRule(TypedDict, total=False):
3637
"""An empty object which matches on all service tokens."""
3738

3839

40+
class AccessAuthenticationMethodRuleAuthMethod(TypedDict, total=False):
41+
auth_method: Required[str]
42+
"""
43+
The type of authentication method https://datatracker.ietf.org/doc/html/rfc8176.
44+
"""
45+
46+
47+
class AccessAuthenticationMethodRule(TypedDict, total=False):
48+
auth_method: Required[AccessAuthenticationMethodRuleAuthMethod]
49+
50+
3951
class AccessDevicePostureRuleDevicePosture(TypedDict, total=False):
4052
integration_uid: Required[str]
4153
"""The ID of a device posture integration."""
@@ -63,6 +75,6 @@ class AccessDevicePostureRule(TypedDict, total=False):
6375
AccessAnyValidServiceTokenRule,
6476
ExternalEvaluationRuleParam,
6577
CountryRuleParam,
66-
AuthenticationMethodRuleParam,
78+
AccessAuthenticationMethodRule,
6779
AccessDevicePostureRule,
6880
]

src/cloudflare/types/zero_trust/authentication_method_rule.py

-16
This file was deleted.

src/cloudflare/types/zero_trust/authentication_method_rule_param.py

-18
This file was deleted.

0 commit comments

Comments
 (0)