Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Apr 24, 2024
1 parent c06290b commit c670ddd
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 43 deletions.
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4904,7 +4904,7 @@ Methods:
Types:

```python
from cloudflare.types.zero_trust import AccessRule, OktaGroupRule
from cloudflare.types.zero_trust import AccessRule
```

### Applications
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 @@ -13,7 +13,6 @@
from .network_path import NetworkPath as NetworkPath
from .organization import Organization as Organization
from .tunnel_param import TunnelParam as TunnelParam
from .okta_group_rule import OktaGroupRule as OktaGroupRule
from .seat_edit_params import SeatEditParams as SeatEditParams
from .access_rule_param import AccessRuleParam as AccessRuleParam
from .identity_provider import IdentityProvider as IdentityProvider
Expand All @@ -26,7 +25,6 @@
from .tunnel_create_params import TunnelCreateParams as TunnelCreateParams
from .tunnel_delete_params import TunnelDeleteParams as TunnelDeleteParams
from .gateway_list_response import GatewayListResponse as GatewayListResponse
from .okta_group_rule_param import OktaGroupRuleParam as OktaGroupRuleParam
from .identity_provider_type import IdentityProviderType as IdentityProviderType
from .gateway_create_response import GatewayCreateResponse as GatewayCreateResponse
from .generic_oauth_config_param import GenericOAuthConfigParam as GenericOAuthConfigParam
Expand Down
17 changes: 15 additions & 2 deletions src/cloudflare/types/zero_trust/access_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
from pydantic import Field as FieldInfo

from ..._models import BaseModel
from .okta_group_rule import OktaGroupRule

__all__ = [
"AccessRule",
Expand All @@ -29,6 +28,8 @@
"AccessGitHubOrganizationRuleGitHubOrganization",
"AccessGSuiteGroupRule",
"AccessGSuiteGroupRuleGSuite",
"AccessOktaGroupRule",
"AccessOktaGroupRuleOkta",
"AccessSAMLGroupRule",
"AccessSAMLGroupRuleSAML",
"AccessServiceTokenRule",
Expand Down Expand Up @@ -144,6 +145,18 @@ class AccessGSuiteGroupRule(BaseModel):
gsuite: AccessGSuiteGroupRuleGSuite


class AccessOktaGroupRuleOkta(BaseModel):
connection_id: str
"""The ID of your Okta identity provider."""

email: str
"""The email of the Okta group."""


class AccessOktaGroupRule(BaseModel):
okta: AccessOktaGroupRuleOkta


class AccessSAMLGroupRuleSAML(BaseModel):
attribute_name: str
"""The name of the SAML attribute."""
Expand Down Expand Up @@ -226,7 +239,7 @@ class AccessDevicePostureRule(BaseModel):
AccessAzureGroupRule,
AccessGitHubOrganizationRule,
AccessGSuiteGroupRule,
OktaGroupRule,
AccessOktaGroupRule,
AccessSAMLGroupRule,
AccessServiceTokenRule,
AccessAnyValidServiceTokenRule,
Expand Down
17 changes: 15 additions & 2 deletions src/cloudflare/types/zero_trust/access_rule_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
from typing_extensions import Required, Annotated, TypedDict

from ..._utils import PropertyInfo
from .okta_group_rule_param import OktaGroupRuleParam

__all__ = [
"AccessRuleParam",
Expand All @@ -30,6 +29,8 @@
"AccessGitHubOrganizationRuleGitHubOrganization",
"AccessGSuiteGroupRule",
"AccessGSuiteGroupRuleGSuite",
"AccessOktaGroupRule",
"AccessOktaGroupRuleOkta",
"AccessSAMLGroupRule",
"AccessSAMLGroupRuleSAML",
"AccessServiceTokenRule",
Expand Down Expand Up @@ -147,6 +148,18 @@ class AccessGSuiteGroupRule(TypedDict, total=False):
gsuite: Required[AccessGSuiteGroupRuleGSuite]


class AccessOktaGroupRuleOkta(TypedDict, total=False):
connection_id: Required[str]
"""The ID of your Okta identity provider."""

email: Required[str]
"""The email of the Okta group."""


class AccessOktaGroupRule(TypedDict, total=False):
okta: Required[AccessOktaGroupRuleOkta]


class AccessSAMLGroupRuleSAML(TypedDict, total=False):
attribute_name: Required[str]
"""The name of the SAML attribute."""
Expand Down Expand Up @@ -229,7 +242,7 @@ class AccessDevicePostureRule(TypedDict, total=False):
AccessAzureGroupRule,
AccessGitHubOrganizationRule,
AccessGSuiteGroupRule,
OktaGroupRuleParam,
AccessOktaGroupRule,
AccessSAMLGroupRule,
AccessServiceTokenRule,
AccessAnyValidServiceTokenRule,
Expand Down
17 changes: 0 additions & 17 deletions src/cloudflare/types/zero_trust/okta_group_rule.py

This file was deleted.

19 changes: 0 additions & 19 deletions src/cloudflare/types/zero_trust/okta_group_rule_param.py

This file was deleted.

0 comments on commit c670ddd

Please sign in to comment.