Search in sources :

Example 21 with InstanceGroupRequest

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

the class StackToCreateFreeIpaRequestConverter method getInstanceGroupRequst.

private InstanceGroupRequest getInstanceGroupRequst(InstanceGroup instanceGroup) {
    InstanceGroupRequest request = new InstanceGroupRequest();
    request.setInstanceTemplateRequest(getInstanceTemplateRequest(instanceGroup.getTemplate()));
    request.setName(instanceGroup.getGroupName());
    request.setNetwork(getInstanceGroupNetworkRequest(instanceGroup.getInstanceGroupNetwork()));
    request.setNodeCount(instanceGroup.getNodeCount());
    request.setSecurityGroup(getSecurityGroupRequest(instanceGroup.getSecurityGroup()));
    request.setType(instanceGroup.getInstanceGroupType());
    LOGGER.debug("Created instance group request {} from the original instance group {}", request, instanceGroup);
    return request;
}
Also used : InstanceGroupRequest(com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.instance.InstanceGroupRequest)

Aggregations

InstanceGroupRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.instance.InstanceGroupRequest)19 Test (org.junit.jupiter.api.Test)16 FreeIpaServerRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.FreeIpaServerRequest)12 NetworkRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.network.NetworkRequest)11 CreateFreeIpaRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.create.CreateFreeIpaRequest)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 InstanceTemplateRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.instance.InstanceTemplateRequest)8 Json (com.sequenceiq.cloudbreak.common.json.Json)5 ValidationResult (com.sequenceiq.cloudbreak.validation.ValidationResult)5 StackAuthenticationRequest (com.sequenceiq.freeipa.api.v1.freeipa.stack.model.common.security.StackAuthenticationRequest)4 SpringBootTest (org.springframework.boot.test.context.SpringBootTest)4 TelemetryRequest (com.sequenceiq.common.api.telemetry.request.TelemetryRequest)3 HashMap (java.util.HashMap)3 Telemetry (com.sequenceiq.common.api.telemetry.model.Telemetry)2 Backup (com.sequenceiq.freeipa.api.model.Backup)2