list method
Lists DataSourceReferences for a given project and location.
Request parameters:
parent - Required. The parent resource name. Format:
projects/{project}/locations/{location}
Value must have pattern ^projects/\[^/\]+/locations/\[^/\]+$.
filter - Optional. A filter expression that filters the results listed
in the response. The expression must specify the field name, a comparison
operator, and the value that you want to use for filtering. The following
field and operator combinations are supported: *
data_source_gcp_resource_info.gcp_resourcename with =, != *
data_source_gcp_resource_info.type with =, !=
orderBy - Optional. A comma-separated list of fields to order by, sorted
in ascending order. Use "desc" after a field name for descending.
Supported fields: * data_source *
data_source_gcp_resource_info.gcp_resourcename
pageSize - Optional. The maximum number of DataSourceReferences to
return. The service may return fewer than this value. If unspecified, at
most 50 DataSourceReferences will be returned. The maximum value is 100;
values above 100 will be coerced to 100.
pageToken - Optional. A page token, received from a previous
ListDataSourceReferences call. Provide this to retrieve the subsequent
page. When paginating, all other parameters provided to
ListDataSourceReferences must match the call that provided the page
token.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a ListDataSourceReferencesResponse.
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<ListDataSourceReferencesResponse> list(
core.String parent, {
core.String? filter,
core.String? orderBy,
core.int? pageSize,
core.String? pageToken,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
'filter': ?filter == null ? null : [filter],
'orderBy': ?orderBy == null ? null : [orderBy],
'pageSize': ?pageSize == null ? null : ['${pageSize}'],
'pageToken': ?pageToken == null ? null : [pageToken],
'fields': ?$fields == null ? null : [$fields],
};
final url_ =
'v1/' + core.Uri.encodeFull('$parent') + '/dataSourceReferences';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return ListDataSourceReferencesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}