@@ -47,7 +47,7 @@ def create(
4747 self ,
4848 * ,
4949 account_id : str ,
50- id : object ,
50+ id : str ,
5151 options : variant_create_params .Options ,
5252 never_require_signed_urls : bool | NotGiven = NOT_GIVEN ,
5353 # 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(
139139
140140 def delete (
141141 self ,
142- variant_id : object ,
142+ variant_id : str ,
143143 * ,
144144 account_id : str ,
145145 # 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(
165165 """
166166 if not account_id :
167167 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} " )
168170 return cast (
169171 VariantDeleteResponse ,
170172 self ._delete (
@@ -184,7 +186,7 @@ def delete(
184186
185187 def edit (
186188 self ,
187- variant_id : object ,
189+ variant_id : str ,
188190 * ,
189191 account_id : str ,
190192 options : variant_edit_params .Options ,
@@ -217,6 +219,8 @@ def edit(
217219 """
218220 if not account_id :
219221 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} " )
220224 return self ._patch (
221225 f"/accounts/{ account_id } /images/v1/variants/{ variant_id } " ,
222226 body = maybe_transform (
@@ -238,7 +242,7 @@ def edit(
238242
239243 def get (
240244 self ,
241- variant_id : object ,
245+ variant_id : str ,
242246 * ,
243247 account_id : str ,
244248 # 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(
264268 """
265269 if not account_id :
266270 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} " )
267273 return self ._get (
268274 f"/accounts/{ account_id } /images/v1/variants/{ variant_id } " ,
269275 options = make_request_options (
@@ -290,7 +296,7 @@ async def create(
290296 self ,
291297 * ,
292298 account_id : str ,
293- id : object ,
299+ id : str ,
294300 options : variant_create_params .Options ,
295301 never_require_signed_urls : bool | NotGiven = NOT_GIVEN ,
296302 # 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(
382388
383389 async def delete (
384390 self ,
385- variant_id : object ,
391+ variant_id : str ,
386392 * ,
387393 account_id : str ,
388394 # 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(
408414 """
409415 if not account_id :
410416 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} " )
411419 return cast (
412420 VariantDeleteResponse ,
413421 await self ._delete (
@@ -427,7 +435,7 @@ async def delete(
427435
428436 async def edit (
429437 self ,
430- variant_id : object ,
438+ variant_id : str ,
431439 * ,
432440 account_id : str ,
433441 options : variant_edit_params .Options ,
@@ -460,6 +468,8 @@ async def edit(
460468 """
461469 if not account_id :
462470 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} " )
463473 return await self ._patch (
464474 f"/accounts/{ account_id } /images/v1/variants/{ variant_id } " ,
465475 body = await async_maybe_transform (
@@ -481,7 +491,7 @@ async def edit(
481491
482492 async def get (
483493 self ,
484- variant_id : object ,
494+ variant_id : str ,
485495 * ,
486496 account_id : str ,
487497 # 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(
507517 """
508518 if not account_id :
509519 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} " )
510522 return await self ._get (
511523 f"/accounts/{ account_id } /images/v1/variants/{ variant_id } " ,
512524 options = make_request_options (
0 commit comments