Search in sources :

Example 1 with ComputeSystemCreate

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);
}
Also used : TaskResourceRep(com.emc.storageos.model.TaskResourceRep) ComputeSystemCreate(com.emc.storageos.model.compute.ComputeSystemCreate)

Aggregations

TaskResourceRep (com.emc.storageos.model.TaskResourceRep)1 ComputeSystemCreate (com.emc.storageos.model.compute.ComputeSystemCreate)1