Skip to content

Commit 33da158

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

File tree

6 files changed

+24
-31
lines changed

6 files changed

+24
-31
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-
AnyValidServiceTokenRule,
49054904
AuthenticationMethodRule,
49064905
AzureGroupRule,
49074906
CertificateRule,

src/cloudflare/types/zero_trust/__init__.py

-2
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,6 @@
6161
from .generic_oauth_config_param import GenericOAuthConfigParam as GenericOAuthConfigParam
6262
from .organization_create_params import OrganizationCreateParams as OrganizationCreateParams
6363
from .organization_update_params import OrganizationUpdateParams as OrganizationUpdateParams
64-
from .any_valid_service_token_rule import AnyValidServiceTokenRule as AnyValidServiceTokenRule
6564
from .external_evaluation_rule_param import ExternalEvaluationRuleParam as ExternalEvaluationRuleParam
6665
from .github_organization_rule_param import GitHubOrganizationRuleParam as GitHubOrganizationRuleParam
6766
from .identity_provider_create_params import IdentityProviderCreateParams as IdentityProviderCreateParams
@@ -72,7 +71,6 @@
7271
from .organization_revoke_users_params import OrganizationRevokeUsersParams as OrganizationRevokeUsersParams
7372
from .connectivity_setting_get_response import ConnectivitySettingGetResponse as ConnectivitySettingGetResponse
7473
from .identity_provider_delete_response import IdentityProviderDeleteResponse as IdentityProviderDeleteResponse
75-
from .any_valid_service_token_rule_param import AnyValidServiceTokenRuleParam as AnyValidServiceTokenRuleParam
7674
from .connectivity_setting_edit_response import ConnectivitySettingEditResponse as ConnectivitySettingEditResponse
7775
from .organization_revoke_users_response import OrganizationRevokeUsersResponse as OrganizationRevokeUsersResponse
7876
from .unnamed_schema_ref_bf9e2abcf1b78a6cab8e6e29e2228a11 import (

src/cloudflare/types/zero_trust/access_rule.py

+12-3
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,18 @@
2020
from .external_evaluation_rule import ExternalEvaluationRule
2121
from .github_organization_rule import GitHubOrganizationRule
2222
from .authentication_method_rule import AuthenticationMethodRule
23-
from .any_valid_service_token_rule import AnyValidServiceTokenRule
2423

25-
__all__ = ["AccessRule", "AccessDevicePostureRule", "AccessDevicePostureRuleDevicePosture"]
24+
__all__ = [
25+
"AccessRule",
26+
"AccessAnyValidServiceTokenRule",
27+
"AccessDevicePostureRule",
28+
"AccessDevicePostureRuleDevicePosture",
29+
]
30+
31+
32+
class AccessAnyValidServiceTokenRule(BaseModel):
33+
any_valid_service_token: object
34+
"""An empty object which matches on all service tokens."""
2635

2736

2837
class AccessDevicePostureRuleDevicePosture(BaseModel):
@@ -49,7 +58,7 @@ class AccessDevicePostureRule(BaseModel):
4958
OktaGroupRule,
5059
SAMLGroupRule,
5160
ServiceTokenRule,
52-
AnyValidServiceTokenRule,
61+
AccessAnyValidServiceTokenRule,
5362
ExternalEvaluationRule,
5463
CountryRule,
5564
AuthenticationMethodRule,

src/cloudflare/types/zero_trust/access_rule_param.py

+12-3
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,18 @@
2222
from .external_evaluation_rule_param import ExternalEvaluationRuleParam
2323
from .github_organization_rule_param import GitHubOrganizationRuleParam
2424
from .authentication_method_rule_param import AuthenticationMethodRuleParam
25-
from .any_valid_service_token_rule_param import AnyValidServiceTokenRuleParam
2625

27-
__all__ = ["AccessRuleParam", "AccessDevicePostureRule", "AccessDevicePostureRuleDevicePosture"]
26+
__all__ = [
27+
"AccessRuleParam",
28+
"AccessAnyValidServiceTokenRule",
29+
"AccessDevicePostureRule",
30+
"AccessDevicePostureRuleDevicePosture",
31+
]
32+
33+
34+
class AccessAnyValidServiceTokenRule(TypedDict, total=False):
35+
any_valid_service_token: Required[object]
36+
"""An empty object which matches on all service tokens."""
2837

2938

3039
class AccessDevicePostureRuleDevicePosture(TypedDict, total=False):
@@ -51,7 +60,7 @@ class AccessDevicePostureRule(TypedDict, total=False):
5160
OktaGroupRuleParam,
5261
SAMLGroupRuleParam,
5362
ServiceTokenRuleParam,
54-
AnyValidServiceTokenRuleParam,
63+
AccessAnyValidServiceTokenRule,
5564
ExternalEvaluationRuleParam,
5665
CountryRuleParam,
5766
AuthenticationMethodRuleParam,

src/cloudflare/types/zero_trust/any_valid_service_token_rule.py

-10
This file was deleted.

src/cloudflare/types/zero_trust/any_valid_service_token_rule_param.py

-12
This file was deleted.

0 commit comments

Comments
 (0)