
    gP                         S r SSKJr  SSKJrJrJrJrJrJrJ	r	  SSK
JrJr  SSKJr  SSKJr  SSKJr  SSKJr  SS	KJr   " S
 S\5      r " S S\5      r " S S\5      r " S S\5      rg)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - 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)InstanceContext)InstanceResource)ListResource)Version)Pagec                      ^  \ rS rSrSr SS\S\\\4   S\	\   4U 4S jjjr
\SS j5       rS\4S	 jrS\4S
 jrSS jrSS jrS\SS 4S jrS\SS 4S jrS\4S jrSrU =r$ )SourceIpMappingInstance   ad  
: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U ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        [        R                  " UR                  S5      5      U l        [        R                  " UR                  S5      5      U l	        UR                  S5      U l
        SU=(       d    U R                  0U l        S U l        g )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       n/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/voice/v1/source_ip_mapping.pyr    SourceIpMappingInstance.__init__#   s     	!")++e"4,3KK,H-4[[9I-J0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 3?$((
 ;?    returnc                     U R                   c&  [        U R                  U R                  S   S9U l         U R                   $ )z
Generate an instance context for the instance, the context is capable of
performing various actions. All instance actions are proxied to the context

:returns: SourceIpMappingContext for this SourceIpMappingInstance
r   r   )r#   SourceIpMappingContext_versionr"   r$   s    r&   _proxySourceIpMappingInstance._proxy8   s9     == 2NN5)DM }}r(   c                 6    U R                   R                  5       $ )Z
Deletes the SourceIpMappingInstance


:returns: True if delete succeeds, False otherwise
)r/   deleter.   s    r&   r3   SourceIpMappingInstance.deleteG   s     {{!!##r(   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)v
Asynchronous coroutine that deletes the SourceIpMappingInstance


:returns: True if delete succeeds, False otherwise
N)r/   delete_asyncr.   s    r&   r7   $SourceIpMappingInstance.delete_asyncP   s       [[--////   '%'c                 6    U R                   R                  5       $ )S
Fetch the SourceIpMappingInstance


:returns: The fetched SourceIpMappingInstance
)r/   fetchr.   s    r&   r<   SourceIpMappingInstance.fetchY   s     {{  ""r(   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)m
Asynchronous coroutine to fetch the SourceIpMappingInstance


:returns: The fetched SourceIpMappingInstance
N)r/   fetch_asyncr.   s    r&   r@   #SourceIpMappingInstance.fetch_asyncb   s       [[,,....r9   r   c                 4    U R                   R                  US9$ )
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&   rE   SourceIpMappingInstance.updatek   s#     {{!!) " 
 	
r(   c                 P   #    U R                   R                  US9I Sh  vN $  N7f)
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
rD   N)r/   update_asyncrF   s     r&   rJ   $SourceIpMappingInstance.update_asyncw   s0      [[--) . 
 
 	
 
s   &$&c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r&   	<genexpr>3SourceIpMappingInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z,<Twilio.Voice.V1.SourceIpMappingInstance {}>joinr"   itemsrR   r$   contexts     r&   __repr__ SourceIpMappingInstance.__repr__   s6     ((SDNN<P<P<RSS=DDWMMr(   )r#   r"   r   r   r   r   r   r   )N)r)   r,   )r)   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr/   boolr3   r7   r<   r@   rE   rJ   r`   __static_attributes____classcell__r%   s   @r&   r   r      s     OS??)-c3h?>Fsm? ?*  $ $0D 0#/

S 

-F 



 

9R 

N# N Nr(   r   c                      ^  \ rS rSrS\S\4U 4S jjrS\4S jrS\4S jr	S\
4S jrS\
4S	 jrS
\S\
4S jrS
\S\
4S jrS\4S jrSrU =r$ )r,      r   r   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)z
Initialize the 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"   rR   _uri)r$   r   r   r%   s      r&   r   SourceIpMappingContext.__init__   s=     	! 3
 .44Ft~~F	r(   r)   c                 x    [         R                  " 0 5      nU R                  R                  SU R                  US9$ )r2   DELETEmethoduriheaders)r   ofr-   r3   rq   r$   rx   s     r&   r3   SourceIpMappingContext.delete   s1     ))B-}}##8G#TTr(   c                    #    [         R                  " 0 5      nU R                  R                  SU R                  US9I Sh  vN $  N7f)r6   rt   ru   N)r   ry   r-   r7   rq   rz   s     r&   r7   #SourceIpMappingContext.delete_async   sE      ))B-]]//G 0 
 
 	
 
s   ?AAAc                     [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9n[        U R                  UU R                  S   S9$ )r;   application/jsonAcceptGETru   r   r+   )r   ry   r-   r<   rq   r   r"   r$   rx   r   s      r&   r<   SourceIpMappingContext.fetch   s]     ))B-.--%%U		7%S&MMu%
 	
r(   c                    #    [         R                  " 0 5      nSUS'   U R                  R                  SU R                  US9I Sh  vN n[        U R                  UU R                  S   S9$  N&7f)r?   r   r   r   ru   Nr   r+   )r   ry   r-   r@   rq   r   r"   r   s      r&   r@   "SourceIpMappingContext.fetch_async   sq      ))B-.11dii 2 
 
 'MMu%
 	
	
s   AA/A-'A/r   c                     [         R                  " SU05      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X#S9n[        U R                  X@R                  S   S	9$ )
rC   SipDomainSid!application/x-www-form-urlencodedContent-Typer   r   POSTrv   rw   datarx   r   r+   )r   ry   r-   rE   rq   r   r"   r$   r   r   rx   r   s        r&   rE   SourceIpMappingContext.update   s     yy

 ))B-"E.--&&tyyt ' 
 'MM7u(=
 	
r(   c                   #    [         R                  " SU05      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X#S9I Sh  vN n[        U R                  X@R                  S	   S
9$  N%7f)rI   r   r   r   r   r   r   r   Nr   r+   )r   ry   r-   rJ   rq   r   r"   r   s        r&   rJ   #SourceIpMappingContext.update_async   s      yy

 ))B-"E.22tyyt 3 
 
 'MM7u(=
 	
	
s   A!B#B	$&Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rM   rN   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frP   rQ   rS   s      r&   rW   2SourceIpMappingContext.__repr__.<locals>.<genexpr>   rY   rZ   z+<Twilio.Voice.V1.SourceIpMappingContext {}>r[   r^   s     r&   r`   SourceIpMappingContext.__repr__  s6     ((SDNN<P<P<RSS<CCGLLr(   )r"   rq   )rb   rc   rd   re   r   rg   r   ri   r3   r7   r   r<   r@   rE   rJ   r`   rj   rk   rl   s   @r&   r,   r,      s    G Gc G
U 
U
D 

. 
(
#: 
,
S 
-D 
8
 
9P 
8M# M Mr(   r,   c                   >    \ rS rSrS\\\4   S\4S jrS\4S jr	Sr
g)SourceIpMappingPagei$  r   r)   c                 .    [        U R                  U5      $ )z]
Build an instance of SourceIpMappingInstance

:param payload: Payload response from the API
)r   r-   )r$   r   s     r&   get_instance SourceIpMappingPage.get_instance&  s     't}}g>>r(   c                     g)rM   z%<Twilio.Voice.V1.SourceIpMappingPage>rp   r.   s    r&   r`   SourceIpMappingPage.__repr__.       7r(   rp   N)rb   rc   rd   re   r   rg   r   r   r   r`   rj   rp   r(   r&   r   r   $  s*    ?DcN ?7N ?7# 7r(   r   c            	       n  ^  \ rS rSrS\4U 4S jjrS\S\S\4S jrS\S\S\4S jr	  SS	\
\   S
\
\   S\\   4S jjr  SS	\
\   S
\
\   S\\   4S jjr  SS	\
\   S
\
\   S\\   4S jjr  SS	\
\   S
\
\   S\\   4S jjr\R(                  \R(                  \R(                  4S\\\4   S\\\4   S
\\\4   S\4S jjr\R(                  \R(                  \R(                  4S\\\4   S\\\4   S
\\\4   S\4S jjrS\S\4S jrS\S\4S jrS\S\4S jrS\S\4S jrS\4S jrSr U =r!$ )SourceIpMappingListi7  r   c                 2   > [         TU ]  U5        SU l        g)zY
Initialize the SourceIpMappingList

:param version: Version that contains the resource

z/SourceIpMappingsN)r   r   rq   )r$   r   r%   s     r&   r   SourceIpMappingList.__init__9  s     	!'	r(   r   r   r)   c                     [         R                  " UUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  X4S9n[        U R                  U5      $ )a  
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
IpRecordSidr   r   r   r   r   r   r   )r   ry   r-   createrq   r   r$   r   r   r   rx   r   s         r&   r   SourceIpMappingList.createD  s~     yy, .
 ))^-PQR"E.--&&tyyt ' 
 't}}g>>r(   c                 
  #    [         R                  " UUS.5      n[         R                  " SS05      nSUS'   SUS'   U R                  R                  SU R                  X4S9I Sh  vN n[        U R                  U5      $  N7f)	a*  
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   r   r   r   r   r   r   N)r   ry   r-   create_asyncrq   r   r   s         r&   r    SourceIpMappingList.create_asyncb  s      yy, .
 ))^-PQR"E.22tyyt 3 
 
 't}}g>>	
s   A$B&B'Blimit	page_sizec                     U R                   R                  X5      nU R                  US   S9nU R                   R                  XCS   5      $ )a  
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   SourceIpMappingList.stream  sF    ( **5<yy6+#6y7}}##D/::r(   c                    #    U R                   R                  X5      nU R                  US   S9I Sh  vN nU R                   R                  XCS   5      $  N"7f)a  
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    SourceIpMappingList.stream_async  sR     ( **5<__vk/B_CC}}))$w@@ Ds   1AA#Ac                 4    [        U R                  UUS95      $ )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   SourceIpMappingList.list  s(    & KK#  
 	
r(   c                 v   #    U R                  UUS9I Sh  vN  Vs/ s Sh  vN nUPM   N N

 sn$ s  snf 7f)a  
Asynchronously lists 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_asyncSourceIpMappingList.list_async  sQ     * '+&7&7# '8 ' ! !
 
 !
 	
 
s0   9,940.
049049
page_tokenpage_numberc                     [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9n[        U R                  U5      $ )aK  
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   rv   rw   paramsrx   )r   ry   r-   r   rq   r   r$   r   r   r   r   rx   responses          r&   r   SourceIpMappingList.page  sw      yy'#%
 ))^-PQR.==%%dii & 
 #4==(;;r(   c                   #    [         R                  " UUUS.5      n[         R                  " SS05      nSUS'   U R                  R                  SU R                  XES9I Sh  vN n[        U R                  U5      $  N7f)	aZ  
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   ry   r-   r   rq   r   r   s          r&   r   SourceIpMappingList.page_async  s       yy'#%
 ))^-PQR.11dii 2 
 
 #4==(;;
s   A A?"A=#A?
target_urlc                     U R                   R                  R                  R                  SU5      n[	        U R                   U5      $ )z
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_pageSourceIpMappingList.get_page)  s7     ==''..66ujI"4==(;;r(   c                    #    U R                   R                  R                  R                  SU5      I Sh  vN n[	        U R                   U5      $  N7f)z
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_async"SourceIpMappingList.get_page_async5  sC      --44BB5*UU"4==(;; Vs   4AAAr   c                 *    [        U R                  US9$ 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    SourceIpMappingList.getA       &dmm==r(   c                 *    [        U R                  US9$ r   r   r   s     r&   __call__SourceIpMappingList.__call__I  r   r(   c                     g)rM   z%<Twilio.Voice.V1.SourceIpMappingList>rp   r.   s    r&   r`   SourceIpMappingList.__repr__Q  r   r(   )rq   )NN)"rb   rc   rd   re   r   r   rg   r   r   r   r   intr	   r   r
   r   r   r   r   r   unsetr   objectr   r   r   r   r   r,   r    r   r`   rj   rk   rl   s   @r&   r   r   7  sG   	( 	(? ?25?	 ?<? ?25?	 ?@  $#';}; C=; 
)	*	;6  $#'A}A C=A 
.	/	A6  $#'
}
 C=
 
%	&	
8  $#'
}
 C=
 
%	&	
: *0*0,,(.	<#v+&< 3;'< f%	<
 
<F *0*0,,(.	<#v+&< 3;'< f%	<
 
<B
<3 
<+> 
<
<s 
<7J 
<>s >5 >>C >$: >7# 7 7r(   r   N)rf   r   typingr   r   r   r   r   r	   r
   twilio.baser   r   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   twilio.base.pager   r   r,   r   r   rp   r(   r&   <module>r      sg     L L L + 8 : 2 ' !qN. qNhTM_ TMn7$ 7&`7, `7r(   