From 952514ea2d59fae4326b896da800398192190bc6 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 10 Apr 2024 01:06:24 +0000 Subject: [PATCH] feat(api): update via SDK Studio (#261) --- api.md | 2 +- src/cloudflare/types/zero_trust/__init__.py | 2 -- src/cloudflare/types/zero_trust/access_rule.py | 14 ++++++++++++-- .../types/zero_trust/access_rule_param.py | 14 ++++++++++++-- src/cloudflare/types/zero_trust/group_rule.py | 14 -------------- .../types/zero_trust/group_rule_param.py | 16 ---------------- 6 files changed, 25 insertions(+), 37 deletions(-) delete mode 100644 src/cloudflare/types/zero_trust/group_rule.py delete mode 100644 src/cloudflare/types/zero_trust/group_rule_param.py diff --git a/api.md b/api.md index be56923d2c7..8dc2e657aa6 100644 --- a/api.md +++ b/api.md @@ -4899,7 +4899,7 @@ Methods: Types: ```python -from cloudflare.types.zero_trust import AccessRule, GroupRule +from cloudflare.types.zero_trust import AccessRule ``` ### Applications diff --git a/src/cloudflare/types/zero_trust/__init__.py b/src/cloudflare/types/zero_trust/__init__.py index 2182086e3ce..3564fcdeb66 100644 --- a/src/cloudflare/types/zero_trust/__init__.py +++ b/src/cloudflare/types/zero_trust/__init__.py @@ -6,7 +6,6 @@ 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 @@ -14,7 +13,6 @@ 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 diff --git a/src/cloudflare/types/zero_trust/access_rule.py b/src/cloudflare/types/zero_trust/access_rule.py index def4fe75f7f..41631bd008d 100644 --- a/src/cloudflare/types/zero_trust/access_rule.py +++ b/src/cloudflare/types/zero_trust/access_rule.py @@ -5,7 +5,6 @@ from pydantic import Field as FieldInfo from ..._models import BaseModel -from .group_rule import GroupRule __all__ = [ "AccessRule", @@ -21,6 +20,8 @@ "AccessIPListRule", "AccessIPListRuleIPList", "AccessCertificateRule", + "AccessAccessGroupRule", + "AccessAccessGroupRuleGroup", "AccessAzureGroupRule", "AccessAzureGroupRuleAzureAD", "AccessGitHubOrganizationRule", @@ -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.""" @@ -225,7 +235,7 @@ class AccessDevicePostureRule(BaseModel): AccessIPRule, AccessIPListRule, AccessCertificateRule, - GroupRule, + AccessAccessGroupRule, AccessAzureGroupRule, AccessGitHubOrganizationRule, AccessGSuiteGroupRule, diff --git a/src/cloudflare/types/zero_trust/access_rule_param.py b/src/cloudflare/types/zero_trust/access_rule_param.py index 532d9686a30..89d514c5f36 100644 --- a/src/cloudflare/types/zero_trust/access_rule_param.py +++ b/src/cloudflare/types/zero_trust/access_rule_param.py @@ -6,7 +6,6 @@ from typing_extensions import Required, Annotated, TypedDict from ..._utils import PropertyInfo -from .group_rule_param import GroupRuleParam __all__ = [ "AccessRuleParam", @@ -22,6 +21,8 @@ "AccessIPListRule", "AccessIPListRuleIPList", "AccessCertificateRule", + "AccessAccessGroupRule", + "AccessAccessGroupRuleGroup", "AccessAzureGroupRule", "AccessAzureGroupRuleAzureAD", "AccessGitHubOrganizationRule", @@ -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.""" @@ -228,7 +238,7 @@ class AccessDevicePostureRule(TypedDict, total=False): AccessIPRule, AccessIPListRule, AccessCertificateRule, - GroupRuleParam, + AccessAccessGroupRule, AccessAzureGroupRule, AccessGitHubOrganizationRule, AccessGSuiteGroupRule, diff --git a/src/cloudflare/types/zero_trust/group_rule.py b/src/cloudflare/types/zero_trust/group_rule.py deleted file mode 100644 index 00aa6257072..00000000000 --- a/src/cloudflare/types/zero_trust/group_rule.py +++ /dev/null @@ -1,14 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from ..._models import BaseModel - -__all__ = ["GroupRule", "Group"] - - -class Group(BaseModel): - id: str - """The ID of a previously created Access group.""" - - -class GroupRule(BaseModel): - group: Group diff --git a/src/cloudflare/types/zero_trust/group_rule_param.py b/src/cloudflare/types/zero_trust/group_rule_param.py deleted file mode 100644 index 54ce30e003e..00000000000 --- a/src/cloudflare/types/zero_trust/group_rule_param.py +++ /dev/null @@ -1,16 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Required, TypedDict - -__all__ = ["GroupRuleParam", "Group"] - - -class Group(TypedDict, total=False): - id: Required[str] - """The ID of a previously created Access group.""" - - -class GroupRuleParam(TypedDict, total=False): - group: Required[Group]