Skip to content

Commit f44708a

Browse files
feat(api): api update
1 parent f8940d5 commit f44708a

336 files changed

Lines changed: 5162 additions & 6530 deletions

File tree

Some content is hidden

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

.stats.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1802
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-56da74b4ad875807aa6c4b3ef1fdf57ec7d2a527715770a08dd76afcc5d1ad33.yml
3-
openapi_spec_hash: c6f5be1be7d0433742907540dcc485d8
1+
configured_endpoints: 1809
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-77d61495fecd0d26b9adff1af0ab3510b06a3cc2c6781b9a40aabcad2f10588a.yml
3+
openapi_spec_hash: 95dee3be411dda77306a41dc7d49eb35
44
config_hash: ac04197a992afb1d8c3b416fc46e8c8e

api.md

Lines changed: 73 additions & 15 deletions
Large diffs are not rendered by default.

src/cloudflare/_client.py

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@
126126
origin_ca_certificates,
127127
origin_tls_client_auth,
128128
certificate_authorities,
129+
leaked_credential_checks,
129130
magic_network_monitoring,
130131
origin_post_quantum_encryption,
131132
)
@@ -243,6 +244,10 @@
243244
CertificateAuthoritiesResource,
244245
AsyncCertificateAuthoritiesResource,
245246
)
247+
from .resources.leaked_credential_checks.leaked_credential_checks import (
248+
LeakedCredentialChecksResource,
249+
AsyncLeakedCredentialChecksResource,
250+
)
246251
from .resources.magic_network_monitoring.magic_network_monitoring import (
247252
MagicNetworkMonitoringResource,
248253
AsyncMagicNetworkMonitoringResource,
@@ -848,6 +853,12 @@ def resource_sharing(self) -> ResourceSharingResource:
848853

849854
return ResourceSharingResource(self)
850855

856+
@cached_property
857+
def leaked_credential_checks(self) -> LeakedCredentialChecksResource:
858+
from .resources.leaked_credential_checks import LeakedCredentialChecksResource
859+
860+
return LeakedCredentialChecksResource(self)
861+
851862
@cached_property
852863
def content_scanning(self) -> ContentScanningResource:
853864
from .resources.content_scanning import ContentScanningResource
@@ -1674,6 +1685,12 @@ def resource_sharing(self) -> AsyncResourceSharingResource:
16741685

16751686
return AsyncResourceSharingResource(self)
16761687

1688+
@cached_property
1689+
def leaked_credential_checks(self) -> AsyncLeakedCredentialChecksResource:
1690+
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResource
1691+
1692+
return AsyncLeakedCredentialChecksResource(self)
1693+
16771694
@cached_property
16781695
def content_scanning(self) -> AsyncContentScanningResource:
16791696
from .resources.content_scanning import AsyncContentScanningResource
@@ -2430,6 +2447,12 @@ def resource_sharing(self) -> resource_sharing.ResourceSharingResourceWithRawRes
24302447

24312448
return ResourceSharingResourceWithRawResponse(self._client.resource_sharing)
24322449

2450+
@cached_property
2451+
def leaked_credential_checks(self) -> leaked_credential_checks.LeakedCredentialChecksResourceWithRawResponse:
2452+
from .resources.leaked_credential_checks import LeakedCredentialChecksResourceWithRawResponse
2453+
2454+
return LeakedCredentialChecksResourceWithRawResponse(self._client.leaked_credential_checks)
2455+
24332456
@cached_property
24342457
def content_scanning(self) -> content_scanning.ContentScanningResourceWithRawResponse:
24352458
from .resources.content_scanning import ContentScanningResourceWithRawResponse
@@ -3003,6 +3026,12 @@ def resource_sharing(self) -> resource_sharing.AsyncResourceSharingResourceWithR
30033026

30043027
return AsyncResourceSharingResourceWithRawResponse(self._client.resource_sharing)
30053028

3029+
@cached_property
3030+
def leaked_credential_checks(self) -> leaked_credential_checks.AsyncLeakedCredentialChecksResourceWithRawResponse:
3031+
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResourceWithRawResponse
3032+
3033+
return AsyncLeakedCredentialChecksResourceWithRawResponse(self._client.leaked_credential_checks)
3034+
30063035
@cached_property
30073036
def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithRawResponse:
30083037
from .resources.content_scanning import AsyncContentScanningResourceWithRawResponse
@@ -3576,6 +3605,12 @@ def resource_sharing(self) -> resource_sharing.ResourceSharingResourceWithStream
35763605

35773606
return ResourceSharingResourceWithStreamingResponse(self._client.resource_sharing)
35783607

3608+
@cached_property
3609+
def leaked_credential_checks(self) -> leaked_credential_checks.LeakedCredentialChecksResourceWithStreamingResponse:
3610+
from .resources.leaked_credential_checks import LeakedCredentialChecksResourceWithStreamingResponse
3611+
3612+
return LeakedCredentialChecksResourceWithStreamingResponse(self._client.leaked_credential_checks)
3613+
35793614
@cached_property
35803615
def content_scanning(self) -> content_scanning.ContentScanningResourceWithStreamingResponse:
35813616
from .resources.content_scanning import ContentScanningResourceWithStreamingResponse
@@ -4157,6 +4192,14 @@ def resource_sharing(self) -> resource_sharing.AsyncResourceSharingResourceWithS
41574192

41584193
return AsyncResourceSharingResourceWithStreamingResponse(self._client.resource_sharing)
41594194

4195+
@cached_property
4196+
def leaked_credential_checks(
4197+
self,
4198+
) -> leaked_credential_checks.AsyncLeakedCredentialChecksResourceWithStreamingResponse:
4199+
from .resources.leaked_credential_checks import AsyncLeakedCredentialChecksResourceWithStreamingResponse
4200+
4201+
return AsyncLeakedCredentialChecksResourceWithStreamingResponse(self._client.leaked_credential_checks)
4202+
41604203
@cached_property
41614204
def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithStreamingResponse:
41624205
from .resources.content_scanning import AsyncContentScanningResourceWithStreamingResponse

src/cloudflare/resources/browser_rendering/links.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ def create(
8181
best_attempt: bool | NotGiven = NOT_GIVEN,
8282
cookies: Iterable[link_create_params.Cookie] | NotGiven = NOT_GIVEN,
8383
emulate_media_type: str | NotGiven = NOT_GIVEN,
84-
exclude_external_links: bool | NotGiven = NOT_GIVEN,
8584
goto_options: link_create_params.GotoOptions | NotGiven = NOT_GIVEN,
8685
html: str | NotGiven = NOT_GIVEN,
8786
reject_request_pattern: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
@@ -194,7 +193,6 @@ def create(
194193
"best_attempt": best_attempt,
195194
"cookies": cookies,
196195
"emulate_media_type": emulate_media_type,
197-
"exclude_external_links": exclude_external_links,
198196
"goto_options": goto_options,
199197
"html": html,
200198
"reject_request_pattern": reject_request_pattern,
@@ -278,7 +276,6 @@ async def create(
278276
best_attempt: bool | NotGiven = NOT_GIVEN,
279277
cookies: Iterable[link_create_params.Cookie] | NotGiven = NOT_GIVEN,
280278
emulate_media_type: str | NotGiven = NOT_GIVEN,
281-
exclude_external_links: bool | NotGiven = NOT_GIVEN,
282279
goto_options: link_create_params.GotoOptions | NotGiven = NOT_GIVEN,
283280
html: str | NotGiven = NOT_GIVEN,
284281
reject_request_pattern: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
@@ -391,7 +388,6 @@ async def create(
391388
"best_attempt": best_attempt,
392389
"cookies": cookies,
393390
"emulate_media_type": emulate_media_type,
394-
"exclude_external_links": exclude_external_links,
395391
"goto_options": goto_options,
396392
"html": html,
397393
"reject_request_pattern": reject_request_pattern,

src/cloudflare/resources/calls/turn.py

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def create(
6060
extra_query: Query | None = None,
6161
extra_body: Body | None = None,
6262
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
63-
) -> Optional[TURNCreateResponse]:
63+
) -> TURNCreateResponse:
6464
"""
6565
Creates a new Cloudflare Calls TURN key.
6666
@@ -83,13 +83,9 @@ def create(
8383
f"/accounts/{account_id}/calls/turn_keys",
8484
body=maybe_transform({"name": name}, turn_create_params.TURNCreateParams),
8585
options=make_request_options(
86-
extra_headers=extra_headers,
87-
extra_query=extra_query,
88-
extra_body=extra_body,
89-
timeout=timeout,
90-
post_parser=ResultWrapper[Optional[TURNCreateResponse]]._unwrapper,
86+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
9187
),
92-
cast_to=cast(Type[Optional[TURNCreateResponse]], ResultWrapper[TURNCreateResponse]),
88+
cast_to=TURNCreateResponse,
9389
)
9490

9591
def update(
@@ -296,7 +292,7 @@ async def create(
296292
extra_query: Query | None = None,
297293
extra_body: Body | None = None,
298294
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
299-
) -> Optional[TURNCreateResponse]:
295+
) -> TURNCreateResponse:
300296
"""
301297
Creates a new Cloudflare Calls TURN key.
302298
@@ -319,13 +315,9 @@ async def create(
319315
f"/accounts/{account_id}/calls/turn_keys",
320316
body=await async_maybe_transform({"name": name}, turn_create_params.TURNCreateParams),
321317
options=make_request_options(
322-
extra_headers=extra_headers,
323-
extra_query=extra_query,
324-
extra_body=extra_body,
325-
timeout=timeout,
326-
post_parser=ResultWrapper[Optional[TURNCreateResponse]]._unwrapper,
318+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
327319
),
328-
cast_to=cast(Type[Optional[TURNCreateResponse]], ResultWrapper[TURNCreateResponse]),
320+
cast_to=TURNCreateResponse,
329321
)
330322

331323
async def update(

src/cloudflare/resources/cloudforce_one/threat_events/__init__.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,14 @@
1616
TagsResourceWithStreamingResponse,
1717
AsyncTagsResourceWithStreamingResponse,
1818
)
19+
from .crons import (
20+
CronsResource,
21+
AsyncCronsResource,
22+
CronsResourceWithRawResponse,
23+
AsyncCronsResourceWithRawResponse,
24+
CronsResourceWithStreamingResponse,
25+
AsyncCronsResourceWithStreamingResponse,
26+
)
1927
from .relate import (
2028
RelateResource,
2129
AsyncRelateResource,
@@ -108,6 +116,12 @@
108116
"AsyncCountriesResourceWithRawResponse",
109117
"CountriesResourceWithStreamingResponse",
110118
"AsyncCountriesResourceWithStreamingResponse",
119+
"CronsResource",
120+
"AsyncCronsResource",
121+
"CronsResourceWithRawResponse",
122+
"AsyncCronsResourceWithRawResponse",
123+
"CronsResourceWithStreamingResponse",
124+
"AsyncCronsResourceWithStreamingResponse",
111125
"DatasetsResource",
112126
"AsyncDatasetsResource",
113127
"DatasetsResourceWithRawResponse",

0 commit comments

Comments
 (0)