list method
Lists all TagValues for a specific TagKey.
Request parameters:
pageSize
- Optional. The maximum number of TagValues to return in the
response. The server allows a maximum of 300 TagValues to return. If
unspecified, the server will use 100 as the default.
pageToken
- Optional. A pagination token returned from a previous call
to ListTagValues
that indicates where this listing should continue from.
parent
- Required. Resource name for the parent of the TagValues to be
listed, in the format tagKeys/123
or tagValues/123
.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a ListTagValuesResponse.
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<ListTagValuesResponse> list({
core.int? pageSize,
core.String? pageToken,
core.String? parent,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if (parent != null) 'parent': [parent],
if ($fields != null) 'fields': [$fields],
};
const url_ = 'v3/tagValues';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListTagValuesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}