
    d{iՎ                         d Z ddlmZ ddlmZmZmZmZmZmZm	Z	 ddl
mZmZ 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 - Trunking
    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)ApiResponse)InstanceContext)InstanceResource)ListResource)Version)Pagec            
            e Zd Z G d de      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efdZdefdZddZddZdefdZdefdZdefdZ xZS )PhoneNumberInstancec                       e Zd ZdZdZdZdZy)&PhoneNumberInstance.AddressRequirementnoneanylocalforeignN)__name__
__module____qualname__NONEANYLOCALFOREIGN     h/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/trunking/v1/trunk/phone_number.pyAddressRequirementr      s    r#   r%   versionpayload	trunk_sidsidc                 &   t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |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      | _        |j                  d      | _        |j                  d      | _        ||xs | j                  d| _        d | _         y )Naccount_sidaddress_requirementsapi_versionbetacapabilitiesdate_createddate_updatedfriendly_namelinksphone_numberr)   sms_application_sidsms_fallback_methodsms_fallback_url
sms_methodsms_urlstatus_callbackstatus_callback_methodr(   urlvoice_application_sidvoice_caller_id_lookupvoice_fallback_methodvoice_fallback_urlvoice_method	voice_urlr(   r)   )!super__init__getr+   r,   r-   r.   r/   r   iso8601_datetimer0   r1   r2   r3   r4   r)   r5   r6   r7   r8   r9   r:   r;   r(   r<   r=   r>   r?   r@   rA   rB   	_solution_context)selfr&   r'   r(   r)   	__class__s        r$   rE   zPhoneNumberInstance.__init__?   s    	!*1++m*D KK./ 	! +2++m*D$+KK$7	+2;;~+F0;0L0LKK'1
 1<0L0LKK'1
 -4KK,H29++g2F
+2;;~+F")++e"429++>S2T 29++>S2T /6{{;M/N)0\)B&-kk)&<.5kk:K.L5<[[$6
# )0K(@")++e"44;KK@W4X"6=kk$7
# 5<KK@W4X"18=Q1R+2;;~+F(/K(@ #?$((
 7;r#   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: PhoneNumberContext for this PhoneNumberInstance
        r(   r)   rC   )rI   PhoneNumberContext_versionrH   rJ   s    r$   _proxyzPhoneNumberInstance._proxys   sE     == ...5NN5)DM
 }}r#   c                 6    | j                   j                         S zn
        Deletes the PhoneNumberInstance


        :returns: True if delete succeeds, False otherwise
        )rQ   deleterP   s    r$   rT   zPhoneNumberInstance.delete   s     {{!!##r#   c                 R   K   | j                   j                          d{   S 7 wz
        Asynchronous coroutine that deletes the PhoneNumberInstance


        :returns: True if delete succeeds, False otherwise
        N)rQ   delete_asyncrP   s    r$   rW   z PhoneNumberInstance.delete_async   s!      [[--////   '%'c                 6    | j                   j                         S )z
        Deletes the PhoneNumberInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        )rQ   delete_with_http_inforP   s    r$   rZ   z)PhoneNumberInstance.delete_with_http_info   s     {{0022r#   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the PhoneNumberInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)rQ   delete_with_http_info_asyncrP   s    r$   r\   z/PhoneNumberInstance.delete_with_http_info_async   s!      [[<<>>>>rX   c                 6    | j                   j                         S )c
        Fetch the PhoneNumberInstance


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


        :returns: The fetched PhoneNumberInstance
        N)rQ   fetch_asyncrP   s    r$   rb   zPhoneNumberInstance.fetch_async   s!      [[,,....rX   c                 6    | j                   j                         S )z
        Fetch the PhoneNumberInstance with HTTP info


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


        :returns: ApiResponse with instance, status code, and headers
        N)rQ   fetch_with_http_info_asyncrP   s    r$   rf   z.PhoneNumberInstance.fetch_with_http_info_async   s!      [[;;====rX   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/PhoneNumberInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z+<Twilio.Trunking.V1.PhoneNumberInstance {}>joinrH   itemsrm   rJ   contexts     r$   __repr__zPhoneNumberInstance.__repr__   s6     ((SDNN<P<P<RSS<CCGLLr#   )N)rL   rN   )rL   r   )r   r   r   objectr%   r   r   strr   r   rE   propertyrQ   boolrT   rW   r   rZ   r\   r_   rb   rd   rf   rz   __classcell__rK   s   @r$   r   r      s    V D "2;2; c3h2; 	2;
 c]2;h  $ $0D 03{ 3?; ?#/2k 2>+ >M# Mr#   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defd
Zde
fdZdefdZdefdZde
fdZdefdZdefdZde
fdZdefdZ xZS )rN   r&   r(   r)   c                 z    t         |   |       ||d| _         dj                  di | j                  | _        y)a1  
        Initialize the PhoneNumberContext

        :param version: Version that contains the resource
        :param trunk_sid: The SID of the Trunk from which to fetch the PhoneNumber resource.
        :param sid: The unique string that we created to identify the PhoneNumber resource to fetch.
        rC   z&/Trunks/{trunk_sid}/PhoneNumbers/{sid}Nr"   rD   rE   rH   rm   _uri)rJ   r&   r(   r)   rK   s       r$   rE   zPhoneNumberContext.__init__   sB     	! #
 D<CCUdnnU	r#   rL   c                 |    t        j                  i       }| j                  j                  d| j                  |      S )z
        Internal helper for delete operation

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


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

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


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

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptGETr   )r   r   rO   fetch_with_response_infor   r   s     r$   _fetchzPhoneNumberContext._fetch,  sB     ))B-.}}55dii 6 
 	
r#   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         S )r^   r(   r)   rC   )r   r   rO   rH   rJ   r'   r   s      r$   r_   zPhoneNumberContext.fetch<  sD     A"MMnn[1u%	
 	
r#   c                     | j                         \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S )z
        Fetch the PhoneNumberInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r(   r)   rC   r   )r   r   rO   rH   r   rJ   r'   r   r   instances        r$   rd   z'PhoneNumberContext.fetch_with_http_infoK  sS     )-%g&MMnn[1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   rO   fetch_with_response_info_asyncr   r   s     r$   _fetch_asynczPhoneNumberContext._fetch_async[  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d         S 7 ;w)ra   Nr(   r)   rC   )r   r   rO   rH   r   s      r$   rb   zPhoneNumberContext.fetch_asynck  sS      #//11A"MMnn[1u%	
 	
 2s   AA<Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d   | j                  d         }t	        |||      S 7 Iw)z
        Asynchronous coroutine to fetch the PhoneNumberInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr(   r)   rC   r   )r   r   rO   rH   r   r   s        r$   rf   z-PhoneNumberContext.fetch_with_http_info_asyncz  sc      /3.?.?.A(A%g&MMnn[1u%	
 k7SS )Bs   A"A A
A"c                     dj                  d | j                  j                         D              }dj                  |      S )rh   ri   c              3   F   K   | ]  \  }}d j                  ||        ywrk   rl   rn   s      r$   rr   z.PhoneNumberContext.__repr__.<locals>.<genexpr>  rs   rt   z*<Twilio.Trunking.V1.PhoneNumberContext {}>ru   rx   s     r$   rz   zPhoneNumberContext.__repr__  s6     ((SDNN<P<P<RSS;BB7KKr#   )r   r   r   r   r|   rE   tupler   r~   rT   r   rZ   r   rW   r\   r   r   r_   rd   r   rb   rf   rz   r   r   s   @r$   rN   rN      s    V VC Vc V"
 
 S{ S
U 
D S; S
 
 
* 
Tk T 
E 
 
#6 
T+ T L# Lr#   rN   c                   2    e Zd Zdeeef   defdZdefdZy)PhoneNumberPager'   rL   c                 L    t        | j                  || j                  d         S )zq
        Build an instance of PhoneNumberInstance

        :param payload: Payload response from the API
        r(   r(   )r   rO   rH   )rJ   r'   s     r$   get_instancezPhoneNumberPage.get_instance  s%     #MM7dnn[.I
 	
r#   c                      y)rh   z$<Twilio.Trunking.V1.PhoneNumberPage>r"   rP   s    r$   rz   zPhoneNumberPage.__repr__       6r#   N)	r   r   r   r   r|   r   r   r   rz   r"   r#   r$   r   r     s*    
DcN 
7J 
6# 6r#   r   c            	           e Zd Zde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 )$PhoneNumberListr&   r(   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the PhoneNumberList

        :param version: Version that contains the resource
        :param trunk_sid: The SID of the Trunk from which to read the PhoneNumber resources.

        r(   z /Trunks/{trunk_sid}/PhoneNumbersNr"   r   )rJ   r&   r(   rK   s      r$   rE   zPhoneNumberList.__init__  s@     	! 
 >6==OO	r#   phone_number_sidrL   c                     t        j                  d|i      }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)
        PhoneNumberSidContent-Type!application/x-www-form-urlencodedr   r   POSTr   r   r   r   )r   r   rO   create_with_response_infor   rJ   r   r   r   s       r$   _createzPhoneNumberList._create  sp     yy "2

 ))^-PQR"E.}}66tyytW 7 
 	
r#   c                 x    | j                  |      \  }}}t        | j                  || j                  d         S )a#  
        Create the PhoneNumberInstance

        :param phone_number_sid: The SID of the [Incoming Phone Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk.

        :returns: The created PhoneNumberInstance
        r   r(   r   )r   r   rO   rH   rJ   r   r'   r   s       r$   createzPhoneNumberList.create  s<     6FGA"MM7dnn[.I
 	
r#   c                     | j                  |      \  }}}t        | j                  || j                  d         }t	        |||      S )aT  
        Create the PhoneNumberInstance and return response metadata

        :param phone_number_sid: The SID of the [Incoming Phone Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk.

        :returns: ApiResponse with instance, status code, and headers
        r   r(   r   r   )r   r   rO   rH   r   rJ   r   r'   r   r   r   s         r$   create_with_http_infoz%PhoneNumberList.create_with_http_info  sK     )-FV(W%g&MM7dnn[.I
 k7SSr#   c                    K   t        j                  d|i      }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   r   N)r   r   rO   create_with_response_info_asyncr   r   s       r$   _create_asynczPhoneNumberList._create_async  s      yy "2

 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A%A.'A,(A.c                    K   | j                  |       d{   \  }}}t        | j                  || j                  d         S 7 -w)a2  
        Asynchronously create the PhoneNumberInstance

        :param phone_number_sid: The SID of the [Incoming Phone Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk.

        :returns: The created PhoneNumberInstance
        r   Nr(   r   )r   r   rO   rH   r   s       r$   create_asynczPhoneNumberList.create_async  sL      #00BR0SSA"MM7dnn[.I
 	
 Ts   AA.Ac                    K   | j                  |       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)ac  
        Asynchronously create the PhoneNumberInstance and return response metadata

        :param phone_number_sid: The SID of the [Incoming Phone Number](https://www.twilio.com/docs/phone-numbers/api/incomingphonenumber-resource) that you want to associate with the trunk.

        :returns: ApiResponse with instance, status code, and headers
        r   Nr(   r   r   )r   r   rO   rH   r   r   s         r$   create_with_http_info_asyncz+PhoneNumberList.create_with_http_info_async  sc      /3.@.@- /A /
 )
%g 'MM7dnn[.I
 k7SS)
s   AA<Alimit	page_sizec                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )aa  
        Streams PhoneNumberInstance 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   )rO   read_limitspagestreamrJ   r   r   limitsr   s        r$   r   zPhoneNumberList.stream!  sJ    ( **5)<yy6+#6y7}}##D&/::r#   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)ap  
        Asynchronously streams PhoneNumberInstance 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   )rO   r   
page_asyncstream_asyncr   s        r$   r   zPhoneNumberList.stream_async:  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 PhoneNumberInstance 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   )rO   r   page_with_http_infor   r   r   r   rJ   r   r   r   page_response	generators         r$   stream_with_http_infoz%PhoneNumberList.stream_with_http_infoS  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 PhoneNumberInstance 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   )rO   r   page_with_http_info_asyncr   r   r   r   r   s         r$   stream_with_http_info_asyncz+PhoneNumberList.stream_with_http_info_asynck  s     $ **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   5B A>AB c                 :    t        | j                  ||            S )a  
        Lists PhoneNumberInstance 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   )rJ   r   r   s      r$   r   zPhoneNumberList.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 PhoneNumberInstance 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   )rJ   r   r   records       r$   
list_asynczPhoneNumberList.list_async  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists PhoneNumberInstance 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   )rJ   r   r   r   r   r   rw   s          r$   list_with_http_infoz#PhoneNumberList.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 PhoneNumberInstance 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   )rJ   r   r   r   r   r   r   rw   s           r$   list_with_http_info_asyncz)PhoneNumberList.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                  || j                        S )a{  
        Retrieve a single page of PhoneNumberInstance 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 PhoneNumberInstance
        	PageTokenr   PageSizer   r   r   r   r   r   r   paramsr   )r   r   rO   r   r   r   rH   rJ   r   r   r   r   r   responses          r$   r   zPhoneNumberList.page  s      yy'#%
 ))^-PQR.==%%diig & 
 t}}hGGr#   c                   K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                        S 7 %w)	a  
        Asynchronously retrieve a single page of PhoneNumberInstance 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 PhoneNumberInstance
        r   r   r   r   r   r   r   N)r   r   rO   r   r   r   rH   r   s          r$   r   zPhoneNumberList.page_async  s       yy'#%
 ))^-PQR.11diig 2 
 
 t}}hGG
s   A"B$B
%&Bc                 $   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}t        | j                  || 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 PhoneNumberPage, status code, and headers
        r   r   r   r   r   r   r   r   )r   r   rO   page_with_response_infor   r   rH   r   
rJ   r   r   r   r   r   r   r   response_headersr   s
             r$   r   z#PhoneNumberList.page_with_http_info.  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ t}}hG+GWXXr#   c                 @  K   t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||       d{   \  }}}t        | j                  || j                        }	t        |	||	      S 7 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 PhoneNumberPage, status code, and headers
        r   r   r   r   r   r   r   Nr   )r   r   rO   page_with_response_info_asyncr   r   rH   r   r   s
             r$   r   z)PhoneNumberList.page_with_http_info_asyncP  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 t}}hG+GWXXs   A"B$B%8B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   || j
                        S )z
        Retrieve a specific page of PhoneNumberInstance records from the API.
        Request is executed immediately

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

        :returns: Page of PhoneNumberInstance
        r   )rO   domaintwiliorequestr   rH   rJ   r  r   s      r$   get_pagezPhoneNumberList.get_paget  s=     ==''..66ujIt}}hGGr#   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   || j
                        S 7 %w)a
  
        Asynchronously retrieve a specific page of PhoneNumberInstance records from the API.
        Request is executed immediately

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

        :returns: Page of PhoneNumberInstance
        r   N)rO   r  r  request_asyncr   rH   r  s      r$   get_page_asynczPhoneNumberList.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 PhoneNumberContext

        :param sid: The unique string that we created to identify the PhoneNumber resource to fetch.
        r(   rC   rN   rO   rH   rJ   r)   s     r$   rF   zPhoneNumberList.get  %     "MMT^^K%@c
 	
r#   c                 L    t        | j                  | j                  d   |      S r  r  r  s     r$   __call__zPhoneNumberList.__call__  r  r#   c                      y)rh   z$<Twilio.Trunking.V1.PhoneNumberList>r"   rP   s    r$   rz   zPhoneNumberList.__repr__  r   r#   )NN),r   r   r   r   r|   rE   r   r   r   r   r   r   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   unsetr   r{   r   r   r   r   r   r  r  rN   rF   r  rz   r   r   s   @r$   r   r     s3   P PC P 
 
 
.
s 
/B 
Tc Tk T
C 
E 
.
3 
;N 
T# 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,,(.	H#v+&H 3;'H f%	H
 
HF *0*0,,(.	H#v+&H 3;'H f%	H
 
HF *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
H3 
H? 
H
Hs 
H 
H
s 
1 

C 
$6 
6# 6r#   r   N)__doc__r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   rN   r   r   r"   r#   r$   <module>r     sj     L L L + 0 8 : 2 ' !xM* xMv|L |L~6d 6*}6l }6r#   