Udostępnij za pośrednictwem


ArmNetworkModelFactory.NetworkManagerSecurityUserRuleData Method

Definition

Initializes a new instance of NetworkManagerSecurityUserRuleData.

public static Azure.ResourceManager.Network.NetworkManagerSecurityUserRuleData NetworkManagerSecurityUserRuleData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, string description = default, Azure.ResourceManager.Network.Models.SecurityConfigurationRuleProtocol? protocol = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.AddressPrefixItem> sources = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.AddressPrefixItem> destinations = default, System.Collections.Generic.IEnumerable<string> sourcePortRanges = default, System.Collections.Generic.IEnumerable<string> destinationPortRanges = default, Azure.ResourceManager.Network.Models.SecurityConfigurationRuleDirection? direction = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default, Guid? resourceGuid = default, Azure.ETag? etag = default);
static member NetworkManagerSecurityUserRuleData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * string * Nullable<Azure.ResourceManager.Network.Models.SecurityConfigurationRuleProtocol> * seq<Azure.ResourceManager.Network.Models.AddressPrefixItem> * seq<Azure.ResourceManager.Network.Models.AddressPrefixItem> * seq<string> * seq<string> * Nullable<Azure.ResourceManager.Network.Models.SecurityConfigurationRuleDirection> * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> * Nullable<Guid> * Nullable<Azure.ETag> -> Azure.ResourceManager.Network.NetworkManagerSecurityUserRuleData
Public Shared Function NetworkManagerSecurityUserRuleData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional description As String = Nothing, Optional protocol As Nullable(Of SecurityConfigurationRuleProtocol) = Nothing, Optional sources As IEnumerable(Of AddressPrefixItem) = Nothing, Optional destinations As IEnumerable(Of AddressPrefixItem) = Nothing, Optional sourcePortRanges As IEnumerable(Of String) = Nothing, Optional destinationPortRanges As IEnumerable(Of String) = Nothing, Optional direction As Nullable(Of SecurityConfigurationRuleDirection) = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing, Optional resourceGuid As Nullable(Of Guid) = Nothing, Optional etag As Nullable(Of ETag) = Nothing) As NetworkManagerSecurityUserRuleData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

description
String

A description for this rule.

protocol
Nullable<SecurityConfigurationRuleProtocol>

Network protocol this rule applies to.

sources
IEnumerable<AddressPrefixItem>

The CIDR or source IP ranges.

destinations
IEnumerable<AddressPrefixItem>

The destination address prefixes. CIDR or destination IP ranges.

sourcePortRanges
IEnumerable<String>

The source port ranges.

destinationPortRanges
IEnumerable<String>

The destination port ranges.

direction
Nullable<SecurityConfigurationRuleDirection>

Indicates if the traffic matched against the rule in inbound or outbound.

provisioningState
Nullable<NetworkProvisioningState>

The provisioning state of the security configuration user rule resource.

resourceGuid
Nullable<Guid>

Unique identifier for this resource.

etag
Nullable<ETag>

A unique read-only string that changes whenever the resource is updated.

Returns

A new NetworkManagerSecurityUserRuleData instance for mocking.

Applies to