/// <summary> /// Initializes a new instance of the DiskEncryptionSetUpdate class. /// </summary> /// <param name="encryptionType">Possible values include: /// 'EncryptionAtRestWithPlatformKey', /// 'EncryptionAtRestWithCustomerKey', /// 'EncryptionAtRestWithPlatformAndCustomerKeys'</param> /// <param name="tags">Resource tags</param> public DiskEncryptionSetUpdate(string encryptionType = default(string), KeyVaultAndKeyReference activeKey = default(KeyVaultAndKeyReference), IDictionary <string, string> tags = default(IDictionary <string, string>)) { EncryptionType = encryptionType; ActiveKey = activeKey; Tags = tags; CustomInit(); }
/// <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 DiskEncryptionSet class. /// </summary> /// <param name="location">Resource location</param> /// <param name="id">Resource Id</param> /// <param name="name">Resource name</param> /// <param name="type">Resource type</param> /// <param name="tags">Resource tags</param> /// <param name="activeKey">The key vault key which is currently used /// by this disk encryption set.</param> /// <param name="previousKeys">A readonly collection of key vault keys /// previously used by this disk encryption set while a key rotation is /// in progress. It will be empty if there is no ongoing key /// rotation.</param> /// <param name="provisioningState">The disk encryption set /// provisioning state.</param> public DiskEncryptionSet(string location, string id = default(string), string name = default(string), string type = default(string), IDictionary <string, string> tags = default(IDictionary <string, string>), EncryptionSetIdentity identity = default(EncryptionSetIdentity), KeyVaultAndKeyReference activeKey = default(KeyVaultAndKeyReference), IList <KeyVaultAndKeyReference> previousKeys = default(IList <KeyVaultAndKeyReference>), string provisioningState = default(string)) : base(location, id, name, type, tags) { Identity = identity; ActiveKey = activeKey; PreviousKeys = previousKeys; ProvisioningState = provisioningState; 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(); }