list method

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

Lists all non-deleted OauthClients in a project.

If show_deleted is set to true, then deleted OauthClients are also listed.

Request parameters:

parent - Required. The parent to list OauthClients for. Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+$.

pageSize - Optional. The maximum number of OauthClients to return. If unspecified, at most 50 OauthClients will be returned. The maximum value is 100; values above 100 are truncated to 100.

pageToken - Optional. A page token, received from a previous ListOauthClients call. Provide this to retrieve the subsequent page.

showDeleted - Optional. Whether to return soft-deleted OauthClients.

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

Completes with a ListOauthClientsResponse.

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<ListOauthClientsResponse> list(
  core.String parent, {
  core.int? pageSize,
  core.String? pageToken,
  core.bool? showDeleted,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (pageSize != null) 'pageSize': ['${pageSize}'],
    if (pageToken != null) 'pageToken': [pageToken],
    if (showDeleted != null) 'showDeleted': ['${showDeleted}'],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/oauthClients';

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