list method

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

List Memories.

Request parameters:

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

filter - Optional. The standard list filter. More detail in [AIP-160](https://google.aip.dev/160). Supported fields: * scope (as a JSON string with equality match only) * topics (i.e. topics.custom_memory_topic_label: "example topic" OR topics.managed_memory_topic: USER_PREFERENCES)

orderBy - Optional. The standard list order by string. If not specified, the default order is create_time desc. If specified, the default sorting order of provided fields is ascending. More detail in [AIP-132](https://google.aip.dev/132). Supported fields: * create_time

  • update_time

pageSize - Optional. The standard list page size.

pageToken - Optional. The standard list page token.

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

Completes with a GoogleCloudAiplatformV1ListMemoriesResponse.

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<GoogleCloudAiplatformV1ListMemoriesResponse> 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') + '/memories';

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