All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.openstack4j.api.image.v2.TaskService Maven / Gradle / Ivy

package org.openstack4j.api.image.v2;

import org.openstack4j.common.RestService;
import org.openstack4j.model.image.v2.Task;

import java.util.List;
import java.util.Map;

/**
 * Image (Glance) V2 Tasks Api
 * @author emjburns
 */
public interface TaskService extends RestService {
    /**
     * List tasks
     * @return a list of tasks.
     */
    List list();

    /**
     * List tasks filtering by parameters.
     * Use these parameters to do pagination as described in
     * http://developer.openstack.org/api-ref/image/v2/index.html#list-tasks
     * @param filteringParams
     * @return a list of tasks
     */
    List list(Map filteringParams);

    /**
     * Show details for a task.
     * @param taskId
     * @return a specific task
     */
    Task get(String taskId);

    /**
     * Create a task
     * @return the task
     */
    Task create(Task task);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy