
    T                     b    S r SSKJr  SSKJr  SSKJr  SSKJr  SS jrSS jr " S	 S
\	5      r
g)z6API Client for Cloud Monitoring Notification Channels.    )absolute_import)division)unicode_literals)apisc                 .    [         R                  " SSU S9$ )N
monitoringv3no_http)r   GetClientInstancer
   s    1lib/googlecloudsdk/api_lib/monitoring/channels.pyr   r      s    			dG	DD    Nc                 @    U =(       d
    [        5       n U R                  $ N)r   MESSAGES_MODULE)clients    r   GetMessagesModuler      s    (&(&			r   c                   8    \ rS rSrSrS	S jrS rS rS
S jrSr	g)NotificationChannelsClient!   zAClient for Notification Channels service in the Cloud Monitoring.Nc                     U=(       d
    [        5       U l        U=(       d    [        U5      U l        U R                  R                  U l        g r   )r   r   r   messagesprojects_notificationChannels_service)selfr   r   s      r   __init__#NotificationChannelsClient.__init__$   s5    /-/DK9 1& 9DMKK==DMr   c                     U R                   R                  UR                  5       US9nU R                  R	                  U5      $ )z#Creates an Monitoring Alert Policy.)namenotificationChannel)r   3MonitoringProjectsNotificationChannelsCreateRequestRelativeNamer   Create)r   project_refchannelreqs       r   r#   !NotificationChannelsClient.Create)   sB    
--
K
K%%'# L %C ==$$r   c                     U R                   R                  UR                  5       S9nU R                  R	                  U5      $ )N)r   )r   0MonitoringProjectsNotificationChannelsGetRequestr"   r   Get)r   channel_refr&   s      r   r*   NotificationChannelsClient.Get0   s=    
--
H
H%%' I )C==S!!r   c                     U R                   R                  UR                  5       UUS9nU R                  R	                  U5      $ )N)r   r    
updateMask)r   2MonitoringProjectsNotificationChannelsPatchRequestr"   r   Patch)r   r+   r%   fieldsr&   s        r   Update!NotificationChannelsClient.Update5   sE    
--
J
J%%'# K C ==s##r   )r   r   r   )NNr   )
__name__
__module____qualname____firstlineno____doc__r   r#   r*   r2   __static_attributes__ r   r   r   r   !   s    I>
%"
$r   r   )Fr   )r8   
__future__r   r   r   googlecloudsdk.api_lib.utilr   r   r   objectr   r:   r   r   <module>r>      s-    = &  ' ,E 
$ $r   