o
    Á¿i0  ã                	   @   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 )é    )ÚGetableAPIResourceÚCreateableAPIResourceÚUpdatableAPIResourceÚListableAPIResourceÚDeletableAPIResourceÚActionAPIResourcec                       s(   e Zd ZdZdZe‡ fdd„ƒZ‡  ZS )ÚDowntimez7
    A wrapper around Monitor Downtiming HTTP API.
    Údowntimec                    s   t t| ƒjdi |¤ŽS )zÎ
        Cancels all downtimes matching the scope.

        :param scope: scope to cancel downtimes by
        :type scope: string

        :returns: Dictionary representing the API's JSON response
        ÚPOSTúcancel/by_scopeN)r
   r   )Úsuperr   Ú_trigger_class_action)ÚclsÚbody©Ú	__class__© úI/home/ubuntu/.local/lib/python3.10/site-packages/datadog/api/downtimes.pyÚcancel_downtime_by_scope   s   
z!Downtime.cancel_downtime_by_scope)Ú__name__Ú
__module__Ú__qualname__Ú__doc__Ú_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    

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