Skip to content

Commit 606e4de

Browse files
chore(api): update composite API spec
1 parent 43a4557 commit 606e4de

25 files changed

+140
-74
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1940
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-5fc91fe703941755eabe8e53f6d53056d31c38bff2f098dfa2389512e52b586f.yml
3-
openapi_spec_hash: 7d4707f46e5b07408d6a083bfe164f51
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-d3b3813ba8fb0b5303cfad8fcbd363941c494711e4cce61069553692b664774f.yml
3+
openapi_spec_hash: 4f467a53fd61500db4f7561dcfaaa088
44
config_hash: 3e9cdaaf8fbff19639d218f89b85a116

src/cloudflare/resources/load_balancers/monitors/monitors.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, Type, cast
5+
from typing import Dict, Type, Optional, cast
66
from typing_extensions import Literal
77

88
import httpx
@@ -86,7 +86,7 @@ def create(
8686
interval: int | Omit = omit,
8787
method: str | Omit = omit,
8888
path: str | Omit = omit,
89-
port: int | Omit = omit,
89+
port: Optional[int] | Omit = omit,
9090
probe_zone: str | Omit = omit,
9191
retries: int | Omit = omit,
9292
load_balancer_monitor_timeout: int | Omit = omit,
@@ -212,7 +212,7 @@ def update(
212212
interval: int | Omit = omit,
213213
method: str | Omit = omit,
214214
path: str | Omit = omit,
215-
port: int | Omit = omit,
215+
port: Optional[int] | Omit = omit,
216216
probe_zone: str | Omit = omit,
217217
retries: int | Omit = omit,
218218
load_balancer_monitor_timeout: int | Omit = omit,
@@ -418,7 +418,7 @@ def edit(
418418
interval: int | Omit = omit,
419419
method: str | Omit = omit,
420420
path: str | Omit = omit,
421-
port: int | Omit = omit,
421+
port: Optional[int] | Omit = omit,
422422
probe_zone: str | Omit = omit,
423423
retries: int | Omit = omit,
424424
load_balancer_monitor_timeout: int | Omit = omit,
@@ -616,7 +616,7 @@ async def create(
616616
interval: int | Omit = omit,
617617
method: str | Omit = omit,
618618
path: str | Omit = omit,
619-
port: int | Omit = omit,
619+
port: Optional[int] | Omit = omit,
620620
probe_zone: str | Omit = omit,
621621
retries: int | Omit = omit,
622622
load_balancer_monitor_timeout: int | Omit = omit,
@@ -742,7 +742,7 @@ async def update(
742742
interval: int | Omit = omit,
743743
method: str | Omit = omit,
744744
path: str | Omit = omit,
745-
port: int | Omit = omit,
745+
port: Optional[int] | Omit = omit,
746746
probe_zone: str | Omit = omit,
747747
retries: int | Omit = omit,
748748
load_balancer_monitor_timeout: int | Omit = omit,
@@ -948,7 +948,7 @@ async def edit(
948948
interval: int | Omit = omit,
949949
method: str | Omit = omit,
950950
path: str | Omit = omit,
951-
port: int | Omit = omit,
951+
port: Optional[int] | Omit = omit,
952952
probe_zone: str | Omit = omit,
953953
retries: int | Omit = omit,
954954
load_balancer_monitor_timeout: int | Omit = omit,

src/cloudflare/resources/load_balancers/monitors/previews.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, Type, cast
5+
from typing import Dict, Type, Optional, cast
66
from typing_extensions import Literal
77

88
import httpx
@@ -61,7 +61,7 @@ def create(
6161
interval: int | Omit = omit,
6262
method: str | Omit = omit,
6363
path: str | Omit = omit,
64-
port: int | Omit = omit,
64+
port: Optional[int] | Omit = omit,
6565
probe_zone: str | Omit = omit,
6666
retries: int | Omit = omit,
6767
load_balancer_monitor_timeout: int | Omit = omit,
@@ -212,7 +212,7 @@ async def create(
212212
interval: int | Omit = omit,
213213
method: str | Omit = omit,
214214
path: str | Omit = omit,
215-
port: int | Omit = omit,
215+
port: Optional[int] | Omit = omit,
216216
probe_zone: str | Omit = omit,
217217
retries: int | Omit = omit,
218218
load_balancer_monitor_timeout: int | Omit = omit,

src/cloudflare/resources/load_balancers/pools/health.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Dict, Type, cast
5+
from typing import Dict, Type, Optional, cast
66
from typing_extensions import Literal
77

88
import httpx
@@ -62,7 +62,7 @@ def create(
6262
interval: int | Omit = omit,
6363
method: str | Omit = omit,
6464
path: str | Omit = omit,
65-
port: int | Omit = omit,
65+
port: Optional[int] | Omit = omit,
6666
probe_zone: str | Omit = omit,
6767
retries: int | Omit = omit,
6868
load_balancer_monitor_timeout: int | Omit = omit,
@@ -255,7 +255,7 @@ async def create(
255255
interval: int | Omit = omit,
256256
method: str | Omit = omit,
257257
path: str | Omit = omit,
258-
port: int | Omit = omit,
258+
port: Optional[int] | Omit = omit,
259259
probe_zone: str | Omit = omit,
260260
retries: int | Omit = omit,
261261
load_balancer_monitor_timeout: int | Omit = omit,

src/cloudflare/resources/load_balancers/pools/pools.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -91,14 +91,14 @@ def create(
9191
description: str | Omit = omit,
9292
enabled: bool | Omit = omit,
9393
latitude: float | Omit = omit,
94-
load_shedding: LoadSheddingParam | Omit = omit,
94+
load_shedding: Optional[LoadSheddingParam] | Omit = omit,
9595
longitude: float | Omit = omit,
9696
minimum_origins: int | Omit = omit,
9797
monitor: str | Omit = omit,
9898
monitor_group: str | Omit = omit,
9999
notification_email: str | Omit = omit,
100100
notification_filter: Optional[NotificationFilterParam] | Omit = omit,
101-
origin_steering: OriginSteeringParam | Omit = omit,
101+
origin_steering: Optional[OriginSteeringParam] | Omit = omit,
102102
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
103103
# The extra values given here take precedence over values defined on the client or passed to this method.
104104
extra_headers: Headers | None = None,
@@ -205,14 +205,14 @@ def update(
205205
description: str | Omit = omit,
206206
enabled: bool | Omit = omit,
207207
latitude: float | Omit = omit,
208-
load_shedding: LoadSheddingParam | Omit = omit,
208+
load_shedding: Optional[LoadSheddingParam] | Omit = omit,
209209
longitude: float | Omit = omit,
210210
minimum_origins: int | Omit = omit,
211211
monitor: str | Omit = omit,
212212
monitor_group: str | Omit = omit,
213213
notification_email: str | Omit = omit,
214214
notification_filter: Optional[NotificationFilterParam] | Omit = omit,
215-
origin_steering: OriginSteeringParam | Omit = omit,
215+
origin_steering: Optional[OriginSteeringParam] | Omit = omit,
216216
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
217217
# The extra values given here take precedence over values defined on the client or passed to this method.
218218
extra_headers: Headers | None = None,
@@ -456,15 +456,15 @@ def edit(
456456
description: str | Omit = omit,
457457
enabled: bool | Omit = omit,
458458
latitude: float | Omit = omit,
459-
load_shedding: LoadSheddingParam | Omit = omit,
459+
load_shedding: Optional[LoadSheddingParam] | Omit = omit,
460460
longitude: float | Omit = omit,
461461
minimum_origins: int | Omit = omit,
462462
monitor: str | Omit = omit,
463463
monitor_group: str | Omit = omit,
464464
name: str | Omit = omit,
465465
notification_email: str | Omit = omit,
466466
notification_filter: Optional[NotificationFilterParam] | Omit = omit,
467-
origin_steering: OriginSteeringParam | Omit = omit,
467+
origin_steering: Optional[OriginSteeringParam] | Omit = omit,
468468
origins: Iterable[OriginParam] | Omit = omit,
469469
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
470470
# The extra values given here take precedence over values defined on the client or passed to this method.
@@ -647,14 +647,14 @@ async def create(
647647
description: str | Omit = omit,
648648
enabled: bool | Omit = omit,
649649
latitude: float | Omit = omit,
650-
load_shedding: LoadSheddingParam | Omit = omit,
650+
load_shedding: Optional[LoadSheddingParam] | Omit = omit,
651651
longitude: float | Omit = omit,
652652
minimum_origins: int | Omit = omit,
653653
monitor: str | Omit = omit,
654654
monitor_group: str | Omit = omit,
655655
notification_email: str | Omit = omit,
656656
notification_filter: Optional[NotificationFilterParam] | Omit = omit,
657-
origin_steering: OriginSteeringParam | Omit = omit,
657+
origin_steering: Optional[OriginSteeringParam] | Omit = omit,
658658
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
659659
# The extra values given here take precedence over values defined on the client or passed to this method.
660660
extra_headers: Headers | None = None,
@@ -761,14 +761,14 @@ async def update(
761761
description: str | Omit = omit,
762762
enabled: bool | Omit = omit,
763763
latitude: float | Omit = omit,
764-
load_shedding: LoadSheddingParam | Omit = omit,
764+
load_shedding: Optional[LoadSheddingParam] | Omit = omit,
765765
longitude: float | Omit = omit,
766766
minimum_origins: int | Omit = omit,
767767
monitor: str | Omit = omit,
768768
monitor_group: str | Omit = omit,
769769
notification_email: str | Omit = omit,
770770
notification_filter: Optional[NotificationFilterParam] | Omit = omit,
771-
origin_steering: OriginSteeringParam | Omit = omit,
771+
origin_steering: Optional[OriginSteeringParam] | Omit = omit,
772772
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
773773
# The extra values given here take precedence over values defined on the client or passed to this method.
774774
extra_headers: Headers | None = None,
@@ -1012,15 +1012,15 @@ async def edit(
10121012
description: str | Omit = omit,
10131013
enabled: bool | Omit = omit,
10141014
latitude: float | Omit = omit,
1015-
load_shedding: LoadSheddingParam | Omit = omit,
1015+
load_shedding: Optional[LoadSheddingParam] | Omit = omit,
10161016
longitude: float | Omit = omit,
10171017
minimum_origins: int | Omit = omit,
10181018
monitor: str | Omit = omit,
10191019
monitor_group: str | Omit = omit,
10201020
name: str | Omit = omit,
10211021
notification_email: str | Omit = omit,
10221022
notification_filter: Optional[NotificationFilterParam] | Omit = omit,
1023-
origin_steering: OriginSteeringParam | Omit = omit,
1023+
origin_steering: Optional[OriginSteeringParam] | Omit = omit,
10241024
origins: Iterable[OriginParam] | Omit = omit,
10251025
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
10261026
# The extra values given here take precedence over values defined on the client or passed to this method.

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

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Type, Union, cast
5+
from typing import List, Type, Union, cast
66
from datetime import datetime
77
from typing_extensions import Literal
88

@@ -49,9 +49,10 @@ def with_streaming_response(self) -> WebCrawlersResourceWithStreamingResponse:
4949

5050
def summary(
5151
self,
52-
dimension: Literal["USER_AGENT", "REFERER", "CRAWL_REFER_RATIO", "VERTICAL", "INDUSTRY"],
52+
dimension: Literal["CLIENT_TYPE", "USER_AGENT", "REFERER", "CRAWL_REFER_RATIO", "VERTICAL", "INDUSTRY"],
5353
*,
5454
bot_operator: SequenceNotStr[str] | Omit = omit,
55+
client_type: List[Literal["HUMAN", "NON_AI_BOT", "AI_BOT", "MIXED_PURPOSE"]] | Omit = omit,
5556
date_end: SequenceNotStr[Union[str, datetime]] | Omit = omit,
5657
date_range: SequenceNotStr[str] | Omit = omit,
5758
date_start: SequenceNotStr[Union[str, datetime]] | Omit = omit,
@@ -76,6 +77,8 @@ def summary(
7677
7778
bot_operator: Filters results by bot operator.
7879
80+
client_type: Filters results by agent type.
81+
7982
date_end: End of the date range (inclusive).
8083
8184
date_range: Filters results by date range. For example, use `7d` and `7dcontrol` to compare
@@ -116,6 +119,7 @@ def summary(
116119
query=maybe_transform(
117120
{
118121
"bot_operator": bot_operator,
122+
"client_type": client_type,
119123
"date_end": date_end,
120124
"date_range": date_range,
121125
"date_start": date_start,
@@ -134,10 +138,11 @@ def summary(
134138

135139
def timeseries_groups(
136140
self,
137-
dimension: Literal["USER_AGENT", "REFERER", "CRAWL_REFER_RATIO", "VERTICAL", "INDUSTRY"],
141+
dimension: Literal["CLIENT_TYPE", "USER_AGENT", "REFERER", "CRAWL_REFER_RATIO", "VERTICAL", "INDUSTRY"],
138142
*,
139143
agg_interval: Literal["15m", "1h", "1d", "1w"] | Omit = omit,
140144
bot_operator: SequenceNotStr[str] | Omit = omit,
145+
client_type: List[Literal["HUMAN", "NON_AI_BOT", "AI_BOT", "MIXED_PURPOSE"]] | Omit = omit,
141146
date_end: SequenceNotStr[Union[str, datetime]] | Omit = omit,
142147
date_range: SequenceNotStr[str] | Omit = omit,
143148
date_start: SequenceNotStr[Union[str, datetime]] | Omit = omit,
@@ -166,6 +171,8 @@ def timeseries_groups(
166171
167172
bot_operator: Filters results by bot operator.
168173
174+
client_type: Filters results by agent type.
175+
169176
date_end: End of the date range (inclusive).
170177
171178
date_range: Filters results by date range. For example, use `7d` and `7dcontrol` to compare
@@ -207,6 +214,7 @@ def timeseries_groups(
207214
{
208215
"agg_interval": agg_interval,
209216
"bot_operator": bot_operator,
217+
"client_type": client_type,
210218
"date_end": date_end,
211219
"date_range": date_range,
212220
"date_start": date_start,
@@ -246,9 +254,10 @@ def with_streaming_response(self) -> AsyncWebCrawlersResourceWithStreamingRespon
246254

247255
async def summary(
248256
self,
249-
dimension: Literal["USER_AGENT", "REFERER", "CRAWL_REFER_RATIO", "VERTICAL", "INDUSTRY"],
257+
dimension: Literal["CLIENT_TYPE", "USER_AGENT", "REFERER", "CRAWL_REFER_RATIO", "VERTICAL", "INDUSTRY"],
250258
*,
251259
bot_operator: SequenceNotStr[str] | Omit = omit,
260+
client_type: List[Literal["HUMAN", "NON_AI_BOT", "AI_BOT", "MIXED_PURPOSE"]] | Omit = omit,
252261
date_end: SequenceNotStr[Union[str, datetime]] | Omit = omit,
253262
date_range: SequenceNotStr[str] | Omit = omit,
254263
date_start: SequenceNotStr[Union[str, datetime]] | Omit = omit,
@@ -273,6 +282,8 @@ async def summary(
273282
274283
bot_operator: Filters results by bot operator.
275284
285+
client_type: Filters results by agent type.
286+
276287
date_end: End of the date range (inclusive).
277288
278289
date_range: Filters results by date range. For example, use `7d` and `7dcontrol` to compare
@@ -313,6 +324,7 @@ async def summary(
313324
query=await async_maybe_transform(
314325
{
315326
"bot_operator": bot_operator,
327+
"client_type": client_type,
316328
"date_end": date_end,
317329
"date_range": date_range,
318330
"date_start": date_start,
@@ -331,10 +343,11 @@ async def summary(
331343

332344
async def timeseries_groups(
333345
self,
334-
dimension: Literal["USER_AGENT", "REFERER", "CRAWL_REFER_RATIO", "VERTICAL", "INDUSTRY"],
346+
dimension: Literal["CLIENT_TYPE", "USER_AGENT", "REFERER", "CRAWL_REFER_RATIO", "VERTICAL", "INDUSTRY"],
335347
*,
336348
agg_interval: Literal["15m", "1h", "1d", "1w"] | Omit = omit,
337349
bot_operator: SequenceNotStr[str] | Omit = omit,
350+
client_type: List[Literal["HUMAN", "NON_AI_BOT", "AI_BOT", "MIXED_PURPOSE"]] | Omit = omit,
338351
date_end: SequenceNotStr[Union[str, datetime]] | Omit = omit,
339352
date_range: SequenceNotStr[str] | Omit = omit,
340353
date_start: SequenceNotStr[Union[str, datetime]] | Omit = omit,
@@ -363,6 +376,8 @@ async def timeseries_groups(
363376
364377
bot_operator: Filters results by bot operator.
365378
379+
client_type: Filters results by agent type.
380+
366381
date_end: End of the date range (inclusive).
367382
368383
date_range: Filters results by date range. For example, use `7d` and `7dcontrol` to compare
@@ -404,6 +419,7 @@ async def timeseries_groups(
404419
{
405420
"agg_interval": agg_interval,
406421
"bot_operator": bot_operator,
422+
"client_type": client_type,
407423
"date_end": date_end,
408424
"date_range": date_range,
409425
"date_start": date_start,

src/cloudflare/resources/zero_trust/gateway/lists/lists.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def create(
6464
*,
6565
account_id: str,
6666
name: str,
67-
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP"],
67+
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE"],
6868
description: str | Omit = omit,
6969
items: Iterable[list_create_params.Item] | Omit = omit,
7070
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -182,7 +182,7 @@ def list(
182182
self,
183183
*,
184184
account_id: str,
185-
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP"] | Omit = omit,
185+
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE"] | Omit = omit,
186186
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
187187
# The extra values given here take precedence over values defined on the client or passed to this method.
188188
extra_headers: Headers | None = None,
@@ -388,7 +388,7 @@ async def create(
388388
*,
389389
account_id: str,
390390
name: str,
391-
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP"],
391+
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE"],
392392
description: str | Omit = omit,
393393
items: Iterable[list_create_params.Item] | Omit = omit,
394394
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -506,7 +506,7 @@ def list(
506506
self,
507507
*,
508508
account_id: str,
509-
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP"] | Omit = omit,
509+
type: Literal["SERIAL", "URL", "DOMAIN", "EMAIL", "IP", "CATEGORY", "LOCATION", "DEVICE"] | Omit = omit,
510510
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
511511
# The extra values given here take precedence over values defined on the client or passed to this method.
512512
extra_headers: Headers | None = None,

0 commit comments

Comments
 (0)