-
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 (#1180)
- Loading branch information
1 parent
13c692a
commit ead688f
Showing
22 changed files
with
1,710 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,2 +1,2 @@ | ||
configured_endpoints: 1252 | ||
configured_endpoints: 1256 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-9f6e9da01b27f4f387991ca14ecafe0c42a356cc3c47b269e5f8b4f6cd0ed700.yml |
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 .rules import ( | ||
RulesResource, | ||
AsyncRulesResource, | ||
RulesResourceWithRawResponse, | ||
AsyncRulesResourceWithRawResponse, | ||
RulesResourceWithStreamingResponse, | ||
AsyncRulesResourceWithStreamingResponse, | ||
) | ||
from .cloud_connector import ( | ||
CloudConnectorResource, | ||
AsyncCloudConnectorResource, | ||
CloudConnectorResourceWithRawResponse, | ||
AsyncCloudConnectorResourceWithRawResponse, | ||
CloudConnectorResourceWithStreamingResponse, | ||
AsyncCloudConnectorResourceWithStreamingResponse, | ||
) | ||
|
||
__all__ = [ | ||
"RulesResource", | ||
"AsyncRulesResource", | ||
"RulesResourceWithRawResponse", | ||
"AsyncRulesResourceWithRawResponse", | ||
"RulesResourceWithStreamingResponse", | ||
"AsyncRulesResourceWithStreamingResponse", | ||
"CloudConnectorResource", | ||
"AsyncCloudConnectorResource", | ||
"CloudConnectorResourceWithRawResponse", | ||
"AsyncCloudConnectorResourceWithRawResponse", | ||
"CloudConnectorResourceWithStreamingResponse", | ||
"AsyncCloudConnectorResourceWithStreamingResponse", | ||
] |
80 changes: 80 additions & 0 deletions
80
src/cloudflare/resources/cloud_connector/cloud_connector.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,80 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from __future__ import annotations | ||
|
||
from .rules import ( | ||
RulesResource, | ||
AsyncRulesResource, | ||
RulesResourceWithRawResponse, | ||
AsyncRulesResourceWithRawResponse, | ||
RulesResourceWithStreamingResponse, | ||
AsyncRulesResourceWithStreamingResponse, | ||
) | ||
from ..._compat import cached_property | ||
from ..._resource import SyncAPIResource, AsyncAPIResource | ||
|
||
__all__ = ["CloudConnectorResource", "AsyncCloudConnectorResource"] | ||
|
||
|
||
class CloudConnectorResource(SyncAPIResource): | ||
@cached_property | ||
def rules(self) -> RulesResource: | ||
return RulesResource(self._client) | ||
|
||
@cached_property | ||
def with_raw_response(self) -> CloudConnectorResourceWithRawResponse: | ||
return CloudConnectorResourceWithRawResponse(self) | ||
|
||
@cached_property | ||
def with_streaming_response(self) -> CloudConnectorResourceWithStreamingResponse: | ||
return CloudConnectorResourceWithStreamingResponse(self) | ||
|
||
|
||
class AsyncCloudConnectorResource(AsyncAPIResource): | ||
@cached_property | ||
def rules(self) -> AsyncRulesResource: | ||
return AsyncRulesResource(self._client) | ||
|
||
@cached_property | ||
def with_raw_response(self) -> AsyncCloudConnectorResourceWithRawResponse: | ||
return AsyncCloudConnectorResourceWithRawResponse(self) | ||
|
||
@cached_property | ||
def with_streaming_response(self) -> AsyncCloudConnectorResourceWithStreamingResponse: | ||
return AsyncCloudConnectorResourceWithStreamingResponse(self) | ||
|
||
|
||
class CloudConnectorResourceWithRawResponse: | ||
def __init__(self, cloud_connector: CloudConnectorResource) -> None: | ||
self._cloud_connector = cloud_connector | ||
|
||
@cached_property | ||
def rules(self) -> RulesResourceWithRawResponse: | ||
return RulesResourceWithRawResponse(self._cloud_connector.rules) | ||
|
||
|
||
class AsyncCloudConnectorResourceWithRawResponse: | ||
def __init__(self, cloud_connector: AsyncCloudConnectorResource) -> None: | ||
self._cloud_connector = cloud_connector | ||
|
||
@cached_property | ||
def rules(self) -> AsyncRulesResourceWithRawResponse: | ||
return AsyncRulesResourceWithRawResponse(self._cloud_connector.rules) | ||
|
||
|
||
class CloudConnectorResourceWithStreamingResponse: | ||
def __init__(self, cloud_connector: CloudConnectorResource) -> None: | ||
self._cloud_connector = cloud_connector | ||
|
||
@cached_property | ||
def rules(self) -> RulesResourceWithStreamingResponse: | ||
return RulesResourceWithStreamingResponse(self._cloud_connector.rules) | ||
|
||
|
||
class AsyncCloudConnectorResourceWithStreamingResponse: | ||
def __init__(self, cloud_connector: AsyncCloudConnectorResource) -> None: | ||
self._cloud_connector = cloud_connector | ||
|
||
@cached_property | ||
def rules(self) -> AsyncRulesResourceWithStreamingResponse: | ||
return AsyncRulesResourceWithStreamingResponse(self._cloud_connector.rules) |
Oops, something went wrong.