<s> """<STR_LIT>""" <EOL> import click <EOL> import SoftLayer <EOL> from SoftLayer . CLI import environment <EOL> from SoftLayer . CLI import helpers <EOL> @ click . command ( ) <EOL> @ click . argument ( '<STR_LIT>' ) <EOL> @ click . option ( '<STR_LIT>' , help = '<STR_LIT>' ) <EOL> @ click . option ( '<STR_LIT>' , help = '<STR_LIT>' ) <EOL> @ click . option ( '<STR_LIT>' , help = '<STR_LIT>' ) <EOL> @ click . option ( '<STR_LIT>' , <EOL> type = click . INT , <EOL> help = '<STR_LIT>' ) <EOL> @ environment . pass_env <EOL> def cli ( env , zone_id , by_record , by_id , data , ttl ) : <EOL> """<STR_LIT>""" <EOL> manager = SoftLayer . DNSManager ( env . client ) <EOL> zone_id = helpers . resolve_id ( manager . resolve_ids , zone_id , name = '<STR_LIT>' ) <EOL> results = manager . get_records ( zone_id , host = by_record ) <EOL> for result in results : <EOL> if by_id and str ( result [ '<STR_LIT:id>' ] ) != by_id : <EOL> continue <EOL> result [ '<STR_LIT:data>' ] = data or result [ '<STR_LIT:data>' ] <EOL> result [ '<STR_LIT>' ] = ttl or result [ '<STR_LIT>' ] <EOL> manager . edit_record ( result ) </s>
