public class ShareTypeServiceImpl extends BaseShareServices implements ShareTypeService
BaseOpenStackService.Invocation<R>| Constructor and Description |
|---|
ShareTypeServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
ActionResponse |
addShareTypeAccess(String shareTypeId,
String projectId)
Adds share type access for a project.
|
ShareType |
create(ShareTypeCreate shareTypeCreate)
Creates a share type.
|
ActionResponse |
delete(String shareTypeId)
Deletes a share type.
|
List<? extends ShareType> |
list()
Lists all share types.
|
ShareType |
listDefaults()
Lists default share types.
|
ExtraSpecs |
listExtraSpecs(String shareTypeId)
Lists the extra specifications for a share type.
|
ActionResponse |
removeShareTypeAccess(String shareTypeId,
String projectId)
Removes share type access from a project.
|
ExtraSpecs |
setExtraSpec(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.
|
ActionResponse |
unsetExtraSpec(String shareTypeId,
String extraSpecKey)
Unsets an extra specification for the share type.
|
getApiVersionHeaderdelete, deleteWithResponse, get, head, patch, post, put, requestgetProvider, getServiceVersion, getXOpenstackRequestId, patchWithResponse, postWithResponse, toList, uripublic ShareType create(ShareTypeCreate shareTypeCreate)
create in interface ShareTypeServiceshareTypeCreate - the share type to createpublic List<? extends ShareType> list()
list in interface ShareTypeServicepublic ShareType listDefaults()
listDefaults in interface ShareTypeServicepublic ActionResponse delete(String shareTypeId)
delete in interface ShareTypeServiceshareTypeId - the share type IDpublic ExtraSpecs listExtraSpecs(String shareTypeId)
listExtraSpecs in interface ShareTypeServiceshareTypeId - the share type IDpublic ExtraSpecs setExtraSpec(String shareTypeId, ExtraSpecs extraSpecs)
setExtraSpec in interface ShareTypeServiceshareTypeId - the share type IDextraSpecs - the extra specifications to setpublic ActionResponse unsetExtraSpec(String shareTypeId, String extraSpecKey)
unsetExtraSpec in interface ShareTypeServiceshareTypeId - the share type IDextraSpecKey - the key of the extra specification to unsetpublic ActionResponse addShareTypeAccess(String shareTypeId, String projectId)
addShareTypeAccess in interface ShareTypeServiceshareTypeId - the share type IDprojectId - the project IDpublic ActionResponse removeShareTypeAccess(String shareTypeId, String projectId)
removeShareTypeAccess in interface ShareTypeServiceshareTypeId - the share type IDprojectId - the project IDpublic List<? extends ShareTypeAccess> shareTypeAccessDetails(String shareTypeId)
shareTypeAccessDetails in interface ShareTypeServiceshareTypeId - the share type IDCopyright © 2017. All rights reserved.