use of com.sequenceiq.cloudbreak.cloud.model.filesystem.CloudS3View in project cloudbreak by hortonworks.
the class CloudFormationTemplateBuilderTest method initCloudStackWithInstanceProfile.
private CloudStack initCloudStackWithInstanceProfile() {
CloudS3View logView = new CloudS3View(CloudIdentityType.LOG);
logView.setInstanceProfile(INSTANCE_PROFILE);
List<Group> groups = List.of(createDefaultGroupGatewayGroup(Optional.of(logView)), createDefaultGroupMasterGroup(Optional.of(logView)));
return createDefaultCloudStack(groups, getDefaultCloudStackParameters(), getDefaultCloudStackTags());
}
use of com.sequenceiq.cloudbreak.cloud.model.filesystem.CloudS3View in project cloudbreak by hortonworks.
the class FileSystemConverter method cloudIdentityToS3View.
private CloudS3View cloudIdentityToS3View(CloudIdentity cloudIdentity) {
CloudS3View cloudS3View = new CloudS3View(cloudIdentity.getIdentityType());
S3Identity s3Identity = cloudIdentity.getS3Identity();
if (Objects.isNull(s3Identity)) {
LOGGER.warn("S3 identity is null. Identity type is {}", cloudIdentity.getIdentityType());
return null;
}
cloudS3View.setInstanceProfile(s3Identity.getInstanceProfile());
return cloudS3View;
}
use of com.sequenceiq.cloudbreak.cloud.model.filesystem.CloudS3View in project cloudbreak by hortonworks.
the class FileSystemConverter method convertS3Legacy.
private CloudS3View convertS3Legacy(S3FileSystem source) {
CloudS3View cloudS3View = new CloudS3View(CloudIdentityType.LOG);
cloudS3View.setInstanceProfile(source.getInstanceProfile());
return cloudS3View;
}
use of com.sequenceiq.cloudbreak.cloud.model.filesystem.CloudS3View in project cloudbreak by hortonworks.
the class CloudStorageParametersConverter method s3ToCloudView.
public CloudS3View s3ToCloudView(StorageIdentityBase source) {
CloudS3View cloudS3View = new CloudS3View(source.getType());
cloudS3View.setInstanceProfile(source.getS3().getInstanceProfile());
return cloudS3View;
}
use of com.sequenceiq.cloudbreak.cloud.model.filesystem.CloudS3View in project cloudbreak by hortonworks.
the class CloudStorageParametersConverter method s3ToCloudView.
public CloudS3View s3ToCloudView(S3CloudStorageV1Parameters source) {
CloudS3View cloudS3View = new CloudS3View(CloudIdentityType.LOG);
cloudS3View.setInstanceProfile(source.getInstanceProfile());
return cloudS3View;
}
Aggregations