Exemplo n.º 1
0
  def Modify(self, client_limit=None, client_rate=None, expires=None):
    """Modifies a number of hunt arguments."""
    args = api_pb2.ApiModifyHuntArgs(hunt_id=self.hunt_id)

    if client_limit is not None:
      args.client_limit = client_limit

    if client_rate is not None:
      args.client_rate = client_rate

    if expires is not None:
      args.expires = expires

    data = self._context.SendRequest("ModifyHunt", args)
    return Hunt(data=data, context=self._context)
Exemplo n.º 2
0
 def Stop(self):
   args = api_pb2.ApiModifyHuntArgs(
       hunt_id=self.hunt_id, state=api_pb2.ApiHunt.STOPPED)
   data = self._context.SendRequest("ModifyHunt", args)
   return Hunt(data=data, context=self._context)