Search in sources :

Example 21 with NetworkRequest

use of com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.network.NetworkRequest in project cloudbreak by hortonworks.

the class AwsCloudProvider method networkRequest.

@Override
public NetworkRequest networkRequest(FreeIpaTestDto dto) {
    NetworkRequest networkRequest = new NetworkRequest();
    AwsNetworkParameters networkParameters = new AwsNetworkParameters();
    networkParameters.setSubnetId(getSubnetId());
    networkParameters.setVpcId(getVpcId());
    networkRequest.setAws(networkParameters);
    return networkRequest;
}
Also used : NetworkRequest(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.network.NetworkRequest) AwsNetworkParameters(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.network.AwsNetworkParameters)

Aggregations

NetworkRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.network.NetworkRequest)21 Test (org.junit.jupiter.api.Test)11 FreeIpaServerRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.FreeIpaServerRequest)10 InstanceGroupRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.instance.InstanceGroupRequest)10 InstanceGroup (com.sequenceiq.freeipa.entity.InstanceGroup)10 Stack (com.sequenceiq.freeipa.entity.Stack)10 AwsInstanceTemplate (com.sequenceiq.cloudbreak.cloud.model.instance.AwsInstanceTemplate)9 DetailedEnvironmentResponse (com.sequenceiq.environment.api.v1.environment.model.response.DetailedEnvironmentResponse)9 Template (com.sequenceiq.freeipa.entity.Template)9 AzureInstanceTemplate (com.sequenceiq.cloudbreak.cloud.model.instance.AzureInstanceTemplate)8 Json (com.sequenceiq.cloudbreak.common.json.Json)6 InstanceTemplateRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.instance.InstanceTemplateRequest)6 NetworkDto (com.sequenceiq.environment.network.dto.NetworkDto)4 AwsNetworkParameters (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.network.AwsNetworkParameters)4 HashMap (java.util.HashMap)4 ProvidedSubnetIds (com.sequenceiq.environment.network.service.domain.ProvidedSubnetIds)3 InstanceGroupNetworkRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.instance.InstanceGroupNetworkRequest)3 AzureNetworkParameters (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.network.AzureNetworkParameters)3 MockNetworkParameters (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.network.MockNetworkParameters)3 Telemetry (com.sequenceiq.common.api.telemetry.model.Telemetry)2