com.huawei.openstack4j.api.manila.SecurityServiceService Maven / Gradle / Ivy
The newest version!
/*******************************************************************************
* Copyright 2016 ContainX and OpenStack4j
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*******************************************************************************/
package com.huawei.openstack4j.api.manila;
import java.util.List;
import com.huawei.openstack4j.common.RestService;
import com.huawei.openstack4j.model.common.ActionResponse;
import com.huawei.openstack4j.model.manila.SecurityService;
import com.huawei.openstack4j.model.manila.SecurityServiceCreate;
import com.huawei.openstack4j.model.manila.SecurityServiceUpdateOptions;
import com.huawei.openstack4j.model.manila.builder.SecurityServiceCreateBuilder;
/**
* Security Services Service for Manila Shared File Systems.
*
* @author Daniel Gonzalez Nothnagel
*/
public interface SecurityServiceService extends RestService {
/**
* Creates a security service.
*
* @param securityServiceCreate the security service to create
* @return the created security service
*/
SecurityService create(SecurityServiceCreate securityServiceCreate);
/**
* Lists all security services.
*
* @return list of all security services
*/
List extends SecurityService> list();
/**
* Lists all security services with details.
*
* @return list of all security services with details
*/
List extends SecurityService> listDetails();
/**
* Shows details for a security service.
*
* @param securityServiceId the security service ID
* @return the security service or null if not found
*/
SecurityService get(String securityServiceId);
/**
* Updates a security service.
*
* @param securityServiceId the security service id
* @param securityServiceUpdateOptions the options to update on the security service
* @return the updated security service
*/
SecurityService update(String securityServiceId, SecurityServiceUpdateOptions securityServiceUpdateOptions);
/**
* Deletes a security service.
*
* @param securityServiceId the security service ID
* @return the action response
*/
ActionResponse delete(String securityServiceId);
/**
* @return a builder to create a security service
*/
SecurityServiceCreateBuilder securityServiceCreateBuilder();
}