Dela via


ArmNetworkModelFactory.SecurityRuleAssociations Method

Definition

Initializes a new instance of SecurityRuleAssociations.

public static Azure.ResourceManager.Network.Models.SecurityRuleAssociations SecurityRuleAssociations (Azure.ResourceManager.Network.Models.NetworkInterfaceAssociation networkInterfaceAssociation = default, Azure.ResourceManager.Network.Models.SubnetAssociation subnetAssociation = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.SecurityRuleData> defaultSecurityRules = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.EffectiveNetworkSecurityRule> effectiveSecurityRules = default);
static member SecurityRuleAssociations : Azure.ResourceManager.Network.Models.NetworkInterfaceAssociation * Azure.ResourceManager.Network.Models.SubnetAssociation * seq<Azure.ResourceManager.Network.SecurityRuleData> * seq<Azure.ResourceManager.Network.Models.EffectiveNetworkSecurityRule> -> Azure.ResourceManager.Network.Models.SecurityRuleAssociations
Public Shared Function SecurityRuleAssociations (Optional networkInterfaceAssociation As NetworkInterfaceAssociation = Nothing, Optional subnetAssociation As SubnetAssociation = Nothing, Optional defaultSecurityRules As IEnumerable(Of SecurityRuleData) = Nothing, Optional effectiveSecurityRules As IEnumerable(Of EffectiveNetworkSecurityRule) = Nothing) As SecurityRuleAssociations

Parameters

networkInterfaceAssociation
NetworkInterfaceAssociation

Network interface and it's custom security rules.

subnetAssociation
SubnetAssociation

Subnet and it's custom security rules.

defaultSecurityRules
IEnumerable<SecurityRuleData>

Collection of default security rules of the network security group.

effectiveSecurityRules
IEnumerable<EffectiveNetworkSecurityRule>

Collection of effective security rules.

Returns

A new SecurityRuleAssociations instance for mocking.

Applies to