UNPKG

azure-cli

Version:

Microsoft Azure Cross Platform Command Line tool

121 lines (115 loc) 3.68 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'); /** * Describes a virtual machine scale set network profile's network * configurations. * * @extends models['SubResource'] */ class VirtualMachineScaleSetUpdateNetworkConfiguration extends models['SubResource'] { /** * Create a VirtualMachineScaleSetUpdateNetworkConfiguration. * @member {string} [name] The network configuration name. * @member {boolean} [primary] Whether this is a primary NIC on a virtual * machine. * @member {boolean} [enableAcceleratedNetworking] Specifies whether the * network interface is accelerated networking-enabled. * @member {object} [networkSecurityGroup] The network security group. * @member {string} [networkSecurityGroup.id] Resource Id * @member {object} [dnsSettings] The dns settings to be applied on the * network interfaces. * @member {array} [dnsSettings.dnsServers] List of DNS servers IP addresses * @member {array} [ipConfigurations] The virtual machine scale set IP * Configuration. */ constructor() { super(); } /** * Defines the metadata of VirtualMachineScaleSetUpdateNetworkConfiguration * * @returns {object} metadata of VirtualMachineScaleSetUpdateNetworkConfiguration * */ mapper() { return { required: false, serializedName: 'VirtualMachineScaleSetUpdateNetworkConfiguration', type: { name: 'Composite', className: 'VirtualMachineScaleSetUpdateNetworkConfiguration', modelProperties: { id: { required: false, serializedName: 'id', type: { name: 'String' } }, name: { required: false, serializedName: 'name', type: { name: 'String' } }, primary: { required: false, serializedName: 'properties.primary', type: { name: 'Boolean' } }, enableAcceleratedNetworking: { required: false, serializedName: 'properties.enableAcceleratedNetworking', type: { name: 'Boolean' } }, networkSecurityGroup: { required: false, serializedName: 'properties.networkSecurityGroup', type: { name: 'Composite', className: 'SubResource' } }, dnsSettings: { required: false, serializedName: 'properties.dnsSettings', type: { name: 'Composite', className: 'VirtualMachineScaleSetNetworkConfigurationDnsSettings' } }, ipConfigurations: { required: false, serializedName: 'properties.ipConfigurations', type: { name: 'Sequence', element: { required: false, serializedName: 'VirtualMachineScaleSetUpdateIPConfigurationElementType', type: { name: 'Composite', className: 'VirtualMachineScaleSetUpdateIPConfiguration' } } } } } } }; } } module.exports = VirtualMachineScaleSetUpdateNetworkConfiguration;