createRobotApplicationVersion method

Future<CreateRobotApplicationVersionResponse> createRobotApplicationVersion({
  1. required String application,
  2. String? currentRevisionId,
})

Creates a version of a robot application.

May throw InvalidParameterException. May throw IdempotentParameterMismatchException. May throw LimitExceededException. May throw ThrottlingException. May throw InternalServerException.

Parameter application : The application information for the robot application.

Parameter currentRevisionId : The current revision id for the robot application. If you provide a value and it matches the latest revision ID, a new version will be created.

Implementation

Future<CreateRobotApplicationVersionResponse> createRobotApplicationVersion({
  required String application,
  String? currentRevisionId,
}) async {
  ArgumentError.checkNotNull(application, 'application');
  _s.validateStringLength(
    'application',
    application,
    1,
    1224,
    isRequired: true,
  );
  _s.validateStringLength(
    'currentRevisionId',
    currentRevisionId,
    1,
    40,
  );
  final $payload = <String, dynamic>{
    'application': application,
    if (currentRevisionId != null) 'currentRevisionId': currentRevisionId,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/createRobotApplicationVersion',
    exceptionFnMap: _exceptionFns,
  );
  return CreateRobotApplicationVersionResponse.fromJson(response);
}