Examples of ISO


Examples of org.jclouds.cloudstack.domain.ISO

      Optional<OSType> guestOSTypeOptional = Iterables.tryFind(client.getGuestOSApi().listOSTypes(), Predicates.notNull());
      Optional<Zone> zoneOptional = Iterables.tryFind(client.getZoneApi().listZones(available(true)), Predicates.notNull());
      if (guestOSTypeOptional.isPresent() && zoneOptional.isPresent()) {
         String osTypeId = guestOSTypeOptional.get().getId();
         String zoneId = zoneOptional.get().getId();
         ISO iso = client.getISOApi().registerISO(isoName, "", url, zoneId, RegisterISOOptions.Builder.isPublic(true).osTypeId(osTypeId));
             assertNotNull(iso);
             assertNotNull(iso.getId());
             assertEquals(iso.getName(), isoName);
      } else {
         String skipMessage = String.format("Cannot register the iso with url: %s", url);
         if (zoneOptional.isPresent())
             skipMessage += " without a valid zone";
         else
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.