org.openstack4j.api.trove.DatabaseService Maven / Gradle / Ivy
package org.openstack4j.api.trove;
import org.openstack4j.model.common.ActionResponse;
import org.openstack4j.model.trove.Database;
import org.openstack4j.openstack.trove.domain.TroveDatabase.Databases;
import java.util.List;
/**
* This interface defines all methods for the manipulation of databases
*
* @author sumit gandhi
*/
public interface DatabaseService {
/**
* Gets the database specified by ID
* @param instanceId
* @return the database or null if not found
*/
List extends Database> list(String instanceId);
/**
* Create a new database
* @param id
* @param databases
* @return the action response
*/
ActionResponse create(String id, Databases databases);
/**
* Deletes the database
* @param instanceId
* @param name
* @return the action response
*/
ActionResponse delete(String instanceId, String name);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy