list method

Future<ListLiensResponse> list({
  1. int? pageSize,
  2. String? pageToken,
  3. String? parent,
  4. String? $fields,
})

List all Liens applied to the parent resource.

Callers of this method will require permission on the parent resource. For example, a Lien with a parent of projects/1234 requires permission resourcemanager.projects.get.

Request parameters:

pageSize - The maximum number of items to return. This is a suggestion for the server. The server can return fewer liens than requested. If unspecified, server picks an appropriate default.

pageToken - The next_page_token value returned from a previous List request, if any.

parent - Required. The name of the resource to list all attached Liens. For example, projects/1234. (google.api.field_policy).resource_type annotation is not set since the parent depends on the meta api implementation. This field could be a project or other sub project resources.

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

Completes with a ListLiensResponse.

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<ListLiensResponse> 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_ = 'v1/liens';

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