Class ComputeSecurityGroupServiceImpl
- java.lang.Object
-
- org.openstack4j.openstack.internal.BaseOpenStackService
-
- org.openstack4j.openstack.compute.internal.BaseComputeServices
-
- org.openstack4j.openstack.compute.internal.ComputeSecurityGroupServiceImpl
-
- All Implemented Interfaces:
ComputeSecurityGroupService,RestService
@Deprecated public class ComputeSecurityGroupServiceImpl extends BaseComputeServices implements ComputeSecurityGroupService
Deprecated.Provides operations against the Security Group extension in OpenStackExtension Mapping: (os-security-groups)
- Author:
- Jeremy Unruh
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.openstack4j.openstack.internal.BaseOpenStackService
BaseOpenStackService.Invocation<R>
-
-
Constructor Summary
Constructors Constructor Description ComputeSecurityGroupServiceImpl()Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description SecGroupExtensioncreate(String name, String description)Deprecated.Creates a new Security GroupSecGroupExtension.RulecreateRule(SecGroupExtension.Rule rule)Deprecated.Creates a new Security Group RuleActionResponsedelete(String securityGroupId)Deprecated.Deletes the specified Security GroupActionResponsedeleteRule(String ruleId)Deprecated.Deletes a Security Group RuleSecGroupExtensionget(String securityGroupId)Deprecated.Gets the specified Security GroupList<? extends SecGroupExtension>list()Deprecated.List all the Security GroupsList<? extends SecGroupExtension>listServerGroups(String serverId)Deprecated.Lists the Security Groups for the specified serverSecGroupExtensionupdate(String securityGroupId, String name, String description)Deprecated.Updates the Name and Description for a Security Group-
Methods inherited from class org.openstack4j.openstack.compute.internal.BaseComputeServices
invokeAction, invokeActionWithResponse
-
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
-
list
public List<? extends SecGroupExtension> list()
Deprecated.List all the Security Groups- Specified by:
listin interfaceComputeSecurityGroupService- Returns:
- the list of security groups
-
listServerGroups
public List<? extends SecGroupExtension> listServerGroups(String serverId)
Deprecated.Lists the Security Groups for the specified server- Specified by:
listServerGroupsin interfaceComputeSecurityGroupService- Parameters:
serverId- the server identifier- Returns:
- the list of security groups
-
get
public SecGroupExtension get(String securityGroupId)
Deprecated.Gets the specified Security Group- Specified by:
getin interfaceComputeSecurityGroupService- Parameters:
securityGroupId- the security group identifier- Returns:
- the security group or Null if not found
-
delete
public ActionResponse delete(String securityGroupId)
Deprecated.Deletes the specified Security Group- Specified by:
deletein interfaceComputeSecurityGroupService- Parameters:
securityGroupId- the security group identifier- Returns:
- the action response
-
create
public SecGroupExtension create(String name, String description)
Deprecated.Creates a new Security Group- Specified by:
createin interfaceComputeSecurityGroupService- Parameters:
name- the name of the security groupdescription- the description of the security group- Returns:
- the newly created security group
-
update
public SecGroupExtension update(String securityGroupId, String name, String description)
Deprecated.Updates the Name and Description for a Security Group- Specified by:
updatein interfaceComputeSecurityGroupService- Parameters:
securityGroupId- the security group identifiername- the name of the security groupdescription- the description of the security group- Returns:
- the newly created security group
-
createRule
public SecGroupExtension.Rule createRule(SecGroupExtension.Rule rule)
Deprecated.Creates a new Security Group Rule- Specified by:
createRulein interfaceComputeSecurityGroupService- Parameters:
rule- the rule to create- Returns:
- the newly created rule
-
deleteRule
public ActionResponse deleteRule(String ruleId)
Deprecated.Deletes a Security Group Rule- Specified by:
deleteRulein interfaceComputeSecurityGroupService- Parameters:
ruleId- the rule identifier- Returns:
- the action response
-
-