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.
|
getApiVersionHeader
delete, deleteWithResponse, get, head, patch, post, put, request
getProvider, getServiceVersion, getXOpenstackRequestId, patchWithResponse, postWithResponse, toList, uri
public Share create(ShareCreate shareCreate)
create
in interface SharesService
shareCreate
- the share to createpublic List<? extends Share> list()
list
in interface SharesService
public List<? extends Share> listDetails()
listDetails
in interface SharesService
public Share get(String shareId)
get
in interface SharesService
shareId
- the share IDpublic Share update(String shareId, ShareUpdateOptions shareUpdateOptions)
update
in interface SharesService
shareId
- the share IDshareUpdateOptions
- the options to update on the sharepublic ActionResponse delete(String shareId)
delete
in interface SharesService
shareId
- the share IDpublic ActionResponse delete(String shareId, String consistencyGroupId)
SharesService
delete
in interface SharesService
shareId
- the share IDconsistencyGroupId
- the UUID of the consistency group where the share was createdpublic Metadata getMetadata(String shareId)
getMetadata
in interface SharesService
shareId
- the share IDpublic Metadata updateMetadata(String shareId, Metadata metadata)
updateMetadata
in interface SharesService
shareId
- the share IDmetadata
- the metadata to updatepublic Metadata setMetadata(String shareId, Metadata metadata)
setMetadata
in interface SharesService
shareId
- the share IDmetadata
- the metadata to setpublic ActionResponse unsetMetadata(String shareId, String metadataKey)
unsetMetadata
in interface SharesService
shareId
- the share IDmetadataKey
- the metadata key to unsetpublic Access grantAccess(String shareId, AccessOptions options)
grantAccess
in interface SharesService
shareId
- the share IDoptions
- the options of the granted accesspublic ActionResponse revokeAccess(String shareId, String accessId)
revokeAccess
in interface SharesService
shareId
- the share IDaccessId
- the access ID to revokepublic List<? extends Access> listAccess(String shareId)
listAccess
in interface SharesService
shareId
- the share IDpublic ActionResponse resetState(String shareId, Share.Status status)
resetState
in interface SharesService
shareId
- the share IDstatus
- the status to setpublic ActionResponse forceDelete(String shareId)
forceDelete
in interface SharesService
shareId
- the share IDpublic ActionResponse extend(String shareId, int newSize)
extend
in interface SharesService
shareId
- the share IDnewSize
- new size of the share, in GBspublic ActionResponse shrink(String shareId, int newSize)
shrink
in interface SharesService
shareId
- the share IDnewSize
- the new size of the share, in GBspublic ShareCreateBuilder shareCreateBuilder()
shareCreateBuilder
in interface SharesService
Copyright © 2017. All rights reserved.