Skip to content

Commit 235ed9b

Browse files
feat: feat: add custom_csrs Stainless config (zone + account)
1 parent 42f37a3 commit 235ed9b

15 files changed

Lines changed: 1636 additions & 2 deletions

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 2285
1+
configured_endpoints: 2289
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a6c352830d1270d0abb5bb983058ea21815e1bb7d2e163965335dcb0e706f057.yml
33
openapi_spec_hash: 7e533a6fd89dd8f0e686167bcd0a391a
4-
config_hash: b17e1aaf5d974addbb86c59c2dbb7195
4+
config_hash: fe079be87478ec30d965fcce3b0b6d07

api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ from cloudflare.types import (
5959

6060
# [CustomCertificates](src/cloudflare/resources/custom_certificates/api.md)
6161

62+
# [CustomCsrs](src/cloudflare/resources/custom_csrs/api.md)
63+
6264
# [CustomHostnames](src/cloudflare/resources/custom_hostnames/api.md)
6365

6466
# [CustomNameservers](src/cloudflare/resources/custom_nameservers/api.md)

src/cloudflare/_client.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@
8888
ai_security,
8989
api_gateway,
9090
botnet_feed,
91+
custom_csrs,
9192
diagnostics,
9293
memberships,
9394
page_shield,
@@ -198,6 +199,7 @@
198199
from .resources.ai_security.ai_security import AISecurityResource, AsyncAISecurityResource
199200
from .resources.api_gateway.api_gateway import APIGatewayResource, AsyncAPIGatewayResource
200201
from .resources.botnet_feed.botnet_feed import BotnetFeedResource, AsyncBotnetFeedResource
202+
from .resources.custom_csrs.custom_csrs import CustomCsrsResource, AsyncCustomCsrsResource
201203
from .resources.diagnostics.diagnostics import DiagnosticsResource, AsyncDiagnosticsResource
202204
from .resources.memberships.memberships import MembershipsResource, AsyncMembershipsResource
203205
from .resources.page_shield.page_shield import PageShieldResource, AsyncPageShieldResource
@@ -479,6 +481,12 @@ def custom_certificates(self) -> CustomCertificatesResource:
479481

480482
return CustomCertificatesResource(self)
481483

484+
@cached_property
485+
def custom_csrs(self) -> CustomCsrsResource:
486+
from .resources.custom_csrs import CustomCsrsResource
487+
488+
return CustomCsrsResource(self)
489+
482490
@cached_property
483491
def custom_hostnames(self) -> CustomHostnamesResource:
484492
from .resources.custom_hostnames import CustomHostnamesResource
@@ -1387,6 +1395,12 @@ def custom_certificates(self) -> AsyncCustomCertificatesResource:
13871395

13881396
return AsyncCustomCertificatesResource(self)
13891397

1398+
@cached_property
1399+
def custom_csrs(self) -> AsyncCustomCsrsResource:
1400+
from .resources.custom_csrs import AsyncCustomCsrsResource
1401+
1402+
return AsyncCustomCsrsResource(self)
1403+
13901404
@cached_property
13911405
def custom_hostnames(self) -> AsyncCustomHostnamesResource:
13921406
from .resources.custom_hostnames import AsyncCustomHostnamesResource
@@ -2223,6 +2237,12 @@ def custom_certificates(self) -> custom_certificates.CustomCertificatesResourceW
22232237

22242238
return CustomCertificatesResourceWithRawResponse(self._client.custom_certificates)
22252239

2240+
@cached_property
2241+
def custom_csrs(self) -> custom_csrs.CustomCsrsResourceWithRawResponse:
2242+
from .resources.custom_csrs import CustomCsrsResourceWithRawResponse
2243+
2244+
return CustomCsrsResourceWithRawResponse(self._client.custom_csrs)
2245+
22262246
@cached_property
22272247
def custom_hostnames(self) -> custom_hostnames.CustomHostnamesResourceWithRawResponse:
22282248
from .resources.custom_hostnames import CustomHostnamesResourceWithRawResponse
@@ -2886,6 +2906,12 @@ def custom_certificates(self) -> custom_certificates.AsyncCustomCertificatesReso
28862906

28872907
return AsyncCustomCertificatesResourceWithRawResponse(self._client.custom_certificates)
28882908

2909+
@cached_property
2910+
def custom_csrs(self) -> custom_csrs.AsyncCustomCsrsResourceWithRawResponse:
2911+
from .resources.custom_csrs import AsyncCustomCsrsResourceWithRawResponse
2912+
2913+
return AsyncCustomCsrsResourceWithRawResponse(self._client.custom_csrs)
2914+
28892915
@cached_property
28902916
def custom_hostnames(self) -> custom_hostnames.AsyncCustomHostnamesResourceWithRawResponse:
28912917
from .resources.custom_hostnames import AsyncCustomHostnamesResourceWithRawResponse
@@ -3549,6 +3575,12 @@ def custom_certificates(self) -> custom_certificates.CustomCertificatesResourceW
35493575

35503576
return CustomCertificatesResourceWithStreamingResponse(self._client.custom_certificates)
35513577

3578+
@cached_property
3579+
def custom_csrs(self) -> custom_csrs.CustomCsrsResourceWithStreamingResponse:
3580+
from .resources.custom_csrs import CustomCsrsResourceWithStreamingResponse
3581+
3582+
return CustomCsrsResourceWithStreamingResponse(self._client.custom_csrs)
3583+
35523584
@cached_property
35533585
def custom_hostnames(self) -> custom_hostnames.CustomHostnamesResourceWithStreamingResponse:
35543586
from .resources.custom_hostnames import CustomHostnamesResourceWithStreamingResponse
@@ -4214,6 +4246,12 @@ def custom_certificates(self) -> custom_certificates.AsyncCustomCertificatesReso
42144246

42154247
return AsyncCustomCertificatesResourceWithStreamingResponse(self._client.custom_certificates)
42164248

4249+
@cached_property
4250+
def custom_csrs(self) -> custom_csrs.AsyncCustomCsrsResourceWithStreamingResponse:
4251+
from .resources.custom_csrs import AsyncCustomCsrsResourceWithStreamingResponse
4252+
4253+
return AsyncCustomCsrsResourceWithStreamingResponse(self._client.custom_csrs)
4254+
42174255
@cached_property
42184256
def custom_hostnames(self) -> custom_hostnames.AsyncCustomHostnamesResourceWithStreamingResponse:
42194257
from .resources.custom_hostnames import AsyncCustomHostnamesResourceWithStreamingResponse
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .custom_csrs import (
4+
CustomCsrsResource,
5+
AsyncCustomCsrsResource,
6+
CustomCsrsResourceWithRawResponse,
7+
AsyncCustomCsrsResourceWithRawResponse,
8+
CustomCsrsResourceWithStreamingResponse,
9+
AsyncCustomCsrsResourceWithStreamingResponse,
10+
)
11+
12+
__all__ = [
13+
"CustomCsrsResource",
14+
"AsyncCustomCsrsResource",
15+
"CustomCsrsResourceWithRawResponse",
16+
"AsyncCustomCsrsResourceWithRawResponse",
17+
"CustomCsrsResourceWithStreamingResponse",
18+
"AsyncCustomCsrsResourceWithStreamingResponse",
19+
]
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# CustomCsrs
2+
3+
Types:
4+
5+
```python
6+
from cloudflare.types.custom_csrs import (
7+
CustomCsr,
8+
CustomCsrCreateResponse,
9+
CustomCsrListResponse,
10+
CustomCsrDeleteResponse,
11+
CustomCsrGetResponse,
12+
)
13+
```
14+
15+
Methods:
16+
17+
- <code title="post /{accounts_or_zones}/{account_or_zone_id}/custom_csrs">client.custom_csrs.<a href="./src/cloudflare/resources/custom_csrs/custom_csrs.py">create</a>(\*, account_id, zone_id, \*\*<a href="src/cloudflare/types/custom_csrs/custom_csr_create_params.py">params</a>) -> <a href="./src/cloudflare/types/custom_csrs/custom_csr_create_response.py">Optional[CustomCsrCreateResponse]</a></code>
18+
- <code title="get /{accounts_or_zones}/{account_or_zone_id}/custom_csrs">client.custom_csrs.<a href="./src/cloudflare/resources/custom_csrs/custom_csrs.py">list</a>(\*, account_id, zone_id, \*\*<a href="src/cloudflare/types/custom_csrs/custom_csr_list_params.py">params</a>) -> <a href="./src/cloudflare/types/custom_csrs/custom_csr_list_response.py">SyncV4PagePaginationArray[CustomCsrListResponse]</a></code>
19+
- <code title="delete /{accounts_or_zones}/{account_or_zone_id}/custom_csrs/{custom_csr_id}">client.custom_csrs.<a href="./src/cloudflare/resources/custom_csrs/custom_csrs.py">delete</a>(custom_csr_id, \*, account_id, zone_id) -> <a href="./src/cloudflare/types/custom_csrs/custom_csr_delete_response.py">Optional[CustomCsrDeleteResponse]</a></code>
20+
- <code title="get /{accounts_or_zones}/{account_or_zone_id}/custom_csrs/{custom_csr_id}">client.custom_csrs.<a href="./src/cloudflare/resources/custom_csrs/custom_csrs.py">get</a>(custom_csr_id, \*, account_id, zone_id) -> <a href="./src/cloudflare/types/custom_csrs/custom_csr_get_response.py">Optional[CustomCsrGetResponse]</a></code>

0 commit comments

Comments
 (0)