# 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 msrest.serialization import Model
[docs]class EffectiveNetworkSecurityGroupAssociation(Model):
"""The effective network security group association.
:param subnet: The ID of the subnet if assigned.
:type subnet: ~azure.mgmt.network.v2018_04_01.models.SubResource
:param network_interface: The ID of the network interface if assigned.
:type network_interface:
~azure.mgmt.network.v2018_04_01.models.SubResource
"""
_attribute_map = {
'subnet': {'key': 'subnet', 'type': 'SubResource'},
'network_interface': {'key': 'networkInterface', 'type': 'SubResource'},
}
def __init__(self, *, subnet=None, network_interface=None, **kwargs) -> None:
super(EffectiveNetworkSecurityGroupAssociation, self).__init__(**kwargs)
self.subnet = subnet
self.network_interface = network_interface