
    g                         S r SSKJr  SSKJrJrJr  SSKJrJr  SSK	J
r
  SSKJr  SSKJr  SSKJr   " S	 S
\5      r " S S\
5      r " S S\5      rg)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S rSrSr SS\S\\\4   S\	\   4U 4S jjjr
\SS j5       rSS	 jrSS
 jrS\4S jrSrU =r$ )RequestManagedCertInstance   a  
: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                 n  > [         TU ]  U5        UR                  S5      U l        [        R
                  " UR                  S5      5      U l        [        R
                  " UR                  S5      5      U l        [        R
                  " UR                  S5      5      U l        UR                  S5      U l	        UR                  S5      U l
        UR                  S5      U l        UR                  S5      U l        UR                  S	5      U l        SU=(       d    U R                  0U l        S U l        g )
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       u/Users/Alptekin/Desktop/izin_takip/venv/lib/python3.13/site-packages/twilio/rest/messaging/v1/request_managed_cert.pyr   #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                     U R                   c&  [        U R                  U R                  S   S9U l         U R                   $ )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$   _proxy!RequestManagedCertInstance._proxyB   s9     == 5>>,7DM }}r&   c                 6    U R                   R                  5       $ )Z
Update the RequestManagedCertInstance


:returns: The updated RequestManagedCertInstance
)r-   updater,   s    r$   r1   !RequestManagedCertInstance.updateQ   s     {{!!##r&   c                 R   #    U R                   R                  5       I Sh  vN $  N7f)t
Asynchronous coroutine to update the RequestManagedCertInstance


:returns: The updated RequestManagedCertInstance
N)r-   update_asyncr,   s    r$   r5   'RequestManagedCertInstance.update_asyncZ   s       [[--////s   '%'c                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )N
Provide a friendly representation

:returns: Machine friendly representation
 c              3   H   #    U  H  u  pS R                  X5      v   M     g7fz{}={}Nformat.0kvs      r$   	<genexpr>6RequestManagedCertInstance.__repr__.<locals>.<genexpr>i         S<RDA7>>!//<R    "z3<Twilio.Messaging.V1.RequestManagedCertInstance {}>joinr    itemsr=   r"   contexts     r$   __repr__#RequestManagedCertInstance.__repr__c   s6     ((SDNN<P<P<RSSDKKGTTr&   )r!   r    r   r   r   r   r   r   r   r   r   )N)r'   r*   )r'   r   )__name__
__module____qualname____firstlineno____doc__r   r   strr   r   r   propertyr-   r1   r5   rK   __static_attributes____classcell__r#   s   @r$   r   r      sv    
  %)	BB c3hB SM	B B:  $0U# U Ur&   r   c                   ^   ^  \ rS rSrS\S\4U 4S jjrS\4S jrS\4S jr	S\4S jr
S	rU =r$ )
r*   m   r   r   c                 x   > [         TU ]  U5        SU0U l        SR                  " S0 U R                  D6U l        g)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   "RequestManagedCertContext.__init__o   sC     	! *
 NTT 
nn
	r&   r'   c                     [         R                  " 0 5      n[         R                  " 0 5      nSUS'   U R                  R                  SU R                  XS9n[        U R                  X0R                  S   S9$ )r0   application/jsonAcceptPOSTmethoduridataheadersr   r)   )r   ofr+   r1   r[   r   r    r"   rd   re   r   s       r$   r1    RequestManagedCertContext.update   sm     yy}))B-.--&&tyyt ' 
 *MM7~~l/K
 	
r&   c                   #    [         R                  " 0 5      n[         R                  " 0 5      nSUS'   U R                  R                  SU R                  XS9I Sh  vN n[        U R                  X0R                  S   S9$  N%7f)r4   r^   r_   r`   ra   Nr   r)   )r   rf   r+   r5   r[   r   r    rg   s       r$   r5   &RequestManagedCertContext.update_async   sz      yy}))B-.22tyyt 3 
 
 *MM7~~l/K
 	
	
s   ABB&Bc                     SR                  S U R                  R                  5        5       5      nSR                  U5      $ )r8   r9   c              3   H   #    U  H  u  pS R                  X5      v   M     g7fr;   r<   r>   s      r$   rB   5RequestManagedCertContext.__repr__.<locals>.<genexpr>   rD   rE   z2<Twilio.Messaging.V1.RequestManagedCertContext {}>rF   rI   s     r$   rK   "RequestManagedCertContext.__repr__   s6     ((SDNN<P<P<RSSCJJ7SSr&   )r    r[   )rM   rN   rO   rP   r   rR   r   r   r1   r5   rK   rT   rU   rV   s   @r$   r*   r*   m   sD    
 
S 
"
2 
*
$> 
*T# T Tr&   r*   c                   b   ^  \ rS rSrS\4U 4S jjrS\S\4S jrS\S\4S jr	S\4S jr
S	rU =r$ )
RequestManagedCertList   r   c                 $   > [         TU ]  U5        g)z\
Initialize the RequestManagedCertList

:param version: Version that contains the resource

N)r   r   )r"   r   r#   s     r$   r   RequestManagedCertList.__init__   s     	!r&   r   r'   c                 *    [        U R                  US9$ 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   RequestManagedCertList.get        ):NNr&   c                 *    [        U R                  US9$ ru   rv   rw   s     r$   __call__RequestManagedCertList.__call__   ry   r&   c                     g)r8   z,<Twilio.Messaging.V1.RequestManagedCertList>rZ   r,   s    r$   rK   RequestManagedCertList.__repr__   s     >r&   rZ   )rM   rN   rO   rP   r   r   rR   r*   r   r{   rK   rT   rU   rV   s   @r$   rp   rp      sN    " "Oc O&? OO3 O+D O># > >r&   rp   N)rQ   r   typingr   r   r   twilio.baser   r   twilio.base.instance_contextr	   twilio.base.instance_resourcer
   twilio.base.list_resourcer   twilio.base.versionr   r   r*   rp   rZ   r&   r$   <module>r      sS     & & + 8 : 2 'RU!1 RUjDT DTN!>\ !>r&   