Search in sources :

Example 1 with AzureInstanceView

use of com.sequenceiq.cloudbreak.cloud.azure.view.AzureInstanceView in project cloudbreak by hortonworks.

the class AzureVolumeResourceBuilder method getDiskEncryptionSetId.

private String getDiskEncryptionSetId(Group group) {
    CloudInstance cloudInstance = group.getReferenceInstanceConfiguration();
    AzureInstanceView azureInstanceView = AzureInstanceView.builder(cloudInstance).build();
    return azureInstanceView.isManagedDiskEncryptionWithCustomKeyEnabled() ? azureInstanceView.getDiskEncryptionSetId() : null;
}
Also used : CloudInstance(com.sequenceiq.cloudbreak.cloud.model.CloudInstance) AzureInstanceView(com.sequenceiq.cloudbreak.cloud.azure.view.AzureInstanceView)

Aggregations

AzureInstanceView (com.sequenceiq.cloudbreak.cloud.azure.view.AzureInstanceView)1 CloudInstance (com.sequenceiq.cloudbreak.cloud.model.CloudInstance)1