Skip to content

Commit c810755

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
chore(internal): codegen related update (#2176)
1 parent d22a2de commit c810755

File tree

92 files changed

+10273
-1280
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

92 files changed

+10273
-1280
lines changed

.stats.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1411
1+
configured_endpoints: 1435
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-829ade7062fed63a30accc2a5e1a14c6c26fd4dc003d300d1b25a5416b8b8727.yml

api.md

+185-15
Large diffs are not rendered by default.

src/cloudflare/_client.py

+39
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@
119119
origin_ca_certificates,
120120
origin_tls_client_auth,
121121
certificate_authorities,
122+
leaked_credential_checks,
122123
magic_network_monitoring,
123124
origin_post_quantum_encryption,
124125
)
@@ -718,6 +719,12 @@ def resource_sharing(self) -> resource_sharing.ResourceSharingResource:
718719

719720
return ResourceSharingResource(self)
720721

722+
@cached_property
723+
def leaked_credential_checks(self) -> leaked_credential_checks.LeakedCredentialChecksResource:
724+
from .resources.leaked_credential_checks import LeakedCredentialChecksResource
725+
726+
return LeakedCredentialChecksResource(self)
727+
721728
@cached_property
722729
def with_raw_response(self) -> CloudflareWithRawResponse:
723730
return CloudflareWithRawResponse(self)
@@ -1483,6 +1490,12 @@ def resource_sharing(self) -> resource_sharing.AsyncResourceSharingResource:
14831490

14841491
return AsyncResourceSharingResource(self)
14851492

1493+
@cached_property
1494+
def leaked_credential_checks(self) -> leaked_credential_checks.AsyncLeakedCredentialChecksResource:
1495+
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResource
1496+
1497+
return AsyncLeakedCredentialChecksResource(self)
1498+
14861499
@cached_property
14871500
def with_raw_response(self) -> AsyncCloudflareWithRawResponse:
14881501
return AsyncCloudflareWithRawResponse(self)
@@ -2183,6 +2196,12 @@ def resource_sharing(self) -> resource_sharing.ResourceSharingResourceWithRawRes
21832196

21842197
return ResourceSharingResourceWithRawResponse(self._client.resource_sharing)
21852198

2199+
@cached_property
2200+
def leaked_credential_checks(self) -> leaked_credential_checks.LeakedCredentialChecksResourceWithRawResponse:
2201+
from .resources.leaked_credential_checks import LeakedCredentialChecksResourceWithRawResponse
2202+
2203+
return LeakedCredentialChecksResourceWithRawResponse(self._client.leaked_credential_checks)
2204+
21862205

21872206
class AsyncCloudflareWithRawResponse:
21882207
_client: AsyncCloudflare
@@ -2702,6 +2721,12 @@ def resource_sharing(self) -> resource_sharing.AsyncResourceSharingResourceWithR
27022721

27032722
return AsyncResourceSharingResourceWithRawResponse(self._client.resource_sharing)
27042723

2724+
@cached_property
2725+
def leaked_credential_checks(self) -> leaked_credential_checks.AsyncLeakedCredentialChecksResourceWithRawResponse:
2726+
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResourceWithRawResponse
2727+
2728+
return AsyncLeakedCredentialChecksResourceWithRawResponse(self._client.leaked_credential_checks)
2729+
27052730

27062731
class CloudflareWithStreamedResponse:
27072732
_client: Cloudflare
@@ -3221,6 +3246,12 @@ def resource_sharing(self) -> resource_sharing.ResourceSharingResourceWithStream
32213246

32223247
return ResourceSharingResourceWithStreamingResponse(self._client.resource_sharing)
32233248

3249+
@cached_property
3250+
def leaked_credential_checks(self) -> leaked_credential_checks.LeakedCredentialChecksResourceWithStreamingResponse:
3251+
from .resources.leaked_credential_checks import LeakedCredentialChecksResourceWithStreamingResponse
3252+
3253+
return LeakedCredentialChecksResourceWithStreamingResponse(self._client.leaked_credential_checks)
3254+
32243255

32253256
class AsyncCloudflareWithStreamedResponse:
32263257
_client: AsyncCloudflare
@@ -3748,6 +3779,14 @@ def resource_sharing(self) -> resource_sharing.AsyncResourceSharingResourceWithS
37483779

37493780
return AsyncResourceSharingResourceWithStreamingResponse(self._client.resource_sharing)
37503781

3782+
@cached_property
3783+
def leaked_credential_checks(
3784+
self,
3785+
) -> leaked_credential_checks.AsyncLeakedCredentialChecksResourceWithStreamingResponse:
3786+
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResourceWithStreamingResponse
3787+
3788+
return AsyncLeakedCredentialChecksResourceWithStreamingResponse(self._client.leaked_credential_checks)
3789+
37513790

37523791
Client = Cloudflare
37533792

src/cloudflare/resources/__init__.py

+18
Original file line numberDiff line numberDiff line change
@@ -1 +1,19 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .leaked_credential_checks import (
4+
LeakedCredentialChecksResource,
5+
AsyncLeakedCredentialChecksResource,
6+
LeakedCredentialChecksResourceWithRawResponse,
7+
AsyncLeakedCredentialChecksResourceWithRawResponse,
8+
LeakedCredentialChecksResourceWithStreamingResponse,
9+
AsyncLeakedCredentialChecksResourceWithStreamingResponse,
10+
)
11+
12+
__all__ = [
13+
"LeakedCredentialChecksResource",
14+
"AsyncLeakedCredentialChecksResource",
15+
"LeakedCredentialChecksResourceWithRawResponse",
16+
"AsyncLeakedCredentialChecksResourceWithRawResponse",
17+
"LeakedCredentialChecksResourceWithStreamingResponse",
18+
"AsyncLeakedCredentialChecksResourceWithStreamingResponse",
19+
]

src/cloudflare/resources/email_security/__init__.py

+14
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
InvestigateResourceWithStreamingResponse,
1717
AsyncInvestigateResourceWithStreamingResponse,
1818
)
19+
from .submissions import (
20+
SubmissionsResource,
21+
AsyncSubmissionsResource,
22+
SubmissionsResourceWithRawResponse,
23+
AsyncSubmissionsResourceWithRawResponse,
24+
SubmissionsResourceWithStreamingResponse,
25+
AsyncSubmissionsResourceWithStreamingResponse,
26+
)
1927
from .email_security import (
2028
EmailSecurityResource,
2129
AsyncEmailSecurityResource,
@@ -38,6 +46,12 @@
3846
"AsyncSettingsResourceWithRawResponse",
3947
"SettingsResourceWithStreamingResponse",
4048
"AsyncSettingsResourceWithStreamingResponse",
49+
"SubmissionsResource",
50+
"AsyncSubmissionsResource",
51+
"SubmissionsResourceWithRawResponse",
52+
"AsyncSubmissionsResourceWithRawResponse",
53+
"SubmissionsResourceWithStreamingResponse",
54+
"AsyncSubmissionsResourceWithStreamingResponse",
4155
"EmailSecurityResource",
4256
"AsyncEmailSecurityResource",
4357
"EmailSecurityResourceWithRawResponse",

src/cloudflare/resources/email_security/email_security.py

+33
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,16 @@
2020
InvestigateResourceWithStreamingResponse,
2121
AsyncInvestigateResourceWithStreamingResponse,
2222
)
23+
from .submissions import (
24+
SubmissionsResource,
25+
AsyncSubmissionsResource,
26+
SubmissionsResourceWithRawResponse,
27+
AsyncSubmissionsResourceWithRawResponse,
28+
SubmissionsResourceWithStreamingResponse,
29+
AsyncSubmissionsResourceWithStreamingResponse,
30+
)
2331
from .settings.settings import SettingsResource, AsyncSettingsResource
32+
from .investigate.investigate import InvestigateResource, AsyncInvestigateResource
2433

2534
__all__ = ["EmailSecurityResource", "AsyncEmailSecurityResource"]
2635

@@ -34,6 +43,10 @@ def investigate(self) -> InvestigateResource:
3443
def settings(self) -> SettingsResource:
3544
return SettingsResource(self._client)
3645

46+
@cached_property
47+
def submissions(self) -> SubmissionsResource:
48+
return SubmissionsResource(self._client)
49+
3750
@cached_property
3851
def with_raw_response(self) -> EmailSecurityResourceWithRawResponse:
3952
"""
@@ -63,6 +76,10 @@ def investigate(self) -> AsyncInvestigateResource:
6376
def settings(self) -> AsyncSettingsResource:
6477
return AsyncSettingsResource(self._client)
6578

79+
@cached_property
80+
def submissions(self) -> AsyncSubmissionsResource:
81+
return AsyncSubmissionsResource(self._client)
82+
6683
@cached_property
6784
def with_raw_response(self) -> AsyncEmailSecurityResourceWithRawResponse:
6885
"""
@@ -95,6 +112,10 @@ def investigate(self) -> InvestigateResourceWithRawResponse:
95112
def settings(self) -> SettingsResourceWithRawResponse:
96113
return SettingsResourceWithRawResponse(self._email_security.settings)
97114

115+
@cached_property
116+
def submissions(self) -> SubmissionsResourceWithRawResponse:
117+
return SubmissionsResourceWithRawResponse(self._email_security.submissions)
118+
98119

99120
class AsyncEmailSecurityResourceWithRawResponse:
100121
def __init__(self, email_security: AsyncEmailSecurityResource) -> None:
@@ -108,6 +129,10 @@ def investigate(self) -> AsyncInvestigateResourceWithRawResponse:
108129
def settings(self) -> AsyncSettingsResourceWithRawResponse:
109130
return AsyncSettingsResourceWithRawResponse(self._email_security.settings)
110131

132+
@cached_property
133+
def submissions(self) -> AsyncSubmissionsResourceWithRawResponse:
134+
return AsyncSubmissionsResourceWithRawResponse(self._email_security.submissions)
135+
111136

112137
class EmailSecurityResourceWithStreamingResponse:
113138
def __init__(self, email_security: EmailSecurityResource) -> None:
@@ -121,6 +146,10 @@ def investigate(self) -> InvestigateResourceWithStreamingResponse:
121146
def settings(self) -> SettingsResourceWithStreamingResponse:
122147
return SettingsResourceWithStreamingResponse(self._email_security.settings)
123148

149+
@cached_property
150+
def submissions(self) -> SubmissionsResourceWithStreamingResponse:
151+
return SubmissionsResourceWithStreamingResponse(self._email_security.submissions)
152+
124153

125154
class AsyncEmailSecurityResourceWithStreamingResponse:
126155
def __init__(self, email_security: AsyncEmailSecurityResource) -> None:
@@ -133,3 +162,7 @@ def investigate(self) -> AsyncInvestigateResourceWithStreamingResponse:
133162
@cached_property
134163
def settings(self) -> AsyncSettingsResourceWithStreamingResponse:
135164
return AsyncSettingsResourceWithStreamingResponse(self._email_security.settings)
165+
166+
@cached_property
167+
def submissions(self) -> AsyncSubmissionsResourceWithStreamingResponse:
168+
return AsyncSubmissionsResourceWithStreamingResponse(self._email_security.submissions)

0 commit comments

Comments
 (0)