Skip to content

Commit cc6768e

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): update via SDK Studio (#456)
1 parent 64acf4e commit cc6768e

21 files changed

+2091
-1
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1269
1+
configured_endpoints: 1275
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-ecba01cd225d19e1decd3caa323399e3f580a2abbdd4a756fa536063651facee.yml

api.md

+34
Original file line numberDiff line numberDiff line change
@@ -7435,3 +7435,37 @@ Methods:
74357435

74367436
- <code title="put /accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration/queues/{queue_id}">client.event_notifications.r2.configuration.queues.<a href="./src/cloudflare/resources/event_notifications/r2/configuration/queues.py">update</a>(queue_id, \*, account_id, bucket_name, \*\*<a href="src/cloudflare/types/event_notifications/r2/configuration/queue_update_params.py">params</a>) -> <a href="./src/cloudflare/types/event_notifications/r2/configuration/queue_update_response.py">QueueUpdateResponse</a></code>
74377437
- <code title="delete /accounts/{account_id}/event_notifications/r2/{bucket_name}/configuration/queues/{queue_id}">client.event_notifications.r2.configuration.queues.<a href="./src/cloudflare/resources/event_notifications/r2/configuration/queues.py">delete</a>(queue_id, \*, account_id, bucket_name) -> <a href="./src/cloudflare/types/event_notifications/r2/configuration/queue_delete_response.py">QueueDeleteResponse</a></code>
7438+
7439+
# AIGateway
7440+
7441+
Types:
7442+
7443+
```python
7444+
from cloudflare.types.ai_gateway import (
7445+
AIGatewayCreateResponse,
7446+
AIGatewayUpdateResponse,
7447+
AIGatewayListResponse,
7448+
AIGatewayDeleteResponse,
7449+
AIGatewayGetResponse,
7450+
)
7451+
```
7452+
7453+
Methods:
7454+
7455+
- <code title="post /accounts/{account_tag}/ai-gateway/gateways">client.ai_gateway.<a href="./src/cloudflare/resources/ai_gateway/ai_gateway.py">create</a>(account_tag, \*\*<a href="src/cloudflare/types/ai_gateway/ai_gateway_create_params.py">params</a>) -> <a href="./src/cloudflare/types/ai_gateway/ai_gateway_create_response.py">AIGatewayCreateResponse</a></code>
7456+
- <code title="put /accounts/{account_tag}/ai-gateway/gateways/{id}">client.ai_gateway.<a href="./src/cloudflare/resources/ai_gateway/ai_gateway.py">update</a>(id, \*, account_tag, \*\*<a href="src/cloudflare/types/ai_gateway/ai_gateway_update_params.py">params</a>) -> <a href="./src/cloudflare/types/ai_gateway/ai_gateway_update_response.py">AIGatewayUpdateResponse</a></code>
7457+
- <code title="get /accounts/{account_tag}/ai-gateway/gateways">client.ai_gateway.<a href="./src/cloudflare/resources/ai_gateway/ai_gateway.py">list</a>(account_tag, \*\*<a href="src/cloudflare/types/ai_gateway/ai_gateway_list_params.py">params</a>) -> <a href="./src/cloudflare/types/ai_gateway/ai_gateway_list_response.py">SyncV4PagePaginationArray[AIGatewayListResponse]</a></code>
7458+
- <code title="delete /accounts/{account_tag}/ai-gateway/gateways/{id}">client.ai_gateway.<a href="./src/cloudflare/resources/ai_gateway/ai_gateway.py">delete</a>(id, \*, account_tag) -> <a href="./src/cloudflare/types/ai_gateway/ai_gateway_delete_response.py">AIGatewayDeleteResponse</a></code>
7459+
- <code title="get /accounts/{account_tag}/ai-gateway/gateways/{id}">client.ai_gateway.<a href="./src/cloudflare/resources/ai_gateway/ai_gateway.py">get</a>(id, \*, account_tag) -> <a href="./src/cloudflare/types/ai_gateway/ai_gateway_get_response.py">AIGatewayGetResponse</a></code>
7460+
7461+
## Logs
7462+
7463+
Types:
7464+
7465+
```python
7466+
from cloudflare.types.ai_gateway import LogGetResponse
7467+
```
7468+
7469+
Methods:
7470+
7471+
- <code title="get /accounts/{account_tag}/ai-gateway/gateways/{id}/logs">client.ai_gateway.logs.<a href="./src/cloudflare/resources/ai_gateway/logs.py">get</a>(id, \*, account_tag, \*\*<a href="src/cloudflare/types/ai_gateway/log_get_params.py">params</a>) -> <a href="./src/cloudflare/types/ai_gateway/log_get_response.py">LogGetResponse</a></code>

src/cloudflare/_client.py

+8
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ class Cloudflare(SyncAPIClient):
128128
calls: resources.CallsResource
129129
cloudforce_one: resources.CloudforceOneResource
130130
event_notifications: resources.EventNotificationsResource
131+
ai_gateway: resources.AIGatewayResource
131132
with_raw_response: CloudflareWithRawResponse
132133
with_streaming_response: CloudflareWithStreamedResponse
133134

@@ -284,6 +285,7 @@ def __init__(
284285
self.calls = resources.CallsResource(self)
285286
self.cloudforce_one = resources.CloudforceOneResource(self)
286287
self.event_notifications = resources.EventNotificationsResource(self)
288+
self.ai_gateway = resources.AIGatewayResource(self)
287289
self.with_raw_response = CloudflareWithRawResponse(self)
288290
self.with_streaming_response = CloudflareWithStreamedResponse(self)
289291

@@ -543,6 +545,7 @@ class AsyncCloudflare(AsyncAPIClient):
543545
calls: resources.AsyncCallsResource
544546
cloudforce_one: resources.AsyncCloudforceOneResource
545547
event_notifications: resources.AsyncEventNotificationsResource
548+
ai_gateway: resources.AsyncAIGatewayResource
546549
with_raw_response: AsyncCloudflareWithRawResponse
547550
with_streaming_response: AsyncCloudflareWithStreamedResponse
548551

@@ -699,6 +702,7 @@ def __init__(
699702
self.calls = resources.AsyncCallsResource(self)
700703
self.cloudforce_one = resources.AsyncCloudforceOneResource(self)
701704
self.event_notifications = resources.AsyncEventNotificationsResource(self)
705+
self.ai_gateway = resources.AsyncAIGatewayResource(self)
702706
self.with_raw_response = AsyncCloudflareWithRawResponse(self)
703707
self.with_streaming_response = AsyncCloudflareWithStreamedResponse(self)
704708

@@ -969,6 +973,7 @@ def __init__(self, client: Cloudflare) -> None:
969973
self.calls = resources.CallsResourceWithRawResponse(client.calls)
970974
self.cloudforce_one = resources.CloudforceOneResourceWithRawResponse(client.cloudforce_one)
971975
self.event_notifications = resources.EventNotificationsResourceWithRawResponse(client.event_notifications)
976+
self.ai_gateway = resources.AIGatewayResourceWithRawResponse(client.ai_gateway)
972977

973978

974979
class AsyncCloudflareWithRawResponse:
@@ -1068,6 +1073,7 @@ def __init__(self, client: AsyncCloudflare) -> None:
10681073
self.calls = resources.AsyncCallsResourceWithRawResponse(client.calls)
10691074
self.cloudforce_one = resources.AsyncCloudforceOneResourceWithRawResponse(client.cloudforce_one)
10701075
self.event_notifications = resources.AsyncEventNotificationsResourceWithRawResponse(client.event_notifications)
1076+
self.ai_gateway = resources.AsyncAIGatewayResourceWithRawResponse(client.ai_gateway)
10711077

10721078

10731079
class CloudflareWithStreamedResponse:
@@ -1167,6 +1173,7 @@ def __init__(self, client: Cloudflare) -> None:
11671173
self.calls = resources.CallsResourceWithStreamingResponse(client.calls)
11681174
self.cloudforce_one = resources.CloudforceOneResourceWithStreamingResponse(client.cloudforce_one)
11691175
self.event_notifications = resources.EventNotificationsResourceWithStreamingResponse(client.event_notifications)
1176+
self.ai_gateway = resources.AIGatewayResourceWithStreamingResponse(client.ai_gateway)
11701177

11711178

11721179
class AsyncCloudflareWithStreamedResponse:
@@ -1274,6 +1281,7 @@ def __init__(self, client: AsyncCloudflare) -> None:
12741281
self.event_notifications = resources.AsyncEventNotificationsResourceWithStreamingResponse(
12751282
client.event_notifications
12761283
)
1284+
self.ai_gateway = resources.AsyncAIGatewayResourceWithStreamingResponse(client.ai_gateway)
12771285

12781286

12791287
Client = Cloudflare

src/cloudflare/resources/__init__.py

+14
Original file line numberDiff line numberDiff line change
@@ -336,6 +336,14 @@
336336
AddressingResourceWithStreamingResponse,
337337
AsyncAddressingResourceWithStreamingResponse,
338338
)
339+
from .ai_gateway import (
340+
AIGatewayResource,
341+
AsyncAIGatewayResource,
342+
AIGatewayResourceWithRawResponse,
343+
AsyncAIGatewayResourceWithRawResponse,
344+
AIGatewayResourceWithStreamingResponse,
345+
AsyncAIGatewayResourceWithStreamingResponse,
346+
)
339347
from .audit_logs import (
340348
AuditLogsResource,
341349
AsyncAuditLogsResource,
@@ -1136,4 +1144,10 @@
11361144
"AsyncEventNotificationsResourceWithRawResponse",
11371145
"EventNotificationsResourceWithStreamingResponse",
11381146
"AsyncEventNotificationsResourceWithStreamingResponse",
1147+
"AIGatewayResource",
1148+
"AsyncAIGatewayResource",
1149+
"AIGatewayResourceWithRawResponse",
1150+
"AsyncAIGatewayResourceWithRawResponse",
1151+
"AIGatewayResourceWithStreamingResponse",
1152+
"AsyncAIGatewayResourceWithStreamingResponse",
11391153
]
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .logs import (
4+
LogsResource,
5+
AsyncLogsResource,
6+
LogsResourceWithRawResponse,
7+
AsyncLogsResourceWithRawResponse,
8+
LogsResourceWithStreamingResponse,
9+
AsyncLogsResourceWithStreamingResponse,
10+
)
11+
from .ai_gateway import (
12+
AIGatewayResource,
13+
AsyncAIGatewayResource,
14+
AIGatewayResourceWithRawResponse,
15+
AsyncAIGatewayResourceWithRawResponse,
16+
AIGatewayResourceWithStreamingResponse,
17+
AsyncAIGatewayResourceWithStreamingResponse,
18+
)
19+
20+
__all__ = [
21+
"LogsResource",
22+
"AsyncLogsResource",
23+
"LogsResourceWithRawResponse",
24+
"AsyncLogsResourceWithRawResponse",
25+
"LogsResourceWithStreamingResponse",
26+
"AsyncLogsResourceWithStreamingResponse",
27+
"AIGatewayResource",
28+
"AsyncAIGatewayResource",
29+
"AIGatewayResourceWithRawResponse",
30+
"AsyncAIGatewayResourceWithRawResponse",
31+
"AIGatewayResourceWithStreamingResponse",
32+
"AsyncAIGatewayResourceWithStreamingResponse",
33+
]

0 commit comments

Comments
 (0)