Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#258)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed Apr 22, 2024
1 parent a138540 commit 33da158
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 31 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,
AnyValidServiceTokenRule,
AuthenticationMethodRule,
AzureGroupRule,
CertificateRule,
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 @@ -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
Expand All @@ -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 (
Expand Down
15 changes: 12 additions & 3 deletions src/cloudflare/types/zero_trust/access_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -49,7 +58,7 @@ class AccessDevicePostureRule(BaseModel):
OktaGroupRule,
SAMLGroupRule,
ServiceTokenRule,
AnyValidServiceTokenRule,
AccessAnyValidServiceTokenRule,
ExternalEvaluationRule,
CountryRule,
AuthenticationMethodRule,
Expand Down
15 changes: 12 additions & 3 deletions src/cloudflare/types/zero_trust/access_rule_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -51,7 +60,7 @@ class AccessDevicePostureRule(TypedDict, total=False):
OktaGroupRuleParam,
SAMLGroupRuleParam,
ServiceTokenRuleParam,
AnyValidServiceTokenRuleParam,
AccessAnyValidServiceTokenRule,
ExternalEvaluationRuleParam,
CountryRuleParam,
AuthenticationMethodRuleParam,
Expand Down
10 changes: 0 additions & 10 deletions src/cloudflare/types/zero_trust/any_valid_service_token_rule.py

This file was deleted.

This file was deleted.

0 comments on commit 33da158

Please sign in to comment.