Share via


ArmPeeringModelFactory.PeeringDirectConnection Method

Definition

Initializes a new instance of PeeringDirectConnection.

public static Azure.ResourceManager.Peering.Models.PeeringDirectConnection PeeringDirectConnection (int? bandwidthInMbps = default, int? provisionedBandwidthInMbps = default, Azure.ResourceManager.Peering.Models.PeeringSessionAddressProvider? sessionAddressProvider = default, bool? useForPeeringService = default, string microsoftTrackingId = default, int? peeringDBFacilityId = default, Azure.ResourceManager.Peering.Models.PeeringConnectionState? connectionState = default, Azure.ResourceManager.Peering.Models.PeeringBgpSession bgpSession = default, string connectionIdentifier = default, string errorMessage = default);
static member PeeringDirectConnection : Nullable<int> * Nullable<int> * Nullable<Azure.ResourceManager.Peering.Models.PeeringSessionAddressProvider> * Nullable<bool> * string * Nullable<int> * Nullable<Azure.ResourceManager.Peering.Models.PeeringConnectionState> * Azure.ResourceManager.Peering.Models.PeeringBgpSession * string * string -> Azure.ResourceManager.Peering.Models.PeeringDirectConnection
Public Shared Function PeeringDirectConnection (Optional bandwidthInMbps As Nullable(Of Integer) = Nothing, Optional provisionedBandwidthInMbps As Nullable(Of Integer) = Nothing, Optional sessionAddressProvider As Nullable(Of PeeringSessionAddressProvider) = Nothing, Optional useForPeeringService As Nullable(Of Boolean) = Nothing, Optional microsoftTrackingId As String = Nothing, Optional peeringDBFacilityId As Nullable(Of Integer) = Nothing, Optional connectionState As Nullable(Of PeeringConnectionState) = Nothing, Optional bgpSession As PeeringBgpSession = Nothing, Optional connectionIdentifier As String = Nothing, Optional errorMessage As String = Nothing) As PeeringDirectConnection

Parameters

bandwidthInMbps
Nullable<Int32>

The bandwidth of the connection.

provisionedBandwidthInMbps
Nullable<Int32>

The bandwidth that is actually provisioned.

sessionAddressProvider
Nullable<PeeringSessionAddressProvider>

The field indicating if Microsoft provides session ip addresses.

useForPeeringService
Nullable<Boolean>

The flag that indicates whether or not the connection is used for peering service.

microsoftTrackingId
String

The ID used within Microsoft's peering provisioning system to track the connection.

peeringDBFacilityId
Nullable<Int32>

The PeeringDB.com ID of the facility at which the connection has to be set up.

connectionState
Nullable<PeeringConnectionState>

The state of the connection.

bgpSession
PeeringBgpSession

The BGP session associated with the connection.

connectionIdentifier
String

The unique identifier (GUID) for the connection.

errorMessage
String

The error message related to the connection state, if any.

Returns

A new PeeringDirectConnection instance for mocking.

Applies to