updateSimulationApplication method

Future<UpdateSimulationApplicationResponse> updateSimulationApplication({
  1. required String application,
  2. required RobotSoftwareSuite robotSoftwareSuite,
  3. required SimulationSoftwareSuite simulationSoftwareSuite,
  4. required List<SourceConfig> sources,
  5. String? currentRevisionId,
  6. RenderingEngine? renderingEngine,
})

Updates a simulation application.

May throw InvalidParameterException. May throw ResourceNotFoundException. May throw LimitExceededException. May throw ThrottlingException. May throw InternalServerException.

Parameter application : The application information for the simulation application.

Parameter robotSoftwareSuite : Information about the robot software suite (ROS distribution).

Parameter simulationSoftwareSuite : The simulation software suite used by the simulation application.

Parameter sources : The sources of the simulation application.

Parameter currentRevisionId : The revision id for the robot application.

Parameter renderingEngine : The rendering engine for the simulation application.

Implementation

Future<UpdateSimulationApplicationResponse> updateSimulationApplication({
  required String application,
  required RobotSoftwareSuite robotSoftwareSuite,
  required SimulationSoftwareSuite simulationSoftwareSuite,
  required List<SourceConfig> sources,
  String? currentRevisionId,
  RenderingEngine? renderingEngine,
}) async {
  ArgumentError.checkNotNull(application, 'application');
  _s.validateStringLength(
    'application',
    application,
    1,
    1224,
    isRequired: true,
  );
  ArgumentError.checkNotNull(robotSoftwareSuite, 'robotSoftwareSuite');
  ArgumentError.checkNotNull(
      simulationSoftwareSuite, 'simulationSoftwareSuite');
  ArgumentError.checkNotNull(sources, 'sources');
  _s.validateStringLength(
    'currentRevisionId',
    currentRevisionId,
    1,
    40,
  );
  final $payload = <String, dynamic>{
    'application': application,
    'robotSoftwareSuite': robotSoftwareSuite,
    'simulationSoftwareSuite': simulationSoftwareSuite,
    'sources': sources,
    if (currentRevisionId != null) 'currentRevisionId': currentRevisionId,
    if (renderingEngine != null) 'renderingEngine': renderingEngine,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/updateSimulationApplication',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateSimulationApplicationResponse.fromJson(response);
}