public class SharesServiceImpl extends BaseShareServices implements SharesService
BaseOpenStackService.Invocation<R>| Constructor and Description |
|---|
SharesServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Share |
create(ShareCreate shareCreate)
Creates a share.
|
ActionResponse |
delete(String shareId)
Deletes a share.
|
ActionResponse |
delete(String shareId,
String consistencyGroupId)
Deletes a share.
|
ActionResponse |
extend(String shareId,
int newSize)
Increases the size of a share.
|
ActionResponse |
forceDelete(String shareId)
Administrators only.
|
Share |
get(String shareId)
Shows details for a share.
|
Metadata |
getMetadata(String shareId)
Shows the metadata for a share.
|
Access |
grantAccess(String shareId,
AccessOptions options)
Grants access to a share.
|
List<? extends Share> |
list()
Lists all shares.
|
List<? extends Access> |
listAccess(String shareId)
List access rules for a share.
|
List<? extends Share> |
listDetails()
Lists all shares, with details.
|
ActionResponse |
resetState(String shareId,
Share.Status status)
Administrators only.
|
ActionResponse |
revokeAccess(String shareId,
String accessId)
Revokes access from a share.
|
Metadata |
setMetadata(String shareId,
Metadata metadata)
Sets the metadata on a share.
|
ShareCreateBuilder |
shareCreateBuilder() |
ActionResponse |
shrink(String shareId,
int newSize)
Shrinks the size of a share.
|
ActionResponse |
unsetMetadata(String shareId,
String metadataKey)
Unsets the metadata on a share.
|
Share |
update(String shareId,
ShareUpdateOptions shareUpdateOptions)
Updates a share.
|
Metadata |
updateMetadata(String shareId,
Metadata metadata)
Updates the metadata for a share.
|
getApiVersionHeaderdelete, deleteWithResponse, get, head, patch, post, put, requestgetProvider, getServiceVersion, getXOpenstackRequestId, patchWithResponse, postWithResponse, toList, uripublic Share create(ShareCreate shareCreate)
create in interface SharesServiceshareCreate - the share to createpublic List<? extends Share> list()
list in interface SharesServicepublic List<? extends Share> listDetails()
listDetails in interface SharesServicepublic Share get(String shareId)
get in interface SharesServiceshareId - the share IDpublic Share update(String shareId, ShareUpdateOptions shareUpdateOptions)
update in interface SharesServiceshareId - the share IDshareUpdateOptions - the options to update on the sharepublic ActionResponse delete(String shareId)
delete in interface SharesServiceshareId - the share IDpublic ActionResponse delete(String shareId, String consistencyGroupId)
SharesServicedelete in interface SharesServiceshareId - the share IDconsistencyGroupId - the UUID of the consistency group where the share was createdpublic Metadata getMetadata(String shareId)
getMetadata in interface SharesServiceshareId - the share IDpublic Metadata updateMetadata(String shareId, Metadata metadata)
updateMetadata in interface SharesServiceshareId - the share IDmetadata - the metadata to updatepublic Metadata setMetadata(String shareId, Metadata metadata)
setMetadata in interface SharesServiceshareId - the share IDmetadata - the metadata to setpublic ActionResponse unsetMetadata(String shareId, String metadataKey)
unsetMetadata in interface SharesServiceshareId - the share IDmetadataKey - the metadata key to unsetpublic Access grantAccess(String shareId, AccessOptions options)
grantAccess in interface SharesServiceshareId - the share IDoptions - the options of the granted accesspublic ActionResponse revokeAccess(String shareId, String accessId)
revokeAccess in interface SharesServiceshareId - the share IDaccessId - the access ID to revokepublic List<? extends Access> listAccess(String shareId)
listAccess in interface SharesServiceshareId - the share IDpublic ActionResponse resetState(String shareId, Share.Status status)
resetState in interface SharesServiceshareId - the share IDstatus - the status to setpublic ActionResponse forceDelete(String shareId)
forceDelete in interface SharesServiceshareId - the share IDpublic ActionResponse extend(String shareId, int newSize)
extend in interface SharesServiceshareId - the share IDnewSize - new size of the share, in GBspublic ActionResponse shrink(String shareId, int newSize)
shrink in interface SharesServiceshareId - the share IDnewSize - the new size of the share, in GBspublic ShareCreateBuilder shareCreateBuilder()
shareCreateBuilder in interface SharesServiceCopyright © 2017. All rights reserved.