azure-cli
Version:
Microsoft Azure Cross Platform Command Line tool
86 lines (80 loc) • 2.51 kB
JavaScript
/*
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*
* Code generated by Microsoft (R) AutoRest Code Generator.
* Changes may cause incorrect behavior and will be lost if the code is
* regenerated.
*/
;
const models = require('./index');
/**
* Describes a Encryption Settings for a Disk
*
*/
class DiskEncryptionSettings {
/**
* Create a DiskEncryptionSettings.
* @member {object} [diskEncryptionKey] Specifies the location of the disk
* encryption key, which is a Key Vault Secret.
* @member {string} [diskEncryptionKey.secretUrl] The URL referencing a
* secret in a Key Vault.
* @member {object} [diskEncryptionKey.sourceVault] The relative URL of the
* Key Vault containing the secret.
* @member {string} [diskEncryptionKey.sourceVault.id] Resource Id
* @member {object} [keyEncryptionKey] Specifies the location of the key
* encryption key in Key Vault.
* @member {string} [keyEncryptionKey.keyUrl] The URL referencing a key
* encryption key in Key Vault.
* @member {object} [keyEncryptionKey.sourceVault] The relative URL of the
* Key Vault containing the key.
* @member {string} [keyEncryptionKey.sourceVault.id] Resource Id
* @member {boolean} [enabled] Specifies whether disk encryption should be
* enabled on the virtual machine.
*/
constructor() {
}
/**
* Defines the metadata of DiskEncryptionSettings
*
* @returns {object} metadata of DiskEncryptionSettings
*
*/
mapper() {
return {
required: false,
serializedName: 'DiskEncryptionSettings',
type: {
name: 'Composite',
className: 'DiskEncryptionSettings',
modelProperties: {
diskEncryptionKey: {
required: false,
serializedName: 'diskEncryptionKey',
type: {
name: 'Composite',
className: 'KeyVaultSecretReference'
}
},
keyEncryptionKey: {
required: false,
serializedName: 'keyEncryptionKey',
type: {
name: 'Composite',
className: 'KeyVaultKeyReference'
}
},
enabled: {
required: false,
serializedName: 'enabled',
type: {
name: 'Boolean'
}
}
}
}
};
}
}
module.exports = DiskEncryptionSettings;