Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit da2ce0d

Browse files
committedFeb 26, 2025·
feat(api): api update (#2477)
1 parent f4496c0 commit da2ce0d

File tree

330 files changed

+9060
-8732
lines changed

Some content is hidden

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

330 files changed

+9060
-8732
lines changed
 

‎.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1542
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-948db90b67e56eee030c84195a5836541eb93a4bc6b46571f1b00d4cf069eb10.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-fc5b966b698b287edea83ecae20186c967fd805bfd665e0b1d0aec760ee85636.yml

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

+40-42
Original file line numberDiff line numberDiff line change
@@ -69,38 +69,37 @@ def user_agent(
6969
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
7070
) -> SummaryUserAgentResponse:
7171
"""
72-
Percentage of Internet traffic generated by AI user agents, over a given time
73-
period.
72+
Retrieves the distribution of traffic by AI user agent.
7473
7574
Args:
76-
asn: Array of comma separated list of ASNs, start with `-` to exclude from results.
77-
For example, `-174, 3356` excludes results from AS174, but includes results from
78-
AS3356.
75+
asn: Comma-separated list of Autonomous System Numbers (ASNs). Prefix with `-` to
76+
exclude ASNs from results. For example, `-174, 3356` excludes results from
77+
AS174, but includes results from AS3356.
7978
80-
continent: Array of comma separated list of continents (alpha-2 continent codes). Start
81-
with `-` to exclude from results. For example, `-EU,NA` excludes results from
82-
Europe, but includes results from North America.
79+
continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to
80+
exclude continents from results. For example, `-EU,NA` excludes results from EU,
81+
but includes results from NA.
8382
8483
date_end: End of the date range (inclusive).
8584
86-
date_range: For example, use `7d` and `7dControl` to compare this week with the previous
87-
week. Use this parameter or set specific start and end dates (`dateStart` and
88-
`dateEnd` parameters).
85+
date_range: Filters results by the specified date range. For example, use `7d` and
86+
`7dcontrol` to compare this week with the previous week. Use this parameter or
87+
set specific start and end dates (`dateStart` and `dateEnd` parameters).
8988
90-
date_start: Array of datetimes to filter the start of a series.
89+
date_start: Start of the date range.
9190
92-
format: Format results are returned in.
91+
format: Format in which results will be returned.
9392
94-
limit_per_group: Limit the number of objects (e.g., browsers, verticals, etc.) to the top items
95-
within the specified time range. If the limitPerGroup is set, the response will
96-
include that number of items, with the remaining items grouped together under an
97-
"other" category.
93+
limit_per_group: Limits the number of objects per group to the top items within the specified
94+
time range. If there are more items than the limit, the response will include
95+
the count of items, with any remaining items grouped together under an "other"
96+
category.
9897
99-
location: Array of comma separated list of locations (alpha-2 country codes). Start with
100-
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
101-
but includes results from PT.
98+
location: Comma-separated list of locations (alpha-2 codes). Prefix with `-` to exclude
99+
locations from results. For example, `-US,PT` excludes results from the US, but
100+
includes results from PT.
102101
103-
name: Array of names that will be used to name the series in responses.
102+
name: Array of names used to label the series in the response.
104103
105104
extra_headers: Send extra headers
106105
@@ -177,38 +176,37 @@ async def user_agent(
177176
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
178177
) -> SummaryUserAgentResponse:
179178
"""
180-
Percentage of Internet traffic generated by AI user agents, over a given time
181-
period.
179+
Retrieves the distribution of traffic by AI user agent.
182180
183181
Args:
184-
asn: Array of comma separated list of ASNs, start with `-` to exclude from results.
185-
For example, `-174, 3356` excludes results from AS174, but includes results from
186-
AS3356.
182+
asn: Comma-separated list of Autonomous System Numbers (ASNs). Prefix with `-` to
183+
exclude ASNs from results. For example, `-174, 3356` excludes results from
184+
AS174, but includes results from AS3356.
187185
188-
continent: Array of comma separated list of continents (alpha-2 continent codes). Start
189-
with `-` to exclude from results. For example, `-EU,NA` excludes results from
190-
Europe, but includes results from North America.
186+
continent: Comma-separated list of continents (alpha-2 continent codes). Prefix with `-` to
187+
exclude continents from results. For example, `-EU,NA` excludes results from EU,
188+
but includes results from NA.
191189
192190
date_end: End of the date range (inclusive).
193191
194-
date_range: For example, use `7d` and `7dControl` to compare this week with the previous
195-
week. Use this parameter or set specific start and end dates (`dateStart` and
196-
`dateEnd` parameters).
192+
date_range: Filters results by the specified date range. For example, use `7d` and
193+
`7dcontrol` to compare this week with the previous week. Use this parameter or
194+
set specific start and end dates (`dateStart` and `dateEnd` parameters).
197195
198-
date_start: Array of datetimes to filter the start of a series.
196+
date_start: Start of the date range.
199197
200-
format: Format results are returned in.
198+
format: Format in which results will be returned.
201199
202-
limit_per_group: Limit the number of objects (e.g., browsers, verticals, etc.) to the top items
203-
within the specified time range. If the limitPerGroup is set, the response will
204-
include that number of items, with the remaining items grouped together under an
205-
"other" category.
200+
limit_per_group: Limits the number of objects per group to the top items within the specified
201+
time range. If there are more items than the limit, the response will include
202+
the count of items, with any remaining items grouped together under an "other"
203+
category.
206204
207-
location: Array of comma separated list of locations (alpha-2 country codes). Start with
208-
`-` to exclude from results. For example, `-US,PT` excludes results from the US,
209-
but includes results from PT.
205+
location: Comma-separated list of locations (alpha-2 codes). Prefix with `-` to exclude
206+
locations from results. For example, `-US,PT` excludes results from the US, but
207+
includes results from PT.
210208
211-
name: Array of names that will be used to name the series in responses.
209+
name: Array of names used to label the series in the response.
212210
213211
extra_headers: Send extra headers
214212

0 commit comments

Comments
 (0)
Please sign in to comment.