
    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	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 - Numbers
 This is the public Twilio REST API.

 NOTE: This class is auto generated by OpenAPI Generator.
 https://openapi-generator.tech
 Do not edit the class manually.
    )datetime)AnyDictOptionalUnion)deserialize	serializevalues)InstanceContext)InstanceResource)ListResource)Versionc            	       D  ^  \ rS rSr " S S\5      r  SS\S\\\	4   S\
\   4U 4S jjjr\SS	 j5       r\R                  \R                  4S
\S\\\4   S\\\4   SS 4S jjr\R                  \R                  4S
\S\\\4   S\\\4   SS 4S jjrS\4S jrSrU =r$ )BundleCloneInstance   c                   ,    \ rS rSrSrSrSrSrSrSr	Sr
g	)
BundleCloneInstance.Status   draftzpending-reviewz	in-reviewztwilio-rejectedztwilio-approvedzprovisionally-approved N)__name__
__module____qualname____firstlineno__DRAFTPENDING_REVIEW	IN_REVIEWTWILIO_REJECTEDTWILIO_APPROVEDPROVISIONALLY_APPROVED__static_attributes__r       k/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/numbers/v2/bundle_clone.pyStatusr      s!    )	++!9r"   r$   versionpayload
bundle_sidc                   > [         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        [        R                  " UR                  S5      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'   account_sidregulation_sidfriendly_namestatusvalid_untilemailstatus_callbackdate_createddate_updatedurl)super__init__getr'   r)   r*   r+   r,   r   iso8601_datetimer-   r.   r/   r0   r1   r2   	_solution_context)selfr%   r&   r'   	__class__s       r#   r4   BundleCloneInstance.__init__0   s    	!)0\)B*1++m*D-4[[9I-J,3KK,H>Ekk(>S/:/K/KKK&0
 %,KK$8
.5kk:K.L0;0L0LKK'1
 1<0L0LKK'1
 #*++e"4 *7
 7;r"   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: BundleCloneContext for this BundleCloneInstance
r'   r'   )r8   BundleCloneContext_versionr7   r9   s    r#   _proxyBundleCloneInstance._proxyO   s9     == .>>,7DM }}r"   target_account_sidmove_to_draftr+   c                 8    U R                   R                  UUUS9$ )  
Create the BundleCloneInstance

:param target_account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) where the bundle needs to be cloned.
:param move_to_draft: If set to true, the cloned bundle will be in the DRAFT state, else it will be twilio-approved
:param friendly_name: The string that you assigned to describe the cloned bundle.

:returns: The created BundleCloneInstance
rE   r+   )rB   creater9   rD   rE   r+   s       r#   rI   BundleCloneInstance.create^   s)     {{!!'' " 
 	
r"   c                 T   #    U R                   R                  UUUS9I Sh  vN $  N7f)  
Asynchronous coroutine to create the BundleCloneInstance

:param target_account_sid: The SID of the [Account](https://www.twilio.com/docs/iam/api/account) where the bundle needs to be cloned.
:param move_to_draft: If set to true, the cloned bundle will be in the DRAFT state, else it will be twilio-approved
:param friendly_name: The string that you assigned to describe the cloned bundle.

:returns: The created BundleCloneInstance
rH   N)rB   create_asyncrJ   s       r#   rN    BundleCloneInstance.create_asyncs   s6      [[--'' . 
 
 	
 
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>/BundleCloneInstance.__repr__.<locals>.<genexpr>         S<RDA7>>!//<R    "z*<Twilio.Numbers.V2.BundleCloneInstance {}>joinr7   itemsrV   r9   contexts     r#   __repr__BundleCloneInstance.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr"   )r8   r7   r)   r'   r0   r1   r.   r+   r*   r,   r/   r2   r-   )N)r<   r?   )r   r   r   r   objectr$   r   r   strr   r   r4   propertyrB   r
   unsetr   boolrI   rN   rd   r!   __classcell__r:   s   @r#   r   r      s   : :$ %)	;; c3h; SM	; ;>  " .4\\,2LL	

 T6\*
 S&[)	

 

0 .4\\,2LL	

 T6\*
 S&[)	

 

*L# L Lr"   r   c            	          ^  \ rS rSrS\S\4U 4S jjr\R                  \R                  4S\S\	\
\4   S\	\\4   S\4S	 jjr\R                  \R                  4S\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 BundleCloneContext

:param version: Version that contains the resource
:param bundle_sid: The unique string that identifies the Bundle to be cloned.
r'   z1/RegulatoryCompliance/Bundles/{bundle_sid}/ClonesNr   )r3   r4   r7   rV   _uri)r9   r%   r'   r:   s      r#   r4   BundleCloneContext.__init__   sC     	! *
 HNN 
nn
	r"   rD   rE   r+   r<   c                     [         R                  " U[        R                  " U5      US.5      nU R                  R                  SU R                  US9n[        U R                  XPR                  S   S9$ )rG   TargetAccountSidMoveToDraftFriendlyNamePOSTmethoduridatar'   r>   )	r
   ofr	   boolean_to_stringr@   rI   rp   r   r7   r9   rD   rE   r+   r{   r&   s         r#   rI   BundleCloneContext.create   sk     yy$6(::=I -
 --&&f$))$&O"MM7~~l/K
 	
r"   c                   #    [         R                  " U[        R                  " U5      US.5      nU R                  R                  SU R                  US9I Sh  vN n[        U R                  XPR                  S   S9$  N%7f)rM   rs   rw   rx   Nr'   r>   )	r
   r|   r	   r}   r@   rN   rp   r   r7   r~   s         r#   rN   BundleCloneContext.create_async   s      yy$6(::=I -
 22tyyt 3 
 
 #MM7~~l/K
 	
	
s   ABA?&Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )rQ   rR   c              3   H   #    U  H  u  pS R                  X5      v   M     g7frT   rU   rW   s      r#   r[   .BundleCloneContext.__repr__.<locals>.<genexpr>   r]   r^   z)<Twilio.Numbers.V2.BundleCloneContext {}>r_   rb   s     r#   rd   BundleCloneContext.__repr__   s6     ((SDNN<P<P<RSS:AA'JJr"   )r7   rp   )r   r   r   r   r   rg   r4   r
   ri   r   rj   rf   r   rI   rN   rd   r!   rk   rl   s   @r#   r?   r?      s    
 
S 
( .4\\,2LL	

 T6\*
 S&[)	

 

@ .4\\,2LL	

 T6\*
 S&[)	

 

>K# K K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$ )
BundleCloneList   r%   c                 $   > [         TU ]  U5        g)zU
Initialize the BundleCloneList

:param version: Version that contains the resource

N)r3   r4   )r9   r%   r:   s     r#   r4   BundleCloneList.__init__   s     	!r"   r'   r<   c                 *    [        U R                  US9$ zp
Constructs a BundleCloneContext

:param bundle_sid: The unique string that identifies the Bundle to be cloned.
r>   r?   r@   r9   r'   s     r#   r5   BundleCloneList.get        "$--JGGr"   c                 *    [        U R                  US9$ r   r   r   s     r#   __call__BundleCloneList.__call__   r   r"   c                     g)rQ   z#<Twilio.Numbers.V2.BundleCloneList>r   rA   s    r#   rd   BundleCloneList.__repr__  s     5r"   r   )r   r   r   r   r   r4   rg   r?   r5   r   rd   r!   rk   rl   s   @r#   r   r      sN    " "Hc H&8 HH3 H+= H5# 5 5r"   r   N)__doc__r   typingr   r   r   r   twilio.baser   r	   r
   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r?   r   r   r"   r#   <module>r      sV     - - 6 6 8 : 2 'wL* wLtVK VKr!5l !5r"   