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

org.openstack4j.api.workflow.EventTriggerService Maven / Gradle / Ivy

The newest version!
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 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);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy