Created
March 15, 2019 15:12
-
-
Save bromiley/96df17ba534bf3727442b862250b2781 to your computer and use it in GitHub Desktop.
TheHive CaseTask model
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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