Skip to content

feat(api): api update #2516

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
18 changes: 0 additions & 18 deletions src/cloudflare/resources/radar/attacks/layer7/layer7.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -234,7 +226,6 @@ def timeseries(
{
"agg_interval": agg_interval,
"asn": asn,
"attack": attack,
"continent": continent,
"date_end": date_end,
"date_range": date_range,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down
124 changes: 0 additions & 124 deletions src/cloudflare/resources/radar/attacks/layer7/top/locations.py
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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[
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down
Loading