/// <summary> /// Initializes a new instance of the EncryptionSettings class. /// </summary> /// <param name="enabled">Set this flag to true and provide /// DiskEncryptionKey and optional KeyEncryptionKey to enable /// encryption. Set this flag to false and remove DiskEncryptionKey and /// KeyEncryptionKey to disable encryption. If EncryptionSettings is /// null in the request object, the existing settings remain /// unchanged.</param> /// <param name="diskEncryptionKey">Key Vault Secret Url and vault id /// of the disk encryption key</param> /// <param name="keyEncryptionKey">Key Vault Key Url and vault id of /// the key encryption key</param> public EncryptionSettings(bool?enabled = default(bool?), KeyVaultAndSecretReference diskEncryptionKey = default(KeyVaultAndSecretReference), KeyVaultAndKeyReference keyEncryptionKey = default(KeyVaultAndKeyReference)) { Enabled = enabled; DiskEncryptionKey = diskEncryptionKey; KeyEncryptionKey = keyEncryptionKey; CustomInit(); }
/// <summary> /// Initializes a new instance of the EncryptionSettingsElement class. /// </summary> /// <param name="diskEncryptionKey">Key Vault Secret Url and vault id /// of the disk encryption key</param> /// <param name="keyEncryptionKey">Key Vault Key Url and vault id of /// the key encryption key. KeyEncryptionKey is optional and when /// provided is used to unwrap the disk encryption key.</param> public EncryptionSettingsElement(KeyVaultAndSecretReference diskEncryptionKey = default(KeyVaultAndSecretReference), KeyVaultAndKeyReference keyEncryptionKey = default(KeyVaultAndKeyReference)) { DiskEncryptionKey = diskEncryptionKey; KeyEncryptionKey = keyEncryptionKey; CustomInit(); }