Monitoring/src/V3/Gapic/UptimeCheckServiceGapicClient.php
public function listUptimeCheckIps(array $optionalArgs = [])
    {
        $request = new ListUptimeCheckIpsRequest();
        if (isset($optionalArgs['pageSize'])) {
            $request->setPageSize($optionalArgs['pageSize']);
        }
        if (isset($optionalArgs['pageToken'])) {
            $request->setPageToken($optionalArgs['pageToken']);
        }

        return $this->getPagedListResponse(
            'ListUptimeCheckIps',
            $optionalArgs,
            ListUptimeCheckIpsResponse::class,
            $request
        );
    }
public function listUptimeCheckIps(array $optionalArgs = [])
    {
        $request = new ListUptimeCheckIpsRequest();
        if (isset($optionalArgs['pageSize'])) {
            $request->setPageSize($optionalArgs['pageSize']);
        }
        if (isset($optionalArgs['pageToken'])) {
            $request->setPageToken($optionalArgs['pageToken']);
        }

        return $this->getPagedListResponse(
            'ListUptimeCheckIps',
            $optionalArgs,
            ListUptimeCheckIpsResponse::class,
            $request
        );
    }
public function listUptimeCheckIps ( array $ optionalArgs = [ ] ) { $ request = new ListUptimeCheckIpsRequest ( ) ; if ( isset ( $ optionalArgs [ 'pageSize' ] ) ) { $ request -> setPageSize ( $ optionalArgs [ 'pageSize' ] ) ; } if ( isset ( $ optionalArgs [ 'pageToken' ] ) ) { $ request -> setPageToken ( $ optionalArgs [ 'pageToken' ] ) ; } return $ this -> getPagedListResponse ( 'ListUptimeCheckIps' , $ optionalArgs , ListUptimeCheckIpsResponse :: class , $ request ) ; }
Returns the list of IPs that checkers run from.

Sample code:
```
$uptimeCheckServiceClient = new UptimeCheckServiceClient();
try {
// Iterate over pages of elements
$pagedResponse = $uptimeCheckServiceClient->listUptimeCheckIps();
foreach ($pagedResponse->iteratePages() as $page) {
foreach ($page as $element) {
// doSomethingWith($element);
}
}


// Alternatively:

// Iterate through all elements
$pagedResponse = $uptimeCheckServiceClient->listUptimeCheckIps();
foreach ($pagedResponse->iterateAllElements() as $element) {
// doSomethingWith($element);
}
} finally {
$uptimeCheckServiceClient->close();
}
```

@param array $optionalArgs {
Optional.

@type int $pageSize
The maximum number of resources contained in the underlying API
response. The API may return fewer values in a page, even if
there are additional values to be retrieved.
@type string $pageToken
A page token is used to specify a page of values to be returned.
If no page token is specified (the default), the first page
of values will be returned. Any page token used here must have
been generated by a previous call to the API.
@type RetrySettings|array $retrySettings
Retry settings to use for this call. Can be a
{@see Google\ApiCore\RetrySettings} object, or an associative array
of retry settings parameters. See the documentation on
{@see Google\ApiCore\RetrySettings} for example usage.
}

@return \Google\ApiCore\PagedListResponse

@throws ApiException if the remote call fails
@experimental
Returns the list of IPs that checkers run from .