Skip to content

Commit b6adc14

Browse files
feat(api): api update (#2516)
1 parent 17c0192 commit b6adc14

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+281
-434
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1608
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-37ecafb773b4caa17905d8a19b6c08a3b0b360da07b4dc61a0a3a171f295ef6b.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-813efabef72bc705386072e4c622a71b923275a7f992dfc6efd0aac9731e18e6.yml

src/cloudflare/resources/radar/attacks/layer7/layer7.py

-18
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,6 @@ def timeseries(
9090
*,
9191
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
9292
asn: List[str] | NotGiven = NOT_GIVEN,
93-
attack: List[
94-
Literal[
95-
"DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"
96-
]
97-
]
98-
| NotGiven = NOT_GIVEN,
9993
continent: List[str] | NotGiven = NOT_GIVEN,
10094
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
10195
date_range: List[str] | NotGiven = NOT_GIVEN,
@@ -182,8 +176,6 @@ def timeseries(
182176
exclude ASNs from results. For example, `-174, 3356` excludes results from
183177
AS174, but includes results from AS3356.
184178
185-
attack: This field is deprecated, please use the new `mitigationProduct`.
186-
187179
continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to
188180
exclude continents from results. For example, `-EU,NA` excludes results from EU,
189181
but includes results from NA.
@@ -234,7 +226,6 @@ def timeseries(
234226
{
235227
"agg_interval": agg_interval,
236228
"asn": asn,
237-
"attack": attack,
238229
"continent": continent,
239230
"date_end": date_end,
240231
"date_range": date_range,
@@ -293,12 +284,6 @@ async def timeseries(
293284
*,
294285
agg_interval: Literal["15m", "1h", "1d", "1w"] | NotGiven = NOT_GIVEN,
295286
asn: List[str] | NotGiven = NOT_GIVEN,
296-
attack: List[
297-
Literal[
298-
"DDOS", "WAF", "BOT_MANAGEMENT", "ACCESS_RULES", "IP_REPUTATION", "API_SHIELD", "DATA_LOSS_PREVENTION"
299-
]
300-
]
301-
| NotGiven = NOT_GIVEN,
302287
continent: List[str] | NotGiven = NOT_GIVEN,
303288
date_end: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
304289
date_range: List[str] | NotGiven = NOT_GIVEN,
@@ -385,8 +370,6 @@ async def timeseries(
385370
exclude ASNs from results. For example, `-174, 3356` excludes results from
386371
AS174, but includes results from AS3356.
387372
388-
attack: This field is deprecated, please use the new `mitigationProduct`.
389-
390373
continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to
391374
exclude continents from results. For example, `-EU,NA` excludes results from EU,
392375
but includes results from NA.
@@ -437,7 +420,6 @@ async def timeseries(
437420
{
438421
"agg_interval": agg_interval,
439422
"asn": asn,
440-
"attack": attack,
441423
"continent": continent,
442424
"date_end": date_end,
443425
"date_range": date_range,

src/cloudflare/resources/radar/attacks/layer7/top/locations.py

-124
Original file line numberDiff line numberDiff line change
@@ -209,59 +209,6 @@ def target(
209209
date_range: List[str] | NotGiven = NOT_GIVEN,
210210
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
211211
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
212-
http_method: List[
213-
Literal[
214-
"GET",
215-
"POST",
216-
"DELETE",
217-
"PUT",
218-
"HEAD",
219-
"PURGE",
220-
"OPTIONS",
221-
"PROPFIND",
222-
"MKCOL",
223-
"PATCH",
224-
"ACL",
225-
"BCOPY",
226-
"BDELETE",
227-
"BMOVE",
228-
"BPROPFIND",
229-
"BPROPPATCH",
230-
"CHECKIN",
231-
"CHECKOUT",
232-
"CONNECT",
233-
"COPY",
234-
"LABEL",
235-
"LOCK",
236-
"MERGE",
237-
"MKACTIVITY",
238-
"MKWORKSPACE",
239-
"MOVE",
240-
"NOTIFY",
241-
"ORDERPATCH",
242-
"POLL",
243-
"PROPPATCH",
244-
"REPORT",
245-
"SEARCH",
246-
"SUBSCRIBE",
247-
"TRACE",
248-
"UNCHECKOUT",
249-
"UNLOCK",
250-
"UNSUBSCRIBE",
251-
"UPDATE",
252-
"VERSIONCONTROL",
253-
"BASELINECONTROL",
254-
"XMSENUMATTS",
255-
"RPC_OUT_DATA",
256-
"RPC_IN_DATA",
257-
"JSON",
258-
"COOK",
259-
"TRACK",
260-
]
261-
]
262-
| NotGiven = NOT_GIVEN,
263-
http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
264-
ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
265212
limit: int | NotGiven = NOT_GIVEN,
266213
mitigation_product: List[
267214
Literal[
@@ -298,12 +245,6 @@ def target(
298245
299246
format: Format in which results will be returned.
300247
301-
http_method: Filters results by HTTP method.
302-
303-
http_version: Filters results by HTTP version.
304-
305-
ip_version: Filters results by IP version (Ipv4 vs. IPv6).
306-
307248
limit: Limits the number of objects returned in the response.
308249
309250
mitigation_product: Array of L7 mitigation products.
@@ -332,9 +273,6 @@ def target(
332273
"date_range": date_range,
333274
"date_start": date_start,
334275
"format": format,
335-
"http_method": http_method,
336-
"http_version": http_version,
337-
"ip_version": ip_version,
338276
"limit": limit,
339277
"mitigation_product": mitigation_product,
340278
"name": name,
@@ -526,59 +464,6 @@ async def target(
526464
date_range: List[str] | NotGiven = NOT_GIVEN,
527465
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
528466
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
529-
http_method: List[
530-
Literal[
531-
"GET",
532-
"POST",
533-
"DELETE",
534-
"PUT",
535-
"HEAD",
536-
"PURGE",
537-
"OPTIONS",
538-
"PROPFIND",
539-
"MKCOL",
540-
"PATCH",
541-
"ACL",
542-
"BCOPY",
543-
"BDELETE",
544-
"BMOVE",
545-
"BPROPFIND",
546-
"BPROPPATCH",
547-
"CHECKIN",
548-
"CHECKOUT",
549-
"CONNECT",
550-
"COPY",
551-
"LABEL",
552-
"LOCK",
553-
"MERGE",
554-
"MKACTIVITY",
555-
"MKWORKSPACE",
556-
"MOVE",
557-
"NOTIFY",
558-
"ORDERPATCH",
559-
"POLL",
560-
"PROPPATCH",
561-
"REPORT",
562-
"SEARCH",
563-
"SUBSCRIBE",
564-
"TRACE",
565-
"UNCHECKOUT",
566-
"UNLOCK",
567-
"UNSUBSCRIBE",
568-
"UPDATE",
569-
"VERSIONCONTROL",
570-
"BASELINECONTROL",
571-
"XMSENUMATTS",
572-
"RPC_OUT_DATA",
573-
"RPC_IN_DATA",
574-
"JSON",
575-
"COOK",
576-
"TRACK",
577-
]
578-
]
579-
| NotGiven = NOT_GIVEN,
580-
http_version: List[Literal["HTTPv1", "HTTPv2", "HTTPv3"]] | NotGiven = NOT_GIVEN,
581-
ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
582467
limit: int | NotGiven = NOT_GIVEN,
583468
mitigation_product: List[
584469
Literal[
@@ -615,12 +500,6 @@ async def target(
615500
616501
format: Format in which results will be returned.
617502
618-
http_method: Filters results by HTTP method.
619-
620-
http_version: Filters results by HTTP version.
621-
622-
ip_version: Filters results by IP version (Ipv4 vs. IPv6).
623-
624503
limit: Limits the number of objects returned in the response.
625504
626505
mitigation_product: Array of L7 mitigation products.
@@ -649,9 +528,6 @@ async def target(
649528
"date_range": date_range,
650529
"date_start": date_start,
651530
"format": format,
652-
"http_method": http_method,
653-
"http_version": http_version,
654-
"ip_version": ip_version,
655531
"limit": limit,
656532
"mitigation_product": mitigation_product,
657533
"name": name,

0 commit comments

Comments
 (0)