Examples of MachineTypeList


Examples of com.google.api.services.compute.model.MachineTypeList

  }

  private Iterable<MachineType> listMachineTypes(String projectId) throws OpsException {
    List<MachineType> ret = Lists.newArrayList();

    MachineTypeList machineTypeList;
    try {
      log.debug("Listing machine types in project " + projectId);
      machineTypeList = compute.machineTypes().list(projectId).execute();
    } catch (IOException e) {
      throw new OpsException("Error listing machine types", e);
    }
    if (machineTypeList.getItems() != null) {
      ret.addAll(machineTypeList.getItems());
    }

    return ret;
  }
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.