org.openstack4j.api.workflow.EventTriggerService Maven / Gradle / Ivy
package org.openstack4j.api.workflow;
import org.openstack4j.common.RestService;
import org.openstack4j.core.transport.HttpResponse;
import org.openstack4j.model.workflow.EventTrigger;
import java.util.List;
/**
* Service that provides CRUD operations for event triggers.
*
* @author Renat Akhmerov
*/
public interface EventTriggerService extends RestService {
/**
* List all event triggers with details.
*
* @return List of event triggers.
*/
List extends EventTrigger> list();
/**
* Create a new event trigger.
*
* @param eventTrigger Event trigger to create.
* @return Created event trigger.
*/
EventTrigger create(EventTrigger eventTrigger);
/**
* Get event trigger by its ID.
*
* @param id Event trigger ID.
* @return Event trigger.
*/
EventTrigger get(String id);
/**
* Delete event trigger by its ID.
*
* @param id Event trigger ID.
* @return HTTP response from the server.
*/
HttpResponse delete(String id);
}