updateNetworkMigrationMapperSegment method
Updates a mapper segment's configuration, such as changing its scope tags.
May throw AccessDeniedException.
May throw ResourceNotFoundException.
May throw ValidationException.
Parameter networkMigrationDefinitionID :
The unique identifier of the network migration definition.
Parameter networkMigrationExecutionID :
The unique identifier of the network migration execution.
Parameter segmentID :
The unique identifier of the segment to update.
Parameter scopeTags :
The updated scope tags for the segment.
Implementation
Future<NetworkMigrationMapperSegment> updateNetworkMigrationMapperSegment({
required String networkMigrationDefinitionID,
required String networkMigrationExecutionID,
required String segmentID,
Map<String, String>? scopeTags,
}) async {
final $payload = <String, dynamic>{
'networkMigrationDefinitionID': networkMigrationDefinitionID,
'networkMigrationExecutionID': networkMigrationExecutionID,
'segmentID': segmentID,
if (scopeTags != null) 'scopeTags': scopeTags,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/network-migration/UpdateNetworkMigrationMapperSegment',
exceptionFnMap: _exceptionFns,
);
return NetworkMigrationMapperSegment.fromJson(response);
}