list method

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

Return a list of Security Reports

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 security reports that created after this date time. Time must be in ISO date-time format like '2011-12-03T10:15:30Z'.

pageSize - The maximum number of security report to return in the list response.

pageToken - Token returned from the previous list response to fetch the next page.

status - Filter response list by security reports status.

submittedBy - Filter response list by user who submitted queries.

to - Filter response list by returning security reports 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 GoogleCloudApigeeV1ListSecurityReportsResponse.

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<GoogleCloudApigeeV1ListSecurityReportsResponse> list(
  core.String parent, {
  core.String? dataset,
  core.String? from,
  core.int? pageSize,
  core.String? pageToken,
  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 (from != null) 'from': [from],
    if (pageSize != null) 'pageSize': ['${pageSize}'],
    if (pageToken != null) 'pageToken': [pageToken],
    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') + '/securityReports';

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