o
    Á¿i   ã                	   @   s>   d dl mZmZmZmZmZmZ G dd„ deeeeeeƒZdS )é    )ÚActionAPIResourceÚGetableAPIResourceÚCreateableAPIResourceÚUpdatableAPIResourceÚListableAPIResourceÚDeletableAPIResourcec                       s&   e Zd ZdZ	 e‡ fdd„ƒZ‡  ZS )ÚUserÚuserc                    s6   t dƒ t|tƒs|g}d|i}tt| ƒjdi |¤ŽS )aœ  
        Send an invite to join datadog to each of the email addresses in the
        *emails* list. If *emails* is a string, it will be wrapped in a list and
        sent. Returns a list of email addresses for which an email was sent.

        :param emails: emails addresses to invite to join datadog
        :type emails: string list

        :returns: Dictionary representing the API's JSON response
        z@[DEPRECATION] User.invite() is deprecated. Use `create` instead.ÚemailsÚPOSTú/invite_usersN)r   r   )ÚprintÚ
isinstanceÚlistÚsuperr   Ú_trigger_action)Úclsr
   Úbody©Ú	__class__© úE/home/ubuntu/.local/lib/python3.10/site-packages/datadog/api/users.pyÚinvite   s   
ÿzUser.invite)Ú__name__Ú
__module__Ú__qualname__Ú_resource_nameÚclassmethodr   Ú__classcell__r   r   r   r   r      s
    	r   N)Údatadog.api.resourcesr   r   r   r   r   r   r   r   r   r   r   Ú<module>   s    

ú