getOTAUpdate method
Gets an OTA update.
May throw InvalidRequestException. May throw ThrottlingException. May throw UnauthorizedException. May throw InternalFailureException. May throw ServiceUnavailableException. May throw ResourceNotFoundException.
Parameter otaUpdateId
:
The OTA update ID.
Implementation
Future<GetOTAUpdateResponse> getOTAUpdate({
required String otaUpdateId,
}) async {
ArgumentError.checkNotNull(otaUpdateId, 'otaUpdateId');
_s.validateStringLength(
'otaUpdateId',
otaUpdateId,
1,
128,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/otaUpdates/${Uri.encodeComponent(otaUpdateId)}',
exceptionFnMap: _exceptionFns,
);
return GetOTAUpdateResponse.fromJson(response);
}