updateRobotApplication method
Future<UpdateRobotApplicationResponse>
updateRobotApplication({
- required String application,
- required RobotSoftwareSuite robotSoftwareSuite,
- required List<
SourceConfig> sources, - String? currentRevisionId,
Updates a robot application.
May throw InvalidParameterException. May throw ResourceNotFoundException. May throw LimitExceededException. May throw ThrottlingException. May throw InternalServerException.
Parameter application
:
The application information for the robot application.
Parameter robotSoftwareSuite
:
The robot software suite (ROS distribution) used by the robot application.
Parameter sources
:
The sources of the robot application.
Parameter currentRevisionId
:
The revision id for the robot application.
Implementation
Future<UpdateRobotApplicationResponse> updateRobotApplication({
required String application,
required RobotSoftwareSuite robotSoftwareSuite,
required List<SourceConfig> sources,
String? currentRevisionId,
}) async {
ArgumentError.checkNotNull(application, 'application');
_s.validateStringLength(
'application',
application,
1,
1224,
isRequired: true,
);
ArgumentError.checkNotNull(robotSoftwareSuite, 'robotSoftwareSuite');
ArgumentError.checkNotNull(sources, 'sources');
_s.validateStringLength(
'currentRevisionId',
currentRevisionId,
1,
40,
);
final $payload = <String, dynamic>{
'application': application,
'robotSoftwareSuite': robotSoftwareSuite,
'sources': sources,
if (currentRevisionId != null) 'currentRevisionId': currentRevisionId,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/updateRobotApplication',
exceptionFnMap: _exceptionFns,
);
return UpdateRobotApplicationResponse.fromJson(response);
}