@@ -47,7 +47,7 @@ def create(
47
47
self ,
48
48
* ,
49
49
account_id : str ,
50
- id : object ,
50
+ id : str ,
51
51
options : variant_create_params .Options ,
52
52
never_require_signed_urls : bool | NotGiven = NOT_GIVEN ,
53
53
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -139,7 +139,7 @@ def list(
139
139
140
140
def delete (
141
141
self ,
142
- variant_id : object ,
142
+ variant_id : str ,
143
143
* ,
144
144
account_id : str ,
145
145
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -165,6 +165,8 @@ def delete(
165
165
"""
166
166
if not account_id :
167
167
raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
168
+ if not variant_id :
169
+ raise ValueError (f"Expected a non-empty value for `variant_id` but received { variant_id !r} " )
168
170
return cast (
169
171
VariantDeleteResponse ,
170
172
self ._delete (
@@ -184,7 +186,7 @@ def delete(
184
186
185
187
def edit (
186
188
self ,
187
- variant_id : object ,
189
+ variant_id : str ,
188
190
* ,
189
191
account_id : str ,
190
192
options : variant_edit_params .Options ,
@@ -217,6 +219,8 @@ def edit(
217
219
"""
218
220
if not account_id :
219
221
raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
222
+ if not variant_id :
223
+ raise ValueError (f"Expected a non-empty value for `variant_id` but received { variant_id !r} " )
220
224
return self ._patch (
221
225
f"/accounts/{ account_id } /images/v1/variants/{ variant_id } " ,
222
226
body = maybe_transform (
@@ -238,7 +242,7 @@ def edit(
238
242
239
243
def get (
240
244
self ,
241
- variant_id : object ,
245
+ variant_id : str ,
242
246
* ,
243
247
account_id : str ,
244
248
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -264,6 +268,8 @@ def get(
264
268
"""
265
269
if not account_id :
266
270
raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
271
+ if not variant_id :
272
+ raise ValueError (f"Expected a non-empty value for `variant_id` but received { variant_id !r} " )
267
273
return self ._get (
268
274
f"/accounts/{ account_id } /images/v1/variants/{ variant_id } " ,
269
275
options = make_request_options (
@@ -290,7 +296,7 @@ async def create(
290
296
self ,
291
297
* ,
292
298
account_id : str ,
293
- id : object ,
299
+ id : str ,
294
300
options : variant_create_params .Options ,
295
301
never_require_signed_urls : bool | NotGiven = NOT_GIVEN ,
296
302
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -382,7 +388,7 @@ async def list(
382
388
383
389
async def delete (
384
390
self ,
385
- variant_id : object ,
391
+ variant_id : str ,
386
392
* ,
387
393
account_id : str ,
388
394
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -408,6 +414,8 @@ async def delete(
408
414
"""
409
415
if not account_id :
410
416
raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
417
+ if not variant_id :
418
+ raise ValueError (f"Expected a non-empty value for `variant_id` but received { variant_id !r} " )
411
419
return cast (
412
420
VariantDeleteResponse ,
413
421
await self ._delete (
@@ -427,7 +435,7 @@ async def delete(
427
435
428
436
async def edit (
429
437
self ,
430
- variant_id : object ,
438
+ variant_id : str ,
431
439
* ,
432
440
account_id : str ,
433
441
options : variant_edit_params .Options ,
@@ -460,6 +468,8 @@ async def edit(
460
468
"""
461
469
if not account_id :
462
470
raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
471
+ if not variant_id :
472
+ raise ValueError (f"Expected a non-empty value for `variant_id` but received { variant_id !r} " )
463
473
return await self ._patch (
464
474
f"/accounts/{ account_id } /images/v1/variants/{ variant_id } " ,
465
475
body = await async_maybe_transform (
@@ -481,7 +491,7 @@ async def edit(
481
491
482
492
async def get (
483
493
self ,
484
- variant_id : object ,
494
+ variant_id : str ,
485
495
* ,
486
496
account_id : str ,
487
497
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -507,6 +517,8 @@ async def get(
507
517
"""
508
518
if not account_id :
509
519
raise ValueError (f"Expected a non-empty value for `account_id` but received { account_id !r} " )
520
+ if not variant_id :
521
+ raise ValueError (f"Expected a non-empty value for `variant_id` but received { variant_id !r} " )
510
522
return await self ._get (
511
523
f"/accounts/{ account_id } /images/v1/variants/{ variant_id } " ,
512
524
options = make_request_options (
0 commit comments