list method
Lists the TagBindings for the given Google Cloud resource, as specified
with parent
.
NOTE: The parent
field is expected to be a full resource name:
https://cloud.google.com/apis/design/resource_names#full_resource_name
Request parameters:
pageSize
- Optional. The maximum number of TagBindings to return in the
response. The server allows a maximum of 300 TagBindings to return. If
unspecified, the server will use 100 as the default.
pageToken
- Optional. A pagination token returned from a previous call
to ListTagBindings
that indicates where this listing should continue
from.
parent
- Required. The full resource name of a resource for which you
want to list existing TagBindings. E.g.
"//cloudresourcemanager.googleapis.com/projects/123"
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a ListTagBindingsResponse
.
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<ListTagBindingsResponse> 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/tagBindings';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListTagBindingsResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}