public PSEncryptionScopeKeyVaultProperties(StorageModels.EncryptionScopeKeyVaultProperties keyVaultProperties) { if (keyVaultProperties != null) { this.keyUri = keyVaultProperties.KeyUri; } }
/// <summary> /// Initializes a new instance of the EncryptionScope class. /// </summary> /// <param name="id">Fully qualified resource Id for the resource. Ex - /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}</param> /// <param name="name">The name of the resource</param> /// <param name="type">The type of the resource. Ex- /// Microsoft.Compute/virtualMachines or /// Microsoft.Storage/storageAccounts.</param> /// <param name="source">The provider for the encryption scope. /// Possible values (case-insensitive): Microsoft.Storage, /// Microsoft.KeyVault. Possible values include: 'Microsoft.Storage', /// 'Microsoft.KeyVault'</param> /// <param name="state">The state of the encryption scope. Possible /// values (case-insensitive): Enabled, Disabled. Possible values /// include: 'Enabled', 'Disabled'</param> /// <param name="creationTime">Gets the creation date and time of the /// encryption scope in UTC.</param> /// <param name="lastModifiedTime">Gets the last modification date and /// time of the encryption scope in UTC.</param> /// <param name="keyVaultProperties">The key vault properties for the /// encryption scope. This is a required field if encryption scope /// 'source' attribute is set to 'Microsoft.KeyVault'.</param> public EncryptionScope(string id = default(string), string name = default(string), string type = default(string), string source = default(string), string state = default(string), System.DateTime?creationTime = default(System.DateTime?), System.DateTime?lastModifiedTime = default(System.DateTime?), EncryptionScopeKeyVaultProperties keyVaultProperties = default(EncryptionScopeKeyVaultProperties)) : base(id, name, type) { Source = source; State = state; CreationTime = creationTime; LastModifiedTime = lastModifiedTime; KeyVaultProperties = keyVaultProperties; CustomInit(); }