Search in sources :

Example 6 with VcenterRestRep

use of com.emc.storageos.model.host.vcenter.VcenterRestRep in project coprhd-controller by CoprHD.

the class VcenterClusterProvider method getVcenters.

protected Map<URI, String> getVcenters(AssetOptionsContext context) {
    debug("getting vcenters");
    List<VcenterRestRep> vcenterList = api(context).vcenters().getByTenant(context.getTenant());
    Map<URI, String> vcMap = new HashMap<URI, String>();
    for (VcenterRestRep vc : vcenterList) {
        vcMap.put(vc.getId(), vc.getName());
    }
    return vcMap;
}
Also used : HashMap(java.util.HashMap) VcenterRestRep(com.emc.storageos.model.host.vcenter.VcenterRestRep) URI(java.net.URI)

Aggregations

VcenterRestRep (com.emc.storageos.model.host.vcenter.VcenterRestRep)6 ClusterRestRep (com.emc.storageos.model.host.cluster.ClusterRestRep)4 VcenterDataCenterRestRep (com.emc.storageos.model.host.vcenter.VcenterDataCenterRestRep)3 RelatedResourceRep (com.emc.storageos.model.RelatedResourceRep)2 HostRestRep (com.emc.storageos.model.host.HostRestRep)2 URI (java.net.URI)2 HashMap (java.util.HashMap)2 Asset (com.emc.sa.asset.annotation.Asset)1 ProjectRestRep (com.emc.storageos.model.project.ProjectRestRep)1 AssetOption (com.emc.vipr.model.catalog.AssetOption)1