<s> """<STR_LIT>""" <EOL> import click <EOL> import SoftLayer <EOL> from SoftLayer . CLI import environment <EOL> from SoftLayer . CLI import exceptions <EOL> from SoftLayer . CLI import loadbal <EOL> @ click . command ( ) <EOL> @ click . argument ( '<STR_LIT>' ) <EOL> @ click . option ( '<STR_LIT>' , <EOL> type = click . INT , <EOL> help = "<STR_LIT>" ) <EOL> @ click . option ( '<STR_LIT>' , <EOL> help = "<STR_LIT>" , <EOL> type = click . INT ) <EOL> @ click . option ( '<STR_LIT>' , <EOL> help = "<STR_LIT>" ) <EOL> @ click . option ( '<STR_LIT>' , <EOL> help = "<STR_LIT>" ) <EOL> @ environment . pass_env <EOL> def cli ( env , identifier , allocation , port , routing_type , routing_method ) : <EOL> """<STR_LIT>""" <EOL> mgr = SoftLayer . LoadBalancerManager ( env . client ) <EOL> loadbal_id , group_id = loadbal . parse_id ( identifier ) <EOL> if not any ( [ allocation , port , routing_type , routing_method ] ) : <EOL> raise exceptions . CLIAbort ( <EOL> '<STR_LIT>' ) <EOL> mgr . edit_service_group ( loadbal_id , <EOL> group_id , <EOL> allocation = allocation , <EOL> port = port , <EOL> routing_type = routing_type , <EOL> routing_method = routing_method ) <EOL> env . fout ( '<STR_LIT>' % identifier ) </s>
