public final AlertPolicy updateAlertPolicy ( FieldMask updateMask , AlertPolicy alertPolicy ) { UpdateAlertPolicyRequest request = UpdateAlertPolicyRequest . newBuilder ( ) . setUpdateMask ( updateMask ) . setAlertPolicy ( alertPolicy ) . build ( ) ; return updateAlertPolicy ( request ) ; }
Updates an alerting policy . You can either replace the entire policy with a new one or replace only certain fields in the current alerting policy by specifying the fields to be updated via updateMask . Returns the updated alerting policy .