o
    f>h~                     @   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dedeeef f fddZe	ddd	Z
ejfd
eeef dd fddZejfd
eeef dd fddZdef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__ Y/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/messaging/v1/deactivations.pyr      s   
zDeactivationsInstance.__init__returnDeactivationsContextc                 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._proxyr   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!   2   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$   @   s   
z!DeactivationsInstance.fetch_asyncc                 C      dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z+<Twilio.Messaging.V1.DeactivationsInstance>r   r   r   r   r   __repr__N      zDeactivationsInstance.__repr__)r   r   )__name__
__module____qualname____doc__r   r   strr   r   propertyr   r	   unsetr   r   objectr!   r$   r'   __classcell__r   r   r   r   r      s$    



r   c                       sp   e Zd Zdef fddZejfdeee	f de
fddZejfdeee	f de
fdd	Zdef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   Z   s   
zDeactivationsContext.__init__r   r   c                 C   sH   t dt|i}t i }d|d< | jjd| j||d}t| j|S )r    Dateapplication/jsonAcceptGETmethoduriparamsheaders)r	   ofr   iso8601_dater   r!   r2   r   r   r   datar<   r   r   r   r   r!   d   s   	


zDeactivationsContext.fetchc                    sP   t dt|i}t i }d|d< | jjd| j||dI dH }t| j|S )r#   r4   r5   r6   r7   r8   N)r	   r=   r   r>   r   r$   r2   r   r?   r   r   r   r$      s   


z DeactivationsContext.fetch_asyncc                 C   r%   )r&   z*<Twilio.Messaging.V1.DeactivationsContext>r   r   r   r   r   r'      r(   zDeactivationsContext.__repr__)r)   r*   r+   r   r   r	   r/   r   r   r0   r   r!   r$   r-   r'   r1   r   r   r   r   r   X   s     


r   c                       sL   e Zd Zdef fddZdefddZdefddZdefd	d
Z	  Z
S )DeactivationsListr   c                    s   t  | dS )zo
        Initialize the DeactivationsList

        :param version: Version that contains the resource

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

        r   r   r   r   r   r   r         
zDeactivationsList.getc                 C   rB   rC   rD   r   r   r   r   __call__   rE   zDeactivationsList.__call__c                 C   r%   )r&   z'<Twilio.Messaging.V1.DeactivationsList>r   r   r   r   r   r'      s   zDeactivationsList.__repr__)r)   r*   r+   r   r   r   r   rF   r-   r'   r1   r   r   r   r   rA      s
    	rA   N)r,   datetimer   typingr   r   r   r   twilio.baser   r	   twilio.base.instance_contextr
   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r   rA   r   r   r   r   <module>   s    @P