コード例 #1
0
        /// <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));
        }
コード例 #2
0
        /// <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));
        }
コード例 #3
0
        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));
        }
コード例 #4
0
        //***********************************Flows
        public FlowDetail GetFlowDescription(int flowId)
        {
            var parameters = new Parameters();

            parameters.AddUrlSegment("id", flowId);
            return(_dao.ExecuteAuthenticatedRequest <FlowDetail>("/flow/{id}", ApiKey, parameters));
        }
コード例 #5
0
        //************************************ 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));
        }
コード例 #6
0
        public DeleteTask DeleteTask(int taskId)
        {
            var parameters = new Parameters();

            parameters.AddUrlSegment("id", taskId);
            return(_dao.ExecuteAuthenticatedRequest <DeleteTask>("/task/{id} ", ApiKey, parameters, Method.DELETE));
        }
コード例 #7
0
        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));
        }
コード例 #8
0
        //**************************************** 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));
        }
コード例 #9
0
        public DeleteFlow DeleteFlow(int flowId)
        {
            var parameters = new Parameters();

            parameters.AddUrlSegment("id", flowId);
            return(_dao.ExecuteAuthenticatedRequest <DeleteFlow>("/flow/{id}", ApiKey, parameters, Method.DELETE));
        }
コード例 #10
0
        /// <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));
        }
コード例 #11
0
        /// <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);
        }
コード例 #12
0
        public DataDelete DeleteDataset(int datasetId)
        {
            var parameters = new Parameters();

            parameters.AddUrlSegment("id", datasetId);
            return(_dao.ExecuteAuthenticatedRequest <DataDelete>("/data/{id}", ApiKey, parameters, Method.DELETE));
        }
コード例 #13
0
        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));
        }
コード例 #14
0
        public DeleteRun DeleteRun(int runId)
        {
            var parameters = new Parameters();

            parameters.AddUrlSegment("id", runId);
            return(_dao.ExecuteAuthenticatedRequest <DeleteRun>("/run/{id}", ApiKey, parameters, Method.DELETE));
        }
コード例 #15
0
        /// <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));
        }
コード例 #16
0
        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));
        }
コード例 #17
0
        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));
        }