list method

Future<ListUptimeCheckIpsResponse> list({
  1. int? pageSize,
  2. String? pageToken,
  3. String? $fields,
})

Returns the list of IP addresses that checkers run from

Request parameters:

pageSize - The maximum number of results to return in a single response. The server may further constrain the maximum number of results returned in a single page. If the page_size is <=0, the server will decide the number of results to be returned. NOTE: this field is not yet implemented

pageToken - If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return more results from the previous method call. NOTE: this field is not yet implemented

$fields - Selector specifying which fields to include in a partial response.

Completes with a ListUptimeCheckIpsResponse.

Completes with a commons.ApiRequestError if the API endpoint returned an error.

If the used http.Client completes with an error when making a REST call, this method will complete with the same error.

Implementation

async.Future<ListUptimeCheckIpsResponse> list({
  core.int? pageSize,
  core.String? pageToken,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (pageSize != null) 'pageSize': ['${pageSize}'],
    if (pageToken != null) 'pageToken': [pageToken],
    if ($fields != null) 'fields': [$fields],
  };

  const url_ = 'v3/uptimeCheckIps';

  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return ListUptimeCheckIpsResponse.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}