@@ -59,7 +59,7 @@ def with_streaming_response(self) -> EmailsResourceWithStreamingResponse:
5959
6060 def retrieve (
6161 self ,
62- email_id : str ,
62+ id : str ,
6363 * ,
6464 expand : str | Omit = omit ,
6565 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -96,10 +96,10 @@ def retrieve(
9696
9797 timeout: Override the client-level default timeout for this request, in seconds
9898 """
99- if not email_id :
100- raise ValueError (f"Expected a non-empty value for `email_id ` but received { email_id !r} " )
99+ if not id :
100+ raise ValueError (f"Expected a non-empty value for `id ` but received { id !r} " )
101101 return self ._get (
102- f"/emails/{ email_id } " ,
102+ f"/emails/{ id } " ,
103103 options = make_request_options (
104104 extra_headers = extra_headers ,
105105 extra_query = extra_query ,
@@ -200,7 +200,7 @@ def list(
200200
201201 def retrieve_deliveries (
202202 self ,
203- email_id : str ,
203+ id : str ,
204204 * ,
205205 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
206206 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -243,8 +243,8 @@ def retrieve_deliveries(
243243
244244 ### Can Retry Manually
245245
246- Indicates whether you can call `POST /emails/{emailId }/retry` to manually retry
247- the email. This is `true` when the raw message content is still available (not
246+ Indicates whether you can call `POST /emails/{id }/retry` to manually retry the
247+ email. This is `true` when the raw message content is still available (not
248248 expired due to retention policy).
249249
250250 Args:
@@ -256,10 +256,10 @@ def retrieve_deliveries(
256256
257257 timeout: Override the client-level default timeout for this request, in seconds
258258 """
259- if not email_id :
260- raise ValueError (f"Expected a non-empty value for `email_id ` but received { email_id !r} " )
259+ if not id :
260+ raise ValueError (f"Expected a non-empty value for `id ` but received { id !r} " )
261261 return self ._get (
262- f"/emails/{ email_id } /deliveries" ,
262+ f"/emails/{ id } /deliveries" ,
263263 options = make_request_options (
264264 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
265265 ),
@@ -268,7 +268,7 @@ def retrieve_deliveries(
268268
269269 def retry (
270270 self ,
271- email_id : str ,
271+ id : str ,
272272 * ,
273273 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
274274 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -293,10 +293,10 @@ def retry(
293293
294294 timeout: Override the client-level default timeout for this request, in seconds
295295 """
296- if not email_id :
297- raise ValueError (f"Expected a non-empty value for `email_id ` but received { email_id !r} " )
296+ if not id :
297+ raise ValueError (f"Expected a non-empty value for `id ` but received { id !r} " )
298298 return self ._post (
299- f"/emails/{ email_id } /retry" ,
299+ f"/emails/{ id } /retry" ,
300300 options = make_request_options (
301301 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
302302 ),
@@ -575,7 +575,7 @@ def with_streaming_response(self) -> AsyncEmailsResourceWithStreamingResponse:
575575
576576 async def retrieve (
577577 self ,
578- email_id : str ,
578+ id : str ,
579579 * ,
580580 expand : str | Omit = omit ,
581581 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
@@ -612,10 +612,10 @@ async def retrieve(
612612
613613 timeout: Override the client-level default timeout for this request, in seconds
614614 """
615- if not email_id :
616- raise ValueError (f"Expected a non-empty value for `email_id ` but received { email_id !r} " )
615+ if not id :
616+ raise ValueError (f"Expected a non-empty value for `id ` but received { id !r} " )
617617 return await self ._get (
618- f"/emails/{ email_id } " ,
618+ f"/emails/{ id } " ,
619619 options = make_request_options (
620620 extra_headers = extra_headers ,
621621 extra_query = extra_query ,
@@ -716,7 +716,7 @@ def list(
716716
717717 async def retrieve_deliveries (
718718 self ,
719- email_id : str ,
719+ id : str ,
720720 * ,
721721 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
722722 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -759,8 +759,8 @@ async def retrieve_deliveries(
759759
760760 ### Can Retry Manually
761761
762- Indicates whether you can call `POST /emails/{emailId }/retry` to manually retry
763- the email. This is `true` when the raw message content is still available (not
762+ Indicates whether you can call `POST /emails/{id }/retry` to manually retry the
763+ email. This is `true` when the raw message content is still available (not
764764 expired due to retention policy).
765765
766766 Args:
@@ -772,10 +772,10 @@ async def retrieve_deliveries(
772772
773773 timeout: Override the client-level default timeout for this request, in seconds
774774 """
775- if not email_id :
776- raise ValueError (f"Expected a non-empty value for `email_id ` but received { email_id !r} " )
775+ if not id :
776+ raise ValueError (f"Expected a non-empty value for `id ` but received { id !r} " )
777777 return await self ._get (
778- f"/emails/{ email_id } /deliveries" ,
778+ f"/emails/{ id } /deliveries" ,
779779 options = make_request_options (
780780 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
781781 ),
@@ -784,7 +784,7 @@ async def retrieve_deliveries(
784784
785785 async def retry (
786786 self ,
787- email_id : str ,
787+ id : str ,
788788 * ,
789789 # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
790790 # The extra values given here take precedence over values defined on the client or passed to this method.
@@ -809,10 +809,10 @@ async def retry(
809809
810810 timeout: Override the client-level default timeout for this request, in seconds
811811 """
812- if not email_id :
813- raise ValueError (f"Expected a non-empty value for `email_id ` but received { email_id !r} " )
812+ if not id :
813+ raise ValueError (f"Expected a non-empty value for `id ` but received { id !r} " )
814814 return await self ._post (
815- f"/emails/{ email_id } /retry" ,
815+ f"/emails/{ id } /retry" ,
816816 options = make_request_options (
817817 extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
818818 ),
0 commit comments