Search in sources :

Example 6 with SecurityRuleV4Request

use of com.sequenceiq.cloudbreak.api.endpoint.v4.util.requests.SecurityRuleV4Request in project cloudbreak by hortonworks.

the class SecurityRuleRequestToSecurityRuleConverterTest method createRequest.

private SecurityRuleV4Request createRequest(String... ports) {
    SecurityRuleV4Request request = new SecurityRuleV4Request();
    request.setPorts(Arrays.asList(ports));
    request.setModifiable(true);
    request.setProtocol("tcp");
    request.setSubnet("0.0.0.0/0");
    return request;
}
Also used : SecurityRuleV4Request(com.sequenceiq.cloudbreak.api.endpoint.v4.util.requests.SecurityRuleV4Request)

Aggregations

SecurityRuleV4Request (com.sequenceiq.cloudbreak.api.endpoint.v4.util.requests.SecurityRuleV4Request)6 SecurityGroupV4Request (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.instancegroup.securitygroup.SecurityGroupV4Request)3 InstanceGroupV4Request (com.sequenceiq.cloudbreak.api.endpoint.v4.stacks.request.instancegroup.InstanceGroupV4Request)2 Strings (com.google.common.base.Strings)1 SecurityRuleUtil (com.sequenceiq.cloudbreak.api.endpoint.v4.util.SecurityRuleUtil)1 CidrUtil (com.sequenceiq.cloudbreak.util.CidrUtil)1 SecurityGroupSeparator.getSecurityGroupIds (com.sequenceiq.cloudbreak.util.SecurityGroupSeparator.getSecurityGroupIds)1 InstanceGroupType (com.sequenceiq.common.api.type.InstanceGroupType)1 DetailedEnvironmentResponse (com.sequenceiq.environment.api.v1.environment.model.response.DetailedEnvironmentResponse)1 SecurityAccessResponse (com.sequenceiq.environment.api.v1.environment.model.response.SecurityAccessResponse)1 ArrayList (java.util.ArrayList)1 HashSet (java.util.HashSet)1 List (java.util.List)1 Inject (javax.inject.Inject)1 Service (org.springframework.stereotype.Service)1