/// <summary> /// Checks whether a flow with the given name and (external) version exists. /// </summary> /// <returns></returns> public FlowExist FlowExist(string name, string externalVersion) { var parameters = new Parameters(); parameters.AddUrlSegment("version", externalVersion); parameters.AddUrlSegment("name", name); return(_dao.ExecuteAuthenticatedRequest <FlowExist>("/flow/exists/{name}/{version}", ApiKey, parameters)); }
/// <summary> /// List all task of the type specified /// </summary> /// <returns></returns> public List <Task> ListTasksOfType(int taskTypeId) { var parameters = new Parameters(); parameters.AddUrlSegment("id", taskTypeId); return(_dao.ExecuteAuthenticatedRequest <List <Task> >("/task/list/type/{id}", ApiKey, parameters)); }
public List <Flow> ListFlowsWithTag(string tag) { var parameters = new Parameters(); parameters.AddUrlSegment("tag", tag); return(_dao.ExecuteAuthenticatedRequest <List <Flow> >("/flow/list/tag/{tag}", ApiKey, parameters)); }
//***********************************Flows public FlowDetail GetFlowDescription(int flowId) { var parameters = new Parameters(); parameters.AddUrlSegment("id", flowId); return(_dao.ExecuteAuthenticatedRequest <FlowDetail>("/flow/{id}", ApiKey, parameters)); }
//************************************ TaskType /// <summary> /// Get task type by id /// </summary> /// <param name="taskTypeId">Id of the task type</param> /// <returns>Task type with the specified id</returns> public TaskTypeDetail GetTaskType(int taskTypeId) { var parameters = new Parameters(); parameters.AddUrlSegment("id", taskTypeId); return(_dao.ExecuteAuthenticatedRequest <TaskTypeDetail>("/tasktype/{id}", ApiKey, parameters)); }
public DeleteTask DeleteTask(int taskId) { var parameters = new Parameters(); parameters.AddUrlSegment("id", taskId); return(_dao.ExecuteAuthenticatedRequest <DeleteTask>("/task/{id} ", ApiKey, parameters, Method.DELETE)); }
public List <Task> ListTasksOfTag(string tag) { var parameters = new Parameters(); parameters.AddUrlSegment("tag", tag); return(_dao.ExecuteAuthenticatedRequest <List <Task> >("/task/list/tag/{tag}", ApiKey, parameters)); }
//**************************************** Run /// <summary> /// Get details of the selected run /// </summary> /// <param name="runId">Id of the run in question</param> /// <returns>RunDetail details</returns> public RunDetail GetRun(int runId) { var parameters = new Parameters(); parameters.AddUrlSegment("id", runId); return(_dao.ExecuteAuthenticatedRequest <RunDetail>("/run/{id}", ApiKey, parameters)); }
public DeleteFlow DeleteFlow(int flowId) { var parameters = new Parameters(); parameters.AddUrlSegment("id", flowId); return(_dao.ExecuteAuthenticatedRequest <DeleteFlow>("/flow/{id}", ApiKey, parameters, Method.DELETE)); }
/// <summary> /// Gets all qualities (metafeatures) of the dataset specified /// </summary> /// <returns></returns> public List <Quality> GetDatasetQualities(int datasetId) { var parameters = new Parameters(); parameters.AddUrlSegment("id", datasetId); return(_dao.ExecuteAuthenticatedRequest <List <Quality> >("/data/qualities/{id}", ApiKey, parameters)); }
/// <summary> /// Returns all datasets with a tag specified /// </summary> /// <returns></returns> public List <Response.Dataset> ListDatasetsWithTag(string tag) { var parameters = new Parameters(); parameters.AddUrlSegment("tag", tag); return(_dao.ExecuteAuthenticatedRequest <Data>("/data/list/tag/{tag}", ApiKey, parameters).Datasets); }
public DataDelete DeleteDataset(int datasetId) { var parameters = new Parameters(); parameters.AddUrlSegment("id", datasetId); return(_dao.ExecuteAuthenticatedRequest <DataDelete>("/data/{id}", ApiKey, parameters, Method.DELETE)); }
public List <Response.Evaluations.Evaluation> GetEvaluationsByTag(string tag) { var parameters = new Parameters(); parameters.AddUrlSegment("tag", tag); return(_dao.ExecuteAuthenticatedRequest <List <Response.Evaluations.Evaluation> >("/evaluation/list/tag/{tag}", ApiKey, parameters)); }
public DeleteRun DeleteRun(int runId) { var parameters = new Parameters(); parameters.AddUrlSegment("id", runId); return(_dao.ExecuteAuthenticatedRequest <DeleteRun>("/run/{id}", ApiKey, parameters, Method.DELETE)); }
/// <summary> /// Gets dataset description by id /// </summary> /// <param name="datasetId">Id of the dataset</param> /// <returns>Dataset desription with the specified id</returns> public DatasetDescription GetDatasetDescription(int datasetId) { var parameters = new Parameters(); parameters.AddUrlSegment("id", datasetId); return(_dao.ExecuteAuthenticatedRequest <DatasetDescription>("/data/{id}", ApiKey, parameters)); }
public List <Response.Evaluations.Evaluation> GetEvaluationsByFlowIds(List <int> ids) { var parameters = new Parameters(); string stringIds = string.Join(",", ids); parameters.AddUrlSegment("ids", stringIds); return(_dao.ExecuteAuthenticatedRequest <List <Response.Evaluations.Evaluation> >("/evaluation/list/flow/{ids}", ApiKey, parameters)); }
public List <Run> GetRunsByUploaderIds(List <int> ids) { var parameters = new Parameters(); string stringIds = string.Join(",", ids); parameters.AddUrlSegment("ids", stringIds); return(_dao.ExecuteAuthenticatedRequest <List <Run> >("/run/list/uploader/{ids}", ApiKey, parameters)); }