use of com.sequenceiq.cloudbreak.cloud.ObjectStorageConnector in project cloudbreak by hortonworks.
the class CloudProviderService method validateObjectStorage.
public ObjectStorageValidateResponse validateObjectStorage(ObjectStorageValidateRequest request) {
ObjectStorageConnector objectStorageConnector = getCloudConnector(request).objectStorage();
if (request.getMockAccountMappingSettings() != null) {
objectStorageValidateRequestDecorator.decorateWithMockAccountMapping(request);
}
SpiFileSystem spiFileSystem = cloudStorageConverter.requestToSpiFileSystem(request.getCloudStorageRequest());
request.setSpiFileSystem(spiFileSystem);
return objectStorageConnector.validateObjectStorage(request);
}
Aggregations