getReport method
Get the content for a single report.
May throw AccessDeniedException.
May throw ConflictException.
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 termToken :
Unique download token provided by GetTermForReport API.
Parameter reportVersion :
Version for the report resource.
Implementation
Future<GetReportResponse> getReport({
required String reportId,
required String termToken,
int? reportVersion,
}) async {
_s.validateNumRange(
'reportVersion',
reportVersion,
1,
1152921504606846976,
);
final $query = <String, List<String>>{
'reportId': [reportId],
'termToken': [termToken],
if (reportVersion != null) 'reportVersion': [reportVersion.toString()],
};
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/v1/report/get',
queryParams: $query,
exceptionFnMap: _exceptionFns,
);
return GetReportResponse.fromJson(response);
}