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;
}
Aggregations