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.
|
getApiVersionHeader
delete, deleteWithResponse, get, head, patch, post, put, request
getProvider, getServiceVersion, getXOpenstackRequestId, patchWithResponse, postWithResponse, toList, uri
public ShareType create(ShareTypeCreate shareTypeCreate)
create
in interface ShareTypeService
shareTypeCreate
- the share type to createpublic List<? extends ShareType> list()
list
in interface ShareTypeService
public ShareType listDefaults()
listDefaults
in interface ShareTypeService
public ActionResponse delete(String shareTypeId)
delete
in interface ShareTypeService
shareTypeId
- the share type IDpublic ExtraSpecs listExtraSpecs(String shareTypeId)
listExtraSpecs
in interface ShareTypeService
shareTypeId
- the share type IDpublic ExtraSpecs setExtraSpec(String shareTypeId, ExtraSpecs extraSpecs)
setExtraSpec
in interface ShareTypeService
shareTypeId
- the share type IDextraSpecs
- the extra specifications to setpublic ActionResponse unsetExtraSpec(String shareTypeId, String extraSpecKey)
unsetExtraSpec
in interface ShareTypeService
shareTypeId
- the share type IDextraSpecKey
- the key of the extra specification to unsetpublic ActionResponse addShareTypeAccess(String shareTypeId, String projectId)
addShareTypeAccess
in interface ShareTypeService
shareTypeId
- the share type IDprojectId
- the project IDpublic ActionResponse removeShareTypeAccess(String shareTypeId, String projectId)
removeShareTypeAccess
in interface ShareTypeService
shareTypeId
- the share type IDprojectId
- the project IDpublic List<? extends ShareTypeAccess> shareTypeAccessDetails(String shareTypeId)
shareTypeAccessDetails
in interface ShareTypeService
shareTypeId
- the share type IDCopyright © 2017. All rights reserved.