src/v3/uptime_check_service_client.js
/**
   * Returns the list of IPs that checkers run from
   *
   * @param {Object} request
   *   The request object that will be sent.
   * @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 [UptimeCheckIp]{@link google.monitoring.v3.UptimeCheckIp}.
   *
   *   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 [ListUptimeCheckIpsResponse]{@link google.monitoring.v3.ListUptimeCheckIpsResponse}.
   * @returns {Promise} - The promise which resolves to an array.
   *   The first element of the array is Array of [UptimeCheckIp]{@link google.monitoring.v3.UptimeCheckIp}.
   *
   *   When autoPaginate: false is specified through options, the array has three elements.
   *   The first element is Array of [UptimeCheckIp]{@link google.monitoring.v3.UptimeCheckIp} 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 [ListUptimeCheckIpsResponse]{@link google.monitoring.v3.ListUptimeCheckIpsResponse}.
   *
   *   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.
   * client.listUptimeCheckIps({})
   *   .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 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.listUptimeCheckIps(nextRequest, options).then(callback);
   *   }
   * }
   * client.listUptimeCheckIps({}, options)
   *   .then(callback)
   *   .catch(err => {
   *     console.error(err);
   *   });
   */
Returns the list of IPs that checkers run from
@param {Object} request
The request object that will be sent.
@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.

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

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 [ListUptimeCheckIpsResponse] google.monitoring.v3.ListUptimeCheckIpsResponse.
@returns {Promise} - The promise which resolves to an array.
The first element of the array is Array of [UptimeCheckIp] google.monitoring.v3.UptimeCheckIp.

When autoPaginate: false is specified through options, the array has three elements.
The first element is Array of [UptimeCheckIp] google.monitoring.v3.UptimeCheckIp 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 [ListUptimeCheckIpsResponse] google.monitoring.v3.ListUptimeCheckIpsResponse.

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.
Returns the list of IPs that checkers run from @param { Object } request The request object that will be sent . @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 . The second parameter to the callback is Array of [ UptimeCheckIp ] google . monitoring . v3 . UptimeCheckIp . 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 [ ListUptimeCheckIpsResponse ] google . monitoring . v3 . ListUptimeCheckIpsResponse . @returns { Promise } - The promise which resolves to an array . The first element of the array is Array of [ UptimeCheckIp ] google . monitoring . v3 . UptimeCheckIp . When autoPaginate : false is specified through options the array has three elements . The first element is Array of [ UptimeCheckIp ] google . monitoring . v3 . UptimeCheckIp 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 [ ListUptimeCheckIpsResponse ] google . monitoring . v3 . ListUptimeCheckIpsResponse . 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 .
listUptimeCheckIps(request, options, callback) {
    if (options instanceof Function && callback === undefined) {
      callback = options;
      options = {};
    }
    options = options || {};
    return this._innerApiCalls.listUptimeCheckIps(request, options, callback);
  }
listUptimeCheckIps ( request , options , callback ) { if ( options instanceof Function && callback === undefined ) { callback = options ; options = { } ; } options = options || { } ; return this . _innerApiCalls . listUptimeCheckIps ( request , options , callback ) ; }
Returns the list of IPs that checkers run from
 @param {Object} request
   The request object that will be sent.
Returns the list of IPs that checkers run from @param { Object } request The request object that will be sent .