public static void UpdateEsbTask(this ICakeContext context, Models.UpdateEsbTaskSettings esbTaskSettings, TalendAdminApiSettings settings)
        {
            var api = new TalendAdminApi(settings.TalendAdminAddress, settings.TalendAdminUsername, settings.TalendAdminPassword);

            api.UpdateEsbTask(esbTaskSettings);
        }
        public static IEnumerable <Models.EsbTask> GetEsbTaskList(this ICakeContext context, TalendAdminApiSettings settings)
        {
            var api = new TalendAdminApi(settings.TalendAdminAddress, settings.TalendAdminUsername, settings.TalendAdminPassword);

            return(api.GetEsbTaskList());
        }
        public static int GetEsbTaskIdByName(this ICakeContext context, string esbTaskName, TalendAdminApiSettings settings)
        {
            var api = new TalendAdminApi(settings.TalendAdminAddress, settings.TalendAdminUsername, settings.TalendAdminPassword);

            return(api.GetEsbTaskIdByName(esbTaskName));
        }
        public static void UndeployEsbTask(this ICakeContext context, int taskId, TalendAdminApiSettings settings)
        {
            var api = new TalendAdminApi(settings.TalendAdminAddress, settings.TalendAdminUsername, settings.TalendAdminPassword);

            api.UndeployEsbTask(taskId);
        }