
    d{i9$                         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 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.
    date)AnyDictOptionalUnion)	serializevalues)ApiResponse)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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 )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         |   |       |j                  d      | _        d | _        y )Nredirect_to)super__init__getr   _context)selfr   r   	__class__s      d/home/sas/my/fyp/ringai/.venv/lib/python3.12/site-packages/twilio/rest/messaging/v1/deactivations.pyr   zDeactivationsInstance.__init__   s(    !*1++m*D8<    returnc                 f    | 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   DeactivationsContext_versionr   s    r   _proxyzDeactivationsInstance._proxy%   s-     == 0DM }}r   r   c                 :    | j                   j                  |      S a0  
        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.fetch3   s#     {{   ! 
 	
r   c                 V   K   | j                   j                  |       d{   S 7 waJ  
        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_asyncA   s1      [[,, - 
 
 	
 
    )')c                 :    | j                   j                  |      S )aQ  
        Fetch the DeactivationsInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        r   )r#   fetch_with_http_infor'   s     r   r-   z*DeactivationsInstance.fetch_with_http_infoO   s#     {{// 0 
 	
r   c                 V   K   | j                   j                  |       d{   S 7 w)ak  
        Asynchronous coroutine to fetch the DeactivationsInstance with HTTP info

        :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: ApiResponse with instance, status code, and headers
        r   N)r#   fetch_with_http_info_asyncr'   s     r   r/   z0DeactivationsInstance.fetch_with_http_info_async]   s1      [[;; < 
 
 	
 
r+   c                      y)f
        Provide a friendly representation

        :returns: Machine friendly representation
        z+<Twilio.Messaging.V1.DeactivationsInstance> r"   s    r   __repr__zDeactivationsInstance.__repr__k   s     =r   )r   r    )__name__
__module____qualname____doc__r   r   strr   r   propertyr#   r
   unsetr   r   objectr&   r*   r   r-   r/   r3   __classcell__r   s   @r   r   r      s    = =$sCx. =   +1,,
$,'
	 
 +1,,
$,'
	 
 +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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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                 2    t         |   |       d| _        y)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__w   s     	!$	r   r   r   c                     t        j                  dt        j                  |      i      }t        j                  i       }d|d<   | j                  j                  d| j                  ||      S )zz
        Internal helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        Dateapplication/jsonAcceptGETmethoduriparamsheaders)r
   ofr	   iso8601_dater!   fetch_with_response_infor@   r   r   rJ   rK   s       r   _fetchzDeactivationsContext._fetch   si     	..t4
 ))B-.}}55dii 6 
 	
r   c                 Z    | j                  |      \  }}}t        | j                  |      S r%   )rP   r   r!   r   r   r   _s       r   r&   zDeactivationsContext.fetch   s1     .A$MM
 	
r   c                 v    | j                  |      \  }}}t        | j                  |      }t        |||      S )a_  
        Fetch the DeactivationsInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r   datastatus_coderK   )rP   r   r!   r   r   r   r   rW   rK   instances         r   r-   z)DeactivationsContext.fetch_with_http_info   s@     )-(>%g(MM
 k7SSr   c                    K   t        j                  dt        j                  |      i      }t        j                  i       }d|d<   | j                  j                  d| j                  ||       d{   S 7 w)z
        Internal async helper for fetch operation

        Returns:
            tuple: (payload, status_code, headers)
        rC   rD   rE   rF   rG   N)r
   rL   r	   rM   r!   fetch_with_response_info_asyncr@   rO   s       r   _fetch_asyncz!DeactivationsContext._fetch_async   sx      	..t4
 ))B-.]]AAdii B 
 
 	
 
s   A1A:3A84A:c                 v   K   | j                  |       d{   \  }}}t        | j                  |      S 7 wr)   )r\   r   r!   rR   s       r   r*   z DeactivationsContext.fetch_async   s@      #//T/::A$MM
 	
 ;s   979c                    K   | j                  |       d{   \  }}}t        | j                  |      }t        |||      S 7 ,w)ay  
        Asynchronous coroutine to fetch the DeactivationsInstance and return response metadata

        :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: ApiResponse with instance, status code, and headers
        r   NrU   )r\   r   r!   r   rX   s         r   r/   z/DeactivationsContext.fetch_with_http_info_async   sP      /3.?.?T.?.J(J%g(MM
 k7SS )Ks   AA-Ac                      y)r1   z*<Twilio.Messaging.V1.DeactivationsContext>r2   r"   s    r   r3   zDeactivationsContext.__repr__   s     <r   )r4   r5   r6   r   r   r
   r:   r   r   r;   tuplerP   r   r&   r   r-   r\   r*   r/   r8   r3   r<   r=   s   @r   r    r    u   s   % % 28 
5v. 
% 
, 17 
%f- 
AV 
 +1,,T$,'T	T" >D\\ 
uT6\': 
e 
. +1,,
$,'
	
" +1,,T$,'T	T"<# <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                 $    t         |   |       y)zo
        Initialize the DeactivationsList

        :param version: Version that contains the resource

        N)r   r   rA   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      
 $DMM22r   c                 ,    t        | j                        S re   rf   r"   s    r   __call__zDeactivationsList.__call__	  rg   r   c                      y)r1   z'<Twilio.Messaging.V1.DeactivationsList>r2   r"   s    r   r3   zDeactivationsList.__repr__  s     9r   )r4   r5   r6   r   r   r    r   ri   r8   r3   r<   r=   s   @r   rb   rb      s5    " "3) 33. 39# 9r   rb   N)r7   datetimer   typingr   r   r   r   twilio.baser	   r
   twilio.base.api_responser   twilio.base.instance_contextr   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.versionr   r   r    rb   r2   r   r   <module>rs      sR     - - ) 0 8 : 2 'Y=, Y=x<? <D9 9r   