Dela via


ArmRelayModelFactory.RelayNetworkRuleSetData Method

Definition

Initializes a new instance of RelayNetworkRuleSetData.

public static Azure.ResourceManager.Relay.RelayNetworkRuleSetData RelayNetworkRuleSetData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, Azure.ResourceManager.Relay.Models.RelayNetworkRuleSetDefaultAction? defaultAction = default, Azure.ResourceManager.Relay.Models.RelayPublicNetworkAccess? publicNetworkAccess = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Relay.Models.RelayNetworkRuleSetIPRule> ipRules = default);
static member RelayNetworkRuleSetData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<Azure.ResourceManager.Relay.Models.RelayNetworkRuleSetDefaultAction> * Nullable<Azure.ResourceManager.Relay.Models.RelayPublicNetworkAccess> * seq<Azure.ResourceManager.Relay.Models.RelayNetworkRuleSetIPRule> -> Azure.ResourceManager.Relay.RelayNetworkRuleSetData
Public Shared Function RelayNetworkRuleSetData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional defaultAction As Nullable(Of RelayNetworkRuleSetDefaultAction) = Nothing, Optional publicNetworkAccess As Nullable(Of RelayPublicNetworkAccess) = Nothing, Optional ipRules As IEnumerable(Of RelayNetworkRuleSetIPRule) = Nothing) As RelayNetworkRuleSetData

Parameters

id
ResourceIdentifier

The id.

name
String

The name.

resourceType
ResourceType

The resourceType.

systemData
SystemData

The systemData.

defaultAction
Nullable<RelayNetworkRuleSetDefaultAction>

Default Action for Network Rule Set.

publicNetworkAccess
Nullable<RelayPublicNetworkAccess>

This determines if traffic is allowed over public network. By default it is enabled.

ipRules
IEnumerable<RelayNetworkRuleSetIPRule>

List of IpRules.

Returns

A new RelayNetworkRuleSetData instance for mocking.

Applies to