Skip to content

Commit 6f64262

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(api): OpenAPI spec update via Stainless API (#458)
1 parent 8b0e168 commit 6f64262

32 files changed

+273
-2381
lines changed

.stats.yml

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

api.md

+14-48
Large diffs are not rendered by default.

src/cloudflare/_client.py

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

@@ -285,7 +284,6 @@ def __init__(
285284
self.calls = resources.CallsResource(self)
286285
self.cloudforce_one = resources.CloudforceOneResource(self)
287286
self.event_notifications = resources.EventNotificationsResource(self)
288-
self.ai_gateway = resources.AIGatewayResource(self)
289287
self.with_raw_response = CloudflareWithRawResponse(self)
290288
self.with_streaming_response = CloudflareWithStreamedResponse(self)
291289

@@ -545,7 +543,6 @@ class AsyncCloudflare(AsyncAPIClient):
545543
calls: resources.AsyncCallsResource
546544
cloudforce_one: resources.AsyncCloudforceOneResource
547545
event_notifications: resources.AsyncEventNotificationsResource
548-
ai_gateway: resources.AsyncAIGatewayResource
549546
with_raw_response: AsyncCloudflareWithRawResponse
550547
with_streaming_response: AsyncCloudflareWithStreamedResponse
551548

@@ -702,7 +699,6 @@ def __init__(
702699
self.calls = resources.AsyncCallsResource(self)
703700
self.cloudforce_one = resources.AsyncCloudforceOneResource(self)
704701
self.event_notifications = resources.AsyncEventNotificationsResource(self)
705-
self.ai_gateway = resources.AsyncAIGatewayResource(self)
706702
self.with_raw_response = AsyncCloudflareWithRawResponse(self)
707703
self.with_streaming_response = AsyncCloudflareWithStreamedResponse(self)
708704

@@ -973,7 +969,6 @@ def __init__(self, client: Cloudflare) -> None:
973969
self.calls = resources.CallsResourceWithRawResponse(client.calls)
974970
self.cloudforce_one = resources.CloudforceOneResourceWithRawResponse(client.cloudforce_one)
975971
self.event_notifications = resources.EventNotificationsResourceWithRawResponse(client.event_notifications)
976-
self.ai_gateway = resources.AIGatewayResourceWithRawResponse(client.ai_gateway)
977972

978973

979974
class AsyncCloudflareWithRawResponse:
@@ -1073,7 +1068,6 @@ def __init__(self, client: AsyncCloudflare) -> None:
10731068
self.calls = resources.AsyncCallsResourceWithRawResponse(client.calls)
10741069
self.cloudforce_one = resources.AsyncCloudforceOneResourceWithRawResponse(client.cloudforce_one)
10751070
self.event_notifications = resources.AsyncEventNotificationsResourceWithRawResponse(client.event_notifications)
1076-
self.ai_gateway = resources.AsyncAIGatewayResourceWithRawResponse(client.ai_gateway)
10771071

10781072

10791073
class CloudflareWithStreamedResponse:
@@ -1173,7 +1167,6 @@ def __init__(self, client: Cloudflare) -> None:
11731167
self.calls = resources.CallsResourceWithStreamingResponse(client.calls)
11741168
self.cloudforce_one = resources.CloudforceOneResourceWithStreamingResponse(client.cloudforce_one)
11751169
self.event_notifications = resources.EventNotificationsResourceWithStreamingResponse(client.event_notifications)
1176-
self.ai_gateway = resources.AIGatewayResourceWithStreamingResponse(client.ai_gateway)
11771170

11781171

11791172
class AsyncCloudflareWithStreamedResponse:
@@ -1281,7 +1274,6 @@ def __init__(self, client: AsyncCloudflare) -> None:
12811274
self.event_notifications = resources.AsyncEventNotificationsResourceWithStreamingResponse(
12821275
client.event_notifications
12831276
)
1284-
self.ai_gateway = resources.AsyncAIGatewayResourceWithStreamingResponse(client.ai_gateway)
12851277

12861278

12871279
Client = Cloudflare

src/cloudflare/resources/__init__.py

-14
Original file line numberDiff line numberDiff line change
@@ -336,14 +336,6 @@
336336
AddressingResourceWithStreamingResponse,
337337
AsyncAddressingResourceWithStreamingResponse,
338338
)
339-
from .ai_gateway import (
340-
AIGatewayResource,
341-
AsyncAIGatewayResource,
342-
AIGatewayResourceWithRawResponse,
343-
AsyncAIGatewayResourceWithRawResponse,
344-
AIGatewayResourceWithStreamingResponse,
345-
AsyncAIGatewayResourceWithStreamingResponse,
346-
)
347339
from .audit_logs import (
348340
AuditLogsResource,
349341
AsyncAuditLogsResource,
@@ -1144,10 +1136,4 @@
11441136
"AsyncEventNotificationsResourceWithRawResponse",
11451137
"EventNotificationsResourceWithStreamingResponse",
11461138
"AsyncEventNotificationsResourceWithStreamingResponse",
1147-
"AIGatewayResource",
1148-
"AsyncAIGatewayResource",
1149-
"AIGatewayResourceWithRawResponse",
1150-
"AsyncAIGatewayResourceWithRawResponse",
1151-
"AIGatewayResourceWithStreamingResponse",
1152-
"AsyncAIGatewayResourceWithStreamingResponse",
11531139
]

src/cloudflare/resources/ai_gateway/__init__.py

-33
This file was deleted.

0 commit comments

Comments
 (0)