use of com.emc.storageos.xtremio.restapi.model.response.XtremIOXMSsInfo in project coprhd-controller by CoprHD.
the class XtremIOV2Client method getXtremIOXMSVersion.
@Override
public String getXtremIOXMSVersion() throws Exception {
ClientResponse response = get(XtremIOConstants.XTREMIO_V2_XMS_URI);
XtremIOXMSsInfo xmssInfo = getResponseObject(XtremIOXMSsInfo.class, response);
for (XtremIOObjectInfo xmsInfo : xmssInfo.getXmssInfo()) {
URI xmsURI = URI.create(URIUtil.getFromPath(xmsInfo.getHref()));
response = get(xmsURI);
XtremIOXMSResponse xmsResponse = getResponseObject(XtremIOXMSResponse.class, response);
XtremIOXMS xms = xmsResponse.getContent();
log.info(xms.toString());
return xms.getVersion();
}
return null;
}
Aggregations