Package com.vmware.bdd.apitypes

Examples of com.vmware.bdd.apitypes.ResourcePoolAdd


   public void addResourcePool(
         @CliOption(key = { "name" }, mandatory = true, help = "The resource pool name") final String name,
         @CliOption(key = { "vcrp" }, mandatory = false, help = "The vc rp name") final String vcrp,
         @CliOption(key = { "vccluster" }, mandatory = true, help = "The vc cluster name") final String vccluster) {
      //build ResourcePoolAdd object
      ResourcePoolAdd rpAdd = new ResourcePoolAdd();
      rpAdd.setName(name);
      rpAdd.setResourcePoolName(CommandsUtils.notNull(vcrp, ""));
      rpAdd.setVcClusterName(vccluster);

      //rest invocation
      try {
         restClient.add(rpAdd);
         CommandsUtils.printCmdSuccess(Constants.OUTPUT_OBJECT_RESOURCEPOOL, name,
View Full Code Here

TOP

Related Classes of com.vmware.bdd.apitypes.ResourcePoolAdd

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.