Examples of ProductSpec


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

      String cmsVersion = cmsProdInfo[0].getVersion();
      String cmsFullVersion = cmsProdInfo[0].getFullVersion();
      VcResourcePool vcRp = cms.getParentVApp();
      String vAppVersion = vcRp.getVersion();
      String vAppFullVersion = vcRp.getFullVersion();
      ProductSpec prodSpec = null;

      // If CMS VM version is not the same as the parent vApp version,
      // update the parent vApp version
      if (!cmsVersion.equals(vAppVersion) || !cmsFullVersion.equals(vAppFullVersion)) {
         //not found, should add this property
         prodSpec = new ProductSpecImpl();
         ProductInfo prod = new ProductInfoImpl();
         prod.setKey(0);
         prod.setVersion(cmsVersion);
         prod.setFullVersion(cmsFullVersion);
         prodSpec.setInfo(prod);
         prodSpec.setOperation(Operation.edit);
      }

      if (prodSpec != null) {
         final VAppConfigSpec spec = new VAppConfigSpecImpl();
         spec.setProduct(new ProductSpec[]{prodSpec});
View Full Code Here

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

               .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()]));
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.