list method
Return a list of effective tags for the given Google Cloud resource, as
specified in parent
.
Request parameters:
pageSize
- Optional. The maximum number of effective tags to return in
the response. The server allows a maximum of 300 effective tags to return
in a single page. If unspecified, the server will use 100 as the default.
pageToken
- Optional. A pagination token returned from a previous call
to ListEffectiveTags
that indicates from where this listing should
continue.
parent
- Required. The full resource name of a resource for which you
want to list the effective tags. E.g.
"//cloudresourcemanager.googleapis.com/projects/123"
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a ListEffectiveTagsResponse
.
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<ListEffectiveTagsResponse> 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/effectiveTags';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListEffectiveTagsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}