24
24
make_request_options ,
25
25
)
26
26
from ....types .images .v1 import (
27
- ImageVariant ,
28
- ImageVariants ,
27
+ V1ImageVariant ,
28
+ V1ImageVariants ,
29
29
VariantDeleteResponse ,
30
30
variant_edit_params ,
31
31
variant_create_params ,
@@ -56,7 +56,7 @@ def create(
56
56
extra_query : Query | None = None ,
57
57
extra_body : Body | None = None ,
58
58
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
59
- ) -> ImageVariant :
59
+ ) -> V1ImageVariant :
60
60
"""
61
61
Specify variants that allow you to resize images for different use cases.
62
62
@@ -95,7 +95,7 @@ def create(
95
95
timeout = timeout ,
96
96
post_parser = ResultWrapper ._unwrapper ,
97
97
),
98
- cast_to = cast (Type [ImageVariant ], ResultWrapper [ImageVariant ]),
98
+ cast_to = cast (Type [V1ImageVariant ], ResultWrapper [V1ImageVariant ]),
99
99
)
100
100
101
101
def list (
@@ -108,7 +108,7 @@ def list(
108
108
extra_query : Query | None = None ,
109
109
extra_body : Body | None = None ,
110
110
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
111
- ) -> ImageVariants :
111
+ ) -> V1ImageVariants :
112
112
"""
113
113
Lists existing variants.
114
114
@@ -134,7 +134,7 @@ def list(
134
134
timeout = timeout ,
135
135
post_parser = ResultWrapper ._unwrapper ,
136
136
),
137
- cast_to = cast (Type [ImageVariants ], ResultWrapper [ImageVariants ]),
137
+ cast_to = cast (Type [V1ImageVariants ], ResultWrapper [V1ImageVariants ]),
138
138
)
139
139
140
140
def delete (
@@ -197,7 +197,7 @@ def edit(
197
197
extra_query : Query | None = None ,
198
198
extra_body : Body | None = None ,
199
199
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
200
- ) -> ImageVariant :
200
+ ) -> V1ImageVariant :
201
201
"""
202
202
Updating a variant purges the cache for all images associated with the variant.
203
203
@@ -237,7 +237,7 @@ def edit(
237
237
timeout = timeout ,
238
238
post_parser = ResultWrapper ._unwrapper ,
239
239
),
240
- cast_to = cast (Type [ImageVariant ], ResultWrapper [ImageVariant ]),
240
+ cast_to = cast (Type [V1ImageVariant ], ResultWrapper [V1ImageVariant ]),
241
241
)
242
242
243
243
def get (
@@ -251,7 +251,7 @@ def get(
251
251
extra_query : Query | None = None ,
252
252
extra_body : Body | None = None ,
253
253
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
254
- ) -> ImageVariant :
254
+ ) -> V1ImageVariant :
255
255
"""
256
256
Fetch details for a single variant.
257
257
@@ -279,7 +279,7 @@ def get(
279
279
timeout = timeout ,
280
280
post_parser = ResultWrapper ._unwrapper ,
281
281
),
282
- cast_to = cast (Type [ImageVariant ], ResultWrapper [ImageVariant ]),
282
+ cast_to = cast (Type [V1ImageVariant ], ResultWrapper [V1ImageVariant ]),
283
283
)
284
284
285
285
@@ -305,7 +305,7 @@ async def create(
305
305
extra_query : Query | None = None ,
306
306
extra_body : Body | None = None ,
307
307
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
308
- ) -> ImageVariant :
308
+ ) -> V1ImageVariant :
309
309
"""
310
310
Specify variants that allow you to resize images for different use cases.
311
311
@@ -344,7 +344,7 @@ async def create(
344
344
timeout = timeout ,
345
345
post_parser = ResultWrapper ._unwrapper ,
346
346
),
347
- cast_to = cast (Type [ImageVariant ], ResultWrapper [ImageVariant ]),
347
+ cast_to = cast (Type [V1ImageVariant ], ResultWrapper [V1ImageVariant ]),
348
348
)
349
349
350
350
async def list (
@@ -357,7 +357,7 @@ async def list(
357
357
extra_query : Query | None = None ,
358
358
extra_body : Body | None = None ,
359
359
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
360
- ) -> ImageVariants :
360
+ ) -> V1ImageVariants :
361
361
"""
362
362
Lists existing variants.
363
363
@@ -383,7 +383,7 @@ async def list(
383
383
timeout = timeout ,
384
384
post_parser = ResultWrapper ._unwrapper ,
385
385
),
386
- cast_to = cast (Type [ImageVariants ], ResultWrapper [ImageVariants ]),
386
+ cast_to = cast (Type [V1ImageVariants ], ResultWrapper [V1ImageVariants ]),
387
387
)
388
388
389
389
async def delete (
@@ -446,7 +446,7 @@ async def edit(
446
446
extra_query : Query | None = None ,
447
447
extra_body : Body | None = None ,
448
448
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
449
- ) -> ImageVariant :
449
+ ) -> V1ImageVariant :
450
450
"""
451
451
Updating a variant purges the cache for all images associated with the variant.
452
452
@@ -486,7 +486,7 @@ async def edit(
486
486
timeout = timeout ,
487
487
post_parser = ResultWrapper ._unwrapper ,
488
488
),
489
- cast_to = cast (Type [ImageVariant ], ResultWrapper [ImageVariant ]),
489
+ cast_to = cast (Type [V1ImageVariant ], ResultWrapper [V1ImageVariant ]),
490
490
)
491
491
492
492
async def get (
@@ -500,7 +500,7 @@ async def get(
500
500
extra_query : Query | None = None ,
501
501
extra_body : Body | None = None ,
502
502
timeout : float | httpx .Timeout | None | NotGiven = NOT_GIVEN ,
503
- ) -> ImageVariant :
503
+ ) -> V1ImageVariant :
504
504
"""
505
505
Fetch details for a single variant.
506
506
@@ -528,7 +528,7 @@ async def get(
528
528
timeout = timeout ,
529
529
post_parser = ResultWrapper ._unwrapper ,
530
530
),
531
- cast_to = cast (Type [ImageVariant ], ResultWrapper [ImageVariant ]),
531
+ cast_to = cast (Type [V1ImageVariant ], ResultWrapper [V1ImageVariant ]),
532
532
)
533
533
534
534
0 commit comments