list method

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

Lists tables for the user.

Request parameters:

orderBy - Optional. Sorting order for the list of tables on createTime/updateTime.

pageSize - The maximum number of tables to return. The service may return fewer than this value. If unspecified, at most 20 tables are returned. The maximum value is 100; values above 100 are coerced to 100.

pageToken - A page token, received from a previous ListTables call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to ListTables must match the call that provided the page token.

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

Completes with a ListTablesResponse.

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

  const url_ = 'v1alpha1/tables';

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