
    g                         S r SSKJr  SSKJrJrJrJrJrJrJ	r	  SSK
JrJrJr  SSKJr  SSKJr  SSKJr  SSKJr  SS	KJr   " S
 S\5      r " S S\5      r " S S\5      r " S S\5      rg)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                     ^  \ rS rSr " S S\5      r " S S\5      r " S S\5      r  S!S\S	\	\
\4   S
\\
   4U 4S jjjr\S"S j5       rS\4S jrS\4S jrS#S jrS#S jr\R,                  \R,                  \R,                  \R,                  \R,                  \R,                  \R,                  \R,                  \R,                  4	S\\
\4   S\\\4   S\S\4   S\\
\4   S\\
\4   S\S\4   S\\\
   \4   S\\
\4   S\\\4   SS 4S jjr\R,                  \R,                  \R,                  \R,                  \R,                  \R,                  \R,                  \R,                  \R,                  4	S\\
\4   S\\\4   S\S\4   S\\
\4   S\\
\4   S\S\4   S\\\
   \4   S\\
\4   S\\\4   SS 4S jjrS\
4S jrS rU =r$ )$AddressConfigurationInstance   c                        \ rS rSrSrSrSrSrg)-AddressConfigurationInstance.AutoCreationType   webhookstudiodefault N)__name__
__module____qualname____firstlineno__WEBHOOKSTUDIODEFAULT__static_attributes__r       z/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/conversations/v1/address_configuration.pyAutoCreationTyper      s    r%   r'   c                       \ rS rSrSrSrSrg)#AddressConfigurationInstance.Method    GETPOSTr   N)r   r   r   r    r+   r,   r$   r   r%   r&   Methodr)       s    r%   r-   c                   0    \ rS rSrSrSrSrSrSrSr	Sr
S	rg
)!AddressConfigurationInstance.Type$   smswhatsapp	messengergbmemailrcsappler   N)r   r   r   r    SMSWHATSAPP	MESSENGERGBMEMAILRCSAPPLEr$   r   r%   r&   Typer/   $   s%    	r%   r?   versionpayloadsidc                 r  > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        [        R                  " UR                  S5      5      U l        [        R                  " UR                  S5      5      U l        UR                  S	5      U l        UR                  S
5      U l        SU=(       d    U R                  0U l        S U l        g )NrB   account_sidtypeaddressfriendly_nameauto_creationdate_createddate_updatedurladdress_country)super__init__getrB   rD   rE   rF   rG   rH   r   iso8601_datetimerI   rJ   rK   rL   	_solution_context)selfr@   rA   rB   	__class__s       r&   rN   %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                     U R                   c&  [        U R                  U R                  S   S9U l         U R                   $ )z
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
rB   rB   )rR   AddressConfigurationContext_versionrQ   rS   s    r&   _proxy#AddressConfigurationInstance._proxyS   s9     == 7NN5)DM }}r%   c                 6    U R                   R                  5       $ )_
Deletes the AddressConfigurationInstance


:returns: True if delete succeeds, False otherwise
)r\   deleter[   s    r&   r`   #AddressConfigurationInstance.deleteb   s     {{!!##r%   c                 R   #    U R                   R                  5       I Sh  vN $  N7f){
Asynchronous coroutine that deletes the AddressConfigurationInstance


:returns: True if delete succeeds, False otherwise
N)r\   delete_asyncr[   s    r&   rd   )AddressConfigurationInstance.delete_asynck   s       [[--////   '%'c                 6    U R                   R                  5       $ )]
Fetch the AddressConfigurationInstance


:returns: The fetched AddressConfigurationInstance
)r\   fetchr[   s    r&   ri   "AddressConfigurationInstance.fetcht   s     {{  ""r%   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)w
Asynchronous coroutine to fetch the AddressConfigurationInstance


:returns: The fetched AddressConfigurationInstance
N)r\   fetch_asyncr[   s    r&   rm   (AddressConfigurationInstance.fetch_async}   s       [[,,....rf   rG   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
                 D    U R                   R                  UUUUUUUUU	S9	$ )  
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
	rG   ro   rp   rq   rr   rs   rt   ru   rv   )r\   update
rS   rG   ro   rp   rq   rr   rs   rt   ru   rv   s
             r&   rz   #AddressConfigurationInstance.update   s;    > {{!!'"713Y&?)E*G*G-M " 

 
	
r%   c
                 `   #    U R                   R                  UUUUUUUUU	S9	I Sh  vN $  N7f)  
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)r\   update_asyncr{   s
             r&   r   )AddressConfigurationInstance.update_async   sH     > [[--'"713Y&?)E*G*G-M . 

 

 
	
 

s   %.,.c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r&   	<genexpr>8AddressConfigurationInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z9<Twilio.Conversations.V1.AddressConfigurationInstance {}>joinrQ   itemsr   rS   contexts     r&   __repr__%AddressConfigurationInstance.__repr__   s;     ((SDNN<P<P<RSSJQQ
 	
r%   )rR   rQ   rD   rF   rL   rH   rI   rJ   rG   rB   rE   rK   N)rV   rY   )rV   r   )r   r   r   r    objectr'   r-   r?   r   r   strr   r   rN   propertyr\   boolr`   rd   ri   rm   r   unsetr   r   intrz   r   r   r$   __classcell__rT   s   @r&   r   r      s   6 
 v  OSDD)-c3hD>FsmD 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                   2  ^  \ rS rSrS\S\4U 4S jjrS\4S jrS\4S jr	S\
4S jrS\
4S	 jr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4	S
\\\4   S\\\4   S\S\4   S\\\4   S\\\4   S\S\4   S\\\   \4   S\\\4   S\\\4   S\
4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4	S
\\\4   S\\\4   S\S\4   S\\\4   S\\\4   S\S\4   S\\\   \4   S\\\4   S\\\4   S\
4S jjrS\4S jrSrU =r$ )rY      r@   rB   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)z
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
rB   z/Configuration/Addresses/{sid}Nr   )rM   rN   rQ   r   _uri)rS   r@   rB   rT   s      r&   rN   $AddressConfigurationContext.__init__   s=     	! 3
 5;;MdnnM	r%   rV   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r_   DELETEmethoduriheaders)r   ofrZ   r`   r   rS   r   s     r&   r`   "AddressConfigurationContext.delete   s1     ))B-}}##8G#TTr%   c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)rc   r   r   N)r   r   rZ   rd   r   r   s     r&   rd   (AddressConfigurationContext.delete_async  sE      ))B-]]//G 0 
 
 	
 
s   ?AAAc                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   S9$ )rh   application/jsonAcceptr+   r   rB   rX   )r   r   rZ   ri   r   r   rQ   rS   r   rA   s      r&   ri   !AddressConfigurationContext.fetch  s]     ))B-.--%%U		7%S+MMu%
 	
r%   c                    #    [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   S9$  N&7f)rl   r   r   r+   r   NrB   rX   )r   r   rZ   rm   r   r   rQ   r   s      r&   rm   'AddressConfigurationContext.fetch_async'  sq      ))B-.11dii 2 
 
 ,MMu%
 	
	
s   AA/A-'A/rG   ro   rp   r   rq   rr   rs   r)   rt   ru   rv   c
                 b   [         R                  " U[        R                  " U5      UUUU[        R                  " US 5      UU	S.	5      n
[         R                  " 0 5      nSUS'   SUS'   U R
                  R                  SU R                  XS9n[        U R
                  XR                  S	   S
9$ )rx   c                     U $ r   r   es    r&   <lambda>4AddressConfigurationContext.update.<locals>.<lambda>h      Qr%   	FriendlyNameAutoCreation.EnabledAutoCreation.Type#AutoCreation.ConversationServiceSidAutoCreation.WebhookUrlAutoCreation.WebhookMethodAutoCreation.WebhookFiltersAutoCreation.StudioFlowSidAutoCreation.StudioRetryCount!application/x-www-form-urlencodedContent-Typer   r   r,   r   r   datar   rB   rX   )
r   r   r   boolean_to_stringmaprZ   rz   r   r   rQ   rS   rG   ro   rp   rq   rr   rs   rt   ru   rv   r   r   rA   s                r&   rz   "AddressConfigurationContext.update=  s    @ yy -(1(C(C)) &87]+D.J/8}}1;0 /L1Q
" ))B-"E.--&&tyyt ' 
 ,MM7u(=
 	
r%   c
                 ~  #    [         R                  " U[        R                  " U5      UUUU[        R                  " US 5      UU	S.	5      n
[         R                  " 0 5      nSUS'   SUS'   U R
                  R                  SU R                  XS9I S	h  vN n[        U R
                  XR                  S
   S9$  N%7f)r~   c                     U $ r   r   r   s    r&   r   :AddressConfigurationContext.update_async.<locals>.<lambda>  r   r%   r   r   r   r   r   r,   r   NrB   rX   )
r   r   r   r   r   rZ   r   r   r   rQ   r   s                r&   r   (AddressConfigurationContext.update_async|  s     @ yy -(1(C(C)) &87]+D.J/8}}1;0 /L1Q
" ))B-"E.22tyyt 3 
 
 ,MM7u(=
 	
	
s   BB=B;&B=c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )r   r   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr   r   r   s      r&   r   7AddressConfigurationContext.__repr__.<locals>.<genexpr>  r   r   z8<Twilio.Conversations.V1.AddressConfigurationContext {}>r   r   s     r&   r   $AddressConfigurationContext.__repr__  s;     ((SDNN<P<P<RSSIPP
 	
r%   )rQ   r   )r   r   r   r    r   r   rN   r   r`   rd   r   ri   rm   r   r   r   r   r   r   rz   r   r   r$   r   r   s   @r&   rY   rY      st   N Nc N
U 
U
D 

3 
(
#? 
0 -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||=
S&[)=
  %T6\2=
 ";VC
	=
 16c6k0B=
 $)f#5=
 ',169'
=
 (-T#Y->'?=
 (-S&['9=
 +0V*<=
 
&=
B -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||=
S&[)=
  %T6\2=
 ";VC
	=
 16c6k0B=
 $)f#5=
 ',169'
=
 (-T#Y->'?=
 (-S&['9=
 +0V*<=
 
&=
~	
# 	
 	
r%   rY   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)AddressConfigurationPagei  rA   rV   c                 .    [        U R                  U5      $ )zb
Build an instance of AddressConfigurationInstance

:param payload: Payload response from the API
)r   rZ   )rS   rA   s     r&   get_instance%AddressConfigurationPage.get_instance  s     ,DMM7CCr%   c                     g)r   z2<Twilio.Conversations.V1.AddressConfigurationPage>r   r[   s    r&   r   !AddressConfigurationPage.__repr__       Dr%   r   N)r   r   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                   *  ^  \ rS rSrS\4U 4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4
SSS\S\	\\
4   S\	\\
4   S	\	S
\
4   S\	\\
4   S\	\\
4   S\	S\
4   S\	\\   \
4   S\	\\
4   S\	\\
4   S\	\\
4   S\4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4
SSS\S\	\\
4   S\	\\
4   S	\	S
\
4   S\	\\
4   S\	\\
4   S\	S\
4   S\	\\   \
4   S\	\\
4   S\	\\
4   S\	\\
4   S\4S jjr\R                  SS4S\	\\
4   S\\   S\\   S\\   4S jjr\R                  SS4S\	\\
4   S\\   S\\   S\\   4S jjr\R                  SS4S\	\\
4   S\\   S\\   S\\   4S jjr\R                  SS4S\	\\
4   S\\   S\\   S\\   4S jjr\R                  \R                  \R                  \R                  4S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\4
S jjr\R                  \R                  \R                  \R                  4S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\4
S  jjrS!\S\4S" jrS!\S\4S# jrS$\S\4S% jrS$\S\4S& jrS\4S' jr S(r!U =r"$ ))AddressConfigurationListi  r@   c                 2   > [         TU ]  U5        SU l        g)z^
Initialize the AddressConfigurationList

:param version: Version that contains the resource

z/Configuration/AddressesN)rM   rN   r   )rS   r@   rT   s     r&   rN   !AddressConfigurationList.__init__  s     	!.	r%   rE   r/   rF   rG   ro   rp   r   rq   rr   rs   r)   rt   ru   rv   rL   rV   c                 V   [         R                  " UUU[        R                  " U5      UUUU[        R                  " U	S 5      U
UUS.5      n[         R                  " SS05      nSUS'   SUS'   U R
                  R                  SU R                  XS9n[        U R
                  U5      $ )	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                     U $ r   r   r   s    r&   r   1AddressConfigurationList.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   rZ   creater   r   rS   rE   rF   rG   ro   rp   rq   rr   rs   rt   ru   rv   rL   r   r   rA   s                   r&   r   AddressConfigurationList.create  s    L yy" -(1(C(C)) &87]+D.J/8}}1;0 /L1Q"1!
( ))^-PQR"E.--&&tyyt ' 
 ,DMM7CCr%   c                 r  #    [         R                  " UUU[        R                  " U5      UUUU[        R                  " U	S 5      U
UUS.5      n[         R                  " SS05      nSUS'   SUS'   U R
                  R                  SU R                  XS9I S	h  vN n[        U R
                  U5      $  N7f)
a  
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                     U $ r   r   r   s    r&   r   7AddressConfigurationList.create_async.<locals>.<lambda>`  r   r%   r   r   r   r   r   r,   r   N)	r   r   r   r   r   rZ   create_asyncr   r   r   s                   r&   r   %AddressConfigurationList.create_async-  s     L yy" -(1(C(C)) &87]+D.J/8}}1;0 /L1Q"1!
( ))^-PQR"E.22tyyt 3 
 
 ,DMM7CC	
s   BB7B5B7Nlimit	page_sizec                     U R                   R                  X#5      nU R                  XS   S9nU R                   R                  XTS   5      $ )aw  
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   rE   r   r   )rZ   read_limitspagestreamrS   rE   r   r   limitsr   s         r&   r   AddressConfigurationList.streams  sF    , **5<yyd[.AyB}}##D/::r%   c                    #    U R                   R                  X#5      nU R                  XS   S9I Sh  vN nU R                   R                  XTS   5      $  N"7f)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   )rZ   r   
page_asyncstream_asyncr   s         r&   r   %AddressConfigurationList.stream_async  sR     , **5<__$:M_NN}}))$w@@ Os   1AA#Ac                 6    [        U R                  UUUS95      $ )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
rE   r   r   )listr   )rS   rE   r   r   s       r&   r  AddressConfigurationList.list  s+    * KK#  
 	
r%   c                 x   #    U R                  UUUS9I Sh  vN  Vs/ s Sh  vN nUPM   N N

 sn$ s  snf 7f)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   )rS   rE   r   r   records        r&   
list_async#AddressConfigurationList.list_async  sT     . '+&7&7# '8 ' ! !
 
 !
 	
 
s0   :-:51/
15:15:
page_tokenpage_numberc                     [         R                  " UUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XVS9n[        U R                  U5      $ )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   rZ   r   r   r   rS   rE   r  r	  r   r   r   responses           r&   r   AddressConfigurationList.page  sz    $ yy'#%	
 ))^-PQR.==%%dii & 
 (x@@r%   c                   #    [         R                  " UUUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XVS9I Sh  vN n[        U R                  U5      $  N7f)	a  
Asynchronously retrieve a single page of AddressConfigurationInstance records from the API.
Request is executed immediately

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

:returns: Page of AddressConfigurationInstance
r  r   r   r   r   r+   r  N)r   r   rZ   r   r   r   r  s           r&   r   #AddressConfigurationList.page_async  s     $ yy'#%	
 ))^-PQR.11dii 2 
 
 (x@@
s   A!B #A>$B 
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   U5      $ )z
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+   )rZ   domaintwiliorequestr   rS   r  r  s      r&   get_page!AddressConfigurationList.get_page,  s7     ==''..66ujI'x@@r%   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   U5      $  N7f)z
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)rZ   r  r  request_asyncr   r  s      r&   get_page_async'AddressConfigurationList.get_page_async8  sC      --44BB5*UU'x@@ Vs   4AAArB   c                 *    [        U R                  US9$ 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
rX   rY   rZ   rS   rB   s     r&   rO   AddressConfigurationList.getD       +4==cBBr%   c                 *    [        U R                  US9$ r"  r#  r$  s     r&   __call__!AddressConfigurationList.__call__L  r&  r%   c                     g)r   z2<Twilio.Conversations.V1.AddressConfigurationList>r   r[   s    r&   r   !AddressConfigurationList.__repr__T  r   r%   )r   )#r   r   r   r    r   rN   r   r   r   r   r   r   r   r   r   r   r   r   r	   r   r
   r   r  r  r   r   r   r  r  rY   rO   r(  r   r$   r   r   s   @r&   r   r     so   	/ 	/ -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||.4ll#DD1DD DD S&[)	DD
  %T6\2DD ";VC
DD 16c6k0BDD $)f#5DD ',169'
DD (-T#Y->'?DD (-S&['9DD  +0V*<!DD" sF{+#DD$ 
&%DDT -3LL5;\\ LLEK\\8> LLBH,,<BLL?E||.4ll#DD1DD DD S&[)	DD
  %T6\2DD ";VC
DD 16c6k0BDD $)f#5DD ',169'
DD (-T#Y->'?DD (-S&['9DD  +0V*<!DD" sF{+#DD$ 
&%DDP $*<<##'	;CK ; }; C=	;
 
.	/;: $*<<##'	ACK A }A C=	A
 
3	4A: $*<<##'	
CK 
 }
 C=	

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

 
*	+
@ $*<<)/*0,,(."ACK "A #v+&"A 3;'	"A
 f%"A 
""AL $*<<)/*0,,(."ACK "A #v+&"A 3;'	"A
 f%"A 
""AH
A3 
A+C 
A
As 
A7O 
ACs C: CCC C$? CD# D 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   rY   r   r   r   r%   r&   <module>r4     sj     L L L 6 6 8 : 2 ' !L
#3 L
^\
/ \
~Dt D&@D| @Dr%   