list method
Lists supported data sources and returns their settings.
Request parameters:
parent
- Required. The BigQuery project id for which data sources should
be returned. Must be in the form: projects/{project_id}
or
projects/{project_id}/locations/{location_id}
Value must have pattern ^projects/\[^/\]+$
.
pageSize
- Page size. The default page size is the maximum value of 1000
results.
pageToken
- Pagination token, which can be used to request a specific
page of ListDataSourcesRequest
list results. For multiple-page results,
ListDataSourcesResponse
outputs a next_page
token, which can be used
as the page_token
value to request the next page of list results.
$fields
- Selector specifying which fields to include in a partial
response.
Completes with a ListDataSourcesResponse.
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<ListDataSourcesResponse> list(
core.String parent, {
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
if (pageSize != null) 'pageSize': ['${pageSize}'],
if (pageToken != null) 'pageToken': [pageToken],
if ($fields != null) 'fields': [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/dataSources';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListDataSourcesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>);
}