org.openstack4j.api.gbp.NatPoolService Maven / Gradle / Ivy
package org.openstack4j.api.gbp;
import java.util.List;
import java.util.Map;
import org.openstack4j.model.common.ActionResponse;
import org.openstack4j.model.gbp.NatPool;
/**
* This interface defines all methods for the manipulation of nat-pool
*
* @author vinod borole
*
*/
public interface NatPoolService {
/**
* List all nat pool
*
* @return List of nat pool
*/
List extends NatPool> list();
/**
* Returns list of nat pool filtered by parameters.
*
* @param filteringParams map (name, value) of filtering parameters
* @return
*/
List extends NatPool> list(Map filteringParams);
/**
* Get the specified nat pool by ID
*
* @param id the nat pool id
* @return nat pool or null if not found
*/
NatPool get(String id);
/**
* Delete of the nat pool
* @param id the nat pool id
* @return the action response
*/
ActionResponse delete(String id);
/**
* Create a new nat pool
*
* @param nat pool
* @return the newly created nat pool
*/
NatPool create(NatPool natpool);
/**
* Updates an existing nat pool
*
* @param nat pool identifier
* @param nat pool that is be used to updated
* @return the updated nat pool
*/
NatPool update(String natpoolId,NatPool natpool);
}