UNPKG

azure-cli

Version:

Microsoft Azure Cross Platform Command Line tool

67 lines (61 loc) 1.62 kB
/* * 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. */ 'use strict'; const models = require('./index'); /** * Key Vault Key Url and vault id of KeK, KeK is optional and when provided is * used to unwrap the encryptionKey * */ class KeyVaultAndKeyReference { /** * Create a KeyVaultAndKeyReference. * @member {object} sourceVault Resource id of the KeyVault containing the * key or secret * @member {string} [sourceVault.id] Resource Id * @member {string} keyUrl Url pointing to a key or secret in KeyVault */ constructor() { } /** * Defines the metadata of KeyVaultAndKeyReference * * @returns {object} metadata of KeyVaultAndKeyReference * */ mapper() { return { required: false, serializedName: 'KeyVaultAndKeyReference', type: { name: 'Composite', className: 'KeyVaultAndKeyReference', modelProperties: { sourceVault: { required: true, serializedName: 'sourceVault', type: { name: 'Composite', className: 'SourceVault' } }, keyUrl: { required: true, serializedName: 'keyUrl', type: { name: 'String' } } } } }; } } module.exports = KeyVaultAndKeyReference;