Class SenlinProfileServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.senlin.internal.BaseSenlinServices
-
- org.openstack4j.openstack.senlin.internal.SenlinProfileServiceImpl
-
- All Implemented Interfaces:
SenlinProfileService
public class SenlinProfileServiceImpl extends BaseSenlinServices implements SenlinProfileService
This class contains getters for all implementation of the available profile services- Author:
- lion
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description SenlinProfileServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Profilecreate(ProfileCreate newProfile)POST /v1/profilesActionResponsedelete(String policyID)Deletes the specifiedActionResponsefrom the server.Profileget(String policyID)returns details of aProfile.List<? extends Profile>list()Gets a list of currently existingProfiles.Profileupdate(String policyID, ProfileCreate newPolicy)PATCH /v1/profiles/{profile_id}-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
list
public List<? extends Profile> list()
Description copied from interface:SenlinProfileServiceGets a list of currently existingProfiles.- Specified by:
listin interfaceSenlinProfileService- Returns:
- the list of
Profiles
-
create
public Profile create(ProfileCreate newProfile)
Description copied from interface:SenlinProfileService- Specified by:
createin interfaceSenlinProfileService- Parameters:
newProfile-ProfileCreateobject out of which stack is to be created- Returns:
- new
Profileas returned from the server
-
get
public Profile get(String policyID)
Description copied from interface:SenlinProfileServicereturns details of aProfile.- Specified by:
getin interfaceSenlinProfileService- Parameters:
policyID- Id ofProfile- Returns:
- Profile
-
update
public Profile update(String policyID, ProfileCreate newPolicy)
Description copied from interface:SenlinProfileService- Specified by:
updatein interfaceSenlinProfileService- Parameters:
policyID- Id ofProfilenewPolicy-ProfileCreateobject out of which stack is to be update- Returns:
- new
Profileas returned from the server
-
delete
public ActionResponse delete(String policyID)
Description copied from interface:SenlinProfileServiceDeletes the specifiedActionResponsefrom the server.- Specified by:
deletein interfaceSenlinProfileService- Parameters:
policyID- Id ofActionResponse- Returns:
- the action response
-
-