Examples of VmConfigSpec


Examples of com.vmware.vim.binding.vim.vApp.VmConfigSpec

                  || !Arrays.asList(
                        vm.getConfig().getVAppConfig()
                              .getOvfEnvironmentTransport()).contains(
                        vmToolEnableItem)) {
               String[] ovfEnvTransport = new String[] { vmToolEnableItem };
               VmConfigSpec vmConfigSpec = new VmConfigSpecImpl();
               vmConfigSpec.setOvfEnvironmentTransport(ovfEnvTransport);
               ConfigSpec configSpec = new ConfigSpecImpl();
               configSpec.setVAppConfig(vmConfigSpec);
               vm.reconfigure(configSpec);
               logger.info("configured ovf env transport");
               return true;
View Full Code Here

Examples of com.vmware.vim.binding.vim.vApp.VmConfigSpec

         propSpec.setInfo(prop);
         propSpec.setOperation(Operation.edit);
      }
      if (propSpec != null) {
         final ConfigSpec config = new ConfigSpecImpl();
         VmConfigSpec spec = new VmConfigSpecImpl();
         spec.setProperty(new PropertySpec[]{propSpec});
         config.setVAppConfig(spec);
         VcContext.inVcSessionDo(new VcSession<Void>() {
            @Override
            protected boolean isTaskSession() {
               return true;
View Full Code Here

Examples of com.vmware.vim.binding.vim.vApp.VmConfigSpec

      VmConfigInfo configInfo = template.getConfig().getVAppConfig();

      // the parent vm might not have vApp option enabled. This is possible when user
      // used customized template.
      if (configInfo != null) {
         VmConfigSpec vAppSpec = new VmConfigSpecImpl();
         vAppSpec.setOvfEnvironmentTransport(configInfo
               .getOvfEnvironmentTransport());

         // product info
         List<ProductSpec> productSpecs = new ArrayList<ProductSpec>();
         for (ProductInfo info : configInfo.getProduct()) {
            ProductSpec spec = new ProductSpecImpl();
            spec.setInfo(info);
            spec.setOperation(Operation.add);
            productSpecs.add(spec);
         }
         vAppSpec.setProduct(productSpecs.toArray(new ProductSpec[productSpecs
               .size()]));

         configSpec.setVAppConfig(vAppSpec);
      }
   }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.