# 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


class EffectiveNetworkSecurityGroup(Model):
    """Effective network security group.

    :param network_security_group: The ID of network security group that is
     applied.
    :type network_security_group: :class:`SubResource
     <azure.mgmt.network.v2017_06_01.models.SubResource>`
    :param association:
    :type association: :class:`EffectiveNetworkSecurityGroupAssociation
     <azure.mgmt.network.v2017_06_01.models.EffectiveNetworkSecurityGroupAssociation>`
    :param effective_security_rules: A collection of effective security rules.
    :type effective_security_rules: list of
     :class:`EffectiveNetworkSecurityRule
     <azure.mgmt.network.v2017_06_01.models.EffectiveNetworkSecurityRule>`
    """

    _attribute_map = {
        'network_security_group': {'key': 'networkSecurityGroup', 'type': 'SubResource'},
        'association': {'key': 'association', 'type': 'EffectiveNetworkSecurityGroupAssociation'},
        'effective_security_rules': {'key': 'effectiveSecurityRules', 'type': '[EffectiveNetworkSecurityRule]'},
    }

    def __init__(self, network_security_group=None, association=None, effective_security_rules=None):
        self.network_security_group = network_security_group
        self.association = association
        self.effective_security_rules = effective_security_rules
