use of com.cloudera.api.swagger.model.ApiHostTemplate in project cloudbreak by hortonworks.
the class ClouderaManagerDecommisionerTest method createHostTemplatesWithDataNodes.
private ApiHostTemplateList createHostTemplatesWithDataNodes(String name) {
ApiHostTemplateList apiHostTemplateList = new ApiHostTemplateList();
ApiHostTemplate apiHostTemplate = new ApiHostTemplate();
apiHostTemplate.setName(name);
ApiRoleConfigGroupRef roleConfigGroupRef = new ApiRoleConfigGroupRef();
roleConfigGroupRef.setRoleConfigGroupName("_DATANODE_");
apiHostTemplate.setRoleConfigGroupRefs(List.of(roleConfigGroupRef));
apiHostTemplateList.setItems(List.of(apiHostTemplate));
return apiHostTemplateList;
}
Aggregations