Skip to content

Commit f9365f8

Browse files
feat(api): api update
1 parent 1f93055 commit f9365f8

29 files changed

Lines changed: 1349 additions & 876 deletions

File tree

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 1769
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-96ad9bfaad2a1dce9c6cccc0b105a257651c44566e5038a75fbf769f2ffacd9b.yml
3-
openapi_spec_hash: 241cae658fd35c1eca02921272879760
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-a8a1dc48cc130613e263a41bd6e8da15c355627a9f65b30baefb6d39760b673e.yml
3+
openapi_spec_hash: 62e9cd89bc63bb061215feec9bc9f038
44
config_hash: 18e6b76de8b719dd7c9c28614ac32643

requirements-dev.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ httpx==0.28.1
5656
# via cloudflare
5757
# via httpx-aiohttp
5858
# via respx
59-
httpx-aiohttp==0.1.6
59+
httpx-aiohttp==0.1.8
6060
# via cloudflare
6161
idna==3.4
6262
# via anyio

requirements.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ httpcore==1.0.2
4343
httpx==0.28.1
4444
# via cloudflare
4545
# via httpx-aiohttp
46-
httpx-aiohttp==0.1.6
46+
httpx-aiohttp==0.1.8
4747
# via cloudflare
4848
idna==3.4
4949
# via anyio

src/cloudflare/resources/api_gateway/operations/schema_validation.py

Lines changed: 67 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
import typing_extensions
56
from typing import Type, Optional, cast
67
from typing_extensions import Literal
78

@@ -52,6 +53,9 @@ def with_streaming_response(self) -> SchemaValidationResourceWithStreamingRespon
5253
"""
5354
return SchemaValidationResourceWithStreamingResponse(self)
5455

56+
@typing_extensions.deprecated(
57+
"Use [Schema Validation API](https://developers.cloudflare.com/api/resources/schema_validation) instead."
58+
)
5559
def update(
5660
self,
5761
operation_id: str,
@@ -105,6 +109,9 @@ def update(
105109
cast_to=SchemaValidationUpdateResponse,
106110
)
107111

112+
@typing_extensions.deprecated(
113+
"Use [Schema Validation API](https://developers.cloudflare.com/api/resources/schema_validation) instead."
114+
)
108115
def edit(
109116
self,
110117
*,
@@ -146,6 +153,9 @@ def edit(
146153
cast_to=cast(Type[SettingsMultipleRequest], ResultWrapper[SettingsMultipleRequest]),
147154
)
148155

156+
@typing_extensions.deprecated(
157+
"Use [Schema Validation API](https://developers.cloudflare.com/api/resources/schema_validation) instead."
158+
)
149159
def get(
150160
self,
151161
operation_id: str,
@@ -207,6 +217,9 @@ def with_streaming_response(self) -> AsyncSchemaValidationResourceWithStreamingR
207217
"""
208218
return AsyncSchemaValidationResourceWithStreamingResponse(self)
209219

220+
@typing_extensions.deprecated(
221+
"Use [Schema Validation API](https://developers.cloudflare.com/api/resources/schema_validation) instead."
222+
)
210223
async def update(
211224
self,
212225
operation_id: str,
@@ -260,6 +273,9 @@ async def update(
260273
cast_to=SchemaValidationUpdateResponse,
261274
)
262275

276+
@typing_extensions.deprecated(
277+
"Use [Schema Validation API](https://developers.cloudflare.com/api/resources/schema_validation) instead."
278+
)
263279
async def edit(
264280
self,
265281
*,
@@ -303,6 +319,9 @@ async def edit(
303319
cast_to=cast(Type[SettingsMultipleRequest], ResultWrapper[SettingsMultipleRequest]),
304320
)
305321

322+
@typing_extensions.deprecated(
323+
"Use [Schema Validation API](https://developers.cloudflare.com/api/resources/schema_validation) instead."
324+
)
306325
async def get(
307326
self,
308327
operation_id: str,
@@ -348,57 +367,81 @@ class SchemaValidationResourceWithRawResponse:
348367
def __init__(self, schema_validation: SchemaValidationResource) -> None:
349368
self._schema_validation = schema_validation
350369

351-
self.update = to_raw_response_wrapper(
352-
schema_validation.update,
370+
self.update = ( # pyright: ignore[reportDeprecated]
371+
to_raw_response_wrapper(
372+
schema_validation.update # pyright: ignore[reportDeprecated],
373+
)
353374
)
354-
self.edit = to_raw_response_wrapper(
355-
schema_validation.edit,
375+
self.edit = ( # pyright: ignore[reportDeprecated]
376+
to_raw_response_wrapper(
377+
schema_validation.edit # pyright: ignore[reportDeprecated],
378+
)
356379
)
357-
self.get = to_raw_response_wrapper(
358-
schema_validation.get,
380+
self.get = ( # pyright: ignore[reportDeprecated]
381+
to_raw_response_wrapper(
382+
schema_validation.get # pyright: ignore[reportDeprecated],
383+
)
359384
)
360385

361386

362387
class AsyncSchemaValidationResourceWithRawResponse:
363388
def __init__(self, schema_validation: AsyncSchemaValidationResource) -> None:
364389
self._schema_validation = schema_validation
365390

366-
self.update = async_to_raw_response_wrapper(
367-
schema_validation.update,
391+
self.update = ( # pyright: ignore[reportDeprecated]
392+
async_to_raw_response_wrapper(
393+
schema_validation.update # pyright: ignore[reportDeprecated],
394+
)
368395
)
369-
self.edit = async_to_raw_response_wrapper(
370-
schema_validation.edit,
396+
self.edit = ( # pyright: ignore[reportDeprecated]
397+
async_to_raw_response_wrapper(
398+
schema_validation.edit # pyright: ignore[reportDeprecated],
399+
)
371400
)
372-
self.get = async_to_raw_response_wrapper(
373-
schema_validation.get,
401+
self.get = ( # pyright: ignore[reportDeprecated]
402+
async_to_raw_response_wrapper(
403+
schema_validation.get # pyright: ignore[reportDeprecated],
404+
)
374405
)
375406

376407

377408
class SchemaValidationResourceWithStreamingResponse:
378409
def __init__(self, schema_validation: SchemaValidationResource) -> None:
379410
self._schema_validation = schema_validation
380411

381-
self.update = to_streamed_response_wrapper(
382-
schema_validation.update,
412+
self.update = ( # pyright: ignore[reportDeprecated]
413+
to_streamed_response_wrapper(
414+
schema_validation.update # pyright: ignore[reportDeprecated],
415+
)
383416
)
384-
self.edit = to_streamed_response_wrapper(
385-
schema_validation.edit,
417+
self.edit = ( # pyright: ignore[reportDeprecated]
418+
to_streamed_response_wrapper(
419+
schema_validation.edit # pyright: ignore[reportDeprecated],
420+
)
386421
)
387-
self.get = to_streamed_response_wrapper(
388-
schema_validation.get,
422+
self.get = ( # pyright: ignore[reportDeprecated]
423+
to_streamed_response_wrapper(
424+
schema_validation.get # pyright: ignore[reportDeprecated],
425+
)
389426
)
390427

391428

392429
class AsyncSchemaValidationResourceWithStreamingResponse:
393430
def __init__(self, schema_validation: AsyncSchemaValidationResource) -> None:
394431
self._schema_validation = schema_validation
395432

396-
self.update = async_to_streamed_response_wrapper(
397-
schema_validation.update,
433+
self.update = ( # pyright: ignore[reportDeprecated]
434+
async_to_streamed_response_wrapper(
435+
schema_validation.update # pyright: ignore[reportDeprecated],
436+
)
398437
)
399-
self.edit = async_to_streamed_response_wrapper(
400-
schema_validation.edit,
438+
self.edit = ( # pyright: ignore[reportDeprecated]
439+
async_to_streamed_response_wrapper(
440+
schema_validation.edit # pyright: ignore[reportDeprecated],
441+
)
401442
)
402-
self.get = async_to_streamed_response_wrapper(
403-
schema_validation.get,
443+
self.get = ( # pyright: ignore[reportDeprecated]
444+
async_to_streamed_response_wrapper(
445+
schema_validation.get # pyright: ignore[reportDeprecated],
446+
)
404447
)

src/cloudflare/resources/api_gateway/settings/schema_validation.py

Lines changed: 67 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
from __future__ import annotations
44

5+
import typing_extensions
56
from typing import Optional
67
from typing_extensions import Literal
78

@@ -44,6 +45,9 @@ def with_streaming_response(self) -> SchemaValidationResourceWithStreamingRespon
4445
"""
4546
return SchemaValidationResourceWithStreamingResponse(self)
4647

48+
@typing_extensions.deprecated(
49+
"Use [Schema Validation API](https://developers.cloudflare.com/api/resources/schema_validation) instead."
50+
)
4751
def update(
4852
self,
4953
*,
@@ -106,6 +110,9 @@ def update(
106110
cast_to=Settings,
107111
)
108112

113+
@typing_extensions.deprecated(
114+
"Use [Schema Validation API](https://developers.cloudflare.com/api/resources/schema_validation) instead."
115+
)
109116
def edit(
110117
self,
111118
*,
@@ -169,6 +176,9 @@ def edit(
169176
cast_to=Settings,
170177
)
171178

179+
@typing_extensions.deprecated(
180+
"Use [Schema Validation API](https://developers.cloudflare.com/api/resources/schema_validation) instead."
181+
)
172182
def get(
173183
self,
174184
*,
@@ -225,6 +235,9 @@ def with_streaming_response(self) -> AsyncSchemaValidationResourceWithStreamingR
225235
"""
226236
return AsyncSchemaValidationResourceWithStreamingResponse(self)
227237

238+
@typing_extensions.deprecated(
239+
"Use [Schema Validation API](https://developers.cloudflare.com/api/resources/schema_validation) instead."
240+
)
228241
async def update(
229242
self,
230243
*,
@@ -287,6 +300,9 @@ async def update(
287300
cast_to=Settings,
288301
)
289302

303+
@typing_extensions.deprecated(
304+
"Use [Schema Validation API](https://developers.cloudflare.com/api/resources/schema_validation) instead."
305+
)
290306
async def edit(
291307
self,
292308
*,
@@ -350,6 +366,9 @@ async def edit(
350366
cast_to=Settings,
351367
)
352368

369+
@typing_extensions.deprecated(
370+
"Use [Schema Validation API](https://developers.cloudflare.com/api/resources/schema_validation) instead."
371+
)
353372
async def get(
354373
self,
355374
*,
@@ -390,57 +409,81 @@ class SchemaValidationResourceWithRawResponse:
390409
def __init__(self, schema_validation: SchemaValidationResource) -> None:
391410
self._schema_validation = schema_validation
392411

393-
self.update = to_raw_response_wrapper(
394-
schema_validation.update,
412+
self.update = ( # pyright: ignore[reportDeprecated]
413+
to_raw_response_wrapper(
414+
schema_validation.update # pyright: ignore[reportDeprecated],
415+
)
395416
)
396-
self.edit = to_raw_response_wrapper(
397-
schema_validation.edit,
417+
self.edit = ( # pyright: ignore[reportDeprecated]
418+
to_raw_response_wrapper(
419+
schema_validation.edit # pyright: ignore[reportDeprecated],
420+
)
398421
)
399-
self.get = to_raw_response_wrapper(
400-
schema_validation.get,
422+
self.get = ( # pyright: ignore[reportDeprecated]
423+
to_raw_response_wrapper(
424+
schema_validation.get # pyright: ignore[reportDeprecated],
425+
)
401426
)
402427

403428

404429
class AsyncSchemaValidationResourceWithRawResponse:
405430
def __init__(self, schema_validation: AsyncSchemaValidationResource) -> None:
406431
self._schema_validation = schema_validation
407432

408-
self.update = async_to_raw_response_wrapper(
409-
schema_validation.update,
433+
self.update = ( # pyright: ignore[reportDeprecated]
434+
async_to_raw_response_wrapper(
435+
schema_validation.update # pyright: ignore[reportDeprecated],
436+
)
410437
)
411-
self.edit = async_to_raw_response_wrapper(
412-
schema_validation.edit,
438+
self.edit = ( # pyright: ignore[reportDeprecated]
439+
async_to_raw_response_wrapper(
440+
schema_validation.edit # pyright: ignore[reportDeprecated],
441+
)
413442
)
414-
self.get = async_to_raw_response_wrapper(
415-
schema_validation.get,
443+
self.get = ( # pyright: ignore[reportDeprecated]
444+
async_to_raw_response_wrapper(
445+
schema_validation.get # pyright: ignore[reportDeprecated],
446+
)
416447
)
417448

418449

419450
class SchemaValidationResourceWithStreamingResponse:
420451
def __init__(self, schema_validation: SchemaValidationResource) -> None:
421452
self._schema_validation = schema_validation
422453

423-
self.update = to_streamed_response_wrapper(
424-
schema_validation.update,
454+
self.update = ( # pyright: ignore[reportDeprecated]
455+
to_streamed_response_wrapper(
456+
schema_validation.update # pyright: ignore[reportDeprecated],
457+
)
425458
)
426-
self.edit = to_streamed_response_wrapper(
427-
schema_validation.edit,
459+
self.edit = ( # pyright: ignore[reportDeprecated]
460+
to_streamed_response_wrapper(
461+
schema_validation.edit # pyright: ignore[reportDeprecated],
462+
)
428463
)
429-
self.get = to_streamed_response_wrapper(
430-
schema_validation.get,
464+
self.get = ( # pyright: ignore[reportDeprecated]
465+
to_streamed_response_wrapper(
466+
schema_validation.get # pyright: ignore[reportDeprecated],
467+
)
431468
)
432469

433470

434471
class AsyncSchemaValidationResourceWithStreamingResponse:
435472
def __init__(self, schema_validation: AsyncSchemaValidationResource) -> None:
436473
self._schema_validation = schema_validation
437474

438-
self.update = async_to_streamed_response_wrapper(
439-
schema_validation.update,
475+
self.update = ( # pyright: ignore[reportDeprecated]
476+
async_to_streamed_response_wrapper(
477+
schema_validation.update # pyright: ignore[reportDeprecated],
478+
)
440479
)
441-
self.edit = async_to_streamed_response_wrapper(
442-
schema_validation.edit,
480+
self.edit = ( # pyright: ignore[reportDeprecated]
481+
async_to_streamed_response_wrapper(
482+
schema_validation.edit # pyright: ignore[reportDeprecated],
483+
)
443484
)
444-
self.get = async_to_streamed_response_wrapper(
445-
schema_validation.get,
485+
self.get = ( # pyright: ignore[reportDeprecated]
486+
async_to_streamed_response_wrapper(
487+
schema_validation.get # pyright: ignore[reportDeprecated],
488+
)
446489
)

0 commit comments

Comments
 (0)