Search in sources :

Example 6 with XtremIOLunMapsInfo

use of com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo in project coprhd-controller by CoprHD.

the class XtremIOV1Client method getLunMaps.

@Override
public List<XtremIOObjectInfo> getLunMaps(String clusterName) throws Exception {
    ClientResponse response = get(XtremIOConstants.XTREMIO_LUNMAPS_URI);
    XtremIOLunMapsInfo lunMapLinks = getResponseObject(XtremIOLunMapsInfo.class, response);
    return Arrays.asList(lunMapLinks.getLunMapInfo());
}
Also used : ClientResponse(com.sun.jersey.api.client.ClientResponse) XtremIOLunMapsInfo(com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo)

Example 7 with XtremIOLunMapsInfo

use of com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo in project coprhd-controller by CoprHD.

the class XtremIOV2Client method getXtremIOLunMapLinks.

@Override
public List<XtremIOObjectInfo> getXtremIOLunMapLinks(String clusterName) throws Exception {
    String uriString = XtremIOConstants.XTREMIO_V2_LUNMAPS_STR.concat(XtremIOConstants.getInputClusterString(clusterName));
    ClientResponse response = get(URI.create(uriString));
    XtremIOLunMapsInfo lunMapLinks = getResponseObject(XtremIOLunMapsInfo.class, response);
    return Arrays.asList(lunMapLinks.getLunMapInfo());
}
Also used : ClientResponse(com.sun.jersey.api.client.ClientResponse) XtremIOLunMapsInfo(com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo)

Aggregations

XtremIOLunMapsInfo (com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMapsInfo)7 ClientResponse (com.sun.jersey.api.client.ClientResponse)7 XtremIOLunMap (com.emc.storageos.xtremio.restapi.model.response.XtremIOLunMap)2