ArmServiceBusModelFactory.ServiceBusNetworkRuleSetData 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 ServiceBusNetworkRuleSetData.
public static Azure.ResourceManager.ServiceBus.ServiceBusNetworkRuleSetData ServiceBusNetworkRuleSetData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType resourceType = default, Azure.ResourceManager.Models.SystemData systemData = default, bool? isTrustedServiceAccessEnabled = default, Azure.ResourceManager.ServiceBus.Models.ServiceBusNetworkRuleSetDefaultAction? defaultAction = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceBus.Models.ServiceBusNetworkRuleSetVirtualNetworkRules> virtualNetworkRules = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.ServiceBus.Models.ServiceBusNetworkRuleSetIPRules> ipRules = default, Azure.ResourceManager.ServiceBus.Models.ServiceBusPublicNetworkAccessFlag? publicNetworkAccess = default, Azure.Core.AzureLocation? location = default);
static member ServiceBusNetworkRuleSetData : Azure.Core.ResourceIdentifier * string * Azure.Core.ResourceType * Azure.ResourceManager.Models.SystemData * Nullable<bool> * Nullable<Azure.ResourceManager.ServiceBus.Models.ServiceBusNetworkRuleSetDefaultAction> * seq<Azure.ResourceManager.ServiceBus.Models.ServiceBusNetworkRuleSetVirtualNetworkRules> * seq<Azure.ResourceManager.ServiceBus.Models.ServiceBusNetworkRuleSetIPRules> * Nullable<Azure.ResourceManager.ServiceBus.Models.ServiceBusPublicNetworkAccessFlag> * Nullable<Azure.Core.AzureLocation> -> Azure.ResourceManager.ServiceBus.ServiceBusNetworkRuleSetData
Public Shared Function ServiceBusNetworkRuleSetData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As ResourceType = Nothing, Optional systemData As SystemData = Nothing, Optional isTrustedServiceAccessEnabled As Nullable(Of Boolean) = Nothing, Optional defaultAction As Nullable(Of ServiceBusNetworkRuleSetDefaultAction) = Nothing, Optional virtualNetworkRules As IEnumerable(Of ServiceBusNetworkRuleSetVirtualNetworkRules) = Nothing, Optional ipRules As IEnumerable(Of ServiceBusNetworkRuleSetIPRules) = Nothing, Optional publicNetworkAccess As Nullable(Of ServiceBusPublicNetworkAccessFlag) = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing) As ServiceBusNetworkRuleSetData
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<ServiceBusNetworkRuleSetDefaultAction>
Default Action for Network Rule Set.
- virtualNetworkRules
- IEnumerable<ServiceBusNetworkRuleSetVirtualNetworkRules>
List VirtualNetwork Rules.
List of IpRules.
- publicNetworkAccess
- Nullable<ServiceBusPublicNetworkAccessFlag>
This determines if traffic is allowed over public network. By default it is enabled.
- location
- Nullable<AzureLocation>
The geo-location where the resource lives.
Returns
A new ServiceBusNetworkRuleSetData instance for mocking.
Applies to
Azure SDK for .NET