Search in sources :

Example 1 with ApiRoleConfigGroupRef

use of com.cloudera.api.swagger.model.ApiRoleConfigGroupRef 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;
}
Also used : ApiRoleConfigGroupRef(com.cloudera.api.swagger.model.ApiRoleConfigGroupRef) ApiHostTemplateList(com.cloudera.api.swagger.model.ApiHostTemplateList) ApiHostTemplate(com.cloudera.api.swagger.model.ApiHostTemplate)

Aggregations

ApiHostTemplate (com.cloudera.api.swagger.model.ApiHostTemplate)1 ApiHostTemplateList (com.cloudera.api.swagger.model.ApiHostTemplateList)1 ApiRoleConfigGroupRef (com.cloudera.api.swagger.model.ApiRoleConfigGroupRef)1