<s> from wsme import types as wtypes <EOL> from solum . api . controllers . v1 . datamodel import types as api_types <EOL> class Pipeline ( api_types . Base ) : <EOL> """<STR_LIT>""" <EOL> plan_uri = wtypes . text <EOL> """<STR_LIT>""" <EOL> workbook_name = wtypes . text <EOL> """<STR_LIT>""" <EOL> trigger_uri = wtypes . text <EOL> """<STR_LIT>""" <EOL> last_execution = wtypes . text <EOL> """<STR_LIT>""" <EOL> @ classmethod <EOL> def from_db_model ( cls , m , host_url ) : <EOL> obj = super ( Pipeline , cls ) . from_db_model ( m , host_url ) <EOL> le_obj = m . last_execution ( ) <EOL> if le_obj is not None : <EOL> obj . last_execution = le_obj . uuid <EOL> obj . plan_uri = '<STR_LIT>' % ( host_url , m . plan_uuid ) <EOL> obj . trigger_uri = '<STR_LIT>' % ( host_url , m . trigger_id ) <EOL> return obj <EOL> @ classmethod <EOL> def sample ( cls ) : <EOL> return cls ( uri = '<STR_LIT>' , <EOL> type = '<STR_LIT>' , <EOL> name = '<STR_LIT>' , <EOL> description = '<STR_LIT>' , <EOL> trigger_uri = '<STR_LIT>' , <EOL> last_execution = '<STR_LIT>' , <EOL> tags = [ '<STR_LIT>' ] , <EOL> project_id = '<STR_LIT>' , <EOL> user_id = '<STR_LIT>' , <EOL> plan_uri = '<STR_LIT>' , <EOL> workbook_name = '<STR_LIT>' ) </s>
