Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#262)
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 952514e commit df8af97
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 31 deletions.
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4899,7 +4899,7 @@ Methods:
Types:

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

### Applications
Expand Down
2 changes: 2 additions & 0 deletions src/cloudflare/types/zero_trust/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
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 @@ -25,6 +26,7 @@
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: 2 additions & 15 deletions src/cloudflare/types/zero_trust/access_rule.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from pydantic import Field as FieldInfo

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

__all__ = [
"AccessRule",
Expand All @@ -28,8 +29,6 @@
"AccessGitHubOrganizationRuleGitHubOrganization",
"AccessGSuiteGroupRule",
"AccessGSuiteGroupRuleGSuite",
"AccessOktaGroupRule",
"AccessOktaGroupRuleOkta",
"AccessSAMLGroupRule",
"AccessSAMLGroupRuleSAML",
"AccessServiceTokenRule",
Expand Down Expand Up @@ -145,18 +144,6 @@ 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 @@ -239,7 +226,7 @@ class AccessDevicePostureRule(BaseModel):
AccessAzureGroupRule,
AccessGitHubOrganizationRule,
AccessGSuiteGroupRule,
AccessOktaGroupRule,
OktaGroupRule,
AccessSAMLGroupRule,
AccessServiceTokenRule,
AccessAnyValidServiceTokenRule,
Expand Down
17 changes: 2 additions & 15 deletions src/cloudflare/types/zero_trust/access_rule_param.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing_extensions import Required, Annotated, TypedDict

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

__all__ = [
"AccessRuleParam",
Expand All @@ -29,8 +30,6 @@
"AccessGitHubOrganizationRuleGitHubOrganization",
"AccessGSuiteGroupRule",
"AccessGSuiteGroupRuleGSuite",
"AccessOktaGroupRule",
"AccessOktaGroupRuleOkta",
"AccessSAMLGroupRule",
"AccessSAMLGroupRuleSAML",
"AccessServiceTokenRule",
Expand Down Expand Up @@ -148,18 +147,6 @@ 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 @@ -242,7 +229,7 @@ class AccessDevicePostureRule(TypedDict, total=False):
AccessAzureGroupRule,
AccessGitHubOrganizationRule,
AccessGSuiteGroupRule,
AccessOktaGroupRule,
OktaGroupRuleParam,
AccessSAMLGroupRule,
AccessServiceTokenRule,
AccessAnyValidServiceTokenRule,
Expand Down
17 changes: 17 additions & 0 deletions src/cloudflare/types/zero_trust/okta_group_rule.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from ..._models import BaseModel

__all__ = ["OktaGroupRule", "Okta"]


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

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


class OktaGroupRule(BaseModel):
okta: Okta
19 changes: 19 additions & 0 deletions src/cloudflare/types/zero_trust/okta_group_rule_param.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from __future__ import annotations

from typing_extensions import Required, TypedDict

__all__ = ["OktaGroupRuleParam", "Okta"]


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

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


class OktaGroupRuleParam(TypedDict, total=False):
okta: Required[Okta]

0 comments on commit df8af97

Please sign in to comment.