-
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 (#152)
- Loading branch information
1 parent
a137214
commit 591e938
Showing
126 changed files
with
20,247 additions
and
20 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: 1235 | ||
configured_endpoints: 1288 |
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
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 .reports import ( | ||
Reports, | ||
AsyncReports, | ||
ReportsWithRawResponse, | ||
AsyncReportsWithRawResponse, | ||
ReportsWithStreamingResponse, | ||
AsyncReportsWithStreamingResponse, | ||
) | ||
from .analytics import ( | ||
Analytics, | ||
AsyncAnalytics, | ||
AnalyticsWithRawResponse, | ||
AsyncAnalyticsWithRawResponse, | ||
AnalyticsWithStreamingResponse, | ||
AsyncAnalyticsWithStreamingResponse, | ||
) | ||
|
||
__all__ = [ | ||
"Reports", | ||
"AsyncReports", | ||
"ReportsWithRawResponse", | ||
"AsyncReportsWithRawResponse", | ||
"ReportsWithStreamingResponse", | ||
"AsyncReportsWithStreamingResponse", | ||
"Analytics", | ||
"AsyncAnalytics", | ||
"AnalyticsWithRawResponse", | ||
"AsyncAnalyticsWithRawResponse", | ||
"AnalyticsWithStreamingResponse", | ||
"AsyncAnalyticsWithStreamingResponse", | ||
] |
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 .reports import ( | ||
Reports, | ||
AsyncReports, | ||
ReportsWithRawResponse, | ||
AsyncReportsWithRawResponse, | ||
ReportsWithStreamingResponse, | ||
AsyncReportsWithStreamingResponse, | ||
) | ||
from ...._compat import cached_property | ||
from ...._resource import SyncAPIResource, AsyncAPIResource | ||
from .reports.reports import Reports, AsyncReports | ||
|
||
__all__ = ["Analytics", "AsyncAnalytics"] | ||
|
||
|
||
class Analytics(SyncAPIResource): | ||
@cached_property | ||
def reports(self) -> Reports: | ||
return Reports(self._client) | ||
|
||
@cached_property | ||
def with_raw_response(self) -> AnalyticsWithRawResponse: | ||
return AnalyticsWithRawResponse(self) | ||
|
||
@cached_property | ||
def with_streaming_response(self) -> AnalyticsWithStreamingResponse: | ||
return AnalyticsWithStreamingResponse(self) | ||
|
||
|
||
class AsyncAnalytics(AsyncAPIResource): | ||
@cached_property | ||
def reports(self) -> AsyncReports: | ||
return AsyncReports(self._client) | ||
|
||
@cached_property | ||
def with_raw_response(self) -> AsyncAnalyticsWithRawResponse: | ||
return AsyncAnalyticsWithRawResponse(self) | ||
|
||
@cached_property | ||
def with_streaming_response(self) -> AsyncAnalyticsWithStreamingResponse: | ||
return AsyncAnalyticsWithStreamingResponse(self) | ||
|
||
|
||
class AnalyticsWithRawResponse: | ||
def __init__(self, analytics: Analytics) -> None: | ||
self._analytics = analytics | ||
|
||
@cached_property | ||
def reports(self) -> ReportsWithRawResponse: | ||
return ReportsWithRawResponse(self._analytics.reports) | ||
|
||
|
||
class AsyncAnalyticsWithRawResponse: | ||
def __init__(self, analytics: AsyncAnalytics) -> None: | ||
self._analytics = analytics | ||
|
||
@cached_property | ||
def reports(self) -> AsyncReportsWithRawResponse: | ||
return AsyncReportsWithRawResponse(self._analytics.reports) | ||
|
||
|
||
class AnalyticsWithStreamingResponse: | ||
def __init__(self, analytics: Analytics) -> None: | ||
self._analytics = analytics | ||
|
||
@cached_property | ||
def reports(self) -> ReportsWithStreamingResponse: | ||
return ReportsWithStreamingResponse(self._analytics.reports) | ||
|
||
|
||
class AsyncAnalyticsWithStreamingResponse: | ||
def __init__(self, analytics: AsyncAnalytics) -> None: | ||
self._analytics = analytics | ||
|
||
@cached_property | ||
def reports(self) -> AsyncReportsWithStreamingResponse: | ||
return AsyncReportsWithStreamingResponse(self._analytics.reports) |
33 changes: 33 additions & 0 deletions
33
src/cloudflare/resources/dns/analytics/reports/__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 .bytimes import ( | ||
Bytimes, | ||
AsyncBytimes, | ||
BytimesWithRawResponse, | ||
AsyncBytimesWithRawResponse, | ||
BytimesWithStreamingResponse, | ||
AsyncBytimesWithStreamingResponse, | ||
) | ||
from .reports import ( | ||
Reports, | ||
AsyncReports, | ||
ReportsWithRawResponse, | ||
AsyncReportsWithRawResponse, | ||
ReportsWithStreamingResponse, | ||
AsyncReportsWithStreamingResponse, | ||
) | ||
|
||
__all__ = [ | ||
"Bytimes", | ||
"AsyncBytimes", | ||
"BytimesWithRawResponse", | ||
"AsyncBytimesWithRawResponse", | ||
"BytimesWithStreamingResponse", | ||
"AsyncBytimesWithStreamingResponse", | ||
"Reports", | ||
"AsyncReports", | ||
"ReportsWithRawResponse", | ||
"AsyncReportsWithRawResponse", | ||
"ReportsWithStreamingResponse", | ||
"AsyncReportsWithStreamingResponse", | ||
] |
Oops, something went wrong.