content: package org.openstack4j.api.gbp;
  
  import org.openstack4j.common.RestService;
  import org.openstack4j.model.common.ActionResponse;
  import org.openstack4j.model.gbp.ExternalPolicy;
  import org.openstack4j.model.gbp.ExternalPolicyCreate;
  
  import java.util.List;
  import java.util.Map;
  
  /**
   * This interface defines all methods for the manipulation of external policies
   *
   * @author vinod borole
   */
  public interface ExternalPolicyService extends RestService {
  
      /**
       * List all external policies
       *
       * @return List of external policies
       */
      List<? extends ExternalPolicy> list();
  
      /**
       * Returns list of external policies filtered by parameters.
       *
       * @param filteringParams map (name, value) of filtering parameters
       */
      List<? extends ExternalPolicy> list(Map<String, String> filteringParams);
  
      /**
       * Get the specified external policy by ID
       *
       * @param id the external policy id
       * @return the external policy or null if not found
       */
      ExternalPolicy get(String id);
  
      /**
       * Delete of the external policy
       *
       * @param id the external policy id
       * @return the action response
       */
      ActionResponse delete(String id);
  
      /**
       * Create a new external policy
       *
       * @param external policy
       * @return the newly created external policy
       */
      ExternalPolicy create(ExternalPolicyCreate externalPolicy);
  
      /**
       * Updates an existing external policy
       *
       * @param external policy identifier
       * @param external policy that is be used to updated
       * @return the updated external policy
       */
      ExternalPolicy update(String externalPolicyId, ExternalPolicyCreate externalPolicy);
  }
  