def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.alerts = []
        for alert in self.pop('alerts', []):
            self.alerts.append(ListAlertsResponse.AlertResponse(**alert))

        self.decode()
Example #2
0
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.alerts = []
        for alert in self.pop('alerts', []):
            self.alerts.append(ListAlertsResponse.AlertResponse(**alert))

        self.decode()
Example #3
0
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        initial_data = self.pop('data', {})
        for key in initial_data:
            setattr(self, key, initial_data[key])

        self.decode()
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.message = self.pop('message')
        self.alert_id = self.pop('alertId')
        self.status = self.pop('status')
        self.code = self.pop('code')

        self.decode()
Example #5
0
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.message = self.pop('message')
        self.alert_id = self.pop('alertId')
        self.status = self.pop('status')
        self.code = self.pop('code')

        self.decode()
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.took = self.pop('took')
        self.last_key = self.pop('lastKey')
        self.notes = []
        for note in self.pop('notes', []):
            self.notes.append(ListAlertNotesResponse.AlertNoteResponse(**note))

        self.decode()
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.logs = []
        for log in self.pop('logs', []):
            self.logs.append(ListAlertLogsResponse.AlertLogResponse(**log))

        self.lastKey = self.pop('lastKey')

        self.decode()
Example #8
0
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.took = self.pop('took')
        self.last_key = self.pop('lastKey')
        self.notes = []
        for note in self.pop('notes', []):
            self.notes.append(ListAlertNotesResponse.AlertNoteResponse(**note))

        self.decode()
Example #9
0
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.logs = []
        for log in self.pop('logs', []):
            self.logs.append(ListAlertLogsResponse.AlertLogResponse(**log))

        self.lastKey = self.pop('lastKey')

        self.decode()
Example #10
0
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.users = []
        for user in self.pop('users', []):
            self.users.append(ListAlertRecipientsResponse.UserResponse(**user))

        self.groups = []
        for group in self.pop('groups', []):
            self.groups.append(ListAlertRecipientsResponse.GroupResponse(**group))

        self.decode()
Example #11
0
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.users = []
        for user in self.pop('users', []):
            self.users.append(ListAlertRecipientsResponse.UserResponse(**user))

        self.groups = []
        for group in self.pop('groups', []):
            self.groups.append(
                ListAlertRecipientsResponse.GroupResponse(**group))

        self.decode()
Example #12
0
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.tags = self.pop('tags')
        self.count = self.pop('count')
        self.status = self.pop('status')
        self.teams = self.pop('teams')
        self.recipients = self.pop('recipients')
        self.tiny_id = self.pop('tinyId')
        self.alias = self.pop('alias')
        self.entity = self.pop('entity')
        self.id = self.pop('id')
        self.updated_at = convert_to_date(self.pop('updatedAt'))
        self.message = self.pop('message')
        self.details = self.pop('details')
        self.source = self.pop('source')
        self.description = self.pop('description')
        self.created_at = convert_to_date(self.pop('createdAt'))
        self.is_seen = self.pop('isSeen')
        self.acknowledged = self.pop('acknowledged')
        self.owner = self.pop('owner')
        self.actions = self.pop('actions')
        self.system_data = self.pop('systemData')

        self.decode()
Example #13
0
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.tags = self.pop('tags')
        self.count = self.pop('count')
        self.status = self.pop('status')
        self.teams = self.pop('teams')
        self.recipients = self.pop('recipients')
        self.tiny_id = self.pop('tinyId')
        self.alias = self.pop('alias')
        self.entity = self.pop('entity')
        self.id = self.pop('id')
        self.updated_at = convert_to_date(self.pop('updatedAt'))
        self.message = self.pop('message')
        self.details = self.pop('details')
        self.source = self.pop('source')
        self.description = self.pop('description')
        self.created_at = convert_to_date(self.pop('createdAt'))
        self.is_seen = self.pop('isSeen')
        self.acknowledged = self.pop('acknowledged')
        self.owner = self.pop('owner')
        self.actions = self.pop('actions')
        self.system_data = self.pop('systemData')

        self.decode()
Example #14
0
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.count = self.pop('count')

        self.decode()
Example #15
0
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.status = self.pop('status')
        self.code = self.pop('code')

        self.decode()
Example #16
0
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.count = self.pop('count')

        self.decode()
Example #17
0
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.status = self.pop('status')
        self.code = self.pop('code')

        self.decode()
            def __init__(self, json_str):
                BaseResponse.__init__(self, json_str)
                self.key = self.pop('key1')

                self.decode()
Example #19
0
    def __init__(self, json_str):
        BaseResponse.__init__(self, json_str)
        self.message = self.pop('result', self.pop('message', ''))
        self.requestId = self.pop('requestId')

        self.decode()