/// <summary> /// Initializes a new instance of the DiskEncryptionSettings class. /// </summary> /// <param name="diskEncryptionKey">Specifies the location of the disk /// encryption key, which is a Key Vault Secret.</param> /// <param name="keyEncryptionKey">Specifies the location of the key /// encryption key in Key Vault.</param> /// <param name="enabled">Specifies whether disk encryption should be /// enabled on the virtual machine.</param> public DiskEncryptionSettings(KeyVaultSecretReference diskEncryptionKey = default(KeyVaultSecretReference), KeyVaultKeyReference keyEncryptionKey = default(KeyVaultKeyReference), bool?enabled = default(bool?)) { DiskEncryptionKey = diskEncryptionKey; KeyEncryptionKey = keyEncryptionKey; Enabled = enabled; CustomInit(); }
/// <summary> /// Initializes a new instance of the DiskEncryptionSettings class with /// required arguments. /// </summary> public DiskEncryptionSettings(KeyVaultSecretReference diskEncryptionKey) : this() { if (diskEncryptionKey == null) { throw new ArgumentNullException("diskEncryptionKey"); } this.DiskEncryptionKey = diskEncryptionKey; }