
    i?1i                         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     |/home/www/therecruiter.miabetepe.com/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   r&   r'   r    r!   r"   Methodr%       s    r!   r(   c                        e Zd ZdZdZdZdZdZy)!AddressConfigurationInstance.Typesmswhatsapp	messengergbmemailN)r   r   r   SMSWHATSAPP	MESSENGERGBMEMAILr    r!   r"   Typer*   $   s    	r!   r5   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 )Nr8   account_sidtypeaddressfriendly_nameauto_creationdate_createddate_updatedurladdress_country)super__init__getr8   r:   r;   r<   r=   r>   r   iso8601_datetimer?   r@   rA   rB   	_solution_context)selfr6   r7   r8   	__class__s       r"   rD   z%AddressConfigurationInstance.__init__8   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
        r8   r8   )rH   AddressConfigurationContext_versionrG   rI   s    r"   _proxyz#AddressConfigurationInstance._proxyQ   s9     == 7NN5)DM }}r!   c                 6    | j                   j                         S )w
        Deletes the AddressConfigurationInstance


        :returns: True if delete succeeds, False otherwise
        )rQ   deleterP   s    r"   rT   z#AddressConfigurationInstance.delete`   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)rQ   delete_asyncrP   s    r"   rW   z)AddressConfigurationInstance.delete_asynci   s!      [[--////   '%'c                 6    | j                   j                         S )u
        Fetch the AddressConfigurationInstance


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


        :returns: The fetched AddressConfigurationInstance
        N)rQ   fetch_asyncrP   s    r"   r^   z(AddressConfigurationInstance.fetch_async{   s!      [[,,....rX   r=   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
        	r=   r_   r`   ra   rb   rc   rd   re   rf   )rQ   update
rI   r=   r_   r`   ra   rb   rc   rd   re   rf   s
             r"   rj   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
        ri   N)rQ   update_asyncrk   s
             r"   rn   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 {}>joinrG   itemsru   rI   contexts     r"   __repr__z%AddressConfigurationInstance.__repr__   s;     ((SDNN<P<P<RSSJQQ
 	
r!   N)rK   rN   )rK   r   )r   r   r   objectr#   r(   r5   r   r   strr   r   rD   propertyrQ   boolrT   rW   r[   r^   r   unsetr   r   intrj   rn   r   __classcell__rJ   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 )rN   r6   r8   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
        r8   z/Configuration/Addresses/{sid}Nr    )rC   rD   rG   ru   _uri)rI   r6   r8   rJ   s      r"   rD   z$AddressConfigurationContext.__init__   s@     	! 3
 <4;;MdnnM	r!   rK   c                 P    | j                   j                  d| j                        S )rS   DELETEmethoduri)rO   rT   r   rP   s    r"   rT   z"AddressConfigurationContext.delete   s*     }}##		 $ 
 	
r!   c                 l   K   | j                   j                  d| j                         d{   S 7 w)rV   r   r   N)rO   rW   r   rP   s    r"   rW   z(AddressConfigurationContext.delete_async  s8      ]]//		 0 
 
 	
 
s   +424c                     | j                   j                  d| j                        }t        | j                   || j                  d         S )rZ   r&   r   r8   rM   )rO   r[   r   r   rG   rI   r7   s     r"   r[   z!AddressConfigurationContext.fetch  sL     --%%		 & 

 ,MMu%
 	
r!   c                    K   | j                   j                  d| j                         d{   }t        | j                   || j                  d         S 7 )w)r]   r&   r   Nr8   rM   )rO   r^   r   r   rG   r   s     r"   r^   z'AddressConfigurationContext.fetch_async!  sZ      11		 2 
 

 ,MMu%
 	

s   +AA*Ar=   r_   r`   r   ra   rb   rc   r%   rd   re   rf   c
                    t        j                  ||||||t        j                  |d       ||	d	      }
| j                  j                  d| j                  |
      }t        | j                  || j                  d         S )rh   c                     | S r   r    es    r"   <lambda>z4AddressConfigurationContext.update.<locals>.<lambda>\      Q r!   	FriendlyNameAutoCreation.EnabledAutoCreation.Type#AutoCreation.ConversationServiceSidAutoCreation.WebhookUrlAutoCreation.WebhookMethodAutoCreation.WebhookFiltersAutoCreation.StudioFlowSidAutoCreation.StudioRetryCountr'   r   r   datar8   rM   )	r   ofr   maprO   rj   r   r   rG   rI   r=   r_   r`   ra   rb   rc   rd   re   rf   r   r7   s               r"   rj   z"AddressConfigurationContext.update4  s    > yy -(=%77]+D.J/8}}1;0 /L1Q
  --&&		 ' 
 ,MM7u(=
 	
r!   c
                    K   t        j                  ||||||t        j                  |d       ||	d	      }
| j                  j                  d| j                  |
       d{   }t        | j                  || j                  d         S 7 )w)rm   c                     | S r   r    r   s    r"   r   z:AddressConfigurationContext.update_async.<locals>.<lambda>  r   r!   r   r'   r   Nr8   rM   )	r   r   r   r   rO   rn   r   r   rG   r   s               r"   rn   z(AddressConfigurationContext.update_asyncm  s     > yy -(=%77]+D.J/8}}1;0 /L1Q
  22		 3 
 
 ,MM7u(=
 	

s   A B"B#*Bc                     dj                  d | j                  j                         D              }dj                  |      S )rp   rq   c              3   F   K   | ]  \  }}d j                  ||        ywrs   rt   rv   s      r"   rz   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   rD   r   rT   rW   r   r[   r^   r   r   r   r   r   r   rj   rn   r   r   r   s   @r"   rN   rN      sm   N Nc N

 



D 


3 
&
#? 
* -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||7
S&[)7
  %T6\27
 ";VC
	7
 16c6k0B7
 $)f#57
 ',169'
7
 (-T#Y->'?7
 (-S&['97
 +0V*<7
 
&7
v -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||7
S&[)7
  %T6\27
 ";VC
	7
 16c6k0B7
 $)f#57
 ',169'
7
 (-T#Y->'?7
 (-S&['97
 +0V*<7
 
&7
r	
# 	
r!   rN   c                   2    e Zd Zdeeef   defdZdefdZy)AddressConfigurationPager7   rK   c                 .    t        | j                  |      S )zz
        Build an instance of AddressConfigurationInstance

        :param payload: Payload response from the API
        )r   rO   r   s     r"   get_instancez%AddressConfigurationPage.get_instance  s     ,DMM7CCr!   c                      y)rp   z2<Twilio.Conversations.V1.AddressConfigurationPage>r    rP   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 )'AddressConfigurationListr6   c                 2    t         |   |       d| _        y)zv
        Initialize the AddressConfigurationList

        :param version: Version that contains the resource

        z/Configuration/AddressesN)rC   rD   r   )rI   r6   rJ   s     r"   rD   z!AddressConfigurationList.__init__  s     	!.	r!   r;   r*   r<   r=   r_   r`   r   ra   rb   rc   r%   rd   re   rf   rB   rK   c                     t        j                  ||||||||t        j                  |	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!   r5   Addressr   r   r   r   r   r   r   r   r   AddressCountryr'   r   )r   r   r   r   rO   creater   r   rI   r;   r<   r=   r_   r`   ra   rb   rc   rd   re   rf   rB   r   r7   s                  r"   r   zAddressConfigurationList.create  s    J yy" -(=%77]+D.J/8}}1;0 /L1Q"1
& --&&		 ' 
 ,DMM7CCr!   c                   K   t        j                  ||||||||t        j                  |	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>@  r   r!   r   r'   r   N)r   r   r   r   rO   create_asyncr   r   r   s                  r"   r   z%AddressConfigurationList.create_async  s     J yy" -(=%77]+D.J/8}}1;0 /L1Q"1
& 22		 3 
 
 ,DMM7CC
s   A#B%B &B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   r;   r   r   )rO   read_limitspagestreamrI   r;   r   r   limitsr   s         r"   r   zAddressConfigurationList.streamP  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   )rO   r   
page_asyncstream_asyncr   s         r"   r   z%AddressConfigurationList.stream_asynck  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
        r;   r   r   )listr   )rI   r;   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   )rI   r;   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      }| 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
        r5   	PageTokenr   PageSizer&   r   r   params)r   r   rO   r   r   r   rI   r;   r   r   r   r   responses          r"   r   zAddressConfigurationList.page  sU    $ yy'#%	
 ==%%U		$%O'x@@r!   c                    K   t        j                  ||||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   N)r   r   rO   r   r   r   r   s          r"   r   z#AddressConfigurationList.page_async  sj     $ yy'#%	
 11dii 2 
 
 (x@@
s   AA%A#	A%
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&   )rO   domaintwiliorequestr   rI   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)rO   r   r   request_asyncr   r   s      r"   get_page_asyncz'AddressConfigurationList.get_page_async  sD      --44BB5*UU'x@@ Vs   4AAAr8   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
        rM   rN   rO   rI   r8   s     r"   rE   zAddressConfigurationList.get       +4==cBBr!   c                 0    t        | j                  |      S r   r   r   s     r"   __call__z!AddressConfigurationList.__call__  r   r!   c                      y)rp   z2<Twilio.Conversations.V1.AddressConfigurationList>r    rP   s    r"   r   z!AddressConfigurationList.__repr__'  r   r!   )!r   r   r   r   rD   r   r   r   r   r   r   r   r   r   r   r   r   r	   r   r
   r   r   r   r   r   r   r   r   rN   rE   r   r   r   r   s   @r"   r   r     sM   	/ 	/ -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||.4ll#>D1>D >D S&[)	>D
  %T6\2>D ";VC
>D 16c6k0B>D $)f#5>D ',169'
>D (-T#Y->'?>D (-S&['9>D  +0V*<!>D" sF{+#>D$ 
&%>DH -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||.4ll#>D1>D >D S&[)	>D
  %T6\2>D ";VC
>D 16c6k0B>D $)f#5>D ',169'
>D (-T#Y->'?>D (-S&['9>D  +0V*<!>D" sF{+#>D$ 
&%>DD $*<<##'	;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@ $*<<)/*0,,(.ACK A #v+&A 3;'	A
 f%A 
"A@
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   rN   r   r   r    r!   r"   <module>r      sj     L L L 6 6 8 : 2 ' !I
#3 I
XI
/ I
XDt D$iD| iDr!   