def CreateHunt(flow_name=None, flow_args=None, hunt_runner_args=None, context=None):
 if (not flow_name):
  raise ValueError("flow_name can't be empty")
 request = api_pb2.ApiCreateHuntArgs(flow_name=flow_name)
 if flow_args:
  request.flow_args.value = flow_args.SerializeToString()
  request.flow_args.type_url = utils.GetTypeUrl(flow_args)
 if hunt_runner_args:
  request.hunt_runner_args.CopyFrom(hunt_runner_args)
 data = context.SendRequest('CreateHunt', request)
 return Hunt(data=data, context=context)

def CreateHunt ( flow_name = None , flow_args = None , hunt_runner_args = None , context = None ) : if ( not flow_name ) : raise ValueError ( "flow_name can't be empty" ) request = api_pb2 . ApiCreateHuntArgs ( flow_name = flow_name ) if flow_args : request . flow_args . value = flow_args . SerializeToString ( ) request . flow_args . type_url = utils . GetTypeUrl ( flow_args ) if hunt_runner_args : request . hunt_runner_args . CopyFrom ( hunt_runner_args ) data = context . SendRequest ( 'CreateHunt' , request ) return Hunt ( data = data , context = context )
creates a new hunt .