Skip to content

Commit 4423d8f

Browse files
feat(api): api update (#2344)
1 parent 8072d1e commit 4423d8f

24 files changed

+86
-84
lines changed

.stats.yml

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

src/cloudflare/resources/ai_gateway/ai_gateway.py

-16
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ def list(
230230
self,
231231
*,
232232
account_id: str,
233-
order_by: str | NotGiven = NOT_GIVEN,
234-
order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
235233
page: int | NotGiven = NOT_GIVEN,
236234
per_page: int | NotGiven = NOT_GIVEN,
237235
search: str | NotGiven = NOT_GIVEN,
@@ -246,10 +244,6 @@ def list(
246244
List Gateways
247245
248246
Args:
249-
order_by: Order By Column Name
250-
251-
order_by_direction: Order By Direction
252-
253247
search: Search by id
254248
255249
extra_headers: Send extra headers
@@ -272,8 +266,6 @@ def list(
272266
timeout=timeout,
273267
query=maybe_transform(
274268
{
275-
"order_by": order_by,
276-
"order_by_direction": order_by_direction,
277269
"page": page,
278270
"per_page": per_page,
279271
"search": search,
@@ -534,8 +526,6 @@ def list(
534526
self,
535527
*,
536528
account_id: str,
537-
order_by: str | NotGiven = NOT_GIVEN,
538-
order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
539529
page: int | NotGiven = NOT_GIVEN,
540530
per_page: int | NotGiven = NOT_GIVEN,
541531
search: str | NotGiven = NOT_GIVEN,
@@ -550,10 +540,6 @@ def list(
550540
List Gateways
551541
552542
Args:
553-
order_by: Order By Column Name
554-
555-
order_by_direction: Order By Direction
556-
557543
search: Search by id
558544
559545
extra_headers: Send extra headers
@@ -576,8 +562,6 @@ def list(
576562
timeout=timeout,
577563
query=maybe_transform(
578564
{
579-
"order_by": order_by,
580-
"order_by_direction": order_by_direction,
581565
"page": page,
582566
"per_page": per_page,
583567
"search": search,

src/cloudflare/resources/ai_gateway/datasets.py

-17
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from __future__ import annotations
44

55
from typing import Type, Iterable, cast
6-
from typing_extensions import Literal
76

87
import httpx
98

@@ -169,8 +168,6 @@ def list(
169168
account_id: str,
170169
enable: bool | NotGiven = NOT_GIVEN,
171170
name: str | NotGiven = NOT_GIVEN,
172-
order_by: str | NotGiven = NOT_GIVEN,
173-
order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
174171
page: int | NotGiven = NOT_GIVEN,
175172
per_page: int | NotGiven = NOT_GIVEN,
176173
search: str | NotGiven = NOT_GIVEN,
@@ -187,10 +184,6 @@ def list(
187184
Args:
188185
gateway_id: gateway id
189186
190-
order_by: Order By Column Name
191-
192-
order_by_direction: Order By Direction
193-
194187
search: Search by id, name, filters
195188
196189
extra_headers: Send extra headers
@@ -217,8 +210,6 @@ def list(
217210
{
218211
"enable": enable,
219212
"name": name,
220-
"order_by": order_by,
221-
"order_by_direction": order_by_direction,
222213
"page": page,
223214
"per_page": per_page,
224215
"search": search,
@@ -456,8 +447,6 @@ def list(
456447
account_id: str,
457448
enable: bool | NotGiven = NOT_GIVEN,
458449
name: str | NotGiven = NOT_GIVEN,
459-
order_by: str | NotGiven = NOT_GIVEN,
460-
order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
461450
page: int | NotGiven = NOT_GIVEN,
462451
per_page: int | NotGiven = NOT_GIVEN,
463452
search: str | NotGiven = NOT_GIVEN,
@@ -474,10 +463,6 @@ def list(
474463
Args:
475464
gateway_id: gateway id
476465
477-
order_by: Order By Column Name
478-
479-
order_by_direction: Order By Direction
480-
481466
search: Search by id, name, filters
482467
483468
extra_headers: Send extra headers
@@ -504,8 +489,6 @@ def list(
504489
{
505490
"enable": enable,
506491
"name": name,
507-
"order_by": order_by,
508-
"order_by_direction": order_by_direction,
509492
"page": page,
510493
"per_page": per_page,
511494
"search": search,

src/cloudflare/resources/ai_gateway/evaluations.py

-17
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
from __future__ import annotations
44

55
from typing import List, Type, cast
6-
from typing_extensions import Literal
76

87
import httpx
98

@@ -111,8 +110,6 @@ def list(
111110
*,
112111
account_id: str,
113112
name: str | NotGiven = NOT_GIVEN,
114-
order_by: str | NotGiven = NOT_GIVEN,
115-
order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
116113
page: int | NotGiven = NOT_GIVEN,
117114
per_page: int | NotGiven = NOT_GIVEN,
118115
processed: bool | NotGiven = NOT_GIVEN,
@@ -130,10 +127,6 @@ def list(
130127
Args:
131128
gateway_id: gateway id
132129
133-
order_by: Order By Column Name
134-
135-
order_by_direction: Order By Direction
136-
137130
search: Search by id, name
138131
139132
extra_headers: Send extra headers
@@ -159,8 +152,6 @@ def list(
159152
query=maybe_transform(
160153
{
161154
"name": name,
162-
"order_by": order_by,
163-
"order_by_direction": order_by_direction,
164155
"page": page,
165156
"per_page": per_page,
166157
"processed": processed,
@@ -342,8 +333,6 @@ def list(
342333
*,
343334
account_id: str,
344335
name: str | NotGiven = NOT_GIVEN,
345-
order_by: str | NotGiven = NOT_GIVEN,
346-
order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
347336
page: int | NotGiven = NOT_GIVEN,
348337
per_page: int | NotGiven = NOT_GIVEN,
349338
processed: bool | NotGiven = NOT_GIVEN,
@@ -361,10 +350,6 @@ def list(
361350
Args:
362351
gateway_id: gateway id
363352
364-
order_by: Order By Column Name
365-
366-
order_by_direction: Order By Direction
367-
368353
search: Search by id, name
369354
370355
extra_headers: Send extra headers
@@ -390,8 +375,6 @@ def list(
390375
query=maybe_transform(
391376
{
392377
"name": name,
393-
"order_by": order_by,
394-
"order_by_direction": order_by_direction,
395378
"page": page,
396379
"per_page": per_page,
397380
"processed": processed,

src/cloudflare/types/ai_gateway/ai_gateway_create_response.py

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ class AIGatewayCreateResponse(BaseModel):
1313
id: str
1414
"""gateway id"""
1515

16+
account_id: str
17+
18+
account_tag: str
19+
1620
cache_invalidate_on_update: bool
1721

1822
cache_ttl: Optional[int] = None
@@ -21,6 +25,8 @@ class AIGatewayCreateResponse(BaseModel):
2125

2226
created_at: datetime
2327

28+
internal_id: str
29+
2430
modified_at: datetime
2531

2632
rate_limiting_interval: Optional[int] = None

src/cloudflare/types/ai_gateway/ai_gateway_delete_response.py

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ class AIGatewayDeleteResponse(BaseModel):
1313
id: str
1414
"""gateway id"""
1515

16+
account_id: str
17+
18+
account_tag: str
19+
1620
cache_invalidate_on_update: bool
1721

1822
cache_ttl: Optional[int] = None
@@ -21,6 +25,8 @@ class AIGatewayDeleteResponse(BaseModel):
2125

2226
created_at: datetime
2327

28+
internal_id: str
29+
2430
modified_at: datetime
2531

2632
rate_limiting_interval: Optional[int] = None

src/cloudflare/types/ai_gateway/ai_gateway_get_response.py

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ class AIGatewayGetResponse(BaseModel):
1313
id: str
1414
"""gateway id"""
1515

16+
account_id: str
17+
18+
account_tag: str
19+
1620
cache_invalidate_on_update: bool
1721

1822
cache_ttl: Optional[int] = None
@@ -21,6 +25,8 @@ class AIGatewayGetResponse(BaseModel):
2125

2226
created_at: datetime
2327

28+
internal_id: str
29+
2430
modified_at: datetime
2531

2632
rate_limiting_interval: Optional[int] = None

src/cloudflare/types/ai_gateway/ai_gateway_list_params.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,14 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Literal, Required, TypedDict
5+
from typing_extensions import Required, TypedDict
66

77
__all__ = ["AIGatewayListParams"]
88

99

1010
class AIGatewayListParams(TypedDict, total=False):
1111
account_id: Required[str]
1212

13-
order_by: str
14-
"""Order By Column Name"""
15-
16-
order_by_direction: Literal["asc", "desc"]
17-
"""Order By Direction"""
18-
1913
page: int
2014

2115
per_page: int

src/cloudflare/types/ai_gateway/ai_gateway_list_response.py

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ class AIGatewayListResponse(BaseModel):
1313
id: str
1414
"""gateway id"""
1515

16+
account_id: str
17+
18+
account_tag: str
19+
1620
cache_invalidate_on_update: bool
1721

1822
cache_ttl: Optional[int] = None
@@ -21,6 +25,8 @@ class AIGatewayListResponse(BaseModel):
2125

2226
created_at: datetime
2327

28+
internal_id: str
29+
2430
modified_at: datetime
2531

2632
rate_limiting_interval: Optional[int] = None

src/cloudflare/types/ai_gateway/ai_gateway_update_response.py

+6
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ class AIGatewayUpdateResponse(BaseModel):
1313
id: str
1414
"""gateway id"""
1515

16+
account_id: str
17+
18+
account_tag: str
19+
1620
cache_invalidate_on_update: bool
1721

1822
cache_ttl: Optional[int] = None
@@ -21,6 +25,8 @@ class AIGatewayUpdateResponse(BaseModel):
2125

2226
created_at: datetime
2327

28+
internal_id: str
29+
2430
modified_at: datetime
2531

2632
rate_limiting_interval: Optional[int] = None

src/cloudflare/types/ai_gateway/dataset_create_response.py

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ class Filter(BaseModel):
3434
class DatasetCreateResponse(BaseModel):
3535
id: str
3636

37+
account_id: str
38+
39+
account_tag: str
40+
3741
created_at: datetime
3842

3943
enable: bool

src/cloudflare/types/ai_gateway/dataset_delete_response.py

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ class Filter(BaseModel):
3434
class DatasetDeleteResponse(BaseModel):
3535
id: str
3636

37+
account_id: str
38+
39+
account_tag: str
40+
3741
created_at: datetime
3842

3943
enable: bool

src/cloudflare/types/ai_gateway/dataset_get_response.py

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ class Filter(BaseModel):
3434
class DatasetGetResponse(BaseModel):
3535
id: str
3636

37+
account_id: str
38+
39+
account_tag: str
40+
3741
created_at: datetime
3842

3943
enable: bool

src/cloudflare/types/ai_gateway/dataset_list_params.py

+1-7
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing_extensions import Literal, Required, TypedDict
5+
from typing_extensions import Required, TypedDict
66

77
__all__ = ["DatasetListParams"]
88

@@ -14,12 +14,6 @@ class DatasetListParams(TypedDict, total=False):
1414

1515
name: str
1616

17-
order_by: str
18-
"""Order By Column Name"""
19-
20-
order_by_direction: Literal["asc", "desc"]
21-
"""Order By Direction"""
22-
2317
page: int
2418

2519
per_page: int

src/cloudflare/types/ai_gateway/dataset_list_response.py

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ class Filter(BaseModel):
3434
class DatasetListResponse(BaseModel):
3535
id: str
3636

37+
account_id: str
38+
39+
account_tag: str
40+
3741
created_at: datetime
3842

3943
enable: bool

src/cloudflare/types/ai_gateway/dataset_update_response.py

+4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ class Filter(BaseModel):
3434
class DatasetUpdateResponse(BaseModel):
3535
id: str
3636

37+
account_id: str
38+
39+
account_tag: str
40+
3741
created_at: datetime
3842

3943
enable: bool

0 commit comments

Comments
 (0)