Esempio n. 1
0
        public UntagRun UntagRun(int runId, string tag)
        {
            var parameters = new Parameters();

            parameters.AddPostParameter("run_id", runId);
            parameters.AddPostParameter("tag", tag);
            return(_dao.ExecuteAuthenticatedRequest <UntagRun>("/run/untag ", ApiKey, parameters, Method.POST));
        }
Esempio n. 2
0
        public UntagFlow UntagFlow(int flowId, string tag)
        {
            var parameters = new Parameters();

            parameters.AddPostParameter("flow_id", flowId);
            parameters.AddPostParameter("tag", tag);
            return(_dao.ExecuteAuthenticatedRequest <UntagFlow>("/flow/untag", ApiKey, parameters, Method.POST));
        }
Esempio n. 3
0
        public DataUntag UntagDataSet(int datasetId, string tag)
        {
            var parameters = new Parameters();

            parameters.AddPostParameter("data_id", datasetId);
            parameters.AddPostParameter("tag", tag);
            return(_dao.ExecuteAuthenticatedRequest <DataUntag>("/data/untag", ApiKey, parameters, Method.POST));
        }
Esempio n. 4
0
        public UntagTask UntagTask(int taskId, string tag)
        {
            var parameters = new Parameters();

            parameters.AddPostParameter("task_id", taskId);
            parameters.AddPostParameter("tag", tag);
            return(_dao.ExecuteAuthenticatedRequest <UntagTask>("/task/untag", ApiKey, parameters, Method.POST));
        }
Esempio n. 5
0
        /// <summary>
        /// Upload a new dataset
        /// </summary>
        /// <param name="datasetPath">Path of the dataset</param>
        /// <param name="datasetDescription">Description of the dataset</param>
        /// <returns></returns>
        public UploadDataSet UploadDataSet(string datasetPath, UploadDatasetDescription datasetDescription)
        {
            var parameters = new Parameters();

            parameters.AddPostParameter("description", datasetDescription.ToXml());
            var fileParameters = new List <FileParameter>
            {
                new FileParameter("dataset", datasetPath)
            };

            return(_dao.ExecuteAuthenticatedRequest <UploadDataSet>("/data", ApiKey, parameters, Method.POST, fileParameters));
        }