# coding=utf-8
# --------------------------------------------------------------------------
# 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.
# --------------------------------------------------------------------------
from .sub_resource_py3 import SubResource
[docs]class VirtualMachineScaleSetNetworkConfiguration(SubResource):
"""Describes a virtual machine scale set network profile's network
configurations.
All required parameters must be populated in order to send to Azure.
:param id: Resource Id
:type id: str
:param name: Required. The network configuration name.
:type name: str
:param primary: Specifies the primary network interface in case the
virtual machine has more than 1 network interface.
:type primary: bool
:param enable_accelerated_networking: Specifies whether the network
interface is accelerated networking-enabled.
:type enable_accelerated_networking: bool
:param network_security_group: The network security group.
:type network_security_group:
~azure.mgmt.compute.v2018_10_01.models.SubResource
:param dns_settings: The dns settings to be applied on the network
interfaces.
:type dns_settings:
~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetNetworkConfigurationDnsSettings
:param ip_configurations: Required. Specifies the IP configurations of the
network interface.
:type ip_configurations:
list[~azure.mgmt.compute.v2018_10_01.models.VirtualMachineScaleSetIPConfiguration]
:param enable_ip_forwarding: Whether IP forwarding enabled on this NIC.
:type enable_ip_forwarding: bool
"""
_validation = {
'name': {'required': True},
'ip_configurations': {'required': True},
}
_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'primary': {'key': 'properties.primary', 'type': 'bool'},
'enable_accelerated_networking': {'key': 'properties.enableAcceleratedNetworking', 'type': 'bool'},
'network_security_group': {'key': 'properties.networkSecurityGroup', 'type': 'SubResource'},
'dns_settings': {'key': 'properties.dnsSettings', 'type': 'VirtualMachineScaleSetNetworkConfigurationDnsSettings'},
'ip_configurations': {'key': 'properties.ipConfigurations', 'type': '[VirtualMachineScaleSetIPConfiguration]'},
'enable_ip_forwarding': {'key': 'properties.enableIPForwarding', 'type': 'bool'},
}
def __init__(self, *, name: str, ip_configurations, id: str=None, primary: bool=None, enable_accelerated_networking: bool=None, network_security_group=None, dns_settings=None, enable_ip_forwarding: bool=None, **kwargs) -> None:
super(VirtualMachineScaleSetNetworkConfiguration, self).__init__(id=id, **kwargs)
self.name = name
self.primary = primary
self.enable_accelerated_networking = enable_accelerated_networking
self.network_security_group = network_security_group
self.dns_settings = dns_settings
self.ip_configurations = ip_configurations
self.enable_ip_forwarding = enable_ip_forwarding