updateTestSet method

Future<UpdateTestSetResponse> updateTestSet({
  1. required String testSetId,
  2. required String testSetName,
  3. String? description,
})

The action to update the test set.

May throw ConflictException. May throw InternalServerException. May throw PreconditionFailedException. May throw ServiceQuotaExceededException. May throw ThrottlingException. May throw ValidationException.

Parameter testSetId : The test set Id for which update test operation to be performed.

Parameter testSetName : The new test set name.

Parameter description : The new test set description.

Implementation

Future<UpdateTestSetResponse> updateTestSet({
  required String testSetId,
  required String testSetName,
  String? description,
}) async {
  final $payload = <String, dynamic>{
    'testSetName': testSetName,
    if (description != null) 'description': description,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'PUT',
    requestUri: '/testsets/${Uri.encodeComponent(testSetId)}',
    exceptionFnMap: _exceptionFns,
  );
  return UpdateTestSetResponse.fromJson(response);
}