From 9dde91c478900bf9194268022ca43a39f89009d0 Mon Sep 17 00:00:00 2001 From: stainless-bot Date: Wed, 24 Apr 2024 19:28:22 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API --- README.md | 2 +- .../types/addressing/prefixes/bgp/__init__.py | 1 - .../prefixes/bgp/service_binding_param.py | 29 ------ src/cloudflare/types/alerting/__init__.py | 1 - src/cloudflare/types/alerting/policy_param.py | 97 ------------------- src/cloudflare/types/firewall/__init__.py | 1 - .../types/firewall/configuration_param.py | 12 --- src/cloudflare/types/intel/__init__.py | 1 - src/cloudflare/types/intel/dns_param.py | 36 ------- .../magic_network_monitoring/__init__.py | 1 - .../configuration_param.py | 21 ---- .../hostnames/__init__.py | 1 - .../hostnames/certificate.py | 45 --------- src/cloudflare/types/page_shield/__init__.py | 1 - .../types/page_shield/policy_param.py | 30 ------ src/cloudflare/types/rate_plans/__init__.py | 1 - .../types/rate_plans/rate_plan_param.py | 24 ----- src/cloudflare/types/rules/lists/__init__.py | 1 - src/cloudflare/types/rules/lists/list_item.py | 12 --- src/cloudflare/types/speed/__init__.py | 1 - src/cloudflare/types/speed/schedule_param.py | 40 -------- src/cloudflare/types/user/__init__.py | 1 - src/cloudflare/types/user/policy.py | 30 ------ .../types/waiting_rooms/__init__.py | 1 - src/cloudflare/types/waiting_rooms/setting.py | 14 --- src/cloudflare/types/web3/__init__.py | 1 - src/cloudflare/types/web3/hostname_param.py | 18 ---- .../types/workers/scripts/__init__.py | 1 - .../types/workers/scripts/schedule_param.py | 11 --- .../access/applications/__init__.py | 1 - .../access/applications/policy_param.py | 69 ------------- .../types/zero_trust/networks/__init__.py | 1 - .../types/zero_trust/networks/route_param.py | 31 ------ 33 files changed, 1 insertion(+), 536 deletions(-) delete mode 100644 src/cloudflare/types/addressing/prefixes/bgp/service_binding_param.py delete mode 100644 src/cloudflare/types/alerting/policy_param.py delete mode 100644 src/cloudflare/types/firewall/configuration_param.py delete mode 100644 src/cloudflare/types/intel/dns_param.py delete mode 100644 src/cloudflare/types/magic_network_monitoring/configuration_param.py delete mode 100644 src/cloudflare/types/origin_tls_client_auth/hostnames/certificate.py delete mode 100644 src/cloudflare/types/page_shield/policy_param.py delete mode 100644 src/cloudflare/types/rate_plans/rate_plan_param.py delete mode 100644 src/cloudflare/types/rules/lists/list_item.py delete mode 100644 src/cloudflare/types/speed/schedule_param.py delete mode 100644 src/cloudflare/types/user/policy.py delete mode 100644 src/cloudflare/types/waiting_rooms/setting.py delete mode 100644 src/cloudflare/types/web3/hostname_param.py delete mode 100644 src/cloudflare/types/workers/scripts/schedule_param.py delete mode 100644 src/cloudflare/types/zero_trust/access/applications/policy_param.py delete mode 100644 src/cloudflare/types/zero_trust/networks/route_param.py diff --git a/README.md b/README.md index 53523398428..e6f01d2c298 100644 --- a/README.md +++ b/README.md @@ -314,7 +314,7 @@ The context manager is required so that the response will reliably be closed. ### Making custom/undocumented requests -This library is typed for convenient access the documented API. +This library is typed for convenient access to the documented API. If you need to access undocumented endpoints, params, or response properties, the library can still be used. diff --git a/src/cloudflare/types/addressing/prefixes/bgp/__init__.py b/src/cloudflare/types/addressing/prefixes/bgp/__init__.py index 6406cdc7c26..bf70ca01135 100644 --- a/src/cloudflare/types/addressing/prefixes/bgp/__init__.py +++ b/src/cloudflare/types/addressing/prefixes/bgp/__init__.py @@ -9,5 +9,4 @@ from .status_get_response import StatusGetResponse as StatusGetResponse from .status_edit_response import StatusEditResponse as StatusEditResponse from .binding_create_params import BindingCreateParams as BindingCreateParams -from .service_binding_param import ServiceBindingParam as ServiceBindingParam from .binding_delete_response import BindingDeleteResponse as BindingDeleteResponse diff --git a/src/cloudflare/types/addressing/prefixes/bgp/service_binding_param.py b/src/cloudflare/types/addressing/prefixes/bgp/service_binding_param.py deleted file mode 100644 index 3dd61ede1cb..00000000000 --- a/src/cloudflare/types/addressing/prefixes/bgp/service_binding_param.py +++ /dev/null @@ -1,29 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Literal, TypedDict - -__all__ = ["ServiceBindingParam", "Provisioning"] - - -class Provisioning(TypedDict, total=False): - state: Literal["provisioning", "active"] - """ - When a binding has been deployed to a majority of Cloudflare datacenters, the - binding will become active and can be used with its associated service. - """ - - -class ServiceBindingParam(TypedDict, total=False): - cidr: str - """IP Prefix in Classless Inter-Domain Routing format.""" - - provisioning: Provisioning - """Status of a Service Binding's deployment to the Cloudflare network""" - - service_id: str - """Identifier""" - - service_name: str - """Name of a service running on the Cloudflare network""" diff --git a/src/cloudflare/types/alerting/__init__.py b/src/cloudflare/types/alerting/__init__.py index 72f0b44455d..bb4a0f9f756 100644 --- a/src/cloudflare/types/alerting/__init__.py +++ b/src/cloudflare/types/alerting/__init__.py @@ -5,7 +5,6 @@ from .policy import Policy as Policy from .history import History as History from .mechanism import Mechanism as Mechanism -from .policy_param import PolicyParam as PolicyParam from .policy_filter import PolicyFilter as PolicyFilter from .mechanism_param import MechanismParam as MechanismParam from .history_list_params import HistoryListParams as HistoryListParams diff --git a/src/cloudflare/types/alerting/policy_param.py b/src/cloudflare/types/alerting/policy_param.py deleted file mode 100644 index fc24717f614..00000000000 --- a/src/cloudflare/types/alerting/policy_param.py +++ /dev/null @@ -1,97 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Literal, TypedDict - -from .mechanism_param import MechanismParam -from .policy_filter_param import PolicyFilterParam - -__all__ = ["PolicyParam"] - - -class PolicyParam(TypedDict, total=False): - alert_type: Literal[ - "access_custom_certificate_expiration_type", - "advanced_ddos_attack_l4_alert", - "advanced_ddos_attack_l7_alert", - "advanced_http_alert_error", - "bgp_hijack_notification", - "billing_usage_alert", - "block_notification_block_removed", - "block_notification_new_block", - "block_notification_review_rejected", - "brand_protection_alert", - "brand_protection_digest", - "clickhouse_alert_fw_anomaly", - "clickhouse_alert_fw_ent_anomaly", - "custom_ssl_certificate_event_type", - "dedicated_ssl_certificate_event_type", - "dos_attack_l4", - "dos_attack_l7", - "expiring_service_token_alert", - "failing_logpush_job_disabled_alert", - "fbm_auto_advertisement", - "fbm_dosd_attack", - "fbm_volumetric_attack", - "health_check_status_notification", - "hostname_aop_custom_certificate_expiration_type", - "http_alert_edge_error", - "http_alert_origin_error", - "incident_alert", - "load_balancing_health_alert", - "load_balancing_pool_enablement_alert", - "logo_match_alert", - "magic_tunnel_health_check_event", - "maintenance_event_notification", - "mtls_certificate_store_certificate_expiration_type", - "pages_event_alert", - "radar_notification", - "real_origin_monitoring", - "scriptmonitor_alert_new_code_change_detections", - "scriptmonitor_alert_new_hosts", - "scriptmonitor_alert_new_malicious_hosts", - "scriptmonitor_alert_new_malicious_scripts", - "scriptmonitor_alert_new_malicious_url", - "scriptmonitor_alert_new_max_length_resource_url", - "scriptmonitor_alert_new_resources", - "secondary_dns_all_primaries_failing", - "secondary_dns_primaries_failing", - "secondary_dns_zone_successfully_updated", - "secondary_dns_zone_validation_warning", - "sentinel_alert", - "stream_live_notifications", - "traffic_anomalies_alert", - "tunnel_health_event", - "tunnel_update_event", - "universal_ssl_event_type", - "web_analytics_metrics_update", - "zone_aop_custom_certificate_expiration_type", - ] - """Refers to which event will trigger a Notification dispatch. - - You can use the endpoint to get available alert types which then will give you a - list of possible values. - """ - - description: str - """Optional description for the Notification policy.""" - - enabled: bool - """Whether or not the Notification policy is enabled.""" - - filters: PolicyFilterParam - """ - Optional filters that allow you to be alerted only on a subset of events for - that alert type based on some criteria. This is only available for select alert - types. See alert type documentation for more details. - """ - - mechanisms: MechanismParam - """List of IDs that will be used when dispatching a notification. - - IDs for email type will be the email address. - """ - - name: str - """Name of the policy.""" diff --git a/src/cloudflare/types/firewall/__init__.py b/src/cloudflare/types/firewall/__init__.py index 463e992a863..01d553c8cc4 100644 --- a/src/cloudflare/types/firewall/__init__.py +++ b/src/cloudflare/types/firewall/__init__.py @@ -15,7 +15,6 @@ from .rule_delete_params import RuleDeleteParams as RuleDeleteParams from .rule_edit_response import RuleEditResponse as RuleEditResponse from .rule_update_params import RuleUpdateParams as RuleUpdateParams -from .configuration_param import ConfigurationParam as ConfigurationParam from .ua_rule_list_params import UARuleListParams as UARuleListParams from .lockdown_list_params import LockdownListParams as LockdownListParams from .rule_create_response import RuleCreateResponse as RuleCreateResponse diff --git a/src/cloudflare/types/firewall/configuration_param.py b/src/cloudflare/types/firewall/configuration_param.py deleted file mode 100644 index ffedb3978c2..00000000000 --- a/src/cloudflare/types/firewall/configuration_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 import Union - -from .lockdown_ip_configuration import LockdownIPConfiguration -from .lockdown_cidr_configuration import LockdownCIDRConfiguration - -__all__ = ["ConfigurationParam"] - -ConfigurationParam = Union[LockdownIPConfiguration, LockdownCIDRConfiguration] diff --git a/src/cloudflare/types/intel/__init__.py b/src/cloudflare/types/intel/__init__.py index 4ad7dbe24f6..9456bee9743 100644 --- a/src/cloudflare/types/intel/__init__.py +++ b/src/cloudflare/types/intel/__init__.py @@ -8,7 +8,6 @@ from .domain import Domain as Domain from .ip_list import IPList as IPList from .sinkhole import Sinkhole as Sinkhole -from .dns_param import DNSParam as DNSParam from .ip_get_params import IPGetParams as IPGetParams from .domain_history import DomainHistory as DomainHistory from .dns_list_params import DNSListParams as DNSListParams diff --git a/src/cloudflare/types/intel/dns_param.py b/src/cloudflare/types/intel/dns_param.py deleted file mode 100644 index dcca6358a0b..00000000000 --- a/src/cloudflare/types/intel/dns_param.py +++ /dev/null @@ -1,36 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import Union, Iterable -from datetime import date -from typing_extensions import Annotated, TypedDict - -from ..._utils import PropertyInfo - -__all__ = ["DNSParam", "ReverseRecord"] - - -class ReverseRecord(TypedDict, total=False): - first_seen: Annotated[Union[str, date], PropertyInfo(format="iso8601")] - """First seen date of the DNS record during the time period.""" - - hostname: object - """Hostname that the IP was observed resolving to.""" - - last_seen: Annotated[Union[str, date], PropertyInfo(format="iso8601")] - """Last seen date of the DNS record during the time period.""" - - -class DNSParam(TypedDict, total=False): - count: float - """Total results returned based on your search parameters.""" - - page: float - """Current page within paginated list of results.""" - - per_page: float - """Number of results per page of results.""" - - reverse_records: Iterable[ReverseRecord] - """Reverse DNS look-ups observed during the time period.""" diff --git a/src/cloudflare/types/magic_network_monitoring/__init__.py b/src/cloudflare/types/magic_network_monitoring/__init__.py index 91b7d5f38cc..2256b95c967 100644 --- a/src/cloudflare/types/magic_network_monitoring/__init__.py +++ b/src/cloudflare/types/magic_network_monitoring/__init__.py @@ -8,7 +8,6 @@ from .rule_create_params import RuleCreateParams as RuleCreateParams from .rule_delete_params import RuleDeleteParams as RuleDeleteParams from .rule_update_params import RuleUpdateParams as RuleUpdateParams -from .configuration_param import ConfigurationParam as ConfigurationParam from .config_create_params import ConfigCreateParams as ConfigCreateParams from .config_delete_params import ConfigDeleteParams as ConfigDeleteParams from .config_update_params import ConfigUpdateParams as ConfigUpdateParams diff --git a/src/cloudflare/types/magic_network_monitoring/configuration_param.py b/src/cloudflare/types/magic_network_monitoring/configuration_param.py deleted file mode 100644 index d44a0fc3d86..00000000000 --- a/src/cloudflare/types/magic_network_monitoring/configuration_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 import List -from typing_extensions import Required, TypedDict - -__all__ = ["ConfigurationParam"] - - -class ConfigurationParam(TypedDict, total=False): - default_sampling: Required[float] - """Fallback sampling rate of flow messages being sent in packets per second. - - This should match the packet sampling rate configured on the router. - """ - - name: Required[str] - """The account name.""" - - router_ips: Required[List[str]] diff --git a/src/cloudflare/types/origin_tls_client_auth/hostnames/__init__.py b/src/cloudflare/types/origin_tls_client_auth/hostnames/__init__.py index e8930167334..cc3675a505d 100644 --- a/src/cloudflare/types/origin_tls_client_auth/hostnames/__init__.py +++ b/src/cloudflare/types/origin_tls_client_auth/hostnames/__init__.py @@ -2,7 +2,6 @@ from __future__ import annotations -from .certificate import Certificate as Certificate from .certificate_get_response import CertificateGetResponse as CertificateGetResponse from .certificate_create_params import CertificateCreateParams as CertificateCreateParams from .certificate_delete_params import CertificateDeleteParams as CertificateDeleteParams diff --git a/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate.py b/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate.py deleted file mode 100644 index 0886c50caba..00000000000 --- a/src/cloudflare/types/origin_tls_client_auth/hostnames/certificate.py +++ /dev/null @@ -1,45 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional -from datetime import datetime -from typing_extensions import Literal - -from ...._models import BaseModel - -__all__ = ["Certificate"] - - -class Certificate(BaseModel): - id: Optional[str] = None - """Identifier""" - - certificate: Optional[str] = None - """The hostname certificate.""" - - expires_on: Optional[datetime] = None - """The date when the certificate expires.""" - - issuer: Optional[str] = None - """The certificate authority that issued the certificate.""" - - serial_number: Optional[str] = None - """The serial number on the uploaded certificate.""" - - signature: Optional[str] = None - """The type of hash used for the certificate.""" - - status: Optional[ - Literal[ - "initializing", - "pending_deployment", - "pending_deletion", - "active", - "deleted", - "deployment_timed_out", - "deletion_timed_out", - ] - ] = None - """Status of the certificate or the association.""" - - uploaded_on: Optional[datetime] = None - """The time when the certificate was uploaded.""" diff --git a/src/cloudflare/types/page_shield/__init__.py b/src/cloudflare/types/page_shield/__init__.py index 39cbf2d6c29..6f07ca60629 100644 --- a/src/cloudflare/types/page_shield/__init__.py +++ b/src/cloudflare/types/page_shield/__init__.py @@ -6,7 +6,6 @@ from .script import Script as Script from .setting import Setting as Setting from .connection import Connection as Connection -from .policy_param import PolicyParam as PolicyParam from .script_list_params import ScriptListParams as ScriptListParams from .script_get_response import ScriptGetResponse as ScriptGetResponse from .policy_create_params import PolicyCreateParams as PolicyCreateParams diff --git a/src/cloudflare/types/page_shield/policy_param.py b/src/cloudflare/types/page_shield/policy_param.py deleted file mode 100644 index 5e2c5c140ae..00000000000 --- a/src/cloudflare/types/page_shield/policy_param.py +++ /dev/null @@ -1,30 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Literal, TypedDict - -__all__ = ["PolicyParam"] - - -class PolicyParam(TypedDict, total=False): - id: str - """The ID of the policy""" - - action: Literal["allow", "log"] - """The action to take if the expression matches""" - - description: str - """A description for the policy""" - - enabled: bool - """Whether the policy is enabled""" - - expression: str - """ - The expression which must match for the policy to be applied, using the - Cloudflare Firewall rule expression syntax - """ - - value: str - """The policy which will be applied""" diff --git a/src/cloudflare/types/rate_plans/__init__.py b/src/cloudflare/types/rate_plans/__init__.py index b11a69db3bb..f491d32afb3 100644 --- a/src/cloudflare/types/rate_plans/__init__.py +++ b/src/cloudflare/types/rate_plans/__init__.py @@ -3,5 +3,4 @@ from __future__ import annotations from .rate_plan import RatePlan as RatePlan -from .rate_plan_param import RatePlanParam as RatePlanParam from .rate_plan_get_response import RatePlanGetResponse as RatePlanGetResponse diff --git a/src/cloudflare/types/rate_plans/rate_plan_param.py b/src/cloudflare/types/rate_plans/rate_plan_param.py deleted file mode 100644 index 7987224641d..00000000000 --- a/src/cloudflare/types/rate_plans/rate_plan_param.py +++ /dev/null @@ -1,24 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import Iterable -from typing_extensions import Literal, TypedDict - -__all__ = ["RatePlanParam", "Component"] - - -class Component(TypedDict, total=False): - default: float - """The default amount allocated.""" - - name: Literal["zones", "page_rules", "dedicated_certificates", "dedicated_certificates_custom"] - """The unique component.""" - - -class RatePlanParam(TypedDict, total=False): - components: Iterable[Component] - """Array of available components values for the plan.""" - - duration: float - """The duration of the plan subscription.""" diff --git a/src/cloudflare/types/rules/lists/__init__.py b/src/cloudflare/types/rules/lists/__init__.py index 67f205f1c01..0124438ea28 100644 --- a/src/cloudflare/types/rules/lists/__init__.py +++ b/src/cloudflare/types/rules/lists/__init__.py @@ -2,7 +2,6 @@ from __future__ import annotations -from .list_item import ListItem as ListItem from .list_cursor import ListCursor as ListCursor from .item_list_params import ItemListParams as ItemListParams from .operation_status import OperationStatus as OperationStatus diff --git a/src/cloudflare/types/rules/lists/list_item.py b/src/cloudflare/types/rules/lists/list_item.py deleted file mode 100644 index 3f97e10948a..00000000000 --- a/src/cloudflare/types/rules/lists/list_item.py +++ /dev/null @@ -1,12 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import Optional - -from ...._models import BaseModel - -__all__ = ["ListItem"] - - -class ListItem(BaseModel): - operation_id: Optional[str] = None - """The unique operation ID of the asynchronous action.""" diff --git a/src/cloudflare/types/speed/__init__.py b/src/cloudflare/types/speed/__init__.py index 4a31ccc0a91..679415b426a 100644 --- a/src/cloudflare/types/speed/__init__.py +++ b/src/cloudflare/types/speed/__init__.py @@ -7,7 +7,6 @@ from .schedule import Schedule as Schedule from .availability import Availability as Availability from .labeled_region import LabeledRegion as LabeledRegion -from .schedule_param import ScheduleParam as ScheduleParam from .test_list_params import TestListParams as TestListParams from .lighthouse_report import LighthouseReport as LighthouseReport from .page_list_response import PageListResponse as PageListResponse diff --git a/src/cloudflare/types/speed/schedule_param.py b/src/cloudflare/types/speed/schedule_param.py deleted file mode 100644 index 0b2f7bb2059..00000000000 --- a/src/cloudflare/types/speed/schedule_param.py +++ /dev/null @@ -1,40 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Literal, TypedDict - -__all__ = ["ScheduleParam"] - - -class ScheduleParam(TypedDict, total=False): - frequency: Literal["DAILY", "WEEKLY"] - """The frequency of the test.""" - - region: Literal[ - "asia-east1", - "asia-northeast1", - "asia-northeast2", - "asia-south1", - "asia-southeast1", - "australia-southeast1", - "europe-north1", - "europe-southwest1", - "europe-west1", - "europe-west2", - "europe-west3", - "europe-west4", - "europe-west8", - "europe-west9", - "me-west1", - "southamerica-east1", - "us-central1", - "us-east1", - "us-east4", - "us-south1", - "us-west1", - ] - """A test region.""" - - url: str - """A URL.""" diff --git a/src/cloudflare/types/user/__init__.py b/src/cloudflare/types/user/__init__.py index 357891efc5e..507f51bede1 100644 --- a/src/cloudflare/types/user/__init__.py +++ b/src/cloudflare/types/user/__init__.py @@ -3,7 +3,6 @@ from __future__ import annotations from .invite import Invite as Invite -from .policy import Policy as Policy from .cidr_list import CIDRList as CIDRList from .rate_plan import RatePlan as RatePlan from .organization import Organization as Organization diff --git a/src/cloudflare/types/user/policy.py b/src/cloudflare/types/user/policy.py deleted file mode 100644 index 02bb3290430..00000000000 --- a/src/cloudflare/types/user/policy.py +++ /dev/null @@ -1,30 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from typing import List, Optional -from typing_extensions import Literal - -from ..._models import BaseModel - -__all__ = ["Policy", "PermissionGroup"] - - -class PermissionGroup(BaseModel): - id: str - """Identifier of the group.""" - - name: Optional[str] = None - """Name of the group.""" - - -class Policy(BaseModel): - id: str - """Policy identifier.""" - - effect: Literal["allow", "deny"] - """Allow or deny operations against the resources.""" - - permission_groups: List[PermissionGroup] - """A set of permission groups that are specified to the policy.""" - - resources: object - """A list of resource names that the policy applies to.""" diff --git a/src/cloudflare/types/waiting_rooms/__init__.py b/src/cloudflare/types/waiting_rooms/__init__.py index 28092b72bf5..41fec119ae6 100644 --- a/src/cloudflare/types/waiting_rooms/__init__.py +++ b/src/cloudflare/types/waiting_rooms/__init__.py @@ -3,7 +3,6 @@ from __future__ import annotations from .event import Event as Event -from .setting import Setting as Setting from .waiting_room import WaitingRoom as WaitingRoom from .rule_edit_params import RuleEditParams as RuleEditParams from .additional_routes import AdditionalRoutes as AdditionalRoutes diff --git a/src/cloudflare/types/waiting_rooms/setting.py b/src/cloudflare/types/waiting_rooms/setting.py deleted file mode 100644 index 62555a567ef..00000000000 --- a/src/cloudflare/types/waiting_rooms/setting.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__ = ["Setting"] - - -class Setting(BaseModel): - search_engine_crawler_bypass: bool - """ - Whether to allow verified search engine crawlers to bypass all waiting rooms on - this zone. Verified search engine crawlers will not be tracked or counted by the - waiting room system, and will not appear in waiting room analytics. - """ diff --git a/src/cloudflare/types/web3/__init__.py b/src/cloudflare/types/web3/__init__.py index 4cf398f3222..acea5c8b2a7 100644 --- a/src/cloudflare/types/web3/__init__.py +++ b/src/cloudflare/types/web3/__init__.py @@ -3,7 +3,6 @@ from __future__ import annotations from .hostname import Hostname as Hostname -from .hostname_param import HostnameParam as HostnameParam from .hostname_edit_params import HostnameEditParams as HostnameEditParams from .hostname_create_params import HostnameCreateParams as HostnameCreateParams from .hostname_delete_params import HostnameDeleteParams as HostnameDeleteParams diff --git a/src/cloudflare/types/web3/hostname_param.py b/src/cloudflare/types/web3/hostname_param.py deleted file mode 100644 index 87d4041607d..00000000000 --- a/src/cloudflare/types/web3/hostname_param.py +++ /dev/null @@ -1,18 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing_extensions import Literal, TypedDict - -__all__ = ["HostnameParam"] - - -class HostnameParam(TypedDict, total=False): - description: str - """An optional description of the hostname.""" - - dnslink: str - """DNSLink value used if the target is ipfs.""" - - target: Literal["ethereum", "ipfs", "ipfs_universal_path"] - """Target gateway of the hostname.""" diff --git a/src/cloudflare/types/workers/scripts/__init__.py b/src/cloudflare/types/workers/scripts/__init__.py index dca9f8b1963..2eccd1a2cb7 100644 --- a/src/cloudflare/types/workers/scripts/__init__.py +++ b/src/cloudflare/types/workers/scripts/__init__.py @@ -4,7 +4,6 @@ from .schedule import Schedule as Schedule from .deployment import Deployment as Deployment -from .schedule_param import ScheduleParam as ScheduleParam from .consumer_script import ConsumerScript as ConsumerScript from .deployment_param import DeploymentParam as DeploymentParam from .tail_get_response import TailGetResponse as TailGetResponse diff --git a/src/cloudflare/types/workers/scripts/schedule_param.py b/src/cloudflare/types/workers/scripts/schedule_param.py deleted file mode 100644 index 5054e6e4f94..00000000000 --- a/src/cloudflare/types/workers/scripts/schedule_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 TypedDict - -__all__ = ["ScheduleParam"] - - -class ScheduleParam(TypedDict, total=False): - pass diff --git a/src/cloudflare/types/zero_trust/access/applications/__init__.py b/src/cloudflare/types/zero_trust/access/applications/__init__.py index 6abb930af01..a624e99e93d 100644 --- a/src/cloudflare/types/zero_trust/access/applications/__init__.py +++ b/src/cloudflare/types/zero_trust/access/applications/__init__.py @@ -4,7 +4,6 @@ from .ca import CA as CA from .policy import Policy as Policy -from .policy_param import PolicyParam as PolicyParam from .approval_group import ApprovalGroup as ApprovalGroup from .ca_get_response import CAGetResponse as CAGetResponse from .ca_create_response import CACreateResponse as CACreateResponse diff --git a/src/cloudflare/types/zero_trust/access/applications/policy_param.py b/src/cloudflare/types/zero_trust/access/applications/policy_param.py deleted file mode 100644 index c9d3abfd454..00000000000 --- a/src/cloudflare/types/zero_trust/access/applications/policy_param.py +++ /dev/null @@ -1,69 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import Iterable -from typing_extensions import Literal, TypedDict - -from ...access_rule_param import AccessRuleParam -from .approval_group_param import ApprovalGroupParam - -__all__ = ["PolicyParam"] - - -class PolicyParam(TypedDict, total=False): - approval_groups: Iterable[ApprovalGroupParam] - """Administrators who can approve a temporary authentication request.""" - - approval_required: bool - """ - Requires the user to request access from an administrator at the start of each - session. - """ - - decision: Literal["allow", "deny", "non_identity", "bypass"] - """The action Access will take if a user matches this policy.""" - - exclude: Iterable[AccessRuleParam] - """Rules evaluated with a NOT logical operator. - - To match the policy, a user cannot meet any of the Exclude rules. - """ - - include: Iterable[AccessRuleParam] - """Rules evaluated with an OR logical operator. - - A user needs to meet only one of the Include rules. - """ - - isolation_required: bool - """ - Require this application to be served in an isolated browser for users matching - this policy. 'Client Web Isolation' must be on for the account in order to use - this feature. - """ - - name: str - """The name of the Access policy.""" - - precedence: int - """The order of execution for this policy. Must be unique for each policy.""" - - purpose_justification_prompt: str - """A custom message that will appear on the purpose justification screen.""" - - purpose_justification_required: bool - """Require users to enter a justification when they log in to the application.""" - - require: Iterable[AccessRuleParam] - """Rules evaluated with an AND logical operator. - - To match the policy, a user must meet all of the Require rules. - """ - - session_duration: str - """The amount of time that tokens issued for the application will be valid. - - Must be in the format `300ms` or `2h45m`. Valid time units are: ns, us (or µs), - ms, s, m, h. - """ diff --git a/src/cloudflare/types/zero_trust/networks/__init__.py b/src/cloudflare/types/zero_trust/networks/__init__.py index 36cce8dd60e..8b26aa8b6b9 100644 --- a/src/cloudflare/types/zero_trust/networks/__init__.py +++ b/src/cloudflare/types/zero_trust/networks/__init__.py @@ -4,7 +4,6 @@ from .route import Route as Route from .teamnet import Teamnet as Teamnet -from .route_param import RouteParam as RouteParam from .virtual_network import VirtualNetwork as VirtualNetwork from .route_edit_params import RouteEditParams as RouteEditParams from .route_list_params import RouteListParams as RouteListParams diff --git a/src/cloudflare/types/zero_trust/networks/route_param.py b/src/cloudflare/types/zero_trust/networks/route_param.py deleted file mode 100644 index 8fa3a2b483e..00000000000 --- a/src/cloudflare/types/zero_trust/networks/route_param.py +++ /dev/null @@ -1,31 +0,0 @@ -# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. - -from __future__ import annotations - -from typing import Union -from datetime import datetime -from typing_extensions import Annotated, TypedDict - -from ...._utils import PropertyInfo - -__all__ = ["RouteParam"] - - -class RouteParam(TypedDict, total=False): - comment: str - """Optional remark describing the route.""" - - created_at: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")] - """Timestamp of when the resource was created.""" - - deleted_at: Annotated[Union[str, datetime], PropertyInfo(format="iso8601")] - """Timestamp of when the resource was deleted. - - If `null`, the resource has not been deleted. - """ - - network: str - """The private IPv4 or IPv6 range connected by the route, in CIDR notation.""" - - virtual_network_id: str - """UUID of the virtual network."""