Skip to content

Commit f82cfe9

Browse files
chore(api): update composite API spec
1 parent f88d34f commit f82cfe9

10 files changed

Lines changed: 29 additions & 10 deletions

File tree

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 2284
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
3-
openapi_spec_hash: 9fa1bf5d59398da9212855e06ad932b3
3+
openapi_spec_hash: 2c07c63ba9f657089ed5fed8c92bc09c
44
config_hash: 3504379ebb14928a9890a391899a2e10

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def timeseries_groups(
403403
limit_per_group: int | Omit = omit,
404404
location: SequenceNotStr[str] | Omit = omit,
405405
name: SequenceNotStr[str] | Omit = omit,
406-
normalization: Literal["PERCENTAGE", "MIN0_MAX"] | Omit = omit,
406+
normalization: Literal["PERCENTAGE", "MIN0_MAX", "PERCENTAGE_CHANGE"] | Omit = omit,
407407
response_status: SequenceNotStr[str] | Omit = omit,
408408
response_status_category: List[
409409
Literal["INFORMATIONAL", "SUCCESS", "REDIRECTION", "CLIENT_ERROR", "SERVER_ERROR"]
@@ -890,7 +890,7 @@ async def timeseries_groups(
890890
limit_per_group: int | Omit = omit,
891891
location: SequenceNotStr[str] | Omit = omit,
892892
name: SequenceNotStr[str] | Omit = omit,
893-
normalization: Literal["PERCENTAGE", "MIN0_MAX"] | Omit = omit,
893+
normalization: Literal["PERCENTAGE", "MIN0_MAX", "PERCENTAGE_CHANGE"] | Omit = omit,
894894
response_status: SequenceNotStr[str] | Omit = omit,
895895
response_status_category: List[
896896
Literal["INFORMATIONAL", "SUCCESS", "REDIRECTION", "CLIENT_ERROR", "SERVER_ERROR"]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@ def timeseries_groups(
407407
limit_per_group: int | Omit = omit,
408408
location: SequenceNotStr[str] | Omit = omit,
409409
name: SequenceNotStr[str] | Omit = omit,
410-
normalization: Literal["PERCENTAGE", "MIN0_MAX"] | Omit = omit,
410+
normalization: Literal["PERCENTAGE", "MIN0_MAX", "PERCENTAGE_CHANGE"] | Omit = omit,
411411
response_status: SequenceNotStr[str] | Omit = omit,
412412
response_status_category: List[
413413
Literal["INFORMATIONAL", "SUCCESS", "REDIRECTION", "CLIENT_ERROR", "SERVER_ERROR"]
@@ -996,7 +996,7 @@ async def timeseries_groups(
996996
limit_per_group: int | Omit = omit,
997997
location: SequenceNotStr[str] | Omit = omit,
998998
name: SequenceNotStr[str] | Omit = omit,
999-
normalization: Literal["PERCENTAGE", "MIN0_MAX"] | Omit = omit,
999+
normalization: Literal["PERCENTAGE", "MIN0_MAX", "PERCENTAGE_CHANGE"] | Omit = omit,
10001000
response_status: SequenceNotStr[str] | Omit = omit,
10011001
response_status_category: List[
10021002
Literal["INFORMATIONAL", "SUCCESS", "REDIRECTION", "CLIENT_ERROR", "SERVER_ERROR"]

src/cloudflare/resources/radar/bots/web_crawlers.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,7 @@ def timeseries_groups(
181181
industry: SequenceNotStr[str] | Omit = omit,
182182
limit_per_group: int | Omit = omit,
183183
name: SequenceNotStr[str] | Omit = omit,
184+
normalization: Literal["PERCENTAGE", "MIN0_MAX", "PERCENTAGE_CHANGE"] | Omit = omit,
184185
response_status: SequenceNotStr[str] | Omit = omit,
185186
response_status_category: List[
186187
Literal["INFORMATIONAL", "SUCCESS", "REDIRECTION", "CLIENT_ERROR", "SERVER_ERROR"]
@@ -227,6 +228,9 @@ def timeseries_groups(
227228
228229
name: Array of names used to label the series in the response.
229230
231+
normalization: Normalization method applied to the results. Refer to
232+
[Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
233+
230234
response_status: Filters results by HTTP response status code (e.g. 200, 403, 404). Only
231235
[IANA-registered codes](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml)
232236
are accepted.
@@ -264,6 +268,7 @@ def timeseries_groups(
264268
"industry": industry,
265269
"limit_per_group": limit_per_group,
266270
"name": name,
271+
"normalization": normalization,
267272
"response_status": response_status,
268273
"response_status_category": response_status_category,
269274
"vertical": vertical,
@@ -430,6 +435,7 @@ async def timeseries_groups(
430435
industry: SequenceNotStr[str] | Omit = omit,
431436
limit_per_group: int | Omit = omit,
432437
name: SequenceNotStr[str] | Omit = omit,
438+
normalization: Literal["PERCENTAGE", "MIN0_MAX", "PERCENTAGE_CHANGE"] | Omit = omit,
433439
response_status: SequenceNotStr[str] | Omit = omit,
434440
response_status_category: List[
435441
Literal["INFORMATIONAL", "SUCCESS", "REDIRECTION", "CLIENT_ERROR", "SERVER_ERROR"]
@@ -476,6 +482,9 @@ async def timeseries_groups(
476482
477483
name: Array of names used to label the series in the response.
478484
485+
normalization: Normalization method applied to the results. Refer to
486+
[Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
487+
479488
response_status: Filters results by HTTP response status code (e.g. 200, 403, 404). Only
480489
[IANA-registered codes](https://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml)
481490
are accepted.
@@ -513,6 +522,7 @@ async def timeseries_groups(
513522
"industry": industry,
514523
"limit_per_group": limit_per_group,
515524
"name": name,
525+
"normalization": normalization,
516526
"response_status": response_status,
517527
"response_status_category": response_status_category,
518528
"vertical": vertical,

src/cloudflare/resources/radar/netflows/netflows.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def timeseries_groups(
378378
limit_per_group: int | Omit = omit,
379379
location: SequenceNotStr[str] | Omit = omit,
380380
name: SequenceNotStr[str] | Omit = omit,
381-
normalization: Literal["PERCENTAGE", "MIN0_MAX"] | Omit = omit,
381+
normalization: Literal["PERCENTAGE", "MIN0_MAX", "PERCENTAGE_CHANGE"] | Omit = omit,
382382
product: List[Literal["HTTP", "ALL"]] | Omit = omit,
383383
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
384384
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -813,7 +813,7 @@ async def timeseries_groups(
813813
limit_per_group: int | Omit = omit,
814814
location: SequenceNotStr[str] | Omit = omit,
815815
name: SequenceNotStr[str] | Omit = omit,
816-
normalization: Literal["PERCENTAGE", "MIN0_MAX"] | Omit = omit,
816+
normalization: Literal["PERCENTAGE", "MIN0_MAX", "PERCENTAGE_CHANGE"] | Omit = omit,
817817
product: List[Literal["HTTP", "ALL"]] | Omit = omit,
818818
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
819819
# The extra values given here take precedence over values defined on the client or passed to this method.

src/cloudflare/types/radar/ai/bot_timeseries_groups_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class BotTimeseriesGroupsParams(TypedDict, total=False):
102102
name: SequenceNotStr[str]
103103
"""Array of names used to label the series in the response."""
104104

105-
normalization: Literal["PERCENTAGE", "MIN0_MAX"]
105+
normalization: Literal["PERCENTAGE", "MIN0_MAX", "PERCENTAGE_CHANGE"]
106106
"""Normalization method applied to the results.
107107
108108
Refer to

src/cloudflare/types/radar/ai/timeseries_group_timeseries_groups_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ class TimeseriesGroupTimeseriesGroupsParams(TypedDict, total=False):
102102
name: SequenceNotStr[str]
103103
"""Array of names used to label the series in the response."""
104104

105-
normalization: Literal["PERCENTAGE", "MIN0_MAX"]
105+
normalization: Literal["PERCENTAGE", "MIN0_MAX", "PERCENTAGE_CHANGE"]
106106
"""Normalization method applied to the results.
107107
108108
Refer to

src/cloudflare/types/radar/bots/web_crawler_timeseries_groups_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ class WebCrawlerTimeseriesGroupsParams(TypedDict, total=False):
5858
name: SequenceNotStr[str]
5959
"""Array of names used to label the series in the response."""
6060

61+
normalization: Literal["PERCENTAGE", "MIN0_MAX", "PERCENTAGE_CHANGE"]
62+
"""Normalization method applied to the results.
63+
64+
Refer to
65+
[Normalization methods](https://developers.cloudflare.com/radar/concepts/normalization/).
66+
"""
67+
6168
response_status: Annotated[SequenceNotStr[str], PropertyInfo(alias="responseStatus")]
6269
"""Filters results by HTTP response status code (e.g.
6370

src/cloudflare/types/radar/netflows_timeseries_groups_params.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ class NetFlowsTimeseriesGroupsParams(TypedDict, total=False):
7979
name: SequenceNotStr[str]
8080
"""Array of names used to label the series in the response."""
8181

82-
normalization: Literal["PERCENTAGE", "MIN0_MAX"]
82+
normalization: Literal["PERCENTAGE", "MIN0_MAX", "PERCENTAGE_CHANGE"]
8383
"""Normalization method applied to the results.
8484
8585
Refer to

tests/api_resources/radar/bots/test_web_crawlers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ def test_method_timeseries_groups_with_all_params(self, client: Cloudflare) -> N
9292
industry=["string"],
9393
limit_per_group=10,
9494
name=["main_series"],
95+
normalization="PERCENTAGE",
9596
response_status=["string"],
9697
response_status_category=["INFORMATIONAL"],
9798
vertical=["string"],
@@ -199,6 +200,7 @@ async def test_method_timeseries_groups_with_all_params(self, async_client: Asyn
199200
industry=["string"],
200201
limit_per_group=10,
201202
name=["main_series"],
203+
normalization="PERCENTAGE",
202204
response_status=["string"],
203205
response_status_category=["INFORMATIONAL"],
204206
vertical=["string"],

0 commit comments

Comments
 (0)