Sdílet prostřednictvím


ArmNetworkModelFactory.BgpConnectionData Method

Definition

Initializes a new instance of BgpConnectionData.

public static Azure.ResourceManager.Network.BgpConnectionData BgpConnectionData (Azure.Core.ResourceIdentifier id = default, string name = default, Azure.Core.ResourceType? resourceType = default, Azure.ETag? etag = default, long? peerAsn = default, string peerIP = default, Azure.Core.ResourceIdentifier hubVirtualNetworkConnectionId = default, Azure.ResourceManager.Network.Models.NetworkProvisioningState? provisioningState = default, Azure.ResourceManager.Network.Models.HubBgpConnectionStatus? connectionState = default);
static member BgpConnectionData : Azure.Core.ResourceIdentifier * string * Nullable<Azure.Core.ResourceType> * Nullable<Azure.ETag> * Nullable<int64> * string * Azure.Core.ResourceIdentifier * Nullable<Azure.ResourceManager.Network.Models.NetworkProvisioningState> * Nullable<Azure.ResourceManager.Network.Models.HubBgpConnectionStatus> -> Azure.ResourceManager.Network.BgpConnectionData
Public Shared Function BgpConnectionData (Optional id As ResourceIdentifier = Nothing, Optional name As String = Nothing, Optional resourceType As Nullable(Of ResourceType) = Nothing, Optional etag As Nullable(Of ETag) = Nothing, Optional peerAsn As Nullable(Of Long) = Nothing, Optional peerIP As String = Nothing, Optional hubVirtualNetworkConnectionId As ResourceIdentifier = Nothing, Optional provisioningState As Nullable(Of NetworkProvisioningState) = Nothing, Optional connectionState As Nullable(Of HubBgpConnectionStatus) = Nothing) As BgpConnectionData

Parameters

id
ResourceIdentifier

Resource ID.

name
String

Resource name.

resourceType
Nullable<ResourceType>

Resource type.

etag
Nullable<ETag>

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

peerAsn
Nullable<Int64>

Peer ASN.

peerIP
String

Peer IP.

hubVirtualNetworkConnectionId
ResourceIdentifier

The reference to the HubVirtualNetworkConnection resource.

provisioningState
Nullable<NetworkProvisioningState>

The provisioning state of the resource.

connectionState
Nullable<HubBgpConnectionStatus>

The current state of the VirtualHub to Peer.

Returns

A new BgpConnectionData instance for mocking.

Applies to