Skip to content

Commit 5c57d32

Browse files
feat(api): Update verb on PATCH zone hold method (#2275)
1 parent 352b69d commit 5c57d32

Some content is hidden

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

81 files changed

+658
-6721
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
configured_endpoints: 1462
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-df037996f4a1d35cf34bb8d9deeee63b60463bb6f8814caec9fa4c659073fb0d.yml
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-4118c37824cecf34c05447175906b84c57105e89ea6a092fee7047b46613e094.yml

api.md

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -416,8 +416,8 @@ from cloudflare.types.zones import ZoneHold
416416
Methods:
417417

418418
- <code title="post /zones/{zone_id}/hold">client.zones.holds.<a href="./src/cloudflare/resources/zones/holds.py">create</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/hold_create_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/zone_hold.py">ZoneHold</a></code>
419-
- <code title="patch /zones/{zone_id}/hold">client.zones.holds.<a href="./src/cloudflare/resources/zones/holds.py">update</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/hold_update_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/zone_hold.py">ZoneHold</a></code>
420419
- <code title="delete /zones/{zone_id}/hold">client.zones.holds.<a href="./src/cloudflare/resources/zones/holds.py">delete</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/hold_delete_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/zone_hold.py">ZoneHold</a></code>
420+
- <code title="patch /zones/{zone_id}/hold">client.zones.holds.<a href="./src/cloudflare/resources/zones/holds.py">edit</a>(\*, zone_id, \*\*<a href="src/cloudflare/types/zones/hold_edit_params.py">params</a>) -> <a href="./src/cloudflare/types/zones/zone_hold.py">ZoneHold</a></code>
421421
- <code title="get /zones/{zone_id}/hold">client.zones.holds.<a href="./src/cloudflare/resources/zones/holds.py">get</a>(\*, zone_id) -> <a href="./src/cloudflare/types/zones/zone_hold.py">ZoneHold</a></code>
422422

423423
## Subscriptions
@@ -2284,6 +2284,32 @@ from cloudflare.types.workers import (
22842284
)
22852285
```
22862286

2287+
## AI
2288+
2289+
Types:
2290+
2291+
```python
2292+
from cloudflare.types.workers import AIRunResponse
2293+
```
2294+
2295+
Methods:
2296+
2297+
- <code title="post /accounts/{account_id}/ai/run/{model_name}">client.workers.ai.<a href="./src/cloudflare/resources/workers/ai/ai.py">run</a>(model_name, \*, account_id, \*\*<a href="src/cloudflare/types/workers/ai_run_params.py">params</a>) -> <a href="./src/cloudflare/types/workers/ai_run_response.py">Optional[AIRunResponse]</a></code>
2298+
2299+
### Models
2300+
2301+
#### Schema
2302+
2303+
Types:
2304+
2305+
```python
2306+
from cloudflare.types.workers.ai.models import SchemaGetResponse
2307+
```
2308+
2309+
Methods:
2310+
2311+
- <code title="get /accounts/{account_id}/ai/models/schema">client.workers.ai.models.schema.<a href="./src/cloudflare/resources/workers/ai/models/schema.py">get</a>(\*, account_id, \*\*<a href="src/cloudflare/types/workers/ai/models/schema_get_params.py">params</a>) -> <a href="./src/cloudflare/types/workers/ai/models/schema_get_response.py">object</a></code>
2312+
22872313
## Assets
22882314

22892315
### Upload
@@ -8389,29 +8415,3 @@ from cloudflare.types.abuse_reports import AbuseReportCreateResponse
83898415
Methods:
83908416

83918417
- <code title="post /accounts/{account_id}/v1/abuse-reports/{report_type}">client.abuse_reports.<a href="./src/cloudflare/resources/abuse_reports.py">create</a>(report_type, \*, account_id, \*\*<a href="src/cloudflare/types/abuse_reports/abuse_report_create_params.py">params</a>) -> <a href="./src/cloudflare/types/abuse_reports/abuse_report_create_response.py">str</a></code>
8392-
8393-
# AI
8394-
8395-
Types:
8396-
8397-
```python
8398-
from cloudflare.types.ai import AIRunResponse
8399-
```
8400-
8401-
Methods:
8402-
8403-
- <code title="post /accounts/{account_id}/ai/run/{model_name}">client.ai.<a href="./src/cloudflare/resources/ai/ai.py">run</a>(model_name, \*, account_id, \*\*<a href="src/cloudflare/types/ai/ai_run_params.py">params</a>) -> <a href="./src/cloudflare/types/ai/ai_run_response.py">Optional[AIRunResponse]</a></code>
8404-
8405-
## Models
8406-
8407-
### Schema
8408-
8409-
Types:
8410-
8411-
```python
8412-
from cloudflare.types.ai.models import SchemaGetResponse
8413-
```
8414-
8415-
Methods:
8416-
8417-
- <code title="get /accounts/{account_id}/ai/models/schema">client.ai.models.schema.<a href="./src/cloudflare/resources/ai/models/schema.py">get</a>(\*, account_id, \*\*<a href="src/cloudflare/types/ai/models/schema_get_params.py">params</a>) -> <a href="./src/cloudflare/types/ai/models/schema_get_response.py">object</a></code>

src/cloudflare/_client.py

Lines changed: 0 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@
3636

3737
if TYPE_CHECKING:
3838
from .resources import (
39-
ai,
4039
d1,
4140
kv,
4241
r2,
@@ -124,7 +123,6 @@
124123
origin_post_quantum_encryption,
125124
)
126125
from .resources.ips import IPsResource, AsyncIPsResource
127-
from .resources.ai.ai import AIResource, AsyncAIResource
128126
from .resources.d1.d1 import D1Resource, AsyncD1Resource
129127
from .resources.kv.kv import KVResource, AsyncKVResource
130128
from .resources.r2.r2 import R2Resource, AsyncR2Resource
@@ -826,12 +824,6 @@ def abuse_reports(self) -> AbuseReportsResource:
826824

827825
return AbuseReportsResource(self)
828826

829-
@cached_property
830-
def ai(self) -> AIResource:
831-
from .resources.ai import AIResource
832-
833-
return AIResource(self)
834-
835827
@cached_property
836828
def with_raw_response(self) -> CloudflareWithRawResponse:
837829
return CloudflareWithRawResponse(self)
@@ -1597,12 +1589,6 @@ def abuse_reports(self) -> AsyncAbuseReportsResource:
15971589

15981590
return AsyncAbuseReportsResource(self)
15991591

1600-
@cached_property
1601-
def ai(self) -> AsyncAIResource:
1602-
from .resources.ai import AsyncAIResource
1603-
1604-
return AsyncAIResource(self)
1605-
16061592
@cached_property
16071593
def with_raw_response(self) -> AsyncCloudflareWithRawResponse:
16081594
return AsyncCloudflareWithRawResponse(self)
@@ -2303,12 +2289,6 @@ def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithRawResponse:
23032289

23042290
return AbuseReportsResourceWithRawResponse(self._client.abuse_reports)
23052291

2306-
@cached_property
2307-
def ai(self) -> ai.AIResourceWithRawResponse:
2308-
from .resources.ai import AIResourceWithRawResponse
2309-
2310-
return AIResourceWithRawResponse(self._client.ai)
2311-
23122292

23132293
class AsyncCloudflareWithRawResponse:
23142294
_client: AsyncCloudflare
@@ -2828,12 +2808,6 @@ def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithRawRespons
28282808

28292809
return AsyncAbuseReportsResourceWithRawResponse(self._client.abuse_reports)
28302810

2831-
@cached_property
2832-
def ai(self) -> ai.AsyncAIResourceWithRawResponse:
2833-
from .resources.ai import AsyncAIResourceWithRawResponse
2834-
2835-
return AsyncAIResourceWithRawResponse(self._client.ai)
2836-
28372811

28382812
class CloudflareWithStreamedResponse:
28392813
_client: Cloudflare
@@ -3353,12 +3327,6 @@ def abuse_reports(self) -> abuse_reports.AbuseReportsResourceWithStreamingRespon
33533327

33543328
return AbuseReportsResourceWithStreamingResponse(self._client.abuse_reports)
33553329

3356-
@cached_property
3357-
def ai(self) -> ai.AIResourceWithStreamingResponse:
3358-
from .resources.ai import AIResourceWithStreamingResponse
3359-
3360-
return AIResourceWithStreamingResponse(self._client.ai)
3361-
33623330

33633331
class AsyncCloudflareWithStreamedResponse:
33643332
_client: AsyncCloudflare
@@ -3888,12 +3856,6 @@ def abuse_reports(self) -> abuse_reports.AsyncAbuseReportsResourceWithStreamingR
38883856

38893857
return AsyncAbuseReportsResourceWithStreamingResponse(self._client.abuse_reports)
38903858

3891-
@cached_property
3892-
def ai(self) -> ai.AsyncAIResourceWithStreamingResponse:
3893-
from .resources.ai import AsyncAIResourceWithStreamingResponse
3894-
3895-
return AsyncAIResourceWithStreamingResponse(self._client.ai)
3896-
38973859

38983860
Client = Cloudflare
38993861

0 commit comments

Comments
 (0)