list method
Return a list of Asynchronous Queries
Request parameters:
parent - Required. The parent resource name. Must be of the form
organizations/{org}/environments/{env}.
Value must have pattern ^organizations/\[^/\]+/environments/\[^/\]+$.
dataset - Filter response list by dataset. Example: api, mint
from - Filter response list by returning asynchronous queries that
created after this date time. Time must be in ISO date-time format like
'2011-12-03T10:15:30Z'.
inclQueriesWithoutReport - Flag to include asynchronous queries that
don't have a report denifition.
status - Filter response list by asynchronous query status.
submittedBy - Filter response list by user who submitted queries.
to - Filter response list by returning asynchronous queries that created
before this date time. Time must be in ISO date-time format like
'2011-12-03T10:16:30Z'.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a GoogleCloudApigeeV1ListAsyncQueriesResponse.
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<GoogleCloudApigeeV1ListAsyncQueriesResponse> list(
core.String parent, {
core.String? dataset,
core.String? from,
core.String? inclQueriesWithoutReport,
core.String? status,
core.String? submittedBy,
core.String? to,
core.String? $fields,
}) async {
final queryParams_ = <core.String, core.List<core.String>>{
'dataset': ?dataset == null ? null : [dataset],
'from': ?from == null ? null : [from],
'inclQueriesWithoutReport': ?inclQueriesWithoutReport == null
? null
: [inclQueriesWithoutReport],
'status': ?status == null ? null : [status],
'submittedBy': ?submittedBy == null ? null : [submittedBy],
'to': ?to == null ? null : [to],
'fields': ?$fields == null ? null : [$fields],
};
final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/queries';
final response_ = await _requester.request(
url_,
'GET',
queryParams: queryParams_,
);
return GoogleCloudApigeeV1ListAsyncQueriesResponse.fromJson(
response_ as core.Map<core.String, core.dynamic>,
);
}