
                         N    S r SSKJr  SSKJr  SSKJr  SSKJr   " S S\5      rg)	z*Utilities for Cloud Monitoring Alerts API.    )absolute_import)division)unicode_literals)utilc                   2    \ rS rSrSrSS jrS rS	S jrSrg)
AlertsClient   z?Client for the Alert service in the Stackdriver Monitoring API.Nc                     U=(       d    [         R                  " 5       U l        U=(       d    U R                  R                  U l        U R                  R
                  U l        g )N)r   GetClientInstanceclientMESSAGES_MODULEmessagesprojects_alerts_service)selfr   r   s      /lib/googlecloudsdk/api_lib/monitoring/alerts.py__init__AlertsClient.__init__   s>    4D224DK; ; ;DMKK//DM    c                     U R                   R                  UR                  5       S9nU R                  R	                  U5      $ )zGets a Monitoring Alert.)name)r   "MonitoringProjectsAlertsGetRequestRelativeNamer   Get)r   	alert_refrequests      r   r   AlertsClient.Get    s>    mm>>##% ? G ==W%%r   c                     U R                   R                  UR                  5       UUUS9nU R                  R	                  U5      $ )zLists Monitoring Alerts.)parentfilterorderBypageSize)r   #MonitoringProjectsAlertsListRequestr   r   List)r   project_refa_filterorder_by	page_sizer   s         r   r$   AlertsClient.List'   sH    mm??'')	 @ G ==g&&r   )r   r   r   )NN)NNN)	__name__
__module____qualname____firstlineno____doc__r   r   r$   __static_attributes__ r   r   r   r      s    G0
&'r   r   N)	r.   
__future__r   r   r   !googlecloudsdk.api_lib.monitoringr   objectr   r0   r   r   <module>r4      s"    1 &  ' 2'6 'r   