
    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 )DomainCertsInstancean  
    :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_expires: Date that the private certificate associated with this domain expires. You will need to update the certificate before that date to ensure your shortened links will continue to work.
    :ivar date_created: Date that this Domain was registered to the Twilio platform to create a new Domain object.
    :ivar domain_name: Full url path for this domain.
    :ivar certificate_sid: The unique string that we created to identify this Certificate resource.
    :ivar managed: Boolean field that indicates whether the certificate is managed by Twilio or uploaded by the customer.
    :ivar requesting: Boolean field that indicates whether a Twilio managed cert request is in progress or completed. True indicates a request is in progress and false indicates the request has completed or not requested yet.
    :ivar url:
    :ivar cert_in_validation: Optional JSON field describing the status and upload date of a new certificate in the process of validation
    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	      | _        |j                  d
      | _        d|xs | j                  i| _        d | _        y )Nr   date_updateddate_expiresdate_createddomain_namecertificate_sidmanaged
requestingurlcert_in_validation)super__init__getr   r   iso8601_datetimer   r   r   r   r   r   r   r   r   	_solution_context)selfr   r   r   	__class__s       c/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/messaging/v2/domain_certs.pyr   zDomainCertsInstance.__init__'   s    	!)0\)B0;0L0LKK'1
 1<0L0LKK'1
 1<0L0LKK'1
 +2++m*D.5kk:K.L'.{{9'=*1++l*C")++e"4?F{{ @

 *7
 7;    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: DomainCertsContext for this DomainCertsInstance
        r   r   )r"   DomainCertsContext_versionr!   r#   s    r%   _proxyzDomainCertsInstance._proxyG   s9     == .>>,7DM }}r&   c                 6    | j                   j                         S )c
        Fetch the DomainCertsInstance


        :returns: The fetched DomainCertsInstance
        )r-   fetchr,   s    r%   r0   zDomainCertsInstance.fetchV   s     {{  ""r&   c                 R   K   | j                   j                          d{   S 7 w)}
        Asynchronous coroutine to fetch the DomainCertsInstance


        :returns: The fetched DomainCertsInstance
        N)r-   fetch_asyncr,   s    r%   r3   zDomainCertsInstance.fetch_async_   s!      [[,,....   '%'c                 6    | j                   j                         S )z
        Fetch the DomainCertsInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        )r-   fetch_with_http_infor,   s    r%   r6   z(DomainCertsInstance.fetch_with_http_infoh   s     {{//11r&   c                 R   K   | j                   j                          d{   S 7 w)z
        Asynchronous coroutine to fetch the DomainCertsInstance with HTTP info


        :returns: ApiResponse with instance, status code, and headers
        N)r-   fetch_with_http_info_asyncr,   s    r%   r8   z.DomainCertsInstance.fetch_with_http_info_asyncq   s!      [[;;====r4   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/DomainCertsInstance.__repr__.<locals>.<genexpr>        SDAq7>>!Q/S   !z,<Twilio.Messaging.V2.DomainCertsInstance {}>joinr!   itemsr?   r#   contexts     r%   __repr__zDomainCertsInstance.__repr__z   s6     ((SDNN<P<P<RSS=DDWMMr&   )N)r'   r*   )r'   r   )__name__
__module____qualname____doc__r   r   strr   r   r   propertyr-   r0   r3   r	   r6   r8   rL   __classcell__r$   s   @r%   r   r      s    " %)	;; c3h; SM	;@  #/2k 2>+ >N# N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 DomainCertsContext

        :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   z0/LinkShortening/Domains/{domain_sid}/CertificateN )r   r   r!   r?   _uri)r#   r   r   r$   s      r%   r   zDomainCertsContext.__init__   sF     	! *
 NFMM 
nn
	r&   r'   c                     t        j                  i       }d|d<   | j                  j                  d| j                  |      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        application/jsonAcceptGETmethoduriheaders)r   ofr+   fetch_with_response_inforX   r#   r`   s     r%   _fetchzDomainCertsContext._fetch   sB     ))B-.}}55dii 6 
 	
r&   c                 t    | j                         \  }}}t        | j                  || j                  d         S )r/   r   r)   )rd   r   r+   r!   r#   r   _s      r%   r0   zDomainCertsContext.fetch   s8     A"MM~~l3
 	
r&   c                     | j                         \  }}}t        | j                  || j                  d         }t	        |||      S )z
        Fetch the DomainCertsInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        r   r)   datastatus_coder`   )rd   r   r+   r!   r	   r#   r   rk   r`   instances        r%   r6   z'DomainCertsContext.fetch_with_http_info   sG     )-%g&MM~~l3

 k7SSr&   c                    K   t        j                  i       }d|d<   | j                  j                  d| j                  |       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        rZ   r[   r\   r]   N)r   ra   r+   fetch_with_response_info_asyncrX   rc   s     r%   _fetch_asynczDomainCertsContext._fetch_async   sQ      ))B-.]]AAdii B 
 
 	
 
s   AAA	Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         S 7 -w)r2   Nr   r)   )rp   r   r+   r!   rf   s      r%   r3   zDomainCertsContext.fetch_async   sG      #//11A"MM~~l3
 	
 2s   AA.Ac                    K   | j                          d{   \  }}}t        | j                  || j                  d         }t	        |||      S 7 ;w)z
        Asynchronous coroutine to fetch the DomainCertsInstance and return response metadata


        :returns: ApiResponse with instance, status code, and headers
        Nr   r)   ri   )rp   r   r+   r!   r	   rl   s        r%   r8   z-DomainCertsContext.fetch_with_http_info_async   sW      /3.?.?.A(A%g&MM~~l3

 k7SS )Bs   AA<Ac                     dj                  d | j                  j                         D              }dj                  |      S )r:   r;   c              3   F   K   | ]  \  }}d j                  ||        ywr=   r>   r@   s      r%   rD   z.DomainCertsContext.__repr__.<locals>.<genexpr>   rE   rF   z+<Twilio.Messaging.V2.DomainCertsContext {}>rG   rJ   s     r%   rL   zDomainCertsContext.__repr__   s6     ((SDNN<P<P<RSS<CCGLLr&   )rM   rN   rO   r   rQ   r   tuplerd   r   r0   r	   r6   rp   r3   r8   rL   rS   rT   s   @r%   r*   r*      sr    
 
S 
"
 
 
* 
Tk T
E 
 
#6 
T+ TM# M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 )DomainCertsListr   c                 $    t         |   |       y)zm
        Initialize the DomainCertsList

        :param version: Version that contains the resource

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

        :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DomainCertsList.get       "$--JGGr&   c                 0    t        | j                  |      S rz   r{   r|   s     r%   __call__zDomainCertsList.__call__  r}   r&   c                      y)r:   z%<Twilio.Messaging.V2.DomainCertsList>rW   r,   s    r%   rL   zDomainCertsList.__repr__  s     7r&   )rM   rN   rO   r   r   rQ   r*   r   r   rL   rS   rT   s   @r%   rw   rw      sI    " "Hc H&8 HH3 H+= H7# 7r&   rw   N)rP   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*   rw   rW   r&   r%   <module>r      sV     & & + 0 8 : 2 'hN* hNVtM tMn!7l !7r&   