
    pi                         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
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)InstanceContext)InstanceResource)ListResource)Versionc                   r     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 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       o/opt/services/ai/voice_agent/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._proxyB   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.updateQ   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#   r1   z'RequestManagedCertInstance.update_asyncZ   s!      [[--////s   '%'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>i        SDAq7>>!Q/S   !z3<Twilio.Messaging.V1.RequestManagedCertInstance {}>joinr   itemsr8   r!   contexts     r#   __repr__z#RequestManagedCertInstance.__repr__c   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.   r1   rE   __classcell__r"   s   @r#   r   r      sj    
  %)	BB c3hB SM	B:  $0U# Ur$   r   c                   L     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	 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   r8   _uri)r!   r   r   r"   s      r#   r   z"RequestManagedCertContext.__init__o   sF     	! *
 UMTT 
nn
	r$   r%   c                     t        j                  i       }t        j                  i       }d|d<   | j                  j                  d| j                  ||      }t        | j                  || j                  d         S )r-   application/jsonAcceptPOSTmethoduridataheadersr   r'   )r   ofr)   r.   rQ   r   r   r!   rY   rZ   r   s       r#   r.   z RequestManagedCertContext.update   sq     yy}))B-.--&&tyytW ' 
 *MM7t~~l/K
 	
r$   c                   K   t        j                  i       }t        j                  i       }d|d<   | j                  j                  d| j                  ||       d{   }t        | j                  || j                  d         S 7 )w)r0   rS   rT   rU   rV   Nr   r'   )r   r[   r)   r1   rQ   r   r   r\   s       r#   r1   z&RequestManagedCertContext.update_async   s      yy}))B-.22tyytW 3 
 
 *MM7t~~l/K
 	
	
s   AB
B*B
c                     dj                  d | j                  j                         D              }dj                  |      S )r3   r4   c              3   F   K   | ]  \  }}d j                  ||        ywr6   r7   r9   s      r#   r=   z5RequestManagedCertContext.__repr__.<locals>.<genexpr>   r>   r?   z2<Twilio.Messaging.V1.RequestManagedCertContext {}>r@   rC   s     r#   rE   z"RequestManagedCertContext.__repr__   s6     ((SDNN<P<P<RSSCJJ7SSr$   )rF   rG   rH   r   rJ   r   r   r.   r1   rE   rL   rM   s   @r#   r(   r(   m   s>    
 
S 
"
2 
*
$> 
*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 rd   re   rf   s     r#   __call__zRequestManagedCertList.__call__   rg   r$   c                      y)r3   z,<Twilio.Messaging.V1.RequestManagedCertList>rP   r*   s    r#   rE   zRequestManagedCertList.__repr__   s     >r$   )rF   rG   rH   r   r   rJ   r(   r   ri   rE   rL   rM   s   @r#   ra   ra      sI    " "Oc O&? OO3 O+D O># >r$   ra   N)rI   r   typingr   r   r   twilio.baser   r   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r(   ra   rP   r$   r#   <module>rq      sS     & & + 8 : 2 'RU!1 RUjDT DTN!>\ !>r$   