diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/models/__init__.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/models/__init__.py index ab25222309ba..ead0b1a5d901 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/models/__init__.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/models/__init__.py @@ -921,7 +921,6 @@ RouteNextHopType, PublicIPAddressSkuName, DdosSettingsProtectionCoverage, - VirtualNetworkPeeringState, TransportProtocol, ApplicationGatewayCookieBasedAffinity, ApplicationGatewayBackendHealthServerHealth, @@ -1004,6 +1003,7 @@ PublicIPPrefixSkuName, SecurityProviderName, SecurityPartnerProviderConnectionStatus, + VirtualNetworkPeeringState, VirtualNetworkGatewayType, VpnType, VpnGatewayGeneration, @@ -1546,7 +1546,6 @@ 'RouteNextHopType', 'PublicIPAddressSkuName', 'DdosSettingsProtectionCoverage', - 'VirtualNetworkPeeringState', 'TransportProtocol', 'ApplicationGatewayCookieBasedAffinity', 'ApplicationGatewayBackendHealthServerHealth', @@ -1629,6 +1628,7 @@ 'PublicIPPrefixSkuName', 'SecurityProviderName', 'SecurityPartnerProviderConnectionStatus', + 'VirtualNetworkPeeringState', 'VirtualNetworkGatewayType', 'VpnType', 'VpnGatewayGeneration', diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/models/_models.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/models/_models.py index 9911655382c3..c62716292457 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/models/_models.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/models/_models.py @@ -9546,23 +9546,29 @@ def __init__(self, **kwargs): class LoadBalancerBackendAddress(Model): """Load balancer backend addresses. + Variables are only populated by the server, and will be ignored when + sending a request. + :param virtual_network: Reference to an existing virtual network. - :type virtual_network: - ~azure.mgmt.network.v2020_04_01.models.VirtualNetwork + :type virtual_network: ~azure.mgmt.network.v2020_04_01.models.SubResource :param ip_address: IP Address belonging to the referenced virtual network. :type ip_address: str - :param network_interface_ip_configuration: Reference to IP address defined + :ivar network_interface_ip_configuration: Reference to IP address defined in network interfaces. - :type network_interface_ip_configuration: - ~azure.mgmt.network.v2020_04_01.models.NetworkInterfaceIPConfiguration + :vartype network_interface_ip_configuration: + ~azure.mgmt.network.v2020_04_01.models.SubResource :param name: Name of the backend address. :type name: str """ + _validation = { + 'network_interface_ip_configuration': {'readonly': True}, + } + _attribute_map = { - 'virtual_network': {'key': 'properties.virtualNetwork', 'type': 'VirtualNetwork'}, + 'virtual_network': {'key': 'properties.virtualNetwork', 'type': 'SubResource'}, 'ip_address': {'key': 'properties.ipAddress', 'type': 'str'}, - 'network_interface_ip_configuration': {'key': 'properties.networkInterfaceIPConfiguration', 'type': 'NetworkInterfaceIPConfiguration'}, + 'network_interface_ip_configuration': {'key': 'properties.networkInterfaceIPConfiguration', 'type': 'SubResource'}, 'name': {'key': 'name', 'type': 'str'}, } @@ -9570,7 +9576,7 @@ def __init__(self, **kwargs): super(LoadBalancerBackendAddress, self).__init__(**kwargs) self.virtual_network = kwargs.get('virtual_network', None) self.ip_address = kwargs.get('ip_address', None) - self.network_interface_ip_configuration = kwargs.get('network_interface_ip_configuration', None) + self.network_interface_ip_configuration = None self.name = kwargs.get('name', None) diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/models/_models_py3.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/models/_models_py3.py index 6c58f30d98cd..1b9fbf32e832 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/models/_models_py3.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/models/_models_py3.py @@ -9546,31 +9546,37 @@ def __init__(self, *, id: str=None, location: str=None, tags=None, sku=None, fro class LoadBalancerBackendAddress(Model): """Load balancer backend addresses. + Variables are only populated by the server, and will be ignored when + sending a request. + :param virtual_network: Reference to an existing virtual network. - :type virtual_network: - ~azure.mgmt.network.v2020_04_01.models.VirtualNetwork + :type virtual_network: ~azure.mgmt.network.v2020_04_01.models.SubResource :param ip_address: IP Address belonging to the referenced virtual network. :type ip_address: str - :param network_interface_ip_configuration: Reference to IP address defined + :ivar network_interface_ip_configuration: Reference to IP address defined in network interfaces. - :type network_interface_ip_configuration: - ~azure.mgmt.network.v2020_04_01.models.NetworkInterfaceIPConfiguration + :vartype network_interface_ip_configuration: + ~azure.mgmt.network.v2020_04_01.models.SubResource :param name: Name of the backend address. :type name: str """ + _validation = { + 'network_interface_ip_configuration': {'readonly': True}, + } + _attribute_map = { - 'virtual_network': {'key': 'properties.virtualNetwork', 'type': 'VirtualNetwork'}, + 'virtual_network': {'key': 'properties.virtualNetwork', 'type': 'SubResource'}, 'ip_address': {'key': 'properties.ipAddress', 'type': 'str'}, - 'network_interface_ip_configuration': {'key': 'properties.networkInterfaceIPConfiguration', 'type': 'NetworkInterfaceIPConfiguration'}, + 'network_interface_ip_configuration': {'key': 'properties.networkInterfaceIPConfiguration', 'type': 'SubResource'}, 'name': {'key': 'name', 'type': 'str'}, } - def __init__(self, *, virtual_network=None, ip_address: str=None, network_interface_ip_configuration=None, name: str=None, **kwargs) -> None: + def __init__(self, *, virtual_network=None, ip_address: str=None, name: str=None, **kwargs) -> None: super(LoadBalancerBackendAddress, self).__init__(**kwargs) self.virtual_network = virtual_network self.ip_address = ip_address - self.network_interface_ip_configuration = network_interface_ip_configuration + self.network_interface_ip_configuration = None self.name = name diff --git a/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/models/_network_management_client_enums.py b/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/models/_network_management_client_enums.py index 9f471d29f179..cde947fd2069 100644 --- a/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/models/_network_management_client_enums.py +++ b/sdk/network/azure-mgmt-network/azure/mgmt/network/v2020_04_01/models/_network_management_client_enums.py @@ -86,13 +86,6 @@ class DdosSettingsProtectionCoverage(str, Enum): standard = "Standard" -class VirtualNetworkPeeringState(str, Enum): - - initiated = "Initiated" - connected = "Connected" - disconnected = "Disconnected" - - class TransportProtocol(str, Enum): udp = "Udp" @@ -678,6 +671,13 @@ class SecurityPartnerProviderConnectionStatus(str, Enum): not_connected = "NotConnected" +class VirtualNetworkPeeringState(str, Enum): + + initiated = "Initiated" + connected = "Connected" + disconnected = "Disconnected" + + class VirtualNetworkGatewayType(str, Enum): vpn = "Vpn"