Skip to content

Commit 09f456c

Browse files
feat(api): api update (#2315)
1 parent f411df9 commit 09f456c

Some content is hidden

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

47 files changed

+312
-116
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1490
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-b46e31e5f69309fc518f386002c3df2afeb03c0361127704253f9197d52d11d9.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-85569f0482730af4e8c6afc9b33c7ba894e47b2d8fa36a3e013daf5390adb647.yml

src/cloudflare/resources/radar/ai/bots/summary.py

+10
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def user_agent(
5858
date_range: List[str] | NotGiven = NOT_GIVEN,
5959
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
6060
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
61+
limit_per_group: int | NotGiven = NOT_GIVEN,
6162
location: List[str] | NotGiven = NOT_GIVEN,
6263
name: List[str] | NotGiven = NOT_GIVEN,
6364
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -90,6 +91,9 @@ def user_agent(
9091
9192
format: Format results are returned in.
9293
94+
limit_per_group: Limit the number of objects (eg browsers, verticals, etc) to the top items over
95+
the time range.
96+
9397
location: Array of comma separated list of locations (alpha-2 country codes). Start with
9498
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
9599
but includes results from PT.
@@ -119,6 +123,7 @@ def user_agent(
119123
"date_range": date_range,
120124
"date_start": date_start,
121125
"format": format,
126+
"limit_per_group": limit_per_group,
122127
"location": location,
123128
"name": name,
124129
},
@@ -159,6 +164,7 @@ async def user_agent(
159164
date_range: List[str] | NotGiven = NOT_GIVEN,
160165
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
161166
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
167+
limit_per_group: int | NotGiven = NOT_GIVEN,
162168
location: List[str] | NotGiven = NOT_GIVEN,
163169
name: List[str] | NotGiven = NOT_GIVEN,
164170
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -191,6 +197,9 @@ async def user_agent(
191197
192198
format: Format results are returned in.
193199
200+
limit_per_group: Limit the number of objects (eg browsers, verticals, etc) to the top items over
201+
the time range.
202+
194203
location: Array of comma separated list of locations (alpha-2 country codes). Start with
195204
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
196205
but includes results from PT.
@@ -220,6 +229,7 @@ async def user_agent(
220229
"date_range": date_range,
221230
"date_start": date_start,
222231
"format": format,
232+
"limit_per_group": limit_per_group,
223233
"location": location,
224234
"name": name,
225235
},

src/cloudflare/resources/radar/as112/summary.py

+20
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ def query_type(
386386
date_range: List[str] | NotGiven = NOT_GIVEN,
387387
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
388388
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
389+
limit_per_group: int | NotGiven = NOT_GIVEN,
389390
location: List[str] | NotGiven = NOT_GIVEN,
390391
name: List[str] | NotGiven = NOT_GIVEN,
391392
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -417,6 +418,9 @@ def query_type(
417418
418419
format: Format results are returned in.
419420
421+
limit_per_group: Limit the number of objects (eg browsers, verticals, etc) to the top items over
422+
the time range.
423+
420424
location: Array of comma separated list of locations (alpha-2 country codes). Start with
421425
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
422426
but includes results from PT.
@@ -446,6 +450,7 @@ def query_type(
446450
"date_range": date_range,
447451
"date_start": date_start,
448452
"format": format,
453+
"limit_per_group": limit_per_group,
449454
"location": location,
450455
"name": name,
451456
},
@@ -465,6 +470,7 @@ def response_codes(
465470
date_range: List[str] | NotGiven = NOT_GIVEN,
466471
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
467472
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
473+
limit_per_group: int | NotGiven = NOT_GIVEN,
468474
location: List[str] | NotGiven = NOT_GIVEN,
469475
name: List[str] | NotGiven = NOT_GIVEN,
470476
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -496,6 +502,9 @@ def response_codes(
496502
497503
format: Format results are returned in.
498504
505+
limit_per_group: Limit the number of objects (eg browsers, verticals, etc) to the top items over
506+
the time range.
507+
499508
location: Array of comma separated list of locations (alpha-2 country codes). Start with
500509
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
501510
but includes results from PT.
@@ -525,6 +534,7 @@ def response_codes(
525534
"date_range": date_range,
526535
"date_start": date_start,
527536
"format": format,
537+
"limit_per_group": limit_per_group,
528538
"location": location,
529539
"name": name,
530540
},
@@ -881,6 +891,7 @@ async def query_type(
881891
date_range: List[str] | NotGiven = NOT_GIVEN,
882892
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
883893
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
894+
limit_per_group: int | NotGiven = NOT_GIVEN,
884895
location: List[str] | NotGiven = NOT_GIVEN,
885896
name: List[str] | NotGiven = NOT_GIVEN,
886897
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -912,6 +923,9 @@ async def query_type(
912923
913924
format: Format results are returned in.
914925
926+
limit_per_group: Limit the number of objects (eg browsers, verticals, etc) to the top items over
927+
the time range.
928+
915929
location: Array of comma separated list of locations (alpha-2 country codes). Start with
916930
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
917931
but includes results from PT.
@@ -941,6 +955,7 @@ async def query_type(
941955
"date_range": date_range,
942956
"date_start": date_start,
943957
"format": format,
958+
"limit_per_group": limit_per_group,
944959
"location": location,
945960
"name": name,
946961
},
@@ -960,6 +975,7 @@ async def response_codes(
960975
date_range: List[str] | NotGiven = NOT_GIVEN,
961976
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
962977
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
978+
limit_per_group: int | NotGiven = NOT_GIVEN,
963979
location: List[str] | NotGiven = NOT_GIVEN,
964980
name: List[str] | NotGiven = NOT_GIVEN,
965981
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -991,6 +1007,9 @@ async def response_codes(
9911007
9921008
format: Format results are returned in.
9931009
1010+
limit_per_group: Limit the number of objects (eg browsers, verticals, etc) to the top items over
1011+
the time range.
1012+
9941013
location: Array of comma separated list of locations (alpha-2 country codes). Start with
9951014
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
9961015
but includes results from PT.
@@ -1020,6 +1039,7 @@ async def response_codes(
10201039
"date_range": date_range,
10211040
"date_start": date_start,
10221041
"format": format,
1042+
"limit_per_group": limit_per_group,
10231043
"location": location,
10241044
"name": name,
10251045
},

src/cloudflare/resources/radar/as112/timeseries_groups.py

+20
Original file line numberDiff line numberDiff line change
@@ -411,6 +411,7 @@ def query_type(
411411
date_range: List[str] | NotGiven = NOT_GIVEN,
412412
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
413413
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
414+
limit_per_group: int | NotGiven = NOT_GIVEN,
414415
location: List[str] | NotGiven = NOT_GIVEN,
415416
name: List[str] | NotGiven = NOT_GIVEN,
416417
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -446,6 +447,9 @@ def query_type(
446447
447448
format: Format results are returned in.
448449
450+
limit_per_group: Limit the number of objects (eg browsers, verticals, etc) to the top items over
451+
the time range.
452+
449453
location: Array of comma separated list of locations (alpha-2 country codes). Start with
450454
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
451455
but includes results from PT.
@@ -476,6 +480,7 @@ def query_type(
476480
"date_range": date_range,
477481
"date_start": date_start,
478482
"format": format,
483+
"limit_per_group": limit_per_group,
479484
"location": location,
480485
"name": name,
481486
},
@@ -496,6 +501,7 @@ def response_codes(
496501
date_range: List[str] | NotGiven = NOT_GIVEN,
497502
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
498503
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
504+
limit_per_group: int | NotGiven = NOT_GIVEN,
499505
location: List[str] | NotGiven = NOT_GIVEN,
500506
name: List[str] | NotGiven = NOT_GIVEN,
501507
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -532,6 +538,9 @@ def response_codes(
532538
533539
format: Format results are returned in.
534540
541+
limit_per_group: Limit the number of objects (eg browsers, verticals, etc) to the top items over
542+
the time range.
543+
535544
location: Array of comma separated list of locations (alpha-2 country codes). Start with
536545
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
537546
but includes results from PT.
@@ -562,6 +571,7 @@ def response_codes(
562571
"date_range": date_range,
563572
"date_start": date_start,
564573
"format": format,
574+
"limit_per_group": limit_per_group,
565575
"location": location,
566576
"name": name,
567577
},
@@ -945,6 +955,7 @@ async def query_type(
945955
date_range: List[str] | NotGiven = NOT_GIVEN,
946956
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
947957
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
958+
limit_per_group: int | NotGiven = NOT_GIVEN,
948959
location: List[str] | NotGiven = NOT_GIVEN,
949960
name: List[str] | NotGiven = NOT_GIVEN,
950961
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -980,6 +991,9 @@ async def query_type(
980991
981992
format: Format results are returned in.
982993
994+
limit_per_group: Limit the number of objects (eg browsers, verticals, etc) to the top items over
995+
the time range.
996+
983997
location: Array of comma separated list of locations (alpha-2 country codes). Start with
984998
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
985999
but includes results from PT.
@@ -1010,6 +1024,7 @@ async def query_type(
10101024
"date_range": date_range,
10111025
"date_start": date_start,
10121026
"format": format,
1027+
"limit_per_group": limit_per_group,
10131028
"location": location,
10141029
"name": name,
10151030
},
@@ -1030,6 +1045,7 @@ async def response_codes(
10301045
date_range: List[str] | NotGiven = NOT_GIVEN,
10311046
date_start: List[Union[str, datetime]] | NotGiven = NOT_GIVEN,
10321047
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
1048+
limit_per_group: int | NotGiven = NOT_GIVEN,
10331049
location: List[str] | NotGiven = NOT_GIVEN,
10341050
name: List[str] | NotGiven = NOT_GIVEN,
10351051
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -1066,6 +1082,9 @@ async def response_codes(
10661082
10671083
format: Format results are returned in.
10681084
1085+
limit_per_group: Limit the number of objects (eg browsers, verticals, etc) to the top items over
1086+
the time range.
1087+
10691088
location: Array of comma separated list of locations (alpha-2 country codes). Start with
10701089
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
10711090
but includes results from PT.
@@ -1096,6 +1115,7 @@ async def response_codes(
10961115
"date_range": date_range,
10971116
"date_start": date_start,
10981117
"format": format,
1118+
"limit_per_group": limit_per_group,
10991119
"location": location,
11001120
"name": name,
11011121
},

src/cloudflare/resources/radar/attacks/layer3/summary.py

+10
Original file line numberDiff line numberDiff line change
@@ -487,6 +487,7 @@ def vector(
487487
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
488488
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
489489
ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
490+
limit_per_group: int | NotGiven = NOT_GIVEN,
490491
location: List[str] | NotGiven = NOT_GIVEN,
491492
name: List[str] | NotGiven = NOT_GIVEN,
492493
protocol: List[Literal["UDP", "TCP", "ICMP", "GRE"]] | NotGiven = NOT_GIVEN,
@@ -520,6 +521,9 @@ def vector(
520521
521522
ip_version: Filter for ip version.
522523
524+
limit_per_group: Limit the number of objects (eg browsers, verticals, etc) to the top items over
525+
the time range.
526+
523527
location: Array of comma separated list of locations (alpha-2 country codes). Start with
524528
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
525529
but includes results from PT.
@@ -552,6 +556,7 @@ def vector(
552556
"direction": direction,
553557
"format": format,
554558
"ip_version": ip_version,
559+
"limit_per_group": limit_per_group,
555560
"location": location,
556561
"name": name,
557562
"protocol": protocol,
@@ -1010,6 +1015,7 @@ async def vector(
10101015
direction: Literal["ORIGIN", "TARGET"] | NotGiven = NOT_GIVEN,
10111016
format: Literal["JSON", "CSV"] | NotGiven = NOT_GIVEN,
10121017
ip_version: List[Literal["IPv4", "IPv6"]] | NotGiven = NOT_GIVEN,
1018+
limit_per_group: int | NotGiven = NOT_GIVEN,
10131019
location: List[str] | NotGiven = NOT_GIVEN,
10141020
name: List[str] | NotGiven = NOT_GIVEN,
10151021
protocol: List[Literal["UDP", "TCP", "ICMP", "GRE"]] | NotGiven = NOT_GIVEN,
@@ -1043,6 +1049,9 @@ async def vector(
10431049
10441050
ip_version: Filter for ip version.
10451051
1052+
limit_per_group: Limit the number of objects (eg browsers, verticals, etc) to the top items over
1053+
the time range.
1054+
10461055
location: Array of comma separated list of locations (alpha-2 country codes). Start with
10471056
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
10481057
but includes results from PT.
@@ -1075,6 +1084,7 @@ async def vector(
10751084
"direction": direction,
10761085
"format": format,
10771086
"ip_version": ip_version,
1087+
"limit_per_group": limit_per_group,
10781088
"location": location,
10791089
"name": name,
10801090
"protocol": protocol,

0 commit comments

Comments
 (0)