ArmNetworkModelFactory.VirtualNetworkGatewayData 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 VirtualNetworkGatewayData.
public static Azure.ResourceManager.Network.VirtualNetworkGatewayData VirtualNetworkGatewayData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType? resourceType = default, Azure.Core.AzureLocation? location = default, System.Collections.Generic.IDictionary<string,string> tags = default, Azure.ResourceManager.Resources.Models.ExtendedLocation extendedLocation = default, Azure.ETag? etag = default, Azure.ResourceManager.Models.ManagedServiceIdentity identity = default, Azure.ResourceManager.Network.Models.VirtualNetworkGatewayAutoScaleBounds autoScaleBounds = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.VirtualNetworkGatewayIPConfiguration> ipConfigurations = default, Azure.ResourceManager.Network.Models.VirtualNetworkGatewayType? gatewayType = default, Azure.ResourceManager.Network.Models.VpnType? vpnType = default, Azure.ResourceManager.Network.Models.VpnGatewayGeneration? vpnGatewayGeneration = default, bool? enableBgp = default, bool? enablePrivateIPAddress = default, bool? active = default, bool? disableIPSecReplayProtection = default, Azure.Core.ResourceIdentifier gatewayDefaultSiteId = default, Azure.ResourceManager.Network.Models.VirtualNetworkGatewaySku sku = default, Azure.ResourceManager.Network.Models.VpnClientConfiguration vpnClientConfiguration = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.VirtualNetworkGatewayPolicyGroup> virtualNetworkGatewayPolicyGroups = default, Azure.ResourceManager.Network.Models.BgpSettings bgpSettings = default, System.Collections.Generic.IEnumerable<string> customRoutesAddressPrefixes = default, Guid? resourceGuid = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default, bool? enableDnsForwarding = default, string inboundDnsForwardingEndpoint = default, Azure.Core.ResourceIdentifier vNetExtendedLocationResourceId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.VirtualNetworkGatewayNatRuleData> natRules = default, bool? enableBgpRouteTranslationForNat = default, bool? allowVirtualWanTraffic = default, bool? allowRemoteVnetTraffic = default, Azure.ResourceManager.Network.Models.ExpressRouteGatewayAdminState? adminState = default, Azure.ResourceManager.Network.Models.ExpressRouteGatewayResiliencyModel? resiliencyModel = default);
static member VirtualNetworkGatewayData : Azure.Core.ResourceIdentifier * string * Nullable<Azure.Core.ResourceType> * Nullable<Azure.Core.AzureLocation> * System.Collections.Generic.IDictionary<string, string> * Azure.ResourceManager.Resources.Models.ExtendedLocation * Nullable<Azure.ETag> * Azure.ResourceManager.Models.ManagedServiceIdentity * Azure.ResourceManager.Network.Models.VirtualNetworkGatewayAutoScaleBounds * seq<Azure.ResourceManager.Network.Models.VirtualNetworkGatewayIPConfiguration> * Nullable<Azure.ResourceManager.Network.Models.VirtualNetworkGatewayType> * Nullable<Azure.ResourceManager.Network.Models.VpnType> * Nullable<Azure.ResourceManager.Network.Models.VpnGatewayGeneration> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Network.Models.VirtualNetworkGatewaySku * Azure.ResourceManager.Network.Models.VpnClientConfiguration * seq<Azure.ResourceManager.Network.Models.VirtualNetworkGatewayPolicyGroup> * Azure.ResourceManager.Network.Models.BgpSettings * seq<string> * Nullable<Guid> * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> * Nullable<bool> * string * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.Network.VirtualNetworkGatewayNatRuleData> * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<Azure.ResourceManager.Network.Models.ExpressRouteGatewayAdminState> * Nullable<Azure.ResourceManager.Network.Models.ExpressRouteGatewayResiliencyModel> -> Azure.ResourceManager.Network.VirtualNetworkGatewayData
Public Shared Function VirtualNetworkGatewayData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As Nullable(Of ResourceType) = Nothing, Optional location As Nullable(Of AzureLocation) = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional extendedLocation As ExtendedLocation = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional identity As ManagedServiceIdentity = Nothing, Optional autoScaleBounds As VirtualNetworkGatewayAutoScaleBounds = Nothing, Optional ipConfigurations As IEnumerable(Of VirtualNetworkGatewayIPConfiguration) = Nothing, Optional gatewayType As Nullable(Of VirtualNetworkGatewayType) = Nothing, Optional vpnType As Nullable(Of VpnType) = Nothing, Optional vpnGatewayGeneration As Nullable(Of VpnGatewayGeneration) = Nothing, Optional enableBgp As Nullable(Of Boolean) = Nothing, Optional enablePrivateIPAddress As Nullable(Of Boolean) = Nothing, Optional active As Nullable(Of Boolean) = Nothing, Optional disableIPSecReplayProtection As Nullable(Of Boolean) = Nothing, Optional gatewayDefaultSiteId As ResourceIdentifier = Nothing, Optional sku As VirtualNetworkGatewaySku = Nothing, Optional vpnClientConfiguration As VpnClientConfiguration = Nothing, Optional virtualNetworkGatewayPolicyGroups As IEnumerable(Of VirtualNetworkGatewayPolicyGroup) = Nothing, Optional bgpSettings As BgpSettings = Nothing, Optional customRoutesAddressPrefixes As IEnumerable(Of String) = Nothing, Optional resourceGuid As Nullable(Of Guid) = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing, Optional enableDnsForwarding As Nullable(Of Boolean) = Nothing, Optional inboundDnsForwardingEndpoint As String = Nothing, Optional vNetExtendedLocationResourceId As ResourceIdentifier = Nothing, Optional natRules As IEnumerable(Of VirtualNetworkGatewayNatRuleData) = Nothing, Optional enableBgpRouteTranslationForNat As Nullable(Of Boolean) = Nothing, Optional allowVirtualWanTraffic As Nullable(Of Boolean) = Nothing, Optional allowRemoteVnetTraffic As Nullable(Of Boolean) = Nothing, Optional adminState As Nullable(Of ExpressRouteGatewayAdminState) = Nothing, Optional resiliencyModel As Nullable(Of ExpressRouteGatewayResiliencyModel) = Nothing) As VirtualNetworkGatewayData
Parameters
Resource ID.
- name
- String
Resource name.
- resourceType
- Nullable<ResourceType>
Resource type.
- location
- Nullable<AzureLocation>
Resource location.
- tags
- IDictionary<String,String>
Resource tags.
- extendedLocation
- ExtendedLocation
The extended location of type local virtual network gateway.
- identity
- ManagedServiceIdentity
The identity of the virtual network gateway, if configured.
- autoScaleBounds
- VirtualNetworkGatewayAutoScaleBounds
Autoscale configuration for virutal network gateway.
- ipConfigurations
- IEnumerable<VirtualNetworkGatewayIPConfiguration>
IP configurations for virtual network gateway.
- gatewayType
- Nullable<VirtualNetworkGatewayType>
The type of this virtual network gateway.
- vpnGatewayGeneration
- Nullable<VpnGatewayGeneration>
The generation for this VirtualNetworkGateway. Must be None if gatewayType is not VPN.
Whether private IP needs to be enabled on this gateway for connections or not.
- gatewayDefaultSiteId
- ResourceIdentifier
The reference to the LocalNetworkGateway resource which represents local network site having default routes. Assign Null value in case of removing existing default site setting.
The reference to the VirtualNetworkGatewaySku resource which represents the SKU selected for Virtual network gateway.
- vpnClientConfiguration
- VpnClientConfiguration
The reference to the VpnClientConfiguration resource which represents the P2S VpnClient configurations.
- virtualNetworkGatewayPolicyGroups
- IEnumerable<VirtualNetworkGatewayPolicyGroup>
The reference to the VirtualNetworkGatewayPolicyGroup resource which represents the available VirtualNetworkGatewayPolicyGroup for the gateway.
- bgpSettings
- BgpSettings
Virtual network gateway's BGP speaker settings.
- customRoutesAddressPrefixes
- IEnumerable<String>
The reference to the address space resource which represents the custom routes address space specified by the customer for virtual network gateway and VpnClient.
- provisioningState
- Nullable<NetworkProvisioningState>
The provisioning state of the virtual network gateway resource.
- inboundDnsForwardingEndpoint
- String
The IP address allocated by the gateway to which dns requests can be sent.
- vNetExtendedLocationResourceId
- ResourceIdentifier
Customer vnet resource id. VirtualNetworkGateway of type local gateway is associated with the customer vnet.
- natRules
- IEnumerable<VirtualNetworkGatewayNatRuleData>
NatRules for virtual network gateway.
Configures this gateway to accept traffic from remote Virtual WAN networks.
Configure this gateway to accept traffic from other Azure Virtual Networks. This configuration does not support connectivity to Azure Virtual WAN.
- adminState
- Nullable<ExpressRouteGatewayAdminState>
Property to indicate if the Express Route Gateway serves traffic when there are multiple Express Route Gateways in the vnet.
- resiliencyModel
- Nullable<ExpressRouteGatewayResiliencyModel>
Property to indicate if the Express Route Gateway has resiliency model of MultiHomed or SingleHomed.
Returns
A new VirtualNetworkGatewayData instance for mocking.
Applies to
Azure SDK for .NET