
    g&                         S r SSKJr  SSK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
\5      r " S S\5      r " S S\5      rg)a  
 This code was generated by
___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
 |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
 |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

 Twilio - Routes
 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OptionalUnion)deserializevalues)InstanceContext)InstanceResource)ListResource)Versionc                   <  ^  \ 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S	 jrSS
 jr\R                   \R                   4S\\\4   S\\\4   SS 4S jjr\R                   \R                   4S\\\4   S\\\4   SS 4S jjrS\4S jrSrU =r$ )TrunkInstance   a  
:ivar sip_trunk_domain: The absolute URL of the SIP Trunk
:ivar url: The absolute URL of the resource.
:ivar sid: A 34 character string that uniquely identifies the Inbound Processing Region assignments for this SIP Trunk.
:ivar account_sid: The unique SID identifier of the Account.
:ivar friendly_name: A human readable description of the Inbound Processing Region assignments for this SIP Trunk, up to 64 characters.
:ivar voice_region: The Inbound Processing Region used for this SIP Trunk for voice.
:ivar date_created: The date that this SIP Trunk was assigned an Inbound Processing Region, given in ISO 8601 format.
:ivar date_updated: The date that the Inbound Processing Region was updated for this SIP Trunk, given in ISO 8601 format.
versionpayloadsip_trunk_domainc                   > [         TU ]  U5        UR                  S5      U l        UR                  S5      U l        UR                  S5      U l        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        SU=(       d    U R                  0U l        S U l        g )	Nr   urlsidaccount_sidfriendly_namevoice_regiondate_createddate_updated)super__init__getr   r   r   r   r   r   r   iso8601_datetimer   r   	_solution_context)selfr   r   r   	__class__s       c/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/routes/v2/trunk.pyr   TrunkInstance.__init__$   s     	!/6{{;M/N")++e"4")++e"4*1++m*D,3KK,H+2;;~+F0;0L0LKK'1
 1<0L0LKK'1

  0 ID4I4I
 15    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: TrunkContext for this TrunkInstance
r   r   )r!   TrunkContext_versionr    r"   s    r$   _proxyTrunkInstance._proxy>   s:     == (!%0B!CDM }}r&   c                 6    U R                   R                  5       $ )?
Fetch the TrunkInstance


:returns: The fetched TrunkInstance
)r-   fetchr,   s    r$   r1   TrunkInstance.fetchM   s     {{  ""r&   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)Y
Asynchronous coroutine to fetch the TrunkInstance


:returns: The fetched TrunkInstance
N)r-   fetch_asyncr,   s    r$   r5   TrunkInstance.fetch_asyncV   s       [[,,....   '%'r   r   c                 6    U R                   R                  UUS9$ )
Update the TrunkInstance

:param voice_region: The Inbound Processing Region used for this SIP Trunk for voice
:param friendly_name: A human readable description of this resource, up to 64 characters.

:returns: The updated TrunkInstance
r   r   )r-   updater"   r   r   s      r$   r;   TrunkInstance.update_   s&     {{!!%' " 
 	
r&   c                 R   #    U R                   R                  UUS9I Sh  vN $  N7f)	  
Asynchronous coroutine to update the TrunkInstance

:param voice_region: The Inbound Processing Region used for this SIP Trunk for voice
:param friendly_name: A human readable description of this resource, up to 64 characters.

:returns: The updated TrunkInstance
r:   N)r-   update_asyncr<   s      r$   r@   TrunkInstance.update_asyncq   s3      [[--%' . 
 
 	
 
r7   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>)TrunkInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z#<Twilio.Routes.V2.TrunkInstance {}>joinr    itemsrH   r"   contexts     r$   __repr__TrunkInstance.__repr__   s6     ((SDNN<P<P<RSS4;;GDDr&   )
r!   r    r   r   r   r   r   r   r   r   )N)r'   r*   )r'   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr-   r1   r5   r	   unsetr   objectr;   r@   rV   __static_attributes____classcell__r#   s   @r$   r   r      s    	 +/	55 c3h5 #3-	5 54  #/ ,2<<,2LL
CK(
 S&[)
 
	
( ,2<<,2LL
CK(
 S&[)
 
	
$E# E E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	\
R                  \
R                  4S\\\4   S	\\\4   S\4S
 jjr\
R                  \
R                  4S\\\4   S	\\\4   S\4S j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 TrunkContext

:param version: Version that contains the resource
:param sip_trunk_domain: The absolute URL of the SIP Trunk
r   z/Trunks/{sip_trunk_domain}N )r   r   r    rH   _uri)r"   r   r   r#   s      r$   r   TrunkContext.__init__   s>     	!  0
 177I$..I	r&   r'   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$ )r0   application/jsonAcceptGETmethoduriheadersr   r)   )r	   ofr+   r1   rh   r   r    r"   rq   r   s      r$   r1   TrunkContext.fetch   s^     ))B-.--%%U		7%SMM!^^,>?
 	
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)r4   rk   rl   rm   rn   Nr   r)   )r	   rr   r+   r5   rh   r   r    rs   s      r$   r5   TrunkContext.fetch_async   sr      ))B-.11dii 2 
 
 MM!^^,>?
 	
	
s   AA/A-'A/r   r   c                     [         R                  " UUS.5      n[         R                  " 0 5      nSUS'   SUS'   U R                  R                  SU R                  X4S9n[        U R                  XPR                  S   S	9$ )
r9   VoiceRegionFriendlyName!application/x-www-form-urlencodedContent-Typerk   rl   POSTro   rp   datarq   r   r)   )r	   rr   r+   r;   rh   r   r    r"   r   r   r   rq   r   s         r$   r;   TrunkContext.update   s     yy+ -
 ))B-"E.--&&tyyt ' 
 MM7^^DV5W
 	
r&   c                   #    [         R                  " UUS.5      n[         R                  " 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                  XPR                  S	   S
9$  N%7f)r?   rx   r{   r|   rk   rl   r}   r~   Nr   r)   )r	   rr   r+   r@   rh   r   r    r   s         r$   r@   TrunkContext.update_async   s      yy+ -
 ))B-"E.22tyyt 3 
 
 MM7^^DV5W
 	
	
s   A"B$B
%&Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rC   rD   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frF   rG   rI   s      r$   rM   (TrunkContext.__repr__.<locals>.<genexpr>  rO   rP   z"<Twilio.Routes.V2.TrunkContext {}>rQ   rT   s     r$   rV   TrunkContext.__repr__  s6     ((SDNN<P<P<RSS3::7CCr&   )r    rh   )rX   rY   rZ   r[   r   r]   r   r   r1   r5   r	   r_   r   r`   r;   r@   rV   ra   rb   rc   s   @r$   r*   r*      s    J J3 J
} 
(
= 
0 ,2<<,2LL 
CK( 
 S&[) 
 
	 
H ,2<<,2LL 
CK( 
 S&[) 
 
	 
DD# D Dr&   r*   c                   b   ^  \ rS rSrS\4U 4S jjrS\S\4S jrS\S\4S jr	S\4S jr
S	rU =r$ )
	TrunkListi  r   c                 $   > [         TU ]  U5        g)zO
Initialize the TrunkList

:param version: Version that contains the resource

N)r   r   )r"   r   r#   s     r$   r   TrunkList.__init__  s     	!r&   r   r'   c                 *    [        U R                  US9$ zW
Constructs a TrunkContext

:param sip_trunk_domain: The absolute URL of the SIP Trunk
r)   r*   r+   r"   r   s     r$   r   TrunkList.get!       DMM<LMMr&   c                 *    [        U R                  US9$ r   r   r   s     r$   __call__TrunkList.__call__)  r   r&   c                     g)rC   z<Twilio.Routes.V2.TrunkList>rg   r,   s    r$   rV   TrunkList.__repr__1  s     .r&   rg   )rX   rY   rZ   r[   r   r   r]   r*   r   r   rV   ra   rb   rc   s   @r$   r   r     sL    " "NC NL NN N N.# . .r&   r   N)r\   r   typingr   r   r   r   twilio.baser   r	   twilio.base.instance_contextr
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r*   r   rg   r&   r$   <module>r      sS     - - + 8 : 2 'rE$ rEjFD? FDR!. !.r&   