ArmNetworkModelFactory.EffectiveNetworkSecurityGroup Method

Definition

Initializes a new instance of EffectiveNetworkSecurityGroup.

public static Azure.ResourceManager.Network.Models.EffectiveNetworkSecurityGroup EffectiveNetworkSecurityGroup (Azure.Core.ResourceIdentifier networkSecurityGroupId = default, Azure.ResourceManager.Network.Models.EffectiveNetworkSecurityGroupAssociation association = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.EffectiveNetworkSecurityRule> effectiveSecurityRules = default, System.Collections.Generic.IReadOnlyDictionary<string,System.Collections.Generic.IList<string>> tagToIPAddresses = default);
static member EffectiveNetworkSecurityGroup : Azure.Core.ResourceIdentifier * Azure.ResourceManager.Network.Models.EffectiveNetworkSecurityGroupAssociation * seq<Azure.ResourceManager.Network.Models.EffectiveNetworkSecurityRule> * System.Collections.Generic.IReadOnlyDictionary<string, System.Collections.Generic.IList<string>> -> Azure.ResourceManager.Network.Models.EffectiveNetworkSecurityGroup
Public Shared Function EffectiveNetworkSecurityGroup (Optional networkSecurityGroupId As ResourceIdentifier = Nothing, Optional association As EffectiveNetworkSecurityGroupAssociation = Nothing, Optional effectiveSecurityRules As IEnumerable(Of EffectiveNetworkSecurityRule) = Nothing, Optional tagToIPAddresses As IReadOnlyDictionary(Of String, IList(Of String)) = Nothing) As EffectiveNetworkSecurityGroup

Parameters

networkSecurityGroupId
ResourceIdentifier

The ID of network security group that is applied.

association
EffectiveNetworkSecurityGroupAssociation

Associated resources.

effectiveSecurityRules
IEnumerable<EffectiveNetworkSecurityRule>

A collection of effective security rules.

tagToIPAddresses
IReadOnlyDictionary<String,IList<String>>

Mapping of tags to list of IP Addresses included within the tag.

Returns

A new EffectiveNetworkSecurityGroup instance for mocking.

Applies to