use of com.vmware.ops.api.model.resource.ResourceQuery in project flowgate by vmware.
the class TestVROPS method getHostSystemResources.
public List<ResourceDto> getHostSystemResources() {
ResourcesClient rClient = client.resourcesClient();
ResourceQuery rq = new ResourceQuery();
rq.setAdapterKind(new String[] { "VMWARE" });
rq.setResourceKind(new String[] { "HostSystem" });
return rClient.getResources(rq, null).getResourceList();
}
use of com.vmware.ops.api.model.resource.ResourceQuery in project flowgate by vmware.
the class MetricClient method getHostSystemsResources.
public List<ResourceDto> getHostSystemsResources() {
ResourceQuery rq = new ResourceQuery();
rq.setAdapterKind(new String[] { VROConsts.ADPTERKIND_VMARE_KEY });
rq.setResourceKind(new String[] { VROConsts.RESOURCEKIND_HOSTSYSTEM_KEY });
List<ResourceDto> resources = resourcesClient.getResources(rq, null).getResourceList();
return resources;
}
Aggregations