Skip to content

Commit

Permalink
feat(api): OpenAPI spec update via Stainless API (#458)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] authored and stainless-bot committed May 7, 2024
1 parent 8b0e168 commit 6f64262
Show file tree
Hide file tree
Showing 32 changed files with 273 additions and 2,381 deletions.
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 1275
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e0f14b3972aa9a5ae69697fce41ee4de0f7c39ead64f2b6c27434037717a30e5.yml
configured_endpoints: 1269
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-66b404214530cc73c44f34f297dad6bc8da0645b63e61d9d4fcbeb301e127e65.yml
62 changes: 14 additions & 48 deletions api.md

Large diffs are not rendered by default.

8 changes: 0 additions & 8 deletions src/cloudflare/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ class Cloudflare(SyncAPIClient):
calls: resources.CallsResource
cloudforce_one: resources.CloudforceOneResource
event_notifications: resources.EventNotificationsResource
ai_gateway: resources.AIGatewayResource
with_raw_response: CloudflareWithRawResponse
with_streaming_response: CloudflareWithStreamedResponse

Expand Down Expand Up @@ -285,7 +284,6 @@ def __init__(
self.calls = resources.CallsResource(self)
self.cloudforce_one = resources.CloudforceOneResource(self)
self.event_notifications = resources.EventNotificationsResource(self)
self.ai_gateway = resources.AIGatewayResource(self)
self.with_raw_response = CloudflareWithRawResponse(self)
self.with_streaming_response = CloudflareWithStreamedResponse(self)

Expand Down Expand Up @@ -545,7 +543,6 @@ class AsyncCloudflare(AsyncAPIClient):
calls: resources.AsyncCallsResource
cloudforce_one: resources.AsyncCloudforceOneResource
event_notifications: resources.AsyncEventNotificationsResource
ai_gateway: resources.AsyncAIGatewayResource
with_raw_response: AsyncCloudflareWithRawResponse
with_streaming_response: AsyncCloudflareWithStreamedResponse

Expand Down Expand Up @@ -702,7 +699,6 @@ def __init__(
self.calls = resources.AsyncCallsResource(self)
self.cloudforce_one = resources.AsyncCloudforceOneResource(self)
self.event_notifications = resources.AsyncEventNotificationsResource(self)
self.ai_gateway = resources.AsyncAIGatewayResource(self)
self.with_raw_response = AsyncCloudflareWithRawResponse(self)
self.with_streaming_response = AsyncCloudflareWithStreamedResponse(self)

Expand Down Expand Up @@ -973,7 +969,6 @@ def __init__(self, client: Cloudflare) -> None:
self.calls = resources.CallsResourceWithRawResponse(client.calls)
self.cloudforce_one = resources.CloudforceOneResourceWithRawResponse(client.cloudforce_one)
self.event_notifications = resources.EventNotificationsResourceWithRawResponse(client.event_notifications)
self.ai_gateway = resources.AIGatewayResourceWithRawResponse(client.ai_gateway)


class AsyncCloudflareWithRawResponse:
Expand Down Expand Up @@ -1073,7 +1068,6 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.calls = resources.AsyncCallsResourceWithRawResponse(client.calls)
self.cloudforce_one = resources.AsyncCloudforceOneResourceWithRawResponse(client.cloudforce_one)
self.event_notifications = resources.AsyncEventNotificationsResourceWithRawResponse(client.event_notifications)
self.ai_gateway = resources.AsyncAIGatewayResourceWithRawResponse(client.ai_gateway)


class CloudflareWithStreamedResponse:
Expand Down Expand Up @@ -1173,7 +1167,6 @@ def __init__(self, client: Cloudflare) -> None:
self.calls = resources.CallsResourceWithStreamingResponse(client.calls)
self.cloudforce_one = resources.CloudforceOneResourceWithStreamingResponse(client.cloudforce_one)
self.event_notifications = resources.EventNotificationsResourceWithStreamingResponse(client.event_notifications)
self.ai_gateway = resources.AIGatewayResourceWithStreamingResponse(client.ai_gateway)


class AsyncCloudflareWithStreamedResponse:
Expand Down Expand Up @@ -1281,7 +1274,6 @@ def __init__(self, client: AsyncCloudflare) -> None:
self.event_notifications = resources.AsyncEventNotificationsResourceWithStreamingResponse(
client.event_notifications
)
self.ai_gateway = resources.AsyncAIGatewayResourceWithStreamingResponse(client.ai_gateway)


Client = Cloudflare
Expand Down
14 changes: 0 additions & 14 deletions src/cloudflare/resources/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,14 +336,6 @@
AddressingResourceWithStreamingResponse,
AsyncAddressingResourceWithStreamingResponse,
)
from .ai_gateway import (
AIGatewayResource,
AsyncAIGatewayResource,
AIGatewayResourceWithRawResponse,
AsyncAIGatewayResourceWithRawResponse,
AIGatewayResourceWithStreamingResponse,
AsyncAIGatewayResourceWithStreamingResponse,
)
from .audit_logs import (
AuditLogsResource,
AsyncAuditLogsResource,
Expand Down Expand Up @@ -1144,10 +1136,4 @@
"AsyncEventNotificationsResourceWithRawResponse",
"EventNotificationsResourceWithStreamingResponse",
"AsyncEventNotificationsResourceWithStreamingResponse",
"AIGatewayResource",
"AsyncAIGatewayResource",
"AIGatewayResourceWithRawResponse",
"AsyncAIGatewayResourceWithRawResponse",
"AIGatewayResourceWithStreamingResponse",
"AsyncAIGatewayResourceWithStreamingResponse",
]
33 changes: 0 additions & 33 deletions src/cloudflare/resources/ai_gateway/__init__.py

This file was deleted.

Loading

0 comments on commit 6f64262

Please sign in to comment.