ArmEventHubsModelFactory.EventHubsNetworkRuleSetData Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of EventHubsNetworkRuleSetData.
public static Azure.ResourceManager.EventHubs.EventHubsNetworkRuleSetData EventHubsNetworkRuleSetData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, bool? trustedServiceAccessEnabled = default, Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleSetDefaultAction? defaultAction = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleSetVirtualNetworkRules> virtualNetworkRules = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleSetIPRules> ipRules = default, Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccessFlag? publicNetworkAccess = default, Azure.Core.AzureLocation? location = default);
static member EventHubsNetworkRuleSetData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<bool> * Nullable<Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleSetDefaultAction> * seq<Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleSetVirtualNetworkRules> * seq<Azure.ResourceManager.EventHubs.Models.EventHubsNetworkRuleSetIPRules> * Nullable<Azure.ResourceManager.EventHubs.Models.EventHubsPublicNetworkAccessFlag> * Nullable<Azure.Core.AzureLocation> -> Azure.ResourceManager.EventHubs.EventHubsNetworkRuleSetData
Public Shared Function EventHubsNetworkRuleSetData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional trustedServiceAccessEnabled As Nullable(Of Boolean) = Nothing, Optional defaultAction As Nullable(Of EventHubsNetworkRuleSetDefaultAction) = Nothing, Optional virtualNetworkRules As IEnumerable(Of EventHubsNetworkRuleSetVirtualNetworkRules) = Nothing, Optional ipRules As IEnumerable(Of EventHubsNetworkRuleSetIPRules) = Nothing, Optional publicNetworkAccess As Nullable(Of EventHubsPublicNetworkAccessFlag) = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing) As EventHubsNetworkRuleSetData
Parameters
The id.
- name
- String
The name.
- resourceType
- ResourceType
The resourceType.
- systemData
- SystemData
The systemData.
Value that indicates whether Trusted Service Access is Enabled or not.
- defaultAction
- Nullable<EventHubsNetworkRuleSetDefaultAction>
Default Action for Network Rule Set.
- virtualNetworkRules
- IEnumerable<EventHubsNetworkRuleSetVirtualNetworkRules>
List VirtualNetwork Rules.
List of IpRules.
- publicNetworkAccess
- Nullable<EventHubsPublicNetworkAccessFlag>
This determines if traffic is allowed over public network. By default it is enabled. If value is SecuredByPerimeter then Inbound and Outbound communication is controlled by the network security perimeter and profile's access rules.
- location
- Nullable<AzureLocation>
The geo-location where the resource lives.
Returns
A new EventHubsNetworkRuleSetData instance for mocking.
Applies to
Azure SDK for .NET