Class ShareNetworkServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.internal.MicroVersionedOpenStackService
-
- org.openstack4j.openstack.manila.internal.BaseShareServices
-
- org.openstack4j.openstack.manila.internal.ShareNetworkServiceImpl
-
- All Implemented Interfaces:
ShareNetworkService,RestService
public class ShareNetworkServiceImpl extends BaseShareServices implements ShareNetworkService
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ShareNetworkServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ShareNetworkaddSecurityService(String shareNetworkId, String securityServiceId)Adds a security service to a share network.ShareNetworkcreate(ShareNetworkCreate shareNetworkCreate)Creates a share network.ActionResponsedelete(String shareNetworkId)Deletes a share network.ShareNetworkget(String shareNetworkId)Shows details for a share network.List<? extends ShareNetwork>list()Lists all share networks.List<? extends ShareNetwork>listDetails()Lists all share networks with details.ShareNetworkremoveSecurityService(String shareNetworkId, String securityServiceId)Removes a security service from a share network.ShareNetworkCreateBuildershareNetworkCreateBuilder()ShareNetworkupdate(String shareNetworkId, ShareNetworkUpdateOptions shareNetworkUpdateOptions)Updates a share network.-
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
-
create
public ShareNetwork create(ShareNetworkCreate shareNetworkCreate)
Creates a share network.- Specified by:
createin interfaceShareNetworkService- Parameters:
shareNetworkCreate- the share network to create- Returns:
- the created share network
-
list
public List<? extends ShareNetwork> list()
Lists all share networks.- Specified by:
listin interfaceShareNetworkService- Returns:
- list of all share networks
-
listDetails
public List<? extends ShareNetwork> listDetails()
Lists all share networks with details.- Specified by:
listDetailsin interfaceShareNetworkService- Returns:
- list of all share networks with details
-
get
public ShareNetwork get(String shareNetworkId)
Shows details for a share network.- Specified by:
getin interfaceShareNetworkService- Parameters:
shareNetworkId- the share network ID- Returns:
- the share network or null if not found
-
update
public ShareNetwork update(String shareNetworkId, ShareNetworkUpdateOptions shareNetworkUpdateOptions)
Updates a share network.- Specified by:
updatein interfaceShareNetworkService- Parameters:
shareNetworkId- the share network IDshareNetworkUpdateOptions- the options to update on the share network- Returns:
- the updated share network
-
delete
public ActionResponse delete(String shareNetworkId)
Deletes a share network.- Specified by:
deletein interfaceShareNetworkService- Parameters:
shareNetworkId- the share network ID- Returns:
- the action response
-
addSecurityService
public ShareNetwork addSecurityService(String shareNetworkId, String securityServiceId)
Adds a security service to a share network.- Specified by:
addSecurityServicein interfaceShareNetworkService- Parameters:
shareNetworkId- the share network IDsecurityServiceId- the security service ID- Returns:
- the share network the security service was added to
-
removeSecurityService
public ShareNetwork removeSecurityService(String shareNetworkId, String securityServiceId)
Removes a security service from a share network.- Specified by:
removeSecurityServicein interfaceShareNetworkService- Parameters:
shareNetworkId- the share network IDsecurityServiceId- the security service ID- Returns:
- the share network the security service was removed from
-
shareNetworkCreateBuilder
public ShareNetworkCreateBuilder shareNetworkCreateBuilder()
- Specified by:
shareNetworkCreateBuilderin interfaceShareNetworkService- Returns:
- a builder to create a share network
-
-