src/v3/uptime_check_service_client.js
/**
   * Lists the existing valid uptime check configurations for the project,
   * leaving out any invalid configurations.
   *
   * @param {Object} request
   *   The request object that will be sent.
   * @param {string} request.parent
   *   The project whose uptime check configurations are listed. The format is
   *
   *     `projects/[PROJECT_ID]`.
   * @param {number=} request.pageSize
   *   The maximum number of resources contained in the underlying API
   *   response. If page streaming is performed per-resource, this
   *   parameter does not affect the return value. If page streaming is
   *   performed per-page, this determines the maximum number of
   *   resources in a page.
   * @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, ?Array, ?Object, ?Object)=} callback
   *   The function which will be called with the result of the API call.
   *
   *   The second parameter to the callback is Array of [UptimeCheckConfig]{@link google.monitoring.v3.UptimeCheckConfig}.
   *
   *   When autoPaginate: false is specified through options, it contains the result
   *   in a single response. If the response indicates the next page exists, the third
   *   parameter is set to be used for the next request object. The fourth parameter keeps
   *   the raw response object of an object representing [ListUptimeCheckConfigsResponse]{@link google.monitoring.v3.ListUptimeCheckConfigsResponse}.
   * @returns {Promise} - The promise which resolves to an array.
   *   The first element of the array is Array of [UptimeCheckConfig]{@link google.monitoring.v3.UptimeCheckConfig}.
   *
   *   When autoPaginate: false is specified through options, the array has three elements.
   *   The first element is Array of [UptimeCheckConfig]{@link google.monitoring.v3.UptimeCheckConfig} in a single response.
   *   The second element is the next request object if the response
   *   indicates the next page exists, or null. The third element is
   *   an object representing [ListUptimeCheckConfigsResponse]{@link google.monitoring.v3.ListUptimeCheckConfigsResponse}.
   *
   *   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.
   * });
   *
   * // Iterate over all elements.
   * var formattedParent = client.projectPath('[PROJECT]');
   *
   * client.listUptimeCheckConfigs({parent: formattedParent})
   *   .then(responses => {
   *     var resources = responses[0];
   *     for (let i = 0; i < resources.length; i += 1) {
   *       // doThingsWith(resources[i])
   *     }
   *   })
   *   .catch(err => {
   *     console.error(err);
   *   });
   *
   * // Or obtain the paged response.
   * var formattedParent = client.projectPath('[PROJECT]');
   *
   *
   * var options = {autoPaginate: false};
   * var callback = responses => {
   *   // The actual resources in a response.
   *   var resources = responses[0];
   *   // The next request if the response shows that there are more responses.
   *   var nextRequest = responses[1];
   *   // The actual response object, if necessary.
   *   // var rawResponse = responses[2];
   *   for (let i = 0; i < resources.length; i += 1) {
   *     // doThingsWith(resources[i]);
   *   }
   *   if (nextRequest) {
   *     // Fetch the next page.
   *     return client.listUptimeCheckConfigs(nextRequest, options).then(callback);
   *   }
   * }
   * client.listUptimeCheckConfigs({parent: formattedParent}, options)
   *   .then(callback)
   *   .catch(err => {
   *     console.error(err);
   *   });
   */
Lists the existing valid uptime check configurations for the project,
leaving out any invalid configurations.

@param {Object} request
The request object that will be sent.
@param {string} request.parent
The project whose uptime check configurations are listed. The format is



The second parameter to the callback is Array of [UptimeCheckConfig] google.monitoring.v3.UptimeCheckConfig.

When autoPaginate: false is specified through options, it contains the result
in a single response. If the response indicates the next page exists, the third
parameter is set to be used for the next request object. The fourth parameter keeps
the raw response object of an object representing [ListUptimeCheckConfigsResponse] google.monitoring.v3.ListUptimeCheckConfigsResponse.
@returns {Promise} - The promise which resolves to an array.
The first element of the array is Array of [UptimeCheckConfig] google.monitoring.v3.UptimeCheckConfig.

When autoPaginate: false is specified through options, the array has three elements.
The first element is Array of [UptimeCheckConfig] google.monitoring.v3.UptimeCheckConfig in a single response.
The second element is the next request object if the response
indicates the next page exists, or null. The third element is
an object representing [ListUptimeCheckConfigsResponse] google.monitoring.v3.ListUptimeCheckConfigsResponse.

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.

Iterate over all elements.



Or obtain the paged response.

var options = {autoPaginate: false};
var callback = responses => {
The actual resources in a response.
var resources = responses[0];
The next request if the response shows that there are more responses.
var nextRequest = responses[1];
The actual response object, if necessary.
var rawResponse = responses[2];
for (let i = 0; i < resources.length; i += 1) {
doThingsWith(resources[i]);
}
if (nextRequest) {
Fetch the next page.
Lists the existing valid uptime check configurations for the project leaving out any invalid configurations . @param { Object } request The request object that will be sent . @param { string } request . parent The project whose uptime check configurations are listed . The format is The second parameter to the callback is Array of [ UptimeCheckConfig ] google . monitoring . v3 . UptimeCheckConfig . When autoPaginate : false is specified through options it contains the result in a single response . If the response indicates the next page exists the third parameter is set to be used for the next request object . The fourth parameter keeps the raw response object of an object representing [ ListUptimeCheckConfigsResponse ] google . monitoring . v3 . ListUptimeCheckConfigsResponse . @returns { Promise } - The promise which resolves to an array . The first element of the array is Array of [ UptimeCheckConfig ] google . monitoring . v3 . UptimeCheckConfig . When autoPaginate : false is specified through options the array has three elements . The first element is Array of [ UptimeCheckConfig ] google . monitoring . v3 . UptimeCheckConfig in a single response . The second element is the next request object if the response indicates the next page exists or null . The third element is an object representing [ ListUptimeCheckConfigsResponse ] google . monitoring . v3 . ListUptimeCheckConfigsResponse . 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 . Iterate over all elements . Or obtain the paged response . var options = { autoPaginate : false } ; var callback = responses = > { The actual resources in a response . var resources = responses [ 0 ] ; The next request if the response shows that there are more responses . var nextRequest = responses [ 1 ] ; The actual response object if necessary . var rawResponse = responses [ 2 ] ; for ( let i = 0 ; i < resources . length ; i + = 1 ) { doThingsWith ( resources [ i ] ) ; } if ( nextRequest ) { Fetch the next page .
listUptimeCheckConfigs(request, options, callback) {
    if (options instanceof Function && callback === undefined) {
      callback = options;
      options = {};
    }
    options = options || {};
    return this._innerApiCalls.listUptimeCheckConfigs(
      request,
      options,
      callback
    );
  }
listUptimeCheckConfigs ( request , options , callback ) { if ( options instanceof Function && callback === undefined ) { callback = options ; options = { } ; } options = options || { } ; return this . _innerApiCalls . listUptimeCheckConfigs ( request , options , callback ) ; }
Lists the existing valid uptime check configurations for the project,
 leaving out any invalid configurations.
Lists the existing valid uptime check configurations for the project leaving out any invalid configurations .