
    d{i                         d Z ddlmZmZmZmZmZmZmZ ddl	m
Z
 ddlmZ ddlmZ ddlmZ ddlmZ ddlmZ 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 - Numbers
    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.
    )AnyDictListOptionalUnionIteratorAsyncIterator)values)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec                        e Zd Z G d de      Z G d de      Z G d de      Z	 	 ddedee	e
f   d	ee	   f fd
Zedd       ZddZddZdefdZdefdZde	fdZ xZS )ApplicationInstancec                   ,    e Zd ZdZdeeef   fdZd Zy)5ApplicationInstance.CreateShortCodeApplicationRequest
        :ivar friendly_name: The friendly name for the short code application.
        :ivar iso_country: The ISO country code.
        :ivar business_information:
        :ivar setup:
        payloadc                     |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        y Nfriendly_nameiso_countrybusiness_informationsetupgetr   r   r   r   selfr   s     `/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/numbers/v2/application.py__init__z>ApplicationInstance.CreateShortCodeApplicationRequest.__init__#   P    07O0LD.5kk-.HD 23 %
 G$ J    c                     | j                   | j                  | j                  | j                  j                         nd | j                  | j                  j                         dS d dS N)r   r   r   r   r   r   r   to_dictr   r    s    r!   r(   z=ApplicationInstance.CreateShortCodeApplicationRequest.to_dict.   m    !%!3!3#// 00< --557151G++-	 	 NR	 	r$   N	__name__
__module____qualname____doc__r   strr   r"   r(    r$   r!   !CreateShortCodeApplicationRequestr           			%DcN 		%
	r$   r2   c                   ,    e Zd ZdZdeeef   fdZd Zy)HApplicationInstance.CreateShortCodeApplicationRequestBusinessInformationu
        :ivar customer_facing_profile: The Compliance Profile SID for the customer-facing business profile.
        r   c                 0    |j                  d      | _        y Ncustomer_facing_profiler   r9   r   s     r!   r"   zQApplicationInstance.CreateShortCodeApplicationRequestBusinessInformation.__init__?       :A++);D(r$   c                     d| j                   iS r8   r9   r)   s    r!   r(   zPApplicationInstance.CreateShortCodeApplicationRequestBusinessInformation.to_dictE       )4+G+G r$   Nr+   r1   r$   r!   4CreateShortCodeApplicationRequestBusinessInformationr5   :        		DcN 		r$   r?   c                   ,    e Zd ZdZdeeef   fdZd Zy):ApplicationInstance.CreateShortCodeApplicationRequestSetup&
        :ivar charges_apply:
        r   c                 0    |j                  d      | _        y Ncharges_applyr   rF   r   s     r!   r"   zCApplicationInstance.CreateShortCodeApplicationRequestSetup.__init__O       18_1MDr$   c                     d| j                   iS rE   rF   r)   s    r!   r(   zBApplicationInstance.CreateShortCodeApplicationRequestSetup.to_dictS       !3!3 r$   Nr+   r1   r$   r!   &CreateShortCodeApplicationRequestSetuprB   J   "    		NDcN 	N	r$   rL   versionr   sidc                 h   t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        d|xs | j                  i| _	        d | _
        y )NrO   
bundle_sidapplication_requirements_sidr   r   state)superr"   r   rO   rQ   rR   r   r   rS   	_solution_context)r    rN   r   rO   	__class__s       r!   r"   zApplicationInstance.__init__a   s     	!")++e"4)0\)B;B;;*<
) -4KK,H*1++m*D$+KK$8
 3?$((
 7;r$   returnc                     | j                   )t        | j                  | 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
        rO   rO   )rV   ApplicationContext_versionrU   r)   s    r!   _proxyzApplicationInstance._proxyt   s9     == .NN5)DM }}r$   c                 6    | j                   j                         S )c
        Fetch the ApplicationInstance


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


        :returns: The fetched ApplicationInstance
        N)r]   fetch_asyncr)   s    r!   rc   zApplicationInstance.fetch_async   s!      [[,,....   '%'c                 6    | j                   j                         S )z
        Fetch the ApplicationInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r]   fetch_with_http_infor)   s    r!   rf   z(ApplicationInstance.fetch_with_http_info   s     {{//11r$   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the ApplicationInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r]   fetch_with_http_info_asyncr)   s    r!   rh   z.ApplicationInstance.fetch_with_http_info_async   s!      [[;;====rd   c                     dj                  d | j                  j                         D              }dj                  |      S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c              3   F   K   | ]  \  }}d j                  ||        ywz{}={}Nformat.0kvs      r!   	<genexpr>z/ApplicationInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z*<Twilio.Numbers.V2.ApplicationInstance {}>joinrU   itemsro   r    contexts     r!   __repr__zApplicationInstance.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr$   )N)rX   r[   )rX   r   )r,   r-   r.   objectr2   r?   rL   r   r   r0   r   r   r"   propertyr]   r`   rc   r   rf   rh   r|   __classcell__rW   s   @r!   r   r      s    F >v    OS;;)-c3h;>Fsm;&  #/2k 2>+ >L# Lr$   r   c                        e Zd Z G d de      Z G d de      Z G d de      Zdedef fd	Z	d
e
fdZd
efdZd
efdZd
e
fdZd
efdZd
efdZd
efdZ xZS )r[   c                   ,    e Zd ZdZdeeef   fdZd Zy)4ApplicationContext.CreateShortCodeApplicationRequestr   r   c                     |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        y r   r   r   s     r!   r"   z=ApplicationContext.CreateShortCodeApplicationRequest.__init__   r#   r$   c                     | j                   | j                  | j                  | j                  j                         nd | j                  | j                  j                         dS d dS r&   r'   r)   s    r!   r(   z<ApplicationContext.CreateShortCodeApplicationRequest.to_dict   r*   r$   Nr+   r1   r$   r!   r2   r      r3   r$   r2   c                   ,    e Zd ZdZdeeef   fdZd Zy)GApplicationContext.CreateShortCodeApplicationRequestBusinessInformationr6   r   c                 0    |j                  d      | _        y r8   r:   r   s     r!   r"   zPApplicationContext.CreateShortCodeApplicationRequestBusinessInformation.__init__   r;   r$   c                     d| j                   iS r8   r=   r)   s    r!   r(   zOApplicationContext.CreateShortCodeApplicationRequestBusinessInformation.to_dict   r>   r$   Nr+   r1   r$   r!   r?   r      r@   r$   r?   c                   ,    e Zd ZdZdeeef   fdZd Zy)9ApplicationContext.CreateShortCodeApplicationRequestSetuprC   r   c                 0    |j                  d      | _        y rE   rG   r   s     r!   r"   zBApplicationContext.CreateShortCodeApplicationRequestSetup.__init__   rH   r$   c                     d| j                   iS rE   rJ   r)   s    r!   r(   zAApplicationContext.CreateShortCodeApplicationRequestSetup.to_dict   rK   r$   Nr+   r1   r$   r!   rL   r      rM   r$   rL   rN   rO   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the ApplicationContext

        :param version: Version that contains the resource
        :param sid: The unique string that identifies the Short Code Application resource.
        rO   z/ShortCodes/Applications/{sid}Nr1   )rT   r"   rU   ro   _uri)r    rN   rO   rW   s      r!   r"   zApplicationContext.__init__   s@     	! 3
 <4;;MdnnM	r$   rX   c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptGETmethoduriheaders)r
   ofr\   fetch_with_response_infor   r    r   s     r!   _fetchzApplicationContext._fetch   sB     ))B-.}}55dii 6 
 	
r$   c                 t    | j                         \  }}}t        | j                  || j                  d         S )r_   rO   rZ   )r   r   r\   rU   r    r   _s      r!   r`   zApplicationContext.fetch  s8     A"MMu%
 	
r$   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the ApplicationInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        rO   rZ   datastatus_coder   )r   r   r\   rU   r   r    r   r   r   instances        r!   rf   z'ApplicationContext.fetch_with_http_info  sG     )-%g&MMu%

 k7SSr$   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

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


        :returns: ApiResponse with instance, status code, and headers
        NrO   rZ   r   )r   r   r\   rU   r   r   s        r!   rh   z-ApplicationContext.fetch_with_http_info_asyncJ  sW      /3.?.?.A(A%g&MMu%

 k7SS )Bs   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )rj   rk   c              3   F   K   | ]  \  }}d j                  ||        ywrm   rn   rp   s      r!   rt   z.ApplicationContext.__repr__.<locals>.<genexpr>_  ru   rv   z)<Twilio.Numbers.V2.ApplicationContext {}>rw   rz   s     r!   r|   zApplicationContext.__repr__Y  s6     ((SDNN<P<P<RSS:AA'JJr$   )r,   r-   r.   r}   r2   r?   rL   r   r0   r"   tupler   r   r`   r   rf   r   rc   rh   r|   r   r   s   @r!   r[   r[      s    F >v   N Nc N
 
 
* 
Tk T
E 
 
#6 
T+ TK# Kr$   r[   c                   2    e Zd Zdeeef   defdZdefdZy)ApplicationPager   rX   c                 .    t        | j                  |      S )zq
        Build an instance of ApplicationInstance

        :param payload: Payload response from the API
        )r   r\   r   s     r!   get_instancezApplicationPage.get_instancee  s     #4=='::r$   c                      y)rj   z#<Twilio.Numbers.V2.ApplicationPage>r1   r)   s    r!   r|   zApplicationPage.__repr__m       5r$   N)	r,   r-   r.   r   r0   r   r   r   r|   r1   r$   r!   r   r   c  s*    ;DcN ;7J ;5# 5r$   r   c            	       B    e Zd Z G d de      Z G d de      Z G d de      Zdef 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d
efdZd	ed
efdZ	 	 d(dee   dee   d
ee   fdZ	 	 d(dee   dee   d
ee   fdZ	 	 d(dee   dee   d
e	fdZ	 	 d(dee   dee   d
e	fdZ	 	 d(dee   dee   d
ee   fdZ	 	 d(dee   dee   d
ee   fdZ	 	 d(dee   dee   d
efdZ	 	 d(dee   dee   d
efdZej@                  ej@                  ej@                  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@                  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@                  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@                  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 ))ApplicationListc                   ,    e Zd ZdZdeeef   fdZd Zy)1ApplicationList.CreateShortCodeApplicationRequestr   r   c                     |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        y r   r   r   s     r!   r"   z:ApplicationList.CreateShortCodeApplicationRequest.__init__  r#   r$   c                     | j                   | j                  | j                  | j                  j                         nd | j                  | j                  j                         dS d dS r&   r'   r)   s    r!   r(   z9ApplicationList.CreateShortCodeApplicationRequest.to_dict  r*   r$   Nr+   r1   r$   r!   r2   r   x  r3   r$   r2   c                   ,    e Zd ZdZdeeef   fdZd Zy)DApplicationList.CreateShortCodeApplicationRequestBusinessInformationr6   r   c                 0    |j                  d      | _        y r8   r:   r   s     r!   r"   zMApplicationList.CreateShortCodeApplicationRequestBusinessInformation.__init__  r;   r$   c                     d| j                   iS r8   r=   r)   s    r!   r(   zLApplicationList.CreateShortCodeApplicationRequestBusinessInformation.to_dict  r>   r$   Nr+   r1   r$   r!   r?   r     r@   r$   r?   c                   ,    e Zd ZdZdeeef   fdZd Zy)6ApplicationList.CreateShortCodeApplicationRequestSetuprC   r   c                 0    |j                  d      | _        y rE   rG   r   s     r!   r"   z?ApplicationList.CreateShortCodeApplicationRequestSetup.__init__  rH   r$   c                     d| j                   iS rE   rJ   r)   s    r!   r(   z>ApplicationList.CreateShortCodeApplicationRequestSetup.to_dict  rK   r$   Nr+   r1   r$   r!   rL   r     rM   r$   rL   rN   c                 2    t         |   |       d| _        y)zm
        Initialize the ApplicationList

        :param version: Version that contains the resource

        z/ShortCodes/ApplicationsN)rT   r"   r   )r    rN   rW   s     r!   r"   zApplicationList.__init__  s     	!.	r$   %create_short_code_application_requestrX   c                     |j                         }t        j                  ddi      }d|d<   d|d<   | j                  j	                  d| j
                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        Content-Type!application/x-www-form-urlencodedr   r   POSTr   r   r   r   )r(   r
   r   r\   create_with_response_infor   r    r   r   r   s       r!   _createzApplicationList._create  sc     5<<>))^-PQR"4.}}66tyytW 7 
 	
r$   c                 Z    | j                  |      \  }}}t        | j                  |      S )z
        Create the ApplicationInstance

        :param create_short_code_application_request:

        :returns: The created ApplicationInstance
        r   )r   r   r\   r    r   r   r   s       r!   createzApplicationList.create  s3     2W % 
A #4=='::r$   c                 v    | j                  |      \  }}}t        | j                  |      }t        |||      S )z
        Create the ApplicationInstance and return response metadata

        :param create_short_code_application_request:

        :returns: ApiResponse with instance, status code, and headers
        r   r   )r   r   r\   r   r    r   r   r   r   r   s         r!   create_with_http_infoz%ApplicationList.create_with_http_info  sB     )-2W )5 )
%g 't}}g>k7SSr$   c                    K   |j                         }t        j                  ddi      }d|d<   d|d<   | j                  j	                  d| j
                  ||       d{   S 7 w)z
        Internal async helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   N)r(   r
   r   r\   create_with_response_info_asyncr   r   s       r!   _create_asynczApplicationList._create_async  sr      5<<>))^-PQR"4.]]BBtyytW C 
 
 	
 
s   AA' A%!A'c                 v   K   | j                  |       d{   \  }}}t        | j                  |      S 7 w)z
        Asynchronously create the ApplicationInstance

        :param create_short_code_application_request:

        :returns: The created ApplicationInstance
        r   N)r   r   r\   r   s       r!   create_asynczApplicationList.create_async	  sC      #002W 1 
 
A #4=='::
s   979c                    K   | j                  |       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)z
        Asynchronously create the ApplicationInstance and return response metadata

        :param create_short_code_application_request:

        :returns: ApiResponse with instance, status code, and headers
        r   Nr   )r   r   r\   r   r   s         r!   create_with_http_info_asyncz+ApplicationList.create_with_http_info_async  sS      /3.@.@2W /A /
 )
%g 't}}g>k7SS	)
s   AA-Alimit	page_sizec                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )aa  
        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 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\   read_limitspagestreamr    r   r   limitsr   s        r!   r   zApplicationList.stream(  sJ    ( **5)<yy6+#6y7}}##D&/::r$   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)ap  
        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 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        r!   r   zApplicationList.stream_asyncA  sW     ( **5)<__vk/B_CC}}))$w@@ Ds   5AA$Ac                     | j                   j                  ||      }| j                  |d         }| j                   j                  |j                  |d         }||j
                  |j                  fS )a  
        Streams ApplicationInstance and returns headers from first page


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

        :returns: tuple of (generator, status_code, headers) where generator yields instances
        r   r   r   )r\   r   page_with_http_infor   r   r   r   r    r   r   r   page_response	generators         r!   stream_with_http_infoz%ApplicationList.stream_with_http_infoZ  sk    $ **5)<006+;N0OMM((););VG_M	=44m6K6KLLr$   c                   K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  |j                  |d         }||j
                  |j                  fS 7 Fw)a  
        Asynchronously streams ApplicationInstance and returns headers from first page


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

        :returns: tuple of (generator, status_code, headers) where generator yields instances
        r   r   Nr   )r\   r   page_with_http_info_asyncr   r   r   r   r   s         r!   stream_with_http_info_asyncz+ApplicationList.stream_with_http_info_asyncr  s     $ **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   5B A>AB 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 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   )listr   )r    r   r   s      r!   r   zApplicationList.list  s(    & KK#  
 	
r$   c                 z   K   | j                  ||       d{   2 cg c3 d{   }|7 7 	6 c}S c c}w w)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 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   )r    r   r   records       r!   
list_asynczApplicationList.list_async  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists ApplicationInstance and returns headers from first page


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

        :returns: ApiResponse with list of instances, status code, and headers
        r   r   )r   r   r   )r    r   r   r   r   r   ry   s          r!   list_with_http_infoz#ApplicationList.list_with_http_info  sA    $ +/*D*D +E +
'	; Y;PPr$   c                    K   | j                  ||       d{   \  }}}|2 cg c3 d{   }|7 7 	6 nc c}w }}t        |||      S w)a  
        Asynchronously lists ApplicationInstance and returns headers from first page


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

        :returns: ApiResponse with list of instances, status code, and headers
        r   Nr   )r   r   )r    r   r   r   r   r   r   ry   s           r!   list_with_http_info_asyncz)ApplicationList.list_with_http_info_async  sf     $ 150P0P 1Q 1
 +
'	; -666&	+
 7666;PPs4   A4A:86
8:A8:A
page_tokenpage_numberc                     t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      }t        | j                  |      S )a{  
        Retrieve a single page of ApplicationInstance records from the API.
        Request is executed immediately

        :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
        	PageTokenr   PageSizer   r   r   r   r   r   r   paramsr   )r
   r   r\   r   r   r   r    r   r   r   r   r   responses          r!   r   zApplicationList.page  sy      yy'#%
 ))^-PQR.==%%diig & 
 t}}h77r$   c                   K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  |      S 7 w)	a  
        Asynchronously retrieve a single page of ApplicationInstance records from the API.
        Request is executed immediately

        :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   r   s          r!   r   zApplicationList.page_async  s       yy'#%
 ))^-PQR.11diig 2 
 
 t}}h77
s   A"B$A?%Bc                    t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}t        | j                  |      }	t        |	||      S )	a]  
        Retrieve a single page with response metadata


        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: ApiResponse with ApplicationPage, status code, and headers
        r   r   r   r   r   r   r   r   )r
   r   r\   page_with_response_infor   r   r   
r    r   r   r   r   r   r  r   response_headersr   s
             r!   r   z#ApplicationList.page_with_http_info5  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ t}}h7+GWXXr$   c                 *  K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}t        | j                  |      }	t        |	||	      S 7 ,w)
al  
        Asynchronously retrieve a single page with response metadata


        :param page_token: PageToken provided by the API
        :param page_number: Page Number, this value is simply for client state
        :param page_size: Number of records to return, defaults to 50

        :returns: ApiResponse with ApplicationPage, status code, and headers
        r   r   r   r   r   r   r   Nr   )r
   r   r\   page_with_response_info_asyncr   r   r   r  s
             r!   r   z)ApplicationList.page_with_http_info_asyncW  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 t}}h7+GWXXs   A"B$B%-B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | 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   r    r	  r  s      r!   get_pagezApplicationList.get_page{  s7     ==''..66ujIt}}h77r$   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | 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   r  s      r!   get_page_asynczApplicationList.get_page_async  sD      --44BB5*UUt}}h77 Vs   4AAArO   c                 0    t        | j                  |      S z
        Constructs a ApplicationContext

        :param sid: The unique string that identifies the Short Code Application resource.
        rZ   r[   r\   r    rO   s     r!   r   zApplicationList.get       "$--S99r$   c                 0    t        | j                  |      S r  r  r  s     r!   __call__zApplicationList.__call__  r  r$   c                      y)rj   z#<Twilio.Numbers.V2.ApplicationList>r1   r)   s    r!   r|   zApplicationList.__repr__  r   r$   )NN)/r,   r-   r.   r}   r2   r?   rL   r   r"   r   r   r   r   r   r   r   r   r   r   intr   r   r	   r   r   r   r   r   r   r   r   r
   unsetr   r0   r   r   r   r   r   r  r  r[   r   r  r|   r   r   s   @r!   r   r   v  sG   F >v   	/ 	/
5V
	
*;5V;	;T5VT	T 
5V
	
*;5V;	;T5VT	T$  $#';}; C=; 
%	&	;6  $#'A}A C=A 
*	+	A6  $#'M}M C=M 
	M4  $#'M}M C=M 
	M8  $#'
}
 C=
 
!	"	
8  $#'
}
 C=
 
!	"	
:  $#'Q}Q C=Q 
	Q6  $#'Q}Q C=Q 
	Q6 *0*0,,(.	8#v+&8 3;'8 f%	8
 
8F *0*0,,(.	8#v+&8 3;'8 f%	8
 
8F *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
83 
8? 
8
8s 
8 
8:s :1 ::C :$6 :5# 5r$   r   N)r/   typingr   r   r   r   r   r   r	   twilio.baser
   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r[   r   r   r1   r$   r!   <module>r%     sh    M L L  0 8 : 2 ' !UL* ULpoK oKd5d 5&s5l s5r$   