src/v3/uptime_check_service_client.js
/**
   * Updates an uptime check configuration. You can either replace the entire
   * configuration with a new one or replace only certain fields in the current
   * configuration by specifying the fields to be updated via `"updateMask"`.
   * Returns the updated configuration.
   *
   * @param {Object} request
   *   The request object that will be sent.
   * @param {string} request.name
   *   The uptime check configuration to update. The format is
   *
   *     `projects/[PROJECT_ID]/uptimeCheckConfigs/[UPTIME_CHECK_ID]`.
   * @param {Object} request.uptimeCheckConfig
   *   Required. If an `"updateMask"` has been specified, this field gives
   *   the values for the set of fields mentioned in the `"updateMask"`. If an
   *   `"updateMask"` has not been given, this uptime check configuration replaces
   *   the current configuration. If a field is mentioned in `"updateMask`" but
   *   the corresonding field is omitted in this partial uptime check
   *   configuration, it has the effect of deleting/clearing the field from the
   *   configuration on the server.
   *
   *   This object should have the same structure as [UptimeCheckConfig]{@link google.monitoring.v3.UptimeCheckConfig}
   * @param {Object=} request.updateMask
   *   Optional. If present, only the listed fields in the current uptime check
   *   configuration are updated with values from the new configuration. If this
   *   field is empty, then the current configuration is completely replaced with
   *   the new configuration.
   *
   *   This object should have the same structure as [FieldMask]{@link google.protobuf.FieldMask}
   * @param {Object=} options
   *   Optional parameters. You can override the default settings for this call, e.g, timeout,
   *   retries, paginations, etc. See [gax.CallOptions]{@link https://googleapis.github.io/gax-nodejs/global.html#CallOptions} for the details.
   * @param {function(?Error, ?Object)=} callback
   *   The function which will be called with the result of the API call.
   *
   *   The second parameter to the callback is an object representing [UptimeCheckConfig]{@link google.monitoring.v3.UptimeCheckConfig}.
   * @returns {Promise} - The promise which resolves to an array.
   *   The first element of the array is an object representing [UptimeCheckConfig]{@link google.monitoring.v3.UptimeCheckConfig}.
   *   The promise has a method named "cancel" which cancels the ongoing API call.
   *
   * @example
   *
   * const monitoring = require('@google-cloud/monitoring');
   *
   * var client = new monitoring.v3.UptimeCheckServiceClient({
   *   // optional auth parameters.
   * });
   *
   * var name = '';
   * var uptimeCheckConfig = {};
   * var request = {
   *   name: name,
   *   uptimeCheckConfig: uptimeCheckConfig,
   * };
   * client.updateUptimeCheckConfig(request)
   *   .then(responses => {
   *     var response = responses[0];
   *     // doThingsWith(response)
   *   })
   *   .catch(err => {
   *     console.error(err);
   *   });
   */
Updates an uptime check configuration. You can either replace the entire
configuration with a new one or replace only certain fields in the current
configuration by specifying the fields to be updated via `"updateMask"`.
Returns the updated configuration.

@param {Object} request
The request object that will be sent.
@param {string} request.name
The uptime check configuration to update. The format is



This object should have the same structure as [UptimeCheckConfig] google.monitoring.v3.UptimeCheckConfig
@param {Object=} request.updateMask
Optional. If present, only the listed fields in the current uptime check
configuration are updated with values from the new configuration. If this
field is empty, then the current configuration is completely replaced with
the new configuration.

This object should have the same structure as [FieldMask] google.protobuf.FieldMask
@param {Object=} options
Optional parameters. You can override the default settings for this call, e.g, timeout,
retries, paginations, etc.

The second parameter to the callback is an object representing [UptimeCheckConfig] google.monitoring.v3.UptimeCheckConfig.
@returns {Promise} - The promise which resolves to an array.
The first element of the array is an object representing [UptimeCheckConfig] google.monitoring.v3.UptimeCheckConfig.
The promise has a method named "cancel" which cancels the ongoing API call.

@example

const monitoring = require('@google-cloud/monitoring').

var client = new monitoring.v3.UptimeCheckServiceClient({
optional auth parameters.


Updates an uptime check configuration . You can either replace the entire configuration with a new one or replace only certain fields in the current configuration by specifying the fields to be updated via ` " updateMask " ` . Returns the updated configuration . @param { Object } request The request object that will be sent . @param { string } request . name The uptime check configuration to update . The format is This object should have the same structure as [ UptimeCheckConfig ] google . monitoring . v3 . UptimeCheckConfig @param { Object = } request . updateMask Optional . If present only the listed fields in the current uptime check configuration are updated with values from the new configuration . If this field is empty then the current configuration is completely replaced with the new configuration . This object should have the same structure as [ FieldMask ] google . protobuf . FieldMask @param { Object = } options Optional parameters . You can override the default settings for this call e . g timeout retries paginations etc . The second parameter to the callback is an object representing [ UptimeCheckConfig ] google . monitoring . v3 . UptimeCheckConfig . @returns { Promise } - The promise which resolves to an array . The first element of the array is an object representing [ UptimeCheckConfig ] google . monitoring . v3 . UptimeCheckConfig . The promise has a method named " cancel " which cancels the ongoing API call . @example const monitoring = require ( ' @google - cloud / monitoring ' ) . var client = new monitoring . v3 . UptimeCheckServiceClient ( { optional auth parameters .
updateUptimeCheckConfig(request, options, callback) {
    if (options instanceof Function && callback === undefined) {
      callback = options;
      options = {};
    }
    options = options || {};
    return this._innerApiCalls.updateUptimeCheckConfig(
      request,
      options,
      callback
    );
  }
updateUptimeCheckConfig ( request , options , callback ) { if ( options instanceof Function && callback === undefined ) { callback = options ; options = { } ; } options = options || { } ; return this . _innerApiCalls . updateUptimeCheckConfig ( request , options , callback ) ; }
Updates an uptime check configuration.
Updates an uptime check configuration .