8000 feat(api): api update (#2477) · cloudflare/cloudflare-python@f9b2b44 · GitHub
[go: up one dir, main page]

Skip to content

Commit f9b2b44

Browse files
feat(api): api update (#2477)
1 parent f4553d9 commit f9b2b44

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 40 additions & 42 deletions
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

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

Lines changed: 44 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -67,25 +67,25 @@ def model(
6767
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
6868
) -> SummaryModelResponse:
6969
"""
70-
Percentage distribution of unique accounts by model.
70+
Retrieves the distribution of unique accounts by model.
7171
7272
Args:
7373
date_end: End of the date range (inclusive).
7474
75-
date_range: For example, use `7d` and `7dControl` to compare this week with the previous
76-
week. Use this parameter or set specific start and end dates (`dateStart` and
77-
`dateEnd` parameters).
75+
date_range: Filters results by the specified date range. For example, use `7d` and
76+
`7dcontrol` to compare this week with the previous week. Use this parameter or
77+
set specific start and end dates (`dateStart` and `dateEnd` parameters).
7878
79-
date_start: Array of datetimes to filter the start of a series.
79+
date_start: Start of the date range.
8080
81-
format: Format results are returned in.
81+
format: Format in which results will be returned.
8282
83-
limit_per_group: Limit the number of objects (e.g., browsers, verticals, etc.) to the top items
84-
within the specified time range. If the limitPerGroup is set, the response will
85-
include that number of items, with the remaining items grouped together under an
86-
"other" category.
83+
limit_per_group: Limits the number of objects per group to the top items within the specified
84+
time range. If there are more items than the limit, the response will include
85+
the count of items, with any remaining items grouped together under an "other"
86+
category.
8787
88-
name: Array of names that will be used to name the series in responses.
88+
name: Array of names used to label the series in the response.
8989
9090
extra_headers: Send extra headers
9191
@@ -135,25 +135,25 @@ def task(
135135
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
136136
) -> SummaryTaskResponse:
137137
"""
138-
Percentage distribution of unique accounts by task.
138+
Retrieves the distribution of unique accounts by task.
139139
140140
Args:
141141
date_end: End of the date range (inclusive).
142142
143-
date_range: For example, use `7d` and `7dControl` to compare this week with the previous
144-
week. Use this parameter or set specific start and end dates (`dateStart` and
145-
`dateEnd` parameters).
143+
date_range: Filters results by the specified date range. For example, use `7d` and
144+
`7dcontrol` to compare this week with the previous week. Use this parameter or
145+
set specific start and end dates (`dateStart` and `dateEnd` parameters).
146146
147-
date_start: Array of datetimes to filter the start of a series.
147+
date_start: Start of the date range.
148148
149-
format: Format results are returned in.
149+
format: Format in which results will be returned.
150150
151-
limit_per_group: Limit the number of objects (e.g., browsers, verticals, etc.) to the top items
152-
within the specified time range. If the limitPerGroup is set, the response will
153-
include that number of items, with the remaining items grouped together under an
154-
"other" category.
151+
limit_per_group: Limits the number of objects per group to the top items within the specified
152+
time range. If there are more items than the limit, the response will include
153+
the count of items, with any remaining items grouped together under an "other"
154+
category.
155155
156-
name: Array of names that will be used to name the series in responses.
156+
name: Array of names used to label the series in the response.
157157
158158
extra_headers: Send extra headers
159159
@@ -224,25 +224,25 @@ async def model(
224224
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
225225
) -> SummaryModelResponse:
226226
"""
227-
Percentage distribution of unique accounts by model.
227+
Retrieves the distribution of unique accounts by model.
228228
229229
Args:
230230
date_end: End of the date range (inclusive).
231231
232-
date_range: For example, use `7d` and `7dControl` to compare this week with the previous
233-
week. Use this parameter or set specific start and end dates (`dateStart` and
234-
`dateEnd` parameters).
232+
date_range: Filters results by the specified date range. For example, use `7d` and
233+
`7dcontrol` to compare this week with the previous week. Use this parameter or
234+
set specific start and end dates (`dateStart` and `dateEnd` parameters).
235235
236-
date_start: Array of datetimes to filter the start of a series.
236+
date_start: Start of the date range.
237237
238-
format: Format results are returned in.
238+
format: Format in which results will be returned.
239239
240-
limit_per_group: Limit the number of objects (e.g., browsers, verticals, etc.) to the top items
241-
within the specified time range. If the limitPerGroup is set, the response will
242-
include that number of items, with the remaining items grouped together under an
243-
"other" category.
240+
limit_per_group: Limits the number of objects per group to the top items within the specified
241+
time range. If there are more items than the limit, the response will include
242+
the count of items, with any remaining items grouped together under an "other"
243+
category.
244244
245-
name: Array of names that will be used to name the series in responses.
245+
name: Array of names used to label the series in the response.
246246
247247
extra_headers: Send extra headers
248248
@@ -292,25 +292,25 @@ async def task(
292292
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
293293
) -> SummaryTaskResponse:
294294
"""
295-
Percentage distribution of unique accounts by task.
295+
Retrieves the distribution of unique accounts by task.
296296
297297
Args:
298298
date_end: End of the date range (inclusive).
299299
300-
date_range: For example, use `7d` and `7dControl` to compare this week with the previous
301-
week. Use this parameter or set specific start and end dates (`dateStart` and
302-
`dateEnd` parameters).
300+
date_range: Filters results by the specified date range. For example, use `7d` and
301+
`7dcontrol` to compare this week with the previous week. Use this parameter or
302+
set specific start and end dates (`dateStart` and `dateEnd` parameters).
303303
304-
date_start: Array of datetimes to filter the start of a series.
304+
date_start: Start of the date range.
305305
306-
format: Format results are returned in.
306+
format: Format in which results will be returned.
307307
308-
limit_per_group: Limit the number of objects (e.g., browsers, verticals, etc.) to the top items
309-
within the specified time range. If the limitPerGroup is set, the response will
310-
include that number of items, with the remaining items grouped together under an
311-
"other" category.
308+
limit_per_group: Limits the number of objects per group to the top items within the specified
309+
time range. If there are more items than the limit, the response will include
310+
the count of items, with any remaining items grouped together under an "other"
311+
category.
312312
313-
name: Array of names that will be used to name the series in responses.
313+
name: Array of names used to label the series in the response.
314314
315315
extra_headers: Send extra headers
316316

0 commit comments

Comments
 (0)
0