Skip to content

Instantly share code, notes, and snippets.

@bromiley
Created March 15, 2019 15:12
Show Gist options
  • Save bromiley/96df17ba534bf3727442b862250b2781 to your computer and use it in GitHub Desktop.
Save bromiley/96df17ba534bf3727442b862250b2781 to your computer and use it in GitHub Desktop.
TheHive CaseTask model
class CaseTask(JSONSerializable):
def __init__(self, **attributes):
if attributes.get('json', False):
attributes = attributes['json']
self.title = attributes.get('title', None)
self.status = attributes.get('status', 'Waiting')
self.flag = attributes.get('flag', False)
self.description = attributes.get('description', None)
self.owner = attributes.get('owner', None)
self.startDate = attributes.get('startDate', None)
self.group = attributes.get('group', None)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment