
    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 - Api
 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            #       L  ^  \ rS rSrSr S"S\S\\\4   S\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&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  4S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   SS 4"S jjr\R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  \R&                  4S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   SS 4"S jjrS\4S  jrS!rU =r$ )%ApplicationInstance   a:	  
:ivar account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resource.
:ivar api_version: The API version used to start a new TwiML session.
:ivar date_created: The date and time in GMT that the resource was created specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
:ivar date_updated: The date and time in GMT that the resource was last updated specified in [RFC 2822](https://www.ietf.org/rfc/rfc2822.txt) format.
:ivar friendly_name: The string that you assigned to describe the resource.
:ivar message_status_callback: The URL we call using a POST method to send message status information to your application.
:ivar sid: The unique string that that we created to identify the Application resource.
:ivar sms_fallback_method: The HTTP method we use to call `sms_fallback_url`. Can be: `GET` or `POST`.
:ivar sms_fallback_url: The URL that we call when an error occurs while retrieving or executing the TwiML from `sms_url`.
:ivar sms_method: The HTTP method we use to call `sms_url`. Can be: `GET` or `POST`.
:ivar sms_status_callback: The URL we call using a POST method to send status information to your application about SMS messages that refer to the application.
:ivar sms_url: The URL we call when the phone number receives an incoming SMS message.
:ivar status_callback: The URL we call using the `status_callback_method` to send status information to your application.
:ivar status_callback_method: The HTTP method we use to call `status_callback`. Can be: `GET` or `POST`.
:ivar uri: The URI of the resource, relative to `https://api.twilio.com`.
:ivar voice_caller_id_lookup: Whether we look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`.
:ivar voice_fallback_method: The HTTP method we use to call `voice_fallback_url`. Can be: `GET` or `POST`.
:ivar voice_fallback_url: The URL that we call when an error occurs retrieving or executing the TwiML requested by `url`.
:ivar voice_method: The HTTP method we use to call `voice_url`. Can be: `GET` or `POST`.
:ivar voice_url: The URL we call when the phone number assigned to this application receives a call.
:ivar public_application_connect_enabled: Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`.
versionpayloadaccount_sidsidc                 X  > [         TU ]  U5        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
        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        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        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        UU=(       d    U R                  S.U l        S U l        g )Nr   api_versiondate_createddate_updatedfriendly_namemessage_status_callbackr   sms_fallback_methodsms_fallback_url
sms_methodsms_status_callbacksms_urlstatus_callbackstatus_callback_methodurivoice_caller_id_lookupvoice_fallback_methodvoice_fallback_urlvoice_method	voice_url"public_application_connect_enabledr   r   )super__init__getr   r   r   rfc2822_datetimer   r   r   r   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   r-   	_solution_context)selfr   r   r   r   	__class__s        q/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/api/v2010/account/application.pyr0   ApplicationInstance.__init__2   s    	!*1++m*D*1++m*D0;0L0LKK'1
 1<0L0LKK'1
 -4KK,H6=kk%7
$ #*++e"429++>S2T /6{{;M/N)0\)B29++>S2T &-kk)&<.5kk:K.L5<[[$6
# #*++e"46=kk$7
# 5<KK@W4X"18=Q1R+2;;~+F(/K(@BI++0C
/
 '?$((
 7;    returnc                     U R                   c4  [        U R                  U R                  S   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: ApplicationContext for this ApplicationInstance
r   r   r.   )r4   ApplicationContext_versionr3   r5   s    r7   _proxyApplicationInstance._proxyc   sE     == . NN=9NN5)DM
 }}r9   c                 6    U R                   R                  5       $ )V
Deletes the ApplicationInstance


:returns: True if delete succeeds, False otherwise
)r?   deleter>   s    r7   rC   ApplicationInstance.deletes   s     {{!!##r9   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)r
Asynchronous coroutine that deletes the ApplicationInstance


:returns: True if delete succeeds, False otherwise
N)r?   delete_asyncr>   s    r7   rG    ApplicationInstance.delete_async|   s       [[--////   '%'c                 6    U R                   R                  5       $ )K
Fetch the ApplicationInstance


:returns: The fetched ApplicationInstance
)r?   fetchr>   s    r7   rL   ApplicationInstance.fetch   s     {{  ""r9   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)e
Asynchronous coroutine to fetch the ApplicationInstance


:returns: The fetched ApplicationInstance
N)r?   fetch_asyncr>   s    r7   rP   ApplicationInstance.fetch_async   s       [[,,....rI   r   r   r,   r+   r*   r)   r%   r&   r(   r$   r"   r!   r    r#   r   r-   c                 R    U R                   R                  UUUUUUUUU	U
UUUUUUS9$ )m  
Update the ApplicationInstance

:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
:param api_version: The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. The default value is your account's default API version.
:param voice_url: The URL we should call when the phone number assigned to this application receives a call.
:param voice_method: The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`.
:param voice_fallback_url: The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`.
:param voice_fallback_method: The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`.
:param status_callback: The URL we should call using the `status_callback_method` to send status information to your application.
:param status_callback_method: The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`.
:param voice_caller_id_lookup: Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`.
:param sms_url: The URL we should call when the phone number receives an incoming SMS message.
:param sms_method: The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`.
:param sms_fallback_url: The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`.
:param sms_fallback_method: The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`.
:param sms_status_callback: Same as message_status_callback: The URL we should call using a POST method to send status information about SMS messages sent by the application. Deprecated, included for backwards compatibility.
:param message_status_callback: The URL we should call using a POST method to send message status information to your application.
:param public_application_connect_enabled: Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`.

:returns: The updated ApplicationInstance
r   r   r,   r+   r*   r)   r%   r&   r(   r$   r"   r!   r    r#   r   r-   )r?   updater5   r   r   r,   r+   r*   r)   r%   r&   r(   r$   r"   r!   r    r#   r   r-   s                    r7   rU   ApplicationInstance.update   sQ    R {{!!'#%1"7+#9#9!- 3 3$;/Q! " 
 	
r9   c                 n   #    U R                   R                  UUUUUUUUU	U
UUUUUUS9I Sh  vN $  N7f)  
Asynchronous coroutine to update the ApplicationInstance

:param friendly_name: A descriptive string that you create to describe the resource. It can be up to 64 characters long.
:param api_version: The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. The default value is your account's default API version.
:param voice_url: The URL we should call when the phone number assigned to this application receives a call.
:param voice_method: The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`.
:param voice_fallback_url: The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`.
:param voice_fallback_method: The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`.
:param status_callback: The URL we should call using the `status_callback_method` to send status information to your application.
:param status_callback_method: The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`.
:param voice_caller_id_lookup: Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`.
:param sms_url: The URL we should call when the phone number receives an incoming SMS message.
:param sms_method: The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`.
:param sms_fallback_url: The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`.
:param sms_fallback_method: The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`.
:param sms_status_callback: Same as message_status_callback: The URL we should call using a POST method to send status information about SMS messages sent by the application. Deprecated, included for backwards compatibility.
:param message_status_callback: The URL we should call using a POST method to send message status information to your application.
:param public_application_connect_enabled: Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`.

:returns: The updated ApplicationInstance
rT   N)r?   update_asyncrV   s                    r7   rZ    ApplicationInstance.update_async   s^     R [[--'#%1"7+#9#9!- 3 3$;/Q! . 
 
 	
 
s   ,535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      r7   	<genexpr>/ApplicationInstance.__repr__.<locals>.<genexpr>        S<RDA7>>!//<R    "z)<Twilio.Api.V2010.ApplicationInstance {}>joinr3   itemsrb   r5   contexts     r7   __repr__ApplicationInstance.__repr__  s6     ((SDNN<P<P<RSS:AA'JJr9   )r4   r3   r   r   r   r   r   r   r-   r   r    r!   r"   r#   r$   r%   r&   r'   r(   r)   r*   r+   r,   )N)r:   r<   )r:   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r0   propertyr?   boolrC   rG   rL   rP   r   unsetr   objectrU   rZ   rp   __static_attributes____classcell__r6   s   @r7   r   r      s   : "/;/; c3h/; 	/;
 c]/; /;b  $ $0D 0#/ -3LL*0,,(.+1<<174:LL.4ll5;\\6<ll&,ll)//5||28,,28,,6<llBH,,#:
S&[):
 3;':
 f%	:

 CK(:
 "#v+.:
  %S&[1:
 sF{+:
 !&c6k 2:
 !&dFl 3:
 sF{#:
 #v+&:
  V,:
 #3;/:
 #3;/:
  "'sF{!3!:
" -2$,,?#:
$ 
%:
| -3LL*0,,(.+1<<174:LL.4ll5;\\6<ll&,ll)//5||28,,28,,6<llBH,,#:
S&[):
 3;':
 f%	:

 CK(:
 "#v+.:
  %S&[1:
 sF{+:
 !&c6k 2:
 !&dFl 3:
 sF{#:
 #v+&:
  V,:
 #3;/:
 #3;/:
  "'sF{!3!:
" -2$,,?#:
$ 
%:
xK# K Kr9   r   c            #       "  ^  \ rS rSrS\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                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   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                  \R                  \R                  \R                  \R                  \R                  \R                  4S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\\\4   S\
4"S jjrS\4S jrSrU =r$ )r<   i  r   r   r   c                 z   > [         TU ]  U5        UUS.U l        SR                  " S0 U R                  D6U l        g)aG  
Initialize the ApplicationContext

:param version: Version that contains the resource
:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to update.
:param sid: The Twilio-provided string that uniquely identifies the Application resource to update.
r.   z//Accounts/{account_sid}/Applications/{sid}.jsonN r/   r0   r3   rb   _uri)r5   r   r   r   r6   s       r7   r0   ApplicationContext.__init__  sD     	! '
 FLL 
nn
	r9   r:   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )rB   DELETEmethodr'   headers)r   ofr=   rC   r   r5   r   s     r7   rC   ApplicationContext.delete.  s1     ))B-}}##8G#TTr9   c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)rF   r   r   N)r   r   r=   rG   r   r   s     r7   rG   ApplicationContext.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   U R                  S   S9$ )rK   application/jsonAcceptGETr   r   r   r.   )r   r   r=   rL   r   r   r3   r5   r   r   s      r7   rL   ApplicationContext.fetchH  si     ))B-.--%%U		7%S"MM}5u%	
 	
r9   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   U R                  S   S9$  N47f)	rO   r   r   r   r   Nr   r   r.   )r   r   r=   rP   r   r   r3   r   s      r7   rP   ApplicationContext.fetch_async]  s}      ))B-.11dii 2 
 
 #MM}5u%	
 	
	
s   AA=A;5A=r   r   r,   r+   r*   r)   r%   r&   r(   r$   r"   r!   r    r#   r   r-   c                    [         R                  " 0 SU_SU_SU_SU_SU_SU_SU_SU_S	[        R                  " U	5      _S
U
_SU_SU_SU_SU_SU_S[        R                  " U5      _5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  UUS9n[        U R                  UU R                  S   U R                  S   S9$ )rS   FriendlyName
ApiVersionVoiceUrlVoiceMethodVoiceFallbackUrlVoiceFallbackMethodStatusCallbackStatusCallbackMethodVoiceCallerIdLookupSmsUrl	SmsMethodSmsFallbackUrlSmsFallbackMethodSmsStatusCallbackMessageStatusCallbackPublicApplicationConnectEnabled!application/x-www-form-urlencodedContent-Typer   r   POSTr   r'   datar   r   r   r.   )	r   r   r   boolean_to_stringr=   rU   r   r   r3   r5   r   r   r,   r+   r*   r)   r%   r&   r(   r$   r"   r!   r    r#   r   r-   r   r   r   s                       r7   rU   ApplicationContext.updatet  sq   T yyk I |	
 #$6 &'< !/ '(> &y'B'B*( ' Z !"2 $%8  $%8!" ()@#$ 293N3N64%
0 ))B-"E.--&&tyytW ' 
 #MM}5u%	
 	
r9   c                   #    [         R                  " 0 SU_SU_SU_SU_SU_SU_SU_SU_S	[        R                  " U	5      _S
U
_SU_SU_SU_SU_SU_S[        R                  " U5      _5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  UUS9I Sh  vN n[        U R                  UU R                  S   U R                  S   S9$  N47f)rY   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Nr   r   r.   )	r   r   r   r   r=   rZ   r   r   r3   r   s                       r7   rZ   ApplicationContext.update_async  s~    T yyk I |	
 #$6 &'< !/ '(> &y'B'B*( ' Z !"2 $%8  $%8!" ()@#$ 293N3N64%
0 ))B-"E.22tyytW 3 
 
 #MM}5u%	
 	
	
s   B8C1:C/;5C1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`   ra   rc   s      r7   rg   .ApplicationContext.__repr__.<locals>.<genexpr>   ri   rj   z(<Twilio.Api.V2010.ApplicationContext {}>rk   rn   s     r7   rp   ApplicationContext.__repr__  s6     ((SDNN<P<P<RSS9@@IIr9   r3   r   )rr   rs   rt   ru   r   rw   r0   ry   rC   rG   r   rL   rP   r   rz   r   r{   rU   rZ   rp   r|   r}   r~   s   @r7   r<   r<     s   
 
c 
 
&
U 
U
D 

* 
*
#6 
2 -3LL*0,,(.+1<<174:LL.4ll5;\\6<ll&,ll)//5||28,,28,,6<llBH,,#Q
S&[)Q
 3;'Q
 f%	Q

 CK(Q
 "#v+.Q
  %S&[1Q
 sF{+Q
 !&c6k 2Q
 !&dFl 3Q
 sF{#Q
 #v+&Q
  V,Q
 #3;/Q
 #3;/Q
  "'sF{!3!Q
" -2$,,?#Q
$ 
%Q
j -3LL*0,,(.+1<<174:LL.4ll5;\\6<ll&,ll)//5||28,,28,,6<llBH,,#Q
S&[)Q
 3;'Q
 f%	Q

 CK(Q
 "#v+.Q
  %S&[1Q
 sF{+Q
 !&c6k 2Q
 !&dFl 3Q
 sF{#Q
 #v+&Q
  V,Q
 #3;/Q
 #3;/Q
  "'sF{!3!Q
" -2$,,?#Q
$ 
%Q
fJ# J Jr9   r<   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)ApplicationPagei$  r   r:   c                 D    [        U R                  XR                  S   S9$ )zY
Build an instance of ApplicationInstance

:param payload: Payload response from the API
r   r   )r   r=   r3   )r5   r   s     r7   get_instanceApplicationPage.get_instance&  s#     #MM7}0M
 	
r9   c                     g)r]   z"<Twilio.Api.V2010.ApplicationPage>r   r>   s    r7   rp   ApplicationPage.__repr__0       4r9   r   N)rr   rs   rt   ru   r   rw   r   r   r   rp   r|   r   r9   r7   r   r   $  s*    
DcN 
7J 
4# 4r9   r   c            #         ^  \ rS rSrS\S\4U 4S jjr\R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  \R                  4S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S	\	\\
4   S
\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   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                  \R                  \R                  \R                  \R                  \R                  \R                  4S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S	\	\\
4   S
\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   S\	\\
4   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"$ )+ApplicationListi9  r   r   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 ApplicationList

:param version: Version that contains the resource
:param account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) that created the Application resources to read.

r   z)/Accounts/{account_sid}/Applications.jsonNr   r   )r5   r   r   r6   s      r7   r0   ApplicationList.__init__;  s>     	! ;
 @FFXX	r9   r   r,   r+   r*   r)   r%   r&   r(   r$   r"   r!   r    r#   r   r   r-   r:   c                    [         R                  " 0 SU_SU_SU_SU_SU_SU_SU_S[        R                  " U5      _S	U	_S
U
_SU_SU_SU_SU_SU_S[        R                  " U5      _5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  UUS9n[        U R                  UU R                  S   S9$ )a   
Create the ApplicationInstance

:param api_version: The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. The default value is the account's default API version.
:param voice_url: The URL we should call when the phone number assigned to this application receives a call.
:param voice_method: The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`.
:param voice_fallback_url: The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`.
:param voice_fallback_method: The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`.
:param status_callback: The URL we should call using the `status_callback_method` to send status information to your application.
:param status_callback_method: The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`.
:param voice_caller_id_lookup: Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`.
:param sms_url: The URL we should call when the phone number receives an incoming SMS message.
:param sms_method: The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`.
:param sms_fallback_url: The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`.
:param sms_fallback_method: The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`.
:param sms_status_callback: The URL we should call using a POST method to send status information about SMS messages sent by the application.
:param message_status_callback: The URL we should call using a POST method to send message status information to your application.
:param friendly_name: A descriptive string that you create to describe the new application. It can be up to 64 characters long.
:param public_application_connect_enabled: Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`.

:returns: The created ApplicationInstance
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=   creater   r   r3   r5   r   r,   r+   r*   r)   r%   r&   r(   r$   r"   r!   r    r#   r   r   r-   r   r   r   s                       r7   r   ApplicationList.createK  sj   T yykI | #$6	
 &'< !/ '(> &y'B'B*( ' Z !"2 $%8 $%8  ()@!" #$ 293N3N64%
0 ))^-PQR"E.--&&tyytW ' 
 #MM7}0M
 	
r9   c                   #    [         R                  " 0 SU_SU_SU_SU_SU_SU_SU_S[        R                  " U5      _S	U	_S
U
_SU_SU_SU_SU_SU_S[        R                  " U5      _5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  UUS9I Sh  vN n[        U R                  UU R                  S   S9$  N&7f)a/  
Asynchronously create the ApplicationInstance

:param api_version: The API version to use to start a new TwiML session. Can be: `2010-04-01` or `2008-08-01`. The default value is the account's default API version.
:param voice_url: The URL we should call when the phone number assigned to this application receives a call.
:param voice_method: The HTTP method we should use to call `voice_url`. Can be: `GET` or `POST`.
:param voice_fallback_url: The URL that we should call when an error occurs retrieving or executing the TwiML requested by `url`.
:param voice_fallback_method: The HTTP method we should use to call `voice_fallback_url`. Can be: `GET` or `POST`.
:param status_callback: The URL we should call using the `status_callback_method` to send status information to your application.
:param status_callback_method: The HTTP method we should use to call `status_callback`. Can be: `GET` or `POST`.
:param voice_caller_id_lookup: Whether we should look up the caller's caller-ID name from the CNAM database (additional charges apply). Can be: `true` or `false`.
:param sms_url: The URL we should call when the phone number receives an incoming SMS message.
:param sms_method: The HTTP method we should use to call `sms_url`. Can be: `GET` or `POST`.
:param sms_fallback_url: The URL that we should call when an error occurs while retrieving or executing the TwiML from `sms_url`.
:param sms_fallback_method: The HTTP method we should use to call `sms_fallback_url`. Can be: `GET` or `POST`.
:param sms_status_callback: The URL we should call using a POST method to send status information about SMS messages sent by the application.
:param message_status_callback: The URL we should call using a POST method to send message status information to your application.
:param friendly_name: A descriptive string that you create to describe the new application. It can be up to 64 characters long.
:param public_application_connect_enabled: Whether to allow other Twilio accounts to dial this applicaton using Dial verb. Can be: `true` or `false`.

:returns: The created ApplicationInstance
r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Nr   r   )	r   r   r   r   r=   create_asyncr   r   r3   r   s                       r7   r   ApplicationList.create_async  sw    T yykI | #$6	
 &'< !/ '(> &y'B'B*( ' Z !"2 $%8 $%8  ()@!" #$ 293N3N64%
0 ))^-PQR"E.22tyytW 3 
 
 #MM7}0M
 	
	
s   B:C%<C#='C%Nlimit	page_sizec                     U R                   R                  X#5      nU R                  XS   S9nU R                   R                  XTS   5      $ )aY  
Streams ApplicationInstance 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 friendly_name: The string that identifies the Application resources to read.
:param limit: Upper limit for the number of records to return. stream()
              guarantees to never return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, stream() will attempt to read the
                  limit with the most efficient page size, i.e. min(limit, 1000)

:returns: Generator that will yield up to limit results
r   r   r   r   )r=   read_limitspagestreamr5   r   r   r   limitsr   s         r7   r   ApplicationList.stream  sF    , **5<yy}{@SyT}}##D/::r9   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)ah  
Asynchronously streams ApplicationInstance 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 friendly_name: The string that identifies the Application resources to read.
: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   )r=   r   
page_asyncstream_asyncr   s         r7   r   ApplicationList.stream_async  s[     , **5<__'+3F % 
 
 }}))$w@@	
s   1AA#Ac                 6    [        U R                  UUUS95      $ )a  
Lists ApplicationInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str friendly_name: The string that identifies the Application resources to read.
:param limit: Upper limit for the number of records to return. list() guarantees
              never to return more than limit.  Default is no limit
:param page_size: Number of records to fetch per request, when not set will use
                  the default value of 50 records.  If no page_size is defined
                  but a limit is defined, list() will attempt to read the limit
                  with the most efficient page size, i.e. min(limit, 1000)

:returns: list that will contain up to limit results
r   r   r   )listr   )r5   r   r   r   s       r7   r   ApplicationList.list#  s+    * KK+#  
 	
r9   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 ApplicationInstance records from the API as a list.
Unlike stream(), this operation is eager and will load `limit` records into
memory before returning.

:param str friendly_name: The string that identifies the Application resources to read.
: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   )r5   r   r   r   records        r7   
list_asyncApplicationList.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                  XpR                  5      $ )a  
Retrieve a single page of ApplicationInstance records from the API.
Request is executed immediately

:param friendly_name: The string that identifies the Application resources to read.
: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 ApplicationInstance
r   	PageTokenr   PageSizer   r   r   r   r   r   r'   paramsr   )r   r   r=   r   r   r   r3   r5   r   r   r   r   r   r   responses           r7   r   ApplicationList.page^  s~    $ yy -'#%	
 ))^-PQR.==%%dii & 
 t}}hGGr9   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                  XpR                  5      $  N$7f)	a  
Asynchronously retrieve a single page of ApplicationInstance records from the API.
Request is executed immediately

:param friendly_name: The string that identifies the Application resources to read.
: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 ApplicationInstance
r   r   r   r   r   r   r   N)r   r   r=   r   r   r   r3   r   s           r7   r   ApplicationList.page_async  s     $ yy -'#%	
 ))^-PQR.11dii 2 
 
 t}}hGG
s   A!B
#B$%B

target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   X R
                  5      $ )z
Retrieve a specific page of ApplicationInstance records from the API.
Request is executed immediately

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

:returns: Page of ApplicationInstance
r   )r=   domaintwiliorequestr   r3   r5   r   r   s      r7   get_pageApplicationList.get_page  s;     ==''..66ujIt}}hGGr9   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   X R
                  5      $  N$7f)z
Asynchronously retrieve a specific page of ApplicationInstance records from the API.
Request is executed immediately

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

:returns: Page of ApplicationInstance
r   N)r=   r   r   request_asyncr   r3   r   s      r7   get_page_asyncApplicationList.get_page_async  sG      --44BB5*UUt}}hGG Vs   4AA%Ar   c                 F    [        U R                  U R                  S   US9$ z
Constructs a ApplicationContext

:param sid: The Twilio-provided string that uniquely identifies the Application resource to update.
r   r.   r<   r=   r3   r5   r   s     r7   r1   ApplicationList.get  %     "MMt~~m'D#
 	
r9   c                 F    [        U R                  U R                  S   US9$ r   r   r   s     r7   __call__ApplicationList.__call__  r   r9   c                     g)r]   z"<Twilio.Api.V2010.ApplicationList>r   r>   s    r7   rp   ApplicationList.__repr__  r   r9   r   )#rr   rs   rt   ru   r   rw   r0   r   rz   r   r{   ry   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r<   r1   r  rp   r|   r}   r~   s   @r7   r   r   9  sH   Y Yc Y$ +1,,(.+1<<174:LL.4ll5;\\6<ll&,ll)//5||28,,28,,6<ll,2LLBH,,#N
3;'N
 f%N
 CK(	N

 "#v+.N
  %S&[1N
 sF{+N
 !&c6k 2N
 !&dFl 3N
 sF{#N
 #v+&N
  V,N
 #3;/N
 #3;/N
 "'sF{!3N
  S&[)!N
" -2$,,?#N
$ 
%N
d +1,,(.+1<<174:LL.4ll5;\\6<ll&,ll)//5||28,,28,,6<ll,2LLBH,,#N
3;'N
 f%N
 CK(	N

 "#v+.N
  %S&[1N
 sF{+N
 !&c6k 2N
 !&dFl 3N
 sF{#N
 #v+&N
  V,N
 #3;/N
 #3;/N
 "'sF{!3N
  S&[)!N
" -2$,,?#N
$ 
%N
d -3LL##'	;S&[); }; C=	;
 
%	&;: -3LL##'	AS&[)A }A C=	A
 
*	+A> -3LL##'	
S&[)
 }
 C=	

 
!	"
> -3LL##'	
S&[)
 }
 C=	

 
!	"
@ -3LL)/*0,,(."HS&[)"H #v+&"H 3;'	"H
 f%"H 
"HL -3LL)/*0,,(."HS&[)"H #v+&"H 3;'	"H
 f%"H 
"HH
H3 
H? 
H
Hs 
H 
H
s 
1 

C 
$6 
4# 4 4r9   r   N)rv   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   r<   r   r   r   r9   r7   <module>r     sj     L L L 6 6 8 : 2 ' !}K* }K@HJ HJV4d 4*_4l _4r9   