ArmNetworkModelFactory.VpnGatewayData 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 VpnGatewayData.
public static Azure.ResourceManager.Network.VpnGatewayData VpnGatewayData (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.ETag? etag = default, Azure.Core.ResourceIdentifier virtualHubId = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.VpnConnectionData> connections = default, Azure.ResourceManager.Network.Models.BgpSettings bgpSettings = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default, int? vpnGatewayScaleUnit = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.Models.VpnGatewayIPConfiguration> ipConfigurations = default, bool? enableBgpRouteTranslationForNat = default, bool? isRoutingPreferenceInternet = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.Network.VpnGatewayNatRuleData> natRules = default);
static member VpnGatewayData : Azure.Core.ResourceIdentifier * string * Nullable<Azure.Core.ResourceType> * Nullable<Azure.Core.AzureLocation> * System.Collections.Generic.IDictionary<string, string> * Nullable<Azure.ETag> * Azure.Core.ResourceIdentifier * seq<Azure.ResourceManager.Network.VpnConnectionData> * Azure.ResourceManager.Network.Models.BgpSettings * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> * Nullable<int> * seq<Azure.ResourceManager.Network.Models.VpnGatewayIPConfiguration> * Nullable<bool> * Nullable<bool> * seq<Azure.ResourceManager.Network.VpnGatewayNatRuleData> -> Azure.ResourceManager.Network.VpnGatewayData
Public Shared Function VpnGatewayData (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 etag As Nullable(Of ETag) = Nothing, Optional virtualHubId As ResourceIdentifier = Nothing, Optional connections As IEnumerable(Of VpnConnectionData) = Nothing, Optional bgpSettings As BgpSettings = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing, Optional vpnGatewayScaleUnit As Nullable(Of Integer) = Nothing, Optional ipConfigurations As IEnumerable(Of VpnGatewayIPConfiguration) = Nothing, Optional enableBgpRouteTranslationForNat As Nullable(Of Boolean) = Nothing, Optional isRoutingPreferenceInternet As Nullable(Of Boolean) = Nothing, Optional natRules As IEnumerable(Of VpnGatewayNatRuleData) = Nothing) As VpnGatewayData
Parameters
Resource ID.
- name
- String
Resource name.
- resourceType
- Nullable<ResourceType>
Resource type.
- location
- Nullable<AzureLocation>
Resource location.
- tags
- IDictionary<String,String>
Resource tags.
- virtualHubId
- ResourceIdentifier
The VirtualHub to which the gateway belongs.
- connections
- IEnumerable<VpnConnectionData>
List of all vpn connections to the gateway.
- bgpSettings
- BgpSettings
Local network gateway's BGP speaker settings.
- provisioningState
- Nullable<NetworkProvisioningState>
The provisioning state of the VPN gateway resource.
- ipConfigurations
- IEnumerable<VpnGatewayIPConfiguration>
List of all IPs configured on the gateway.
Enable BGP routes translation for NAT on this VpnGateway.
Enable Routing Preference property for the Public IP Interface of the VpnGateway.
- natRules
- IEnumerable<VpnGatewayNatRuleData>
List of all the nat Rules associated with the gateway.
Returns
A new VpnGatewayData instance for mocking.
Applies to
Azure SDK for .NET