<s> from cerberusclient . common import base <EOL> from cerberusclient . v1 import base as v1_base <EOL> class SecurityAlarm ( base . Resource ) : <EOL> def __repr__ ( self ) : <EOL> return "<STR_LIT>" % self . _info <EOL> def data ( self , ** kwargs ) : <EOL> return self . manager . data ( self , ** kwargs ) <EOL> class SecurityAlarmManager ( v1_base . BaseManager ) : <EOL> resource_class = SecurityAlarm <EOL> def __init__ ( self , api ) : <EOL> super ( SecurityAlarmManager , self ) . __init__ ( api ) <EOL> self . url = self . url_prefix + '<STR_LIT>' <EOL> def list ( self ) : <EOL> return self . _list ( self . url , '<STR_LIT>' ) <EOL> def get ( self , alarm_id ) : <EOL> return self . _get ( self . url + '<STR_LIT>' . format ( id = alarm_id ) ) <EOL> def put ( self , alarm_id , ticket_id ) : <EOL> return self . _update ( self . url + '<STR_LIT>' . format ( id = alarm_id ) + <EOL> '<STR_LIT>' + '<STR_LIT>' . format ( <EOL> ticket_id = ticket_id ) ) </s>
