com.huawei.openstack4j.api.senlin.SenlinProfileService 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.senlin;
import java.util.List;
import com.huawei.openstack4j.model.common.ActionResponse;
import com.huawei.openstack4j.model.senlin.Profile;
import com.huawei.openstack4j.model.senlin.ProfileCreate;
/**
* This interface defines all methods for the manipulation of Profile
*
* @author lion
*
*/
public interface SenlinProfileService {
/**
* Gets a list of currently existing {@link Profile}s.
*
* @return the list of {@link Profile}s
*/
List extends Profile> list();
/**
* POST /v1/profiles
*
* Creates a new {@link Profile} out of a {@link ProfileCreate} object
*
* @param newProfile
* {@link ProfileCreate} object out of which stack is to be created
* @return new {@link Profile} as returned from the server
*/
Profile create(ProfileCreate newProfile);
/**
* returns details of a {@link Profile}.
*
* @param profileID
* Id of {@link Profile}
* @return Profile
*/
Profile get(String profileID);
/**
* PATCH /v1/profiles/{profile_id}
*
* Update a {@link Profile} out of a {@link ProfileCreate} object
*
* @param profileID
* Id of {@link Profile}
* @param newProfile
* {@link ProfileCreate} object out of which stack is to be update
* @return new {@link Profile} as returned from the server
*/
Profile update(String profileID, ProfileCreate newProfile);
/**
* Deletes the specified {@link ActionResponse} from the server.
*
* @param profileID
* Id of {@link ActionResponse}
* @return the action response
*/
ActionResponse delete(String profileID);
}