Skip to content

Commit

Permalink
feat(api): update via SDK Studio (#261)
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 ec56e67 commit 952514e
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 37 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, GroupRule
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 @@ -6,15 +6,13 @@
from .device import Device as Device
from .tunnel import Tunnel as Tunnel
from .azure_ad import AzureAD as AzureAD
from .group_rule import GroupRule as GroupRule
from .access_rule import AccessRule as AccessRule
from .percentiles import Percentiles as Percentiles
from .scim_config import ScimConfig as ScimConfig
from .login_design import LoginDesign as LoginDesign
from .network_path import NetworkPath as NetworkPath
from .organization import Organization as Organization
from .tunnel_param import TunnelParam as TunnelParam
from .group_rule_param import GroupRuleParam as GroupRuleParam
from .seat_edit_params import SeatEditParams as SeatEditParams
from .access_rule_param import AccessRuleParam as AccessRuleParam
from .identity_provider import IdentityProvider as IdentityProvider
Expand Down
14 changes: 12 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 .group_rule import GroupRule

__all__ = [
"AccessRule",
Expand All @@ -21,6 +20,8 @@
"AccessIPListRule",
"AccessIPListRuleIPList",
"AccessCertificateRule",
"AccessAccessGroupRule",
"AccessAccessGroupRuleGroup",
"AccessAzureGroupRule",
"AccessAzureGroupRuleAzureAD",
"AccessGitHubOrganizationRule",
Expand Down Expand Up @@ -99,6 +100,15 @@ class AccessCertificateRule(BaseModel):
certificate: object


class AccessAccessGroupRuleGroup(BaseModel):
id: str
"""The ID of a previously created Access group."""


class AccessAccessGroupRule(BaseModel):
group: AccessAccessGroupRuleGroup


class AccessAzureGroupRuleAzureAD(BaseModel):
id: str
"""The ID of an Azure group."""
Expand Down Expand Up @@ -225,7 +235,7 @@ class AccessDevicePostureRule(BaseModel):
AccessIPRule,
AccessIPListRule,
AccessCertificateRule,
GroupRule,
AccessAccessGroupRule,
AccessAzureGroupRule,
AccessGitHubOrganizationRule,
AccessGSuiteGroupRule,
Expand Down
14 changes: 12 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 .group_rule_param import GroupRuleParam

__all__ = [
"AccessRuleParam",
Expand All @@ -22,6 +21,8 @@
"AccessIPListRule",
"AccessIPListRuleIPList",
"AccessCertificateRule",
"AccessAccessGroupRule",
"AccessAccessGroupRuleGroup",
"AccessAzureGroupRule",
"AccessAzureGroupRuleAzureAD",
"AccessGitHubOrganizationRule",
Expand Down Expand Up @@ -100,6 +101,15 @@ class AccessCertificateRule(TypedDict, total=False):
certificate: Required[object]


class AccessAccessGroupRuleGroup(TypedDict, total=False):
id: Required[str]
"""The ID of a previously created Access group."""


class AccessAccessGroupRule(TypedDict, total=False):
group: Required[AccessAccessGroupRuleGroup]


class AccessAzureGroupRuleAzureAD(TypedDict, total=False):
id: Required[str]
"""The ID of an Azure group."""
Expand Down Expand Up @@ -228,7 +238,7 @@ class AccessDevicePostureRule(TypedDict, total=False):
AccessIPRule,
AccessIPListRule,
AccessCertificateRule,
GroupRuleParam,
AccessAccessGroupRule,
AccessAzureGroupRule,
AccessGitHubOrganizationRule,
AccessGSuiteGroupRule,
Expand Down
14 changes: 0 additions & 14 deletions src/cloudflare/types/zero_trust/group_rule.py

This file was deleted.

16 changes: 0 additions & 16 deletions src/cloudflare/types/zero_trust/group_rule_param.py

This file was deleted.

0 comments on commit 952514e

Please sign in to comment.