markAsArchived method
Archives specific Source Servers by setting the SourceServer.isArchived property to true for specified SourceServers by ID. This command only works for SourceServers with a lifecycle. state which equals DISCONNECTED or CUTOVER.
May throw ConflictException.
May throw ResourceNotFoundException.
May throw UninitializedAccountException.
Parameter sourceServerID :
Mark as archived by Source Server ID.
Parameter accountID :
Mark as archived by Account ID.
Implementation
Future<SourceServer> markAsArchived({
required String sourceServerID,
String? accountID,
}) async {
final $payload = <String, dynamic>{
'sourceServerID': sourceServerID,
if (accountID != null) 'accountID': accountID,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/MarkAsArchived',
exceptionFnMap: _exceptionFns,
);
return SourceServer.fromJson(response);
}