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

org.openstack4j.api.identity.v3.PolicyService Maven / Gradle / Ivy

There is a newer version: 3.2.0
Show newest version
package org.openstack4j.api.identity.v3;

import java.util.List;

import org.openstack4j.common.RestService;
import org.openstack4j.model.identity.v3.Policy;
import org.openstack4j.model.common.ActionResponse;

public interface PolicyService extends RestService {

    /**
     * Create a policy
     *
     * @param policy the policy
     * @return the newly created policy
     */
    Policy create(Policy policy);

    /**
     * Create a policy
     *
     * @param blob the policy rule itself as a serialized blob
     * @param type the MIME media type of the serialized policy blob
     * @param projectId the uuid for the associated project
     * @param userId the id of the user who owns the policy
     * @return the newly created policy
     */
    Policy create(String blob, String type, String projectId, String userId);

    /**
     * Get detailed information on a policy by id
     *
     * @param policyId the policy id
     * @return the policy
     */
    Policy get(String policyId);

    /**
     * Update a policy
     *
     * @param policy the policy set to update
     * @return the updated policy
     */
    Policy update(Policy policy);

    /**
     * Delete a policy
     *
     * @param policyId the policy id
     * @return  the ActionResponse
     */
    ActionResponse delete(String policyId);

    /**
     * @return list of policies
     */
    List list();

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy