o
    ec                     @   sh   d 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 )za
This code was generated by
\ / _    _  _|   _  _
 | (_)\/(_)(_|\/| |(/_  v1.0.0
      /       /
    )values)InstanceResource)ListResource)Pagec                       0   e Zd ZdZ fddZdd Zdd Z  ZS )UsecaseListk PLEASE NOTE that this class contains beta products that are subject to
    change. Use them with caution. c                    s.   t t| | i | _djdi | j| _dS )z
        Initialize the UsecaseList

        :param Version version: Version that contains the resource

        :returns: twilio.rest.messaging.v1.usecase.UsecaseList
        :rtype: twilio.rest.messaging.v1.usecase.UsecaseList
        z/Services/UsecasesN )superr   __init__	_solutionformat_uri)selfversion	__class__r	   S/var/www/html/venv/lib/python3.10/site-packages/twilio/rest/messaging/v1/usecase.pyr      s   	zUsecaseList.__init__c                 C   s   | j jd| jd}t| j |S )z
        Fetch the UsecaseInstance

        :returns: The fetched UsecaseInstance
        :rtype: twilio.rest.messaging.v1.usecase.UsecaseInstance
        GET)methoduri)_versionfetchr   UsecaseInstancer   payloadr	   r	   r   r   "   s   zUsecaseList.fetchc                 C      dS )z
        Provide a friendly representation

        :returns: Machine friendly representation
        :rtype: str
        z!<Twilio.Messaging.V1.UsecaseList>r	   r   r	   r	   r   __repr__-      zUsecaseList.__repr__)__name__
__module____qualname____doc__r   r   r   __classcell__r	   r	   r   r   r      
    r   c                       r   )UsecasePager   c                    s   t t| || || _dS )a%  
        Initialize the UsecasePage

        :param Version version: Version that contains the resource
        :param Response response: Response from the API

        :returns: twilio.rest.messaging.v1.usecase.UsecasePage
        :rtype: twilio.rest.messaging.v1.usecase.UsecasePage
        N)r
   r'   r   r   )r   r   responsesolutionr   r	   r   r   ;   s   

zUsecasePage.__init__c                 C   s   t | j|S )z
        Build an instance of UsecaseInstance

        :param dict payload: Payload response from the API

        :returns: twilio.rest.messaging.v1.usecase.UsecaseInstance
        :rtype: twilio.rest.messaging.v1.usecase.UsecaseInstance
        )r   r   r   r	   r	   r   get_instanceJ   s   	zUsecasePage.get_instancec                 C   r   )r   z!<Twilio.Messaging.V1.UsecasePage>r	   r   r	   r	   r   r   U   r    zUsecasePage.__repr__)r!   r"   r#   r$   r   r*   r   r%   r	   r	   r   r   r'   7   r&   r'   c                       s4   e Zd ZdZ fddZedd Zdd Z  ZS )r   r   c                    s0   t t| | d|di| _d| _i | _dS )z
        Initialize the UsecaseInstance

        :returns: twilio.rest.messaging.v1.usecase.UsecaseInstance
        :rtype: twilio.rest.messaging.v1.usecase.UsecaseInstance
        usecasesN)r
   r   r   get_properties_contextr   )r   r   r   r   r	   r   r   c   s   
zUsecaseInstance.__init__c                 C   s
   | j d S )zh
        :returns: Human readable Messaging Service Use Case details
        :rtype: list[dict]
        r+   )r-   r   r	   r	   r   r+   s   s   
zUsecaseInstance.usecasesc                 C   r   )r   z%<Twilio.Messaging.V1.UsecaseInstance>r	   r   r	   r	   r   r   {   r    zUsecaseInstance.__repr__)	r!   r"   r#   r$   r   propertyr+   r   r%   r	   r	   r   r   r   _   s    
r   N)r$   twilio.baser   twilio.base.instance_resourcer   twilio.base.list_resourcer   twilio.base.pager   r   r'   r   r	   r	   r	   r   <module>   s   ((