Share via


VpnGateway Constructors

Definition

Overloads

VpnGateway()

Initializes a new instance of the VpnGateway class.

VpnGateway(String, String, String, String, IDictionary<String, String>, SubResource, IList<VpnConnection>, BgpSettings, String, Nullable<Int32>, IList<VpnGatewayIpConfiguration>, Nullable<Boolean>, Nullable<Boolean>, IList<VpnGatewayNatRule>, String)

Initializes a new instance of the VpnGateway class.

VpnGateway()

Initializes a new instance of the VpnGateway class.

public VpnGateway ();
Public Sub New ()

Applies to

VpnGateway(String, String, String, String, IDictionary<String, String>, SubResource, IList<VpnConnection>, BgpSettings, String, Nullable<Int32>, IList<VpnGatewayIpConfiguration>, Nullable<Boolean>, Nullable<Boolean>, IList<VpnGatewayNatRule>, String)

Initializes a new instance of the VpnGateway class.

public VpnGateway (string id = default, string name = default, string type = default, string location = default, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.Network.Models.SubResource virtualHub = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.VpnConnection> connections = default, Microsoft.Azure.Management.Network.Models.BgpSettings bgpSettings = default, string provisioningState = default, int? vpnGatewayScaleUnit = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.VpnGatewayIpConfiguration> ipConfigurations = default, bool? enableBgpRouteTranslationForNat = default, bool? isRoutingPreferenceInternet = default, System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.VpnGatewayNatRule> natRules = default, string etag = default);
new Microsoft.Azure.Management.Network.Models.VpnGateway : string * string * string * string * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.Network.Models.SubResource * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.VpnConnection> * Microsoft.Azure.Management.Network.Models.BgpSettings * string * Nullable<int> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.VpnGatewayIpConfiguration> * Nullable<bool> * Nullable<bool> * System.Collections.Generic.IList<Microsoft.Azure.Management.Network.Models.VpnGatewayNatRule> * string -> Microsoft.Azure.Management.Network.Models.VpnGateway
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional location As String = Nothing, Optional tags As IDictionary(Of String, String) = Nothing, Optional virtualHub As SubResource = Nothing, Optional connections As IList(Of VpnConnection) = Nothing, Optional bgpSettings As BgpSettings = Nothing, Optional provisioningState As String = Nothing, Optional vpnGatewayScaleUnit As Nullable(Of Integer) = Nothing, Optional ipConfigurations As IList(Of VpnGatewayIpConfiguration) = Nothing, Optional enableBgpRouteTranslationForNat As Nullable(Of Boolean) = Nothing, Optional isRoutingPreferenceInternet As Nullable(Of Boolean) = Nothing, Optional natRules As IList(Of VpnGatewayNatRule) = Nothing, Optional etag As String = Nothing)

Parameters

id
String

Resource ID.

name
String

Resource name.

type
String

Resource type.

location
String

Resource location.

tags
IDictionary<String,String>

Resource tags.

virtualHub
SubResource

The VirtualHub to which the gateway belongs.

connections
IList<VpnConnection>

List of all vpn connections to the gateway.

bgpSettings
BgpSettings

Local network gateway's BGP speaker settings.

provisioningState
String

The provisioning state of the VPN gateway resource. Possible values include: 'Succeeded', 'Updating', 'Deleting', 'Failed'

vpnGatewayScaleUnit
Nullable<Int32>

The scale unit for this vpn gateway.

ipConfigurations
IList<VpnGatewayIpConfiguration>

List of all IPs configured on the gateway.

enableBgpRouteTranslationForNat
Nullable<Boolean>

Enable BGP routes translation for NAT on this VpnGateway.

isRoutingPreferenceInternet
Nullable<Boolean>

Enable Routing Preference property for the Public IP Interface of the VpnGateway.

natRules
IList<VpnGatewayNatRule>

List of all the nat Rules associated with the gateway.

etag
String

A unique read-only string that changes whenever the resource is updated.

Applies to