
    d{i>                         d Z ddlmZ ddlmZmZmZmZ ddlmZ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  G d
 de      Z G d de      Z G d de      Zy)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)ApiResponse)InstanceContext)InstanceResource)ListResource)Versionc            	           e Zd Z G d de      Z	 	 ddedeeef   de	e   f fdZ
edd       Zej                  ej                  fd	ed
eeef   deeef   dd fdZej                  ej                  fd	ed
eeef   deeef   dd fdZej                  ej                  fd	ed
eeef   deeef   defdZej                  ej                  fd	ed
eeef   deeef   defdZdefdZ xZS )BundleCloneInstancec                   $    e Zd ZdZdZdZdZdZdZy)BundleCloneInstance.Statusdraftzpending-reviewz	in-reviewztwilio-rejectedztwilio-approvedzprovisionally-approvedN)	__name__
__module____qualname__DRAFTPENDING_REVIEW	IN_REVIEWTWILIO_REJECTEDTWILIO_APPROVEDPROVISIONALLY_APPROVED     a/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/numbers/v2/bundle_clone.pyStatusr      s!    )	++!9r   r!   versionpayload
bundle_sidc                    t         |   |       |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        |j                  d      | _        t        j                  |j                  d            | _
        |j                  d      | _        |j                  d      | _        t        j                  |j                  d	            | _        t        j                  |j                  d
            | _        |j                  d      | _        d|xs | j                  i| _        d | _        y )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,   r-   r.   r/   	_solution_context)selfr"   r#   r$   	__class__s       r    r1   zBundleCloneInstance.__init__1   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                     | 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: BundleCloneContext for this BundleCloneInstance
        r$   r$   )r5   BundleCloneContext_versionr4   r6   s    r    _proxyzBundleCloneInstance._proxyP   s9     == .>>,7DM }}r   target_account_sidmove_to_draftr(   c                 >    | j                   j                  |||      S )  
        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
        r@   r(   )r>   creater6   r?   r@   r(   s       r    rD   zBundleCloneInstance.create_   s)     {{!!'' " 
 	
r   c                 Z   K   | j                   j                  |||       d{   S 7 w)  
        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
        rC   N)r>   create_asyncrE   s       r    rH   z BundleCloneInstance.create_asynct   s7      [[--'' . 
 
 	
 
   "+)+c                 >    | j                   j                  |||      S )a  
        Create the BundleCloneInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        rC   )r>   create_with_http_inforE   s       r    rK   z)BundleCloneInstance.create_with_http_info   s)     {{00'' 1 
 	
r   c                 Z   K   | j                   j                  |||       d{   S 7 w)a  
        Asynchronous coroutine to create the BundleCloneInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        rC   N)r>   create_with_http_info_asyncrE   s       r    rM   z/BundleCloneInstance.create_with_http_info_async   s7      [[<<'' = 
 
 	
 
rI   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/BundleCloneInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z*<Twilio.Numbers.V2.BundleCloneInstance {}>joinr4   itemsrT   r6   contexts     r    __repr__zBundleCloneInstance.__repr__   s6     ((SDNN<P<P<RSS;BB7KKr   )N)r8   r;   )r   r   r   objectr!   r   r   strr   r   r1   propertyr>   r
   unsetr   boolrD   rH   r   rK   rM   ra   __classcell__r7   s   @r    r   r      s   : :$ %)	;; c3h; SM	;>  " .4\\,2LL	

 T6\*
 S&[)	

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

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

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

 

*L# Lr   r   c            	       P    e Zd Zdedef fdZej                  ej                  fdedee	e
f   deee
f   defdZej                  ej                  fdedee	e
f   deee
f   defd	Zej                  ej                  fdedee	e
f   deee
f   defd
Zej                  ej                  fdedee	e
f   deee
f   defdZej                  ej                  fdedee	e
f   deee
f   defdZej                  ej                  fdedee	e
f   deee
f   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 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   )r0   r1   r4   rT   _uri)r6   r"   r$   r7   s      r    r1   zBundleCloneContext.__init__   sF     	! *
 OGNN 
nn
	r   r?   r@   r(   r8   c                     t        j                  |t        j                  |      |d      }t        j                  i       }d|d<   d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for create operation

        Returns:
            tuple: (payload, status_code, headers)
        TargetAccountSidMoveToDraftFriendlyName!application/x-www-form-urlencodedContent-Typeapplication/jsonAcceptPOSTmethoduridataheaders)r
   ofr	   boolean_to_stringr<   create_with_response_infork   r6   r?   r@   r(   ry   rz   s         r    _createzBundleCloneContext._create   sw     yy$6(::=I -
 ))B-"E.}}66tyytW 7 
 	
r   c                 |    | j                  |||      \  }}}t        | j                  || j                  d         S )rB   r?   r@   r(   r$   r:   )r   r   r<   r4   r6   r?   r@   r(   r#   _s         r    rD   zBundleCloneContext.create   sI     1'' % 
A
 #MM7t~~l/K
 	
r   c                     | j                  |||      \  }}}t        | j                  || j                  d         }t	        |||      S )a  
        Create the BundleCloneInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r   r$   r:   ry   status_coderz   )r   r   r<   r4   r   r6   r?   r@   r(   r#   r   rz   instances           r    rK   z(BundleCloneContext.create_with_http_info  sX     )-1'' )5 )
%g
 'MM7t~~l/K
 k7SSr   c                   K   t        j                  |t        j                  |      |d      }t        j                  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)
        rm   rq   rr   rs   rt   ru   rv   N)r
   r{   r	   r|   r<   create_with_response_info_asyncrk   r~   s         r    _create_asyncz BundleCloneContext._create_async  s      yy$6(::=I -
 ))B-"E.]]BBtyytW C 
 
 	
 
s   A8B:A?;Bc                    K   | j                  |||       d{   \  }}}t        | j                  || j                  d         S 7 -w)rG   r   Nr$   r:   )r   r   r<   r4   r   s         r    rH   zBundleCloneContext.create_async=  sY      #001'' 1 
 
A
 #MM7t~~l/K
 	

s   A
A.A
c                    K   | j                  |||       d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)a  
        Asynchronous coroutine to create the BundleCloneInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r   Nr$   r:   r   )r   r   r<   r4   r   r   s           r    rM   z.BundleCloneContext.create_with_http_info_asyncU  si      /3.@.@1'' /A /
 )
%g
 'MM7t~~l/K
 k7SS)
s   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )rO   rP   c              3   F   K   | ]  \  }}d j                  ||        ywrR   rS   rU   s      r    rY   z.BundleCloneContext.__repr__.<locals>.<genexpr>t  rZ   r[   z)<Twilio.Numbers.V2.BundleCloneContext {}>r\   r_   s     r    ra   zBundleCloneContext.__repr__n  s6     ((SDNN<P<P<RSS:AA'JJr   )r   r   r   r   rc   r1   r
   re   r   rf   rb   tupler   r   rD   r   rK   r   rH   rM   ra   rg   rh   s   @r    r;   r;      s   
 
S 
( .4\\,2LL	

 T6\*
 S&[)	

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

 

6 .4\\,2LL	TT T6\*T S&[)	T
 
T8 .4\\,2LL	

 T6\*
 S&[)	

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

 

6 .4\\,2LL	TT T6\*T S&[)	T
 
T2K# Kr   r;   c                   P     e Zd Zdef 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 )BundleCloneListr"   c                 $    t         |   |       y)zm
        Initialize the BundleCloneList

        :param version: Version that contains the resource

        N)r0   r1   )r6   r"   r7   s     r    r1   zBundleCloneList.__init__z  s     	!r   r$   r8   c                 0    t        | j                  |      S z
        Constructs a BundleCloneContext

        :param bundle_sid: The unique string that identifies the Bundle to be cloned.
        r:   r;   r<   r6   r$   s     r    r2   zBundleCloneList.get       "$--JGGr   c                 0    t        | j                  |      S r   r   r   s     r    __call__zBundleCloneList.__call__  r   r   c                      y)rO   z#<Twilio.Numbers.V2.BundleCloneList>r   r=   s    r    ra   zBundleCloneList.__repr__  s     5r   )r   r   r   r   r1   rc   r;   r2   r   ra   rg   rh   s   @r    r   r   x  sI    " "Hc H&8 HH3 H+= H5# 5r   r   N)__doc__r   typingr   r   r   r   twilio.baser   r	   r
   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r;   r   r   r   r    <module>r      sY     - - 6 6 0 8 : 2 'aL* aLHxK xKv!5l !5r   