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>);
}