From bce89ebcd94cf8f27f1df383bb26fab80ece51df Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Thu, 4 Jul 2024 08:54:15 +0000 Subject: [PATCH] feat(api): OpenAPI spec update via Stainless API (#1168) --- .stats.yml | 2 +- .../resources/radar/annotations/outages.py | 76 +-- src/cloudflare/resources/radar/as112/as112.py | 42 +- .../resources/radar/as112/summary.py | 252 +-------- .../radar/as112/timeseries_groups.py | 252 +-------- src/cloudflare/resources/radar/as112/top.py | 168 +----- .../resources/radar/attacks/layer3/layer3.py | 42 +- .../resources/radar/attacks/layer3/summary.py | 252 +-------- .../radar/attacks/layer3/timeseries_groups.py | 352 ++---------- .../radar/attacks/layer3/top/locations.py | 84 +-- .../resources/radar/attacks/layer3/top/top.py | 126 +---- .../resources/radar/attacks/layer7/layer7.py | 180 ++++-- .../resources/radar/attacks/layer7/summary.py | 252 +-------- .../radar/attacks/layer7/timeseries_groups.py | 336 +---------- .../radar/attacks/layer7/top/ases.py | 176 ++++-- .../radar/attacks/layer7/top/locations.py | 352 +++++++++--- .../resources/radar/attacks/layer7/top/top.py | 528 ++++++++++++++---- src/cloudflare/resources/radar/bgp/bgp.py | 42 +- .../resources/radar/bgp/hijacks/events.py | 38 +- src/cloudflare/resources/radar/bgp/ips.py | 38 +- .../resources/radar/bgp/leaks/events.py | 38 +- .../resources/radar/bgp/top/ases.py | 42 +- src/cloudflare/resources/radar/bgp/top/top.py | 42 +- .../resources/radar/connection_tampering.py | 84 +-- src/cloudflare/resources/radar/dns/top.py | 84 +-- .../resources/radar/email/routing/summary.py | 252 +-------- .../radar/email/routing/timeseries_groups.py | 252 +-------- .../resources/radar/email/security/summary.py | 378 +------------ .../radar/email/security/timeseries_groups.py | 378 +------------ .../email/security/top/tlds/malicious.py | 42 +- .../radar/email/security/top/tlds/spam.py | 42 +- .../radar/email/security/top/tlds/spoof.py | 42 +- .../radar/email/security/top/tlds/tlds.py | 42 +- .../resources/radar/http/ases/ases.py | 42 +- .../resources/radar/http/ases/bot_class.py | 42 +- .../radar/http/ases/browser_family.py | 42 +- .../resources/radar/http/ases/device_type.py | 42 +- .../resources/radar/http/ases/http_method.py | 42 +- .../radar/http/ases/http_protocol.py | 42 +- .../resources/radar/http/ases/ip_version.py | 42 +- .../resources/radar/http/ases/os.py | 42 +- .../resources/radar/http/ases/tls_version.py | 42 +- src/cloudflare/resources/radar/http/http.py | 42 +- .../radar/http/locations/bot_class.py | 42 +- .../radar/http/locations/browser_family.py | 42 +- .../radar/http/locations/device_type.py | 42 +- .../radar/http/locations/http_method.py | 42 +- .../radar/http/locations/http_protocol.py | 42 +- .../radar/http/locations/ip_version.py | 42 +- .../radar/http/locations/locations.py | 42 +- .../resources/radar/http/locations/os.py | 42 +- .../radar/http/locations/tls_version.py | 42 +- .../resources/radar/http/summary.py | 336 +---------- .../resources/radar/http/timeseries_groups.py | 420 +------------- src/cloudflare/resources/radar/http/top.py | 84 +-- .../resources/radar/netflows/netflows.py | 42 +- .../resources/radar/netflows/top.py | 84 +-- src/cloudflare/resources/radar/quality/iqi.py | 84 +-- .../resources/radar/ranking/ranking.py | 42 +- .../radar/traffic_anomalies/locations.py | 38 +- .../traffic_anomalies/traffic_anomalies.py | 38 +- .../resources/radar/verified_bots/top.py | 84 +-- .../radar/annotations/outage_get_params.py | 21 +- .../annotations/outage_locations_params.py | 21 +- .../radar/as112/summary_dnssec_params.py | 23 +- .../types/radar/as112/summary_edns_params.py | 23 +- .../radar/as112/summary_ip_version_params.py | 23 +- .../radar/as112/summary_protocol_params.py | 23 +- .../radar/as112/summary_query_type_params.py | 23 +- .../as112/summary_response_codes_params.py | 23 +- .../as112/timeseries_group_dnssec_params.py | 23 +- .../as112/timeseries_group_edns_params.py | 23 +- .../timeseries_group_ip_version_params.py | 23 +- .../as112/timeseries_group_protocol_params.py | 23 +- .../timeseries_group_query_type_params.py | 23 +- .../timeseries_group_response_codes_params.py | 23 +- .../types/radar/as112/top_dnssec_params.py | 23 +- .../types/radar/as112/top_edns_params.py | 23 +- .../radar/as112/top_ip_version_params.py | 23 +- .../types/radar/as112/top_locations_params.py | 23 +- .../types/radar/as112_timeseries_params.py | 23 +- .../attacks/layer3/summary_bitrate_params.py | 23 +- .../attacks/layer3/summary_duration_params.py | 23 +- .../attacks/layer3/summary_get_params.py | 23 +- .../layer3/summary_ip_version_params.py | 23 +- .../attacks/layer3/summary_protocol_params.py | 23 +- .../attacks/layer3/summary_vector_params.py | 23 +- .../layer3/timeseries_group_bitrate_params.py | 23 +- .../timeseries_group_duration_params.py | 23 +- .../layer3/timeseries_group_get_params.py | 23 +- .../timeseries_group_industry_params.py | 26 +- .../timeseries_group_ip_version_params.py | 23 +- .../timeseries_group_protocol_params.py | 23 +- .../layer3/timeseries_group_vector_params.py | 23 +- .../timeseries_group_vertical_params.py | 26 +- .../layer3/top/location_origin_params.py | 23 +- .../layer3/top/location_target_params.py | 23 +- .../attacks/layer3/top_attacks_params.py | 23 +- .../attacks/layer3/top_industry_params.py | 23 +- .../attacks/layer3/top_vertical_params.py | 23 +- .../radar/attacks/layer3_timeseries_params.py | 23 +- .../attacks/layer7/summary_get_params.py | 23 +- .../layer7/summary_http_method_params.py | 23 +- .../layer7/summary_http_version_params.py | 23 +- .../layer7/summary_ip_version_params.py | 23 +- .../layer7/summary_managed_rules_params.py | 23 +- .../summary_mitigation_product_params.py | 23 +- .../layer7/timeseries_group_get_params.py | 23 +- .../timeseries_group_http_method_params.py | 23 +- .../timeseries_group_http_version_params.py | 23 +- .../timeseries_group_industry_params.py | 23 +- .../timeseries_group_ip_version_params.py | 23 +- .../timeseries_group_managed_rules_params.py | 23 +- ...eseries_group_mitigation_product_params.py | 23 +- .../timeseries_group_vertical_params.py | 23 +- .../attacks/layer7/top/ase_origin_params.py | 94 +++- .../layer7/top/location_origin_params.py | 94 +++- .../layer7/top/location_target_params.py | 94 +++- .../attacks/layer7/top_attacks_params.py | 94 +++- .../attacks/layer7/top_industry_params.py | 94 +++- .../attacks/layer7/top_vertical_params.py | 94 +++- .../radar/attacks/layer7_timeseries_params.py | 96 +++- .../radar/bgp/hijacks/event_list_params.py | 21 +- .../types/radar/bgp/ip_timeseries_params.py | 21 +- .../radar/bgp/leaks/event_list_params.py | 21 +- .../types/radar/bgp/top/ase_get_params.py | 23 +- .../types/radar/bgp/top_prefixes_params.py | 23 +- .../types/radar/bgp_timeseries_params.py | 23 +- .../connection_tampering_summary_params.py | 23 +- ...tion_tampering_timeseries_groups_params.py | 23 +- .../types/radar/dns/top_ases_params.py | 23 +- .../types/radar/dns/top_locations_params.py | 23 +- .../radar/email/routing/summary_arc_params.py | 23 +- .../email/routing/summary_dkim_params.py | 23 +- .../email/routing/summary_dmarc_params.py | 23 +- .../email/routing/summary_encrypted_params.py | 23 +- .../routing/summary_ip_version_params.py | 23 +- .../radar/email/routing/summary_spf_params.py | 23 +- .../routing/timeseries_group_arc_params.py | 23 +- .../routing/timeseries_group_dkim_params.py | 23 +- .../routing/timeseries_group_dmarc_params.py | 23 +- .../timeseries_group_encrypted_params.py | 23 +- .../timeseries_group_ip_version_params.py | 23 +- .../routing/timeseries_group_spf_params.py | 23 +- .../email/security/summary_arc_params.py | 23 +- .../email/security/summary_dkim_params.py | 23 +- .../email/security/summary_dmarc_params.py | 23 +- .../security/summary_malicious_params.py | 23 +- .../email/security/summary_spam_params.py | 23 +- .../email/security/summary_spf_params.py | 23 +- .../email/security/summary_spoof_params.py | 23 +- .../summary_threat_category_params.py | 23 +- .../security/summary_tls_version_params.py | 23 +- .../security/timeseries_group_arc_params.py | 23 +- .../security/timeseries_group_dkim_params.py | 23 +- .../security/timeseries_group_dmarc_params.py | 23 +- .../timeseries_group_malicious_params.py | 23 +- .../security/timeseries_group_spam_params.py | 23 +- .../security/timeseries_group_spf_params.py | 23 +- .../security/timeseries_group_spoof_params.py | 23 +- ...timeseries_group_threat_category_params.py | 23 +- .../timeseries_group_tls_version_params.py | 23 +- .../email/security/top/tld_get_params.py | 23 +- .../security/top/tlds/malicious_get_params.py | 23 +- .../security/top/tlds/spam_get_params.py | 23 +- .../security/top/tlds/spoof_get_params.py | 23 +- .../types/radar/http/ase_get_params.py | 23 +- .../radar/http/ases/bot_class_get_params.py | 23 +- .../http/ases/browser_family_get_params.py | 23 +- .../radar/http/ases/device_type_get_params.py | 23 +- .../radar/http/ases/http_method_get_params.py | 23 +- .../http/ases/http_protocol_get_params.py | 23 +- .../radar/http/ases/ip_version_get_params.py | 23 +- .../types/radar/http/ases/os_get_params.py | 23 +- .../radar/http/ases/tls_version_get_params.py | 23 +- .../types/radar/http/location_get_params.py | 23 +- .../http/locations/bot_class_get_params.py | 23 +- .../locations/browser_family_get_params.py | 23 +- .../http/locations/device_type_get_params.py | 23 +- .../http/locations/http_method_get_params.py | 23 +- .../locations/http_protocol_get_params.py | 23 +- .../http/locations/ip_version_get_params.py | 23 +- .../radar/http/locations/os_get_params.py | 23 +- .../http/locations/tls_version_get_params.py | 23 +- .../radar/http/summary_bot_class_params.py | 23 +- .../radar/http/summary_device_type_params.py | 23 +- .../http/summary_http_protocol_params.py | 23 +- .../radar/http/summary_http_version_params.py | 23 +- .../radar/http/summary_ip_version_params.py | 23 +- .../types/radar/http/summary_os_params.py | 23 +- .../radar/http/summary_post_quantum_params.py | 23 +- .../radar/http/summary_tls_version_params.py | 23 +- .../http/timeseries_group_bot_class_params.py | 23 +- .../timeseries_group_browser_family_params.py | 23 +- .../http/timeseries_group_browser_params.py | 23 +- .../timeseries_group_device_type_params.py | 23 +- .../timeseries_group_http_protocol_params.py | 23 +- .../timeseries_group_http_version_params.py | 23 +- .../timeseries_group_ip_version_params.py | 23 +- .../radar/http/timeseries_group_os_params.py | 23 +- .../timeseries_group_post_quantum_params.py | 23 +- .../timeseries_group_tls_version_params.py | 23 +- .../radar/http/top_browser_families_params.py | 23 +- .../types/radar/http/top_browsers_params.py | 23 +- .../types/radar/http_timeseries_params.py | 23 +- .../types/radar/netflow_timeseries_params.py | 23 +- .../types/radar/netflows/top_ases_params.py | 23 +- .../radar/netflows/top_locations_params.py | 23 +- .../types/radar/quality/iqi_summary_params.py | 23 +- .../quality/iqi_timeseries_groups_params.py | 23 +- .../radar/ranking_timeseries_groups_params.py | 23 +- .../traffic_anomalies/location_get_params.py | 21 +- .../types/radar/traffic_anomaly_get_params.py | 21 +- .../radar/verified_bots/top_bots_params.py | 23 +- .../verified_bots/top_categories_params.py | 23 +- .../api_resources/radar/as112/test_summary.py | 24 +- .../radar/as112/test_timeseries_groups.py | 24 +- tests/api_resources/radar/as112/test_top.py | 16 +- .../radar/attacks/layer3/test_summary.py | 24 +- .../attacks/layer3/test_timeseries_groups.py | 36 +- .../radar/attacks/layer3/test_top.py | 12 +- .../attacks/layer3/top/test_locations.py | 8 +- .../radar/attacks/layer7/test_summary.py | 24 +- .../attacks/layer7/test_timeseries_groups.py | 32 +- .../radar/attacks/layer7/test_top.py | 36 +- .../radar/attacks/layer7/top/test_ases.py | 12 +- .../attacks/layer7/top/test_locations.py | 24 +- .../radar/attacks/test_layer3.py | 4 +- .../radar/attacks/test_layer7.py | 12 +- tests/api_resources/radar/bgp/test_top.py | 4 +- .../api_resources/radar/bgp/top/test_ases.py | 4 +- tests/api_resources/radar/dns/test_top.py | 8 +- .../radar/email/routing/test_summary.py | 24 +- .../email/routing/test_timeseries_groups.py | 24 +- .../radar/email/security/test_summary.py | 36 +- .../email/security/test_timeseries_groups.py | 36 +- .../radar/email/security/top/test_tlds.py | 4 +- .../email/security/top/tlds/test_malicious.py | 4 +- .../email/security/top/tlds/test_spam.py | 4 +- .../email/security/top/tlds/test_spoof.py | 4 +- .../radar/http/ases/test_bot_class.py | 4 +- .../radar/http/ases/test_browser_family.py | 4 +- .../radar/http/ases/test_device_type.py | 4 +- .../radar/http/ases/test_http_method.py | 4 +- .../radar/http/ases/test_http_protocol.py | 4 +- .../radar/http/ases/test_ip_version.py | 4 +- .../api_resources/radar/http/ases/test_os.py | 4 +- .../radar/http/ases/test_tls_version.py | 4 +- .../radar/http/locations/test_bot_class.py | 4 +- .../http/locations/test_browser_family.py | 4 +- .../radar/http/locations/test_device_type.py | 4 +- .../radar/http/locations/test_http_method.py | 4 +- .../http/locations/test_http_protocol.py | 4 +- .../radar/http/locations/test_ip_version.py | 4 +- .../radar/http/locations/test_os.py | 4 +- .../radar/http/locations/test_tls_version.py | 4 +- tests/api_resources/radar/http/test_ases.py | 4 +- .../radar/http/test_locations.py | 4 +- .../api_resources/radar/http/test_summary.py | 32 +- .../radar/http/test_timeseries_groups.py | 40 +- tests/api_resources/radar/http/test_top.py | 8 +- .../api_resources/radar/netflows/test_top.py | 8 +- tests/api_resources/radar/quality/test_iqi.py | 8 +- tests/api_resources/radar/test_as112.py | 4 +- tests/api_resources/radar/test_bgp.py | 4 +- .../radar/test_connection_tampering.py | 8 +- tests/api_resources/radar/test_http.py | 4 +- tests/api_resources/radar/test_netflows.py | 4 +- tests/api_resources/radar/test_ranking.py | 4 +- .../radar/verified_bots/test_top.py | 8 +- 270 files changed, 2300 insertions(+), 9712 deletions(-) diff --git a/.stats.yml b/.stats.yml index 3ce2c63b630..989e9279123 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1254 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-1c4b189384dd6c53416271abb9b2fe109b44c1ddbb06d3d892e56457bbe0af70.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-57d5393f478118c0b972617567a66d66ffd64916fddd3f2328cd012671a12860.yml diff --git a/src/cloudflare/resources/radar/annotations/outages.py b/src/cloudflare/resources/radar/annotations/outages.py index f53fee61e9d..b940c62d3e9 100644 --- a/src/cloudflare/resources/radar/annotations/outages.py +++ b/src/cloudflare/resources/radar/annotations/outages.py @@ -46,24 +46,7 @@ def get( *, asn: int | NotGiven = NOT_GIVEN, date_end: Union[str, datetime] | NotGiven = NOT_GIVEN, - date_range: Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - | NotGiven = NOT_GIVEN, + date_range: str | NotGiven = NOT_GIVEN, date_start: Union[str, datetime] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -134,24 +117,7 @@ def locations( self, *, date_end: Union[str, datetime] | NotGiven = NOT_GIVEN, - date_range: Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - | NotGiven = NOT_GIVEN, + date_range: str | NotGiven = NOT_GIVEN, date_start: Union[str, datetime] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -222,24 +188,7 @@ async def get( *, asn: int | NotGiven = NOT_GIVEN, date_end: Union[str, datetime] | NotGiven = NOT_GIVEN, - date_range: Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - | NotGiven = NOT_GIVEN, + date_range: str | NotGiven = NOT_GIVEN, date_start: Union[str, datetime] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -310,24 +259,7 @@ async def locations( self, *, date_end: Union[str, datetime] | NotGiven = NOT_GIVEN, - date_range: Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - | NotGiven = NOT_GIVEN, + date_range: str | NotGiven = NOT_GIVEN, date_start: Union[str, datetime] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/as112/as112.py b/src/cloudflare/resources/radar/as112/as112.py index d9245a12e0e..001bf5096a3 100644 --- a/src/cloudflare/resources/radar/as112/as112.py +++ b/src/cloudflare/resources/radar/as112/as112.py @@ -83,26 +83,7 @@ def timeseries( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -209,26 +190,7 @@ async def timeseries( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/as112/summary.py b/src/cloudflare/resources/radar/as112/summary.py index a67b1833204..f09a163e607 100644 --- a/src/cloudflare/resources/radar/as112/summary.py +++ b/src/cloudflare/resources/radar/as112/summary.py @@ -58,26 +58,7 @@ def dnssec( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -156,26 +137,7 @@ def edns( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -254,26 +216,7 @@ def ip_version( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -352,26 +295,7 @@ def protocol( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -450,26 +374,7 @@ def query_type( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -548,26 +453,7 @@ def response_codes( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -656,26 +542,7 @@ async def dnssec( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -754,26 +621,7 @@ async def edns( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -852,26 +700,7 @@ async def ip_version( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -950,26 +779,7 @@ async def protocol( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -1048,26 +858,7 @@ async def query_type( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -1146,26 +937,7 @@ async def response_codes( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/as112/timeseries_groups.py b/src/cloudflare/resources/radar/as112/timeseries_groups.py index 22765f808f8..5e8483aec01 100644 --- a/src/cloudflare/resources/radar/as112/timeseries_groups.py +++ b/src/cloudflare/resources/radar/as112/timeseries_groups.py @@ -59,26 +59,7 @@ def dnssec( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -163,26 +144,7 @@ def edns( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -267,26 +229,7 @@ def ip_version( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -371,26 +314,7 @@ def protocol( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -475,26 +399,7 @@ def query_type( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -579,26 +484,7 @@ def response_codes( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -696,26 +582,7 @@ async def dnssec( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -800,26 +667,7 @@ async def edns( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -904,26 +752,7 @@ async def ip_version( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -1008,26 +837,7 @@ async def protocol( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -1112,26 +922,7 @@ async def query_type( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -1216,26 +1007,7 @@ async def response_codes( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/as112/top.py b/src/cloudflare/resources/radar/as112/top.py index bf2166e991f..3135f52f389 100644 --- a/src/cloudflare/resources/radar/as112/top.py +++ b/src/cloudflare/resources/radar/as112/top.py @@ -50,26 +50,7 @@ def dnssec( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -157,26 +138,7 @@ def edns( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -264,26 +226,7 @@ def ip_version( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -370,26 +313,7 @@ def locations( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -485,26 +409,7 @@ async def dnssec( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -592,26 +497,7 @@ async def edns( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -699,26 +585,7 @@ async def ip_version( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -805,26 +672,7 @@ async def locations( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/attacks/layer3/layer3.py b/src/cloudflare/resources/radar/attacks/layer3/layer3.py index 22a1a7a706b..38f01fdb86a 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/layer3.py +++ b/src/cloudflare/resources/radar/attacks/layer3/layer3.py @@ -84,26 +84,7 @@ def timeseries( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -232,26 +213,7 @@ async def timeseries( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/attacks/layer3/summary.py b/src/cloudflare/resources/radar/attacks/layer3/summary.py index d894d181af2..b3df7e5b719 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/summary.py +++ b/src/cloudflare/resources/radar/attacks/layer3/summary.py @@ -57,26 +57,7 @@ def bitrate( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -162,26 +143,7 @@ def duration( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -268,26 +230,7 @@ def get( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -366,26 +309,7 @@ def ip_version( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -467,26 +391,7 @@ def protocol( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -568,26 +473,7 @@ def vector( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -683,26 +569,7 @@ async def bitrate( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -788,26 +655,7 @@ async def duration( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -894,26 +742,7 @@ async def get( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -992,26 +821,7 @@ async def ip_version( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1093,26 +903,7 @@ async def protocol( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1194,26 +985,7 @@ async def vector( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups.py b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups.py index 17011e35747..5acfbac08cc 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups.py +++ b/src/cloudflare/resources/radar/attacks/layer3/timeseries_groups.py @@ -62,26 +62,7 @@ def bitrate( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -178,26 +159,7 @@ def duration( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -295,26 +257,7 @@ def get( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -399,26 +342,7 @@ def industry( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -427,6 +351,7 @@ def industry( location: List[str] | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, normalization: Literal["PERCENTAGE", "MIN0_MAX"] | NotGiven = NOT_GIVEN, + protocol: List[Literal["UDP", "TCP", "ICMP", "GRE"]] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -473,6 +398,8 @@ def industry( normalization: Normalization method applied. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + protocol: Array of L3/4 attack types. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -502,6 +429,7 @@ def industry( "location": location, "name": name, "normalization": normalization, + "protocol": protocol, }, timeseries_group_industry_params.TimeseriesGroupIndustryParams, ), @@ -516,26 +444,7 @@ def ip_version( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -628,26 +537,7 @@ def protocol( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -740,26 +630,7 @@ def vector( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -861,26 +732,7 @@ def vertical( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -889,6 +741,7 @@ def vertical( location: List[str] | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, normalization: Literal["PERCENTAGE", "MIN0_MAX"] | NotGiven = NOT_GIVEN, + protocol: List[Literal["UDP", "TCP", "ICMP", "GRE"]] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -935,6 +788,8 @@ def vertical( normalization: Normalization method applied. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + protocol: Array of L3/4 attack types. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -964,6 +819,7 @@ def vertical( "location": location, "name": name, "normalization": normalization, + "protocol": protocol, }, timeseries_group_vertical_params.TimeseriesGroupVerticalParams, ), @@ -988,26 +844,7 @@ async def bitrate( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1104,26 +941,7 @@ async def duration( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1221,26 +1039,7 @@ async def get( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -1325,26 +1124,7 @@ async def industry( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1353,6 +1133,7 @@ async def industry( location: List[str] | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, normalization: Literal["PERCENTAGE", "MIN0_MAX"] | NotGiven = NOT_GIVEN, + protocol: List[Literal["UDP", "TCP", "ICMP", "GRE"]] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -1399,6 +1180,8 @@ async def industry( normalization: Normalization method applied. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + protocol: Array of L3/4 attack types. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -1428,6 +1211,7 @@ async def industry( "location": location, "name": name, "normalization": normalization, + "protocol": protocol, }, timeseries_group_industry_params.TimeseriesGroupIndustryParams, ), @@ -1442,26 +1226,7 @@ async def ip_version( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1554,26 +1319,7 @@ async def protocol( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1666,26 +1412,7 @@ async def vector( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1787,26 +1514,7 @@ async def vertical( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1815,6 +1523,7 @@ async def vertical( location: List[str] | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, normalization: Literal["PERCENTAGE", "MIN0_MAX"] | NotGiven = NOT_GIVEN, + protocol: List[Literal["UDP", "TCP", "ICMP", "GRE"]] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. extra_headers: Headers | None = None, @@ -1861,6 +1570,8 @@ async def vertical( normalization: Normalization method applied. Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). + protocol: Array of L3/4 attack types. + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -1890,6 +1601,7 @@ async def vertical( "location": location, "name": name, "normalization": normalization, + "protocol": protocol, }, timeseries_group_vertical_params.TimeseriesGroupVerticalParams, ), diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/locations.py b/src/cloudflare/resources/radar/attacks/layer3/top/locations.py index 998521834a5..f4502c459c7 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/locations.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/locations.py @@ -46,26 +46,7 @@ def origin( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, @@ -150,26 +131,7 @@ def target( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, @@ -264,26 +226,7 @@ async def origin( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, @@ -368,26 +311,7 @@ async def target( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/attacks/layer3/top/top.py b/src/cloudflare/resources/radar/attacks/layer3/top/top.py index 42c7224e8d6..362a4b1942f 100644 --- a/src/cloudflare/resources/radar/attacks/layer3/top/top.py +++ b/src/cloudflare/resources/radar/attacks/layer3/top/top.py @@ -59,26 +59,7 @@ def attacks( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, @@ -183,26 +164,7 @@ def industry( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, @@ -287,26 +249,7 @@ def vertical( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, @@ -405,26 +348,7 @@ async def attacks( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, @@ -529,26 +453,7 @@ async def industry( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, @@ -633,26 +538,7 @@ async def vertical( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/attacks/layer7/layer7.py b/src/cloudflare/resources/radar/attacks/layer7/layer7.py index 713c3e11de2..a758fc05c92 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/layer7.py +++ b/src/cloudflare/resources/radar/attacks/layer7/layer7.py @@ -90,29 +90,69 @@ def timeseries( | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ + date_range: List[str] | NotGiven = NOT_GIVEN, + date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, + format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_method: List[ Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", ] ] | NotGiven = NOT_GIVEN, - date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, + ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, + mitigation_product: List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ] + | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, normalization: Literal["PERCENTAGE_CHANGE", "MIN0_MAX"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -136,7 +176,7 @@ def timeseries( For example, `-174, 3356` excludes results from AS174, but includes results from AS3356. - attack: Array of L7 attack types. + attack: This field is deprecated, please use the new `mitigationProduct`. continent: Array of comma separated list of continents (alpha-2 continent codes). Start with `-` to exclude from results. For example, `-EU,NA` excludes results from @@ -152,10 +192,18 @@ def timeseries( format: Format results are returned in. + http_method: Filter for http method. + + http_version: Filter for http version. + + ip_version: Filter for ip version. + location: Array of comma separated list of locations (alpha-2 country codes). Start with `-` to exclude from results. For example, `-US,PT` excludes results from the US, but includes results from PT. + mitigation_product: Array of L7 mitigation products. + name: Array of names that will be used to name the series in responses. normalization: Normalization method applied. Refer to @@ -186,7 +234,11 @@ def timeseries( "date_range": date_range, "date_start": date_start, "format": format, + "http_method": http_method, + "http_version": http_version, + "ip_version": ip_version, "location": location, + "mitigation_product": mitigation_product, "name": name, "normalization": normalization, }, @@ -232,29 +284,69 @@ async def timeseries( | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ + date_range: List[str] | NotGiven = NOT_GIVEN, + date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, + format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_method: List[ Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", ] ] | NotGiven = NOT_GIVEN, - date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, + ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, + mitigation_product: List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ] + | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, normalization: Literal["PERCENTAGE_CHANGE", "MIN0_MAX"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -278,7 +370,7 @@ async def timeseries( For example, `-174, 3356` excludes results from AS174, but includes results from AS3356. - attack: Array of L7 attack types. + attack: This field is deprecated, please use the new `mitigationProduct`. continent: Array of comma separated list of continents (alpha-2 continent codes). Start with `-` to exclude from results. For example, `-EU,NA` excludes results from @@ -294,10 +386,18 @@ async def timeseries( format: Format results are returned in. + http_method: Filter for http method. + + http_version: Filter for http version. + + ip_version: Filter for ip version. + location: Array of comma separated list of locations (alpha-2 country codes). Start with `-` to exclude from results. For example, `-US,PT` excludes results from the US, but includes results from PT. + mitigation_product: Array of L7 mitigation products. + name: Array of names that will be used to name the series in responses. normalization: Normalization method applied. Refer to @@ -328,7 +428,11 @@ async def timeseries( "date_range": date_range, "date_start": date_start, "format": format, + "http_method": http_method, + "http_version": http_version, + "ip_version": ip_version, "location": location, + "mitigation_product": mitigation_product, "name": name, "normalization": normalization, }, diff --git a/src/cloudflare/resources/radar/attacks/layer7/summary.py b/src/cloudflare/resources/radar/attacks/layer7/summary.py index 9af8c3dd0d9..668b40c9374 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/summary.py +++ b/src/cloudflare/resources/radar/attacks/layer7/summary.py @@ -58,26 +58,7 @@ def get( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -156,26 +137,7 @@ def http_method( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, @@ -271,26 +233,7 @@ def http_version( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -436,26 +379,7 @@ def ip_version( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -601,26 +525,7 @@ def managed_rules( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -770,26 +675,7 @@ def mitigation_product( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -940,26 +826,7 @@ async def get( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -1038,26 +905,7 @@ async def http_method( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, @@ -1153,26 +1001,7 @@ async def http_version( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -1318,26 +1147,7 @@ async def ip_version( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -1483,26 +1293,7 @@ async def managed_rules( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -1652,26 +1443,7 @@ async def mitigation_product( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ diff --git a/src/cloudflare/resources/radar/attacks/layer7/timeseries_groups.py b/src/cloudflare/resources/radar/attacks/layer7/timeseries_groups.py index 35c2b923a1b..674cde10cc1 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/timeseries_groups.py +++ b/src/cloudflare/resources/radar/attacks/layer7/timeseries_groups.py @@ -65,26 +65,7 @@ def get( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -170,26 +151,7 @@ def http_method( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, @@ -296,26 +258,7 @@ def http_version( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -472,26 +415,7 @@ def industry( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -657,26 +581,7 @@ def ip_version( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -833,26 +738,7 @@ def managed_rules( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -1013,26 +899,7 @@ def mitigation_product( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -1186,26 +1053,7 @@ def vertical( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -1381,26 +1229,7 @@ async def get( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -1486,26 +1315,7 @@ async def http_method( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, @@ -1612,26 +1422,7 @@ async def http_version( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -1788,26 +1579,7 @@ async def industry( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -1973,26 +1745,7 @@ async def ip_version( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -2149,26 +1902,7 @@ async def managed_rules( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -2329,26 +2063,7 @@ async def mitigation_product( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ @@ -2502,26 +2217,7 @@ async def vertical( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_method: List[ diff --git a/src/cloudflare/resources/radar/attacks/layer7/top/ases.py b/src/cloudflare/resources/radar/attacks/layer7/top/ases.py index f6d4c1a7476..9f50e400b86 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/top/ases.py +++ b/src/cloudflare/resources/radar/attacks/layer7/top/ases.py @@ -45,30 +45,70 @@ def origin( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ + date_range: List[str] | NotGiven = NOT_GIVEN, + date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, + format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_method: List[ Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", ] ] | NotGiven = NOT_GIVEN, - date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, + ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, + mitigation_product: List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ] + | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -98,12 +138,20 @@ def origin( format: Format results are returned in. + http_method: Filter for http method. + + http_version: Filter for http version. + + ip_version: Filter for ip version. + limit: Limit the number of objects in the response. location: Array of comma separated list of locations (alpha-2 country codes). Start with `-` to exclude from results. For example, `-US,PT` excludes results from the US, but includes results from PT. + mitigation_product: Array of L7 mitigation products. + name: Array of names that will be used to name the series in responses. extra_headers: Send extra headers @@ -128,8 +176,12 @@ def origin( "date_range": date_range, "date_start": date_start, "format": format, + "http_method": http_method, + "http_version": http_version, + "ip_version": ip_version, "limit": limit, "location": location, + "mitigation_product": mitigation_product, "name": name, }, ase_origin_params.AseOriginParams, @@ -154,30 +206,70 @@ async def origin( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ + date_range: List[str] | NotGiven = NOT_GIVEN, + date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, + format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_method: List[ Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", ] ] | NotGiven = NOT_GIVEN, - date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, + ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, + mitigation_product: List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ] + | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -207,12 +299,20 @@ async def origin( format: Format results are returned in. + http_method: Filter for http method. + + http_version: Filter for http version. + + ip_version: Filter for ip version. + limit: Limit the number of objects in the response. location: Array of comma separated list of locations (alpha-2 country codes). Start with `-` to exclude from results. For example, `-US,PT` excludes results from the US, but includes results from PT. + mitigation_product: Array of L7 mitigation products. + name: Array of names that will be used to name the series in responses. extra_headers: Send extra headers @@ -237,8 +337,12 @@ async def origin( "date_range": date_range, "date_start": date_start, "format": format, + "http_method": http_method, + "http_version": http_version, + "ip_version": ip_version, "limit": limit, "location": location, + "mitigation_product": mitigation_product, "name": name, }, ase_origin_params.AseOriginParams, diff --git a/src/cloudflare/resources/radar/attacks/layer7/top/locations.py b/src/cloudflare/resources/radar/attacks/layer7/top/locations.py index 033bda36fdf..3933d5470d0 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/top/locations.py +++ b/src/cloudflare/resources/radar/attacks/layer7/top/locations.py @@ -47,29 +47,69 @@ def origin( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ + date_range: List[str] | NotGiven = NOT_GIVEN, + date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, + format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_method: List[ Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", ] ] | NotGiven = NOT_GIVEN, - date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, + ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, + mitigation_product: List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ] + | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -103,8 +143,16 @@ def origin( format: Format results are returned in. + http_method: Filter for http method. + + http_version: Filter for http version. + + ip_version: Filter for ip version. + limit: Limit the number of objects in the response. + mitigation_product: Array of L7 mitigation products. + name: Array of names that will be used to name the series in responses. extra_headers: Send extra headers @@ -130,7 +178,11 @@ def origin( "date_range": date_range, "date_start": date_start, "format": format, + "http_method": http_method, + "http_version": http_version, + "ip_version": ip_version, "limit": limit, + "mitigation_product": mitigation_product, "name": name, }, location_origin_params.LocationOriginParams, @@ -145,29 +197,69 @@ def target( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ + date_range: List[str] | NotGiven = NOT_GIVEN, + date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, + format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_method: List[ Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", ] ] | NotGiven = NOT_GIVEN, - date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, + ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, + mitigation_product: List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ] + | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -197,8 +289,16 @@ def target( format: Format results are returned in. + http_method: Filter for http method. + + http_version: Filter for http version. + + ip_version: Filter for ip version. + limit: Limit the number of objects in the response. + mitigation_product: Array of L7 mitigation products. + name: Array of names that will be used to name the series in responses. extra_headers: Send extra headers @@ -223,7 +323,11 @@ def target( "date_range": date_range, "date_start": date_start, "format": format, + "http_method": http_method, + "http_version": http_version, + "ip_version": ip_version, "limit": limit, + "mitigation_product": mitigation_product, "name": name, }, location_target_params.LocationTargetParams, @@ -249,29 +353,69 @@ async def origin( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ + date_range: List[str] | NotGiven = NOT_GIVEN, + date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, + format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_method: List[ Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", ] ] | NotGiven = NOT_GIVEN, - date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, + ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, + mitigation_product: List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ] + | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -305,8 +449,16 @@ async def origin( format: Format results are returned in. + http_method: Filter for http method. + + http_version: Filter for http version. + + ip_version: Filter for ip version. + limit: Limit the number of objects in the response. + mitigation_product: Array of L7 mitigation products. + name: Array of names that will be used to name the series in responses. extra_headers: Send extra headers @@ -332,7 +484,11 @@ async def origin( "date_range": date_range, "date_start": date_start, "format": format, + "http_method": http_method, + "http_version": http_version, + "ip_version": ip_version, "limit": limit, + "mitigation_product": mitigation_product, "name": name, }, location_origin_params.LocationOriginParams, @@ -347,29 +503,69 @@ async def target( *, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ + date_range: List[str] | NotGiven = NOT_GIVEN, + date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, + format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_method: List[ Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", ] ] | NotGiven = NOT_GIVEN, - date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, + ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, + mitigation_product: List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ] + | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -399,8 +595,16 @@ async def target( format: Format results are returned in. + http_method: Filter for http method. + + http_version: Filter for http version. + + ip_version: Filter for ip version. + limit: Limit the number of objects in the response. + mitigation_product: Array of L7 mitigation products. + name: Array of names that will be used to name the series in responses. extra_headers: Send extra headers @@ -425,7 +629,11 @@ async def target( "date_range": date_range, "date_start": date_start, "format": format, + "http_method": http_method, + "http_version": http_version, + "ip_version": ip_version, "limit": limit, + "mitigation_product": mitigation_product, "name": name, }, location_target_params.LocationTargetParams, diff --git a/src/cloudflare/resources/radar/attacks/layer7/top/top.py b/src/cloudflare/resources/radar/attacks/layer7/top/top.py index 7ad637c5f91..e8a536854de 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/top/top.py +++ b/src/cloudflare/resources/radar/attacks/layer7/top/top.py @@ -72,33 +72,73 @@ def attacks( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ + date_range: List[str] | NotGiven = NOT_GIVEN, + date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, + format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_method: List[ Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", ] ] | NotGiven = NOT_GIVEN, - date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, + ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, limit_direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, limit_per_location: int | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, magnitude: Literal["AFFECTED_ZONES", "MITIGATED_REQUESTS"] | NotGiven = NOT_GIVEN, + mitigation_product: List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ] + | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, normalization: Literal["PERCENTAGE", "MIN_MAX"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -135,6 +175,12 @@ def attacks( format: Format results are returned in. + http_method: Filter for http method. + + http_version: Filter for http version. + + ip_version: Filter for ip version. + limit: Limit the number of objects in the response. limit_direction: Array of attack origin/target location attack limits. Together with @@ -151,6 +197,8 @@ def attacks( magnitude: Attack magnitude can be defined by total requests mitigated or by total zones attacked. + mitigation_product: Array of L7 mitigation products. + name: Array of names that will be used to name the series in responses. normalization: Normalization method applied. Refer to @@ -179,11 +227,15 @@ def attacks( "date_range": date_range, "date_start": date_start, "format": format, + "http_method": http_method, + "http_version": http_version, + "ip_version": ip_version, "limit": limit, "limit_direction": limit_direction, "limit_per_location": limit_per_location, "location": location, "magnitude": magnitude, + "mitigation_product": mitigation_product, "name": name, "normalization": normalization, }, @@ -200,30 +252,70 @@ def industry( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ + date_range: List[str] | NotGiven = NOT_GIVEN, + date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, + format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_method: List[ Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", ] ] | NotGiven = NOT_GIVEN, - date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, + ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, + mitigation_product: List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ] + | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -254,12 +346,20 @@ def industry( format: Format results are returned in. + http_method: Filter for http method. + + http_version: Filter for http version. + + ip_version: Filter for ip version. + limit: Limit the number of objects in the response. location: Array of comma separated list of locations (alpha-2 country codes). Start with `-` to exclude from results. For example, `-US,PT` excludes results from the US, but includes results from PT. + mitigation_product: Array of L7 mitigation products. + name: Array of names that will be used to name the series in responses. extra_headers: Send extra headers @@ -285,8 +385,12 @@ def industry( "date_range": date_range, "date_start": date_start, "format": format, + "http_method": http_method, + "http_version": http_version, + "ip_version": ip_version, "limit": limit, "location": location, + "mitigation_product": mitigation_product, "name": name, }, top_industry_params.TopIndustryParams, @@ -302,30 +406,70 @@ def vertical( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ + date_range: List[str] | NotGiven = NOT_GIVEN, + date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, + format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_method: List[ Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", ] ] | NotGiven = NOT_GIVEN, - date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, + ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, + mitigation_product: List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ] + | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -356,12 +500,20 @@ def vertical( format: Format results are returned in. + http_method: Filter for http method. + + http_version: Filter for http version. + + ip_version: Filter for ip version. + limit: Limit the number of objects in the response. location: Array of comma separated list of locations (alpha-2 country codes). Start with `-` to exclude from results. For example, `-US,PT` excludes results from the US, but includes results from PT. + mitigation_product: Array of L7 mitigation products. + name: Array of names that will be used to name the series in responses. extra_headers: Send extra headers @@ -387,8 +539,12 @@ def vertical( "date_range": date_range, "date_start": date_start, "format": format, + "http_method": http_method, + "http_version": http_version, + "ip_version": ip_version, "limit": limit, "location": location, + "mitigation_product": mitigation_product, "name": name, }, top_vertical_params.TopVerticalParams, @@ -422,33 +578,73 @@ async def attacks( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ + date_range: List[str] | NotGiven = NOT_GIVEN, + date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, + format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_method: List[ Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", ] ] | NotGiven = NOT_GIVEN, - date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, + ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, limit_direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN, limit_per_location: int | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, magnitude: Literal["AFFECTED_ZONES", "MITIGATED_REQUESTS"] | NotGiven = NOT_GIVEN, + mitigation_product: List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ] + | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, normalization: Literal["PERCENTAGE", "MIN_MAX"] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -485,6 +681,12 @@ async def attacks( format: Format results are returned in. + http_method: Filter for http method. + + http_version: Filter for http version. + + ip_version: Filter for ip version. + limit: Limit the number of objects in the response. limit_direction: Array of attack origin/target location attack limits. Together with @@ -501,6 +703,8 @@ async def attacks( magnitude: Attack magnitude can be defined by total requests mitigated or by total zones attacked. + mitigation_product: Array of L7 mitigation products. + name: Array of names that will be used to name the series in responses. normalization: Normalization method applied. Refer to @@ -529,11 +733,15 @@ async def attacks( "date_range": date_range, "date_start": date_start, "format": format, + "http_method": http_method, + "http_version": http_version, + "ip_version": ip_version, "limit": limit, "limit_direction": limit_direction, "limit_per_location": limit_per_location, "location": location, "magnitude": magnitude, + "mitigation_product": mitigation_product, "name": name, "normalization": normalization, }, @@ -550,30 +758,70 @@ async def industry( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ + date_range: List[str] | NotGiven = NOT_GIVEN, + date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, + format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_method: List[ Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", ] ] | NotGiven = NOT_GIVEN, - date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, + ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, + mitigation_product: List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ] + | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -604,12 +852,20 @@ async def industry( format: Format results are returned in. + http_method: Filter for http method. + + http_version: Filter for http version. + + ip_version: Filter for ip version. + limit: Limit the number of objects in the response. location: Array of comma separated list of locations (alpha-2 country codes). Start with `-` to exclude from results. For example, `-US,PT` excludes results from the US, but includes results from PT. + mitigation_product: Array of L7 mitigation products. + name: Array of names that will be used to name the series in responses. extra_headers: Send extra headers @@ -635,8 +891,12 @@ async def industry( "date_range": date_range, "date_start": date_start, "format": format, + "http_method": http_method, + "http_version": http_version, + "ip_version": ip_version, "limit": limit, "location": location, + "mitigation_product": mitigation_product, "name": name, }, top_industry_params.TopIndustryParams, @@ -652,30 +912,70 @@ async def vertical( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ + date_range: List[str] | NotGiven = NOT_GIVEN, + date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, + format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_method: List[ Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", ] ] | NotGiven = NOT_GIVEN, - date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, + http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN, + ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, + mitigation_product: List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ] + | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -706,12 +1006,20 @@ async def vertical( format: Format results are returned in. + http_method: Filter for http method. + + http_version: Filter for http version. + + ip_version: Filter for ip version. + limit: Limit the number of objects in the response. location: Array of comma separated list of locations (alpha-2 country codes). Start with `-` to exclude from results. For example, `-US,PT` excludes results from the US, but includes results from PT. + mitigation_product: Array of L7 mitigation products. + name: Array of names that will be used to name the series in responses. extra_headers: Send extra headers @@ -737,8 +1045,12 @@ async def vertical( "date_range": date_range, "date_start": date_start, "format": format, + "http_method": http_method, + "http_version": http_version, + "ip_version": ip_version, "limit": limit, "location": location, + "mitigation_product": mitigation_product, "name": name, }, top_vertical_params.TopVerticalParams, diff --git a/src/cloudflare/resources/radar/bgp/bgp.py b/src/cloudflare/resources/radar/bgp/bgp.py index 0b0c2aa8a06..c8719a1c2d0 100644 --- a/src/cloudflare/resources/radar/bgp/bgp.py +++ b/src/cloudflare/resources/radar/bgp/bgp.py @@ -109,26 +109,7 @@ def timeseries( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, @@ -242,26 +223,7 @@ async def timeseries( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, name: List[str] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/bgp/hijacks/events.py b/src/cloudflare/resources/radar/bgp/hijacks/events.py index 6700a064beb..f05e43f6ee9 100644 --- a/src/cloudflare/resources/radar/bgp/hijacks/events.py +++ b/src/cloudflare/resources/radar/bgp/hijacks/events.py @@ -42,24 +42,7 @@ def list( self, *, date_end: Union[str, datetime] | NotGiven = NOT_GIVEN, - date_range: Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - | NotGiven = NOT_GIVEN, + date_range: str | NotGiven = NOT_GIVEN, date_start: Union[str, datetime] | NotGiven = NOT_GIVEN, event_id: int | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -174,24 +157,7 @@ def list( self, *, date_end: Union[str, datetime] | NotGiven = NOT_GIVEN, - date_range: Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - | NotGiven = NOT_GIVEN, + date_range: str | NotGiven = NOT_GIVEN, date_start: Union[str, datetime] | NotGiven = NOT_GIVEN, event_id: int | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/bgp/ips.py b/src/cloudflare/resources/radar/bgp/ips.py index 62cfdacf32a..7fed750692b 100644 --- a/src/cloudflare/resources/radar/bgp/ips.py +++ b/src/cloudflare/resources/radar/bgp/ips.py @@ -45,24 +45,7 @@ def timeseries( *, asn: str | NotGiven = NOT_GIVEN, date_end: Union[str, datetime] | NotGiven = NOT_GIVEN, - date_range: Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - | NotGiven = NOT_GIVEN, + date_range: str | NotGiven = NOT_GIVEN, date_start: Union[str, datetime] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, include_delay: bool | NotGiven = NOT_GIVEN, @@ -145,24 +128,7 @@ async def timeseries( *, asn: str | NotGiven = NOT_GIVEN, date_end: Union[str, datetime] | NotGiven = NOT_GIVEN, - date_range: Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - | NotGiven = NOT_GIVEN, + date_range: str | NotGiven = NOT_GIVEN, date_start: Union[str, datetime] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, include_delay: bool | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/bgp/leaks/events.py b/src/cloudflare/resources/radar/bgp/leaks/events.py index 92227d0287b..3858ef130c2 100644 --- a/src/cloudflare/resources/radar/bgp/leaks/events.py +++ b/src/cloudflare/resources/radar/bgp/leaks/events.py @@ -42,24 +42,7 @@ def list( self, *, date_end: Union[str, datetime] | NotGiven = NOT_GIVEN, - date_range: Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - | NotGiven = NOT_GIVEN, + date_range: str | NotGiven = NOT_GIVEN, date_start: Union[str, datetime] | NotGiven = NOT_GIVEN, event_id: int | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -157,24 +140,7 @@ def list( self, *, date_end: Union[str, datetime] | NotGiven = NOT_GIVEN, - date_range: Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - | NotGiven = NOT_GIVEN, + date_range: str | NotGiven = NOT_GIVEN, date_start: Union[str, datetime] | NotGiven = NOT_GIVEN, event_id: int | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/bgp/top/ases.py b/src/cloudflare/resources/radar/bgp/top/ases.py index c0b8db153c0..46fee488bd1 100644 --- a/src/cloudflare/resources/radar/bgp/top/ases.py +++ b/src/cloudflare/resources/radar/bgp/top/ases.py @@ -46,26 +46,7 @@ def get( *, asn: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -209,26 +190,7 @@ async def get( *, asn: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/bgp/top/top.py b/src/cloudflare/resources/radar/bgp/top/top.py index 17826f992e9..a87beb5628c 100644 --- a/src/cloudflare/resources/radar/bgp/top/top.py +++ b/src/cloudflare/resources/radar/bgp/top/top.py @@ -57,26 +57,7 @@ def prefixes( *, asn: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -167,26 +148,7 @@ async def prefixes( *, asn: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/connection_tampering.py b/src/cloudflare/resources/radar/connection_tampering.py index 76c5a4c8512..44bc7e79514 100644 --- a/src/cloudflare/resources/radar/connection_tampering.py +++ b/src/cloudflare/resources/radar/connection_tampering.py @@ -47,26 +47,7 @@ def summary( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -146,26 +127,7 @@ def timeseries_groups( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -262,26 +224,7 @@ async def summary( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -361,26 +304,7 @@ async def timeseries_groups( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/dns/top.py b/src/cloudflare/resources/radar/dns/top.py index ea775bb8d98..a6de409e52d 100644 --- a/src/cloudflare/resources/radar/dns/top.py +++ b/src/cloudflare/resources/radar/dns/top.py @@ -48,26 +48,7 @@ def ases( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -155,26 +136,7 @@ def locations( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -271,26 +233,7 @@ async def ases( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -378,26 +321,7 @@ async def locations( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/email/routing/summary.py b/src/cloudflare/resources/radar/email/routing/summary.py index 574def195a1..fb1824d133c 100644 --- a/src/cloudflare/resources/radar/email/routing/summary.py +++ b/src/cloudflare/resources/radar/email/routing/summary.py @@ -56,26 +56,7 @@ def arc( self, *, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -157,26 +138,7 @@ def dkim( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, encrypted: List[Literal["ENCRYPTED", "NOT_ENCRYPTED"]] | NotGiven = NOT_GIVEN, @@ -257,26 +219,7 @@ def dmarc( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, encrypted: List[Literal["ENCRYPTED", "NOT_ENCRYPTED"]] | NotGiven = NOT_GIVEN, @@ -357,26 +300,7 @@ def encrypted( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -457,26 +381,7 @@ def ip_version( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -557,26 +462,7 @@ def spf( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -666,26 +552,7 @@ async def arc( self, *, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -767,26 +634,7 @@ async def dkim( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, encrypted: List[Literal["ENCRYPTED", "NOT_ENCRYPTED"]] | NotGiven = NOT_GIVEN, @@ -867,26 +715,7 @@ async def dmarc( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, encrypted: List[Literal["ENCRYPTED", "NOT_ENCRYPTED"]] | NotGiven = NOT_GIVEN, @@ -967,26 +796,7 @@ async def encrypted( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1067,26 +877,7 @@ async def ip_version( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1167,26 +958,7 @@ async def spf( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/email/routing/timeseries_groups.py b/src/cloudflare/resources/radar/email/routing/timeseries_groups.py index bffe7e21af1..81257512408 100644 --- a/src/cloudflare/resources/radar/email/routing/timeseries_groups.py +++ b/src/cloudflare/resources/radar/email/routing/timeseries_groups.py @@ -57,26 +57,7 @@ def arc( *, agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -164,26 +145,7 @@ def dkim( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, encrypted: List[Literal["ENCRYPTED", "NOT_ENCRYPTED"]] | NotGiven = NOT_GIVEN, @@ -270,26 +232,7 @@ def dmarc( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, encrypted: List[Literal["ENCRYPTED", "NOT_ENCRYPTED"]] | NotGiven = NOT_GIVEN, @@ -376,26 +319,7 @@ def encrypted( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -482,26 +406,7 @@ def ip_version( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -588,26 +493,7 @@ def spf( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -703,26 +589,7 @@ async def arc( *, agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -810,26 +677,7 @@ async def dkim( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, encrypted: List[Literal["ENCRYPTED", "NOT_ENCRYPTED"]] | NotGiven = NOT_GIVEN, @@ -916,26 +764,7 @@ async def dmarc( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, encrypted: List[Literal["ENCRYPTED", "NOT_ENCRYPTED"]] | NotGiven = NOT_GIVEN, @@ -1022,26 +851,7 @@ async def encrypted( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1128,26 +938,7 @@ async def ip_version( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1234,26 +1025,7 @@ async def spf( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/email/security/summary.py b/src/cloudflare/resources/radar/email/security/summary.py index 65f3b3d8dd1..aeb6c50f64d 100644 --- a/src/cloudflare/resources/radar/email/security/summary.py +++ b/src/cloudflare/resources/radar/email/security/summary.py @@ -62,26 +62,7 @@ def arc( self, *, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -159,26 +140,7 @@ def dkim( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -255,26 +217,7 @@ def dmarc( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -351,26 +294,7 @@ def malicious( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -451,26 +375,7 @@ def spam( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -551,26 +456,7 @@ def spf( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -647,26 +533,7 @@ def spoof( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -747,26 +614,7 @@ def threat_category( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -847,26 +695,7 @@ def tls_version( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -952,26 +781,7 @@ async def arc( self, *, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1049,26 +859,7 @@ async def dkim( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1145,26 +936,7 @@ async def dmarc( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1241,26 +1013,7 @@ async def malicious( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1341,26 +1094,7 @@ async def spam( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1441,26 +1175,7 @@ async def spf( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1537,26 +1252,7 @@ async def spoof( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1637,26 +1333,7 @@ async def threat_category( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1737,26 +1414,7 @@ async def tls_version( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/email/security/timeseries_groups.py b/src/cloudflare/resources/radar/email/security/timeseries_groups.py index 12486f075c1..f6e2ec05ce5 100644 --- a/src/cloudflare/resources/radar/email/security/timeseries_groups.py +++ b/src/cloudflare/resources/radar/email/security/timeseries_groups.py @@ -65,26 +65,7 @@ def arc( *, agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -168,26 +149,7 @@ def dkim( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -270,26 +232,7 @@ def dmarc( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -372,26 +315,7 @@ def malicious( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -478,26 +402,7 @@ def spam( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -584,26 +489,7 @@ def spf( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -686,26 +572,7 @@ def spoof( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -792,26 +659,7 @@ def threat_category( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -900,26 +748,7 @@ def tls_version( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1011,26 +840,7 @@ async def arc( *, agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1114,26 +924,7 @@ async def dkim( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1216,26 +1007,7 @@ async def dmarc( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1318,26 +1090,7 @@ async def malicious( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1424,26 +1177,7 @@ async def spam( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1530,26 +1264,7 @@ async def spf( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1632,26 +1347,7 @@ async def spoof( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1738,26 +1434,7 @@ async def threat_category( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -1846,26 +1523,7 @@ async def tls_version( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/malicious.py b/src/cloudflare/resources/radar/email/security/top/tlds/malicious.py index c9166b9619b..4592716dfbe 100644 --- a/src/cloudflare/resources/radar/email/security/top/tlds/malicious.py +++ b/src/cloudflare/resources/radar/email/security/top/tlds/malicious.py @@ -46,26 +46,7 @@ def get( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -169,26 +150,7 @@ async def get( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/spam.py b/src/cloudflare/resources/radar/email/security/top/tlds/spam.py index 40886bdcb09..4a9081d4e8c 100644 --- a/src/cloudflare/resources/radar/email/security/top/tlds/spam.py +++ b/src/cloudflare/resources/radar/email/security/top/tlds/spam.py @@ -46,26 +46,7 @@ def get( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -169,26 +150,7 @@ async def get( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/spoof.py b/src/cloudflare/resources/radar/email/security/top/tlds/spoof.py index 49e04d09ce5..23bb1b51a2c 100644 --- a/src/cloudflare/resources/radar/email/security/top/tlds/spoof.py +++ b/src/cloudflare/resources/radar/email/security/top/tlds/spoof.py @@ -46,26 +46,7 @@ def get( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -169,26 +150,7 @@ async def get( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/email/security/top/tlds/tlds.py b/src/cloudflare/resources/radar/email/security/top/tlds/tlds.py index 8cc5c7e2b3b..34a194b6e7d 100644 --- a/src/cloudflare/resources/radar/email/security/top/tlds/tlds.py +++ b/src/cloudflare/resources/radar/email/security/top/tlds/tlds.py @@ -81,26 +81,7 @@ def get( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, @@ -213,26 +194,7 @@ async def get( *, arc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, dkim: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, dmarc: List[Literal["PASS", "NONE", "FAIL"]] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/ases/ases.py b/src/cloudflare/resources/radar/http/ases/ases.py index 4666cedea05..d6d2ad58304 100644 --- a/src/cloudflare/resources/radar/http/ases/ases.py +++ b/src/cloudflare/resources/radar/http/ases/ases.py @@ -144,26 +144,7 @@ def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -324,26 +305,7 @@ async def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/ases/bot_class.py b/src/cloudflare/resources/radar/http/ases/bot_class.py index d9665ba21c1..c03bae87325 100644 --- a/src/cloudflare/resources/radar/http/ases/bot_class.py +++ b/src/cloudflare/resources/radar/http/ases/bot_class.py @@ -48,26 +48,7 @@ def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -198,26 +179,7 @@ async def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/ases/browser_family.py b/src/cloudflare/resources/radar/http/ases/browser_family.py index 93f2d1bcc91..de15a3b0458 100644 --- a/src/cloudflare/resources/radar/http/ases/browser_family.py +++ b/src/cloudflare/resources/radar/http/ases/browser_family.py @@ -48,26 +48,7 @@ def get( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -196,26 +177,7 @@ async def get( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/ases/device_type.py b/src/cloudflare/resources/radar/http/ases/device_type.py index 3c74d3c5e77..ff5763c2b2e 100644 --- a/src/cloudflare/resources/radar/http/ases/device_type.py +++ b/src/cloudflare/resources/radar/http/ases/device_type.py @@ -49,26 +49,7 @@ def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_protocol: List[Literal["HTTP", "HTTPS"]] | NotGiven = NOT_GIVEN, @@ -197,26 +178,7 @@ async def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_protocol: List[Literal["HTTP", "HTTPS"]] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/ases/http_method.py b/src/cloudflare/resources/radar/http/ases/http_method.py index bbf7d121de4..60a9eb8788e 100644 --- a/src/cloudflare/resources/radar/http/ases/http_method.py +++ b/src/cloudflare/resources/radar/http/ases/http_method.py @@ -49,26 +49,7 @@ def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -197,26 +178,7 @@ async def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/ases/http_protocol.py b/src/cloudflare/resources/radar/http/ases/http_protocol.py index 980a72d60c2..9758dcaba3c 100644 --- a/src/cloudflare/resources/radar/http/ases/http_protocol.py +++ b/src/cloudflare/resources/radar/http/ases/http_protocol.py @@ -49,26 +49,7 @@ def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -193,26 +174,7 @@ async def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/ases/ip_version.py b/src/cloudflare/resources/radar/http/ases/ip_version.py index 13d9e9d31a5..5893e869d28 100644 --- a/src/cloudflare/resources/radar/http/ases/ip_version.py +++ b/src/cloudflare/resources/radar/http/ases/ip_version.py @@ -49,26 +49,7 @@ def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -197,26 +178,7 @@ async def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/ases/os.py b/src/cloudflare/resources/radar/http/ases/os.py index 33c0223fddf..7cb193797b2 100644 --- a/src/cloudflare/resources/radar/http/ases/os.py +++ b/src/cloudflare/resources/radar/http/ases/os.py @@ -49,26 +49,7 @@ def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -196,26 +177,7 @@ async def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/ases/tls_version.py b/src/cloudflare/resources/radar/http/ases/tls_version.py index 8b002599f70..461c710a6a9 100644 --- a/src/cloudflare/resources/radar/http/ases/tls_version.py +++ b/src/cloudflare/resources/radar/http/ases/tls_version.py @@ -49,26 +49,7 @@ def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -197,26 +178,7 @@ async def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/http.py b/src/cloudflare/resources/radar/http/http.py index 9f32cbdd054..1af39552df9 100644 --- a/src/cloudflare/resources/radar/http/http.py +++ b/src/cloudflare/resources/radar/http/http.py @@ -109,26 +109,7 @@ def timeseries( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -243,26 +224,7 @@ async def timeseries( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/locations/bot_class.py b/src/cloudflare/resources/radar/http/locations/bot_class.py index e19b3d4ee2e..2706a45d5e4 100644 --- a/src/cloudflare/resources/radar/http/locations/bot_class.py +++ b/src/cloudflare/resources/radar/http/locations/bot_class.py @@ -48,26 +48,7 @@ def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -198,26 +179,7 @@ async def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/locations/browser_family.py b/src/cloudflare/resources/radar/http/locations/browser_family.py index 42a6dfc2c94..59147b2bc73 100644 --- a/src/cloudflare/resources/radar/http/locations/browser_family.py +++ b/src/cloudflare/resources/radar/http/locations/browser_family.py @@ -48,26 +48,7 @@ def get( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -197,26 +178,7 @@ async def get( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/locations/device_type.py b/src/cloudflare/resources/radar/http/locations/device_type.py index db12278738c..6548efb7524 100644 --- a/src/cloudflare/resources/radar/http/locations/device_type.py +++ b/src/cloudflare/resources/radar/http/locations/device_type.py @@ -49,26 +49,7 @@ def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_protocol: List[Literal["HTTP", "HTTPS"]] | NotGiven = NOT_GIVEN, @@ -198,26 +179,7 @@ async def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_protocol: List[Literal["HTTP", "HTTPS"]] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/locations/http_method.py b/src/cloudflare/resources/radar/http/locations/http_method.py index c524a57a4dc..e9d4ca2e962 100644 --- a/src/cloudflare/resources/radar/http/locations/http_method.py +++ b/src/cloudflare/resources/radar/http/locations/http_method.py @@ -49,26 +49,7 @@ def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -198,26 +179,7 @@ async def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/locations/http_protocol.py b/src/cloudflare/resources/radar/http/locations/http_protocol.py index 76b7013a00d..ed5d3c645a1 100644 --- a/src/cloudflare/resources/radar/http/locations/http_protocol.py +++ b/src/cloudflare/resources/radar/http/locations/http_protocol.py @@ -49,26 +49,7 @@ def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -194,26 +175,7 @@ async def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/locations/ip_version.py b/src/cloudflare/resources/radar/http/locations/ip_version.py index 2eba4d7db23..0deeca9d177 100644 --- a/src/cloudflare/resources/radar/http/locations/ip_version.py +++ b/src/cloudflare/resources/radar/http/locations/ip_version.py @@ -49,26 +49,7 @@ def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -197,26 +178,7 @@ async def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/locations/locations.py b/src/cloudflare/resources/radar/http/locations/locations.py index 0839a8f25ae..81be28116ae 100644 --- a/src/cloudflare/resources/radar/http/locations/locations.py +++ b/src/cloudflare/resources/radar/http/locations/locations.py @@ -144,26 +144,7 @@ def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -324,26 +305,7 @@ async def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/locations/os.py b/src/cloudflare/resources/radar/http/locations/os.py index 1b89d9d2a66..3d118f38c69 100644 --- a/src/cloudflare/resources/radar/http/locations/os.py +++ b/src/cloudflare/resources/radar/http/locations/os.py @@ -49,26 +49,7 @@ def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -196,26 +177,7 @@ async def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/locations/tls_version.py b/src/cloudflare/resources/radar/http/locations/tls_version.py index c1fd6d54336..fb1b79d26da 100644 --- a/src/cloudflare/resources/radar/http/locations/tls_version.py +++ b/src/cloudflare/resources/radar/http/locations/tls_version.py @@ -49,26 +49,7 @@ def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -197,26 +178,7 @@ async def get( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/summary.py b/src/cloudflare/resources/radar/http/summary.py index 12defd73b00..57596ffceba 100644 --- a/src/cloudflare/resources/radar/http/summary.py +++ b/src/cloudflare/resources/radar/http/summary.py @@ -62,26 +62,7 @@ def bot_class( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -189,26 +170,7 @@ def device_type( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_protocol: List[Literal["HTTP", "HTTPS"]] | NotGiven = NOT_GIVEN, @@ -314,26 +276,7 @@ def http_protocol( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -438,26 +381,7 @@ def http_version( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -563,26 +487,7 @@ def ip_version( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -688,26 +593,7 @@ def os( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -812,26 +698,7 @@ def post_quantum( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -941,26 +808,7 @@ def tls_version( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1075,26 +923,7 @@ async def bot_class( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1202,26 +1031,7 @@ async def device_type( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_protocol: List[Literal["HTTP", "HTTPS"]] | NotGiven = NOT_GIVEN, @@ -1327,26 +1137,7 @@ async def http_protocol( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1451,26 +1242,7 @@ async def http_version( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1576,26 +1348,7 @@ async def ip_version( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1701,26 +1454,7 @@ async def os( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1825,26 +1559,7 @@ async def post_quantum( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1954,26 +1669,7 @@ async def tls_version( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/timeseries_groups.py b/src/cloudflare/resources/radar/http/timeseries_groups.py index 6dcf5fd060d..cc70a7d7b0e 100644 --- a/src/cloudflare/resources/radar/http/timeseries_groups.py +++ b/src/cloudflare/resources/radar/http/timeseries_groups.py @@ -67,26 +67,7 @@ def bot_class( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -200,26 +181,7 @@ def browser( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -340,26 +302,7 @@ def browser_family( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -477,26 +420,7 @@ def device_type( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_protocol: List[Literal["HTTP", "HTTPS"]] | NotGiven = NOT_GIVEN, @@ -607,26 +531,7 @@ def http_protocol( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -737,26 +642,7 @@ def http_version( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -868,26 +754,7 @@ def ip_version( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -999,26 +866,7 @@ def os( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1129,26 +977,7 @@ def post_quantum( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1264,26 +1093,7 @@ def tls_version( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1404,26 +1214,7 @@ async def bot_class( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1537,26 +1328,7 @@ async def browser( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1677,26 +1449,7 @@ async def browser_family( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -1814,26 +1567,7 @@ async def device_type( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, http_protocol: List[Literal["HTTP", "HTTPS"]] | NotGiven = NOT_GIVEN, @@ -1944,26 +1678,7 @@ async def http_protocol( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -2074,26 +1789,7 @@ async def http_version( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -2205,26 +1901,7 @@ async def ip_version( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -2336,26 +2013,7 @@ async def os( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -2466,26 +2124,7 @@ async def post_quantum( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -2601,26 +2240,7 @@ async def tls_version( bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/http/top.py b/src/cloudflare/resources/radar/http/top.py index 7cd13feaadd..63140658a23 100644 --- a/src/cloudflare/resources/radar/http/top.py +++ b/src/cloudflare/resources/radar/http/top.py @@ -49,26 +49,7 @@ def browser_families( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -187,26 +168,7 @@ def browsers( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -335,26 +297,7 @@ async def browser_families( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -473,26 +416,7 @@ async def browsers( browser_family: List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, device_type: List[Literal["DESKTOP", "MOBILE", "OTHER"]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/netflows/netflows.py b/src/cloudflare/resources/radar/netflows/netflows.py index b82345a5b43..5453b325052 100644 --- a/src/cloudflare/resources/radar/netflows/netflows.py +++ b/src/cloudflare/resources/radar/netflows/netflows.py @@ -59,26 +59,7 @@ def timeseries( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -188,26 +169,7 @@ async def timeseries( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/netflows/top.py b/src/cloudflare/resources/radar/netflows/top.py index 310e0a90323..be6a6848054 100644 --- a/src/cloudflare/resources/radar/netflows/top.py +++ b/src/cloudflare/resources/radar/netflows/top.py @@ -47,26 +47,7 @@ def ases( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -150,26 +131,7 @@ def locations( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -263,26 +225,7 @@ async def ases( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -366,26 +309,7 @@ async def locations( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/quality/iqi.py b/src/cloudflare/resources/radar/quality/iqi.py index 3a3c8ba4da3..cdae7e1963c 100644 --- a/src/cloudflare/resources/radar/quality/iqi.py +++ b/src/cloudflare/resources/radar/quality/iqi.py @@ -48,26 +48,7 @@ def summary( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -152,26 +133,7 @@ def timeseries_groups( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, interpolation: bool | NotGiven = NOT_GIVEN, @@ -274,26 +236,7 @@ async def summary( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, location: List[str] | NotGiven = NOT_GIVEN, @@ -378,26 +321,7 @@ async def timeseries_groups( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, interpolation: bool | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/ranking/ranking.py b/src/cloudflare/resources/radar/ranking/ranking.py index fdbb566b907..f30e864a07a 100644 --- a/src/cloudflare/resources/radar/ranking/ranking.py +++ b/src/cloudflare/resources/radar/ranking/ranking.py @@ -57,26 +57,7 @@ def timeseries_groups( self, *, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, domains: List[str] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, @@ -235,26 +216,7 @@ async def timeseries_groups( self, *, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, domains: List[str] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/traffic_anomalies/locations.py b/src/cloudflare/resources/radar/traffic_anomalies/locations.py index 851686c3964..2ddaf9f649d 100644 --- a/src/cloudflare/resources/radar/traffic_anomalies/locations.py +++ b/src/cloudflare/resources/radar/traffic_anomalies/locations.py @@ -44,24 +44,7 @@ def get( self, *, date_end: Union[str, datetime] | NotGiven = NOT_GIVEN, - date_range: Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - | NotGiven = NOT_GIVEN, + date_range: str | NotGiven = NOT_GIVEN, date_start: Union[str, datetime] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -135,24 +118,7 @@ async def get( self, *, date_end: Union[str, datetime] | NotGiven = NOT_GIVEN, - date_range: Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - | NotGiven = NOT_GIVEN, + date_range: str | NotGiven = NOT_GIVEN, date_start: Union[str, datetime] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py b/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py index 6a24039a9aa..9c799ae0bd1 100644 --- a/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py +++ b/src/cloudflare/resources/radar/traffic_anomalies/traffic_anomalies.py @@ -57,24 +57,7 @@ def get( *, asn: int | NotGiven = NOT_GIVEN, date_end: Union[str, datetime] | NotGiven = NOT_GIVEN, - date_range: Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - | NotGiven = NOT_GIVEN, + date_range: str | NotGiven = NOT_GIVEN, date_start: Union[str, datetime] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -164,24 +147,7 @@ async def get( *, asn: int | NotGiven = NOT_GIVEN, date_end: Union[str, datetime] | NotGiven = NOT_GIVEN, - date_range: Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - | NotGiven = NOT_GIVEN, + date_range: str | NotGiven = NOT_GIVEN, date_start: Union[str, datetime] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/resources/radar/verified_bots/top.py b/src/cloudflare/resources/radar/verified_bots/top.py index 5b7b011891a..49c31318770 100644 --- a/src/cloudflare/resources/radar/verified_bots/top.py +++ b/src/cloudflare/resources/radar/verified_bots/top.py @@ -47,26 +47,7 @@ def bots( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -149,26 +130,7 @@ def categories( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -262,26 +224,7 @@ async def bots( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, @@ -364,26 +307,7 @@ async def categories( asn: List[str] | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, - date_range: List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ] - | NotGiven = NOT_GIVEN, + date_range: List[str] | NotGiven = NOT_GIVEN, date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, diff --git a/src/cloudflare/types/radar/annotations/outage_get_params.py b/src/cloudflare/types/radar/annotations/outage_get_params.py index aa809b3440f..23df4113305 100644 --- a/src/cloudflare/types/radar/annotations/outage_get_params.py +++ b/src/cloudflare/types/radar/annotations/outage_get_params.py @@ -18,26 +18,7 @@ class OutageGetParams(TypedDict, total=False): date_end: Annotated[Union[str, datetime], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[str, PropertyInfo(alias="dateRange")] """ Shorthand date ranges for the last X days - use when you don't need specific start and end dates. diff --git a/src/cloudflare/types/radar/annotations/outage_locations_params.py b/src/cloudflare/types/radar/annotations/outage_locations_params.py index 04114f7f1e9..51ae0778681 100644 --- a/src/cloudflare/types/radar/annotations/outage_locations_params.py +++ b/src/cloudflare/types/radar/annotations/outage_locations_params.py @@ -15,26 +15,7 @@ class OutageLocationsParams(TypedDict, total=False): date_end: Annotated[Union[str, datetime], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[str, PropertyInfo(alias="dateRange")] """ Shorthand date ranges for the last X days - use when you don't need specific start and end dates. diff --git a/src/cloudflare/types/radar/as112/summary_dnssec_params.py b/src/cloudflare/types/radar/as112/summary_dnssec_params.py index 2e6e80114e1..df69e836284 100644 --- a/src/cloudflare/types/radar/as112/summary_dnssec_params.py +++ b/src/cloudflare/types/radar/as112/summary_dnssec_params.py @@ -29,28 +29,7 @@ class SummaryDNSSECParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/as112/summary_edns_params.py b/src/cloudflare/types/radar/as112/summary_edns_params.py index 0dcd9876244..aa8cb759564 100644 --- a/src/cloudflare/types/radar/as112/summary_edns_params.py +++ b/src/cloudflare/types/radar/as112/summary_edns_params.py @@ -29,28 +29,7 @@ class SummaryEdnsParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/as112/summary_ip_version_params.py b/src/cloudflare/types/radar/as112/summary_ip_version_params.py index de7208b1dbf..edf5caac4ef 100644 --- a/src/cloudflare/types/radar/as112/summary_ip_version_params.py +++ b/src/cloudflare/types/radar/as112/summary_ip_version_params.py @@ -29,28 +29,7 @@ class SummaryIPVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/as112/summary_protocol_params.py b/src/cloudflare/types/radar/as112/summary_protocol_params.py index 1a3291978d2..bfe7e77315b 100644 --- a/src/cloudflare/types/radar/as112/summary_protocol_params.py +++ b/src/cloudflare/types/radar/as112/summary_protocol_params.py @@ -29,28 +29,7 @@ class SummaryProtocolParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/as112/summary_query_type_params.py b/src/cloudflare/types/radar/as112/summary_query_type_params.py index 8493c847c6d..aea17cb0a58 100644 --- a/src/cloudflare/types/radar/as112/summary_query_type_params.py +++ b/src/cloudflare/types/radar/as112/summary_query_type_params.py @@ -29,28 +29,7 @@ class SummaryQueryTypeParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/as112/summary_response_codes_params.py b/src/cloudflare/types/radar/as112/summary_response_codes_params.py index 259d6e96c97..9579b04766e 100644 --- a/src/cloudflare/types/radar/as112/summary_response_codes_params.py +++ b/src/cloudflare/types/radar/as112/summary_response_codes_params.py @@ -29,28 +29,7 @@ class SummaryResponseCodesParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/as112/timeseries_group_dnssec_params.py b/src/cloudflare/types/radar/as112/timeseries_group_dnssec_params.py index bda75df0747..d818ce2ddf2 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_dnssec_params.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_dnssec_params.py @@ -36,28 +36,7 @@ class TimeseriesGroupDNSSECParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/as112/timeseries_group_edns_params.py b/src/cloudflare/types/radar/as112/timeseries_group_edns_params.py index af229e41397..cde360d1e43 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_edns_params.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_edns_params.py @@ -36,28 +36,7 @@ class TimeseriesGroupEdnsParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/as112/timeseries_group_ip_version_params.py b/src/cloudflare/types/radar/as112/timeseries_group_ip_version_params.py index 19c7f3eb311..54f655692fb 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_ip_version_params.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_ip_version_params.py @@ -36,28 +36,7 @@ class TimeseriesGroupIPVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/as112/timeseries_group_protocol_params.py b/src/cloudflare/types/radar/as112/timeseries_group_protocol_params.py index c8d8422ca94..deb737e61b1 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_protocol_params.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_protocol_params.py @@ -36,28 +36,7 @@ class TimeseriesGroupProtocolParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/as112/timeseries_group_query_type_params.py b/src/cloudflare/types/radar/as112/timeseries_group_query_type_params.py index 46316c3b399..d83568fe1d3 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_query_type_params.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_query_type_params.py @@ -36,28 +36,7 @@ class TimeseriesGroupQueryTypeParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/as112/timeseries_group_response_codes_params.py b/src/cloudflare/types/radar/as112/timeseries_group_response_codes_params.py index 8709b1a2c7b..05cf4ac7fab 100644 --- a/src/cloudflare/types/radar/as112/timeseries_group_response_codes_params.py +++ b/src/cloudflare/types/radar/as112/timeseries_group_response_codes_params.py @@ -36,28 +36,7 @@ class TimeseriesGroupResponseCodesParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/as112/top_dnssec_params.py b/src/cloudflare/types/radar/as112/top_dnssec_params.py index b23dc9734cc..9f46b8ec011 100644 --- a/src/cloudflare/types/radar/as112/top_dnssec_params.py +++ b/src/cloudflare/types/radar/as112/top_dnssec_params.py @@ -29,28 +29,7 @@ class TopDNSSECParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/as112/top_edns_params.py b/src/cloudflare/types/radar/as112/top_edns_params.py index 0227901b072..046c0d251b6 100644 --- a/src/cloudflare/types/radar/as112/top_edns_params.py +++ b/src/cloudflare/types/radar/as112/top_edns_params.py @@ -29,28 +29,7 @@ class TopEdnsParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/as112/top_ip_version_params.py b/src/cloudflare/types/radar/as112/top_ip_version_params.py index 051ab28787a..18ff8eb6a9b 100644 --- a/src/cloudflare/types/radar/as112/top_ip_version_params.py +++ b/src/cloudflare/types/radar/as112/top_ip_version_params.py @@ -29,28 +29,7 @@ class TopIPVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/as112/top_locations_params.py b/src/cloudflare/types/radar/as112/top_locations_params.py index ab868bf5790..74b6631d0b9 100644 --- a/src/cloudflare/types/radar/as112/top_locations_params.py +++ b/src/cloudflare/types/radar/as112/top_locations_params.py @@ -29,28 +29,7 @@ class TopLocationsParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/as112_timeseries_params.py b/src/cloudflare/types/radar/as112_timeseries_params.py index 0f000b07733..c2e37c6ce35 100644 --- a/src/cloudflare/types/radar/as112_timeseries_params.py +++ b/src/cloudflare/types/radar/as112_timeseries_params.py @@ -36,28 +36,7 @@ class AS112TimeseriesParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_params.py b/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_params.py index c703245c195..b4d0b88d8fb 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_bitrate_params.py @@ -22,28 +22,7 @@ class SummaryBitrateParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_duration_params.py b/src/cloudflare/types/radar/attacks/layer3/summary_duration_params.py index 9c54cd15ca0..615fe97285f 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_duration_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_duration_params.py @@ -22,28 +22,7 @@ class SummaryDurationParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_get_params.py b/src/cloudflare/types/radar/attacks/layer3/summary_get_params.py index c0352a255b0..fe1dae91b19 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_get_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_get_params.py @@ -29,28 +29,7 @@ class SummaryGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_params.py b/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_params.py index b279abc7674..b1ab3c41730 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_ip_version_params.py @@ -22,28 +22,7 @@ class SummaryIPVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_protocol_params.py b/src/cloudflare/types/radar/attacks/layer3/summary_protocol_params.py index 23a1c908359..f3c6e1f2d4e 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_protocol_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_protocol_params.py @@ -22,28 +22,7 @@ class SummaryProtocolParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/summary_vector_params.py b/src/cloudflare/types/radar/attacks/layer3/summary_vector_params.py index 6f5abe37bca..3da6f2912a7 100644 --- a/src/cloudflare/types/radar/attacks/layer3/summary_vector_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/summary_vector_params.py @@ -22,28 +22,7 @@ class SummaryVectorParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_bitrate_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_bitrate_params.py index e93b8a5bfb5..9ef70e178ad 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_bitrate_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_bitrate_params.py @@ -29,28 +29,7 @@ class TimeseriesGroupBitrateParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_duration_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_duration_params.py index b8058d2f1c7..0ac1f04ea12 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_duration_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_duration_params.py @@ -29,28 +29,7 @@ class TimeseriesGroupDurationParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_params.py index 5a91d77b2ba..9ab69b16b82 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_get_params.py @@ -36,28 +36,7 @@ class TimeseriesGroupGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_params.py index 40730b2f8c0..b9474428b97 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_industry_params.py @@ -29,28 +29,7 @@ class TimeseriesGroupIndustryParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and @@ -94,3 +73,6 @@ class TimeseriesGroupIndustryParams(TypedDict, total=False): Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). """ + + protocol: List[Literal["UDP", "TCP", "ICMP", "GRE"]] + """Array of L3/4 attack types.""" diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_params.py index 1c16b165bd7..5f8b50a1f23 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_ip_version_params.py @@ -29,28 +29,7 @@ class TimeseriesGroupIPVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_protocol_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_protocol_params.py index 8ad6e9dc2f3..c96f496eb67 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_protocol_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_protocol_params.py @@ -29,28 +29,7 @@ class TimeseriesGroupProtocolParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vector_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vector_params.py index 28ae6a6626f..bdd8255a84a 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vector_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vector_params.py @@ -29,28 +29,7 @@ class TimeseriesGroupVectorParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vertical_params.py b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vertical_params.py index 4892adb010c..4e20388b202 100644 --- a/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vertical_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/timeseries_group_vertical_params.py @@ -29,28 +29,7 @@ class TimeseriesGroupVerticalParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and @@ -94,3 +73,6 @@ class TimeseriesGroupVerticalParams(TypedDict, total=False): Refer to [Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/). """ + + protocol: List[Literal["UDP", "TCP", "ICMP", "GRE"]] + """Array of L3/4 attack types.""" diff --git a/src/cloudflare/types/radar/attacks/layer3/top/location_origin_params.py b/src/cloudflare/types/radar/attacks/layer3/top/location_origin_params.py index e0ccda66e05..06ae05b878d 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/location_origin_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/location_origin_params.py @@ -22,28 +22,7 @@ class LocationOriginParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/top/location_target_params.py b/src/cloudflare/types/radar/attacks/layer3/top/location_target_params.py index ba4b8a829a8..4b1f0a0e41d 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top/location_target_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/top/location_target_params.py @@ -22,28 +22,7 @@ class LocationTargetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/top_attacks_params.py b/src/cloudflare/types/radar/attacks/layer3/top_attacks_params.py index ca4d349d09a..a93d37a6324 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top_attacks_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/top_attacks_params.py @@ -22,28 +22,7 @@ class TopAttacksParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/top_industry_params.py b/src/cloudflare/types/radar/attacks/layer3/top_industry_params.py index ffb3a18362f..41360260afa 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top_industry_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/top_industry_params.py @@ -22,28 +22,7 @@ class TopIndustryParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3/top_vertical_params.py b/src/cloudflare/types/radar/attacks/layer3/top_vertical_params.py index 8a423439c5f..d04759c7af9 100644 --- a/src/cloudflare/types/radar/attacks/layer3/top_vertical_params.py +++ b/src/cloudflare/types/radar/attacks/layer3/top_vertical_params.py @@ -22,28 +22,7 @@ class TopVerticalParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer3_timeseries_params.py b/src/cloudflare/types/radar/attacks/layer3_timeseries_params.py index b84d90410fd..61c6eb22613 100644 --- a/src/cloudflare/types/radar/attacks/layer3_timeseries_params.py +++ b/src/cloudflare/types/radar/attacks/layer3_timeseries_params.py @@ -36,28 +36,7 @@ class Layer3TimeseriesParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_get_params.py b/src/cloudflare/types/radar/attacks/layer7/summary_get_params.py index c0352a255b0..fe1dae91b19 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_get_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_get_params.py @@ -29,28 +29,7 @@ class SummaryGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_http_method_params.py b/src/cloudflare/types/radar/attacks/layer7/summary_http_method_params.py index e7b2bba3af8..6060fcfa603 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_http_method_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_http_method_params.py @@ -29,28 +29,7 @@ class SummaryHTTPMethodParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_http_version_params.py b/src/cloudflare/types/radar/attacks/layer7/summary_http_version_params.py index b7e7f1b7936..7a900629d0f 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_http_version_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_http_version_params.py @@ -29,28 +29,7 @@ class SummaryHTTPVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_params.py b/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_params.py index 750ac6fa089..9a7e6f3ccff 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_ip_version_params.py @@ -29,28 +29,7 @@ class SummaryIPVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_params.py b/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_params.py index a3712a4355b..5dfedbebd51 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_managed_rules_params.py @@ -29,28 +29,7 @@ class SummaryManagedRulesParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_params.py b/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_params.py index 338b6ec6df6..4013e1ee425 100644 --- a/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/summary_mitigation_product_params.py @@ -29,28 +29,7 @@ class SummaryMitigationProductParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_params.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_params.py index 5a91d77b2ba..9ab69b16b82 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_get_params.py @@ -36,28 +36,7 @@ class TimeseriesGroupGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_method_params.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_method_params.py index 0104e415659..d6ea3e4eec2 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_method_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_method_params.py @@ -36,28 +36,7 @@ class TimeseriesGroupHTTPMethodParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_version_params.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_version_params.py index b3f57608746..f2c435b5132 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_version_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_http_version_params.py @@ -36,28 +36,7 @@ class TimeseriesGroupHTTPVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_params.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_params.py index 4e42768f966..274b5be39b6 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_industry_params.py @@ -36,28 +36,7 @@ class TimeseriesGroupIndustryParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_ip_version_params.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_ip_version_params.py index fd01114679b..dfeee4f83b4 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_ip_version_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_ip_version_params.py @@ -36,28 +36,7 @@ class TimeseriesGroupIPVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_managed_rules_params.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_managed_rules_params.py index fb54dc9e9ff..7c26f5c6c64 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_managed_rules_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_managed_rules_params.py @@ -36,28 +36,7 @@ class TimeseriesGroupManagedRulesParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_mitigation_product_params.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_mitigation_product_params.py index 0c3d74fec88..7dfb3741259 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_mitigation_product_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_mitigation_product_params.py @@ -36,28 +36,7 @@ class TimeseriesGroupMitigationProductParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_vertical_params.py b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_vertical_params.py index 71c1a4f0da0..97c91f53136 100644 --- a/src/cloudflare/types/radar/attacks/layer7/timeseries_group_vertical_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/timeseries_group_vertical_params.py @@ -36,28 +36,7 @@ class TimeseriesGroupVerticalParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_params.py b/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_params.py index 47cd8743e1c..17099f3e08c 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/top/ase_origin_params.py @@ -22,28 +22,7 @@ class AseOriginParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and @@ -56,6 +35,67 @@ class AseOriginParams(TypedDict, total=False): format: Literal["JSON", "CSV"] """Format results are returned in.""" + http_method: Annotated[ + List[ + Literal[ + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", + ] + ], + PropertyInfo(alias="httpMethod"), + ] + """Filter for http method.""" + + http_version: Annotated[List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]], PropertyInfo(alias="httpVersion")] + """Filter for http version.""" + + ip_version: Annotated[List[Literal["IPv4", "IPv6"]], PropertyInfo(alias="ipVersion")] + """Filter for ip version.""" + limit: int """Limit the number of objects in the response.""" @@ -66,5 +106,15 @@ class AseOriginParams(TypedDict, total=False): from the US, but includes results from PT. """ + mitigation_product: Annotated[ + List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ], + PropertyInfo(alias="mitigationProduct"), + ] + """Array of L7 mitigation products.""" + name: List[str] """Array of names that will be used to name the series in responses.""" diff --git a/src/cloudflare/types/radar/attacks/layer7/top/location_origin_params.py b/src/cloudflare/types/radar/attacks/layer7/top/location_origin_params.py index 0b71871665f..58aa33984ac 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top/location_origin_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/top/location_origin_params.py @@ -29,28 +29,7 @@ class LocationOriginParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and @@ -63,8 +42,79 @@ class LocationOriginParams(TypedDict, total=False): format: Literal["JSON", "CSV"] """Format results are returned in.""" + http_method: Annotated[ + List[ + Literal[ + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", + ] + ], + PropertyInfo(alias="httpMethod"), + ] + """Filter for http method.""" + + http_version: Annotated[List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]], PropertyInfo(alias="httpVersion")] + """Filter for http version.""" + + ip_version: Annotated[List[Literal["IPv4", "IPv6"]], PropertyInfo(alias="ipVersion")] + """Filter for ip version.""" + limit: int """Limit the number of objects in the response.""" + mitigation_product: Annotated[ + List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ], + PropertyInfo(alias="mitigationProduct"), + ] + """Array of L7 mitigation products.""" + name: List[str] """Array of names that will be used to name the series in responses.""" diff --git a/src/cloudflare/types/radar/attacks/layer7/top/location_target_params.py b/src/cloudflare/types/radar/attacks/layer7/top/location_target_params.py index cfbffac2733..50a57bfe056 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top/location_target_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/top/location_target_params.py @@ -22,28 +22,7 @@ class LocationTargetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and @@ -56,8 +35,79 @@ class LocationTargetParams(TypedDict, total=False): format: Literal["JSON", "CSV"] """Format results are returned in.""" + http_method: Annotated[ + List[ + Literal[ + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", + ] + ], + PropertyInfo(alias="httpMethod"), + ] + """Filter for http method.""" + + http_version: Annotated[List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]], PropertyInfo(alias="httpVersion")] + """Filter for http version.""" + + ip_version: Annotated[List[Literal["IPv4", "IPv6"]], PropertyInfo(alias="ipVersion")] + """Filter for ip version.""" + limit: int """Limit the number of objects in the response.""" + mitigation_product: Annotated[ + List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ], + PropertyInfo(alias="mitigationProduct"), + ] + """Array of L7 mitigation products.""" + name: List[str] """Array of names that will be used to name the series in responses.""" diff --git a/src/cloudflare/types/radar/attacks/layer7/top_attacks_params.py b/src/cloudflare/types/radar/attacks/layer7/top_attacks_params.py index 62ec38abfb3..d735b60cb91 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top_attacks_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/top_attacks_params.py @@ -29,28 +29,7 @@ class TopAttacksParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and @@ -63,6 +42,67 @@ class TopAttacksParams(TypedDict, total=False): format: Literal["JSON", "CSV"] """Format results are returned in.""" + http_method: Annotated[ + List[ + Literal[ + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", + ] + ], + PropertyInfo(alias="httpMethod"), + ] + """Filter for http method.""" + + http_version: Annotated[List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]], PropertyInfo(alias="httpVersion")] + """Filter for http version.""" + + ip_version: Annotated[List[Literal["IPv4", "IPv6"]], PropertyInfo(alias="ipVersion")] + """Filter for ip version.""" + limit: int """Limit the number of objects in the response.""" @@ -92,6 +132,16 @@ class TopAttacksParams(TypedDict, total=False): attacked. """ + mitigation_product: Annotated[ + List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ], + PropertyInfo(alias="mitigationProduct"), + ] + """Array of L7 mitigation products.""" + name: List[str] """Array of names that will be used to name the series in responses.""" diff --git a/src/cloudflare/types/radar/attacks/layer7/top_industry_params.py b/src/cloudflare/types/radar/attacks/layer7/top_industry_params.py index 8c19fbe7fbd..54c26d71680 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top_industry_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/top_industry_params.py @@ -29,28 +29,7 @@ class TopIndustryParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and @@ -63,6 +42,67 @@ class TopIndustryParams(TypedDict, total=False): format: Literal["JSON", "CSV"] """Format results are returned in.""" + http_method: Annotated[ + List[ + Literal[ + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", + ] + ], + PropertyInfo(alias="httpMethod"), + ] + """Filter for http method.""" + + http_version: Annotated[List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]], PropertyInfo(alias="httpVersion")] + """Filter for http version.""" + + ip_version: Annotated[List[Literal["IPv4", "IPv6"]], PropertyInfo(alias="ipVersion")] + """Filter for ip version.""" + limit: int """Limit the number of objects in the response.""" @@ -73,5 +113,15 @@ class TopIndustryParams(TypedDict, total=False): from the US, but includes results from PT. """ + mitigation_product: Annotated[ + List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ], + PropertyInfo(alias="mitigationProduct"), + ] + """Array of L7 mitigation products.""" + name: List[str] """Array of names that will be used to name the series in responses.""" diff --git a/src/cloudflare/types/radar/attacks/layer7/top_vertical_params.py b/src/cloudflare/types/radar/attacks/layer7/top_vertical_params.py index 3bd3fc5adab..cb941de5c43 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top_vertical_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/top_vertical_params.py @@ -29,28 +29,7 @@ class TopVerticalParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and @@ -63,6 +42,67 @@ class TopVerticalParams(TypedDict, total=False): format: Literal["JSON", "CSV"] """Format results are returned in.""" + http_method: Annotated[ + List[ + Literal[ + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", + ] + ], + PropertyInfo(alias="httpMethod"), + ] + """Filter for http method.""" + + http_version: Annotated[List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]], PropertyInfo(alias="httpVersion")] + """Filter for http version.""" + + ip_version: Annotated[List[Literal["IPv4", "IPv6"]], PropertyInfo(alias="ipVersion")] + """Filter for ip version.""" + limit: int """Limit the number of objects in the response.""" @@ -73,5 +113,15 @@ class TopVerticalParams(TypedDict, total=False): from the US, but includes results from PT. """ + mitigation_product: Annotated[ + List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ], + PropertyInfo(alias="mitigationProduct"), + ] + """Array of L7 mitigation products.""" + name: List[str] """Array of names that will be used to name the series in responses.""" diff --git a/src/cloudflare/types/radar/attacks/layer7_timeseries_params.py b/src/cloudflare/types/radar/attacks/layer7_timeseries_params.py index e4c8ea5f8c4..1808607d48b 100644 --- a/src/cloudflare/types/radar/attacks/layer7_timeseries_params.py +++ b/src/cloudflare/types/radar/attacks/layer7_timeseries_params.py @@ -29,7 +29,7 @@ class Layer7TimeseriesParams(TypedDict, total=False): attack: List[ Literal["DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"] ] - """Array of L7 attack types.""" + """This field is deprecated, please use the new `mitigationProduct`.""" continent: List[str] """Array of comma separated list of continents (alpha-2 continent codes). @@ -41,28 +41,7 @@ class Layer7TimeseriesParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and @@ -75,6 +54,67 @@ class Layer7TimeseriesParams(TypedDict, total=False): format: Literal["JSON", "CSV"] """Format results are returned in.""" + http_method: Annotated[ + List[ + Literal[ + "GET", + "POST", + "DELETE", + "PUT", + "HEAD", + "PURGE", + "OPTIONS", + "PROPFIND", + "MKCOL", + "PATCH", + "ACL", + "BCOPY", + "BDELETE", + "BMOVE", + "BPROPFIND", + "BPROPPATCH", + "CHECKIN", + "CHECKOUT", + "CONNECT", + "COPY", + "LABEL", + "LOCK", + "MERGE", + "MKACTIVITY", + "MKWORKSPACE", + "MOVE", + "NOTIFY", + "ORDERPATCH", + "POLL", + "PROPPATCH", + "REPORT", + "SEARCH", + "SUBSCRIBE", + "TRACE", + "UNCHECKOUT", + "UNLOCK", + "UNSUBSCRIBE", + "UPDATE", + "VERSIONCONTROL", + "BASELINECONTROL", + "XMSENUMATTS", + "RPC_OUT_DATA", + "RPC_IN_DATA", + "JSON", + "COOK", + "TRACK", + ] + ], + PropertyInfo(alias="httpMethod"), + ] + """Filter for http method.""" + + http_version: Annotated[List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]], PropertyInfo(alias="httpVersion")] + """Filter for http version.""" + + ip_version: Annotated[List[Literal["IPv4", "IPv6"]], PropertyInfo(alias="ipVersion")] + """Filter for ip version.""" + location: List[str] """Array of comma separated list of locations (alpha-2 country codes). @@ -82,6 +122,16 @@ class Layer7TimeseriesParams(TypedDict, total=False): from the US, but includes results from PT. """ + mitigation_product: Annotated[ + List[ + Literal[ + "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" + ] + ], + PropertyInfo(alias="mitigationProduct"), + ] + """Array of L7 mitigation products.""" + name: List[str] """Array of names that will be used to name the series in responses.""" diff --git a/src/cloudflare/types/radar/bgp/hijacks/event_list_params.py b/src/cloudflare/types/radar/bgp/hijacks/event_list_params.py index d4508e86b11..7433cf1aae5 100644 --- a/src/cloudflare/types/radar/bgp/hijacks/event_list_params.py +++ b/src/cloudflare/types/radar/bgp/hijacks/event_list_params.py @@ -15,26 +15,7 @@ class EventListParams(TypedDict, total=False): date_end: Annotated[Union[str, datetime], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[str, PropertyInfo(alias="dateRange")] """ Shorthand date ranges for the last X days - use when you don't need specific start and end dates. diff --git a/src/cloudflare/types/radar/bgp/ip_timeseries_params.py b/src/cloudflare/types/radar/bgp/ip_timeseries_params.py index 64d069dcb49..b5b47a19d65 100644 --- a/src/cloudflare/types/radar/bgp/ip_timeseries_params.py +++ b/src/cloudflare/types/radar/bgp/ip_timeseries_params.py @@ -18,26 +18,7 @@ class IPTimeseriesParams(TypedDict, total=False): date_end: Annotated[Union[str, datetime], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[str, PropertyInfo(alias="dateRange")] """ Shorthand date ranges for the last X days - use when you don't need specific start and end dates. diff --git a/src/cloudflare/types/radar/bgp/leaks/event_list_params.py b/src/cloudflare/types/radar/bgp/leaks/event_list_params.py index c67ff410944..a9773f39dfa 100644 --- a/src/cloudflare/types/radar/bgp/leaks/event_list_params.py +++ b/src/cloudflare/types/radar/bgp/leaks/event_list_params.py @@ -15,26 +15,7 @@ class EventListParams(TypedDict, total=False): date_end: Annotated[Union[str, datetime], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[str, PropertyInfo(alias="dateRange")] """ Shorthand date ranges for the last X days - use when you don't need specific start and end dates. diff --git a/src/cloudflare/types/radar/bgp/top/ase_get_params.py b/src/cloudflare/types/radar/bgp/top/ase_get_params.py index c5ea6aeafaf..0b3abb1528f 100644 --- a/src/cloudflare/types/radar/bgp/top/ase_get_params.py +++ b/src/cloudflare/types/radar/bgp/top/ase_get_params.py @@ -22,28 +22,7 @@ class AseGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/bgp/top_prefixes_params.py b/src/cloudflare/types/radar/bgp/top_prefixes_params.py index f8f71e0a887..a73c20fb3c6 100644 --- a/src/cloudflare/types/radar/bgp/top_prefixes_params.py +++ b/src/cloudflare/types/radar/bgp/top_prefixes_params.py @@ -22,28 +22,7 @@ class TopPrefixesParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/bgp_timeseries_params.py b/src/cloudflare/types/radar/bgp_timeseries_params.py index 60be5fc3baf..2e6c49dd837 100644 --- a/src/cloudflare/types/radar/bgp_timeseries_params.py +++ b/src/cloudflare/types/radar/bgp_timeseries_params.py @@ -29,28 +29,7 @@ class BGPTimeseriesParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/connection_tampering_summary_params.py b/src/cloudflare/types/radar/connection_tampering_summary_params.py index 816d2a69a84..8d20f6b54dd 100644 --- a/src/cloudflare/types/radar/connection_tampering_summary_params.py +++ b/src/cloudflare/types/radar/connection_tampering_summary_params.py @@ -29,28 +29,7 @@ class ConnectionTamperingSummaryParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/connection_tampering_timeseries_groups_params.py b/src/cloudflare/types/radar/connection_tampering_timeseries_groups_params.py index e5275b8ad5d..176588e5de7 100644 --- a/src/cloudflare/types/radar/connection_tampering_timeseries_groups_params.py +++ b/src/cloudflare/types/radar/connection_tampering_timeseries_groups_params.py @@ -36,28 +36,7 @@ class ConnectionTamperingTimeseriesGroupsParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/dns/top_ases_params.py b/src/cloudflare/types/radar/dns/top_ases_params.py index cf6d067e3f6..fed6e043884 100644 --- a/src/cloudflare/types/radar/dns/top_ases_params.py +++ b/src/cloudflare/types/radar/dns/top_ases_params.py @@ -32,28 +32,7 @@ class TopAsesParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/dns/top_locations_params.py b/src/cloudflare/types/radar/dns/top_locations_params.py index e8afc5e3988..a0f8a46d7d3 100644 --- a/src/cloudflare/types/radar/dns/top_locations_params.py +++ b/src/cloudflare/types/radar/dns/top_locations_params.py @@ -32,28 +32,7 @@ class TopLocationsParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/routing/summary_arc_params.py b/src/cloudflare/types/radar/email/routing/summary_arc_params.py index 882c1d9eab3..58c3c121836 100644 --- a/src/cloudflare/types/radar/email/routing/summary_arc_params.py +++ b/src/cloudflare/types/radar/email/routing/summary_arc_params.py @@ -15,28 +15,7 @@ class SummaryARCParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/routing/summary_dkim_params.py b/src/cloudflare/types/radar/email/routing/summary_dkim_params.py index 9a604a3c892..19be324942f 100644 --- a/src/cloudflare/types/radar/email/routing/summary_dkim_params.py +++ b/src/cloudflare/types/radar/email/routing/summary_dkim_params.py @@ -18,28 +18,7 @@ class SummaryDKIMParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/routing/summary_dmarc_params.py b/src/cloudflare/types/radar/email/routing/summary_dmarc_params.py index 6bb4c73906d..f356077e043 100644 --- a/src/cloudflare/types/radar/email/routing/summary_dmarc_params.py +++ b/src/cloudflare/types/radar/email/routing/summary_dmarc_params.py @@ -18,28 +18,7 @@ class SummaryDMARCParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/routing/summary_encrypted_params.py b/src/cloudflare/types/radar/email/routing/summary_encrypted_params.py index deb23b67fd7..b6553448171 100644 --- a/src/cloudflare/types/radar/email/routing/summary_encrypted_params.py +++ b/src/cloudflare/types/radar/email/routing/summary_encrypted_params.py @@ -18,28 +18,7 @@ class SummaryEncryptedParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/routing/summary_ip_version_params.py b/src/cloudflare/types/radar/email/routing/summary_ip_version_params.py index 031548d8db4..a1e7d6396f4 100644 --- a/src/cloudflare/types/radar/email/routing/summary_ip_version_params.py +++ b/src/cloudflare/types/radar/email/routing/summary_ip_version_params.py @@ -18,28 +18,7 @@ class SummaryIPVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/routing/summary_spf_params.py b/src/cloudflare/types/radar/email/routing/summary_spf_params.py index 09b77b5cdcc..f594b1931b7 100644 --- a/src/cloudflare/types/radar/email/routing/summary_spf_params.py +++ b/src/cloudflare/types/radar/email/routing/summary_spf_params.py @@ -18,28 +18,7 @@ class SummarySPFParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_arc_params.py b/src/cloudflare/types/radar/email/routing/timeseries_group_arc_params.py index 6ec8c996a71..2c950448fe6 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_arc_params.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_arc_params.py @@ -22,28 +22,7 @@ class TimeseriesGroupARCParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_params.py b/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_params.py index 92a54f9bbbb..28c98ab3c92 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_params.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_dkim_params.py @@ -25,28 +25,7 @@ class TimeseriesGroupDKIMParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_params.py b/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_params.py index 017c0baab09..71271e551db 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_params.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_dmarc_params.py @@ -25,28 +25,7 @@ class TimeseriesGroupDMARCParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_encrypted_params.py b/src/cloudflare/types/radar/email/routing/timeseries_group_encrypted_params.py index 1a7d6141526..093524f3bbd 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_encrypted_params.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_encrypted_params.py @@ -25,28 +25,7 @@ class TimeseriesGroupEncryptedParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_ip_version_params.py b/src/cloudflare/types/radar/email/routing/timeseries_group_ip_version_params.py index 522cbaa9b26..f264feafdc3 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_ip_version_params.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_ip_version_params.py @@ -25,28 +25,7 @@ class TimeseriesGroupIPVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/routing/timeseries_group_spf_params.py b/src/cloudflare/types/radar/email/routing/timeseries_group_spf_params.py index 8065d9eed1f..22168b70e9f 100644 --- a/src/cloudflare/types/radar/email/routing/timeseries_group_spf_params.py +++ b/src/cloudflare/types/radar/email/routing/timeseries_group_spf_params.py @@ -25,28 +25,7 @@ class TimeseriesGroupSPFParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/summary_arc_params.py b/src/cloudflare/types/radar/email/security/summary_arc_params.py index 9ad299b59ee..b141a65af14 100644 --- a/src/cloudflare/types/radar/email/security/summary_arc_params.py +++ b/src/cloudflare/types/radar/email/security/summary_arc_params.py @@ -15,28 +15,7 @@ class SummaryARCParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/summary_dkim_params.py b/src/cloudflare/types/radar/email/security/summary_dkim_params.py index 6a731169c87..f92d7545793 100644 --- a/src/cloudflare/types/radar/email/security/summary_dkim_params.py +++ b/src/cloudflare/types/radar/email/security/summary_dkim_params.py @@ -18,28 +18,7 @@ class SummaryDKIMParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/summary_dmarc_params.py b/src/cloudflare/types/radar/email/security/summary_dmarc_params.py index 5b137bbc141..f31a3218ce0 100644 --- a/src/cloudflare/types/radar/email/security/summary_dmarc_params.py +++ b/src/cloudflare/types/radar/email/security/summary_dmarc_params.py @@ -18,28 +18,7 @@ class SummaryDMARCParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/summary_malicious_params.py b/src/cloudflare/types/radar/email/security/summary_malicious_params.py index 70f9b54c64a..432685036f3 100644 --- a/src/cloudflare/types/radar/email/security/summary_malicious_params.py +++ b/src/cloudflare/types/radar/email/security/summary_malicious_params.py @@ -18,28 +18,7 @@ class SummaryMaliciousParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/summary_spam_params.py b/src/cloudflare/types/radar/email/security/summary_spam_params.py index afef137ed42..bc535bf3aae 100644 --- a/src/cloudflare/types/radar/email/security/summary_spam_params.py +++ b/src/cloudflare/types/radar/email/security/summary_spam_params.py @@ -18,28 +18,7 @@ class SummarySpamParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/summary_spf_params.py b/src/cloudflare/types/radar/email/security/summary_spf_params.py index ed5f1fb6398..43e4ba10cc7 100644 --- a/src/cloudflare/types/radar/email/security/summary_spf_params.py +++ b/src/cloudflare/types/radar/email/security/summary_spf_params.py @@ -18,28 +18,7 @@ class SummarySPFParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/summary_spoof_params.py b/src/cloudflare/types/radar/email/security/summary_spoof_params.py index bb6330e3d9b..f82a3b58522 100644 --- a/src/cloudflare/types/radar/email/security/summary_spoof_params.py +++ b/src/cloudflare/types/radar/email/security/summary_spoof_params.py @@ -18,28 +18,7 @@ class SummarySpoofParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/summary_threat_category_params.py b/src/cloudflare/types/radar/email/security/summary_threat_category_params.py index e33d9f80946..c38e50ac6b3 100644 --- a/src/cloudflare/types/radar/email/security/summary_threat_category_params.py +++ b/src/cloudflare/types/radar/email/security/summary_threat_category_params.py @@ -18,28 +18,7 @@ class SummaryThreatCategoryParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/summary_tls_version_params.py b/src/cloudflare/types/radar/email/security/summary_tls_version_params.py index c6ac1125c3c..4d7362e138e 100644 --- a/src/cloudflare/types/radar/email/security/summary_tls_version_params.py +++ b/src/cloudflare/types/radar/email/security/summary_tls_version_params.py @@ -18,28 +18,7 @@ class SummaryTLSVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_arc_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_arc_params.py index 191f71e93a1..abc50a0d1c2 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_arc_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_arc_params.py @@ -22,28 +22,7 @@ class TimeseriesGroupARCParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_dkim_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_dkim_params.py index d7ca9182a54..25f67103fbc 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_dkim_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_dkim_params.py @@ -25,28 +25,7 @@ class TimeseriesGroupDKIMParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_params.py index 49f05939993..b6c44355beb 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_dmarc_params.py @@ -25,28 +25,7 @@ class TimeseriesGroupDMARCParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_malicious_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_malicious_params.py index 13403acd4c7..4fadea1473b 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_malicious_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_malicious_params.py @@ -25,28 +25,7 @@ class TimeseriesGroupMaliciousParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_spam_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_spam_params.py index 96c9df09aa3..cf290efb92d 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_spam_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_spam_params.py @@ -25,28 +25,7 @@ class TimeseriesGroupSpamParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_spf_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_spf_params.py index ac8c26edf98..02c8899e043 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_spf_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_spf_params.py @@ -25,28 +25,7 @@ class TimeseriesGroupSPFParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_spoof_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_spoof_params.py index 3279d449289..7192baec686 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_spoof_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_spoof_params.py @@ -25,28 +25,7 @@ class TimeseriesGroupSpoofParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_threat_category_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_threat_category_params.py index dde9d094925..2db3534a333 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_threat_category_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_threat_category_params.py @@ -25,28 +25,7 @@ class TimeseriesGroupThreatCategoryParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/timeseries_group_tls_version_params.py b/src/cloudflare/types/radar/email/security/timeseries_group_tls_version_params.py index ce4e549bd6a..84a9ada0097 100644 --- a/src/cloudflare/types/radar/email/security/timeseries_group_tls_version_params.py +++ b/src/cloudflare/types/radar/email/security/timeseries_group_tls_version_params.py @@ -25,28 +25,7 @@ class TimeseriesGroupTLSVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/top/tld_get_params.py b/src/cloudflare/types/radar/email/security/top/tld_get_params.py index 6788ded0600..3921a4e597d 100644 --- a/src/cloudflare/types/radar/email/security/top/tld_get_params.py +++ b/src/cloudflare/types/radar/email/security/top/tld_get_params.py @@ -18,28 +18,7 @@ class TldGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_params.py b/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_params.py index b1c565d93fb..e1cc9a0218f 100644 --- a/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_params.py +++ b/src/cloudflare/types/radar/email/security/top/tlds/malicious_get_params.py @@ -18,28 +18,7 @@ class MaliciousGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/top/tlds/spam_get_params.py b/src/cloudflare/types/radar/email/security/top/tlds/spam_get_params.py index 459205ae9fd..69fbfba03d0 100644 --- a/src/cloudflare/types/radar/email/security/top/tlds/spam_get_params.py +++ b/src/cloudflare/types/radar/email/security/top/tlds/spam_get_params.py @@ -18,28 +18,7 @@ class SpamGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_params.py b/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_params.py index d00cf123fbd..5750c343985 100644 --- a/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_params.py +++ b/src/cloudflare/types/radar/email/security/top/tlds/spoof_get_params.py @@ -18,28 +18,7 @@ class SpoofGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/ase_get_params.py b/src/cloudflare/types/radar/http/ase_get_params.py index 866834c70d7..811464b10b0 100644 --- a/src/cloudflare/types/radar/http/ase_get_params.py +++ b/src/cloudflare/types/radar/http/ase_get_params.py @@ -39,28 +39,7 @@ class AseGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/ases/bot_class_get_params.py b/src/cloudflare/types/radar/http/ases/bot_class_get_params.py index cd99955cee5..59a823a180a 100644 --- a/src/cloudflare/types/radar/http/ases/bot_class_get_params.py +++ b/src/cloudflare/types/radar/http/ases/bot_class_get_params.py @@ -32,28 +32,7 @@ class BotClassGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/ases/browser_family_get_params.py b/src/cloudflare/types/radar/http/ases/browser_family_get_params.py index e4869f37c27..ed19fdee421 100644 --- a/src/cloudflare/types/radar/http/ases/browser_family_get_params.py +++ b/src/cloudflare/types/radar/http/ases/browser_family_get_params.py @@ -36,28 +36,7 @@ class BrowserFamilyGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/ases/device_type_get_params.py b/src/cloudflare/types/radar/http/ases/device_type_get_params.py index 4e8a4f6eef2..43e1b06c821 100644 --- a/src/cloudflare/types/radar/http/ases/device_type_get_params.py +++ b/src/cloudflare/types/radar/http/ases/device_type_get_params.py @@ -39,28 +39,7 @@ class DeviceTypeGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/ases/http_method_get_params.py b/src/cloudflare/types/radar/http/ases/http_method_get_params.py index d32a5407d1f..fb227592965 100644 --- a/src/cloudflare/types/radar/http/ases/http_method_get_params.py +++ b/src/cloudflare/types/radar/http/ases/http_method_get_params.py @@ -39,28 +39,7 @@ class HTTPMethodGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/ases/http_protocol_get_params.py b/src/cloudflare/types/radar/http/ases/http_protocol_get_params.py index 6286b675db5..629a3b8d8c0 100644 --- a/src/cloudflare/types/radar/http/ases/http_protocol_get_params.py +++ b/src/cloudflare/types/radar/http/ases/http_protocol_get_params.py @@ -39,28 +39,7 @@ class HTTPProtocolGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/ases/ip_version_get_params.py b/src/cloudflare/types/radar/http/ases/ip_version_get_params.py index c39d2467c67..86ababaa79a 100644 --- a/src/cloudflare/types/radar/http/ases/ip_version_get_params.py +++ b/src/cloudflare/types/radar/http/ases/ip_version_get_params.py @@ -39,28 +39,7 @@ class IPVersionGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/ases/os_get_params.py b/src/cloudflare/types/radar/http/ases/os_get_params.py index 300ebd78db8..12ac2d093b7 100644 --- a/src/cloudflare/types/radar/http/ases/os_get_params.py +++ b/src/cloudflare/types/radar/http/ases/os_get_params.py @@ -39,28 +39,7 @@ class OSGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/ases/tls_version_get_params.py b/src/cloudflare/types/radar/http/ases/tls_version_get_params.py index f5bb8d7ce65..050045d800f 100644 --- a/src/cloudflare/types/radar/http/ases/tls_version_get_params.py +++ b/src/cloudflare/types/radar/http/ases/tls_version_get_params.py @@ -39,28 +39,7 @@ class TLSVersionGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/location_get_params.py b/src/cloudflare/types/radar/http/location_get_params.py index 7f57f7d7d12..1459dbe0e58 100644 --- a/src/cloudflare/types/radar/http/location_get_params.py +++ b/src/cloudflare/types/radar/http/location_get_params.py @@ -39,28 +39,7 @@ class LocationGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/locations/bot_class_get_params.py b/src/cloudflare/types/radar/http/locations/bot_class_get_params.py index cd99955cee5..59a823a180a 100644 --- a/src/cloudflare/types/radar/http/locations/bot_class_get_params.py +++ b/src/cloudflare/types/radar/http/locations/bot_class_get_params.py @@ -32,28 +32,7 @@ class BotClassGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/locations/browser_family_get_params.py b/src/cloudflare/types/radar/http/locations/browser_family_get_params.py index e4869f37c27..ed19fdee421 100644 --- a/src/cloudflare/types/radar/http/locations/browser_family_get_params.py +++ b/src/cloudflare/types/radar/http/locations/browser_family_get_params.py @@ -36,28 +36,7 @@ class BrowserFamilyGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/locations/device_type_get_params.py b/src/cloudflare/types/radar/http/locations/device_type_get_params.py index 4e8a4f6eef2..43e1b06c821 100644 --- a/src/cloudflare/types/radar/http/locations/device_type_get_params.py +++ b/src/cloudflare/types/radar/http/locations/device_type_get_params.py @@ -39,28 +39,7 @@ class DeviceTypeGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/locations/http_method_get_params.py b/src/cloudflare/types/radar/http/locations/http_method_get_params.py index d32a5407d1f..fb227592965 100644 --- a/src/cloudflare/types/radar/http/locations/http_method_get_params.py +++ b/src/cloudflare/types/radar/http/locations/http_method_get_params.py @@ -39,28 +39,7 @@ class HTTPMethodGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/locations/http_protocol_get_params.py b/src/cloudflare/types/radar/http/locations/http_protocol_get_params.py index 6286b675db5..629a3b8d8c0 100644 --- a/src/cloudflare/types/radar/http/locations/http_protocol_get_params.py +++ b/src/cloudflare/types/radar/http/locations/http_protocol_get_params.py @@ -39,28 +39,7 @@ class HTTPProtocolGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/locations/ip_version_get_params.py b/src/cloudflare/types/radar/http/locations/ip_version_get_params.py index c39d2467c67..86ababaa79a 100644 --- a/src/cloudflare/types/radar/http/locations/ip_version_get_params.py +++ b/src/cloudflare/types/radar/http/locations/ip_version_get_params.py @@ -39,28 +39,7 @@ class IPVersionGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/locations/os_get_params.py b/src/cloudflare/types/radar/http/locations/os_get_params.py index 300ebd78db8..12ac2d093b7 100644 --- a/src/cloudflare/types/radar/http/locations/os_get_params.py +++ b/src/cloudflare/types/radar/http/locations/os_get_params.py @@ -39,28 +39,7 @@ class OSGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/locations/tls_version_get_params.py b/src/cloudflare/types/radar/http/locations/tls_version_get_params.py index f5bb8d7ce65..050045d800f 100644 --- a/src/cloudflare/types/radar/http/locations/tls_version_get_params.py +++ b/src/cloudflare/types/radar/http/locations/tls_version_get_params.py @@ -39,28 +39,7 @@ class TLSVersionGetParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/summary_bot_class_params.py b/src/cloudflare/types/radar/http/summary_bot_class_params.py index 6f9c8158410..fcd244197a8 100644 --- a/src/cloudflare/types/radar/http/summary_bot_class_params.py +++ b/src/cloudflare/types/radar/http/summary_bot_class_params.py @@ -29,28 +29,7 @@ class SummaryBotClassParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/summary_device_type_params.py b/src/cloudflare/types/radar/http/summary_device_type_params.py index 899ff846953..c0a7a7664f2 100644 --- a/src/cloudflare/types/radar/http/summary_device_type_params.py +++ b/src/cloudflare/types/radar/http/summary_device_type_params.py @@ -36,28 +36,7 @@ class SummaryDeviceTypeParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/summary_http_protocol_params.py b/src/cloudflare/types/radar/http/summary_http_protocol_params.py index d7dbe0cd03d..ca05adc80b4 100644 --- a/src/cloudflare/types/radar/http/summary_http_protocol_params.py +++ b/src/cloudflare/types/radar/http/summary_http_protocol_params.py @@ -36,28 +36,7 @@ class SummaryHTTPProtocolParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/summary_http_version_params.py b/src/cloudflare/types/radar/http/summary_http_version_params.py index 03d81296e08..f103dfb0592 100644 --- a/src/cloudflare/types/radar/http/summary_http_version_params.py +++ b/src/cloudflare/types/radar/http/summary_http_version_params.py @@ -36,28 +36,7 @@ class SummaryHTTPVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/summary_ip_version_params.py b/src/cloudflare/types/radar/http/summary_ip_version_params.py index 4e513e981b6..5d135a39310 100644 --- a/src/cloudflare/types/radar/http/summary_ip_version_params.py +++ b/src/cloudflare/types/radar/http/summary_ip_version_params.py @@ -36,28 +36,7 @@ class SummaryIPVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/summary_os_params.py b/src/cloudflare/types/radar/http/summary_os_params.py index d96f19b91ef..f475ca9335f 100644 --- a/src/cloudflare/types/radar/http/summary_os_params.py +++ b/src/cloudflare/types/radar/http/summary_os_params.py @@ -36,28 +36,7 @@ class SummaryOSParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/summary_post_quantum_params.py b/src/cloudflare/types/radar/http/summary_post_quantum_params.py index d62ab293bb9..e9c7b6195d3 100644 --- a/src/cloudflare/types/radar/http/summary_post_quantum_params.py +++ b/src/cloudflare/types/radar/http/summary_post_quantum_params.py @@ -36,28 +36,7 @@ class SummaryPostQuantumParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/summary_tls_version_params.py b/src/cloudflare/types/radar/http/summary_tls_version_params.py index 9b3ed92b121..d158f1f43a6 100644 --- a/src/cloudflare/types/radar/http/summary_tls_version_params.py +++ b/src/cloudflare/types/radar/http/summary_tls_version_params.py @@ -36,28 +36,7 @@ class SummaryTLSVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/timeseries_group_bot_class_params.py b/src/cloudflare/types/radar/http/timeseries_group_bot_class_params.py index 34f57fd9882..c356954fbc4 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_bot_class_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_bot_class_params.py @@ -36,28 +36,7 @@ class TimeseriesGroupBotClassParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/timeseries_group_browser_family_params.py b/src/cloudflare/types/radar/http/timeseries_group_browser_family_params.py index 6abc3d5be70..df17101636c 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_browser_family_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_browser_family_params.py @@ -43,28 +43,7 @@ class TimeseriesGroupBrowserFamilyParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/timeseries_group_browser_params.py b/src/cloudflare/types/radar/http/timeseries_group_browser_params.py index a119176345b..7b2bdbd2ab0 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_browser_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_browser_params.py @@ -43,28 +43,7 @@ class TimeseriesGroupBrowserParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/timeseries_group_device_type_params.py b/src/cloudflare/types/radar/http/timeseries_group_device_type_params.py index 13b1c05f556..4e44b25d6cb 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_device_type_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_device_type_params.py @@ -43,28 +43,7 @@ class TimeseriesGroupDeviceTypeParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/timeseries_group_http_protocol_params.py b/src/cloudflare/types/radar/http/timeseries_group_http_protocol_params.py index de9c88b0507..ba7ee2c31aa 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_http_protocol_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_http_protocol_params.py @@ -43,28 +43,7 @@ class TimeseriesGroupHTTPProtocolParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/timeseries_group_http_version_params.py b/src/cloudflare/types/radar/http/timeseries_group_http_version_params.py index 1f3db28b16d..97e2dbca21e 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_http_version_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_http_version_params.py @@ -43,28 +43,7 @@ class TimeseriesGroupHTTPVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/timeseries_group_ip_version_params.py b/src/cloudflare/types/radar/http/timeseries_group_ip_version_params.py index 88d48881136..6c5aa48d095 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_ip_version_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_ip_version_params.py @@ -43,28 +43,7 @@ class TimeseriesGroupIPVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/timeseries_group_os_params.py b/src/cloudflare/types/radar/http/timeseries_group_os_params.py index 13d7bd856f8..229e0d9ff31 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_os_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_os_params.py @@ -43,28 +43,7 @@ class TimeseriesGroupOSParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/timeseries_group_post_quantum_params.py b/src/cloudflare/types/radar/http/timeseries_group_post_quantum_params.py index 09fa9317b8d..486a7428ed3 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_post_quantum_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_post_quantum_params.py @@ -43,28 +43,7 @@ class TimeseriesGroupPostQuantumParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/timeseries_group_tls_version_params.py b/src/cloudflare/types/radar/http/timeseries_group_tls_version_params.py index a5145f9cc8c..8fef3fd1627 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_tls_version_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_tls_version_params.py @@ -43,28 +43,7 @@ class TimeseriesGroupTLSVersionParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/top_browser_families_params.py b/src/cloudflare/types/radar/http/top_browser_families_params.py index 53bf111abab..24900559bc1 100644 --- a/src/cloudflare/types/radar/http/top_browser_families_params.py +++ b/src/cloudflare/types/radar/http/top_browser_families_params.py @@ -39,28 +39,7 @@ class TopBrowserFamiliesParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http/top_browsers_params.py b/src/cloudflare/types/radar/http/top_browsers_params.py index 1454f2d68e7..3f5e1bf9caf 100644 --- a/src/cloudflare/types/radar/http/top_browsers_params.py +++ b/src/cloudflare/types/radar/http/top_browsers_params.py @@ -39,28 +39,7 @@ class TopBrowsersParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/http_timeseries_params.py b/src/cloudflare/types/radar/http_timeseries_params.py index a11c86f05f2..d498561809b 100644 --- a/src/cloudflare/types/radar/http_timeseries_params.py +++ b/src/cloudflare/types/radar/http_timeseries_params.py @@ -36,28 +36,7 @@ class HTTPTimeseriesParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/netflow_timeseries_params.py b/src/cloudflare/types/radar/netflow_timeseries_params.py index 57515e42086..4b0bc3ba324 100644 --- a/src/cloudflare/types/radar/netflow_timeseries_params.py +++ b/src/cloudflare/types/radar/netflow_timeseries_params.py @@ -36,28 +36,7 @@ class NetflowTimeseriesParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/netflows/top_ases_params.py b/src/cloudflare/types/radar/netflows/top_ases_params.py index 957c657d194..951cd0fb34e 100644 --- a/src/cloudflare/types/radar/netflows/top_ases_params.py +++ b/src/cloudflare/types/radar/netflows/top_ases_params.py @@ -29,28 +29,7 @@ class TopAsesParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/netflows/top_locations_params.py b/src/cloudflare/types/radar/netflows/top_locations_params.py index ab868bf5790..74b6631d0b9 100644 --- a/src/cloudflare/types/radar/netflows/top_locations_params.py +++ b/src/cloudflare/types/radar/netflows/top_locations_params.py @@ -29,28 +29,7 @@ class TopLocationsParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/quality/iqi_summary_params.py b/src/cloudflare/types/radar/quality/iqi_summary_params.py index dcc5c5141cc..1de09c36ab0 100644 --- a/src/cloudflare/types/radar/quality/iqi_summary_params.py +++ b/src/cloudflare/types/radar/quality/iqi_summary_params.py @@ -32,28 +32,7 @@ class IQISummaryParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/quality/iqi_timeseries_groups_params.py b/src/cloudflare/types/radar/quality/iqi_timeseries_groups_params.py index 7fded5184e0..6923ba58c7c 100644 --- a/src/cloudflare/types/radar/quality/iqi_timeseries_groups_params.py +++ b/src/cloudflare/types/radar/quality/iqi_timeseries_groups_params.py @@ -39,28 +39,7 @@ class IQITimeseriesGroupsParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/ranking_timeseries_groups_params.py b/src/cloudflare/types/radar/ranking_timeseries_groups_params.py index f76604650f4..f9f165cc336 100644 --- a/src/cloudflare/types/radar/ranking_timeseries_groups_params.py +++ b/src/cloudflare/types/radar/ranking_timeseries_groups_params.py @@ -15,28 +15,7 @@ class RankingTimeseriesGroupsParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/traffic_anomalies/location_get_params.py b/src/cloudflare/types/radar/traffic_anomalies/location_get_params.py index 6b15edda53b..bd0ebc748dd 100644 --- a/src/cloudflare/types/radar/traffic_anomalies/location_get_params.py +++ b/src/cloudflare/types/radar/traffic_anomalies/location_get_params.py @@ -15,26 +15,7 @@ class LocationGetParams(TypedDict, total=False): date_end: Annotated[Union[str, datetime], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[str, PropertyInfo(alias="dateRange")] """ Shorthand date ranges for the last X days - use when you don't need specific start and end dates. diff --git a/src/cloudflare/types/radar/traffic_anomaly_get_params.py b/src/cloudflare/types/radar/traffic_anomaly_get_params.py index 263839ec1bd..0fae350c54c 100644 --- a/src/cloudflare/types/radar/traffic_anomaly_get_params.py +++ b/src/cloudflare/types/radar/traffic_anomaly_get_params.py @@ -18,26 +18,7 @@ class TrafficAnomalyGetParams(TypedDict, total=False): date_end: Annotated[Union[str, datetime], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[str, PropertyInfo(alias="dateRange")] """ Shorthand date ranges for the last X days - use when you don't need specific start and end dates. diff --git a/src/cloudflare/types/radar/verified_bots/top_bots_params.py b/src/cloudflare/types/radar/verified_bots/top_bots_params.py index fda85d34cc0..5eb7fcda9cc 100644 --- a/src/cloudflare/types/radar/verified_bots/top_bots_params.py +++ b/src/cloudflare/types/radar/verified_bots/top_bots_params.py @@ -29,28 +29,7 @@ class TopBotsParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/src/cloudflare/types/radar/verified_bots/top_categories_params.py b/src/cloudflare/types/radar/verified_bots/top_categories_params.py index 2e736ed36da..70f3ced1ddc 100644 --- a/src/cloudflare/types/radar/verified_bots/top_categories_params.py +++ b/src/cloudflare/types/radar/verified_bots/top_categories_params.py @@ -29,28 +29,7 @@ class TopCategoriesParams(TypedDict, total=False): date_end: Annotated[List[Union[str, datetime]], PropertyInfo(alias="dateEnd", format="iso8601")] """End of the date range (inclusive).""" - date_range: Annotated[ - List[ - Literal[ - "1d", - "2d", - "7d", - "14d", - "28d", - "12w", - "24w", - "52w", - "1dControl", - "2dControl", - "7dControl", - "14dControl", - "28dControl", - "12wControl", - "24wControl", - ] - ], - PropertyInfo(alias="dateRange"), - ] + date_range: Annotated[List[str], PropertyInfo(alias="dateRange")] """ For example, use `7d` and `7dControl` to compare this week with the previous week. Use this parameter or set specific start and end dates (`dateStart` and diff --git a/tests/api_resources/radar/as112/test_summary.py b/tests/api_resources/radar/as112/test_summary.py index 13d0bdbf800..3778d9fba55 100644 --- a/tests/api_resources/radar/as112/test_summary.py +++ b/tests/api_resources/radar/as112/test_summary.py @@ -40,7 +40,7 @@ def test_method_dnssec_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -87,7 +87,7 @@ def test_method_edns_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -134,7 +134,7 @@ def test_method_ip_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -181,7 +181,7 @@ def test_method_protocol_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -228,7 +228,7 @@ def test_method_query_type_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -275,7 +275,7 @@ def test_method_response_codes_with_all_params(self, client: Cloudflare) -> None parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -326,7 +326,7 @@ async def test_method_dnssec_with_all_params(self, async_client: AsyncCloudflare parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -373,7 +373,7 @@ async def test_method_edns_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -420,7 +420,7 @@ async def test_method_ip_version_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -467,7 +467,7 @@ async def test_method_protocol_with_all_params(self, async_client: AsyncCloudfla parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -514,7 +514,7 @@ async def test_method_query_type_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -561,7 +561,7 @@ async def test_method_response_codes_with_all_params(self, async_client: AsyncCl parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/as112/test_timeseries_groups.py b/tests/api_resources/radar/as112/test_timeseries_groups.py index 38ec1d21891..fd9b0c69959 100644 --- a/tests/api_resources/radar/as112/test_timeseries_groups.py +++ b/tests/api_resources/radar/as112/test_timeseries_groups.py @@ -41,7 +41,7 @@ def test_method_dnssec_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -89,7 +89,7 @@ def test_method_edns_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -137,7 +137,7 @@ def test_method_ip_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -185,7 +185,7 @@ def test_method_protocol_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -233,7 +233,7 @@ def test_method_query_type_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -281,7 +281,7 @@ def test_method_response_codes_with_all_params(self, client: Cloudflare) -> None parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -333,7 +333,7 @@ async def test_method_dnssec_with_all_params(self, async_client: AsyncCloudflare parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -381,7 +381,7 @@ async def test_method_edns_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -429,7 +429,7 @@ async def test_method_ip_version_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -477,7 +477,7 @@ async def test_method_protocol_with_all_params(self, async_client: AsyncCloudfla parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -525,7 +525,7 @@ async def test_method_query_type_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -573,7 +573,7 @@ async def test_method_response_codes_with_all_params(self, async_client: AsyncCl parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/as112/test_top.py b/tests/api_resources/radar/as112/test_top.py index 81ffe5314d8..43a3546a5de 100644 --- a/tests/api_resources/radar/as112/test_top.py +++ b/tests/api_resources/radar/as112/test_top.py @@ -41,7 +41,7 @@ def test_method_dnssec_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -96,7 +96,7 @@ def test_method_edns_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -151,7 +151,7 @@ def test_method_ip_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -203,7 +203,7 @@ def test_method_locations_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -258,7 +258,7 @@ async def test_method_dnssec_with_all_params(self, async_client: AsyncCloudflare parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -313,7 +313,7 @@ async def test_method_edns_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -368,7 +368,7 @@ async def test_method_ip_version_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -420,7 +420,7 @@ async def test_method_locations_with_all_params(self, async_client: AsyncCloudfl parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/attacks/layer3/test_summary.py b/tests/api_resources/radar/attacks/layer3/test_summary.py index 4b0fa3e5290..0e77b0b96fb 100644 --- a/tests/api_resources/radar/attacks/layer3/test_summary.py +++ b/tests/api_resources/radar/attacks/layer3/test_summary.py @@ -39,7 +39,7 @@ def test_method_bitrate_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -88,7 +88,7 @@ def test_method_duration_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -138,7 +138,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -184,7 +184,7 @@ def test_method_ip_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -232,7 +232,7 @@ def test_method_protocol_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -280,7 +280,7 @@ def test_method_vector_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -333,7 +333,7 @@ async def test_method_bitrate_with_all_params(self, async_client: AsyncCloudflar parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -382,7 +382,7 @@ async def test_method_duration_with_all_params(self, async_client: AsyncCloudfla parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -432,7 +432,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -478,7 +478,7 @@ async def test_method_ip_version_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -526,7 +526,7 @@ async def test_method_protocol_with_all_params(self, async_client: AsyncCloudfla parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -574,7 +574,7 @@ async def test_method_vector_with_all_params(self, async_client: AsyncCloudflare parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/attacks/layer3/test_timeseries_groups.py b/tests/api_resources/radar/attacks/layer3/test_timeseries_groups.py index 1dd04286948..7463f67dbf3 100644 --- a/tests/api_resources/radar/attacks/layer3/test_timeseries_groups.py +++ b/tests/api_resources/radar/attacks/layer3/test_timeseries_groups.py @@ -42,7 +42,7 @@ def test_method_bitrate_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -93,7 +93,7 @@ def test_method_duration_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -145,7 +145,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -192,7 +192,7 @@ def test_method_industry_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -205,6 +205,7 @@ def test_method_industry_with_all_params(self, client: Cloudflare) -> None: location=["string", "string", "string"], name=["string", "string", "string"], normalization="PERCENTAGE", + protocol=["UDP", "TCP", "ICMP"], ) assert_matches_type(TimeseriesGroupIndustryResponse, timeseries_group, path=["response"]) @@ -243,7 +244,7 @@ def test_method_ip_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -293,7 +294,7 @@ def test_method_protocol_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -343,7 +344,7 @@ def test_method_vector_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -395,7 +396,7 @@ def test_method_vertical_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -408,6 +409,7 @@ def test_method_vertical_with_all_params(self, client: Cloudflare) -> None: location=["string", "string", "string"], name=["string", "string", "string"], normalization="PERCENTAGE", + protocol=["UDP", "TCP", "ICMP"], ) assert_matches_type(TimeseriesGroupVerticalResponse, timeseries_group, path=["response"]) @@ -450,7 +452,7 @@ async def test_method_bitrate_with_all_params(self, async_client: AsyncCloudflar parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -501,7 +503,7 @@ async def test_method_duration_with_all_params(self, async_client: AsyncCloudfla parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -553,7 +555,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -600,7 +602,7 @@ async def test_method_industry_with_all_params(self, async_client: AsyncCloudfla parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -613,6 +615,7 @@ async def test_method_industry_with_all_params(self, async_client: AsyncCloudfla location=["string", "string", "string"], name=["string", "string", "string"], normalization="PERCENTAGE", + protocol=["UDP", "TCP", "ICMP"], ) assert_matches_type(TimeseriesGroupIndustryResponse, timeseries_group, path=["response"]) @@ -651,7 +654,7 @@ async def test_method_ip_version_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -701,7 +704,7 @@ async def test_method_protocol_with_all_params(self, async_client: AsyncCloudfla parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -751,7 +754,7 @@ async def test_method_vector_with_all_params(self, async_client: AsyncCloudflare parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -803,7 +806,7 @@ async def test_method_vertical_with_all_params(self, async_client: AsyncCloudfla parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -816,6 +819,7 @@ async def test_method_vertical_with_all_params(self, async_client: AsyncCloudfla location=["string", "string", "string"], name=["string", "string", "string"], normalization="PERCENTAGE", + protocol=["UDP", "TCP", "ICMP"], ) assert_matches_type(TimeseriesGroupVerticalResponse, timeseries_group, path=["response"]) diff --git a/tests/api_resources/radar/attacks/layer3/test_top.py b/tests/api_resources/radar/attacks/layer3/test_top.py index 923af0d31f9..696f58eafed 100644 --- a/tests/api_resources/radar/attacks/layer3/test_top.py +++ b/tests/api_resources/radar/attacks/layer3/test_top.py @@ -36,7 +36,7 @@ def test_method_attacks_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -88,7 +88,7 @@ def test_method_industry_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -137,7 +137,7 @@ def test_method_vertical_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -190,7 +190,7 @@ async def test_method_attacks_with_all_params(self, async_client: AsyncCloudflar parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -242,7 +242,7 @@ async def test_method_industry_with_all_params(self, async_client: AsyncCloudfla parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -291,7 +291,7 @@ async def test_method_vertical_with_all_params(self, async_client: AsyncCloudfla parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/attacks/layer3/top/test_locations.py b/tests/api_resources/radar/attacks/layer3/top/test_locations.py index f1848af7b27..a0e56083ec6 100644 --- a/tests/api_resources/radar/attacks/layer3/top/test_locations.py +++ b/tests/api_resources/radar/attacks/layer3/top/test_locations.py @@ -35,7 +35,7 @@ def test_method_origin_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -84,7 +84,7 @@ def test_method_target_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -137,7 +137,7 @@ async def test_method_origin_with_all_params(self, async_client: AsyncCloudflare parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -186,7 +186,7 @@ async def test_method_target_with_all_params(self, async_client: AsyncCloudflare parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/attacks/layer7/test_summary.py b/tests/api_resources/radar/attacks/layer7/test_summary.py index c8f4159e08c..b94343f2fa0 100644 --- a/tests/api_resources/radar/attacks/layer7/test_summary.py +++ b/tests/api_resources/radar/attacks/layer7/test_summary.py @@ -40,7 +40,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -87,7 +87,7 @@ def test_method_http_method_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -137,7 +137,7 @@ def test_method_http_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -187,7 +187,7 @@ def test_method_ip_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -237,7 +237,7 @@ def test_method_managed_rules_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -288,7 +288,7 @@ def test_method_mitigation_product_with_all_params(self, client: Cloudflare) -> parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -342,7 +342,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -389,7 +389,7 @@ async def test_method_http_method_with_all_params(self, async_client: AsyncCloud parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -439,7 +439,7 @@ async def test_method_http_version_with_all_params(self, async_client: AsyncClou parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -489,7 +489,7 @@ async def test_method_ip_version_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -539,7 +539,7 @@ async def test_method_managed_rules_with_all_params(self, async_client: AsyncClo parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -590,7 +590,7 @@ async def test_method_mitigation_product_with_all_params(self, async_client: Asy parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/attacks/layer7/test_timeseries_groups.py b/tests/api_resources/radar/attacks/layer7/test_timeseries_groups.py index 99f8be5a802..31dcbe0283b 100644 --- a/tests/api_resources/radar/attacks/layer7/test_timeseries_groups.py +++ b/tests/api_resources/radar/attacks/layer7/test_timeseries_groups.py @@ -43,7 +43,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -91,7 +91,7 @@ def test_method_http_method_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -143,7 +143,7 @@ def test_method_http_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -195,7 +195,7 @@ def test_method_industry_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -249,7 +249,7 @@ def test_method_ip_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -301,7 +301,7 @@ def test_method_managed_rules_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -354,7 +354,7 @@ def test_method_mitigation_product_with_all_params(self, client: Cloudflare) -> parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -406,7 +406,7 @@ def test_method_vertical_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -464,7 +464,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -512,7 +512,7 @@ async def test_method_http_method_with_all_params(self, async_client: AsyncCloud parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -564,7 +564,7 @@ async def test_method_http_version_with_all_params(self, async_client: AsyncClou parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -616,7 +616,7 @@ async def test_method_industry_with_all_params(self, async_client: AsyncCloudfla parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -670,7 +670,7 @@ async def test_method_ip_version_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -722,7 +722,7 @@ async def test_method_managed_rules_with_all_params(self, async_client: AsyncClo parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -775,7 +775,7 @@ async def test_method_mitigation_product_with_all_params(self, async_client: Asy parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -827,7 +827,7 @@ async def test_method_vertical_with_all_params(self, async_client: AsyncCloudfla parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/attacks/layer7/test_top.py b/tests/api_resources/radar/attacks/layer7/test_top.py index 36016747df4..57fbfb1852d 100644 --- a/tests/api_resources/radar/attacks/layer7/test_top.py +++ b/tests/api_resources/radar/attacks/layer7/test_top.py @@ -37,18 +37,22 @@ def test_method_attacks_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], format="JSON", + http_method=["GET", "POST", "DELETE"], + http_version=["HTTPv1", "HTTPv2", "HTTPv3"], + ip_version=["IPv4", "IPv6"], limit=5, limit_direction="ORIGIN", limit_per_location=10, location=["string", "string", "string"], magnitude="MITIGATED_REQUESTS", + mitigation_product=["DDOS", "WAF", "BOT_MANAGEMENT"], name=["string", "string", "string"], normalization="PERCENTAGE", ) @@ -89,15 +93,19 @@ def test_method_industry_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], format="JSON", + http_method=["GET", "POST", "DELETE"], + http_version=["HTTPv1", "HTTPv2", "HTTPv3"], + ip_version=["IPv4", "IPv6"], limit=5, location=["string", "string", "string"], + mitigation_product=["DDOS", "WAF", "BOT_MANAGEMENT"], name=["string", "string", "string"], ) assert_matches_type(TopIndustryResponse, top, path=["response"]) @@ -137,15 +145,19 @@ def test_method_vertical_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], format="JSON", + http_method=["GET", "POST", "DELETE"], + http_version=["HTTPv1", "HTTPv2", "HTTPv3"], + ip_version=["IPv4", "IPv6"], limit=5, location=["string", "string", "string"], + mitigation_product=["DDOS", "WAF", "BOT_MANAGEMENT"], name=["string", "string", "string"], ) assert_matches_type(TopVerticalResponse, top, path=["response"]) @@ -189,18 +201,22 @@ async def test_method_attacks_with_all_params(self, async_client: AsyncCloudflar parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], format="JSON", + http_method=["GET", "POST", "DELETE"], + http_version=["HTTPv1", "HTTPv2", "HTTPv3"], + ip_version=["IPv4", "IPv6"], limit=5, limit_direction="ORIGIN", limit_per_location=10, location=["string", "string", "string"], magnitude="MITIGATED_REQUESTS", + mitigation_product=["DDOS", "WAF", "BOT_MANAGEMENT"], name=["string", "string", "string"], normalization="PERCENTAGE", ) @@ -241,15 +257,19 @@ async def test_method_industry_with_all_params(self, async_client: AsyncCloudfla parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], format="JSON", + http_method=["GET", "POST", "DELETE"], + http_version=["HTTPv1", "HTTPv2", "HTTPv3"], + ip_version=["IPv4", "IPv6"], limit=5, location=["string", "string", "string"], + mitigation_product=["DDOS", "WAF", "BOT_MANAGEMENT"], name=["string", "string", "string"], ) assert_matches_type(TopIndustryResponse, top, path=["response"]) @@ -289,15 +309,19 @@ async def test_method_vertical_with_all_params(self, async_client: AsyncCloudfla parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], format="JSON", + http_method=["GET", "POST", "DELETE"], + http_version=["HTTPv1", "HTTPv2", "HTTPv3"], + ip_version=["IPv4", "IPv6"], limit=5, location=["string", "string", "string"], + mitigation_product=["DDOS", "WAF", "BOT_MANAGEMENT"], name=["string", "string", "string"], ) assert_matches_type(TopVerticalResponse, top, path=["response"]) diff --git a/tests/api_resources/radar/attacks/layer7/top/test_ases.py b/tests/api_resources/radar/attacks/layer7/top/test_ases.py index afa9610bd1a..3eac5b1b0fc 100644 --- a/tests/api_resources/radar/attacks/layer7/top/test_ases.py +++ b/tests/api_resources/radar/attacks/layer7/top/test_ases.py @@ -32,15 +32,19 @@ def test_method_origin_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], format="JSON", + http_method=["GET", "POST", "DELETE"], + http_version=["HTTPv1", "HTTPv2", "HTTPv3"], + ip_version=["IPv4", "IPv6"], limit=5, location=["string", "string", "string"], + mitigation_product=["DDOS", "WAF", "BOT_MANAGEMENT"], name=["string", "string", "string"], ) assert_matches_type(AseOriginResponse, ase, path=["response"]) @@ -83,15 +87,19 @@ async def test_method_origin_with_all_params(self, async_client: AsyncCloudflare parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], format="JSON", + http_method=["GET", "POST", "DELETE"], + http_version=["HTTPv1", "HTTPv2", "HTTPv3"], + ip_version=["IPv4", "IPv6"], limit=5, location=["string", "string", "string"], + mitigation_product=["DDOS", "WAF", "BOT_MANAGEMENT"], name=["string", "string", "string"], ) assert_matches_type(AseOriginResponse, ase, path=["response"]) diff --git a/tests/api_resources/radar/attacks/layer7/top/test_locations.py b/tests/api_resources/radar/attacks/layer7/top/test_locations.py index e1482281e22..9dbd50722a2 100644 --- a/tests/api_resources/radar/attacks/layer7/top/test_locations.py +++ b/tests/api_resources/radar/attacks/layer7/top/test_locations.py @@ -36,14 +36,18 @@ def test_method_origin_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], format="JSON", + http_method=["GET", "POST", "DELETE"], + http_version=["HTTPv1", "HTTPv2", "HTTPv3"], + ip_version=["IPv4", "IPv6"], limit=5, + mitigation_product=["DDOS", "WAF", "BOT_MANAGEMENT"], name=["string", "string", "string"], ) assert_matches_type(LocationOriginResponse, location, path=["response"]) @@ -82,14 +86,18 @@ def test_method_target_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], format="JSON", + http_method=["GET", "POST", "DELETE"], + http_version=["HTTPv1", "HTTPv2", "HTTPv3"], + ip_version=["IPv4", "IPv6"], limit=5, + mitigation_product=["DDOS", "WAF", "BOT_MANAGEMENT"], name=["string", "string", "string"], ) assert_matches_type(LocationTargetResponse, location, path=["response"]) @@ -133,14 +141,18 @@ async def test_method_origin_with_all_params(self, async_client: AsyncCloudflare parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], format="JSON", + http_method=["GET", "POST", "DELETE"], + http_version=["HTTPv1", "HTTPv2", "HTTPv3"], + ip_version=["IPv4", "IPv6"], limit=5, + mitigation_product=["DDOS", "WAF", "BOT_MANAGEMENT"], name=["string", "string", "string"], ) assert_matches_type(LocationOriginResponse, location, path=["response"]) @@ -179,14 +191,18 @@ async def test_method_target_with_all_params(self, async_client: AsyncCloudflare parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], format="JSON", + http_method=["GET", "POST", "DELETE"], + http_version=["HTTPv1", "HTTPv2", "HTTPv3"], + ip_version=["IPv4", "IPv6"], limit=5, + mitigation_product=["DDOS", "WAF", "BOT_MANAGEMENT"], name=["string", "string", "string"], ) assert_matches_type(LocationTargetResponse, location, path=["response"]) diff --git a/tests/api_resources/radar/attacks/test_layer3.py b/tests/api_resources/radar/attacks/test_layer3.py index bdcdabdb226..b5284733f5b 100644 --- a/tests/api_resources/radar/attacks/test_layer3.py +++ b/tests/api_resources/radar/attacks/test_layer3.py @@ -34,7 +34,7 @@ def test_method_timeseries_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -91,7 +91,7 @@ async def test_method_timeseries_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/attacks/test_layer7.py b/tests/api_resources/radar/attacks/test_layer7.py index 5f4c4fbdb19..b5fab2f2768 100644 --- a/tests/api_resources/radar/attacks/test_layer7.py +++ b/tests/api_resources/radar/attacks/test_layer7.py @@ -35,14 +35,18 @@ def test_method_timeseries_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], format="JSON", + http_method=["GET", "POST", "DELETE"], + http_version=["HTTPv1", "HTTPv2", "HTTPv3"], + ip_version=["IPv4", "IPv6"], location=["string", "string", "string"], + mitigation_product=["DDOS", "WAF", "BOT_MANAGEMENT"], name=["string", "string", "string"], normalization="MIN0_MAX", ) @@ -89,14 +93,18 @@ async def test_method_timeseries_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], format="JSON", + http_method=["GET", "POST", "DELETE"], + http_version=["HTTPv1", "HTTPv2", "HTTPv3"], + ip_version=["IPv4", "IPv6"], location=["string", "string", "string"], + mitigation_product=["DDOS", "WAF", "BOT_MANAGEMENT"], name=["string", "string", "string"], normalization="MIN0_MAX", ) diff --git a/tests/api_resources/radar/bgp/test_top.py b/tests/api_resources/radar/bgp/test_top.py index aabb2c05533..efd3d739ed2 100644 --- a/tests/api_resources/radar/bgp/test_top.py +++ b/tests/api_resources/radar/bgp/test_top.py @@ -32,7 +32,7 @@ def test_method_prefixes_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -83,7 +83,7 @@ async def test_method_prefixes_with_all_params(self, async_client: AsyncCloudfla parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/bgp/top/test_ases.py b/tests/api_resources/radar/bgp/top/test_ases.py index b9e15f5e751..da303ce9b72 100644 --- a/tests/api_resources/radar/bgp/top/test_ases.py +++ b/tests/api_resources/radar/bgp/top/test_ases.py @@ -32,7 +32,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -137,7 +137,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/dns/test_top.py b/tests/api_resources/radar/dns/test_top.py index f9c7f770b64..b202d6868f9 100644 --- a/tests/api_resources/radar/dns/test_top.py +++ b/tests/api_resources/radar/dns/test_top.py @@ -36,7 +36,7 @@ def test_method_ases_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -91,7 +91,7 @@ def test_method_locations_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -150,7 +150,7 @@ async def test_method_ases_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -205,7 +205,7 @@ async def test_method_locations_with_all_params(self, async_client: AsyncCloudfl parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/email/routing/test_summary.py b/tests/api_resources/radar/email/routing/test_summary.py index 23fa3d37588..ec3ee1bd774 100644 --- a/tests/api_resources/radar/email/routing/test_summary.py +++ b/tests/api_resources/radar/email/routing/test_summary.py @@ -38,7 +38,7 @@ def test_method_arc_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -88,7 +88,7 @@ def test_method_dkim_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -137,7 +137,7 @@ def test_method_dmarc_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -186,7 +186,7 @@ def test_method_encrypted_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -235,7 +235,7 @@ def test_method_ip_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -284,7 +284,7 @@ def test_method_spf_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -336,7 +336,7 @@ async def test_method_arc_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -386,7 +386,7 @@ async def test_method_dkim_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -435,7 +435,7 @@ async def test_method_dmarc_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -484,7 +484,7 @@ async def test_method_encrypted_with_all_params(self, async_client: AsyncCloudfl parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -533,7 +533,7 @@ async def test_method_ip_version_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -582,7 +582,7 @@ async def test_method_spf_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/email/routing/test_timeseries_groups.py b/tests/api_resources/radar/email/routing/test_timeseries_groups.py index c75e3da7701..ea7f67c70a0 100644 --- a/tests/api_resources/radar/email/routing/test_timeseries_groups.py +++ b/tests/api_resources/radar/email/routing/test_timeseries_groups.py @@ -39,7 +39,7 @@ def test_method_arc_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -90,7 +90,7 @@ def test_method_dkim_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -140,7 +140,7 @@ def test_method_dmarc_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -190,7 +190,7 @@ def test_method_encrypted_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -240,7 +240,7 @@ def test_method_ip_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -290,7 +290,7 @@ def test_method_spf_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -343,7 +343,7 @@ async def test_method_arc_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -394,7 +394,7 @@ async def test_method_dkim_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -444,7 +444,7 @@ async def test_method_dmarc_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -494,7 +494,7 @@ async def test_method_encrypted_with_all_params(self, async_client: AsyncCloudfl parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -544,7 +544,7 @@ async def test_method_ip_version_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -594,7 +594,7 @@ async def test_method_spf_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/email/security/test_summary.py b/tests/api_resources/radar/email/security/test_summary.py index 4fb28b76274..c46974d06b0 100644 --- a/tests/api_resources/radar/email/security/test_summary.py +++ b/tests/api_resources/radar/email/security/test_summary.py @@ -41,7 +41,7 @@ def test_method_arc_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -90,7 +90,7 @@ def test_method_dkim_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -138,7 +138,7 @@ def test_method_dmarc_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -186,7 +186,7 @@ def test_method_malicious_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -235,7 +235,7 @@ def test_method_spam_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -284,7 +284,7 @@ def test_method_spf_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -332,7 +332,7 @@ def test_method_spoof_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -381,7 +381,7 @@ def test_method_threat_category_with_all_params(self, client: Cloudflare) -> Non parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -430,7 +430,7 @@ def test_method_tls_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -481,7 +481,7 @@ async def test_method_arc_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -530,7 +530,7 @@ async def test_method_dkim_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -578,7 +578,7 @@ async def test_method_dmarc_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -626,7 +626,7 @@ async def test_method_malicious_with_all_params(self, async_client: AsyncCloudfl parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -675,7 +675,7 @@ async def test_method_spam_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -724,7 +724,7 @@ async def test_method_spf_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -772,7 +772,7 @@ async def test_method_spoof_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -821,7 +821,7 @@ async def test_method_threat_category_with_all_params(self, async_client: AsyncC parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -870,7 +870,7 @@ async def test_method_tls_version_with_all_params(self, async_client: AsyncCloud parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/email/security/test_timeseries_groups.py b/tests/api_resources/radar/email/security/test_timeseries_groups.py index b9b4674e1e2..a917102ae45 100644 --- a/tests/api_resources/radar/email/security/test_timeseries_groups.py +++ b/tests/api_resources/radar/email/security/test_timeseries_groups.py @@ -42,7 +42,7 @@ def test_method_arc_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -92,7 +92,7 @@ def test_method_dkim_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -141,7 +141,7 @@ def test_method_dmarc_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -190,7 +190,7 @@ def test_method_malicious_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -240,7 +240,7 @@ def test_method_spam_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -290,7 +290,7 @@ def test_method_spf_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -339,7 +339,7 @@ def test_method_spoof_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -389,7 +389,7 @@ def test_method_threat_category_with_all_params(self, client: Cloudflare) -> Non parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -439,7 +439,7 @@ def test_method_tls_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -491,7 +491,7 @@ async def test_method_arc_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -541,7 +541,7 @@ async def test_method_dkim_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -590,7 +590,7 @@ async def test_method_dmarc_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -639,7 +639,7 @@ async def test_method_malicious_with_all_params(self, async_client: AsyncCloudfl parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -689,7 +689,7 @@ async def test_method_spam_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -739,7 +739,7 @@ async def test_method_spf_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -788,7 +788,7 @@ async def test_method_spoof_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -838,7 +838,7 @@ async def test_method_threat_category_with_all_params(self, async_client: AsyncC parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -888,7 +888,7 @@ async def test_method_tls_version_with_all_params(self, async_client: AsyncCloud parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/email/security/top/test_tlds.py b/tests/api_resources/radar/email/security/top/test_tlds.py index f0307596a1a..fb71286f8f9 100644 --- a/tests/api_resources/radar/email/security/top/test_tlds.py +++ b/tests/api_resources/radar/email/security/top/test_tlds.py @@ -32,7 +32,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -87,7 +87,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/email/security/top/tlds/test_malicious.py b/tests/api_resources/radar/email/security/top/tlds/test_malicious.py index 290d8768747..52b80c305fa 100644 --- a/tests/api_resources/radar/email/security/top/tlds/test_malicious.py +++ b/tests/api_resources/radar/email/security/top/tlds/test_malicious.py @@ -35,7 +35,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -97,7 +97,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/email/security/top/tlds/test_spam.py b/tests/api_resources/radar/email/security/top/tlds/test_spam.py index 4991fa622eb..b1d72e3f234 100644 --- a/tests/api_resources/radar/email/security/top/tlds/test_spam.py +++ b/tests/api_resources/radar/email/security/top/tlds/test_spam.py @@ -35,7 +35,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -97,7 +97,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/email/security/top/tlds/test_spoof.py b/tests/api_resources/radar/email/security/top/tlds/test_spoof.py index 3800432f585..e18cd2bc350 100644 --- a/tests/api_resources/radar/email/security/top/tlds/test_spoof.py +++ b/tests/api_resources/radar/email/security/top/tlds/test_spoof.py @@ -35,7 +35,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -97,7 +97,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/ases/test_bot_class.py b/tests/api_resources/radar/http/ases/test_bot_class.py index 298efb20286..564e181cc75 100644 --- a/tests/api_resources/radar/http/ases/test_bot_class.py +++ b/tests/api_resources/radar/http/ases/test_bot_class.py @@ -37,7 +37,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -103,7 +103,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/ases/test_browser_family.py b/tests/api_resources/radar/http/ases/test_browser_family.py index 2de13ca3b67..e518c1a525c 100644 --- a/tests/api_resources/radar/http/ases/test_browser_family.py +++ b/tests/api_resources/radar/http/ases/test_browser_family.py @@ -37,7 +37,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -103,7 +103,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/ases/test_device_type.py b/tests/api_resources/radar/http/ases/test_device_type.py index 6226975cd88..18a6ccfcaa8 100644 --- a/tests/api_resources/radar/http/ases/test_device_type.py +++ b/tests/api_resources/radar/http/ases/test_device_type.py @@ -38,7 +38,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -104,7 +104,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/ases/test_http_method.py b/tests/api_resources/radar/http/ases/test_http_method.py index 743ab8b7787..b045223539b 100644 --- a/tests/api_resources/radar/http/ases/test_http_method.py +++ b/tests/api_resources/radar/http/ases/test_http_method.py @@ -38,7 +38,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -104,7 +104,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/ases/test_http_protocol.py b/tests/api_resources/radar/http/ases/test_http_protocol.py index 728e7358ecb..b13753a4caf 100644 --- a/tests/api_resources/radar/http/ases/test_http_protocol.py +++ b/tests/api_resources/radar/http/ases/test_http_protocol.py @@ -38,7 +38,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -103,7 +103,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/ases/test_ip_version.py b/tests/api_resources/radar/http/ases/test_ip_version.py index 7cc1f35beb9..3e16cb9c9e7 100644 --- a/tests/api_resources/radar/http/ases/test_ip_version.py +++ b/tests/api_resources/radar/http/ases/test_ip_version.py @@ -38,7 +38,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -104,7 +104,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/ases/test_os.py b/tests/api_resources/radar/http/ases/test_os.py index 6dd25123783..c0e46c14ef3 100644 --- a/tests/api_resources/radar/http/ases/test_os.py +++ b/tests/api_resources/radar/http/ases/test_os.py @@ -38,7 +38,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -104,7 +104,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/ases/test_tls_version.py b/tests/api_resources/radar/http/ases/test_tls_version.py index b7afb152fa9..68e968ef510 100644 --- a/tests/api_resources/radar/http/ases/test_tls_version.py +++ b/tests/api_resources/radar/http/ases/test_tls_version.py @@ -38,7 +38,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -104,7 +104,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/locations/test_bot_class.py b/tests/api_resources/radar/http/locations/test_bot_class.py index 87ccd2b18c3..93040e13c86 100644 --- a/tests/api_resources/radar/http/locations/test_bot_class.py +++ b/tests/api_resources/radar/http/locations/test_bot_class.py @@ -37,7 +37,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -103,7 +103,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/locations/test_browser_family.py b/tests/api_resources/radar/http/locations/test_browser_family.py index 7dd0326e896..b0f7066f74d 100644 --- a/tests/api_resources/radar/http/locations/test_browser_family.py +++ b/tests/api_resources/radar/http/locations/test_browser_family.py @@ -37,7 +37,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -103,7 +103,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/locations/test_device_type.py b/tests/api_resources/radar/http/locations/test_device_type.py index fb659b5b095..3f4d5e56b40 100644 --- a/tests/api_resources/radar/http/locations/test_device_type.py +++ b/tests/api_resources/radar/http/locations/test_device_type.py @@ -38,7 +38,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -104,7 +104,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/locations/test_http_method.py b/tests/api_resources/radar/http/locations/test_http_method.py index dd886aa1364..267001342c1 100644 --- a/tests/api_resources/radar/http/locations/test_http_method.py +++ b/tests/api_resources/radar/http/locations/test_http_method.py @@ -38,7 +38,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -104,7 +104,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/locations/test_http_protocol.py b/tests/api_resources/radar/http/locations/test_http_protocol.py index def70042abf..2a6a9294a30 100644 --- a/tests/api_resources/radar/http/locations/test_http_protocol.py +++ b/tests/api_resources/radar/http/locations/test_http_protocol.py @@ -38,7 +38,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -103,7 +103,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/locations/test_ip_version.py b/tests/api_resources/radar/http/locations/test_ip_version.py index 48f4a35d023..fd6c5769745 100644 --- a/tests/api_resources/radar/http/locations/test_ip_version.py +++ b/tests/api_resources/radar/http/locations/test_ip_version.py @@ -38,7 +38,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -104,7 +104,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/locations/test_os.py b/tests/api_resources/radar/http/locations/test_os.py index 4ca99262ff7..98253fe4e0f 100644 --- a/tests/api_resources/radar/http/locations/test_os.py +++ b/tests/api_resources/radar/http/locations/test_os.py @@ -38,7 +38,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -104,7 +104,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/locations/test_tls_version.py b/tests/api_resources/radar/http/locations/test_tls_version.py index 2b16a0b8c4e..10fbe092c1e 100644 --- a/tests/api_resources/radar/http/locations/test_tls_version.py +++ b/tests/api_resources/radar/http/locations/test_tls_version.py @@ -38,7 +38,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -104,7 +104,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/test_ases.py b/tests/api_resources/radar/http/test_ases.py index 623a65f1555..08c4f0dfda5 100644 --- a/tests/api_resources/radar/http/test_ases.py +++ b/tests/api_resources/radar/http/test_ases.py @@ -35,7 +35,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -95,7 +95,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/test_locations.py b/tests/api_resources/radar/http/test_locations.py index 92935c99387..e609c513b72 100644 --- a/tests/api_resources/radar/http/test_locations.py +++ b/tests/api_resources/radar/http/test_locations.py @@ -35,7 +35,7 @@ def test_method_get_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -95,7 +95,7 @@ async def test_method_get_with_all_params(self, async_client: AsyncCloudflare) - parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/test_summary.py b/tests/api_resources/radar/http/test_summary.py index fa84618dafe..8beb2d1d8cf 100644 --- a/tests/api_resources/radar/http/test_summary.py +++ b/tests/api_resources/radar/http/test_summary.py @@ -42,7 +42,7 @@ def test_method_bot_class_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -96,7 +96,7 @@ def test_method_device_type_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -149,7 +149,7 @@ def test_method_http_protocol_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -202,7 +202,7 @@ def test_method_http_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -255,7 +255,7 @@ def test_method_ip_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -308,7 +308,7 @@ def test_method_os_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -361,7 +361,7 @@ def test_method_post_quantum_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -415,7 +415,7 @@ def test_method_tls_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -471,7 +471,7 @@ async def test_method_bot_class_with_all_params(self, async_client: AsyncCloudfl parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -525,7 +525,7 @@ async def test_method_device_type_with_all_params(self, async_client: AsyncCloud parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -578,7 +578,7 @@ async def test_method_http_protocol_with_all_params(self, async_client: AsyncClo parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -631,7 +631,7 @@ async def test_method_http_version_with_all_params(self, async_client: AsyncClou parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -684,7 +684,7 @@ async def test_method_ip_version_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -737,7 +737,7 @@ async def test_method_os_with_all_params(self, async_client: AsyncCloudflare) -> parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -790,7 +790,7 @@ async def test_method_post_quantum_with_all_params(self, async_client: AsyncClou parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -844,7 +844,7 @@ async def test_method_tls_version_with_all_params(self, async_client: AsyncCloud parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/test_timeseries_groups.py b/tests/api_resources/radar/http/test_timeseries_groups.py index 0371f008171..443a3efbddd 100644 --- a/tests/api_resources/radar/http/test_timeseries_groups.py +++ b/tests/api_resources/radar/http/test_timeseries_groups.py @@ -45,7 +45,7 @@ def test_method_bot_class_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -100,7 +100,7 @@ def test_method_browser_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -156,7 +156,7 @@ def test_method_browser_family_with_all_params(self, client: Cloudflare) -> None parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -211,7 +211,7 @@ def test_method_device_type_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -265,7 +265,7 @@ def test_method_http_protocol_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -319,7 +319,7 @@ def test_method_http_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -373,7 +373,7 @@ def test_method_ip_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -427,7 +427,7 @@ def test_method_os_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -481,7 +481,7 @@ def test_method_post_quantum_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -536,7 +536,7 @@ def test_method_tls_version_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -593,7 +593,7 @@ async def test_method_bot_class_with_all_params(self, async_client: AsyncCloudfl parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -648,7 +648,7 @@ async def test_method_browser_with_all_params(self, async_client: AsyncCloudflar parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -704,7 +704,7 @@ async def test_method_browser_family_with_all_params(self, async_client: AsyncCl parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -759,7 +759,7 @@ async def test_method_device_type_with_all_params(self, async_client: AsyncCloud parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -813,7 +813,7 @@ async def test_method_http_protocol_with_all_params(self, async_client: AsyncClo parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -867,7 +867,7 @@ async def test_method_http_version_with_all_params(self, async_client: AsyncClou parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -921,7 +921,7 @@ async def test_method_ip_version_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -975,7 +975,7 @@ async def test_method_os_with_all_params(self, async_client: AsyncCloudflare) -> parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -1029,7 +1029,7 @@ async def test_method_post_quantum_with_all_params(self, async_client: AsyncClou parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -1084,7 +1084,7 @@ async def test_method_tls_version_with_all_params(self, async_client: AsyncCloud parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/http/test_top.py b/tests/api_resources/radar/http/test_top.py index db326ab01e8..a25ea7b57e8 100644 --- a/tests/api_resources/radar/http/test_top.py +++ b/tests/api_resources/radar/http/test_top.py @@ -38,7 +38,7 @@ def test_method_browser_families_with_all_params(self, client: Cloudflare) -> No parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -94,7 +94,7 @@ def test_method_browsers_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -154,7 +154,7 @@ async def test_method_browser_families_with_all_params(self, async_client: Async parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -210,7 +210,7 @@ async def test_method_browsers_with_all_params(self, async_client: AsyncCloudfla parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/netflows/test_top.py b/tests/api_resources/radar/netflows/test_top.py index becdf39761a..294063d1b87 100644 --- a/tests/api_resources/radar/netflows/test_top.py +++ b/tests/api_resources/radar/netflows/test_top.py @@ -33,7 +33,7 @@ def test_method_ases_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -81,7 +81,7 @@ def test_method_locations_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -133,7 +133,7 @@ async def test_method_ases_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -181,7 +181,7 @@ async def test_method_locations_with_all_params(self, async_client: AsyncCloudfl parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/quality/test_iqi.py b/tests/api_resources/radar/quality/test_iqi.py index 307c2f43884..52aef8e5c8e 100644 --- a/tests/api_resources/radar/quality/test_iqi.py +++ b/tests/api_resources/radar/quality/test_iqi.py @@ -39,7 +39,7 @@ def test_method_summary_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -94,7 +94,7 @@ def test_method_timeseries_groups_with_all_params(self, client: Cloudflare) -> N parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -153,7 +153,7 @@ async def test_method_summary_with_all_params(self, async_client: AsyncCloudflar parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -208,7 +208,7 @@ async def test_method_timeseries_groups_with_all_params(self, async_client: Asyn parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/test_as112.py b/tests/api_resources/radar/test_as112.py index 27c2a2c1fba..fa41b93c8a8 100644 --- a/tests/api_resources/radar/test_as112.py +++ b/tests/api_resources/radar/test_as112.py @@ -34,7 +34,7 @@ def test_method_timeseries_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -86,7 +86,7 @@ async def test_method_timeseries_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/test_bgp.py b/tests/api_resources/radar/test_bgp.py index 38030a638fc..f7feab80efb 100644 --- a/tests/api_resources/radar/test_bgp.py +++ b/tests/api_resources/radar/test_bgp.py @@ -33,7 +33,7 @@ def test_method_timeseries_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -104,7 +104,7 @@ async def test_method_timeseries_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/test_connection_tampering.py b/tests/api_resources/radar/test_connection_tampering.py index 37d3f5a9195..159469316ed 100644 --- a/tests/api_resources/radar/test_connection_tampering.py +++ b/tests/api_resources/radar/test_connection_tampering.py @@ -36,7 +36,7 @@ def test_method_summary_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -84,7 +84,7 @@ def test_method_timeseries_groups_with_all_params(self, client: Cloudflare) -> N parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -135,7 +135,7 @@ async def test_method_summary_with_all_params(self, async_client: AsyncCloudflar parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -183,7 +183,7 @@ async def test_method_timeseries_groups_with_all_params(self, async_client: Asyn parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/test_http.py b/tests/api_resources/radar/test_http.py index 4828f727a4f..a71996ed209 100644 --- a/tests/api_resources/radar/test_http.py +++ b/tests/api_resources/radar/test_http.py @@ -34,7 +34,7 @@ def test_method_timeseries_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -86,7 +86,7 @@ async def test_method_timeseries_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/test_netflows.py b/tests/api_resources/radar/test_netflows.py index 1446060257f..04df3a371fd 100644 --- a/tests/api_resources/radar/test_netflows.py +++ b/tests/api_resources/radar/test_netflows.py @@ -34,7 +34,7 @@ def test_method_timeseries_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -88,7 +88,7 @@ async def test_method_timeseries_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/test_ranking.py b/tests/api_resources/radar/test_ranking.py index 61a4def2328..5cf488f26b3 100644 --- a/tests/api_resources/radar/test_ranking.py +++ b/tests/api_resources/radar/test_ranking.py @@ -34,7 +34,7 @@ def test_method_timeseries_groups_with_all_params(self, client: Cloudflare) -> N parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -123,7 +123,7 @@ async def test_method_timeseries_groups_with_all_params(self, async_client: Asyn parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), diff --git a/tests/api_resources/radar/verified_bots/test_top.py b/tests/api_resources/radar/verified_bots/test_top.py index bfb0e175fc2..d185234e31b 100644 --- a/tests/api_resources/radar/verified_bots/test_top.py +++ b/tests/api_resources/radar/verified_bots/test_top.py @@ -36,7 +36,7 @@ def test_method_bots_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -84,7 +84,7 @@ def test_method_categories_with_all_params(self, client: Cloudflare) -> None: parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -136,7 +136,7 @@ async def test_method_bots_with_all_params(self, async_client: AsyncCloudflare) parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), @@ -184,7 +184,7 @@ async def test_method_categories_with_all_params(self, async_client: AsyncCloudf parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"), ], - date_range=["1d", "2d", "7d"], + date_range=["7d", "7d", "7d"], date_start=[ parse_datetime("2019-12-27T18:11:19.117Z"), parse_datetime("2019-12-27T18:11:19.117Z"),