ArmNetworkModelFactory.P2SVpnGatewayData Method

Definition

Initializes a new instance of P2SVpnGatewayData.

public static Azure.ResourceManager.Network.P2SVpnGatewayData P2SVpnGatewayData (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.Models.P2SConnectionConfiguration> p2sConnectionConfigurations = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default, int? vpnGatewayScaleUnit = default, Azure.Core.ResourceIdentifier vpnServerConfigurationId = default, Azure.ResourceManager.Network.Models.VpnClientConnectionHealth vpnClientConnectionHealth = default, System.Collections.Generic.IEnumerable<string> customDnsServers = default, bool? isRoutingPreferenceInternet = default);
static member P2SVpnGatewayData : 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.Models.P2SConnectionConfiguration> * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> * Nullable<int> * Azure.Core.ResourceIdentifier * Azure.ResourceManager.Network.Models.VpnClientConnectionHealth * seq<string> * Nullable<bool> -> Azure.ResourceManager.Network.P2SVpnGatewayData
Public Shared Function P2SVpnGatewayData (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 p2sConnectionConfigurations As IEnumerable(Of P2SConnectionConfiguration) = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing, Optional vpnGatewayScaleUnit As Nullable(Of Integer) = Nothing, Optional vpnServerConfigurationId As ResourceIdentifier = Nothing, Optional vpnClientConnectionHealth As VpnClientConnectionHealth = Nothing, Optional customDnsServers As IEnumerable(Of String) = Nothing, Optional isRoutingPreferenceInternet As Nullable(Of Boolean) = Nothing) As P2SVpnGatewayData

Parameters

id
ResourceIdentifier

Resource ID.

name
String

Resource name.

resourceType
Nullable<ResourceType>

Resource type.

location
Nullable<AzureLocation>

Resource location.

tags
IDictionary<String,String>

Resource tags.

etag
Nullable<ETag>

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

virtualHubId
ResourceIdentifier

The VirtualHub to which the gateway belongs.

p2sConnectionConfigurations
IEnumerable<P2SConnectionConfiguration>

List of all p2s connection configurations of the gateway.

provisioningState
Nullable<NetworkProvisioningState>

The provisioning state of the P2S VPN gateway resource.

vpnGatewayScaleUnit
Nullable<Int32>

The scale unit for this p2s vpn gateway.

vpnServerConfigurationId
ResourceIdentifier

The VpnServerConfiguration to which the p2sVpnGateway is attached to.

vpnClientConnectionHealth
VpnClientConnectionHealth

All P2S VPN clients' connection health status.

customDnsServers
IEnumerable<String>

List of all customer specified DNS servers IP addresses.

isRoutingPreferenceInternet
Nullable<Boolean>

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

Returns

A new P2SVpnGatewayData instance for mocking.

Applies to