use of com.emc.storageos.model.compute.ComputeSystemCreate in project coprhd-controller by CoprHD.
the class ComputeSystemServiceApiTest method createAndDiscoverComputeSystem.
private TaskResourceRep createAndDiscoverComputeSystem(String ip, String username, String password, String name, int portname) throws Exception {
TaskResourceRep taskCreateComputeSystem = null;
ComputeSystemCreate computeSystemCreate = new ComputeSystemCreate();
computeSystemCreate.setIpAddress(ip);
computeSystemCreate.setName(name);
computeSystemCreate.setPassword(password);
computeSystemCreate.setUserName(username);
computeSystemCreate.setPortNumber(portname);
computeSystemCreate.setSystemType(ComputeSystem.Type.ucs.name());
return taskCreateComputeSystem = rSys.path(COMPUTE_SYSTEM_RESOURCE).post(TaskResourceRep.class, computeSystemCreate);
}
Aggregations