
    d{i!%                         d Z ddlmZ ddl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  G d
 de      Z G d de      Z G d de      Zy)a  
    This code was generated by
   ___ _ _ _ _ _    _ ____    ____ ____ _    ____ ____ _  _ ____ ____ ____ ___ __   __
    |  | | | | |    | |  | __ |  | |__| | __ | __ |___ |\ | |___ |__/ |__|  | |  | |__/
    |  |_|_| | |___ | |__|    |__| |  | |    |__] |___ | \| |___ |  \ |  |  | |__| |  \

    Twilio - Messaging
    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)deserializevalues)ApiResponse)InstanceContext)InstanceResource)ListResource)Versionc                        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dZdd	Zdefd
ZdefdZdefdZ xZS )RequestManagedCertInstancea  
    :ivar domain_sid: The unique string that we created to identify the Domain resource.
    :ivar date_updated: Date that this Domain was last updated.
    :ivar date_created: Date that this Domain was registered to the Twilio platform to create a new Domain object.
    :ivar date_expires: Date that the private certificate associated with this domain expires. This is the expiration date of your existing cert.
    :ivar domain_name: Full url path for this domain.
    :ivar certificate_sid: The unique string that we created to identify this Certificate resource.
    :ivar url:
    :ivar managed: A boolean flag indicating if the certificate is managed by Twilio.
    :ivar requesting: A boolean flag indicating if a managed certificate needs to be fulfilled by Twilio.
    versionpayload
domain_sidc                 ^   t         |   |       |j                  d      | _        t	        j
                  |j                  d            | _        t	        j
                  |j                  d            | _        t	        j
                  |j                  d            | _        |j                  d      | _	        |j                  d      | _
        |j                  d      | _        |j                  d      | _        |j                  d	      | _        d|xs | j                  i| _        d | _        y )
Nr   date_updateddate_createddate_expiresdomain_namecertificate_sidurlmanaged
requesting)super__init__getr   r   iso8601_datetimer   r   r   r   r   r   r   r   	_solution_context)selfr   r   r   	__class__s       k/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/messaging/v1/request_managed_cert.pyr   z#RequestManagedCertInstance.__init__&   s     	!)0\)B0;0L0LKK'1
 1<0L0LKK'1
 1<0L0LKK'1
 +2++m*D.5kk:K.L")++e"4'.{{9'=*1++l*C *7
 >B    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: RequestManagedCertContext for this RequestManagedCertInstance
        r   r   )r!   RequestManagedCertContext_versionr    r"   s    r$   _proxyz!RequestManagedCertInstance._proxyC   s9     == 5>>,7DM }}r%   c                 6    | j                   j                         S )r
        Update the RequestManagedCertInstance


        :returns: The updated RequestManagedCertInstance
        )r,   updater+   s    r$   r/   z!RequestManagedCertInstance.updateR   s     {{!!##r%   c                 R   K   | j                   j                          d{   S 7 w)
        Asynchronous coroutine to update the RequestManagedCertInstance


        :returns: The updated RequestManagedCertInstance
        N)r,   update_asyncr+   s    r$   r2   z'RequestManagedCertInstance.update_async[   s!      [[--////   '%'c                 6    | j                   j                         S )z
        Update the RequestManagedCertInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r,   update_with_http_infor+   s    r$   r5   z0RequestManagedCertInstance.update_with_http_infod   s     {{0022r%   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to update the RequestManagedCertInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r,   update_with_http_info_asyncr+   s    r$   r7   z6RequestManagedCertInstance.update_with_http_info_asyncm   s!      [[<<>>>>r3   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>z6RequestManagedCertInstance.__repr__.<locals>.<genexpr>|        SDAq7>>!Q/S   !z3<Twilio.Messaging.V1.RequestManagedCertInstance {}>joinr    itemsr>   r"   contexts     r$   __repr__z#RequestManagedCertInstance.__repr__v   s6     ((SDNN<P<P<RSSDKKGTTr%   )N)r&   r)   )r&   r   )__name__
__module____qualname____doc__r   r   strr   r   r   propertyr,   r/   r2   r	   r5   r7   rK   __classcell__r#   s   @r$   r   r      s    
  %)	BB c3hB SM	B:  $03{ 3?; ?U# U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 xZS )r)   r   r   c                 x    t         |   |       d|i| _         dj                  di | j                  | _        y)z
        Initialize the RequestManagedCertContext

        :param version: Version that contains the resource
        :param domain_sid: Unique string used to identify the domain that this certificate should be associated with.
        r   z7/LinkShortening/Domains/{domain_sid}/RequestManagedCertN )r   r   r    r>   _uri)r"   r   r   r#   s      r$   r   z"RequestManagedCertContext.__init__   sF     	! *
 UMTT 
nn
	r%   r&   c                     t        j                  i       }t        j                  i       }d|d<   | j                  j                  d| j                  ||      S )z{
        Internal helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptPOSTmethoduridataheaders)r   ofr*   update_with_response_inforW   r"   r_   r`   s      r$   _updatez!RequestManagedCertContext._update   sQ     yy}))B-.}}66tyytW 7 
 	
r%   c                 t    | j                         \  }}}t        | j                  || j                  d         S )r.   r   r(   )rd   r   r*   r    r"   r   _s      r$   r/   z RequestManagedCertContext.update   s6     A)MM7t~~l/K
 	
r%   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Update the RequestManagedCertInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r(   r_   status_coder`   )rd   r   r*   r    r	   r"   r   rj   r`   instances        r$   r5   z/RequestManagedCertContext.update_with_http_info   sE     )-%g-MM7t~~l/K
 k7SSr%   c                    K   t        j                  i       }t        j                  i       }d|d<   | j                  j                  d| j                  ||       d{   S 7 w)z
        Internal async helper for update operation

        Returns:
            tuple: (payload, status_code, headers)
        rY   rZ   r[   r\   N)r   ra   r*   update_with_response_info_asyncrW   rc   s      r$   _update_asyncz'RequestManagedCertContext._update_async   s`      yy}))B-.]]BBtyytW C 
 
 	
 
s   AA%A#A%c                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)r1   Nr   r(   )ro   r   r*   r    rf   s      r$   r2   z&RequestManagedCertContext.update_async   sE      #0022A)MM7t~~l/K
 	
 3s   AA.Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronous coroutine to update the RequestManagedCertInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r(   ri   )ro   r   r*   r    r	   rk   s        r$   r7   z5RequestManagedCertContext.update_with_http_info_async   sU      /3.@.@.B(B%g-MM7t~~l/K
 k7SS	 )Cs   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )r9   r:   c              3   F   K   | ]  \  }}d j                  ||        ywr<   r=   r?   s      r$   rC   z5RequestManagedCertContext.__repr__.<locals>.<genexpr>   rD   rE   z2<Twilio.Messaging.V1.RequestManagedCertContext {}>rF   rI   s     r$   rK   z"RequestManagedCertContext.__repr__   s6     ((SDNN<P<P<RSSCJJ7SSr%   )rL   rM   rN   r   rP   r   tuplerd   r   r/   r	   r5   ro   r2   r7   rK   rR   rS   s   @r$   r)   r)      sr    
 
S 
"
 
"

2 

T{ T
U 
"

$> 

T; TT# T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 )RequestManagedCertListr   c                 $    t         |   |       y)zt
        Initialize the RequestManagedCertList

        :param version: Version that contains the resource

        N)r   r   )r"   r   r#   s     r$   r   zRequestManagedCertList.__init__   s     	!r%   r   r&   c                 0    t        | j                  |      S z
        Constructs a RequestManagedCertContext

        :param domain_sid: Unique string used to identify the domain that this certificate should be associated with.
        r(   r)   r*   r"   r   s     r$   r   zRequestManagedCertList.get        ):NNr%   c                 0    t        | j                  |      S ry   rz   r{   s     r$   __call__zRequestManagedCertList.__call__  r|   r%   c                      y)r9   z,<Twilio.Messaging.V1.RequestManagedCertList>rV   r+   s    r$   rK   zRequestManagedCertList.__repr__  s     >r%   )rL   rM   rN   r   r   rP   r)   r   r~   rK   rR   rS   s   @r$   rv   rv      sI    " "Oc O&? OO3 O+D O># >r%   rv   N)rO   r   typingr   r   r   twilio.baser   r   twilio.base.api_responser	   twilio.base.instance_contextr
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r)   rv   rV   r%   r$   <module>r      sV     & & + 0 8 : 2 'dU!1 dUNnT nTb!>\ !>r%   