list method

Future<GoogleCloudApigeeV1ListAsyncQueriesResponse> list(
  1. String parent, {
  2. String? dataset,
  3. String? envgroupHostname,
  4. String? from,
  5. String? inclQueriesWithoutReport,
  6. String? status,
  7. String? submittedBy,
  8. String? to,
  9. String? $fields,
})

Return a list of Asynchronous Queries at host level.

Request parameters:

parent - Required. The parent resource name. Must be of the form organizations/{org}. Value must have pattern ^organizations/\[^/\]+$.

dataset - Filter response list by dataset. Example: api, mint

envgroupHostname - Required. Filter response list by hostname.

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? envgroupHostname,
  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>>{
    if (dataset != null) 'dataset': [dataset],
    if (envgroupHostname != null) 'envgroupHostname': [envgroupHostname],
    if (from != null) 'from': [from],
    if (inclQueriesWithoutReport != null)
      'inclQueriesWithoutReport': [inclQueriesWithoutReport],
    if (status != null) 'status': [status],
    if (submittedBy != null) 'submittedBy': [submittedBy],
    if (to != null) 'to': [to],
    if ($fields != null) 'fields': [$fields],
  };

  final url_ = 'v1/' + core.Uri.encodeFull('$parent') + '/hostQueries';

  final response_ = await _requester.request(
    url_,
    'GET',
    queryParams: queryParams_,
  );
  return GoogleCloudApigeeV1ListAsyncQueriesResponse.fromJson(
      response_ as core.Map<core.String, core.dynamic>);
}