list method
Lists FeatureGroups in a given project and location.
Request parameters:
parent
- Required. The resource name of the Location to list
FeatureGroups. Format: projects/{project}/locations/{location}
Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+$
.
filter
- Lists the FeatureGroups that match the filter expression. The
following fields are supported: * create_time
: Supports =
, !=
, <
,
>
, <=
, and >=
comparisons. Values must be in RFC 3339 format. *
update_time
: Supports =
, !=
, <
, >
, <=
, and >=
comparisons.
Values must be in RFC 3339 format. * labels
: Supports key-value equality
and key presence. Examples: * create_time > "2020-01-01" OR update_time > "2020-01-01"
FeatureGroups created or updated after 2020-01-01. *
labels.env = "prod"
FeatureGroups with label "env" set to "prod".
orderBy
- A comma-separated list of fields to order by, sorted in
ascending order. Use "desc" after a field name for descending. Supported
Fields: * create_time
* update_time
pageSize
- The maximum number of FeatureGroups to return. The service
may return fewer than this value. If unspecified, at most 100
FeatureGroups will be returned. The maximum value is 100; any value
greater than 100 will be coerced to 100.
pageToken
- A page token, received from a previous
FeatureGroupAdminService.ListFeatureGroups call. Provide this to retrieve
the subsequent page. When paginating, all other parameters provided to
FeatureGroupAdminService.ListFeatureGroups must match the call that
provided the page token.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudAiplatformV1ListFeatureGroupsResponse.
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<GoogleCloudAiplatformV1ListFeatureGroupsResponse> 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>>{
if (filter != null) 'filter': [filter],
if (orderBy != null) 'orderBy': [orderBy],
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/featureGroups';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudAiplatformV1ListFeatureGroupsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}