
    d{in                         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 - Voice
    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dZ	 ddedeeef   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dd fdZdedd 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 )SourceIpMappingInstancea  
    :ivar sid: The unique string that we created to identify the IP Record resource.
    :ivar ip_record_sid: The Twilio-provided string that uniquely identifies the IP Record resource to map from.
    :ivar sip_domain_sid: The SID of the SIP Domain that the IP Record is mapped to.
    :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 url: The absolute URL of the resource.
    versionpayloadsidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _        t        j                  |j                  d            | _	        |j                  d      | _
        d|xs | j                  i| _        d | _        y )Nr   ip_record_sidsip_domain_siddate_createddate_updatedurl)super__init__getr   r   r   r   iso8601_datetimer   r   r   	_solution_context)selfr   r   r   	__class__s       d/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/voice/v1/source_ip_mapping.pyr   z SourceIpMappingInstance.__init__$   s     	!")++e"4,3KK,H-4[[9I-J0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 ;?    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: SourceIpMappingContext for this SourceIpMappingInstance
        r   r   )r#   SourceIpMappingContext_versionr"   r$   s    r&   _proxyzSourceIpMappingInstance._proxy9   s9     == 2NN5)DM }}r'   c                 6    | j                   j                         S zr
        Deletes the SourceIpMappingInstance


        :returns: True if delete succeeds, False otherwise
        )r.   deleter-   s    r&   r1   zSourceIpMappingInstance.deleteH   s     {{!!##r'   c                 R   K   | j                   j                          d{   S 7 wz
        Asynchronous coroutine that deletes the SourceIpMappingInstance


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


        :returns: ApiResponse with success boolean, status code, and headers
        )r.   delete_with_http_infor-   s    r&   r7   z-SourceIpMappingInstance.delete_with_http_infoZ   s     {{0022r'   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine that deletes the SourceIpMappingInstance with HTTP info


        :returns: ApiResponse with success boolean, status code, and headers
        N)r.   delete_with_http_info_asyncr-   s    r&   r9   z3SourceIpMappingInstance.delete_with_http_info_asyncc   s!      [[<<>>>>r5   c                 6    | j                   j                         S )k
        Fetch the SourceIpMappingInstance


        :returns: The fetched SourceIpMappingInstance
        )r.   fetchr-   s    r&   r<   zSourceIpMappingInstance.fetchl   s     {{  ""r'   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to fetch the SourceIpMappingInstance


        :returns: The fetched SourceIpMappingInstance
        N)r.   fetch_asyncr-   s    r&   r?   z#SourceIpMappingInstance.fetch_asyncu   s!      [[,,....r5   c                 6    | j                   j                         S )z
        Fetch the SourceIpMappingInstance with HTTP info


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


        :returns: ApiResponse with instance, status code, and headers
        N)r.   fetch_with_http_info_asyncr-   s    r&   rC   z2SourceIpMappingInstance.fetch_with_http_info_async   s!      [[;;====r5   r   c                 :    | j                   j                  |      S )
        Update the SourceIpMappingInstance

        :param sip_domain_sid: The SID of the SIP Domain that the IP Record should be mapped to.

        :returns: The updated SourceIpMappingInstance
        r   )r.   updater$   r   s     r&   rG   zSourceIpMappingInstance.update   s#     {{!!) " 
 	
r'   c                 V   K   | j                   j                  |       d{   S 7 w)
        Asynchronous coroutine to update the SourceIpMappingInstance

        :param sip_domain_sid: The SID of the SIP Domain that the IP Record should be mapped to.

        :returns: The updated SourceIpMappingInstance
        rF   N)r.   update_asyncrH   s     r&   rK   z$SourceIpMappingInstance.update_async   s1      [[--) . 
 
 	
 
    )')c                 :    | j                   j                  |      S )z
        Update the SourceIpMappingInstance with HTTP info

        :param sip_domain_sid: The SID of the SIP Domain that the IP Record should be mapped to.

        :returns: ApiResponse with instance, status code, and headers
        rF   )r.   update_with_http_inforH   s     r&   rN   z-SourceIpMappingInstance.update_with_http_info   s#     {{00) 1 
 	
r'   c                 V   K   | j                   j                  |       d{   S 7 w)a  
        Asynchronous coroutine to update the SourceIpMappingInstance with HTTP info

        :param sip_domain_sid: The SID of the SIP Domain that the IP Record should be mapped to.

        :returns: ApiResponse with instance, status code, and headers
        rF   N)r.   update_with_http_info_asyncrH   s     r&   rP   z3SourceIpMappingInstance.update_with_http_info_async   s1      [[<<) = 
 
 	
 
rL   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>z3SourceIpMappingInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z,<Twilio.Voice.V1.SourceIpMappingInstance {}>joinr"   itemsrW   r$   contexts     r&   __repr__z SourceIpMappingInstance.__repr__   s6     ((SDNN<P<P<RSS=DDWMMr'   )N)r(   r+   )r(   r   )__name__
__module____qualname____doc__r   r   strr   r   r   propertyr.   boolr1   r4   r   r7   r9   r<   r?   rA   rC   rG   rK   rN   rP   rd   __classcell__r%   s   @r&   r   r      s     OS??)-c3h?>Fsm?*  $ $0D 03{ 3?; ?#/2k 2>+ >

S 

-F 



 

9R 



C 

K 



 

 

N# Nr'   r   c                   $    e Zd 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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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efdZ xZS )r+   r   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the SourceIpMappingContext

        :param version: Version that contains the resource
        :param sid: The Twilio-provided string that uniquely identifies the IP Record resource to update.
        r   z/SourceIpMappings/{sid}N )r   r   r"   rW   _uri)r$   r   r   r%   s      r&   r   zSourceIpMappingContext.__init__   s@     	! 3
 5-44Ft~~F	r'   r(   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   ofr,   delete_with_response_inforq   r$   rw   s     r&   _deletezSourceIpMappingContext._delete   s8     ))B-}}66G 7 
 	
r'   c                 .    | j                         \  }}}|S r0   )r{   r$   success_s      r&   r1   zSourceIpMappingContext.delete   s     Ar'   c                 F    | j                         \  }}}t        |||      S )z
        Deletes the SourceIpMappingInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        datastatus_coderw   )r{   r   r$   r~   r   rw   s       r&   r7   z,SourceIpMappingContext.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)
        rs   rt   N)r   rx   r,   delete_with_response_info_asyncrq   rz   s     r&   _delete_asyncz$SourceIpMappingContext._delete_async   sG      ))B-]]BBG C 
 
 	
 
s   AA
AA
c                 J   K   | j                          d{   \  }}}|S 7 
wr3   )r   r}   s      r&   r4   z#SourceIpMappingContext.delete_async  s)      #0022A 3s   #!#c                 b   K   | j                          d{   \  }}}t        |||      S 7 w)z
        Asynchronous coroutine that deletes the SourceIpMappingInstance and return response metadata


        :returns: ApiResponse with success boolean, status code, and headers
        Nr   )r   r   r   s       r&   r9   z2SourceIpMappingContext.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GETrt   )r   rx   r,   fetch_with_response_inforq   rz   s     r&   _fetchzSourceIpMappingContext._fetch  sB     ))B-.}}55dii 6 
 	
r'   c                 t    | j                         \  }}}t        | j                  || j                  d         S )r;   r   r*   )r   r   r,   r"   r$   r   r   s      r&   r<   zSourceIpMappingContext.fetch/  s8     A&MMu%
 	
r'   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the SourceIpMappingInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r*   r   )r   r   r,   r"   r   r$   r   r   rw   instances        r&   rA   z+SourceIpMappingContext.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   rt   N)r   rx   r,   fetch_with_response_info_asyncrq   rz   s     r&   _fetch_asyncz#SourceIpMappingContext._fetch_asyncL  sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)r>   Nr   r*   )r   r   r,   r"   r   s      r&   r?   z"SourceIpMappingContext.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 SourceIpMappingInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r*   r   )r   r   r,   r"   r   r   s        r&   rC   z1SourceIpMappingContext.fetch_with_http_info_asyncj  sW      /3.?.?.A(A%g*MMu%

 k7SS )Bs   AA<Ar   c                     t        j                  d|i      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        SipDomainSid!application/x-www-form-urlencodedContent-Typer   r   POSTru   rv   r   rw   )r   rx   r,   update_with_response_inforq   r$   r   r   rw   s       r&   _updatezSourceIpMappingContext._updatey  sh     yy

 ))B-"E.}}66tyytW 7 
 	
r'   c                 x    | j                  |      \  }}}t        | j                  || j                  d         S )rE   rF   r   r*   )r   r   r,   r"   r$   r   r   r   s       r&   rG   zSourceIpMappingContext.update  s;     NCA&MM7u(=
 	
r'   c                     | j                  |      \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Update the SourceIpMappingInstance and return response metadata

        :param sip_domain_sid: The SID of the SIP Domain that the IP Record should be mapped to.

        :returns: ApiResponse with instance, status code, and headers
        rF   r   r*   r   )r   r   r,   r"   r   r$   r   r   r   rw   r   s         r&   rN   z,SourceIpMappingContext.update_with_http_info  sJ     )-N(S%g*MM7u(=
 k7SSr'   c                    K   t        j                  d|i      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||       d{   S 7 w)	z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        r   r   r   r   r   r   r   N)r   rx   r,   update_with_response_info_asyncrq   r   s       r&   _update_asyncz$SourceIpMappingContext._update_async  sw      yy

 ))B-"E.]]BBtyytW C 
 
 	
 
s   A#A,%A*&A,c                    K   | j                  |       d{   \  }}}t        | j                  || j                  d         S 7 -w)rJ   rF   Nr   r*   )r   r   r,   r"   r   s       r&   rK   z#SourceIpMappingContext.update_async  sK      #000OOA&MM7u(=
 	
 Ps   AA.Ac                    K   | j                  |       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)a  
        Asynchronous coroutine to update the SourceIpMappingInstance and return response metadata

        :param sip_domain_sid: The SID of the SIP Domain that the IP Record should be mapped to.

        :returns: ApiResponse with instance, status code, and headers
        rF   Nr   r*   r   )r   r   r,   r"   r   r   s         r&   rP   z2SourceIpMappingContext.update_with_http_info_async  sc      /3.@.@) /A /
 )
%g +MM7u(=
 k7SS)
s   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )rR   rS   c              3   F   K   | ]  \  }}d j                  ||        ywrU   rV   rX   s      r&   r\   z2SourceIpMappingContext.__repr__.<locals>.<genexpr>  r]   r^   z+<Twilio.Voice.V1.SourceIpMappingContext {}>r_   rb   s     r&   rd   zSourceIpMappingContext.__repr__  s6     ((SDNN<P<P<RSS<CCGLLr'   )re   rf   rg   r   ri   r   tupler{   rk   r1   r   r7   r   r4   r9   r   r   r<   rA   r   r?   rC   r   rG   rN   r   rK   rP   rd   rl   rm   s   @r&   r+   r+      s;   G Gc G
 
 S{ S
U 
D S; S
 
 
. 
Tk T
E 
 
#: 
T+ T
c 
e 
.
S 
-D 
TC TK T
# 
% 
.
 
9P 
T T T M# Mr'   r+   c                   2    e Zd Zdeeef   defdZdefdZy)SourceIpMappingPager   r(   c                 .    t        | j                  |      S )zu
        Build an instance of SourceIpMappingInstance

        :param payload: Payload response from the API
        )r   r,   )r$   r   s     r&   get_instancez SourceIpMappingPage.get_instance  s     't}}g>>r'   c                      y)rR   z%<Twilio.Voice.V1.SourceIpMappingPage>rp   r-   s    r&   rd   zSourceIpMappingPage.__repr__       7r'   N)	re   rf   rg   r   ri   r   r   r   rd   rp   r'   r&   r   r     s*    ?DcN ?7N ?7# 7r'   r   c            	           e Zd Zdef fdZdededefdZdededefdZ	dedede
fdZdededefd	Zdededefd
Zde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 )$SourceIpMappingListr   c                 2    t         |   |       d| _        y)zq
        Initialize the SourceIpMappingList

        :param version: Version that contains the resource

        z/SourceIpMappingsN)r   r   rq   )r$   r   r%   s     r&   r   zSourceIpMappingList.__init__  s     	!'	r'   r   r   r(   c                     t        j                  ||d      }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)
        IpRecordSidr   r   r   r   r   r   r   )r   rx   r,   create_with_response_inforq   r$   r   r   r   rw   s        r&   _createzSourceIpMappingList._create	  sp     yy, .
 ))^-PQR"E.}}66tyytW 7 
 	
r'   c                 \    | j                  ||      \  }}}t        | j                  |      S )aC  
        Create the SourceIpMappingInstance

        :param ip_record_sid: The Twilio-provided string that uniquely identifies the IP Record resource to map from.
        :param sip_domain_sid: The SID of the SIP Domain that the IP Record should be mapped to.

        :returns: The created SourceIpMappingInstance
        r   r   )r   r   r,   r$   r   r   r   r   s        r&   createzSourceIpMappingList.create!  s5     ' % 
A 't}}g>>r'   c                 x    | j                  ||      \  }}}t        | j                  |      }t        |||      S )ap  
        Create the SourceIpMappingInstance and return response metadata

        :param ip_record_sid: The Twilio-provided string that uniquely identifies the IP Record resource to map from.
        :param sip_domain_sid: The SID of the SIP Domain that the IP Record should be mapped to.

        :returns: ApiResponse with instance, status code, and headers
        r   r   )r   r   r,   r   r$   r   r   r   r   rw   r   s          r&   create_with_http_infoz)SourceIpMappingList.create_with_http_info1  sD     )-' )5 )
%g +4=='Bk7SSr'   c                    K   t        j                  ||d      }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   rx   r,   create_with_response_info_asyncrq   r   s        r&   _create_asyncz!SourceIpMappingList._create_asyncB  s      yy, .
 ))^-PQR"E.]]BBtyytW C 
 
 	
 
s   A&A/(A-)A/c                 x   K   | j                  ||       d{   \  }}}t        | j                  |      S 7 w)aR  
        Asynchronously create the SourceIpMappingInstance

        :param ip_record_sid: The Twilio-provided string that uniquely identifies the IP Record resource to map from.
        :param sip_domain_sid: The SID of the SIP Domain that the IP Record should be mapped to.

        :returns: The created SourceIpMappingInstance
        r   N)r   r   r,   r   s        r&   create_asyncz SourceIpMappingList.create_asyncZ  sE      #00' 1 
 
A 't}}g>>
s   :8:c                    K   | j                  ||       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)a  
        Asynchronously create the SourceIpMappingInstance and return response metadata

        :param ip_record_sid: The Twilio-provided string that uniquely identifies the IP Record resource to map from.
        :param sip_domain_sid: The SID of the SIP Domain that the IP Record should be mapped to.

        :returns: ApiResponse with instance, status code, and headers
        r   Nr   )r   r   r,   r   r   s          r&   create_with_http_info_asyncz/SourceIpMappingList.create_with_http_info_asyncj  sU      /3.@.@' /A /
 )
%g +4=='Bk7SS	)
s   AA-Alimit	page_sizec                     | j                   j                  ||      }| j                  |d         }| j                   j                  ||d         S )ae  
        Streams SourceIpMappingInstance 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SourceIpMappingList.stream{  sJ    ( **5)<yy6+#6y7}}##D&/::r'   c                    K   | j                   j                  ||      }| j                  |d          d{   }| j                   j                  ||d         S 7 #w)at  
        Asynchronously streams SourceIpMappingInstance 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 SourceIpMappingList.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 SourceIpMappingInstance 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   rw   r$   r   r   r   page_response	generators         r&   stream_with_http_infoz)SourceIpMappingList.stream_with_http_info  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 SourceIpMappingInstance 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   rw   r   s         r&   stream_with_http_info_asyncz/SourceIpMappingList.stream_with_http_info_async  s     $ **5)<"<<[) = 
 
 MM..}/A/A6'?S	=44m6K6KLL
s   5B A>AB c                 :    t        | j                  ||            S )a  
        Lists SourceIpMappingInstance 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SourceIpMappingList.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 SourceIpMappingInstance 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SourceIpMappingList.list_async  sT     * '+&7&7# '8 ' !
 
 !
 
 	
 
s0   ;.;620
26;26;c                 b    | j                  ||      \  }}}t        |      }t        |||      S )a  
        Lists SourceIpMappingInstance 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   rw   ra   s          r&   list_with_http_infoz'SourceIpMappingList.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 SourceIpMappingInstance 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   rw   r   ra   s           r&   list_with_http_info_asyncz-SourceIpMappingList.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 SourceIpMappingInstance 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 SourceIpMappingInstance
        	PageTokenr   PageSizer   r   r   r   r   ru   rv   paramsrw   )r   rx   r,   r   rq   r   r$   r   r   r   r   rw   responses          r&   r   zSourceIpMappingList.pageF  sy      yy'#%
 ))^-PQR.==%%diig & 
 #4==(;;r'   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 SourceIpMappingInstance 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 SourceIpMappingInstance
        r   r   r   r   r   r   r   N)r   rx   r,   r   rq   r   r   s          r&   r   zSourceIpMappingList.page_asyncg  s       yy'#%
 ))^-PQR.11diig 2 
 
 #4==(;;
s   A"B$A?%Bc                    t        j                  |||d      }t        j                  ddi      }d|d<   | j                  j                  d| j                  ||      \  }}}t        | j                  |      }	t        |	||      S )	aa  
        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 SourceIpMappingPage, status code, and headers
        r   r   r   r   r   r   r   r   )r   rx   r,   page_with_response_inforq   r   r   
r$   r   r   r   r   rw   r   r   response_headersr   s
             r&   r   z'SourceIpMappingList.page_with_http_info  s      yy'#%
 ))^-PQR.26--2W2Wdiig 3X 3
/+/ #4==(;+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)
ap  
        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 SourceIpMappingPage, status code, and headers
        r   r   r   r   r   r   r   Nr   )r   rx   r,   page_with_response_info_asyncrq   r   r   r   s
             r&   r   z-SourceIpMappingList.page_with_http_info_async  s       yy'#%
 ))^-PQR. --==$))D' >   	0+/
 #4==(;+GWXXs   A"B$B%-B
target_urlc                     | j                   j                  j                  j                  d|      }t	        | j                   |      S )a  
        Retrieve a specific page of SourceIpMappingInstance records from the API.
        Request is executed immediately

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

        :returns: Page of SourceIpMappingInstance
        r   )r,   domaintwiliorequestr   r$   r   r   s      r&   get_pagezSourceIpMappingList.get_page  s7     ==''..66ujI"4==(;;r'   c                    K   | j                   j                  j                  j                  d|       d{   }t	        | j                   |      S 7 w)a  
        Asynchronously retrieve a specific page of SourceIpMappingInstance records from the API.
        Request is executed immediately

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

        :returns: Page of SourceIpMappingInstance
        r   N)r,   r   r   request_asyncr   r  s      r&   get_page_asyncz"SourceIpMappingList.get_page_async  sD      --44BB5*UU"4==(;; Vs   4AAAr   c                 0    t        | j                  |      S z
        Constructs a SourceIpMappingContext

        :param sid: The Twilio-provided string that uniquely identifies the IP Record resource to update.
        r*   r+   r,   r$   r   s     r&   r    zSourceIpMappingList.get       &dmm==r'   c                 0    t        | j                  |      S r  r  r	  s     r&   __call__zSourceIpMappingList.__call__  r
  r'   c                      y)rR   z%<Twilio.Voice.V1.SourceIpMappingList>rp   r-   s    r&   rd   zSourceIpMappingList.__repr__  r   r'   )NN),re   rf   rg   r   r   ri   r   r   r   r   r   r   r   r   r   r   intr	   r   r
   r   r   r   r   r   r   r   r   r   unsetr   objectr   r   r   r   r   r  r  r+   r    r  rd   rl   rm   s   @r&   r   r     sQ   	( 	(
S 
# 
% 
0? ?25?	 ? T T25T	T"
 
c 
e 
0? ?25?	 ? T T25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,,(.	<#v+&< 3;'< f%	<
 
<F *0*0,,(.	<#v+&< 3;'< f%	<
 
<F *0*0,,(.	 Y#v+& Y 3;' Y f%	 Y
 
 YH *0*0,,(.	"Y#v+&"Y 3;'"Y f%	"Y
 
"YH
<3 
<+> 
<
<s 
<7J 
<>s >5 >>C >$: >7# 7r'   r   N)rh   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   r+   r   r   rp   r'   r&   <module>r     sj     L L L + 0 8 : 2 ' !mN. mN`\M_ \M~7$ 7&@7, @7r'   