Search in sources :

Example 1 with ApiRoleRef

use of com.cloudera.api.swagger.model.ApiRoleRef in project cloudbreak by hortonworks.

the class ClouderaManagerDecommisionerTest method getBusyHost.

private ApiHost getBusyHost() {
    ApiHost apihost = new ApiHost();
    apihost.setHostname("hg0-host-1");
    ApiRoleRef apiroleref = new ApiRoleRef();
    apiroleref.setRoleStatus(ApiRoleState.BUSY);
    apihost.addRoleRefsItem(apiroleref);
    return apihost;
}
Also used : ApiRoleRef(com.cloudera.api.swagger.model.ApiRoleRef) ApiHost(com.cloudera.api.swagger.model.ApiHost)

Aggregations

ApiHost (com.cloudera.api.swagger.model.ApiHost)1 ApiRoleRef (com.cloudera.api.swagger.model.ApiRoleRef)1