getReportMetadata method

Future<GetReportMetadataResponse> getReportMetadata({
  1. required String reportId,
  2. int? reportVersion,
})

Get the metadata for a single report.

May throw AccessDeniedException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ServiceQuotaExceededException. May throw ThrottlingException. May throw ValidationException.

Parameter reportId : Unique resource ID for the report resource.

Parameter reportVersion : Version for the report resource.

Implementation

Future<GetReportMetadataResponse> getReportMetadata({
  required String reportId,
  int? reportVersion,
}) async {
  _s.validateNumRange(
    'reportVersion',
    reportVersion,
    1,
    1152921504606846976,
  );
  final $query = <String, List<String>>{
    'reportId': [reportId],
    if (reportVersion != null) 'reportVersion': [reportVersion.toString()],
  };
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/v1/report/getMetadata',
    queryParams: $query,
    exceptionFnMap: _exceptionFns,
  );
  return GetReportMetadataResponse.fromJson(response);
}