Пример #1
0
  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
Пример #2
0
    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
Пример #3
0
  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
Пример #4
0
    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