Class ShareTypeServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.internal.MicroVersionedOpenStackService
-
- org.openstack4j.openstack.manila.internal.BaseShareServices
-
- org.openstack4j.openstack.manila.internal.ShareTypeServiceImpl
-
- All Implemented Interfaces:
ShareTypeService,RestService
public class ShareTypeServiceImpl extends BaseShareServices implements ShareTypeService
Share Types Service for Manila Shared Filesystems.- Author:
- Daniel Gonzalez Nothnagel
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ShareTypeServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionResponseaddShareTypeAccess(String shareTypeId, String projectId)Adds share type access for a project.ShareTypecreate(ShareTypeCreate shareTypeCreate)Creates a share type.ActionResponsedelete(String shareTypeId)Deletes a share type.List<? extends ShareType>list()Lists all share types.ShareTypelistDefaults()Lists default share types.ExtraSpecslistExtraSpecs(String shareTypeId)Lists the extra specifications for a share type.ActionResponseremoveShareTypeAccess(String shareTypeId, String projectId)Removes share type access from a project.ExtraSpecssetExtraSpec(String shareTypeId, ExtraSpecs extraSpecs)Sets an extra specification for the share type.List<? extends ShareTypeAccess>shareTypeAccessDetails(String shareTypeId)Shows access details for a share type.ActionResponseunsetExtraSpec(String shareTypeId, String extraSpecKey)Unsets an extra specification for the share type.-
Methods inherited from class org.openstack4j.openstack.manila.internal.BaseShareServices
getApiVersionHeader
-
Methods inherited from class org.openstack4j.openstack.internal.MicroVersionedOpenStackService
delete, deleteWithResponse, get, head, patch, post, put, request
-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, patchWithResponse, postWithResponse, putWithResponse, toList, uri
-
-
-
-
Method Detail
-
create
public ShareType create(ShareTypeCreate shareTypeCreate)
Creates a share type.- Specified by:
createin interfaceShareTypeService- Parameters:
shareTypeCreate- the share type to create- Returns:
- the created share type
-
list
public List<? extends ShareType> list()
Lists all share types.- Specified by:
listin interfaceShareTypeService- Returns:
- a list of all share types
-
listDefaults
public ShareType listDefaults()
Lists default share types.- Specified by:
listDefaultsin interfaceShareTypeService- Returns:
- the default share types
-
delete
public ActionResponse delete(String shareTypeId)
Deletes a share type.- Specified by:
deletein interfaceShareTypeService- Parameters:
shareTypeId- the share type ID- Returns:
- the action response
-
listExtraSpecs
public ExtraSpecs listExtraSpecs(String shareTypeId)
Lists the extra specifications for a share type.- Specified by:
listExtraSpecsin interfaceShareTypeService- Parameters:
shareTypeId- the share type ID- Returns:
- a list of the extra specifications of a share type
-
setExtraSpec
public ExtraSpecs setExtraSpec(String shareTypeId, ExtraSpecs extraSpecs)
Sets an extra specification for the share type.- Specified by:
setExtraSpecin interfaceShareTypeService- Parameters:
shareTypeId- the share type IDextraSpecs- the extra specifications to set- Returns:
- the extra specifications of the share type
-
unsetExtraSpec
public ActionResponse unsetExtraSpec(String shareTypeId, String extraSpecKey)
Unsets an extra specification for the share type.- Specified by:
unsetExtraSpecin interfaceShareTypeService- Parameters:
shareTypeId- the share type IDextraSpecKey- the key of the extra specification to unset- Returns:
- the action response
-
addShareTypeAccess
public ActionResponse addShareTypeAccess(String shareTypeId, String projectId)
Adds share type access for a project.- Specified by:
addShareTypeAccessin interfaceShareTypeService- Parameters:
shareTypeId- the share type IDprojectId- the project ID- Returns:
- the action response
-
removeShareTypeAccess
public ActionResponse removeShareTypeAccess(String shareTypeId, String projectId)
Removes share type access from a project.- Specified by:
removeShareTypeAccessin interfaceShareTypeService- Parameters:
shareTypeId- the share type IDprojectId- the project ID- Returns:
- the action response
-
shareTypeAccessDetails
public List<? extends ShareTypeAccess> shareTypeAccessDetails(String shareTypeId)
Shows access details for a share type.- Specified by:
shareTypeAccessDetailsin interfaceShareTypeService- Parameters:
shareTypeId- the share type ID- Returns:
- a list of all access etails of a share type
-
-