
    d{i</                        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 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)ApiResponse)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efdZdefdZd'dZd'dZdefdZdefdZej4                  ej4                  ej4                  ej4                  ej4                  ej4                  ej4                  ej4                  ej4                  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j4                  ej4                  ej4                  ej4                  ej4                  ej4                  ej4                  ej4                  ej4                  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j4                  ej4                  ej4                  ej4                  ej4                  ej4                  ej4                  ej4                  ej4                  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j4                  ej4                  ej4                  ej4                  ej4                  ej4                  ej4                  ej4                  ej4                  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 )(AddressConfigurationInstancec                       e Zd ZdZdZdZy)-AddressConfigurationInstance.AutoCreationTypewebhookstudiodefaultN)__name__
__module____qualname__WEBHOOKSTUDIODEFAULT     p/home/sas/my/fyp/ringai/.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 )NrA   account_sidtypeaddressfriendly_nameauto_creationdate_createddate_updatedurladdress_country)super__init__r'   rA   rC   rD   rE   rF   rG   r   iso8601_datetimerH   rI   rJ   rK   	_solution_context)selfr?   r@   rA   	__class__s       r#   rM   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
        rA   rA   )rP   AddressConfigurationContext_versionrO   rQ   s    r#   _proxyz#AddressConfigurationInstance._proxyU   s9     == 7NN5)DM }}r"   c                 6    | j                   j                         S zw
        Deletes the AddressConfigurationInstance


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


        :returns: True if delete succeeds, False otherwise
        N)rY   delete_asyncrX   s    r#   r_   z)AddressConfigurationInstance.delete_asyncm   s!      [[--////   '%'c                 6    | j                   j                         S )z
        Deletes the AddressConfigurationInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        )rY   delete_with_http_inforX   s    r#   rb   z2AddressConfigurationInstance.delete_with_http_infov   s     {{0022r"   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the AddressConfigurationInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)rY   delete_with_http_info_asyncrX   s    r#   rd   z8AddressConfigurationInstance.delete_with_http_info_async   s!      [[<<>>>>r`   c                 6    | j                   j                         S )u
        Fetch the AddressConfigurationInstance


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


        :returns: The fetched AddressConfigurationInstance
        N)rY   fetch_asyncrX   s    r#   rj   z(AddressConfigurationInstance.fetch_async   s!      [[,,....r`   c                 6    | j                   j                         S )z
        Fetch the AddressConfigurationInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )rY   fetch_with_http_inforX   s    r#   rl   z1AddressConfigurationInstance.fetch_with_http_info   s     {{//11r"   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the AddressConfigurationInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)rY   fetch_with_http_info_asyncrX   s    r#   rn   z7AddressConfigurationInstance.fetch_with_http_info_async   s!      [[;;====r`   rF   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
        	rF   ro   rp   rq   rr   rs   rt   ru   rv   )rY   update
rQ   rF   ro   rp   rq   rr   rs   rt   ru   rv   s
             r#   rz   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
        ry   N)rY   update_asyncr{   s
             r#   r~   z)AddressConfigurationInstance.update_async   sI     > [[--'"713Y&?)E*G*G-M . 

 

 
	
 

   (1/1c
                 J    | j                   j                  |||||||||		      S )a/  
        Update the AddressConfigurationInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        ry   )rY   update_with_http_infor{   s
             r#   r   z2AddressConfigurationInstance.update_with_http_info  s;    > {{00'"713Y&?)E*G*G-M 1 

 
	
r"   c
                 f   K   | j                   j                  |||||||||		       d{   S 7 w)aI  
        Asynchronous coroutine to update the AddressConfigurationInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        ry   N)rY   update_with_http_info_asyncr{   s
             r#   r   z8AddressConfigurationInstance.update_with_http_info_async-  sI     > [[<<'"713Y&?)E*G*G-M = 

 

 
	
 

r   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 {}>joinrO   itemsr   rQ   contexts     r#   __repr__z%AddressConfigurationInstance.__repr__X  s;     ((SDNN<P<P<RSSJQQ
 	
r"   N)rS   rV   )rS   r   )$r   r   r   objectr$   r+   r>   r   r   strr   r   rM   propertyrY   boolr\   r_   r   rb   rd   rg   rj   rl   rn   r   unsetr   r   intrz   r~   r   r   r   __classcell__rR   s   @r#   r   r      s   6 
 v  OSDD)-c3hD>FsmD2  $ $0D 03{ 3?; ?#/2k 2>+ > -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*<)
 
()
Z -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defd	Zde
fd
ZdefdZde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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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 )#rV   r?   rA   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
        rA   z/Configuration/Addresses/{sid}Nr!   )rL   rM   rO   r   _uri)rQ   r?   rA   rR   s      r#   rM   z$AddressConfigurationContext.__init__f  s@     	! 3
 <4;;MdnnM	r"   rS   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )z
        Internal helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        DELETEmethoduriheaders)r   ofrW   delete_with_response_infor   rQ   r   s     r#   _deletez#AddressConfigurationContext._deleteu  s8     ))B-}}66G 7 
 	
r"   c                 .    | j                         \  }}}|S r[   )r   rQ   success_s      r#   r\   z"AddressConfigurationContext.delete  s     Ar"   c                 F    | j                         \  }}}t        |||      S )z
        Deletes the AddressConfigurationInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        datastatus_coder   )r   r   rQ   r   r   r   s       r#   rb   z1AddressConfigurationContext.delete_with_http_info  s%     )-%g['RRr"   c                    K   t        j                  i       }| j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for delete operation

        Returns:
            tuple: (success_boolean, status_code, headers)
        r   r   N)r   r   rW   delete_with_response_info_asyncr   r   s     r#   _delete_asyncz)AddressConfigurationContext._delete_async  sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wr^   )r   r   s      r#   r_   z(AddressConfigurationContext.delete_async  s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the AddressConfigurationInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nr   )r   r   r   s       r#   rd   z7AddressConfigurationContext.delete_with_http_info_async  s5      /3.@.@.B(B%g['RR )Cs   /-/c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptr)   r   )r   r   rW   fetch_with_response_infor   r   s     r#   _fetchz"AddressConfigurationContext._fetch  sB     ))B-.}}55dii 6 
 	
r"   c                 t    | j                         \  }}}t        | j                  || j                  d         S )rf   rA   rU   )r   r   rW   rO   rQ   r@   r   s      r#   rg   z!AddressConfigurationContext.fetch  s8     A+MMu%
 	
r"   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the AddressConfigurationInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        rA   rU   r   )r   r   rW   rO   r   rQ   r@   r   r   instances        r#   rl   z0AddressConfigurationContext.fetch_with_http_info  sG     )-%g/MMu%

 k7SSr"   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r)   r   N)r   r   rW   fetch_with_response_info_asyncr   r   s     r#   _fetch_asyncz(AddressConfigurationContext._fetch_async  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)ri   NrA   rU   )r   r   rW   rO   r   s      r#   rj   z'AddressConfigurationContext.fetch_async  sG      #//11A+MMu%
 	
 2s   AA.Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronous coroutine to fetch the AddressConfigurationInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        NrA   rU   r   )r   r   rW   rO   r   r   s        r#   rn   z6AddressConfigurationContext.fetch_with_http_info_async  sW      /3.?.?.A(A%g/MMu%

 k7SS )Bs   AA<ArF   ro   rp   r   rq   rr   rs   r&   rt   ru   rv   c
                     t        j                  |t        j                  |      ||||t        j                  |d       ||	d	      }
t        j                  i       }d|d<   d|d<   | j
                  j                  d| j                  |
|      S )	z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        c                     | S r   r!   es    r#   <lambda>z5AddressConfigurationContext._update.<locals>.<lambda>5      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   r   r   )r   r   r   boolean_to_stringmaprW   update_with_response_infor   rQ   rF   ro   rp   rq   rr   rs   rt   ru   rv   r   r   s               r#   _updatez#AddressConfigurationContext._update  s    . yy -(1(C(C)) &87]+D.J/8}}1;0 /L1Q
" ))B-"E.}}66tyytW 7 
 	
r"   c
                     | j                  |||||||||		      \  }
}}t        | j                  |
| j                  d         S )rx   ry   rA   rU   )r   r   rW   rO   rQ   rF   ro   rp   rq   rr   rs   rt   ru   rv   r@   r   s               r#   rz   z"AddressConfigurationContext.updateE  s[    > '"713Y&?)E*G*G-M % 

A ,MM7u(=
 	
r"   c
                     | j                  |||||||||		      \  }
}}t        | j                  |
| j                  d         }t	        |||      S )a=  
        Update the AddressConfigurationInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        ry   rA   rU   r   )r   r   rW   rO   r   rQ   rF   ro   rp   rq   rr   rs   rt   ru   rv   r@   r   r   r   s                 r#   r   z1AddressConfigurationContext.update_with_http_infos  sj    > )-'"713Y&?)E*G*G-M )5 
)
%g 0MM7u(=
 k7SSr"   c
                 <  K   t        j                  |t        j                  |      ||||t        j                  |d       ||	d	      }
t        j                  i       }d|d<   d|d<   | j
                  j                  d| j                  |
|       d	{   S 7 w)
z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        c                     | S r   r!   r   s    r#   r   z;AddressConfigurationContext._update_async.<locals>.<lambda>  r   r"   r   r   r   r   r   r*   r   N)r   r   r   r   r   rW   update_with_response_info_asyncr   r   s               r#   _update_asyncz)AddressConfigurationContext._update_async  s     . yy -(1(C(C)) &87]+D.J/8}}1;0 /L1Q
" ))B-"E.]]BBtyytW C 
 
 	
 
s   BBBBc
                    K   | j                  |||||||||		       d{   \  }
}}t        | j                  |
| j                  d         S 7 -w)r}   ry   NrA   rU   )r   r   rW   rO   r   s               r#   r~   z(AddressConfigurationContext.update_async  sk     > #00'"713Y&?)E*G*G-M 1 

 

A ,MM7u(=
 	


s   AA.Ac
                    K   | j                  |||||||||		       d{   \  }
}}t        | j                  |
| j                  d         }t	        |||      S 7 ;w)aW  
        Asynchronous coroutine to update the AddressConfigurationInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        ry   NrA   rU   r   )r   r   rW   rO   r   r   s                 r#   r   z7AddressConfigurationContext.update_with_http_info_async  s{     > /3.@.@'"713Y&?)E*G*G-M /A 
/
 
)
%g 0MM7u(=
 k7SS
)
s   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )r   r   c              3   F   K   | ]  \  }}d j                  ||        ywr   r   r   s      r#   r   z7AddressConfigurationContext.__repr__.<locals>.<genexpr>7  r   r   z8<Twilio.Conversations.V1.AddressConfigurationContext {}>r   r   s     r#   r   z$AddressConfigurationContext.__repr__1  s;     ((SDNN<P<P<RSSIPP
 	
r"   )$r   r   r   r   r   rM   tupler   r   r\   r   rb   r   r_   rd   r   r   rg   rl   r   rj   rn   r   r   r   r   r   r   r   rz   r   r   r~   r   r   r   r   s   @r#   rV   rV   d  s   N Nc N
 
 S{ S
U 
D S; S
 
 
3 
Tk T
E 
 
#? 
T+ T" -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||0
S&[)0
  %T6\20
 ";VC
	0
 16c6k0B0
 $)f#50
 ',169'
0
 (-T#Y->'?0
 (-S&['90
 +0V*<0
 
0
h -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||,
S&[),
  %T6\2,
 ";VC
	,
 16c6k0B,
 $)f#5,
 ',169'
,
 (-T#Y->'?,
 (-S&['9,
 +0V*<,
 
&,
` -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||-TS&[)-T  %T6\2-T ";VC
	-T 16c6k0B-T $)f#5-T ',169'
-T (-T#Y->'?-T (-S&['9-T +0V*<-T 
-Tb -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||0
S&[)0
  %T6\20
 ";VC
	0
 16c6k0B0
 $)f#50
 ',169'
0
 (-T#Y->'?0
 (-S&['90
 +0V*<0
 
0
h -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||,
S&[),
  %T6\2,
 ";VC
	,
 16c6k0B,
 $)f#5,
 ',169'
,
 (-T#Y->'?,
 (-S&['9,
 +0V*<,
 
&,
` -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||-TS&[)-T  %T6\2-T ";VC
	-T 16c6k0B-T $)f#5-T ',169'
-T (-T#Y->'?-T (-S&['9-T +0V*<-T 
-T^	
# 	
r"   rV   c                   2    e Zd Zdeeef   defdZdefdZy)AddressConfigurationPager@   rS   c                 .    t        | j                  |      S )zz
        Build an instance of AddressConfigurationInstance

        :param payload: Payload response from the API
        )r   rW   )rQ   r@   s     r#   get_instancez%AddressConfigurationPage.get_instance?  s     ,DMM7CCr"   c                      y)r   z2<Twilio.Conversations.V1.AddressConfigurationPage>r!   rX   s    r#   r   z!AddressConfigurationPage.__repr__G       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                   h    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                  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                  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fdZej                  ddfdeee	f   dee   dee   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fd"Zej                  ddfdeee	f   dee   dee   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"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$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d0Z+ xZ,S )1AddressConfigurationListr?   c                 2    t         |   |       d| _        y)zv
        Initialize the AddressConfigurationList

        :param version: Version that contains the resource

        z/Configuration/AddressesN)rL   rM   r   )rQ   r?   rR   s     r#   rM   z!AddressConfigurationList.__init__R  s     	!.	r"   rD   r-   rE   rF   ro   rp   r   rq   rr   rs   r&   rt   ru   rv   rK   rS   c                 *   t        j                  |||t        j                  |      ||||t        j                  |	d       |
||d      }t        j                  ddi      }d|d<   d|d<   | j
                  j                  d| j                  ||      S )	z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        c                     | S r   r!   r   s    r#   r   z2AddressConfigurationList._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   rW   create_with_response_infor   rQ   rD   rE   rF   ro   rp   rq   rr   rs   rt   ru   rv   rK   r   r   s                  r#   _createz AddressConfigurationList._create]  s    4 yy" -(1(C(C)) &87]+D.J/8}}1;0 /L1Q"1!
( ))^-PQR"E.}}66tyytW 7 
 	
r"   c                 p    | 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
        rD   rE   rF   ro   rp   rq   rr   rs   rt   ru   rv   rK   )r   r   rW   rQ   rD   rE   rF   ro   rp   rq   rr   rs   rt   ru   rv   rK   r@   r   s                  r#   createzAddressConfigurationList.create  sU    J '"713Y&?)E*G*G-M+ % 
A ,DMM7CCr"   c                     | j                  |||||||||	|
||      \  }}}t        | j                  |      }t        |||      S )ab  
        Create the AddressConfigurationInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r  r   )r   r   rW   r   rQ   rD   rE   rF   ro   rp   rq   rr   rs   rt   ru   rv   rK   r@   r   r   r   s                    r#   create_with_http_infoz.AddressConfigurationList.create_with_http_info  sd    J )-'"713Y&?)E*G*G-M+ )5 )
%g 0wGk7SSr"   c                 F  K   t        j                  |||t        j                  |      ||||t        j                  |	d       |
||d      }t        j                  ddi      }d|d<   d|d<   | j
                  j                  d| j                  ||       d	{   S 7 w)
z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        c                     | S r   r!   r   s    r#   r   z8AddressConfigurationList._create_async.<locals>.<lambda>'  r   r"   r   r   r   r   r   r*   r   N)r   r   r   r   r   rW   create_with_response_info_asyncr   r   s                  r#   _create_asyncz&AddressConfigurationList._create_async   s     4 yy" -(1(C(C)) &87]+D.J/8}}1;0 /L1Q"1!
( ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   BB!BB!c                    K   | 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
        r  N)r  r   rW   r  s                  r#   create_asyncz%AddressConfigurationList.create_async8  se     J #00'"713Y&?)E*G*G-M+ 1 
 
A ,DMM7CC
s   !AAAc                    K   | j                  |||||||||	|
||       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)aq  
        Asynchronously create the AddressConfigurationInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r  Nr   )r  r   rW   r   r  s                    r#   create_with_http_info_asyncz4AddressConfigurationList.create_with_http_info_asyncm  su     J /3.@.@'"713Y&?)E*G*G-M+ /A /
 )
%g 0wGk7SS)
s   !AA-A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  rD   r  r  )rW   read_limitspagestreamrQ   rD   r  r  limitsr  s         r#   r  zAddressConfigurationList.stream  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  )rW   r  
page_asyncstream_asyncr  s         r#   r  z%AddressConfigurationList.stream_async  sY     , **5)<__$&:M_NN}}))$w@@ Os   6AA$Ac                     | j                   j                  ||      }| j                  ||d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a3  
        Streams AddressConfigurationInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        r  r  r  )rW   r  page_with_http_infor  r   r   r   rQ   rD   r  r  r  page_response	generators          r#   stream_with_http_infoz.AddressConfigurationList.stream_with_http_info  st    ( **5)<00!4 1 
 MM((););VG_M	=44m6K6KLLr"   c                   K   | j                   j                  ||      }| j                  ||d          d{   }| j                   j                  |j                  |d         }||j
                  |j                  fS 7 Fw)aB  
        Asynchronously streams AddressConfigurationInstance and returns headers from first page


        :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: tuple of (generator, status_code, headers) where generator yields instances
        r  r  Nr  )rW   r  page_with_http_info_asyncr  r   r   r   r  s          r#   stream_with_http_info_asyncz4AddressConfigurationList.stream_with_http_info_async  s     ( **5)<"<<!4 = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   6BA?AB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
        rD   r  r  )listr  )rQ   rD   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  )rQ   rD   r  r  records        r#   
list_asyncz#AddressConfigurationList.list_async.  sW     . '+&7&7# '8 ' !
 
 !
 
 	
 
s0   </<731
37<37<c                 d    | j                  |||      \  }}}t        |      }t        |||      S )a  
        Lists AddressConfigurationInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        r&  r   )r!  r'  r   )rQ   rD   r  r  r   r   r   r   s           r#   list_with_http_infoz,AddressConfigurationList.list_with_http_infoL  sD    ( +/*D*D +E +
'	;
 Y;PPr"   c                    K   | j                  |||       d{   \  }}}|2 cg c3 d{   }|7 7 	6 nc c}w }}t        |||      S w)a-  
        Asynchronously lists AddressConfigurationInstance and returns headers from first page


        :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: ApiResponse with list of instances, status code, and headers
        r&  Nr   )r$  r   )	rQ   rD   r  r  r   r   r   r)  r   s	            r#   list_with_http_info_asyncz2AddressConfigurationList.list_with_http_info_asynch  si     ( 150P0P 1Q 1
 +
'	;
 -666&+

 7666;PPs4   A5A;97
9;A9;A
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   rW   r  r   r   rQ   rD   r/  r0  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
        r2  r   r   r   r   r)   r5  N)r   r   rW   r  r   r   r7  s           r#   r  z#AddressConfigurationList.page_async  s     $ yy'#%	
 ))^-PQR.11diig 2 
 
 (x@@
s   A#B%B &Bc                    t        j                  ||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}	t        | j                  |      }
t        |
||	      S )	a  
        Retrieve a single page with response metadata


        :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: ApiResponse with AddressConfigurationPage, status code, and headers
        r2  r   r   r   r   r)   r5  r   )r   r   rW   page_with_response_infor   r   r   rQ   rD   r/  r0  r  r   r   r8  r   response_headersr  s              r#   r  z,AddressConfigurationList.page_with_http_info  s    $ yy'#%	
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ (x@+GWXXr"   c                 ,  K   t        j                  ||||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}	t        | j                  |      }
t        |
||		      S 7 ,w)
a  
        Asynchronously retrieve a single page with response metadata


        :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: ApiResponse with AddressConfigurationPage, status code, and headers
        r2  r   r   r   r   r)   r5  Nr   )r   r   rW   page_with_response_info_asyncr   r   r   r<  s              r#   r#  z2AddressConfigurationList.page_with_http_info_async  s     $ yy'#%	
 ))^-PQR. --==$))D' >   	0+/
 (x@+GWX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)   )rW   domaintwiliorequestr   rQ   r@  r8  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)rW   rB  rC  request_asyncr   rE  s      r#   get_page_asyncz'AddressConfigurationList.get_page_async$  sD      --44BB5*UU'x@@ Vs   4AAArA   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
        rU   rV   rW   rQ   rA   s     r#   r'   zAddressConfigurationList.get0       +4==cBBr"   c                 0    t        | j                  |      S rK  rL  rM  s     r#   __call__z!AddressConfigurationList.__call__8  rN  r"   c                      y)r   z2<Twilio.Conversations.V1.AddressConfigurationList>r!   rX   s    r#   r   z!AddressConfigurationList.__repr__@  r   r"   )-r   r   r   r   rM   r   r   r   r   r   r   r   r   r   r   r   r  r   r  r  r  r  r   r	   r  r
   r  r!  r$  r'  r*  r,  r.  r   r  r  r  r#  rF  rI  rV   r'   rP  r   r   r   s   @r#   r   r   P  s   	/ 	/ -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||.4ll#6
16
 6
 S&[)	6

  %T6\26
 ";VC
6
 16c6k0B6
 $)f#56
 ',169'
6
 (-T#Y->'?6
 (-S&['96
  +0V*<!6
" sF{+#6
$ 
%6
x -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||.4ll#3D13D 3D S&[)	3D
  %T6\23D ";VC
3D 16c6k0B3D $)f#53D ',169'
3D (-T#Y->'?3D (-S&['93D  +0V*<!3D" sF{+#3D$ 
&%3Dr -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||.4ll#4T14T 4T S&[)	4T
  %T6\24T ";VC
4T 16c6k0B4T $)f#54T ',169'
4T (-T#Y->'?4T (-S&['94T  +0V*<!4T" sF{+#4T$ 
%4Tt -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||.4ll#6
16
 6
 S&[)	6

  %T6\26
 ";VC
6
 16c6k0B6
 $)f#56
 ',169'
6
 (-T#Y->'?6
 (-S&['96
  +0V*<!6
" sF{+#6
$ 
%6
x -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||.4ll#3D13D 3D S&[)	3D
  %T6\23D ";VC
3D 16c6k0B3D $)f#53D ',169'
3D (-T#Y->'?3D (-S&['93D  +0V*<!3D" sF{+#3D$ 
&%3Dr -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||.4ll#4T14T 4T S&[)	4T
  %T6\24T ";VC
4T 16c6k0B4T $)f#54T ',169'
4T (-T#Y->'?4T (-S&['94T  +0V*<!4T" sF{+#4T$ 
%4Tp $*<<##'	;CK ; }; C=	;
 
.	/;: $*<<##'	ACK A }A C=	A
 
3	4A: $*<<##'	MCK M }M C=	M
 
M< $*<<##'	MCK M }M C=	M
 
M< $*<<##'	
CK 
 }
 C=	

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

 
*	+
@ $*<<##'	QCK Q }Q C=	Q
 
Q< $*<<##'	QCK Q }Q C=	Q
 
Q< $*<<)/*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L $*<<)/*0,,(.#YCK #Y #v+&#Y 3;'	#Y
 f%#Y 
#YN $*<<)/*0,,(.%YCK %Y #v+&%Y 3;'	%Y
 f%%Y 
%YN
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.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rV   r   r   r!   r"   r#   <module>r[     sm     L L L 6 6 0 8 : 2 ' !G
#3 G
T
V
/ V
rDt D&vD| vDr"   