a
    !f                     @   s   d Z ddlmZ ddlmZ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.
    date)AnyDictOptionalUnion)	serializevalues)InstanceContext)InstanceResource)ListResource)Versionc                       s   e Zd ZdZeeeef d fddZe	ddddZ
ejfeeef d d	d
dZejfeeef d d	ddZedddZ  ZS )DeactivationsInstancez
    :ivar redirect_to: Returns an authenticated url that redirects to a file containing the deactivated numbers for the requested day. This url is valid for up to two minutes.
    )versionpayloadc                    s"   t  | |d| _d | _d S )Nredirect_to)super__init__getr   _context)selfr   r   	__class__ g/var/www/html/python-backend/venv/lib/python3.9/site-packages/twilio/rest/messaging/v1/deactivations.pyr      s    zDeactivationsInstance.__init__DeactivationsContextreturnc                 C   s   | j du rt| j| _ | 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: DeactivationsContext for this DeactivationsInstance
        N)r   r   _versionr   r   r   r   _proxy&   s
    
zDeactivationsInstance._proxyr   r   c                 C   s   | j j|dS )0  
        Fetch the DeactivationsInstance

        :param date: The request will return a list of all United States Phone Numbers that were deactivated on the day specified by this parameter. This date should be specified in YYYY-MM-DD format.

        :returns: The fetched DeactivationsInstance
        r   )r    fetchr   r   r   r   r   r#   4   s    
zDeactivationsInstance.fetchc                    s   | j j|dI dH S )J  
        Asynchronous coroutine to fetch the DeactivationsInstance

        :param date: The request will return a list of all United States Phone Numbers that were deactivated on the day specified by this parameter. This date should be specified in YYYY-MM-DD format.

        :returns: The fetched DeactivationsInstance
        r   N)r    fetch_asyncr$   r   r   r   r&   B   s    
z!DeactivationsInstance.fetch_asyncc                 C   s   dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z+<Twilio.Messaging.V1.DeactivationsInstance>r   r   r   r   r   __repr__P   s    zDeactivationsInstance.__repr__)__name__
__module____qualname____doc__r   r   strr   r   propertyr    r	   unsetr   r   objectr#   r&   r(   __classcell__r   r   r   r   r      s   

r   c                       sl   e Zd Zed fddZejfeee	f e
dddZejfeee	f e
dddZed	d
dZ  ZS )r   r   c                    s   t  | d| _dS )zq
        Initialize the DeactivationsContext

        :param version: Version that contains the resource
        z/DeactivationsN)r   r   _urir   r   r   r   r   r   [   s    zDeactivationsContext.__init__r!   c                 C   s4   t dt|i}| jjd| j|d}t| j|S )r"   DateGETmethoduriparams)r	   ofr   iso8601_dater   r#   r3   r   r   r   datar   r   r   r   r#   e   s    	
zDeactivationsContext.fetchc                    s:   t dt|i}| jjd| j|dI dH }t| j|S )r%   r5   r6   r7   N)r	   r;   r   r<   r   r&   r3   r   r=   r   r   r   r&   {   s    
z DeactivationsContext.fetch_asyncr   c                 C   s   dS )r'   z*<Twilio.Messaging.V1.DeactivationsContext>r   r   r   r   r   r(      s    zDeactivationsContext.__repr__)r)   r*   r+   r   r   r	   r/   r   r   r0   r   r#   r&   r-   r(   r1   r   r   r   r   r   Z   s   

r   c                       sL   e Zd Zed fddZedddZedddZedd	d
Z	  Z
S )DeactivationsListr2   c                    s   t  | dS )zo
        Initialize the DeactivationsList

        :param version: Version that contains the resource

        N)r   r   r4   r   r   r   r      s    zDeactivationsList.__init__r   c                 C   s
   t | jS z4
        Constructs a DeactivationsContext

        r   r   r   r   r   r   r      s    zDeactivationsList.getc                 C   s
   t | jS r@   rA   r   r   r   r   __call__   s    zDeactivationsList.__call__c                 C   s   dS )r'   z'<Twilio.Messaging.V1.DeactivationsList>r   r   r   r   r   r(      s    zDeactivationsList.__repr__)r)   r*   r+   r   r   r   r   rB   r-   r(   r1   r   r   r   r   r?      s   	r?   N)r,   datetimer   typingr   r   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   r?   r   r   r   r   <module>   s   AE