-
Notifications
You must be signed in to change notification settings - Fork 36
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): update via SDK Studio (#308)
- Loading branch information
1 parent
289d760
commit 5a49713
Showing
23 changed files
with
1,401 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
configured_endpoints: 1256 | ||
configured_endpoints: 1259 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from .r2 import ( | ||
R2, | ||
AsyncR2, | ||
R2WithRawResponse, | ||
AsyncR2WithRawResponse, | ||
R2WithStreamingResponse, | ||
AsyncR2WithStreamingResponse, | ||
) | ||
from .event_notifications import ( | ||
EventNotifications, | ||
AsyncEventNotifications, | ||
EventNotificationsWithRawResponse, | ||
AsyncEventNotificationsWithRawResponse, | ||
EventNotificationsWithStreamingResponse, | ||
AsyncEventNotificationsWithStreamingResponse, | ||
) | ||
|
||
__all__ = [ | ||
"R2", | ||
"AsyncR2", | ||
"R2WithRawResponse", | ||
"AsyncR2WithRawResponse", | ||
"R2WithStreamingResponse", | ||
"AsyncR2WithStreamingResponse", | ||
"EventNotifications", | ||
"AsyncEventNotifications", | ||
"EventNotificationsWithRawResponse", | ||
"AsyncEventNotificationsWithRawResponse", | ||
"EventNotificationsWithStreamingResponse", | ||
"AsyncEventNotificationsWithStreamingResponse", | ||
] |
81 changes: 81 additions & 0 deletions
81
src/cloudflare/resources/event_notifications/event_notifications.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from __future__ import annotations | ||
|
||
from .r2 import ( | ||
R2, | ||
AsyncR2, | ||
R2WithRawResponse, | ||
AsyncR2WithRawResponse, | ||
R2WithStreamingResponse, | ||
AsyncR2WithStreamingResponse, | ||
) | ||
from .r2.r2 import R2, AsyncR2 | ||
from ..._compat import cached_property | ||
from ..._resource import SyncAPIResource, AsyncAPIResource | ||
|
||
__all__ = ["EventNotifications", "AsyncEventNotifications"] | ||
|
||
|
||
class EventNotifications(SyncAPIResource): | ||
@cached_property | ||
def r2(self) -> R2: | ||
return R2(self._client) | ||
|
||
@cached_property | ||
def with_raw_response(self) -> EventNotificationsWithRawResponse: | ||
return EventNotificationsWithRawResponse(self) | ||
|
||
@cached_property | ||
def with_streaming_response(self) -> EventNotificationsWithStreamingResponse: | ||
return EventNotificationsWithStreamingResponse(self) | ||
|
||
|
||
class AsyncEventNotifications(AsyncAPIResource): | ||
@cached_property | ||
def r2(self) -> AsyncR2: | ||
return AsyncR2(self._client) | ||
|
||
@cached_property | ||
def with_raw_response(self) -> AsyncEventNotificationsWithRawResponse: | ||
return AsyncEventNotificationsWithRawResponse(self) | ||
|
||
@cached_property | ||
def with_streaming_response(self) -> AsyncEventNotificationsWithStreamingResponse: | ||
return AsyncEventNotificationsWithStreamingResponse(self) | ||
|
||
|
||
class EventNotificationsWithRawResponse: | ||
def __init__(self, event_notifications: EventNotifications) -> None: | ||
self._event_notifications = event_notifications | ||
|
||
@cached_property | ||
def r2(self) -> R2WithRawResponse: | ||
return R2WithRawResponse(self._event_notifications.r2) | ||
|
||
|
||
class AsyncEventNotificationsWithRawResponse: | ||
def __init__(self, event_notifications: AsyncEventNotifications) -> None: | ||
self._event_notifications = event_notifications | ||
|
||
@cached_property | ||
def r2(self) -> AsyncR2WithRawResponse: | ||
return AsyncR2WithRawResponse(self._event_notifications.r2) | ||
|
||
|
||
class EventNotificationsWithStreamingResponse: | ||
def __init__(self, event_notifications: EventNotifications) -> None: | ||
self._event_notifications = event_notifications | ||
|
||
@cached_property | ||
def r2(self) -> R2WithStreamingResponse: | ||
return R2WithStreamingResponse(self._event_notifications.r2) | ||
|
||
|
||
class AsyncEventNotificationsWithStreamingResponse: | ||
def __init__(self, event_notifications: AsyncEventNotifications) -> None: | ||
self._event_notifications = event_notifications | ||
|
||
@cached_property | ||
def r2(self) -> AsyncR2WithStreamingResponse: | ||
return AsyncR2WithStreamingResponse(self._event_notifications.r2) |
33 changes: 33 additions & 0 deletions
33
src/cloudflare/resources/event_notifications/r2/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from .r2 import ( | ||
R2, | ||
AsyncR2, | ||
R2WithRawResponse, | ||
AsyncR2WithRawResponse, | ||
R2WithStreamingResponse, | ||
AsyncR2WithStreamingResponse, | ||
) | ||
from .configuration import ( | ||
Configuration, | ||
AsyncConfiguration, | ||
ConfigurationWithRawResponse, | ||
AsyncConfigurationWithRawResponse, | ||
ConfigurationWithStreamingResponse, | ||
AsyncConfigurationWithStreamingResponse, | ||
) | ||
|
||
__all__ = [ | ||
"Configuration", | ||
"AsyncConfiguration", | ||
"ConfigurationWithRawResponse", | ||
"AsyncConfigurationWithRawResponse", | ||
"ConfigurationWithStreamingResponse", | ||
"AsyncConfigurationWithStreamingResponse", | ||
"R2", | ||
"AsyncR2", | ||
"R2WithRawResponse", | ||
"AsyncR2WithRawResponse", | ||
"R2WithStreamingResponse", | ||
"AsyncR2WithStreamingResponse", | ||
] |
33 changes: 33 additions & 0 deletions
33
src/cloudflare/resources/event_notifications/r2/configuration/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from .queues import ( | ||
Queues, | ||
AsyncQueues, | ||
QueuesWithRawResponse, | ||
AsyncQueuesWithRawResponse, | ||
QueuesWithStreamingResponse, | ||
AsyncQueuesWithStreamingResponse, | ||
) | ||
from .configuration import ( | ||
Configuration, | ||
AsyncConfiguration, | ||
ConfigurationWithRawResponse, | ||
AsyncConfigurationWithRawResponse, | ||
ConfigurationWithStreamingResponse, | ||
AsyncConfigurationWithStreamingResponse, | ||
) | ||
|
||
__all__ = [ | ||
"Queues", | ||
"AsyncQueues", | ||
"QueuesWithRawResponse", | ||
"AsyncQueuesWithRawResponse", | ||
"QueuesWithStreamingResponse", | ||
"AsyncQueuesWithStreamingResponse", | ||
"Configuration", | ||
"AsyncConfiguration", | ||
"ConfigurationWithRawResponse", | ||
"AsyncConfigurationWithRawResponse", | ||
"ConfigurationWithStreamingResponse", | ||
"AsyncConfigurationWithStreamingResponse", | ||
] |
Oops, something went wrong.