def __init__(self, data=None, context=None): super(HuntResult, self).__init__() self.data = data self.client = client.ClientRef( client_id=utils.UrnStringToClientId(data.client_id), context=context) self.timestamp = data.timestamp
def __init__(self, data=None, context=None): if data is None: raise ValueError("data can't be None") super(Client, self).__init__(client_id=utils.UrnStringToClientId(data.urn), context=context) self.data = data
def __init__(self, data=None, context=None): if data is None: raise ValueError("data can't be None") client_id = utils.UrnStringToClientId(data.urn) flow_id = data.flow_id super(Flow, self).__init__( client_id=client_id, flow_id=flow_id, context=context) self.data = data
def __init__(self, data=None, username=None, context=None): if data is None: raise ValueError("data can't be None") super(ClientApproval, self).__init__( client_id=utils.UrnStringToClientId(data.subject.urn), approval_id=data.id, username=username, context=context) self.data = data