search method
Retrieves a report defined by a search query.
The response might contain fewer rows than specified by page_size. Rely
on next_page_token to determine if there are more rows to be requested.
request - The metadata request object.
Request parameters:
parent - Required. Id of the account making the call. Must be a
standalone account or an MCA subaccount. Format: accounts/{account}
Value must have pattern ^accounts/\[^/\]+$.
$fields - Selector specifying which fields to include in a partial
response.
Completes with a SearchResponse.
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<SearchResponse> search(
  SearchRequest request,
  core.String parent, {
  core.String? $fields,
}) async {
  final body_ = convert.json.encode(request);
  final queryParams_ = <core.String, core.List<core.String>>{
    if ($fields != null) 'fields': [$fields],
  };
  final url_ =
      'reports/v1/' + core.Uri.encodeFull('$parent') + '/reports:search';
  final response_ = await _requester.request(
    url_,
    'POST',
    body: body_,
    queryParams: queryParams_,
  );
  return SearchResponse.fromJson(
    response_ as core.Map<core.String, core.dynamic>,
  );
}