diff --git a/api.md b/api.md index c275036987a..be56923d2c7 100644 --- a/api.md +++ b/api.md @@ -4899,25 +4899,7 @@ Methods: Types: ```python -from cloudflare.types.zero_trust import ( - AccessRule, - AzureGroupRule, - CertificateRule, - CountryRule, - DomainRule, - EmailListRule, - EmailRule, - EveryoneRule, - ExternalEvaluationRule, - GitHubOrganizationRule, - GroupRule, - GSuiteGroupRule, - IPListRule, - IPRule, - OktaGroupRule, - SAMLGroupRule, - ServiceTokenRule, -) +from cloudflare.types.zero_trust import AccessRule, GroupRule ``` ### Applications diff --git a/src/cloudflare/types/zero_trust/__init__.py b/src/cloudflare/types/zero_trust/__init__.py index 4592f85007c..2182086e3ce 100644 --- a/src/cloudflare/types/zero_trust/__init__.py +++ b/src/cloudflare/types/zero_trust/__init__.py @@ -5,63 +5,33 @@ from .seat import Seat as Seat from .device import Device as Device from .tunnel import Tunnel as Tunnel -from .ip_rule import IPRule as IPRule from .azure_ad import AzureAD as AzureAD -from .email_rule import EmailRule as EmailRule from .group_rule import GroupRule as GroupRule from .access_rule import AccessRule as AccessRule -from .domain_rule import DomainRule as DomainRule from .percentiles import Percentiles as Percentiles from .scim_config import ScimConfig as ScimConfig -from .country_rule import CountryRule as CountryRule -from .ip_list_rule import IPListRule as IPListRule 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 .everyone_rule import EveryoneRule as EveryoneRule -from .ip_rule_param import IPRuleParam as IPRuleParam -from .email_list_rule import EmailListRule as EmailListRule -from .okta_group_rule import OktaGroupRule as OktaGroupRule -from .saml_group_rule import SAMLGroupRule as SAMLGroupRule -from .azure_group_rule import AzureGroupRule as AzureGroupRule -from .certificate_rule import CertificateRule as CertificateRule -from .email_rule_param import EmailRuleParam as EmailRuleParam 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 .domain_rule_param import DomainRuleParam as DomainRuleParam -from .gsuite_group_rule import GSuiteGroupRule as GSuiteGroupRule from .identity_provider import IdentityProvider as IdentityProvider from .scim_config_param import ScimConfigParam as ScimConfigParam -from .country_rule_param import CountryRuleParam as CountryRuleParam -from .ip_list_rule_param import IPListRuleParam as IPListRuleParam from .login_design_param import LoginDesignParam as LoginDesignParam from .seat_edit_response import SeatEditResponse as SeatEditResponse -from .service_token_rule import ServiceTokenRule as ServiceTokenRule from .tunnel_edit_params import TunnelEditParams as TunnelEditParams from .tunnel_list_params import TunnelListParams as TunnelListParams -from .everyone_rule_param import EveryoneRuleParam as EveryoneRuleParam from .generic_oauth_config import GenericOAuthConfig as GenericOAuthConfig from .tunnel_create_params import TunnelCreateParams as TunnelCreateParams from .tunnel_delete_params import TunnelDeleteParams as TunnelDeleteParams -from .email_list_rule_param import EmailListRuleParam as EmailListRuleParam from .gateway_list_response import GatewayListResponse as GatewayListResponse -from .okta_group_rule_param import OktaGroupRuleParam as OktaGroupRuleParam -from .saml_group_rule_param import SAMLGroupRuleParam as SAMLGroupRuleParam -from .azure_group_rule_param import AzureGroupRuleParam as AzureGroupRuleParam -from .certificate_rule_param import CertificateRuleParam as CertificateRuleParam from .identity_provider_type import IdentityProviderType as IdentityProviderType from .gateway_create_response import GatewayCreateResponse as GatewayCreateResponse -from .gsuite_group_rule_param import GSuiteGroupRuleParam as GSuiteGroupRuleParam -from .external_evaluation_rule import ExternalEvaluationRule as ExternalEvaluationRule -from .github_organization_rule import GitHubOrganizationRule as GitHubOrganizationRule -from .service_token_rule_param import ServiceTokenRuleParam as ServiceTokenRuleParam from .generic_oauth_config_param import GenericOAuthConfigParam as GenericOAuthConfigParam from .organization_create_params import OrganizationCreateParams as OrganizationCreateParams from .organization_update_params import OrganizationUpdateParams as OrganizationUpdateParams -from .external_evaluation_rule_param import ExternalEvaluationRuleParam as ExternalEvaluationRuleParam -from .github_organization_rule_param import GitHubOrganizationRuleParam as GitHubOrganizationRuleParam from .identity_provider_create_params import IdentityProviderCreateParams as IdentityProviderCreateParams from .identity_provider_list_response import IdentityProviderListResponse as IdentityProviderListResponse from .identity_provider_update_params import IdentityProviderUpdateParams as IdentityProviderUpdateParams diff --git a/src/cloudflare/types/zero_trust/access_rule.py b/src/cloudflare/types/zero_trust/access_rule.py index fbb7ee1c440..def4fe75f7f 100644 --- a/src/cloudflare/types/zero_trust/access_rule.py +++ b/src/cloudflare/types/zero_trust/access_rule.py @@ -2,27 +2,42 @@ from typing import Union -from .ip_rule import IPRule +from pydantic import Field as FieldInfo + from ..._models import BaseModel -from .email_rule import EmailRule from .group_rule import GroupRule -from .domain_rule import DomainRule -from .country_rule import CountryRule -from .ip_list_rule import IPListRule -from .everyone_rule import EveryoneRule -from .email_list_rule import EmailListRule -from .okta_group_rule import OktaGroupRule -from .saml_group_rule import SAMLGroupRule -from .azure_group_rule import AzureGroupRule -from .certificate_rule import CertificateRule -from .gsuite_group_rule import GSuiteGroupRule -from .service_token_rule import ServiceTokenRule -from .external_evaluation_rule import ExternalEvaluationRule -from .github_organization_rule import GitHubOrganizationRule __all__ = [ "AccessRule", + "AccessEmailRule", + "AccessEmailRuleEmail", + "AccessEmailListRule", + "AccessEmailListRuleEmailList", + "AccessDomainRule", + "AccessDomainRuleEmailDomain", + "AccessEveryoneRule", + "AccessIPRule", + "AccessIPRuleIP", + "AccessIPListRule", + "AccessIPListRuleIPList", + "AccessCertificateRule", + "AccessAzureGroupRule", + "AccessAzureGroupRuleAzureAD", + "AccessGitHubOrganizationRule", + "AccessGitHubOrganizationRuleGitHubOrganization", + "AccessGSuiteGroupRule", + "AccessGSuiteGroupRuleGSuite", + "AccessOktaGroupRule", + "AccessOktaGroupRuleOkta", + "AccessSAMLGroupRule", + "AccessSAMLGroupRuleSAML", + "AccessServiceTokenRule", + "AccessServiceTokenRuleServiceToken", "AccessAnyValidServiceTokenRule", + "AccessExternalEvaluationRule", + "AccessExternalEvaluationRuleExternalEvaluation", + "AccessCountryRule", + "AccessCountryRuleGeo", "AccessAuthenticationMethodRule", "AccessAuthenticationMethodRuleAuthMethod", "AccessDevicePostureRule", @@ -30,11 +45,158 @@ ] +class AccessEmailRuleEmail(BaseModel): + email: str + """The email of the user.""" + + +class AccessEmailRule(BaseModel): + email: AccessEmailRuleEmail + + +class AccessEmailListRuleEmailList(BaseModel): + id: str + """The ID of a previously created email list.""" + + +class AccessEmailListRule(BaseModel): + email_list: AccessEmailListRuleEmailList + + +class AccessDomainRuleEmailDomain(BaseModel): + domain: str + """The email domain to match.""" + + +class AccessDomainRule(BaseModel): + email_domain: AccessDomainRuleEmailDomain + + +class AccessEveryoneRule(BaseModel): + everyone: object + """An empty object which matches on all users.""" + + +class AccessIPRuleIP(BaseModel): + ip: str + """An IPv4 or IPv6 CIDR block.""" + + +class AccessIPRule(BaseModel): + ip: AccessIPRuleIP + + +class AccessIPListRuleIPList(BaseModel): + id: str + """The ID of a previously created IP list.""" + + +class AccessIPListRule(BaseModel): + ip_list: AccessIPListRuleIPList + + +class AccessCertificateRule(BaseModel): + certificate: object + + +class AccessAzureGroupRuleAzureAD(BaseModel): + id: str + """The ID of an Azure group.""" + + connection_id: str + """The ID of your Azure identity provider.""" + + +class AccessAzureGroupRule(BaseModel): + azure_ad: AccessAzureGroupRuleAzureAD = FieldInfo(alias="azureAD") + + +class AccessGitHubOrganizationRuleGitHubOrganization(BaseModel): + connection_id: str + """The ID of your Github identity provider.""" + + name: str + """The name of the organization.""" + + +class AccessGitHubOrganizationRule(BaseModel): + github_organization: AccessGitHubOrganizationRuleGitHubOrganization = FieldInfo(alias="github-organization") + + +class AccessGSuiteGroupRuleGSuite(BaseModel): + connection_id: str + """The ID of your Google Workspace identity provider.""" + + email: str + """The email of the Google Workspace group.""" + + +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.""" + + attribute_value: str + """The SAML attribute value to look for.""" + + +class AccessSAMLGroupRule(BaseModel): + saml: AccessSAMLGroupRuleSAML + + +class AccessServiceTokenRuleServiceToken(BaseModel): + token_id: str + """The ID of a Service Token.""" + + +class AccessServiceTokenRule(BaseModel): + service_token: AccessServiceTokenRuleServiceToken + + class AccessAnyValidServiceTokenRule(BaseModel): any_valid_service_token: object """An empty object which matches on all service tokens.""" +class AccessExternalEvaluationRuleExternalEvaluation(BaseModel): + evaluate_url: str + """The API endpoint containing your business logic.""" + + keys_url: str + """ + The API endpoint containing the key that Access uses to verify that the response + came from your API. + """ + + +class AccessExternalEvaluationRule(BaseModel): + external_evaluation: AccessExternalEvaluationRuleExternalEvaluation + + +class AccessCountryRuleGeo(BaseModel): + country_code: str + """The country code that should be matched.""" + + +class AccessCountryRule(BaseModel): + geo: AccessCountryRuleGeo + + class AccessAuthenticationMethodRuleAuthMethod(BaseModel): auth_method: str """ @@ -56,23 +218,23 @@ class AccessDevicePostureRule(BaseModel): AccessRule = Union[ - EmailRule, - EmailListRule, - DomainRule, - EveryoneRule, - IPRule, - IPListRule, - CertificateRule, + AccessEmailRule, + AccessEmailListRule, + AccessDomainRule, + AccessEveryoneRule, + AccessIPRule, + AccessIPListRule, + AccessCertificateRule, GroupRule, - AzureGroupRule, - GitHubOrganizationRule, - GSuiteGroupRule, - OktaGroupRule, - SAMLGroupRule, - ServiceTokenRule, + AccessAzureGroupRule, + AccessGitHubOrganizationRule, + AccessGSuiteGroupRule, + AccessOktaGroupRule, + AccessSAMLGroupRule, + AccessServiceTokenRule, AccessAnyValidServiceTokenRule, - ExternalEvaluationRule, - CountryRule, + AccessExternalEvaluationRule, + AccessCountryRule, AccessAuthenticationMethodRule, AccessDevicePostureRule, ] diff --git a/src/cloudflare/types/zero_trust/access_rule_param.py b/src/cloudflare/types/zero_trust/access_rule_param.py index c4cd63fbdf4..532d9686a30 100644 --- a/src/cloudflare/types/zero_trust/access_rule_param.py +++ b/src/cloudflare/types/zero_trust/access_rule_param.py @@ -3,28 +3,42 @@ from __future__ import annotations from typing import Union -from typing_extensions import Required, TypedDict +from typing_extensions import Required, Annotated, TypedDict -from .ip_rule_param import IPRuleParam -from .email_rule_param import EmailRuleParam +from ..._utils import PropertyInfo from .group_rule_param import GroupRuleParam -from .domain_rule_param import DomainRuleParam -from .country_rule_param import CountryRuleParam -from .ip_list_rule_param import IPListRuleParam -from .everyone_rule_param import EveryoneRuleParam -from .email_list_rule_param import EmailListRuleParam -from .okta_group_rule_param import OktaGroupRuleParam -from .saml_group_rule_param import SAMLGroupRuleParam -from .azure_group_rule_param import AzureGroupRuleParam -from .certificate_rule_param import CertificateRuleParam -from .gsuite_group_rule_param import GSuiteGroupRuleParam -from .service_token_rule_param import ServiceTokenRuleParam -from .external_evaluation_rule_param import ExternalEvaluationRuleParam -from .github_organization_rule_param import GitHubOrganizationRuleParam __all__ = [ "AccessRuleParam", + "AccessEmailRule", + "AccessEmailRuleEmail", + "AccessEmailListRule", + "AccessEmailListRuleEmailList", + "AccessDomainRule", + "AccessDomainRuleEmailDomain", + "AccessEveryoneRule", + "AccessIPRule", + "AccessIPRuleIP", + "AccessIPListRule", + "AccessIPListRuleIPList", + "AccessCertificateRule", + "AccessAzureGroupRule", + "AccessAzureGroupRuleAzureAD", + "AccessGitHubOrganizationRule", + "AccessGitHubOrganizationRuleGitHubOrganization", + "AccessGSuiteGroupRule", + "AccessGSuiteGroupRuleGSuite", + "AccessOktaGroupRule", + "AccessOktaGroupRuleOkta", + "AccessSAMLGroupRule", + "AccessSAMLGroupRuleSAML", + "AccessServiceTokenRule", + "AccessServiceTokenRuleServiceToken", "AccessAnyValidServiceTokenRule", + "AccessExternalEvaluationRule", + "AccessExternalEvaluationRuleExternalEvaluation", + "AccessCountryRule", + "AccessCountryRuleGeo", "AccessAuthenticationMethodRule", "AccessAuthenticationMethodRuleAuthMethod", "AccessDevicePostureRule", @@ -32,11 +46,160 @@ ] +class AccessEmailRuleEmail(TypedDict, total=False): + email: Required[str] + """The email of the user.""" + + +class AccessEmailRule(TypedDict, total=False): + email: Required[AccessEmailRuleEmail] + + +class AccessEmailListRuleEmailList(TypedDict, total=False): + id: Required[str] + """The ID of a previously created email list.""" + + +class AccessEmailListRule(TypedDict, total=False): + email_list: Required[AccessEmailListRuleEmailList] + + +class AccessDomainRuleEmailDomain(TypedDict, total=False): + domain: Required[str] + """The email domain to match.""" + + +class AccessDomainRule(TypedDict, total=False): + email_domain: Required[AccessDomainRuleEmailDomain] + + +class AccessEveryoneRule(TypedDict, total=False): + everyone: Required[object] + """An empty object which matches on all users.""" + + +class AccessIPRuleIP(TypedDict, total=False): + ip: Required[str] + """An IPv4 or IPv6 CIDR block.""" + + +class AccessIPRule(TypedDict, total=False): + ip: Required[AccessIPRuleIP] + + +class AccessIPListRuleIPList(TypedDict, total=False): + id: Required[str] + """The ID of a previously created IP list.""" + + +class AccessIPListRule(TypedDict, total=False): + ip_list: Required[AccessIPListRuleIPList] + + +class AccessCertificateRule(TypedDict, total=False): + certificate: Required[object] + + +class AccessAzureGroupRuleAzureAD(TypedDict, total=False): + id: Required[str] + """The ID of an Azure group.""" + + connection_id: Required[str] + """The ID of your Azure identity provider.""" + + +class AccessAzureGroupRule(TypedDict, total=False): + azure_ad: Required[Annotated[AccessAzureGroupRuleAzureAD, PropertyInfo(alias="azureAD")]] + + +class AccessGitHubOrganizationRuleGitHubOrganization(TypedDict, total=False): + connection_id: Required[str] + """The ID of your Github identity provider.""" + + name: Required[str] + """The name of the organization.""" + + +class AccessGitHubOrganizationRule(TypedDict, total=False): + github_organization: Required[ + Annotated[AccessGitHubOrganizationRuleGitHubOrganization, PropertyInfo(alias="github-organization")] + ] + + +class AccessGSuiteGroupRuleGSuite(TypedDict, total=False): + connection_id: Required[str] + """The ID of your Google Workspace identity provider.""" + + email: Required[str] + """The email of the Google Workspace group.""" + + +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.""" + + attribute_value: Required[str] + """The SAML attribute value to look for.""" + + +class AccessSAMLGroupRule(TypedDict, total=False): + saml: Required[AccessSAMLGroupRuleSAML] + + +class AccessServiceTokenRuleServiceToken(TypedDict, total=False): + token_id: Required[str] + """The ID of a Service Token.""" + + +class AccessServiceTokenRule(TypedDict, total=False): + service_token: Required[AccessServiceTokenRuleServiceToken] + + class AccessAnyValidServiceTokenRule(TypedDict, total=False): any_valid_service_token: Required[object] """An empty object which matches on all service tokens.""" +class AccessExternalEvaluationRuleExternalEvaluation(TypedDict, total=False): + evaluate_url: Required[str] + """The API endpoint containing your business logic.""" + + keys_url: Required[str] + """ + The API endpoint containing the key that Access uses to verify that the response + came from your API. + """ + + +class AccessExternalEvaluationRule(TypedDict, total=False): + external_evaluation: Required[AccessExternalEvaluationRuleExternalEvaluation] + + +class AccessCountryRuleGeo(TypedDict, total=False): + country_code: Required[str] + """The country code that should be matched.""" + + +class AccessCountryRule(TypedDict, total=False): + geo: Required[AccessCountryRuleGeo] + + class AccessAuthenticationMethodRuleAuthMethod(TypedDict, total=False): auth_method: Required[str] """ @@ -58,23 +221,23 @@ class AccessDevicePostureRule(TypedDict, total=False): AccessRuleParam = Union[ - EmailRuleParam, - EmailListRuleParam, - DomainRuleParam, - EveryoneRuleParam, - IPRuleParam, - IPListRuleParam, - CertificateRuleParam, + AccessEmailRule, + AccessEmailListRule, + AccessDomainRule, + AccessEveryoneRule, + AccessIPRule, + AccessIPListRule, + AccessCertificateRule, GroupRuleParam, - AzureGroupRuleParam, - GitHubOrganizationRuleParam, - GSuiteGroupRuleParam, - OktaGroupRuleParam, - SAMLGroupRuleParam, - ServiceTokenRuleParam, + AccessAzureGroupRule, + AccessGitHubOrganizationRule, + AccessGSuiteGroupRule, + AccessOktaGroupRule, + AccessSAMLGroupRule, + AccessServiceTokenRule, AccessAnyValidServiceTokenRule, - ExternalEvaluationRuleParam, - CountryRuleParam, + AccessExternalEvaluationRule, + AccessCountryRule, AccessAuthenticationMethodRule, AccessDevicePostureRule, ] diff --git a/src/cloudflare/types/zero_trust/azure_group_rule.py b/src/cloudflare/types/zero_trust/azure_group_rule.py deleted file mode 100644 index aecd2930885..00000000000 --- a/src/cloudflare/types/zero_trust/azure_group_rule.py +++ /dev/null @@ -1,19 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["AzureGroupRule", "AzureAD"] - - -class AzureAD(BaseModel): - id: str - """The ID of an Azure group.""" - - connection_id: str - """The ID of your Azure identity provider.""" - - -class AzureGroupRule(BaseModel): - azure_ad: AzureAD = FieldInfo(alias="azureAD") diff --git a/src/cloudflare/types/zero_trust/azure_group_rule_param.py b/src/cloudflare/types/zero_trust/azure_group_rule_param.py deleted file mode 100644 index 93a64fab94e..00000000000 --- a/src/cloudflare/types/zero_trust/azure_group_rule_param.py +++ /dev/null @@ -1,21 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Required, Annotated, TypedDict - -from ..._utils import PropertyInfo - -__all__ = ["AzureGroupRuleParam", "AzureAD"] - - -class AzureAD(TypedDict, total=False): - id: Required[str] - """The ID of an Azure group.""" - - connection_id: Required[str] - """The ID of your Azure identity provider.""" - - -class AzureGroupRuleParam(TypedDict, total=False): - azure_ad: Required[Annotated[AzureAD, PropertyInfo(alias="azureAD")]] diff --git a/src/cloudflare/types/zero_trust/certificate_rule.py b/src/cloudflare/types/zero_trust/certificate_rule.py deleted file mode 100644 index 5327168c525..00000000000 --- a/src/cloudflare/types/zero_trust/certificate_rule.py +++ /dev/null @@ -1,9 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from ..._models import BaseModel - -__all__ = ["CertificateRule"] - - -class CertificateRule(BaseModel): - certificate: object diff --git a/src/cloudflare/types/zero_trust/certificate_rule_param.py b/src/cloudflare/types/zero_trust/certificate_rule_param.py deleted file mode 100644 index a93d12ae10b..00000000000 --- a/src/cloudflare/types/zero_trust/certificate_rule_param.py +++ /dev/null @@ -1,11 +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__ = ["CertificateRuleParam"] - - -class CertificateRuleParam(TypedDict, total=False): - certificate: Required[object] diff --git a/src/cloudflare/types/zero_trust/country_rule.py b/src/cloudflare/types/zero_trust/country_rule.py deleted file mode 100644 index a2bb9437377..00000000000 --- a/src/cloudflare/types/zero_trust/country_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__ = ["CountryRule", "Geo"] - - -class Geo(BaseModel): - country_code: str - """The country code that should be matched.""" - - -class CountryRule(BaseModel): - geo: Geo diff --git a/src/cloudflare/types/zero_trust/country_rule_param.py b/src/cloudflare/types/zero_trust/country_rule_param.py deleted file mode 100644 index f6cc5b28073..00000000000 --- a/src/cloudflare/types/zero_trust/country_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__ = ["CountryRuleParam", "Geo"] - - -class Geo(TypedDict, total=False): - country_code: Required[str] - """The country code that should be matched.""" - - -class CountryRuleParam(TypedDict, total=False): - geo: Required[Geo] diff --git a/src/cloudflare/types/zero_trust/domain_rule.py b/src/cloudflare/types/zero_trust/domain_rule.py deleted file mode 100644 index 4c75958da62..00000000000 --- a/src/cloudflare/types/zero_trust/domain_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__ = ["DomainRule", "EmailDomain"] - - -class EmailDomain(BaseModel): - domain: str - """The email domain to match.""" - - -class DomainRule(BaseModel): - email_domain: EmailDomain diff --git a/src/cloudflare/types/zero_trust/domain_rule_param.py b/src/cloudflare/types/zero_trust/domain_rule_param.py deleted file mode 100644 index e8bcab749fd..00000000000 --- a/src/cloudflare/types/zero_trust/domain_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__ = ["DomainRuleParam", "EmailDomain"] - - -class EmailDomain(TypedDict, total=False): - domain: Required[str] - """The email domain to match.""" - - -class DomainRuleParam(TypedDict, total=False): - email_domain: Required[EmailDomain] diff --git a/src/cloudflare/types/zero_trust/email_list_rule.py b/src/cloudflare/types/zero_trust/email_list_rule.py deleted file mode 100644 index 6423b3d2f6b..00000000000 --- a/src/cloudflare/types/zero_trust/email_list_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__ = ["EmailListRule", "EmailList"] - - -class EmailList(BaseModel): - id: str - """The ID of a previously created email list.""" - - -class EmailListRule(BaseModel): - email_list: EmailList diff --git a/src/cloudflare/types/zero_trust/email_list_rule_param.py b/src/cloudflare/types/zero_trust/email_list_rule_param.py deleted file mode 100644 index 71b725e2fef..00000000000 --- a/src/cloudflare/types/zero_trust/email_list_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__ = ["EmailListRuleParam", "EmailList"] - - -class EmailList(TypedDict, total=False): - id: Required[str] - """The ID of a previously created email list.""" - - -class EmailListRuleParam(TypedDict, total=False): - email_list: Required[EmailList] diff --git a/src/cloudflare/types/zero_trust/email_rule.py b/src/cloudflare/types/zero_trust/email_rule.py deleted file mode 100644 index 1f344e6499a..00000000000 --- a/src/cloudflare/types/zero_trust/email_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__ = ["EmailRule", "Email"] - - -class Email(BaseModel): - email: str - """The email of the user.""" - - -class EmailRule(BaseModel): - email: Email diff --git a/src/cloudflare/types/zero_trust/email_rule_param.py b/src/cloudflare/types/zero_trust/email_rule_param.py deleted file mode 100644 index b43061fe44f..00000000000 --- a/src/cloudflare/types/zero_trust/email_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__ = ["EmailRuleParam", "Email"] - - -class Email(TypedDict, total=False): - email: Required[str] - """The email of the user.""" - - -class EmailRuleParam(TypedDict, total=False): - email: Required[Email] diff --git a/src/cloudflare/types/zero_trust/everyone_rule.py b/src/cloudflare/types/zero_trust/everyone_rule.py deleted file mode 100644 index c6eb677a828..00000000000 --- a/src/cloudflare/types/zero_trust/everyone_rule.py +++ /dev/null @@ -1,10 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from ..._models import BaseModel - -__all__ = ["EveryoneRule"] - - -class EveryoneRule(BaseModel): - everyone: object - """An empty object which matches on all users.""" diff --git a/src/cloudflare/types/zero_trust/everyone_rule_param.py b/src/cloudflare/types/zero_trust/everyone_rule_param.py deleted file mode 100644 index b026c3d21f0..00000000000 --- a/src/cloudflare/types/zero_trust/everyone_rule_param.py +++ /dev/null @@ -1,12 +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__ = ["EveryoneRuleParam"] - - -class EveryoneRuleParam(TypedDict, total=False): - everyone: Required[object] - """An empty object which matches on all users.""" diff --git a/src/cloudflare/types/zero_trust/external_evaluation_rule.py b/src/cloudflare/types/zero_trust/external_evaluation_rule.py deleted file mode 100644 index ab6449b3a48..00000000000 --- a/src/cloudflare/types/zero_trust/external_evaluation_rule.py +++ /dev/null @@ -1,20 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from ..._models import BaseModel - -__all__ = ["ExternalEvaluationRule", "ExternalEvaluation"] - - -class ExternalEvaluation(BaseModel): - evaluate_url: str - """The API endpoint containing your business logic.""" - - keys_url: str - """ - The API endpoint containing the key that Access uses to verify that the response - came from your API. - """ - - -class ExternalEvaluationRule(BaseModel): - external_evaluation: ExternalEvaluation diff --git a/src/cloudflare/types/zero_trust/external_evaluation_rule_param.py b/src/cloudflare/types/zero_trust/external_evaluation_rule_param.py deleted file mode 100644 index df598ab7c8b..00000000000 --- a/src/cloudflare/types/zero_trust/external_evaluation_rule_param.py +++ /dev/null @@ -1,22 +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__ = ["ExternalEvaluationRuleParam", "ExternalEvaluation"] - - -class ExternalEvaluation(TypedDict, total=False): - evaluate_url: Required[str] - """The API endpoint containing your business logic.""" - - keys_url: Required[str] - """ - The API endpoint containing the key that Access uses to verify that the response - came from your API. - """ - - -class ExternalEvaluationRuleParam(TypedDict, total=False): - external_evaluation: Required[ExternalEvaluation] diff --git a/src/cloudflare/types/zero_trust/github_organization_rule.py b/src/cloudflare/types/zero_trust/github_organization_rule.py deleted file mode 100644 index 828ab5751e9..00000000000 --- a/src/cloudflare/types/zero_trust/github_organization_rule.py +++ /dev/null @@ -1,19 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from pydantic import Field as FieldInfo - -from ..._models import BaseModel - -__all__ = ["GitHubOrganizationRule", "GitHubOrganization"] - - -class GitHubOrganization(BaseModel): - connection_id: str - """The ID of your Github identity provider.""" - - name: str - """The name of the organization.""" - - -class GitHubOrganizationRule(BaseModel): - github_organization: GitHubOrganization = FieldInfo(alias="github-organization") diff --git a/src/cloudflare/types/zero_trust/github_organization_rule_param.py b/src/cloudflare/types/zero_trust/github_organization_rule_param.py deleted file mode 100644 index 094533d5156..00000000000 --- a/src/cloudflare/types/zero_trust/github_organization_rule_param.py +++ /dev/null @@ -1,21 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Required, Annotated, TypedDict - -from ..._utils import PropertyInfo - -__all__ = ["GitHubOrganizationRuleParam", "GitHubOrganization"] - - -class GitHubOrganization(TypedDict, total=False): - connection_id: Required[str] - """The ID of your Github identity provider.""" - - name: Required[str] - """The name of the organization.""" - - -class GitHubOrganizationRuleParam(TypedDict, total=False): - github_organization: Required[Annotated[GitHubOrganization, PropertyInfo(alias="github-organization")]] diff --git a/src/cloudflare/types/zero_trust/gsuite_group_rule.py b/src/cloudflare/types/zero_trust/gsuite_group_rule.py deleted file mode 100644 index ebc864e0666..00000000000 --- a/src/cloudflare/types/zero_trust/gsuite_group_rule.py +++ /dev/null @@ -1,17 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from ..._models import BaseModel - -__all__ = ["GSuiteGroupRule", "GSuite"] - - -class GSuite(BaseModel): - connection_id: str - """The ID of your Google Workspace identity provider.""" - - email: str - """The email of the Google Workspace group.""" - - -class GSuiteGroupRule(BaseModel): - gsuite: GSuite diff --git a/src/cloudflare/types/zero_trust/gsuite_group_rule_param.py b/src/cloudflare/types/zero_trust/gsuite_group_rule_param.py deleted file mode 100644 index fc29c250b86..00000000000 --- a/src/cloudflare/types/zero_trust/gsuite_group_rule_param.py +++ /dev/null @@ -1,19 +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__ = ["GSuiteGroupRuleParam", "GSuite"] - - -class GSuite(TypedDict, total=False): - connection_id: Required[str] - """The ID of your Google Workspace identity provider.""" - - email: Required[str] - """The email of the Google Workspace group.""" - - -class GSuiteGroupRuleParam(TypedDict, total=False): - gsuite: Required[GSuite] diff --git a/src/cloudflare/types/zero_trust/ip_list_rule.py b/src/cloudflare/types/zero_trust/ip_list_rule.py deleted file mode 100644 index 30388e43ef7..00000000000 --- a/src/cloudflare/types/zero_trust/ip_list_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__ = ["IPListRule", "IPList"] - - -class IPList(BaseModel): - id: str - """The ID of a previously created IP list.""" - - -class IPListRule(BaseModel): - ip_list: IPList diff --git a/src/cloudflare/types/zero_trust/ip_list_rule_param.py b/src/cloudflare/types/zero_trust/ip_list_rule_param.py deleted file mode 100644 index af094a8b74f..00000000000 --- a/src/cloudflare/types/zero_trust/ip_list_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__ = ["IPListRuleParam", "IPList"] - - -class IPList(TypedDict, total=False): - id: Required[str] - """The ID of a previously created IP list.""" - - -class IPListRuleParam(TypedDict, total=False): - ip_list: Required[IPList] diff --git a/src/cloudflare/types/zero_trust/ip_rule.py b/src/cloudflare/types/zero_trust/ip_rule.py deleted file mode 100644 index 503109876fe..00000000000 --- a/src/cloudflare/types/zero_trust/ip_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__ = ["IPRule", "IP"] - - -class IP(BaseModel): - ip: str - """An IPv4 or IPv6 CIDR block.""" - - -class IPRule(BaseModel): - ip: IP diff --git a/src/cloudflare/types/zero_trust/ip_rule_param.py b/src/cloudflare/types/zero_trust/ip_rule_param.py deleted file mode 100644 index 57ad07219bb..00000000000 --- a/src/cloudflare/types/zero_trust/ip_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__ = ["IPRuleParam", "IP"] - - -class IP(TypedDict, total=False): - ip: Required[str] - """An IPv4 or IPv6 CIDR block.""" - - -class IPRuleParam(TypedDict, total=False): - ip: Required[IP] diff --git a/src/cloudflare/types/zero_trust/okta_group_rule.py b/src/cloudflare/types/zero_trust/okta_group_rule.py deleted file mode 100644 index 1c9e66889d1..00000000000 --- a/src/cloudflare/types/zero_trust/okta_group_rule.py +++ /dev/null @@ -1,17 +0,0 @@ -# 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 diff --git a/src/cloudflare/types/zero_trust/okta_group_rule_param.py b/src/cloudflare/types/zero_trust/okta_group_rule_param.py deleted file mode 100644 index 34d48a81073..00000000000 --- a/src/cloudflare/types/zero_trust/okta_group_rule_param.py +++ /dev/null @@ -1,19 +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__ = ["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] diff --git a/src/cloudflare/types/zero_trust/saml_group_rule.py b/src/cloudflare/types/zero_trust/saml_group_rule.py deleted file mode 100644 index 7a311bb901c..00000000000 --- a/src/cloudflare/types/zero_trust/saml_group_rule.py +++ /dev/null @@ -1,17 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from ..._models import BaseModel - -__all__ = ["SAMLGroupRule", "SAML"] - - -class SAML(BaseModel): - attribute_name: str - """The name of the SAML attribute.""" - - attribute_value: str - """The SAML attribute value to look for.""" - - -class SAMLGroupRule(BaseModel): - saml: SAML diff --git a/src/cloudflare/types/zero_trust/saml_group_rule_param.py b/src/cloudflare/types/zero_trust/saml_group_rule_param.py deleted file mode 100644 index 78aa37ef3a7..00000000000 --- a/src/cloudflare/types/zero_trust/saml_group_rule_param.py +++ /dev/null @@ -1,19 +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__ = ["SAMLGroupRuleParam", "SAML"] - - -class SAML(TypedDict, total=False): - attribute_name: Required[str] - """The name of the SAML attribute.""" - - attribute_value: Required[str] - """The SAML attribute value to look for.""" - - -class SAMLGroupRuleParam(TypedDict, total=False): - saml: Required[SAML] diff --git a/src/cloudflare/types/zero_trust/service_token_rule.py b/src/cloudflare/types/zero_trust/service_token_rule.py deleted file mode 100644 index b8c4353ec77..00000000000 --- a/src/cloudflare/types/zero_trust/service_token_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__ = ["ServiceTokenRule", "ServiceToken"] - - -class ServiceToken(BaseModel): - token_id: str - """The ID of a Service Token.""" - - -class ServiceTokenRule(BaseModel): - service_token: ServiceToken diff --git a/src/cloudflare/types/zero_trust/service_token_rule_param.py b/src/cloudflare/types/zero_trust/service_token_rule_param.py deleted file mode 100644 index 1c51cea4168..00000000000 --- a/src/cloudflare/types/zero_trust/service_token_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__ = ["ServiceTokenRuleParam", "ServiceToken"] - - -class ServiceToken(TypedDict, total=False): - token_id: Required[str] - """The ID of a Service Token.""" - - -class ServiceTokenRuleParam(TypedDict, total=False): - service_token: Required[ServiceToken]