Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#259)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Apr 24, 2024
1 parent 1b6129c commit 5b4c0cb
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 41 deletions.
1 change: 0 additions & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4901,7 +4901,6 @@ Types:
```python
from cloudflare.types.zero_trust import (
AccessRule,
AuthenticationMethodRule,
AzureGroupRule,
CertificateRule,
CountryRule,
Expand Down
2 changes: 0 additions & 2 deletions src/cloudflare/types/zero_trust/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
16 changes: 14 additions & 2 deletions src/cloudflare/types/zero_trust/access_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand All @@ -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."""
Expand Down Expand Up @@ -61,6 +73,6 @@ class AccessDevicePostureRule(BaseModel):
AccessAnyValidServiceTokenRule,
ExternalEvaluationRule,
CountryRule,
AuthenticationMethodRule,
AccessAuthenticationMethodRule,
AccessDevicePostureRule,
]
16 changes: 14 additions & 2 deletions src/cloudflare/types/zero_trust/access_rule_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -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",
]
Expand All @@ -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."""
Expand Down Expand Up @@ -63,6 +75,6 @@ class AccessDevicePostureRule(TypedDict, total=False):
AccessAnyValidServiceTokenRule,
ExternalEvaluationRuleParam,
CountryRuleParam,
AuthenticationMethodRuleParam,
AccessAuthenticationMethodRule,
AccessDevicePostureRule,
]
16 changes: 0 additions & 16 deletions src/cloudflare/types/zero_trust/authentication_method_rule.py

This file was deleted.

This file was deleted.

0 comments on commit 5b4c0cb

Please sign in to comment.