list method
Lists all schema bundles associated with the specified table.
Request parameters:
parent
- Required. The parent, which owns this collection of schema
bundles. Values are of the form
projects/{project}/instances/{instance}/tables/{table}
.
Value must have pattern
^projects/\[^/\]+/instances/\[^/\]+/tables/\[^/\]+$
.
pageSize
- The maximum number of schema bundles to return. If the value
is positive, the server may return at most this value. If unspecified, the
server will return the maximum allowed page size.
pageToken
- A page token, received from a previous ListSchemaBundles
call. Provide this to retrieve the subsequent page. When paginating, all
other parameters provided to ListSchemaBundles
must match the call that
provided the page token.
view
- Optional. The resource_view to be applied to the returned
SchemaBundles' fields. Defaults to NAME_ONLY.
Possible string values are:
- "SCHEMA_BUNDLE_VIEW_UNSPECIFIED" : Uses the default view for each method as documented in the request.
- "NAME_ONLY" : Only populates
name
. - "BASIC" : Only populates the SchemaBundle's basic metadata. This includes: name, etag, create_time, update_time.
- "FULL" : Populates every field.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a ListSchemaBundlesResponse.
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<ListSchemaBundlesResponse> list(
core.String parent, {
core.int? pageSize,
core.String? pageToken,
core.String? view,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if (view != null) 'view': [view],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v2/' + core.Uri.encodeFull('$parent') + '/schemaBundles';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListSchemaBundlesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}