Skip to content

Commit 2cad4a0

Browse files
stainless-app[bot]stainless-bot
authored andcommitted
feat(internal): update path placeholders (#2224)
1 parent 2e9734b commit 2cad4a0

Some content is hidden

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

41 files changed

+4551
-48
lines changed

.stats.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
configured_endpoints: 1436
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-8c1088ba96368f5f19f6d33654ae76942cfd4f0e3b7f418add2c67b01a6085dc.yml
1+
configured_endpoints: 1451
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-c5682a28c312411d32f5a8447e4c50880eabf7d71415128758e7924dc434c4da.yml

api.md

+55-1
Original file line numberDiff line numberDiff line change
@@ -1164,7 +1164,7 @@ from cloudflare.types.dnssec import DNSSEC, DNSSECDeleteResponse
11641164

11651165
Methods:
11661166

1167-
- <code title="delete /zones/{zone_id}/dnssec">client.dnssec.<a href="./src/cloudflare/resources/dnssec.py">delete</a>(\*, zone_id) -> <a href="./src/cloudflare/types/dnssec/dnssec_delete_response.py">str</a></code>
1167+
- <code title="delete /zones/{zone_id}/dnssec">client.dnssec.<a href="./src/cloudflare/resources/dnssec.py">delete</a>(\*, zone_id) -> <a href="./src/cloudflare/types/dnssec/dnssec_delete_response.py">Optional[DNSSECDeleteResponse]</a></code>
11681168
- <code title="patch /zones/{zone_id}/dnssec">client.dnssec.<a href="./src/cloudflare/resources/dnssec.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/dnssec/dnssec_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/dnssec/dnssec.py">Optional[DNSSEC]</a></code>
11691169
- <code title="get /zones/{zone_id}/dnssec">client.dnssec.<a href="./src/cloudflare/resources/dnssec.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/dnssec/dnssec.py">Optional[DNSSEC]</a></code>
11701170

@@ -1367,13 +1367,19 @@ Types:
13671367
from cloudflare.types.email_security.settings import (
13681368
TrustedDomainCreateResponse,
13691369
TrustedDomainListResponse,
1370+
TrustedDomainDeleteResponse,
1371+
TrustedDomainEditResponse,
1372+
TrustedDomainGetResponse,
13701373
)
13711374
```
13721375

13731376
Methods:
13741377

13751378
- <code title="post /accounts/{account_id}/email-security/settings/trusted_domains">client.email_security.settings.trusted_domains.<a href="./src/cloudflare/resources/email_security/settings/trusted_domains.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/email_security/settings/trusted_domain_create_params.py">params</a>) -> <a href="./src/cloudflare/types/email_security/settings/trusted_domain_create_response.py">TrustedDomainCreateResponse</a></code>
13761379
- <code title="get /accounts/{account_id}/email-security/settings/trusted_domains">client.email_security.settings.trusted_domains.<a href="./src/cloudflare/resources/email_security/settings/trusted_domains.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/email_security/settings/trusted_domain_list_params.py">params</a>) -> <a href="./src/cloudflare/types/email_security/settings/trusted_domain_list_response.py">SyncV4PagePaginationArray[TrustedDomainListResponse]</a></code>
1380+
- <code title="delete /accounts/{account_id}/email-security/settings/trusted_domains/{trusted_domain_id}">client.email_security.settings.trusted_domains.<a href="./src/cloudflare/resources/email_security/settings/trusted_domains.py">delete</a>(trusted_domain_id, \*, account_id) -> <a href="./src/cloudflare/types/email_security/settings/trusted_domain_delete_response.py">TrustedDomainDeleteResponse</a></code>
1381+
- <code title="patch /accounts/{account_id}/email-security/settings/trusted_domains/{trusted_domain_id}">client.email_security.settings.trusted_domains.<a href="./src/cloudflare/resources/email_security/settings/trusted_domains.py">edit</a>(trusted_domain_id, \*, account_id, \*\*<a href="src/cloudflare/types/email_security/settings/trusted_domain_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/email_security/settings/trusted_domain_edit_response.py">TrustedDomainEditResponse</a></code>
1382+
- <code title="get /accounts/{account_id}/email-security/settings/trusted_domains/{trusted_domain_id}">client.email_security.settings.trusted_domains.<a href="./src/cloudflare/resources/email_security/settings/trusted_domains.py">get</a>(trusted_domain_id, \*, account_id) -> <a href="./src/cloudflare/types/email_security/settings/trusted_domain_get_response.py">TrustedDomainGetResponse</a></code>
13771383

13781384
## Submissions
13791385

@@ -8274,14 +8280,62 @@ Types:
82748280
```python
82758281
from cloudflare.types.resource_sharing import (
82768282
ResourceSharingCreateResponse,
8283+
ResourceSharingUpdateResponse,
82778284
ResourceSharingListResponse,
8285+
ResourceSharingDeleteResponse,
8286+
ResourceSharingGetResponse,
82788287
)
82798288
```
82808289

82818290
Methods:
82828291

82838292
- <code title="post /accounts/{account_id}/shares">client.resource_sharing.<a href="./src/cloudflare/resources/resource_sharing/resource_sharing.py">create</a>(\*, account_id, \*\*<a href="src/cloudflare/types/resource_sharing/resource_sharing_create_params.py">params</a>) -> <a href="./src/cloudflare/types/resource_sharing/resource_sharing_create_response.py">Optional[ResourceSharingCreateResponse]</a></code>
8293+
- <code title="put /accounts/{account_id}/shares/{share_id}">client.resource_sharing.<a href="./src/cloudflare/resources/resource_sharing/resource_sharing.py">update</a>(share_id, \*, account_id, \*\*<a href="src/cloudflare/types/resource_sharing/resource_sharing_update_params.py">params</a>) -> <a href="./src/cloudflare/types/resource_sharing/resource_sharing_update_response.py">Optional[ResourceSharingUpdateResponse]</a></code>
82848294
- <code title="get /accounts/{account_id}/shares">client.resource_sharing.<a href="./src/cloudflare/resources/resource_sharing/resource_sharing.py">list</a>(\*, account_id, \*\*<a href="src/cloudflare/types/resource_sharing/resource_sharing_list_params.py">params</a>) -> <a href="./src/cloudflare/types/resource_sharing/resource_sharing_list_response.py">SyncV4PagePaginationArray[ResourceSharingListResponse]</a></code>
8295+
- <code title="delete /accounts/{account_id}/shares/{share_id}">client.resource_sharing.<a href="./src/cloudflare/resources/resource_sharing/resource_sharing.py">delete</a>(share_id, \*, account_id) -> <a href="./src/cloudflare/types/resource_sharing/resource_sharing_delete_response.py">Optional[ResourceSharingDeleteResponse]</a></code>
8296+
- <code title="get /accounts/{account_id}/shares/{share_id}">client.resource_sharing.<a href="./src/cloudflare/resources/resource_sharing/resource_sharing.py">get</a>(share_id, \*, account_id) -> <a href="./src/cloudflare/types/resource_sharing/resource_sharing_get_response.py">Optional[ResourceSharingGetResponse]</a></code>
8297+
8298+
## Recipients
8299+
8300+
Types:
8301+
8302+
```python
8303+
from cloudflare.types.resource_sharing import (
8304+
RecipientCreateResponse,
8305+
RecipientListResponse,
8306+
RecipientDeleteResponse,
8307+
RecipientGetResponse,
8308+
)
8309+
```
8310+
8311+
Methods:
8312+
8313+
- <code title="post /accounts/{account_id}/shares/{share_id}/recipients">client.resource_sharing.recipients.<a href="./src/cloudflare/resources/resource_sharing/recipients.py">create</a>(share_id, \*, path_account_id, \*\*<a href="src/cloudflare/types/resource_sharing/recipient_create_params.py">params</a>) -> <a href="./src/cloudflare/types/resource_sharing/recipient_create_response.py">Optional[RecipientCreateResponse]</a></code>
8314+
- <code title="get /accounts/{account_id}/shares/{share_id}/recipients">client.resource_sharing.recipients.<a href="./src/cloudflare/resources/resource_sharing/recipients.py">list</a>(share_id, \*, account_id, \*\*<a href="src/cloudflare/types/resource_sharing/recipient_list_params.py">params</a>) -> <a href="./src/cloudflare/types/resource_sharing/recipient_list_response.py">SyncV4PagePaginationArray[RecipientListResponse]</a></code>
8315+
- <code title="delete /accounts/{account_id}/shares/{share_id}/recipients/{recipient_id}">client.resource_sharing.recipients.<a href="./src/cloudflare/resources/resource_sharing/recipients.py">delete</a>(recipient_id, \*, account_id, share_id) -> <a href="./src/cloudflare/types/resource_sharing/recipient_delete_response.py">Optional[RecipientDeleteResponse]</a></code>
8316+
- <code title="get /accounts/{account_id}/shares/{share_id}/recipients/{recipient_id}">client.resource_sharing.recipients.<a href="./src/cloudflare/resources/resource_sharing/recipients.py">get</a>(recipient_id, \*, account_id, share_id) -> <a href="./src/cloudflare/types/resource_sharing/recipient_get_response.py">Optional[RecipientGetResponse]</a></code>
8317+
8318+
## Resources
8319+
8320+
Types:
8321+
8322+
```python
8323+
from cloudflare.types.resource_sharing import (
8324+
ResourceCreateResponse,
8325+
ResourceUpdateResponse,
8326+
ResourceListResponse,
8327+
ResourceDeleteResponse,
8328+
ResourceGetResponse,
8329+
)
8330+
```
8331+
8332+
Methods:
8333+
8334+
- <code title="post /accounts/{account_id}/shares/{share_id}/resources">client.resource_sharing.resources.<a href="./src/cloudflare/resources/resource_sharing/resources.py">create</a>(share_id, \*, account_id, \*\*<a href="src/cloudflare/types/resource_sharing/resource_create_params.py">params</a>) -> <a href="./src/cloudflare/types/resource_sharing/resource_create_response.py">Optional[ResourceCreateResponse]</a></code>
8335+
- <code title="put /accounts/{account_id}/shares/{share_id}/resources/{resource_id}">client.resource_sharing.resources.<a href="./src/cloudflare/resources/resource_sharing/resources.py">update</a>(resource_id, \*, account_id, share_id, \*\*<a href="src/cloudflare/types/resource_sharing/resource_update_params.py">params</a>) -> <a href="./src/cloudflare/types/resource_sharing/resource_update_response.py">Optional[ResourceUpdateResponse]</a></code>
8336+
- <code title="get /accounts/{account_id}/shares/{share_id}/resources">client.resource_sharing.resources.<a href="./src/cloudflare/resources/resource_sharing/resources.py">list</a>(share_id, \*, account_id, \*\*<a href="src/cloudflare/types/resource_sharing/resource_list_params.py">params</a>) -> <a href="./src/cloudflare/types/resource_sharing/resource_list_response.py">SyncV4PagePaginationArray[ResourceListResponse]</a></code>
8337+
- <code title="delete /accounts/{account_id}/shares/{share_id}/resources/{resource_id}">client.resource_sharing.resources.<a href="./src/cloudflare/resources/resource_sharing/resources.py">delete</a>(resource_id, \*, account_id, share_id) -> <a href="./src/cloudflare/types/resource_sharing/resource_delete_response.py">Optional[ResourceDeleteResponse]</a></code>
8338+
- <code title="get /accounts/{account_id}/shares/{share_id}/resources/{resource_id}">client.resource_sharing.resources.<a href="./src/cloudflare/resources/resource_sharing/resources.py">get</a>(resource_id, \*, account_id, share_id) -> <a href="./src/cloudflare/types/resource_sharing/resource_get_response.py">Optional[ResourceGetResponse]</a></code>
82858339

82868340
# LeakedCredentialChecks
82878341

src/cloudflare/resources/ai_gateway/ai_gateway.py

-8
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,6 @@ def list(
234234
order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
235235
page: int | NotGiven = NOT_GIVEN,
236236
per_page: int | NotGiven = NOT_GIVEN,
237-
search: str | NotGiven = NOT_GIVEN,
238237
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
239238
# The extra values given here take precedence over values defined on the client or passed to this method.
240239
extra_headers: Headers | None = None,
@@ -250,8 +249,6 @@ def list(
250249
251250
order_by_direction: Order By Direction
252251
253-
search: Search by id
254-
255252
extra_headers: Send extra headers
256253
257254
extra_query: Add additional query parameters to the request
@@ -276,7 +273,6 @@ def list(
276273
"order_by_direction": order_by_direction,
277274
"page": page,
278275
"per_page": per_page,
279-
"search": search,
280276
},
281277
ai_gateway_list_params.AIGatewayListParams,
282278
),
@@ -538,7 +534,6 @@ def list(
538534
order_by_direction: Literal["asc", "desc"] | NotGiven = NOT_GIVEN,
539535
page: int | NotGiven = NOT_GIVEN,
540536
per_page: int | NotGiven = NOT_GIVEN,
541-
search: str | NotGiven = NOT_GIVEN,
542537
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
543538
# The extra values given here take precedence over values defined on the client or passed to this method.
544539
extra_headers: Headers | None = None,
@@ -554,8 +549,6 @@ def list(
554549
555550
order_by_direction: Order By Direction
556551
557-
search: Search by id
558-
559552
extra_headers: Send extra headers
560553
561554
extra_query: Add additional query parameters to the request
@@ -580,7 +573,6 @@ def list(
580573
"order_by_direction": order_by_direction,
581574
"page": page,
582575
"per_page": per_page,
583-
"search": search,
584576
},
585577
ai_gateway_list_params.AIGatewayListParams,
586578
),

src/cloudflare/resources/dnssec.py

+31-21
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Type, Optional, cast
5+
from typing import Any, Type, Optional, cast
66
from typing_extensions import Literal
77

88
import httpx
@@ -59,7 +59,7 @@ def delete(
5959
extra_query: Query | None = None,
6060
extra_body: Body | None = None,
6161
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
62-
) -> str:
62+
) -> Optional[DNSSECDeleteResponse]:
6363
"""
6464
Delete DNSSEC.
6565
@@ -76,16 +76,21 @@ def delete(
7676
"""
7777
if not zone_id:
7878
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
79-
return self._delete(
80-
f"/zones/{zone_id}/dnssec",
81-
options=make_request_options(
82-
extra_headers=extra_headers,
83-
extra_query=extra_query,
84-
extra_body=extra_body,
85-
timeout=timeout,
86-
post_parser=ResultWrapper[Optional[DNSSECDeleteResponse]]._unwrapper,
79+
return cast(
80+
Optional[DNSSECDeleteResponse],
81+
self._delete(
82+
f"/zones/{zone_id}/dnssec",
83+
options=make_request_options(
84+
extra_headers=extra_headers,
85+
extra_query=extra_query,
86+
extra_body=extra_body,
87+
timeout=timeout,
88+
post_parser=ResultWrapper[Optional[DNSSECDeleteResponse]]._unwrapper,
89+
),
90+
cast_to=cast(
91+
Any, ResultWrapper[DNSSECDeleteResponse]
92+
), # Union types cannot be passed in as arguments in the type system
8793
),
88-
cast_to=cast(Type[str], ResultWrapper[str]),
8994
)
9095

9196
def edit(
@@ -227,7 +232,7 @@ async def delete(
227232
extra_query: Query | None = None,
228233
extra_body: Body | None = None,
229234
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
230-
) -> str:
235+
) -> Optional[DNSSECDeleteResponse]:
231236
"""
232237
Delete DNSSEC.
233238
@@ -244,16 +249,21 @@ async def delete(
244249
"""
245250
if not zone_id:
246251
raise ValueError(f"Expected a non-empty value for `zone_id` but received {zone_id!r}")
247-
return await self._delete(
248-
f"/zones/{zone_id}/dnssec",
249-
options=make_request_options(
250-
extra_headers=extra_headers,
251-
extra_query=extra_query,
252-
extra_body=extra_body,
253-
timeout=timeout,
254-
post_parser=ResultWrapper[Optional[DNSSECDeleteResponse]]._unwrapper,
252+
return cast(
253+
Optional[DNSSECDeleteResponse],
254+
await self._delete(
255+
f"/zones/{zone_id}/dnssec",
256+
options=make_request_options(
257+
extra_headers=extra_headers,
258+
extra_query=extra_query,
259+
extra_body=extra_body,
260+
timeout=timeout,
261+
post_parser=ResultWrapper[Optional[DNSSECDeleteResponse]]._unwrapper,
262+
),
263+
cast_to=cast(
264+
Any, ResultWrapper[DNSSECDeleteResponse]
265+
), # Union types cannot be passed in as arguments in the type system
255266
),
256-
cast_to=cast(Type[str], ResultWrapper[str]),
257267
)
258268

259269
async def edit(

0 commit comments

Comments
 (0)