diff --git a/.stats.yml b/.stats.yml index d94fc801636..7ed5ab1afb4 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 1608 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-37ecafb773b4caa17905d8a19b6c08a3b0b360da07b4dc61a0a3a171f295ef6b.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-813efabef72bc705386072e4c622a71b923275a7f992dfc6efd0aac9731e18e6.yml diff --git a/src/cloudflare/resources/radar/attacks/layer7/layer7.py b/src/cloudflare/resources/radar/attacks/layer7/layer7.py index 1c7baf6c044..e36e82388af 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/layer7.py +++ b/src/cloudflare/resources/radar/attacks/layer7/layer7.py @@ -90,12 +90,6 @@ def timeseries( *, agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, - attack: List[ - Literal[ - "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" - ] - ] - | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, date_range: List[str] | NotGiven = NOT_GIVEN, @@ -182,8 +176,6 @@ def timeseries( exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356. - attack: This field is deprecated, please use the new `mitigationProduct`. - continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -234,7 +226,6 @@ def timeseries( { "agg_interval": agg_interval, "asn": asn, - "attack": attack, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -293,12 +284,6 @@ async def timeseries( *, agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, - attack: List[ - Literal[ - "DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION" - ] - ] - | NotGiven = NOT_GIVEN, continent: List[str] | NotGiven = NOT_GIVEN, date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN, date_range: List[str] | NotGiven = NOT_GIVEN, @@ -385,8 +370,6 @@ async def timeseries( exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356. - attack: This field is deprecated, please use the new `mitigationProduct`. - continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -437,7 +420,6 @@ async def timeseries( { "agg_interval": agg_interval, "asn": asn, - "attack": attack, "continent": continent, "date_end": date_end, "date_range": date_range, diff --git a/src/cloudflare/resources/radar/attacks/layer7/top/locations.py b/src/cloudflare/resources/radar/attacks/layer7/top/locations.py index 021c164d462..259da4c9dce 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/top/locations.py +++ b/src/cloudflare/resources/radar/attacks/layer7/top/locations.py @@ -209,59 +209,6 @@ def target( 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[ - "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, - 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[ @@ -298,12 +245,6 @@ def target( format: Format in which results will be returned. - http_method: Filters results by HTTP method. - - http_version: Filters results by HTTP version. - - ip_version: Filters results by IP version (Ipv4 vs. IPv6). - limit: Limits the number of objects returned in the response. mitigation_product: Array of L7 mitigation products. @@ -332,9 +273,6 @@ 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, @@ -526,59 +464,6 @@ async def target( 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[ - "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, - 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[ @@ -615,12 +500,6 @@ async def target( format: Format in which results will be returned. - http_method: Filters results by HTTP method. - - http_version: Filters results by HTTP version. - - ip_version: Filters results by IP version (Ipv4 vs. IPv6). - limit: Limits the number of objects returned in the response. mitigation_product: Array of L7 mitigation products. @@ -649,9 +528,6 @@ 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, diff --git a/src/cloudflare/resources/radar/attacks/layer7/top/top.py b/src/cloudflare/resources/radar/attacks/layer7/top/top.py index 2db47e91bcb..a98ee2ddeab 100644 --- a/src/cloudflare/resources/radar/attacks/layer7/top/top.py +++ b/src/cloudflare/resources/radar/attacks/layer7/top/top.py @@ -84,59 +84,6 @@ def attacks( 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[ - "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, - 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, @@ -184,12 +131,6 @@ def attacks( format: Format in which results will be returned. - http_method: Filters results by HTTP method. - - http_version: Filters results by HTTP version. - - ip_version: Filters results by IP version (Ipv4 vs. IPv6). - limit: Limits the number of objects returned in the response. limit_direction: Array of attack origin/target location attack limits. Together with @@ -203,8 +144,9 @@ def attacks( locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT. - magnitude: Attack magnitude can be defined by total requests mitigated or by total zones - attacked. + magnitude: This parameter is deprecated. In the future, we will only support attack + magnitude defined by the total number of mitigated requests + (MITIGATED_REQUESTS). mitigation_product: Array of L7 mitigation products. @@ -236,9 +178,6 @@ 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, @@ -601,59 +540,6 @@ async def attacks( 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[ - "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, - 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, @@ -701,12 +587,6 @@ async def attacks( format: Format in which results will be returned. - http_method: Filters results by HTTP method. - - http_version: Filters results by HTTP version. - - ip_version: Filters results by IP version (Ipv4 vs. IPv6). - limit: Limits the number of objects returned in the response. limit_direction: Array of attack origin/target location attack limits. Together with @@ -720,8 +600,9 @@ async def attacks( locations from results. For example, `-US,PT` excludes results from the US, but includes results from PT. - magnitude: Attack magnitude can be defined by total requests mitigated or by total zones - attacked. + magnitude: This parameter is deprecated. In the future, we will only support attack + magnitude defined by the total number of mitigated requests + (MITIGATED_REQUESTS). mitigation_product: Array of L7 mitigation products. @@ -753,9 +634,6 @@ 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, diff --git a/src/cloudflare/resources/radar/datasets.py b/src/cloudflare/resources/radar/datasets.py index 29c64c23f58..a5a25f1be51 100644 --- a/src/cloudflare/resources/radar/datasets.py +++ b/src/cloudflare/resources/radar/datasets.py @@ -2,7 +2,8 @@ from __future__ import annotations -from typing import Type, cast +from typing import Type, Union, cast +from datetime import date from typing_extensions import Literal import httpx @@ -53,6 +54,7 @@ def list( self, *, dataset_type: Literal["RANKING_BUCKET", "REPORT"] | NotGiven = NOT_GIVEN, + date: Union[str, date] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, offset: int | NotGiven = NOT_GIVEN, @@ -69,6 +71,8 @@ def list( Args: dataset_type: Filters results by dataset type. + date: Filters results by the specified date. + format: Format in which results will be returned. limit: Limits the number of objects returned in the response. @@ -93,6 +97,7 @@ def list( query=maybe_transform( { "dataset_type": dataset_type, + "date": date, "format": format, "limit": limit, "offset": offset, @@ -208,6 +213,7 @@ async def list( self, *, dataset_type: Literal["RANKING_BUCKET", "REPORT"] | NotGiven = NOT_GIVEN, + date: Union[str, date] | NotGiven = NOT_GIVEN, format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN, limit: int | NotGiven = NOT_GIVEN, offset: int | NotGiven = NOT_GIVEN, @@ -224,6 +230,8 @@ async def list( Args: dataset_type: Filters results by dataset type. + date: Filters results by the specified date. + format: Format in which results will be returned. limit: Limits the number of objects returned in the response. @@ -248,6 +256,7 @@ async def list( query=await async_maybe_transform( { "dataset_type": dataset_type, + "date": date, "format": format, "limit": limit, "offset": offset, diff --git a/src/cloudflare/resources/radar/http/http.py b/src/cloudflare/resources/radar/http/http.py index 598cf160a51..42f24e50bf5 100644 --- a/src/cloudflare/resources/radar/http/http.py +++ b/src/cloudflare/resources/radar/http/http.py @@ -115,6 +115,7 @@ def timeseries( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -152,6 +153,8 @@ def timeseries( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -207,6 +210,7 @@ def timeseries( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -276,6 +280,7 @@ async def timeseries( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -313,6 +318,8 @@ async def timeseries( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -368,6 +375,7 @@ async def timeseries( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, diff --git a/src/cloudflare/resources/radar/http/summary.py b/src/cloudflare/resources/radar/http/summary.py index 395d0808e5f..1c7e9b52fd8 100644 --- a/src/cloudflare/resources/radar/http/summary.py +++ b/src/cloudflare/resources/radar/http/summary.py @@ -69,6 +69,7 @@ def bot_class( self, *, asn: List[str] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -101,6 +102,8 @@ def bot_class( exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356. + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -151,6 +154,7 @@ def bot_class( query=maybe_transform( { "asn": asn, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -177,6 +181,7 @@ def device_type( *, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -209,6 +214,8 @@ def device_type( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -258,6 +265,7 @@ def device_type( { "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -283,6 +291,7 @@ def http_protocol( *, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -315,6 +324,8 @@ def http_protocol( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -364,6 +375,7 @@ def http_protocol( { "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -389,6 +401,7 @@ def http_version( *, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -420,6 +433,8 @@ def http_version( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -469,6 +484,7 @@ def http_version( { "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -494,6 +510,7 @@ def ip_version( *, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -525,6 +542,8 @@ def ip_version( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -574,6 +593,7 @@ def ip_version( { "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -599,6 +619,7 @@ def os( *, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -630,6 +651,8 @@ def os( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -679,6 +702,7 @@ def os( { "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -704,6 +728,7 @@ def post_quantum( *, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -736,6 +761,8 @@ def post_quantum( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -787,6 +814,7 @@ def post_quantum( { "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -813,6 +841,7 @@ def tls_version( *, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -844,6 +873,8 @@ def tls_version( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -893,6 +924,7 @@ def tls_version( { "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -938,6 +970,7 @@ async def bot_class( self, *, asn: List[str] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -970,6 +1003,8 @@ async def bot_class( exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356. + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -1020,6 +1055,7 @@ async def bot_class( query=await async_maybe_transform( { "asn": asn, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -1046,6 +1082,7 @@ async def device_type( *, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -1078,6 +1115,8 @@ async def device_type( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -1127,6 +1166,7 @@ async def device_type( { "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -1152,6 +1192,7 @@ async def http_protocol( *, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -1184,6 +1225,8 @@ async def http_protocol( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -1233,6 +1276,7 @@ async def http_protocol( { "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -1258,6 +1302,7 @@ async def http_version( *, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -1289,6 +1334,8 @@ async def http_version( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -1338,6 +1385,7 @@ async def http_version( { "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -1363,6 +1411,7 @@ async def ip_version( *, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -1394,6 +1443,8 @@ async def ip_version( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -1443,6 +1494,7 @@ async def ip_version( { "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -1468,6 +1520,7 @@ async def os( *, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -1499,6 +1552,8 @@ async def os( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -1548,6 +1603,7 @@ async def os( { "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -1573,6 +1629,7 @@ async def post_quantum( *, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -1605,6 +1662,8 @@ async def post_quantum( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -1656,6 +1715,7 @@ async def post_quantum( { "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -1682,6 +1742,7 @@ async def tls_version( *, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -1713,6 +1774,8 @@ async def tls_version( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -1762,6 +1825,7 @@ async def tls_version( { "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, diff --git a/src/cloudflare/resources/radar/http/timeseries_groups.py b/src/cloudflare/resources/radar/http/timeseries_groups.py index 72a67be4c13..0f8e6fb9d2f 100644 --- a/src/cloudflare/resources/radar/http/timeseries_groups.py +++ b/src/cloudflare/resources/radar/http/timeseries_groups.py @@ -74,6 +74,7 @@ def bot_class( *, agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -109,6 +110,8 @@ def bot_class( exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356. + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -160,6 +163,7 @@ def bot_class( { "agg_interval": agg_interval, "asn": asn, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -187,6 +191,7 @@ def browser( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -224,6 +229,8 @@ def browser( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -281,6 +288,7 @@ def browser( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -433,6 +441,7 @@ def device_type( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -468,6 +477,8 @@ def device_type( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -518,6 +529,7 @@ def device_type( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -544,6 +556,7 @@ def http_protocol( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -581,6 +594,8 @@ def http_protocol( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -631,6 +646,7 @@ def http_protocol( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -657,6 +673,7 @@ def http_version( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -692,6 +709,8 @@ def http_version( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -742,6 +761,7 @@ def http_version( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -768,6 +788,7 @@ def ip_version( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -803,6 +824,8 @@ def ip_version( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -853,6 +876,7 @@ def ip_version( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -879,6 +903,7 @@ def os( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -913,6 +938,8 @@ def os( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -963,6 +990,7 @@ def os( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -989,6 +1017,7 @@ def post_quantum( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -1025,6 +1054,8 @@ def post_quantum( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -1077,6 +1108,7 @@ def post_quantum( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -1104,6 +1136,7 @@ def tls_version( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -1139,6 +1172,8 @@ def tls_version( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -1189,6 +1224,7 @@ def tls_version( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -1235,6 +1271,7 @@ async def bot_class( *, agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -1270,6 +1307,8 @@ async def bot_class( exclude ASNs from results. For example, `-174, 3356` excludes results from AS174, but includes results from AS3356. + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -1321,6 +1360,7 @@ async def bot_class( { "agg_interval": agg_interval, "asn": asn, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -1348,6 +1388,7 @@ async def browser( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -1385,6 +1426,8 @@ async def browser( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -1442,6 +1485,7 @@ async def browser( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -1594,6 +1638,7 @@ async def device_type( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -1629,6 +1674,8 @@ async def device_type( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -1679,6 +1726,7 @@ async def device_type( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -1705,6 +1753,7 @@ async def http_protocol( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -1742,6 +1791,8 @@ async def http_protocol( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -1792,6 +1843,7 @@ async def http_protocol( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -1818,6 +1870,7 @@ async def http_version( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -1853,6 +1906,8 @@ async def http_version( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -1903,6 +1958,7 @@ async def http_version( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -1929,6 +1985,7 @@ async def ip_version( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -1964,6 +2021,8 @@ async def ip_version( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -2014,6 +2073,7 @@ async def ip_version( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -2040,6 +2100,7 @@ async def os( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -2074,6 +2135,8 @@ async def os( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -2124,6 +2187,7 @@ async def os( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -2150,6 +2214,7 @@ async def post_quantum( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -2186,6 +2251,8 @@ async def post_quantum( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -2238,6 +2305,7 @@ async def post_quantum( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, @@ -2265,6 +2333,7 @@ async def tls_version( agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN, asn: List[str] | NotGiven = NOT_GIVEN, bot_class: List[Literal["LIKELY_AUTOMATED", "LIKELY_HUMAN"]] | NotGiven = NOT_GIVEN, + 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[str] | NotGiven = NOT_GIVEN, @@ -2300,6 +2369,8 @@ async def tls_version( bot_class: Filters results by bot class. Refer to [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). + browser_family: Filters results by browser family. + continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to exclude continents from results. For example, `-EU,NA` excludes results from EU, but includes results from NA. @@ -2350,6 +2421,7 @@ async def tls_version( "agg_interval": agg_interval, "asn": asn, "bot_class": bot_class, + "browser_family": browser_family, "continent": continent, "date_end": date_end, "date_range": date_range, diff --git a/src/cloudflare/resources/radar/ranking/domain.py b/src/cloudflare/resources/radar/ranking/domain.py index ad1627be374..713341fbacf 100644 --- a/src/cloudflare/resources/radar/ranking/domain.py +++ b/src/cloudflare/resources/radar/ranking/domain.py @@ -76,7 +76,7 @@ def get( Args: domain: Domain name. - date: Array of dates to filter the ranking. + date: Array of dates to filter the results. format: Format in which results will be returned. @@ -169,7 +169,7 @@ async def get( Args: domain: Domain name. - date: Array of dates to filter the ranking. + date: Array of dates to filter the results. format: Format in which results will be returned. diff --git a/src/cloudflare/resources/radar/ranking/internet_services.py b/src/cloudflare/resources/radar/ranking/internet_services.py index 24436b176ad..94d272c0d26 100644 --- a/src/cloudflare/resources/radar/ranking/internet_services.py +++ b/src/cloudflare/resources/radar/ranking/internet_services.py @@ -73,7 +73,7 @@ def categories( Retrieves the list of Internet services categories. Args: - date: Array of dates to filter the ranking. + date: Array of dates to filter the results. format: Format in which results will be returned. @@ -200,7 +200,7 @@ def top( Retrieves top Internet services based on their rank. Args: - date: Array of dates to filter the ranking. + date: Array of dates to filter the results. format: Format in which results will be returned. @@ -279,7 +279,7 @@ async def categories( Retrieves the list of Internet services categories. Args: - date: Array of dates to filter the ranking. + date: Array of dates to filter the results. format: Format in which results will be returned. @@ -406,7 +406,7 @@ async def top( Retrieves top Internet services based on their rank. Args: - date: Array of dates to filter the ranking. + date: Array of dates to filter the results. format: Format in which results will be returned. diff --git a/src/cloudflare/resources/radar/ranking/ranking.py b/src/cloudflare/resources/radar/ranking/ranking.py index 5e46497e023..a0b85dcf3bf 100644 --- a/src/cloudflare/resources/radar/ranking/ranking.py +++ b/src/cloudflare/resources/radar/ranking/ranking.py @@ -180,7 +180,7 @@ def top( domains, see https://blog.cloudflare.com/radar-domain-rankings/. Args: - date: Array of dates to filter the ranking. + date: Array of dates to filter the results. domain_category: Filters results by domain category. @@ -361,7 +361,7 @@ async def top( domains, see https://blog.cloudflare.com/radar-domain-rankings/. Args: - date: Array of dates to filter the ranking. + date: Array of dates to filter the results. domain_category: Filters results by domain category. diff --git a/src/cloudflare/resources/radar/robots_txt/top/top.py b/src/cloudflare/resources/radar/robots_txt/top/top.py index e30d7cea4ea..7d01d44e57f 100644 --- a/src/cloudflare/resources/radar/robots_txt/top/top.py +++ b/src/cloudflare/resources/radar/robots_txt/top/top.py @@ -80,7 +80,7 @@ def domain_categories( Retrieves the top domain categories by the number of robots.txt files parsed. Args: - date: Array of dates to filter the ranking. + date: Array of dates to filter the results. format: Format in which results will be returned. @@ -164,7 +164,7 @@ async def domain_categories( Retrieves the top domain categories by the number of robots.txt files parsed. Args: - date: Array of dates to filter the ranking. + date: Array of dates to filter the results. format: Format in which results will be returned. diff --git a/src/cloudflare/resources/radar/robots_txt/top/user_agents.py b/src/cloudflare/resources/radar/robots_txt/top/user_agents.py index 603d7bbb868..62c763afb62 100644 --- a/src/cloudflare/resources/radar/robots_txt/top/user_agents.py +++ b/src/cloudflare/resources/radar/robots_txt/top/user_agents.py @@ -70,7 +70,7 @@ def directive( Retrieves the top user agents on robots.txt files. Args: - date: Array of dates to filter the ranking. + date: Array of dates to filter the results. directive: Filters results by robots.txt directive. @@ -158,7 +158,7 @@ async def directive( Retrieves the top user agents on robots.txt files. Args: - date: Array of dates to filter the ranking. + date: Array of dates to filter the results. directive: Filters results by robots.txt directive. 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 ba9cf22e5d2..5f62eb9c2ab 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 @@ -36,67 +36,6 @@ class LocationTargetParams(TypedDict, total=False): format: Literal["JSON", "CSV"] """Format in which results will be returned.""" - 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"), - ] - """Filters results by HTTP method.""" - - http_version: Annotated[List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]], PropertyInfo(alias="httpVersion")] - """Filters results by HTTP version.""" - - ip_version: Annotated[List[Literal["IPv4", "IPv6"]], PropertyInfo(alias="ipVersion")] - """Filters results by IP version (Ipv4 vs. IPv6).""" - limit: int """Limits the number of objects returned in the response.""" 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 0b37953159b..957666872b3 100644 --- a/src/cloudflare/types/radar/attacks/layer7/top_attacks_params.py +++ b/src/cloudflare/types/radar/attacks/layer7/top_attacks_params.py @@ -43,67 +43,6 @@ class TopAttacksParams(TypedDict, total=False): format: Literal["JSON", "CSV"] """Format in which results will be returned.""" - 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"), - ] - """Filters results by HTTP method.""" - - http_version: Annotated[List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]], PropertyInfo(alias="httpVersion")] - """Filters results by HTTP version.""" - - ip_version: Annotated[List[Literal["IPv4", "IPv6"]], PropertyInfo(alias="ipVersion")] - """Filters results by IP version (Ipv4 vs. IPv6).""" - limit: int """Limits the number of objects returned in the response.""" @@ -128,9 +67,10 @@ class TopAttacksParams(TypedDict, total=False): """ magnitude: Literal["AFFECTED_ZONES", "MITIGATED_REQUESTS"] - """ - Attack magnitude can be defined by total requests mitigated or by total zones - attacked. + """This parameter is deprecated. + + In the future, we will only support attack magnitude defined by the total number + of mitigated requests (MITIGATED_REQUESTS). """ mitigation_product: Annotated[ diff --git a/src/cloudflare/types/radar/attacks/layer7_timeseries_params.py b/src/cloudflare/types/radar/attacks/layer7_timeseries_params.py index 4d3af21b5cd..5b06d57be1b 100644 --- a/src/cloudflare/types/radar/attacks/layer7_timeseries_params.py +++ b/src/cloudflare/types/radar/attacks/layer7_timeseries_params.py @@ -26,11 +26,6 @@ class Layer7TimeseriesParams(TypedDict, total=False): results from AS174, but includes results from AS3356. """ - attack: List[ - Literal["DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"] - ] - """This field is deprecated, please use the new `mitigationProduct`.""" - continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). diff --git a/src/cloudflare/types/radar/dataset_list_params.py b/src/cloudflare/types/radar/dataset_list_params.py index d1c779cec44..5d30cecda59 100644 --- a/src/cloudflare/types/radar/dataset_list_params.py +++ b/src/cloudflare/types/radar/dataset_list_params.py @@ -2,6 +2,8 @@ from __future__ import annotations +import datetime +from typing import Union from typing_extensions import Literal, Annotated, TypedDict from ..._utils import PropertyInfo @@ -13,6 +15,9 @@ class DatasetListParams(TypedDict, total=False): dataset_type: Annotated[Literal["RANKING_BUCKET", "REPORT"], PropertyInfo(alias="datasetType")] """Filters results by dataset type.""" + date: Annotated[Union[str, datetime.date], PropertyInfo(format="iso8601")] + """Filters results by the specified date.""" + format: Literal["JSON", "CSV"] """Format in which results will be returned.""" 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 bcdb53eebf5..8043b3b5743 100644 --- a/src/cloudflare/types/radar/http/summary_bot_class_params.py +++ b/src/cloudflare/types/radar/http/summary_bot_class_params.py @@ -19,6 +19,9 @@ class SummaryBotClassParams(TypedDict, total=False): results from AS174, but includes results from AS3356. """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). 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 1073a6d89bc..7c02c1f47ad 100644 --- a/src/cloudflare/types/radar/http/summary_device_type_params.py +++ b/src/cloudflare/types/radar/http/summary_device_type_params.py @@ -26,6 +26,9 @@ class SummaryDeviceTypeParams(TypedDict, total=False): [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). 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 dd9c1197955..6a1038479ec 100644 --- a/src/cloudflare/types/radar/http/summary_http_protocol_params.py +++ b/src/cloudflare/types/radar/http/summary_http_protocol_params.py @@ -26,6 +26,9 @@ class SummaryHTTPProtocolParams(TypedDict, total=False): [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). 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 39140304f22..5bab050288f 100644 --- a/src/cloudflare/types/radar/http/summary_http_version_params.py +++ b/src/cloudflare/types/radar/http/summary_http_version_params.py @@ -26,6 +26,9 @@ class SummaryHTTPVersionParams(TypedDict, total=False): [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). 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 e1db184475e..3de30f2a369 100644 --- a/src/cloudflare/types/radar/http/summary_ip_version_params.py +++ b/src/cloudflare/types/radar/http/summary_ip_version_params.py @@ -26,6 +26,9 @@ class SummaryIPVersionParams(TypedDict, total=False): [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). diff --git a/src/cloudflare/types/radar/http/summary_os_params.py b/src/cloudflare/types/radar/http/summary_os_params.py index 8f42f54b134..36b79e1af09 100644 --- a/src/cloudflare/types/radar/http/summary_os_params.py +++ b/src/cloudflare/types/radar/http/summary_os_params.py @@ -26,6 +26,9 @@ class SummaryOSParams(TypedDict, total=False): [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). 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 1139394d649..2a58d5105bc 100644 --- a/src/cloudflare/types/radar/http/summary_post_quantum_params.py +++ b/src/cloudflare/types/radar/http/summary_post_quantum_params.py @@ -26,6 +26,9 @@ class SummaryPostQuantumParams(TypedDict, total=False): [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). 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 443d5f2fe13..881f5a8d963 100644 --- a/src/cloudflare/types/radar/http/summary_tls_version_params.py +++ b/src/cloudflare/types/radar/http/summary_tls_version_params.py @@ -26,6 +26,9 @@ class SummaryTLSVersionParams(TypedDict, total=False): [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). 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 6b79f440d4d..84e28ddbb53 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 @@ -26,6 +26,9 @@ class TimeseriesGroupBotClassParams(TypedDict, total=False): results from AS174, but includes results from AS3356. """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). 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 abe2cc51b5b..a3326b5eef1 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_browser_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_browser_params.py @@ -33,6 +33,9 @@ class TimeseriesGroupBrowserParams(TypedDict, total=False): [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). 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 e9f270e9841..55bd7c225e4 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 @@ -33,6 +33,9 @@ class TimeseriesGroupDeviceTypeParams(TypedDict, total=False): [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). 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 d5a71b26448..0b17e21d2a3 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 @@ -33,6 +33,9 @@ class TimeseriesGroupHTTPProtocolParams(TypedDict, total=False): [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). 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 c9a73048627..01ea5688398 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 @@ -33,6 +33,9 @@ class TimeseriesGroupHTTPVersionParams(TypedDict, total=False): [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). 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 7ea9592c435..44f700f714a 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 @@ -33,6 +33,9 @@ class TimeseriesGroupIPVersionParams(TypedDict, total=False): [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). 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 ccb3a19caa9..779f1a3e817 100644 --- a/src/cloudflare/types/radar/http/timeseries_group_os_params.py +++ b/src/cloudflare/types/radar/http/timeseries_group_os_params.py @@ -33,6 +33,9 @@ class TimeseriesGroupOSParams(TypedDict, total=False): [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). 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 f9adb227aa0..a1c2e2d50e8 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 @@ -33,6 +33,9 @@ class TimeseriesGroupPostQuantumParams(TypedDict, total=False): [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). 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 21326f7cbee..a90fd5e2cfe 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 @@ -33,6 +33,9 @@ class TimeseriesGroupTLSVersionParams(TypedDict, total=False): [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). diff --git a/src/cloudflare/types/radar/http_timeseries_params.py b/src/cloudflare/types/radar/http_timeseries_params.py index e4b3f8e6b4b..27b92c7a4d8 100644 --- a/src/cloudflare/types/radar/http_timeseries_params.py +++ b/src/cloudflare/types/radar/http_timeseries_params.py @@ -33,6 +33,9 @@ class HTTPTimeseriesParams(TypedDict, total=False): [Bot classes](https://developers.cloudflare.com/radar/concepts/bot-classes/). """ + browser_family: Annotated[List[Literal["CHROME", "EDGE", "FIREFOX", "SAFARI"]], PropertyInfo(alias="browserFamily")] + """Filters results by browser family.""" + continent: List[str] """Comma-separated list of continents (alpha-2 continent codes). diff --git a/src/cloudflare/types/radar/ranking/domain_get_params.py b/src/cloudflare/types/radar/ranking/domain_get_params.py index 4f8b6c4b71f..6ee1c11034e 100644 --- a/src/cloudflare/types/radar/ranking/domain_get_params.py +++ b/src/cloudflare/types/radar/ranking/domain_get_params.py @@ -13,7 +13,7 @@ class DomainGetParams(TypedDict, total=False): date: Annotated[List[Union[str, datetime.date]], PropertyInfo(format="iso8601")] - """Array of dates to filter the ranking.""" + """Array of dates to filter the results.""" format: Literal["JSON", "CSV"] """Format in which results will be returned.""" diff --git a/src/cloudflare/types/radar/ranking/internet_service_categories_params.py b/src/cloudflare/types/radar/ranking/internet_service_categories_params.py index bba30e09f5b..a35cdfb76c7 100644 --- a/src/cloudflare/types/radar/ranking/internet_service_categories_params.py +++ b/src/cloudflare/types/radar/ranking/internet_service_categories_params.py @@ -13,7 +13,7 @@ class InternetServiceCategoriesParams(TypedDict, total=False): date: Annotated[List[Union[str, datetime.date]], PropertyInfo(format="iso8601")] - """Array of dates to filter the ranking.""" + """Array of dates to filter the results.""" format: Literal["JSON", "CSV"] """Format in which results will be returned.""" diff --git a/src/cloudflare/types/radar/ranking/internet_service_top_params.py b/src/cloudflare/types/radar/ranking/internet_service_top_params.py index 11e594959d0..a68cd3cbde1 100644 --- a/src/cloudflare/types/radar/ranking/internet_service_top_params.py +++ b/src/cloudflare/types/radar/ranking/internet_service_top_params.py @@ -13,7 +13,7 @@ class InternetServiceTopParams(TypedDict, total=False): date: Annotated[List[Union[str, datetime.date]], PropertyInfo(format="iso8601")] - """Array of dates to filter the ranking.""" + """Array of dates to filter the results.""" format: Literal["JSON", "CSV"] """Format in which results will be returned.""" diff --git a/src/cloudflare/types/radar/ranking_top_params.py b/src/cloudflare/types/radar/ranking_top_params.py index 06ab761773a..9cc154c028b 100644 --- a/src/cloudflare/types/radar/ranking_top_params.py +++ b/src/cloudflare/types/radar/ranking_top_params.py @@ -13,7 +13,7 @@ class RankingTopParams(TypedDict, total=False): date: Annotated[List[Union[str, datetime.date]], PropertyInfo(format="iso8601")] - """Array of dates to filter the ranking.""" + """Array of dates to filter the results.""" domain_category: Annotated[List[str], PropertyInfo(alias="domainCategory")] """Filters results by domain category.""" diff --git a/src/cloudflare/types/radar/robots_txt/top/user_agent_directive_params.py b/src/cloudflare/types/radar/robots_txt/top/user_agent_directive_params.py index 3b345e6eba4..b432dc0e304 100644 --- a/src/cloudflare/types/radar/robots_txt/top/user_agent_directive_params.py +++ b/src/cloudflare/types/radar/robots_txt/top/user_agent_directive_params.py @@ -13,7 +13,7 @@ class UserAgentDirectiveParams(TypedDict, total=False): date: Annotated[List[Union[str, datetime.date]], PropertyInfo(format="iso8601")] - """Array of dates to filter the ranking.""" + """Array of dates to filter the results.""" directive: Literal["ALLOW", "DISALLOW"] """Filters results by robots.txt directive.""" diff --git a/src/cloudflare/types/radar/robots_txt/top_domain_categories_params.py b/src/cloudflare/types/radar/robots_txt/top_domain_categories_params.py index cb62f868b87..f2b080091b8 100644 --- a/src/cloudflare/types/radar/robots_txt/top_domain_categories_params.py +++ b/src/cloudflare/types/radar/robots_txt/top_domain_categories_params.py @@ -13,7 +13,7 @@ class TopDomainCategoriesParams(TypedDict, total=False): date: Annotated[List[Union[str, datetime.date]], PropertyInfo(format="iso8601")] - """Array of dates to filter the ranking.""" + """Array of dates to filter the results.""" format: Literal["JSON", "CSV"] """Format in which results will be returned.""" diff --git a/tests/api_resources/radar/attacks/layer7/test_top.py b/tests/api_resources/radar/attacks/layer7/test_top.py index 585e30ae8ea..a50341b1c64 100644 --- a/tests/api_resources/radar/attacks/layer7/test_top.py +++ b/tests/api_resources/radar/attacks/layer7/test_top.py @@ -36,9 +36,6 @@ def test_method_attacks_with_all_params(self, client: Cloudflare) -> None: date_range=["7d"], date_start=[parse_datetime("2019-12-27T18:11:19.117Z")], format="JSON", - http_method=["GET"], - http_version=["HTTPv1"], - ip_version=["IPv4"], limit=5, limit_direction="ORIGIN", limit_per_location=10, @@ -176,9 +173,6 @@ async def test_method_attacks_with_all_params(self, async_client: AsyncCloudflar date_range=["7d"], date_start=[parse_datetime("2019-12-27T18:11:19.117Z")], format="JSON", - http_method=["GET"], - http_version=["HTTPv1"], - ip_version=["IPv4"], limit=5, limit_direction="ORIGIN", limit_per_location=10, 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 912d7f31098..e316dabe10d 100644 --- a/tests/api_resources/radar/attacks/layer7/top/test_locations.py +++ b/tests/api_resources/radar/attacks/layer7/top/test_locations.py @@ -77,9 +77,6 @@ def test_method_target_with_all_params(self, client: Cloudflare) -> None: date_range=["7d"], date_start=[parse_datetime("2019-12-27T18:11:19.117Z")], format="JSON", - http_method=["GET"], - http_version=["HTTPv1"], - ip_version=["IPv4"], limit=5, mitigation_product=["DDOS"], name=["main_series"], @@ -166,9 +163,6 @@ async def test_method_target_with_all_params(self, async_client: AsyncCloudflare date_range=["7d"], date_start=[parse_datetime("2019-12-27T18:11:19.117Z")], format="JSON", - http_method=["GET"], - http_version=["HTTPv1"], - ip_version=["IPv4"], limit=5, mitigation_product=["DDOS"], name=["main_series"], diff --git a/tests/api_resources/radar/attacks/test_layer7.py b/tests/api_resources/radar/attacks/test_layer7.py index 67df94d5aa0..a8a2c9c1c02 100644 --- a/tests/api_resources/radar/attacks/test_layer7.py +++ b/tests/api_resources/radar/attacks/test_layer7.py @@ -28,7 +28,6 @@ def test_method_timeseries_with_all_params(self, client: Cloudflare) -> None: layer7 = client.radar.attacks.layer7.timeseries( agg_interval="15m", asn=["string"], - attack=["DDOS"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -78,7 +77,6 @@ async def test_method_timeseries_with_all_params(self, async_client: AsyncCloudf layer7 = await async_client.radar.attacks.layer7.timeseries( agg_interval="15m", asn=["string"], - attack=["DDOS"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], diff --git a/tests/api_resources/radar/http/test_summary.py b/tests/api_resources/radar/http/test_summary.py index 94d5f33f7ac..5340efc6361 100644 --- a/tests/api_resources/radar/http/test_summary.py +++ b/tests/api_resources/radar/http/test_summary.py @@ -36,6 +36,7 @@ def test_method_bot_class(self, client: Cloudflare) -> None: def test_method_bot_class_with_all_params(self, client: Cloudflare) -> None: summary = client.radar.http.summary.bot_class( asn=["string"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -82,6 +83,7 @@ def test_method_device_type_with_all_params(self, client: Cloudflare) -> None: summary = client.radar.http.summary.device_type( asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -127,6 +129,7 @@ def test_method_http_protocol_with_all_params(self, client: Cloudflare) -> None: summary = client.radar.http.summary.http_protocol( asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -172,6 +175,7 @@ def test_method_http_version_with_all_params(self, client: Cloudflare) -> None: summary = client.radar.http.summary.http_version( asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -217,6 +221,7 @@ def test_method_ip_version_with_all_params(self, client: Cloudflare) -> None: summary = client.radar.http.summary.ip_version( asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -262,6 +267,7 @@ def test_method_os_with_all_params(self, client: Cloudflare) -> None: summary = client.radar.http.summary.os( asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -307,6 +313,7 @@ def test_method_post_quantum_with_all_params(self, client: Cloudflare) -> None: summary = client.radar.http.summary.post_quantum( asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -353,6 +360,7 @@ def test_method_tls_version_with_all_params(self, client: Cloudflare) -> None: summary = client.radar.http.summary.tls_version( asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -401,6 +409,7 @@ async def test_method_bot_class(self, async_client: AsyncCloudflare) -> None: async def test_method_bot_class_with_all_params(self, async_client: AsyncCloudflare) -> None: summary = await async_client.radar.http.summary.bot_class( asn=["string"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -447,6 +456,7 @@ async def test_method_device_type_with_all_params(self, async_client: AsyncCloud summary = await async_client.radar.http.summary.device_type( asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -492,6 +502,7 @@ async def test_method_http_protocol_with_all_params(self, async_client: AsyncClo summary = await async_client.radar.http.summary.http_protocol( asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -537,6 +548,7 @@ async def test_method_http_version_with_all_params(self, async_client: AsyncClou summary = await async_client.radar.http.summary.http_version( asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -582,6 +594,7 @@ async def test_method_ip_version_with_all_params(self, async_client: AsyncCloudf summary = await async_client.radar.http.summary.ip_version( asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -627,6 +640,7 @@ async def test_method_os_with_all_params(self, async_client: AsyncCloudflare) -> summary = await async_client.radar.http.summary.os( asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -672,6 +686,7 @@ async def test_method_post_quantum_with_all_params(self, async_client: AsyncClou summary = await async_client.radar.http.summary.post_quantum( asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -718,6 +733,7 @@ async def test_method_tls_version_with_all_params(self, async_client: AsyncCloud summary = await async_client.radar.http.summary.tls_version( asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], diff --git a/tests/api_resources/radar/http/test_timeseries_groups.py b/tests/api_resources/radar/http/test_timeseries_groups.py index 753bf24162b..856685867b6 100644 --- a/tests/api_resources/radar/http/test_timeseries_groups.py +++ b/tests/api_resources/radar/http/test_timeseries_groups.py @@ -39,6 +39,7 @@ def test_method_bot_class_with_all_params(self, client: Cloudflare) -> None: timeseries_group = client.radar.http.timeseries_groups.bot_class( agg_interval="15m", asn=["string"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -86,6 +87,7 @@ def test_method_browser_with_all_params(self, client: Cloudflare) -> None: agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -182,6 +184,7 @@ def test_method_device_type_with_all_params(self, client: Cloudflare) -> None: agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -228,6 +231,7 @@ def test_method_http_protocol_with_all_params(self, client: Cloudflare) -> None: agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -274,6 +278,7 @@ def test_method_http_version_with_all_params(self, client: Cloudflare) -> None: agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -320,6 +325,7 @@ def test_method_ip_version_with_all_params(self, client: Cloudflare) -> None: agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -366,6 +372,7 @@ def test_method_os_with_all_params(self, client: Cloudflare) -> None: agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -412,6 +419,7 @@ def test_method_post_quantum_with_all_params(self, client: Cloudflare) -> None: agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -459,6 +467,7 @@ def test_method_tls_version_with_all_params(self, client: Cloudflare) -> None: agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -508,6 +517,7 @@ async def test_method_bot_class_with_all_params(self, async_client: AsyncCloudfl timeseries_group = await async_client.radar.http.timeseries_groups.bot_class( agg_interval="15m", asn=["string"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -555,6 +565,7 @@ async def test_method_browser_with_all_params(self, async_client: AsyncCloudflar agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -651,6 +662,7 @@ async def test_method_device_type_with_all_params(self, async_client: AsyncCloud agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -697,6 +709,7 @@ async def test_method_http_protocol_with_all_params(self, async_client: AsyncClo agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -743,6 +756,7 @@ async def test_method_http_version_with_all_params(self, async_client: AsyncClou agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -789,6 +803,7 @@ async def test_method_ip_version_with_all_params(self, async_client: AsyncCloudf agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -835,6 +850,7 @@ async def test_method_os_with_all_params(self, async_client: AsyncCloudflare) -> agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -881,6 +897,7 @@ async def test_method_post_quantum_with_all_params(self, async_client: AsyncClou agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -928,6 +945,7 @@ async def test_method_tls_version_with_all_params(self, async_client: AsyncCloud agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], diff --git a/tests/api_resources/radar/test_datasets.py b/tests/api_resources/radar/test_datasets.py index 571fffac223..e9e8d057314 100644 --- a/tests/api_resources/radar/test_datasets.py +++ b/tests/api_resources/radar/test_datasets.py @@ -9,6 +9,7 @@ from cloudflare import Cloudflare, AsyncCloudflare from tests.utils import assert_matches_type +from cloudflare._utils import parse_date from cloudflare.types.radar import ( DatasetListResponse, DatasetDownloadResponse, @@ -29,6 +30,7 @@ def test_method_list(self, client: Cloudflare) -> None: def test_method_list_with_all_params(self, client: Cloudflare) -> None: dataset = client.radar.datasets.list( dataset_type="RANKING_BUCKET", + date=parse_date("2024-09-19"), format="JSON", limit=5, offset=0, @@ -145,6 +147,7 @@ async def test_method_list(self, async_client: AsyncCloudflare) -> None: async def test_method_list_with_all_params(self, async_client: AsyncCloudflare) -> None: dataset = await async_client.radar.datasets.list( dataset_type="RANKING_BUCKET", + date=parse_date("2024-09-19"), format="JSON", limit=5, offset=0, diff --git a/tests/api_resources/radar/test_http.py b/tests/api_resources/radar/test_http.py index aab9b6f596d..243290602ca 100644 --- a/tests/api_resources/radar/test_http.py +++ b/tests/api_resources/radar/test_http.py @@ -29,6 +29,7 @@ def test_method_timeseries_with_all_params(self, client: Cloudflare) -> None: agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"], @@ -81,6 +82,7 @@ async def test_method_timeseries_with_all_params(self, async_client: AsyncCloudf agg_interval="15m", asn=["string"], bot_class=["LIKELY_AUTOMATED"], + browser_family=["CHROME"], continent=["string"], date_end=[parse_datetime("2019-12-27T18:11:19.117Z")], date_range=["7d"],