/// <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();
 }
Esempio n. 2
0
 public DiskEncryptionSetUpdate(string encryptionType = default(string), KeyForDiskEncryptionSet activeKey = default(KeyForDiskEncryptionSet), bool?rotationToLatestKeyVersionEnabled = default(bool?), IDictionary <string, string> tags = default(IDictionary <string, string>), EncryptionSetIdentity identity = default(EncryptionSetIdentity))
 {
     EncryptionType = encryptionType;
     ActiveKey      = activeKey;
     RotationToLatestKeyVersionEnabled = rotationToLatestKeyVersionEnabled;
     Tags     = tags;
     Identity = identity;
     CustomInit();
 }
Esempio n. 3
0
 /// <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="encryptionType">Possible values include:
 /// 'EncryptionAtRestWithCustomerKey',
 /// 'EncryptionAtRestWithPlatformAndCustomerKeys'</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>
 /// <param name="rotationToLatestKeyVersionEnabled">Set this flag to
 /// true to enable auto-updating of this disk encryption set to the
 /// latest key version.</param>
 /// <param name="lastKeyRotationTimestamp">The time when the active key
 /// of this disk encryption set was updated.</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), string encryptionType = default(string), KeyForDiskEncryptionSet activeKey = default(KeyForDiskEncryptionSet), IList <KeyForDiskEncryptionSet> previousKeys = default(IList <KeyForDiskEncryptionSet>), string provisioningState = default(string), bool?rotationToLatestKeyVersionEnabled = default(bool?), System.DateTime?lastKeyRotationTimestamp = default(System.DateTime?))
     : base(location, id, name, type, tags)
 {
     Identity          = identity;
     EncryptionType    = encryptionType;
     ActiveKey         = activeKey;
     PreviousKeys      = previousKeys;
     ProvisioningState = provisioningState;
     RotationToLatestKeyVersionEnabled = rotationToLatestKeyVersionEnabled;
     LastKeyRotationTimestamp          = lastKeyRotationTimestamp;
     CustomInit();
 }