Skip to content

Commit a0fa061

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

336 files changed

Lines changed: 6530 additions & 5162 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: 1809
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-77d61495fecd0d26b9adff1af0ab3510b06a3cc2c6781b9a40aabcad2f10588a.yml
3-
openapi_spec_hash: 95dee3be411dda77306a41dc7d49eb35
1+
configured_endpoints: 1802
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-989c563ddbbed345412007c49842c964fa058b567343cd1a4015e301e74615fa.yml
3+
openapi_spec_hash: 4e40c7ba0903d784a3e3415cae74cbc1
44
config_hash: ac04197a992afb1d8c3b416fc46e8c8e

api.md

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

src/cloudflare/_client.py

Lines changed: 0 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@
126126
origin_ca_certificates,
127127
origin_tls_client_auth,
128128
certificate_authorities,
129-
leaked_credential_checks,
130129
magic_network_monitoring,
131130
origin_post_quantum_encryption,
132131
)
@@ -244,10 +243,6 @@
244243
CertificateAuthoritiesResource,
245244
AsyncCertificateAuthoritiesResource,
246245
)
247-
from .resources.leaked_credential_checks.leaked_credential_checks import (
248-
LeakedCredentialChecksResource,
249-
AsyncLeakedCredentialChecksResource,
250-
)
251246
from .resources.magic_network_monitoring.magic_network_monitoring import (
252247
MagicNetworkMonitoringResource,
253248
AsyncMagicNetworkMonitoringResource,
@@ -853,12 +848,6 @@ def resource_sharing(self) -> ResourceSharingResource:
853848

854849
return ResourceSharingResource(self)
855850

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

16861675
return AsyncResourceSharingResource(self)
16871676

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

24482431
return ResourceSharingResourceWithRawResponse(self._client.resource_sharing)
24492432

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-
24562433
@cached_property
24572434
def content_scanning(self) -> content_scanning.ContentScanningResourceWithRawResponse:
24582435
from .resources.content_scanning import ContentScanningResourceWithRawResponse
@@ -3026,12 +3003,6 @@ def resource_sharing(self) -> resource_sharing.AsyncResourceSharingResourceWithR
30263003

30273004
return AsyncResourceSharingResourceWithRawResponse(self._client.resource_sharing)
30283005

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-
30353006
@cached_property
30363007
def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithRawResponse:
30373008
from .resources.content_scanning import AsyncContentScanningResourceWithRawResponse
@@ -3605,12 +3576,6 @@ def resource_sharing(self) -> resource_sharing.ResourceSharingResourceWithStream
36053576

36063577
return ResourceSharingResourceWithStreamingResponse(self._client.resource_sharing)
36073578

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-
36143579
@cached_property
36153580
def content_scanning(self) -> content_scanning.ContentScanningResourceWithStreamingResponse:
36163581
from .resources.content_scanning import ContentScanningResourceWithStreamingResponse
@@ -4192,14 +4157,6 @@ def resource_sharing(self) -> resource_sharing.AsyncResourceSharingResourceWithS
41924157

41934158
return AsyncResourceSharingResourceWithStreamingResponse(self._client.resource_sharing)
41944159

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-
42034160
@cached_property
42044161
def content_scanning(self) -> content_scanning.AsyncContentScanningResourceWithStreamingResponse:
42054162
from .resources.content_scanning import AsyncContentScanningResourceWithStreamingResponse

src/cloudflare/resources/browser_rendering/links.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ 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,
8485
goto_options: link_create_params.GotoOptions | NotGiven = NOT_GIVEN,
8586
html: str | NotGiven = NOT_GIVEN,
8687
reject_request_pattern: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
@@ -193,6 +194,7 @@ def create(
193194
"best_attempt": best_attempt,
194195
"cookies": cookies,
195196
"emulate_media_type": emulate_media_type,
197+
"exclude_external_links": exclude_external_links,
196198
"goto_options": goto_options,
197199
"html": html,
198200
"reject_request_pattern": reject_request_pattern,
@@ -276,6 +278,7 @@ async def create(
276278
best_attempt: bool | NotGiven = NOT_GIVEN,
277279
cookies: Iterable[link_create_params.Cookie] | NotGiven = NOT_GIVEN,
278280
emulate_media_type: str | NotGiven = NOT_GIVEN,
281+
exclude_external_links: bool | NotGiven = NOT_GIVEN,
279282
goto_options: link_create_params.GotoOptions | NotGiven = NOT_GIVEN,
280283
html: str | NotGiven = NOT_GIVEN,
281284
reject_request_pattern: SequenceNotStr[str] | NotGiven = NOT_GIVEN,
@@ -388,6 +391,7 @@ async def create(
388391
"best_attempt": best_attempt,
389392
"cookies": cookies,
390393
"emulate_media_type": emulate_media_type,
394+
"exclude_external_links": exclude_external_links,
391395
"goto_options": goto_options,
392396
"html": html,
393397
"reject_request_pattern": reject_request_pattern,

src/cloudflare/resources/calls/turn.py

Lines changed: 14 additions & 6 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-
) -> TURNCreateResponse:
63+
) -> Optional[TURNCreateResponse]:
6464
"""
6565
Creates a new Cloudflare Calls TURN key.
6666
@@ -83,9 +83,13 @@ 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, extra_query=extra_query, extra_body=extra_body, timeout=timeout
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,
8791
),
88-
cast_to=TURNCreateResponse,
92+
cast_to=cast(Type[Optional[TURNCreateResponse]], ResultWrapper[TURNCreateResponse]),
8993
)
9094

9195
def update(
@@ -292,7 +296,7 @@ async def create(
292296
extra_query: Query | None = None,
293297
extra_body: Body | None = None,
294298
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
295-
) -> TURNCreateResponse:
299+
) -> Optional[TURNCreateResponse]:
296300
"""
297301
Creates a new Cloudflare Calls TURN key.
298302
@@ -315,9 +319,13 @@ async def create(
315319
f"/accounts/{account_id}/calls/turn_keys",
316320
body=await async_maybe_transform({"name": name}, turn_create_params.TURNCreateParams),
317321
options=make_request_options(
318-
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
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,
319327
),
320-
cast_to=TURNCreateResponse,
328+
cast_to=cast(Type[Optional[TURNCreateResponse]], ResultWrapper[TURNCreateResponse]),
321329
)
322330

323331
async def update(

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,6 @@
1616
TagsResourceWithStreamingResponse,
1717
AsyncTagsResourceWithStreamingResponse,
1818
)
19-
from .crons import (
20-
CronsResource,
21-
AsyncCronsResource,
22-
CronsResourceWithRawResponse,
23-
AsyncCronsResourceWithRawResponse,
24-
CronsResourceWithStreamingResponse,
25-
AsyncCronsResourceWithStreamingResponse,
26-
)
2719
from .relate import (
2820
RelateResource,
2921
AsyncRelateResource,
@@ -116,12 +108,6 @@
116108
"AsyncCountriesResourceWithRawResponse",
117109
"CountriesResourceWithStreamingResponse",
118110
"AsyncCountriesResourceWithStreamingResponse",
119-
"CronsResource",
120-
"AsyncCronsResource",
121-
"CronsResourceWithRawResponse",
122-
"AsyncCronsResourceWithRawResponse",
123-
"CronsResourceWithStreamingResponse",
124-
"AsyncCronsResourceWithStreamingResponse",
125111
"DatasetsResource",
126112
"AsyncDatasetsResource",
127113
"DatasetsResourceWithRawResponse",

0 commit comments

Comments
 (0)