
    pi                         d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
mZmZmZ ddlmZ ddlmZ ddlmZ ddlmZ dd	lmZ  G d
 de      Z G d de      Z G d de      Z G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Conversations
    This is the public Twilio REST API.

    NOTE: This class is auto generated by OpenAPI Generator.
    https://openapi-generator.tech
    Do not edit the class manually.
    )datetime)AnyDictListOptionalUnionIteratorAsyncIterator)deserialize	serializevalues)InstanceContext)InstanceResource)ListResource)Version)Pagec                   z    e Zd Z G d de      Z G d de      Z G d de      Z	 	 ddedee	e
f   d	ee	   f fd
Zed d       ZdefdZdefdZd!dZd!dZej*                  ej*                  ej*                  ej*                  ej*                  ej*                  ej*                  ej*                  ej*                  f	dee	ef   deeef   dedef   dee	ef   dee	ef   dedef   deee	   ef   dee	ef   deeef   dd fdZej*                  ej*                  ej*                  ej*                  ej*                  ej*                  ej*                  ej*                  ej*                  f	dee	ef   deeef   dedef   dee	ef   dee	ef   dedef   deee	   ef   dee	ef   deeef   dd fdZde	fdZ xZS )"AddressConfigurationInstancec                       e Zd ZdZdZdZy)-AddressConfigurationInstance.AutoCreationTypewebhookstudiodefaultN)__name__
__module____qualname__WEBHOOKSTUDIODEFAULT     t/opt/services/ai/voice_agent/venv/lib/python3.12/site-packages/twilio/rest/conversations/v1/address_configuration.pyAutoCreationTyper      s    r!   r#   c                       e Zd ZdZdZy)#AddressConfigurationInstance.MethodgetpostN)r   r   r   GETPOSTr    r!   r"   Methodr%       s    r!   r*   c                   ,    e Zd ZdZdZdZdZdZdZdZ	dZ
y	)
!AddressConfigurationInstance.Typesmswhatsapp	messengergbmemailrcsapplechatN)r   r   r   SMSWHATSAPP	MESSENGERGBMEMAILRCSAPPLECHATr    r!   r"   Typer,   $   s*    	r!   r=   versionpayloadsidc                 d   t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _        |j                  d	      | _        |j                  d
      | _        d|xs | j                  i| _        d | _        y )Nr@   account_sidtypeaddressfriendly_nameauto_creationdate_createddate_updatedurladdress_country)super__init__r&   r@   rB   rC   rD   rE   rF   r   iso8601_datetimerG   rH   rI   rJ   	_solution_context)selfr>   r?   r@   	__class__s       r"   rL   z%AddressConfigurationInstance.__init__;   s     	!")++e"4*1++m*D#*;;v#6	&-kk)&<,3KK,H:A++o:V0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4.5kk:K.L 3?$((
 @Dr!   returnc                     | j                   )t        | j                  | j                  d         | _         | j                   S )a  
        Generate an instance context for the instance, the context is capable of
        performing various actions. All instance actions are proxied to the context

        :returns: AddressConfigurationContext for this AddressConfigurationInstance
        r@   r@   )rO   AddressConfigurationContext_versionrN   rP   s    r"   _proxyz#AddressConfigurationInstance._proxyT   s9     == 7NN5)DM }}r!   c                 6    | j                   j                         S )w
        Deletes the AddressConfigurationInstance


        :returns: True if delete succeeds, False otherwise
        )rX   deleterW   s    r"   r[   z#AddressConfigurationInstance.deletec   s     {{!!##r!   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine that deletes the AddressConfigurationInstance


        :returns: True if delete succeeds, False otherwise
        N)rX   delete_asyncrW   s    r"   r^   z)AddressConfigurationInstance.delete_asyncl   s!      [[--////   '%'c                 6    | j                   j                         S )u
        Fetch the AddressConfigurationInstance


        :returns: The fetched AddressConfigurationInstance
        )rX   fetchrW   s    r"   rb   z"AddressConfigurationInstance.fetchu   s     {{  ""r!   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to fetch the AddressConfigurationInstance


        :returns: The fetched AddressConfigurationInstance
        N)rX   fetch_asyncrW   s    r"   re   z(AddressConfigurationInstance.fetch_async~   s!      [[,,....r_   rE   auto_creation_enabledauto_creation_typer   &auto_creation_conversation_service_sidauto_creation_webhook_urlauto_creation_webhook_methodr%   auto_creation_webhook_filtersauto_creation_studio_flow_sid auto_creation_studio_retry_countc
                 J    | j                   j                  |||||||||		      S )  
        Update the AddressConfigurationInstance

        :param friendly_name: The human-readable name of this configuration, limited to 256 characters. Optional.
        :param auto_creation_enabled: Enable/Disable auto-creating conversations for messages to this address
        :param auto_creation_type:
        :param auto_creation_conversation_service_sid: Conversation Service for the auto-created conversation. If not set, the conversation is created in the default service.
        :param auto_creation_webhook_url: For type `webhook`, the url for the webhook request.
        :param auto_creation_webhook_method:
        :param auto_creation_webhook_filters: The list of events, firing webhook event for this Conversation. Values can be any of the following: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onDeliveryUpdated`
        :param auto_creation_studio_flow_sid: For type `studio`, the studio flow SID where the webhook should be sent to.
        :param auto_creation_studio_retry_count: For type `studio`, number of times to retry the webhook request

        :returns: The updated AddressConfigurationInstance
        	rE   rf   rg   rh   ri   rj   rk   rl   rm   )rX   update
rP   rE   rf   rg   rh   ri   rj   rk   rl   rm   s
             r"   rq   z#AddressConfigurationInstance.update   s;    > {{!!'"713Y&?)E*G*G-M " 

 
	
r!   c
                 f   K   | j                   j                  |||||||||		       d{   S 7 w)/  
        Asynchronous coroutine to update the AddressConfigurationInstance

        :param friendly_name: The human-readable name of this configuration, limited to 256 characters. Optional.
        :param auto_creation_enabled: Enable/Disable auto-creating conversations for messages to this address
        :param auto_creation_type:
        :param auto_creation_conversation_service_sid: Conversation Service for the auto-created conversation. If not set, the conversation is created in the default service.
        :param auto_creation_webhook_url: For type `webhook`, the url for the webhook request.
        :param auto_creation_webhook_method:
        :param auto_creation_webhook_filters: The list of events, firing webhook event for this Conversation. Values can be any of the following: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onDeliveryUpdated`
        :param auto_creation_studio_flow_sid: For type `studio`, the studio flow SID where the webhook should be sent to.
        :param auto_creation_studio_retry_count: For type `studio`, number of times to retry the webhook request

        :returns: The updated AddressConfigurationInstance
        rp   N)rX   update_asyncrr   s
             r"   ru   z)AddressConfigurationInstance.update_async   sI     > [[--'"713Y&?)E*G*G-M . 

 

 
	
 

s   (1/1c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r"   	<genexpr>z8AddressConfigurationInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z9<Twilio.Conversations.V1.AddressConfigurationInstance {}>joinrN   itemsr|   rP   contexts     r"   __repr__z%AddressConfigurationInstance.__repr__   s;     ((SDNN<P<P<RSSJQQ
 	
r!   N)rR   rU   )rR   r   )r   r   r   objectr#   r*   r=   r   r   strr   r   rL   propertyrX   boolr[   r^   rb   re   r   unsetr   r   intrq   ru   r   __classcell__rQ   s   @r"   r   r      s   6 
 v  OSDD)-c3hD>FsmD2  $ $0D 0#/ -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||)
S&[))
  %T6\2)
 ";VC
	)
 16c6k0B)
 $)f#5)
 ',169'
)
 (-T#Y->'?)
 (-S&['9)
 +0V*<)
 
()
Z -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||)
S&[))
  %T6\2)
 ";VC
	)
 16c6k0B)
 $)f#5)
 ',169'
)
 (-T#Y->'?)
 (-S&['9)
 +0V*<)
 
()
V	
# 	
r!   r   c                       e Zd Zdedef fdZdefdZdefdZde	fdZ
de	fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  f	d	eeef   d
eeef   dedef   deeef   deeef   dedef   deee   ef   deeef   deeef   de	fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  f	d	eeef   d
eeef   dedef   deeef   deeef   dedef   deee   ef   deeef   deeef   de	fdZdefdZ xZS )rU   r>   r@   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)a  
        Initialize the AddressConfigurationContext

        :param version: Version that contains the resource
        :param sid: The SID of the Address Configuration resource. This value can be either the `sid` or the `address` of the configuration
        r@   z/Configuration/Addresses/{sid}Nr    )rK   rL   rN   r|   _uri)rP   r>   r@   rQ   s      r"   rL   z$AddressConfigurationContext.__init__   s@     	! 3
 <4;;MdnnM	r!   rR   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )rZ   DELETEmethoduriheaders)r   ofrV   r[   r   rP   r   s     r"   r[   z"AddressConfigurationContext.delete   s1     ))B-}}##8G#TTr!   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)r]   r   r   N)r   r   rV   r^   r   r   s     r"   r^   z(AddressConfigurationContext.delete_async  sF      ))B-]]//G 0 
 
 	
 
s   AA
AA
c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      }t        | j                  || j                  d         S )ra   application/jsonAcceptr(   r   r@   rT   )r   r   rV   rb   r   r   rN   rP   r   r?   s      r"   rb   z!AddressConfigurationContext.fetch  s]     ))B-.--%%U		7%S+MMu%
 	
r!   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   }t        | j                  || j                  d         S 7 )w)rd   r   r   r(   r   Nr@   rT   )r   r   rV   re   r   r   rN   r   s      r"   re   z'AddressConfigurationContext.fetch_async(  sr      ))B-.11dii 2 
 
 ,MMu%
 	
	
s   AA4A2	*A4rE   rf   rg   r   rh   ri   rj   r%   rk   rl   rm   c
                 j   t        j                  |t        j                  |      ||||t        j                  |d       ||	d	      }
t        j                  i       }d|d<   d|d<   | j
                  j                  d| j                  |
|      }t        | j
                  || j                  d	   
      S )ro   c                     | S r   r    es    r"   <lambda>z4AddressConfigurationContext.update.<locals>.<lambda>i      Q r!   	FriendlyNameAutoCreation.EnabledAutoCreation.Type#AutoCreation.ConversationServiceSidAutoCreation.WebhookUrlAutoCreation.WebhookMethodAutoCreation.WebhookFiltersAutoCreation.StudioFlowSidAutoCreation.StudioRetryCount!application/x-www-form-urlencodedContent-Typer   r   r)   r   r   datar   r@   rT   )
r   r   r   boolean_to_stringmaprV   rq   r   r   rN   rP   rE   rf   rg   rh   ri   rj   rk   rl   rm   r   r   r?   s                r"   rq   z"AddressConfigurationContext.update>  s    @ yy -(1(C(C)) &87]+D.J/8}}1;0 /L1Q
" ))B-"E.--&&tyytW ' 
 ,MM7u(=
 	
r!   c
                   K   t        j                  |t        j                  |      ||||t        j                  |d       ||	d	      }
t        j                  i       }d|d<   d|d<   | j
                  j                  d| j                  |
|       d	{   }t        | j
                  || j                  d
         S 7 )w)rt   c                     | S r   r    r   s    r"   r   z:AddressConfigurationContext.update_async.<locals>.<lambda>  r   r!   r   r   r   r   r   r)   r   Nr@   rT   )
r   r   r   r   r   rV   ru   r   r   rN   r   s                r"   ru   z(AddressConfigurationContext.update_async}  s     @ yy -(1(C(C)) &87]+D.J/8}}1;0 /L1Q
" ))B-"E.22tyytW 3 
 
 ,MM7u(=
 	
	
s   BCB?*Cc                     dj                  d | j                  j                         D              }dj                  |      S )rw   rx   c              3   F   K   | ]  \  }}d j                  ||        ywrz   r{   r}   s      r"   r   z7AddressConfigurationContext.__repr__.<locals>.<genexpr>  r   r   z8<Twilio.Conversations.V1.AddressConfigurationContext {}>r   r   s     r"   r   z$AddressConfigurationContext.__repr__  s;     ((SDNN<P<P<RSSIPP
 	
r!   )r   r   r   r   r   rL   r   r[   r^   r   rb   re   r   r   r   r   r   r   rq   ru   r   r   r   s   @r"   rU   rU      so   N Nc N
U 
U
D 

3 
(
#? 
0 -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||=
S&[)=
  %T6\2=
 ";VC
	=
 16c6k0B=
 $)f#5=
 ',169'
=
 (-T#Y->'?=
 (-S&['9=
 +0V*<=
 
&=
B -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||=
S&[)=
  %T6\2=
 ";VC
	=
 16c6k0B=
 $)f#5=
 ',169'
=
 (-T#Y->'?=
 (-S&['9=
 +0V*<=
 
&=
~	
# 	
r!   rU   c                   2    e Zd Zdeeef   defdZdefdZy)AddressConfigurationPager?   rR   c                 .    t        | j                  |      S )zz
        Build an instance of AddressConfigurationInstance

        :param payload: Payload response from the API
        )r   rV   )rP   r?   s     r"   get_instancez%AddressConfigurationPage.get_instance  s     ,DMM7CCr!   c                      y)rw   z2<Twilio.Conversations.V1.AddressConfigurationPage>r    rW   s    r"   r   z!AddressConfigurationPage.__repr__       Dr!   N)	r   r   r   r   r   r   r   r   r   r    r!   r"   r   r     s/    DDcN D7S DD# Dr!   r   c                       e Zd Zdef fdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  f
dddedeee	f   dee
e	f   ded	e	f   d
eee	f   deee	f   dede	f   deee   e	f   deee	f   deee	f   deee	f   defdZej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  f
dddedeee	f   dee
e	f   ded	e	f   d
eee	f   deee	f   dede	f   deee   e	f   deee	f   deee	f   deee	f   defdZej                  ddfdeee	f   dee   dee   dee   fdZej                  ddfdeee	f   dee   dee   dee   fdZej                  ddfdeee	f   dee   dee   dee   fdZej                  ddfdeee	f   dee   dee   dee   fdZej                  ej                  ej                  ej                  fdeee	f   deee	f   deee	f   deee	f   def
dZej                  ej                  ej                  ej                  fdeee	f   deee	f   deee	f   deee	f   def
dZd edefd!Zd edefd"Zd#edefd$Zd#edefd%Zdefd&Z xZ S )'AddressConfigurationListr>   c                 2    t         |   |       d| _        y)zv
        Initialize the AddressConfigurationList

        :param version: Version that contains the resource

        z/Configuration/AddressesN)rK   rL   r   )rP   r>   rQ   s     r"   rL   z!AddressConfigurationList.__init__  s     	!.	r!   rC   r,   rD   rE   rf   rg   r   rh   ri   rj   r%   rk   rl   rm   rJ   rR   c                 V   t        j                  |||t        j                  |      ||||t        j                  |	d       |
||d      }t        j                  ddi      }d|d<   d|d<   | j
                  j                  d| j                  ||      }t        | j
                  |      S )	a:  
        Create the AddressConfigurationInstance

        :param type:
        :param address: The unique address to be configured. The address can be a whatsapp address or phone number
        :param friendly_name: The human-readable name of this configuration, limited to 256 characters. Optional.
        :param auto_creation_enabled: Enable/Disable auto-creating conversations for messages to this address
        :param auto_creation_type:
        :param auto_creation_conversation_service_sid: Conversation Service for the auto-created conversation. If not set, the conversation is created in the default service.
        :param auto_creation_webhook_url: For type `webhook`, the url for the webhook request.
        :param auto_creation_webhook_method:
        :param auto_creation_webhook_filters: The list of events, firing webhook event for this Conversation. Values can be any of the following: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onDeliveryUpdated`
        :param auto_creation_studio_flow_sid: For type `studio`, the studio flow SID where the webhook should be sent to.
        :param auto_creation_studio_retry_count: For type `studio`, number of times to retry the webhook request
        :param address_country: An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses.

        :returns: The created AddressConfigurationInstance
        c                     | S r   r    r   s    r"   r   z1AddressConfigurationList.create.<locals>.<lambda>  r   r!   r=   Addressr   r   r   r   r   r   r   r   r   AddressCountryr   r   r   r   r)   r   )	r   r   r   r   r   rV   creater   r   rP   rC   rD   rE   rf   rg   rh   ri   rj   rk   rl   rm   rJ   r   r   r?   s                   r"   r   zAddressConfigurationList.create  s    L yy" -(1(C(C)) &87]+D.J/8}}1;0 /L1Q"1!
( ))^-PQR"E.--&&tyytW ' 
 ,DMM7CCr!   c                 r  K   t        j                  |||t        j                  |      ||||t        j                  |	d       |
||d      }t        j                  ddi      }d|d<   d|d<   | j
                  j                  d| j                  ||       d	{   }t        | j
                  |      S 7 w)
aI  
        Asynchronously create the AddressConfigurationInstance

        :param type:
        :param address: The unique address to be configured. The address can be a whatsapp address or phone number
        :param friendly_name: The human-readable name of this configuration, limited to 256 characters. Optional.
        :param auto_creation_enabled: Enable/Disable auto-creating conversations for messages to this address
        :param auto_creation_type:
        :param auto_creation_conversation_service_sid: Conversation Service for the auto-created conversation. If not set, the conversation is created in the default service.
        :param auto_creation_webhook_url: For type `webhook`, the url for the webhook request.
        :param auto_creation_webhook_method:
        :param auto_creation_webhook_filters: The list of events, firing webhook event for this Conversation. Values can be any of the following: `onMessageAdded`, `onMessageUpdated`, `onMessageRemoved`, `onConversationUpdated`, `onConversationStateUpdated`, `onConversationRemoved`, `onParticipantAdded`, `onParticipantUpdated`, `onParticipantRemoved`, `onDeliveryUpdated`
        :param auto_creation_studio_flow_sid: For type `studio`, the studio flow SID where the webhook should be sent to.
        :param auto_creation_studio_retry_count: For type `studio`, number of times to retry the webhook request
        :param address_country: An ISO 3166-1 alpha-2n country code which the address belongs to. This is currently only applicable to short code addresses.

        :returns: The created AddressConfigurationInstance
        c                     | S r   r    r   s    r"   r   z7AddressConfigurationList.create_async.<locals>.<lambda>a  r   r!   r   r   r   r   r   r)   r   N)	r   r   r   r   r   rV   create_asyncr   r   r   s                   r"   r   z%AddressConfigurationList.create_async.  s     L yy" -(1(C(C)) &87]+D.J/8}}1;0 /L1Q"1!
( ))^-PQR"E.22tyytW 3 
 
 ,DMM7CC	
s   BB7B5B7Nlimit	page_sizec                     | j                   j                  ||      }| j                  ||d         }| j                   j                  ||d         S )a  
        Streams AddressConfigurationInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param str type: Filter the address configurations by its type. This value can be one of: `whatsapp`, `sms`.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   rC   r   r   )rV   read_limitspagestreamrP   rC   r   r   limitsr   s         r"   r   zAddressConfigurationList.streamt  sL    , **5)<yydf[.AyB}}##D&/::r!   c                    K   | j                   j                  ||      }| j                  ||d          d{   }| j                   j                  ||d         S 7 #w)a  
        Asynchronously streams AddressConfigurationInstance records from the API as a generator stream.
        This operation lazily loads records as efficiently as possible until the limit
        is reached.
        The results are returned as a generator, so this operation is memory efficient.

        :param str type: Filter the address configurations by its type. This value can be one of: `whatsapp`, `sms`.
        :param limit: Upper limit for the number of records to return. stream()
                      guarantees to never return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, stream() will attempt to read the
                          limit with the most efficient page size, i.e. min(limit, 1000)

        :returns: Generator that will yield up to limit results
        r   r   Nr   )rV   r   
page_asyncstream_asyncr   s         r"   r   z%AddressConfigurationList.stream_async  sY     , **5)<__$&:M_NN}}))$w@@ Os   6AA$Ac                 <    t        | j                  |||            S )a|  
        Lists AddressConfigurationInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str type: Filter the address configurations by its type. This value can be one of: `whatsapp`, `sms`.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        rC   r   r   )listr   )rP   rC   r   r   s       r"   r   zAddressConfigurationList.list  s+    * KK#  
 	
r!   c                 |   K   | j                  |||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)a  
        Asynchronously lists AddressConfigurationInstance records from the API as a list.
        Unlike stream(), this operation is eager and will load `limit` records into
        memory before returning.

        :param str type: Filter the address configurations by its type. This value can be one of: `whatsapp`, `sms`.
        :param limit: Upper limit for the number of records to return. list() guarantees
                      never to return more than limit.  Default is no limit
        :param page_size: Number of records to fetch per request, when not set will use
                          the default value of 50 records.  If no page_size is defined
                          but a limit is defined, list() will attempt to read the limit
                          with the most efficient page size, i.e. min(limit, 1000)

        :returns: list that will contain up to limit results
        r   N)r   )rP   rC   r   r   records        r"   
list_asyncz#AddressConfigurationList.list_async  sW     . '+&7&7# '8 ' !
 
 !
 
 	
 
s0   </<731
37<37<
page_tokenpage_numberc                     t        j                  ||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )a  
        Retrieve a single page of AddressConfigurationInstance records from the API.
        Request is executed immediately

        :param type: Filter the address configurations by its type. This value can be one of: `whatsapp`, `sms`.
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of AddressConfigurationInstance
        r=   	PageTokenr   PageSizer   r   r   r   r(   r   r   paramsr   )r   r   rV   r   r   r   rP   rC   r   r   r   r   r   responses           r"   r   zAddressConfigurationList.page  s|    $ yy'#%	
 ))^-PQR.==%%diig & 
 (x@@r!   c                   K   t        j                  ||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)	a  
        Asynchronously retrieve a single page of AddressConfigurationInstance records from the API.
        Request is executed immediately

        :param type: Filter the address configurations by its type. This value can be one of: `whatsapp`, `sms`.
        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: Page of AddressConfigurationInstance
        r   r   r   r   r   r(   r   N)r   r   rV   r   r   r   r   s           r"   r   z#AddressConfigurationList.page_async	  s     $ yy'#%	
 ))^-PQR.11diig 2 
 
 (x@@
s   A#B%B &B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )a  
        Retrieve a specific page of AddressConfigurationInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of AddressConfigurationInstance
        r(   )rV   domaintwiliorequestr   rP   r   r   s      r"   get_pagez!AddressConfigurationList.get_page-  s7     ==''..66ujI'x@@r!   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a  
        Asynchronously retrieve a specific page of AddressConfigurationInstance records from the API.
        Request is executed immediately

        :param target_url: API-generated URL for the requested results page

        :returns: Page of AddressConfigurationInstance
        r(   N)rV   r   r   request_asyncr   r   s      r"   get_page_asyncz'AddressConfigurationList.get_page_async9  sD      --44BB5*UU'x@@ Vs   4AAAr@   c                 0    t        | j                  |      S z
        Constructs a AddressConfigurationContext

        :param sid: The SID of the Address Configuration resource. This value can be either the `sid` or the `address` of the configuration
        rT   rU   rV   rP   r@   s     r"   r&   zAddressConfigurationList.getE       +4==cBBr!   c                 0    t        | j                  |      S r   r   r   s     r"   __call__z!AddressConfigurationList.__call__M  r   r!   c                      y)rw   z2<Twilio.Conversations.V1.AddressConfigurationList>r    rW   s    r"   r   z!AddressConfigurationList.__repr__U  r   r!   )!r   r   r   r   rL   r   r   r   r   r   r   r   r   r   r   r   r   r	   r   r
   r   r   r   r   r   r   r   r   rU   r&   r   r   r   r   s   @r"   r   r     si   	/ 	/ -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||.4ll#DD1DD DD S&[)	DD
  %T6\2DD ";VC
DD 16c6k0BDD $)f#5DD ',169'
DD (-T#Y->'?DD (-S&['9DD  +0V*<!DD" sF{+#DD$ 
&%DDT -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||.4ll#DD1DD DD S&[)	DD
  %T6\2DD ";VC
DD 16c6k0BDD $)f#5DD ',169'
DD (-T#Y->'?DD (-S&['9DD  +0V*<!DD" sF{+#DD$ 
&%DDP $*<<##'	;CK ; }; C=	;
 
.	/;: $*<<##'	ACK A }A C=	A
 
3	4A: $*<<##'	
CK 
 }
 C=	

 
*	+
> $*<<##'	
CK 
 }
 C=	

 
*	+
@ $*<<)/*0,,(."ACK "A #v+&"A 3;'	"A
 f%"A 
""AL $*<<)/*0,,(."ACK "A #v+&"A 3;'	"A
 f%"A 
""AH
A3 
A+C 
A
As 
A7O 
ACs C: CCC C$? CD# Dr!   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rU   r   r   r    r!   r"   <module>r	     sj     L L L 6 6 8 : 2 ' !M
#3 M
`\
/ \
~Dt D&@D| @Dr!   