Search in sources :

Example 1 with DiskEncryptionSetsInner

use of com.microsoft.azure.management.compute.implementation.DiskEncryptionSetsInner in project cloudbreak by hortonworks.

the class AzureClient method deleteDiskEncryptionSet.

public void deleteDiskEncryptionSet(String resourceGroup, String diskEncryptionSetName) {
    handleAuthException(() -> {
        // The Disk encryption set operations are not exposed in public API, so have to rely on underlying DiskEncryptionSetsInner
        DiskEncryptionSetsInner dSetsIn = computeManager.inner().diskEncryptionSets();
        dSetsIn.delete(resourceGroup, diskEncryptionSetName);
    });
}
Also used : DiskEncryptionSetsInner(com.microsoft.azure.management.compute.implementation.DiskEncryptionSetsInner)

Example 2 with DiskEncryptionSetsInner

use of com.microsoft.azure.management.compute.implementation.DiskEncryptionSetsInner in project cloudbreak by hortonworks.

the class AzureClient method createDiskEncryptionSet.

public DiskEncryptionSetInner createDiskEncryptionSet(String diskEncryptionSetName, String encryptionKeyUrl, String location, String resourceGroupName, String sourceVaultId, Map<String, String> tags) {
    return handleAuthException(() -> {
        // The Disk encryption set operations are not exposed in public API, so have to rely on underlying DiskEncryptionSetsInner
        DiskEncryptionSetInner desIn = createDiskEncryptionSetInner(sourceVaultId, encryptionKeyUrl, location, tags);
        DiskEncryptionSetsInner dSetsIn = computeManager.inner().diskEncryptionSets();
        return dSetsIn.createOrUpdate(resourceGroupName, diskEncryptionSetName, desIn);
    });
}
Also used : DiskEncryptionSetsInner(com.microsoft.azure.management.compute.implementation.DiskEncryptionSetsInner) DiskEncryptionSetInner(com.microsoft.azure.management.compute.implementation.DiskEncryptionSetInner)

Aggregations

DiskEncryptionSetsInner (com.microsoft.azure.management.compute.implementation.DiskEncryptionSetsInner)2 DiskEncryptionSetInner (com.microsoft.azure.management.compute.implementation.DiskEncryptionSetInner)1