getReportGroupTrend method
Future<GetReportGroupTrendOutput>
getReportGroupTrend({
- required String reportGroupArn,
- required ReportGroupTrendFieldType trendField,
- int? numOfReports,
May throw InvalidInputException. May throw ResourceNotFoundException.
Implementation
Future<GetReportGroupTrendOutput> getReportGroupTrend({
required String reportGroupArn,
required ReportGroupTrendFieldType trendField,
int? numOfReports,
}) async {
ArgumentError.checkNotNull(reportGroupArn, 'reportGroupArn');
_s.validateStringLength(
'reportGroupArn',
reportGroupArn,
1,
1152921504606846976,
isRequired: true,
);
ArgumentError.checkNotNull(trendField, 'trendField');
_s.validateNumRange(
'numOfReports',
numOfReports,
1,
100,
);
final headers = <String, String>{
'Content-Type': 'application/x-amz-json-1.1',
'X-Amz-Target': 'CodeBuild_20161006.GetReportGroupTrend'
};
final jsonResponse = await _protocol.send(
method: 'POST',
requestUri: '/',
exceptionFnMap: _exceptionFns,
// TODO queryParams
headers: headers,
payload: {
'reportGroupArn': reportGroupArn,
'trendField': trendField.toValue(),
if (numOfReports != null) 'numOfReports': numOfReports,
},
);
return GetReportGroupTrendOutput.fromJson(jsonResponse.body);
}