U
    ^g%i                     @   s   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 G d	d
 d
eZG dd de
ZG dd deZdS )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)InstanceContext)InstanceResource)ListResource)Versionc                       st   e Zd ZdZdeeeef ee d fddZ	e
dddd	Zd dd
dZd dddZedddZ  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.
    N)versionpayload
domain_sidc                    s   t  | |d| _t|d| _t|d| _t|d| _|d| _	|d| _
|d| _|d| _|d	| _d|p| ji| _d | _d S )
Nr   date_updateddate_createddate_expiresdomain_namecertificate_sidurlmanaged
requesting)super__init__getr   r   Ziso8601_datetimer   r   r   r   r   r   r   r   	_solution_context)selfr   r   r   	__class__ l/var/www/html/api-medvista/venv/lib/python3.8/site-packages/twilio/rest/messaging/v1/request_managed_cert.pyr   %   s(     z#RequestManagedCertInstance.__init__RequestManagedCertContextreturnc                 C   s&   | j dkr t| j| jd 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
        Nr   r   )r   r"   _versionr   r   r    r    r!   _proxyB   s    
z!RequestManagedCertInstance._proxyc                 C   s
   | j  S )r
        Update the RequestManagedCertInstance


        :returns: The updated RequestManagedCertInstance
        )r(   updater'   r    r    r!   r*   Q   s    z!RequestManagedCertInstance.updatec                    s   | j  I dH S )
        Asynchronous coroutine to update the RequestManagedCertInstance


        :returns: The updated RequestManagedCertInstance
        N)r(   update_asyncr'   r    r    r!   r,   Z   s    z'RequestManagedCertInstance.update_asyncc                 C   s$   d dd | j D }d|S )f
        Provide a friendly representation

        :returns: Machine friendly representation
         c                 s   s   | ]\}}d  ||V  qdS z{}={}Nformat.0kvr    r    r!   	<genexpr>i   s     z6RequestManagedCertInstance.__repr__.<locals>.<genexpr>z3<Twilio.Messaging.V1.RequestManagedCertInstance {}>joinr   itemsr1   r   contextr    r    r!   __repr__c   s    z#RequestManagedCertInstance.__repr__)N)__name__
__module____qualname____doc__r   r   strr   r   r   propertyr(   r*   r,   r<   __classcell__r    r    r   r!   r      s    
		r   c                       sN   e Zd Zeed fddZedddZedddZedd	d
Z	  Z
S )r"   )r   r   c                    s*   t  | d|i| _djf | j| _dS )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   r1   _uri)r   r   r   r   r    r!   r   o   s     z"RequestManagedCertContext.__init__r#   c                 C   sH   t i }t i }d|d< | jjd| j||d}t| j|| jd dS )r)   application/jsonAcceptPOSTmethoduridataheadersr   r%   )r   ofr&   r*   rD   r   r   r   rK   rL   r   r    r    r!   r*      s    

     z RequestManagedCertContext.updatec                    sN   t i }t i }d|d< | jjd| j||dI dH }t| j|| jd dS )r+   rE   rF   rG   rH   Nr   r%   )r   rM   r&   r,   rD   r   r   rN   r    r    r!   r,      s    

     z&RequestManagedCertContext.update_asyncc                 C   s$   d dd | j D }d|S )r-   r.   c                 s   s   | ]\}}d  ||V  qdS r/   r0   r2   r    r    r!   r6      s     z5RequestManagedCertContext.__repr__.<locals>.<genexpr>z2<Twilio.Messaging.V1.RequestManagedCertContext {}>r7   r:   r    r    r!   r<      s    z"RequestManagedCertContext.__repr__)r=   r>   r?   r   rA   r   r   r*   r,   r<   rC   r    r    r   r!   r"   m   s   r"   c                       sP   e Zd Zed fddZeedddZeedddZed	d
dZ	  Z
S )RequestManagedCertList)r   c                    s   t  | dS )zt
        Initialize the RequestManagedCertList

        :param version: Version that contains the resource

        N)r   r   )r   r   r   r    r!   r      s    zRequestManagedCertList.__init__)r   r$   c                 C   s   t | j|d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   r    r    r!   r      s    zRequestManagedCertList.getc                 C   s   t | j|dS rP   rQ   rR   r    r    r!   __call__   s    zRequestManagedCertList.__call__r#   c                 C   s   dS )r-   z,<Twilio.Messaging.V1.RequestManagedCertList>r    r'   r    r    r!   r<      s    zRequestManagedCertList.__repr__)r=   r>   r?   r   r   rA   r"   r   rS   r<   rC   r    r    r   r!   rO      s   	rO   N)r@   r   typingr   r   r   Ztwilio.baser   r   Ztwilio.base.instance_contextr   Ztwilio.base.instance_resourcer	   Ztwilio.base.list_resourcer
   Ztwilio.base.versionr   r   r"   rO   r    r    r    r!   <module>   s   UG