
    p h~                         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
e          Z G d de          Z G 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                        e Zd ZdZdedeeef         f fdZe	dd            Z
ej        fdeeef         dd fd	Zej        fdeeef         dd fd
ZdefdZ x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                     t                                          |           |                    d          | _        d | _        d S )Nredirect_to)super__init__getr   _context)selfr   r   	__class__s      b/var/www/html/Sam_Eipo/venv/lib/python3.11/site-packages/twilio/rest/messaging/v1/deactivations.pyr   zDeactivationsInstance.__init__   s:    !!!*1++m*D*D8<    returnDeactivationsContextc                 P    | j         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
        )r   r   _versionr   s    r   _proxyzDeactivationsInstance._proxy$   s,     = 0 DM }r   r   c                 8    | j                             |          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   s     r   r%   zDeactivationsInstance.fetch2   s&     {   ! 
 
 	
r   c                 H   K   | j                             |           d{V 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&   s     r   r)   z!DeactivationsInstance.fetch_async@   sH       [,, - 
 
 
 
 
 
 
 
 	
r   c                     dS )f
        Provide a friendly representation

        :returns: Machine friendly representation
        z+<Twilio.Messaging.V1.DeactivationsInstance> r!   s    r   __repr__zDeactivationsInstance.__repr__N   s
     =<r   )r   r   )__name__
__module____qualname____doc__r   r   strr   r   propertyr"   r
   unsetr   r   objectr%   r)   r-   __classcell__r   s   @r   r   r      s
        = =$sCx. = = = = = =    X +1,
 
$,'
	 
 
 
 
 +1,
 
$,'
	 
 
 
 
=# = = = = = = = =r   r   c                        e Zd Zdef fdZej        fdeee	f         de
fdZej        fdeee	f         de
fdZdefdZ xZS )r   r   c                 X    t                                          |           d| _        dS )zq
        Initialize the DeactivationsContext

        :param version: Version that contains the resource
        z/DeactivationsN)r   r   _urir   r   r   s     r   r   zDeactivationsContext.__init__Z   s(     	!!!$			r   r   r   c                     t          j        dt          j        |          i          }t          j        i           }d|d<   | j                            d| j        ||          }t          | j        |          S )r$   Dateapplication/jsonAcceptGETmethoduriparamsheaders)r
   ofr	   iso8601_dater    r%   r:   r   r   r   datarE   r   s        r   r%   zDeactivationsContext.fetchd   s     y	.t44
 
 )B--.-%%dig & 
 
 %M
 
 	
r   c                   K   t          j        dt          j        |          i          }t          j        i           }d|d<   | j                            d| j        ||           d{V }t          | j        |          S )r(   r=   r>   r?   r@   rA   N)r
   rF   r	   rG   r    r)   r:   r   rH   s        r   r)   z DeactivationsContext.fetch_async   s       y	.t44
 
 )B--.11dig 2 
 
 
 
 
 
 
 
 %M
 
 	
r   c                     dS )r+   z*<Twilio.Messaging.V1.DeactivationsContext>r,   r!   s    r   r-   zDeactivationsContext.__repr__   s
     <;r   )r.   r/   r0   r   r   r
   r4   r   r   r5   r   r%   r)   r2   r-   r6   r7   s   @r   r   r   X   s        % % % % % % % 17 
 
%f- 
AV 
 
 
 
: +1,
 
$,'
	
 
 
 
<<# < < < < < < < <r   r   c                   H     e Zd Zdef fdZdefdZdefdZdefdZ	 xZ
S )DeactivationsListr   c                 J    t                                          |           dS )zo
        Initialize the DeactivationsList

        :param version: Version that contains the resource

        N)r   r   r;   s     r   r   zDeactivationsList.__init__   s#     	!!!!!r   r   c                 *    t          | j                  S z4
        Constructs a DeactivationsContext

        r   r    r!   s    r   r   zDeactivationsList.get       
 $DM222r   c                 *    t          | j                  S rP   rQ   r!   s    r   __call__zDeactivationsList.__call__   rR   r   c                     dS )r+   z'<Twilio.Messaging.V1.DeactivationsList>r,   r!   s    r   r-   zDeactivationsList.__repr__   s
     98r   )r.   r/   r0   r   r   r   r   rT   r2   r-   r6   r7   s   @r   rM   rM      s        " " " " " " "3) 3 3 3 33. 3 3 3 39# 9 9 9 9 9 9 9 9r   rM   N)r1   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   rM   r,   r   r   <module>r]      s:          - - - - - - - - - - - - ) ) ) ) ) ) ) ) 8 8 8 8 8 8 : : : : : : 2 2 2 2 2 2 ' ' ' ' ' '== == == == ==, == == ==@M< M< M< M< M<? M< M< M<`9 9 9 9 9 9 9 9 9 9r   