-
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): OpenAPI spec update via Stainless API (#274)
- Loading branch information
1 parent
72a3b86
commit 2a11bb1
Showing
13 changed files
with
749 additions
and
2 deletions.
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: 1250 | ||
configured_endpoints: 1251 |
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 .traces import ( | ||
Traces, | ||
AsyncTraces, | ||
TracesWithRawResponse, | ||
AsyncTracesWithRawResponse, | ||
TracesWithStreamingResponse, | ||
AsyncTracesWithStreamingResponse, | ||
) | ||
from .request_tracers import ( | ||
RequestTracers, | ||
AsyncRequestTracers, | ||
RequestTracersWithRawResponse, | ||
AsyncRequestTracersWithRawResponse, | ||
RequestTracersWithStreamingResponse, | ||
AsyncRequestTracersWithStreamingResponse, | ||
) | ||
|
||
__all__ = [ | ||
"Traces", | ||
"AsyncTraces", | ||
"TracesWithRawResponse", | ||
"AsyncTracesWithRawResponse", | ||
"TracesWithStreamingResponse", | ||
"AsyncTracesWithStreamingResponse", | ||
"RequestTracers", | ||
"AsyncRequestTracers", | ||
"RequestTracersWithRawResponse", | ||
"AsyncRequestTracersWithRawResponse", | ||
"RequestTracersWithStreamingResponse", | ||
"AsyncRequestTracersWithStreamingResponse", | ||
] |
80 changes: 80 additions & 0 deletions
80
src/cloudflare/resources/request_tracers/request_tracers.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 .traces import ( | ||
Traces, | ||
AsyncTraces, | ||
TracesWithRawResponse, | ||
AsyncTracesWithRawResponse, | ||
TracesWithStreamingResponse, | ||
AsyncTracesWithStreamingResponse, | ||
) | ||
from ..._compat import cached_property | ||
from ..._resource import SyncAPIResource, AsyncAPIResource | ||
|
||
__all__ = ["RequestTracers", "AsyncRequestTracers"] | ||
|
||
|
||
class RequestTracers(SyncAPIResource): | ||
@cached_property | ||
def traces(self) -> Traces: | ||
return Traces(self._client) | ||
|
||
@cached_property | ||
def with_raw_response(self) -> RequestTracersWithRawResponse: | ||
return RequestTracersWithRawResponse(self) | ||
|
||
@cached_property | ||
def with_streaming_response(self) -> RequestTracersWithStreamingResponse: | ||
return RequestTracersWithStreamingResponse(self) | ||
|
||
|
||
class AsyncRequestTracers(AsyncAPIResource): | ||
@cached_property | ||
def traces(self) -> AsyncTraces: | ||
return AsyncTraces(self._client) | ||
|
||
@cached_property | ||
def with_raw_response(self) -> AsyncRequestTracersWithRawResponse: | ||
return AsyncRequestTracersWithRawResponse(self) | ||
|
||
@cached_property | ||
def with_streaming_response(self) -> AsyncRequestTracersWithStreamingResponse: | ||
return AsyncRequestTracersWithStreamingResponse(self) | ||
|
||
|
||
class RequestTracersWithRawResponse: | ||
def __init__(self, request_tracers: RequestTracers) -> None: | ||
self._request_tracers = request_tracers | ||
|
||
@cached_property | ||
def traces(self) -> TracesWithRawResponse: | ||
return TracesWithRawResponse(self._request_tracers.traces) | ||
|
||
|
||
class AsyncRequestTracersWithRawResponse: | ||
def __init__(self, request_tracers: AsyncRequestTracers) -> None: | ||
self._request_tracers = request_tracers | ||
|
||
@cached_property | ||
def traces(self) -> AsyncTracesWithRawResponse: | ||
return AsyncTracesWithRawResponse(self._request_tracers.traces) | ||
|
||
|
||
class RequestTracersWithStreamingResponse: | ||
def __init__(self, request_tracers: RequestTracers) -> None: | ||
self._request_tracers = request_tracers | ||
|
||
@cached_property | ||
def traces(self) -> TracesWithStreamingResponse: | ||
return TracesWithStreamingResponse(self._request_tracers.traces) | ||
|
||
|
||
class AsyncRequestTracersWithStreamingResponse: | ||
def __init__(self, request_tracers: AsyncRequestTracers) -> None: | ||
self._request_tracers = request_tracers | ||
|
||
@cached_property | ||
def traces(self) -> AsyncTracesWithStreamingResponse: | ||
return AsyncTracesWithStreamingResponse(self._request_tracers.traces) |
Oops, something went wrong.