list method

  1. @Deprecated('Not supported. Member documentation may have more information.')
Future<GoogleCloudChannelV1ListReportsResponse> list(
  1. String parent, {
  2. String? languageCode,
  3. int? pageSize,
  4. String? pageToken,
  5. String? $fields,
})

Lists the reports that RunReportJob can run.

These reports include an ID, a description, and the list of columns that will be in the result. Deprecated: Please use Export Channel Services data to BigQuery instead.

Request parameters:

parent - Required. The resource name of the partner account to list available reports for. Parent uses the format: accounts/{account_id} Value must have pattern ^accounts/\[^/\]+$.

languageCode - Optional. The BCP-47 language code, such as "en-US". If specified, the response is localized to the corresponding language code if the original data sources support it. Default is "en-US".

pageSize - Optional. Requested page size of the report. The server might return fewer results than requested. If unspecified, returns 20 reports. The maximum value is 100.

pageToken - Optional. A token that specifies a page of results beyond the first page. Obtained through ListReportsResponse.next_page_token of the previous CloudChannelReportsService.ListReports call.

$fields - Selector specifying which fields to include in a partial response.

Completes with a GoogleCloudChannelV1ListReportsResponse.

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

@core.Deprecated(
  'Not supported. Member documentation may have more information.',
)
async.Future<GoogleCloudChannelV1ListReportsResponse> list(
  core.String parent, {
  core.String? languageCode,
  core.int? pageSize,
  core.String? pageToken,
  core.String? $fields,
}) async {
  final queryParams_ = <core.String, core.List<core.String>>{
    if (languageCode != null) 'languageCode': [languageCode],
    if (pageSize != null) 'pageSize': ['${pageSize}'],
    if (pageToken != null) 'pageToken': [pageToken],
    if ($fields != null) 'fields': [$fields],
  };

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

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