list method

Future<GoogleCloudAiplatformV1ListOnlineEvaluatorsResponse> list(
  1. String parent, {
  2. String? filter,
  3. String? orderBy,
  4. int? pageSize,
  5. String? pageToken,
  6. String? $fields,
})

Lists the OnlineEvaluators for the given project and location.

Request parameters:

parent - Required. The parent resource of the OnlineEvaluators to list. Format: projects/{project}/locations/{location}. Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+$.

filter - Optional. Standard list filter. Supported fields: * create_time * update_time * agent_resource Example: create_time>"2026-01-01T00:00:00-04:00" where the timestamp is in RFC 3339 format) Based on aip.dev/160.

orderBy - Optional. A comma-separated list of fields to order by. The default sorting order is ascending. Use "desc" after a field name for descending. Supported fields: * create_time * update_time Example: create_time desc. Based on aip.dev/132.

pageSize - Optional. The maximum number of OnlineEvaluators to return. The service may return fewer than this value. If unspecified, at most 100 OnlineEvaluators will be returned. The maximum value is 100; values above 100 will be coerced to 100. Based on aip.dev/158.

pageToken - Optional. A token identifying a page of results the server should return. Based on aip.dev/158.

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

Completes with a GoogleCloudAiplatformV1ListOnlineEvaluatorsResponse.

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<GoogleCloudAiplatformV1ListOnlineEvaluatorsResponse> list(
  core.String parent, {
  core.String? filter,
  core.String? orderBy,
  core.int? pageSize,
  core.String? pageToken,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    'filter': ?filter == null ? null : [filter],
    'orderBy': ?orderBy == null ? null : [orderBy],
    'pageSize': ?pageSize == null ? null : ['${pageSize}'],
    'pageToken': ?pageToken == null ? null : [pageToken],
    'fields': ?$fields == null ? null : [$fields],
  };

  final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/onlineEvaluators';

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