Class ShareInstanceServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.internal.MicroVersionedOpenStackService
-
- org.openstack4j.openstack.manila.internal.BaseShareServices
-
- org.openstack4j.openstack.manila.internal.ShareInstanceServiceImpl
-
- All Implemented Interfaces:
ShareInstanceService
,RestService
public class ShareInstanceServiceImpl extends BaseShareServices implements ShareInstanceService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ShareInstanceServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ActionResponse
forceDelete(String shareInstanceId)
Administrator only.ShareInstance
get(String shareInstanceId)
Shows details for a share instance.List<? extends ShareInstance>
list()
Lists all share instances.ActionResponse
resetState(String shareInstanceId, ShareInstance.Status status)
Administrator only.-
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
-
list
public List<? extends ShareInstance> list()
Description copied from interface:ShareInstanceService
Lists all share instances.- Specified by:
list
in interfaceShareInstanceService
- Returns:
- a list of all share instances
-
get
public ShareInstance get(String shareInstanceId)
Description copied from interface:ShareInstanceService
Shows details for a share instance.- Specified by:
get
in interfaceShareInstanceService
- Parameters:
shareInstanceId
- the share instance ID- Returns:
- the share instance or null if not found
-
resetState
public ActionResponse resetState(String shareInstanceId, ShareInstance.Status status)
Description copied from interface:ShareInstanceService
Administrator only. Explicitly updates the state of a share instance.- Specified by:
resetState
in interfaceShareInstanceService
- Parameters:
shareInstanceId
- the share instance IDstatus
- the status to set- Returns:
- the action response
-
forceDelete
public ActionResponse forceDelete(String shareInstanceId)
Description copied from interface:ShareInstanceService
Administrator only. Force-deletes a share instance.- Specified by:
forceDelete
in interfaceShareInstanceService
- Parameters:
shareInstanceId
- the share instance ID- Returns:
- the action response
-
-