-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(api): add endpoint mappings (#2408)
- Loading branch information
1 parent
1a0cb61
commit c7f7ce3
Showing
125 changed files
with
10,821 additions
and
31 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,2 +1,2 @@ | ||
configured_endpoints: 1504 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-04299b899e2bbf8ba1b4ad96d5e9f9c3e0c9b6246bfeac3f9ab684b855b0e412.yml | ||
configured_endpoints: 1525 | ||
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8973dde42d42a39c8fbc5f3f1eb1328e6ac0c805ca4d3e5920796749ed58eb0a.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
33 changes: 33 additions & 0 deletions
33
src/cloudflare/resources/custom_hostnames/certificate_pack/__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 .certificates import ( | ||
CertificatesResource, | ||
AsyncCertificatesResource, | ||
CertificatesResourceWithRawResponse, | ||
AsyncCertificatesResourceWithRawResponse, | ||
CertificatesResourceWithStreamingResponse, | ||
AsyncCertificatesResourceWithStreamingResponse, | ||
) | ||
from .certificate_pack import ( | ||
CertificatePackResource, | ||
AsyncCertificatePackResource, | ||
CertificatePackResourceWithRawResponse, | ||
AsyncCertificatePackResourceWithRawResponse, | ||
CertificatePackResourceWithStreamingResponse, | ||
AsyncCertificatePackResourceWithStreamingResponse, | ||
) | ||
|
||
__all__ = [ | ||
"CertificatesResource", | ||
"AsyncCertificatesResource", | ||
"CertificatesResourceWithRawResponse", | ||
"AsyncCertificatesResourceWithRawResponse", | ||
"CertificatesResourceWithStreamingResponse", | ||
"AsyncCertificatesResourceWithStreamingResponse", | ||
"CertificatePackResource", | ||
"AsyncCertificatePackResource", | ||
"CertificatePackResourceWithRawResponse", | ||
"AsyncCertificatePackResourceWithRawResponse", | ||
"CertificatePackResourceWithStreamingResponse", | ||
"AsyncCertificatePackResourceWithStreamingResponse", | ||
] |
102 changes: 102 additions & 0 deletions
102
src/cloudflare/resources/custom_hostnames/certificate_pack/certificate_pack.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,102 @@ | ||
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. | ||
|
||
from __future__ import annotations | ||
|
||
from ...._compat import cached_property | ||
from ...._resource import SyncAPIResource, AsyncAPIResource | ||
from .certificates import ( | ||
CertificatesResource, | ||
AsyncCertificatesResource, | ||
CertificatesResourceWithRawResponse, | ||
AsyncCertificatesResourceWithRawResponse, | ||
CertificatesResourceWithStreamingResponse, | ||
AsyncCertificatesResourceWithStreamingResponse, | ||
) | ||
|
||
__all__ = ["CertificatePackResource", "AsyncCertificatePackResource"] | ||
|
||
|
||
class CertificatePackResource(SyncAPIResource): | ||
@cached_property | ||
def certificates(self) -> CertificatesResource: | ||
return CertificatesResource(self._client) | ||
|
||
@cached_property | ||
def with_raw_response(self) -> CertificatePackResourceWithRawResponse: | ||
""" | ||
This property can be used as a prefix for any HTTP method call to return | ||
the raw response object instead of the parsed content. | ||
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers | ||
""" | ||
return CertificatePackResourceWithRawResponse(self) | ||
|
||
@cached_property | ||
def with_streaming_response(self) -> CertificatePackResourceWithStreamingResponse: | ||
""" | ||
An alternative to `.with_raw_response` that doesn't eagerly read the response body. | ||
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response | ||
""" | ||
return CertificatePackResourceWithStreamingResponse(self) | ||
|
||
|
||
class AsyncCertificatePackResource(AsyncAPIResource): | ||
@cached_property | ||
def certificates(self) -> AsyncCertificatesResource: | ||
return AsyncCertificatesResource(self._client) | ||
|
||
@cached_property | ||
def with_raw_response(self) -> AsyncCertificatePackResourceWithRawResponse: | ||
""" | ||
This property can be used as a prefix for any HTTP method call to return | ||
the raw response object instead of the parsed content. | ||
For more information, see https://www.github.com/cloudflare/cloudflare-python#accessing-raw-response-data-eg-headers | ||
""" | ||
return AsyncCertificatePackResourceWithRawResponse(self) | ||
|
||
@cached_property | ||
def with_streaming_response(self) -> AsyncCertificatePackResourceWithStreamingResponse: | ||
""" | ||
An alternative to `.with_raw_response` that doesn't eagerly read the response body. | ||
For more information, see https://www.github.com/cloudflare/cloudflare-python#with_streaming_response | ||
""" | ||
return AsyncCertificatePackResourceWithStreamingResponse(self) | ||
|
||
|
||
class CertificatePackResourceWithRawResponse: | ||
def __init__(self, certificate_pack: CertificatePackResource) -> None: | ||
self._certificate_pack = certificate_pack | ||
|
||
@cached_property | ||
def certificates(self) -> CertificatesResourceWithRawResponse: | ||
return CertificatesResourceWithRawResponse(self._certificate_pack.certificates) | ||
|
||
|
||
class AsyncCertificatePackResourceWithRawResponse: | ||
def __init__(self, certificate_pack: AsyncCertificatePackResource) -> None: | ||
self._certificate_pack = certificate_pack | ||
|
||
@cached_property | ||
def certificates(self) -> AsyncCertificatesResourceWithRawResponse: | ||
return AsyncCertificatesResourceWithRawResponse(self._certificate_pack.certificates) | ||
|
||
|
||
class CertificatePackResourceWithStreamingResponse: | ||
def __init__(self, certificate_pack: CertificatePackResource) -> None: | ||
self._certificate_pack = certificate_pack | ||
|
||
@cached_property | ||
def certificates(self) -> CertificatesResourceWithStreamingResponse: | ||
return CertificatesResourceWithStreamingResponse(self._certificate_pack.certificates) | ||
|
||
|
||
class AsyncCertificatePackResourceWithStreamingResponse: | ||
def __init__(self, certificate_pack: AsyncCertificatePackResource) -> None: | ||
self._certificate_pack = certificate_pack | ||
|
||
@cached_property | ||
def certificates(self) -> AsyncCertificatesResourceWithStreamingResponse: | ||
return AsyncCertificatesResourceWithStreamingResponse(self._certificate_pack.certificates) |
Oops, something went wrong.