
    i?1i                         d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
mZmZ 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 - 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values)InstanceContext)InstanceResource)ListResource)Version)Pagec            #       *    e Zd ZdZ	 d dedeeef   dedee   f fdZ	e
d!d       Zdefd	Zdefd
Zd"dZd"dZej$                  ej$                  ej$                  ej$                  ej$                  ej$                  ej$                  ej$                  ej$                  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eef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   dd f"dZej$                  ej$                  ej$                  ej$                  ej$                  ej$                  ej$                  ej$                  ej$                  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eef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   dd f"dZdefdZ xZS )#ApplicationInstancea	  
    :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                 J   t         |   |       |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _        |j                  d      | _	        |j                  d      | _
        |j                  d      | _        |j                  d      | _        |j                  d	      | _        |j                  d
      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        ||xs | j                  d| _        d | _        y )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        s/home/www/therecruiter.miabetepe.com/venv/lib/python3.12/site-packages/twilio/rest/api/v2010/account/application.pyr.   zApplicationInstance.__init__4   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                     | j                   7t        | j                  | j                  d   | j                  d         | _         | j                   S )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,   )r2   ApplicationContext_versionr1   r3   s    r5   _proxyzApplicationInstance._proxye   sE     == . NN=9NN5)DM
 }}r6   c                 6    | j                   j                         S )n
        Deletes the ApplicationInstance


        :returns: True if delete succeeds, False otherwise
        )r<   deleter;   s    r5   r?   zApplicationInstance.deleteu   s     {{!!##r6   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine that deletes the ApplicationInstance


        :returns: True if delete succeeds, False otherwise
        N)r<   delete_asyncr;   s    r5   rB   z ApplicationInstance.delete_async~   s!      [[--////   '%'c                 6    | j                   j                         S )c
        Fetch the ApplicationInstance


        :returns: The fetched ApplicationInstance
        )r<   fetchr;   s    r5   rF   zApplicationInstance.fetch   s     {{  ""r6   c                 R   K   | j                   j                          d{   S 7 w)}
        Asynchronous coroutine to fetch the ApplicationInstance


        :returns: The fetched ApplicationInstance
        N)r<   fetch_asyncr;   s    r5   rI   zApplicationInstance.fetch_async   s!      [[,,....rC   r   r   r*   r)   r(   r'   r#   r$   r&   r"   r    r   r   r!   r   r+   c                 X    | j                   j                  |||||||||	|
||||||      S )	  
        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r3   r   r   r*   r)   r(   r'   r#   r$   r&   r"   r    r   r   r!   r   r+   s                    r5   rM   zApplicationInstance.update   sQ    R {{!!'#%1"7+#9#9!- 3 3$;/Q! " 
 	
r6   c                 t   K   | j                   j                  |||||||||	|
||||||       d{   S 7 w)	  
        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
        rL   N)r<   update_asyncrN   s                    r5   rQ   z ApplicationInstance.update_async   s_     R [[--'#%1"7+#9#9!- 3 3$;/Q! . 
 
 	
 
s   /868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      r5   	<genexpr>z/ApplicationInstance.__repr__.<locals>.<genexpr>       SDAq7>>!Q/S   !z)<Twilio.Api.V2010.ApplicationInstance {}>joinr1   itemsrX   r3   contexts     r5   __repr__zApplicationInstance.__repr__  s6     ((SDNN<P<P<RSS:AA'JJr6   )N)r7   r9   )r7   r   )__name__
__module____qualname____doc__r   r   strr   r   r.   propertyr<   boolr?   rB   rF   rI   r   unsetr   objectrM   rQ   re   __classcell__r4   s   @r5   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r6   r   c            #           e Zd Zdededef fdZdefdZdefdZde	fdZ
de	fd	Zej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  ej                  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eef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deee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                  ej                  ej                  ej                  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eef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deeef   deee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fdZ xZS )r9   r   r   r   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)ao  
        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-   r.   r1   rX   _uri)r3   r   r   r   r4   s       r5   r.   zApplicationContext.__init__  sG     	! '
 MELL 
nn
	r6   r7   c                 P    | j                   j                  d| j                        S )r>   DELETEmethodr%   )r:   r?   ru   r;   s    r5   r?   zApplicationContext.delete/  s*     }}##		 $ 
 	
r6   c                 l   K   | j                   j                  d| j                         d{   S 7 w)rA   rw   rx   N)r:   rB   ru   r;   s    r5   rB   zApplicationContext.delete_async;  s8      ]]//		 0 
 
 	
 
s   +424c                     | j                   j                  d| j                        }t        | j                   || j                  d   | j                  d         S )rE   GETrx   r   r   r,   )r:   rF   ru   r   r1   r3   r   s     r5   rF   zApplicationContext.fetchG  sX     --%%		 & 

 #MM}5u%	
 	
r6   c                    K   | j                   j                  d| j                         d{   }t        | j                   || j                  d   | j                  d         S 7 7w)rH   r|   rx   Nr   r   r,   )r:   rI   ru   r   r1   r}   s     r5   rI   zApplicationContext.fetch_async[  sf      11		 2 
 

 #MM}5u%	
 	

s   +A'A%8A'r   r   r*   r)   r(   r'   r#   r$   r&   r"   r    r   r   r!   r   r+   c                 B   t        j                  i d|d|d|d|d|d|d|d|d	|	d
|
d|d|d|d|d|d|      }| j                  j                  d| j                  |      }t        | j                  || j                  d   | j                  d         S )rK   FriendlyName
ApiVersionVoiceUrlVoiceMethodVoiceFallbackUrlVoiceFallbackMethodStatusCallbackStatusCallbackMethodVoiceCallerIdLookupSmsUrl	SmsMethodSmsFallbackUrlSmsFallbackMethodSmsStatusCallbackMessageStatusCallbackPublicApplicationConnectEnabledPOSTry   r%   datar   r   r,   )r   ofr:   rM   ru   r   r1   r3   r   r   r*   r)   r(   r'   r#   r$   r&   r"   r    r   r   r!   r   r+   r   r   s                      r5   rM   zApplicationContext.updateo  s6   R yyk I |	
 #$6 &'< !/ '(> &'= ' Z !"2 $%8 $%8 ()@  23U!
* --&&		 ' 
 #MM}5u%	
 	
r6   c                 ^  K   t        j                  i d|d|d|d|d|d|d|d|d	|	d
|
d|d|d|d|d|d|      }| j                  j                  d| j                  |       d{   }t        | j                  || j                  d   | j                  d         S 7 7w)rP   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   r   Nr   r   r,   )r   r   r:   rQ   ru   r   r1   r   s                      r5   rQ   zApplicationContext.update_async  sD    R yyk I |	
 #$6 &'< !/ '(> &'= ' Z !"2 $%8 $%8 ()@  23U!
* 22		 3 
 
 #MM}5u%	
 	

s   A1B-3B+48B-c                     dj                  d | j                  j                         D              }dj                  |      S )rS   rT   c              3   F   K   | ]  \  }}d j                  ||        ywrV   rW   rY   s      r5   r]   z.ApplicationContext.__repr__.<locals>.<genexpr>  r^   r_   z(<Twilio.Api.V2010.ApplicationContext {}>r`   rc   s     r5   re   zApplicationContext.__repr__  s6     ((SDNN<P<P<RSS9@@IIr6   )rf   rg   rh   r   rj   r.   rl   r?   rB   r   rF   rI   r   rm   r   rn   rM   rQ   re   ro   rp   s   @r5   r9   r9     s   
 
c 
 
&

 



D 


* 
(
#6 
, -3LL*0,,(.+1<<174:LL.4ll5;\\6<ll&,ll)//5||28,,28,,6<llBH,,#I
S&[)I
 3;'I
 f%	I

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

 CK(I
 "#v+.I
  %S&[1I
 sF{+I
 !&c6k 2I
 !&dFl 3I
 sF{#I
 #v+&I
  V,I
 #3;/I
 #3;/I
  "'sF{!3!I
" -2$,,?#I
$ 
%I
VJ# Jr6   r9   c                   2    e Zd Zdeeef   defdZdefdZy)ApplicationPager   r7   c                 L    t        | j                  || j                  d         S )zq
        Build an instance of ApplicationInstance

        :param payload: Payload response from the API
        r   r   )r   r:   r1   r}   s     r5   get_instancezApplicationPage.get_instance  s%     #MM7}0M
 	
r6   c                      y)rS   z"<Twilio.Api.V2010.ApplicationPage>rs   r;   s    r5   re   zApplicationPage.__repr__       4r6   N)	rf   rg   rh   r   rj   r   r   r   re   rs   r6   r5   r   r     s*    
DcN 
7J 
4# 4r6   r   c            #           e Zd Zde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                  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ee	f   deee	f   deee	f   d	eee	f   d
eee	f   dee
e	f   deee	f   deee	f   deee	f   deee	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                  ej                  ej                  ej                  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ee	f   deee	f   deee	f   d	eee	f   d
eee	f   dee
e	f   deee	f   deee	f   deee	f   deee	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                  ddfdeee	f   dee   dee   dee   fdZej                  ddfdeee	f   dee   dee   dee   fdZej                  ddfdeee	f   dee   dee   dee   fdZej                  ddfdeee	f   dee   dee   dee   fdZej                  ej                  ej                  ej                  fdeee	f   deee	f   deee	f   deee	f   def
d Zej                  ej                  ej                  ej                  fdeee	f   deee	f   deee	f   deee	f   def
d!Zd"edefd#Zd"edefd$Zd%edefd&Zd%edefd'Zdefd(Z xZ S ))ApplicationListr   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)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.jsonNrs   rt   )r3   r   r   r4   s      r5   r.   zApplicationList.__init__$  sA     	! ;
 G?FFXX	r6   r   r*   r)   r(   r'   r#   r$   r&   r"   r    r   r   r!   r   r   r+   r7   c                 &   t        j                  i d|d|d|d|d|d|d|d|d	|	d
|
d|d|d|d|d|d|      }| j                  j                  d| j                  |      }t        | j                  || j                  d         S )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:   createru   r   r1   r3   r   r*   r)   r(   r'   r#   r$   r&   r"   r    r   r   r!   r   r   r+   r   r   s                      r5   r   zApplicationList.create4  s(   R yykI | #$6	
 &'< !/ '(> &'= ' Z !"2 $%8 $%8 ()@   23U!
* --&&		 ' 
 #MM7}0M
 	
r6   c                 B  K   t        j                  i d|d|d|d|d|d|d|d|d	|	d
|
d|d|d|d|d|d|      }| j                  j                  d| j                  |       d{   }t        | j                  || j                  d         S 7 )w)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   Nr   r   )r   r   r:   create_asyncru   r   r1   r   s                      r5   r   zApplicationList.create_async|  s6    R yykI | #$6	
 &'< !/ '(> &'= ' Z !"2 $%8 $%8 ()@   23U!
* 22		 3 
 
 #MM7}0M
 	

s   A1B3B4*BNlimit	page_sizec                     | j                   j                  ||      }| j                  ||d         }| j                   j                  ||d         S )a  
        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r3   r   r   r   limitsr   s         r5   r   zApplicationList.stream  sL    , **5)<yy}{@SyT}}##D&/::r6   c                    K   | j                   j                  ||      }| j                  ||d          d{   }| j                   j                  ||d         S 7 #w)a  
        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         r5   r   zApplicationList.stream_async  sb     , **5)<__'6+3F % 
 
 }}))$w@@	
s   6AA$Ac                 <    t        | j                  |||            S )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   )r3   r   r   r   s       r5   r   zApplicationList.list  s+    * KK+#  
 	
r6   c                 |   K   | j                  |||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)am  
        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   )r3   r   r   r   records        r5   
list_asynczApplicationList.list_async  sW     . '+&7&7+# '8 ' !
 
 !
 
 	
 
s0   </<731
37<37<
page_tokenpage_numberc                     t        j                  ||||d      }| j                  j                  d| j                  |      }t        | j                  || j                        S )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|   ry   r%   params)r   r   r:   r   ru   r   r1   r3   r   r   r   r   r   responses          r5   r   zApplicationList.page7  s[    $ yy -'#%	
 ==%%U		$%Ot}}hGGr6   c                    K   t        j                  ||||d      }| j                  j                  d| j                  |       d{   }t        | j                  || j                        S 7 %w)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   N)r   r   r:   r   ru   r   r1   r   s          r5   r   zApplicationList.page_asyncU  sp     $ yy -'#%	
 11dii 2 
 
 t}}hGG
s   AA0A.	&A0
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   || j
                        S )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   r1   r3   r   r   s      r5   get_pagezApplicationList.get_pageu  s=     ==''..66ujIt}}hGGr6   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   || j
                        S 7 %w)a
  
        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   r1   r   s      r5   get_page_asynczApplicationList.get_page_async  sJ      --44BB5*UUt}}hGG Vs   4AA&Ar   c                 L    t        | j                  | j                  d   |      S z
        Constructs a ApplicationContext

        :param sid: The Twilio-provided string that uniquely identifies the Application resource to update.
        r   r,   r9   r:   r1   r3   r   s     r5   r/   zApplicationList.get  %     "MMt~~m'D#
 	
r6   c                 L    t        | j                  | j                  d   |      S r   r   r   s     r5   __call__zApplicationList.__call__  r   r6   c                      y)rS   z"<Twilio.Api.V2010.ApplicationList>rs   r;   s    r5   re   zApplicationList.__repr__  r   r6   )!rf   rg   rh   r   rj   r.   r   rm   r   rn   rl   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   r9   r/   r   re   ro   rp   s   @r5   r   r   #  sC   Y Yc Y$ +1,,(.+1<<174:LL.4ll5;\\6<ll&,ll)//5||28,,28,,6<ll,2LLBH,,#F
3;'F
 f%F
 CK(	F

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

 "#v+.F
  %S&[1F
 sF{+F
 !&c6k 2F
 !&dFl 3F
 sF{#F
 #v+&F
  V,F
 #3;/F
 #3;/F
 "'sF{!3F
  S&[)!F
" -2$,,?#F
$ 
%F
T -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@ -3LL)/*0,,(.HS&[)H #v+&H 3;'	H
 f%H 
H@
H3 
H? 
H
Hs 
H 
H
s 
1 

C 
$6 
4# 4r6   r   N)ri   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r9   r   r   rs   r6   r5   <module>r      sg     L L L + 8 : 2 ' !~K* ~KBqJ qJh4d 4(D4l D4r6   