Class SecurityGroupServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.networking.internal.BaseNetworkingServices
-
- org.openstack4j.openstack.networking.internal.SecurityGroupServiceImpl
-
- All Implemented Interfaces:
SecurityGroupService,RestService
public class SecurityGroupServiceImpl extends BaseNetworkingServices implements SecurityGroupService
FloatingIPService implementation that provides Neutron Floating-IP based Service Operations.- Author:
- Nathan Anderson
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description SecurityGroupServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SecurityGroupcreate(SecurityGroup securityGroup)Creates a SecurityGroup.ActionResponsedelete(String groupId)Deletes SecurityGroup by id.SecurityGroupget(String id)Gets the Security Group by id.List<? extends SecurityGroup>list()Get list of security groups accessible by the current tenantList<? extends SecurityGroup>list(Map<String,String> filteringParams)Get list of security groups accessible by the current tenantSecurityGroupupdate(String securityGroupId, SecurityGroupUpdate securityGroupUpdate)Updates a SecurityGroup associated by the specifiedsecurityGroupId-
Methods inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
delete, deleteWithResponse, get, getProvider, getServiceVersion, getWithResponse, getXOpenstackRequestId, head, patch, patchWithResponse, post, postWithResponse, put, putWithResponse, request, toList, uri
-
-
-
-
Method Detail
-
get
public SecurityGroup get(String id)
Gets the Security Group by id.- Specified by:
getin interfaceSecurityGroupService- Parameters:
id- the id- Returns:
- the security group
-
delete
public ActionResponse delete(String groupId)
Deletes SecurityGroup by id.- Specified by:
deletein interfaceSecurityGroupService- Parameters:
groupId- SecurityGroup id
-
create
public SecurityGroup create(SecurityGroup securityGroup)
Creates a SecurityGroup.- Specified by:
createin interfaceSecurityGroupService- Parameters:
securityGroup- the security group- Returns:
- the security group
-
update
public SecurityGroup update(String securityGroupId, SecurityGroupUpdate securityGroupUpdate)
Updates a SecurityGroup associated by the specifiedsecurityGroupId- Specified by:
updatein interfaceSecurityGroupService- Parameters:
securityGroupId- the security group identifiersecurityGroupUpdate- the security group options to update (seeBuilders.securityGroupUpdate()- Returns:
- the updated security group
-
list
public List<? extends SecurityGroup> list()
Get list of security groups accessible by the current tenant- Specified by:
listin interfaceSecurityGroupService- Returns:
- the list extends security group>
-
list
public List<? extends SecurityGroup> list(Map<String,String> filteringParams)
Get list of security groups accessible by the current tenant- Specified by:
listin interfaceSecurityGroupService- Parameters:
filteringParams- map (name, value) of filtering parameters- Returns:
- the list extends security group>
-
-