/// <summary> /// Gets the specified Peer Express Route Circuit Connection from the specified /// express route circuit. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='circuitName'> /// The name of the express route circuit. /// </param> /// <param name='peeringName'> /// The name of the peering. /// </param> /// <param name='connectionName'> /// The name of the peer express route circuit connection. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PeerExpressRouteCircuitConnection> GetAsync(this IPeerExpressRouteCircuitConnectionsOperations operations, string resourceGroupName, string circuitName, string peeringName, string connectionName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, circuitName, peeringName, connectionName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets all global reach peer connections associated with a private peering in /// an express route circuit. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='circuitName'> /// The name of the circuit. /// </param> /// <param name='peeringName'> /// The name of the peering. /// </param> public static IPage <PeerExpressRouteCircuitConnection> List(this IPeerExpressRouteCircuitConnectionsOperations operations, string resourceGroupName, string circuitName, string peeringName) { return(operations.ListAsync(resourceGroupName, circuitName, peeringName).GetAwaiter().GetResult()); }
/// <summary> /// Gets all global reach peer connections associated with a private peering in /// an express route circuit. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <PeerExpressRouteCircuitConnection> > ListNextAsync(this IPeerExpressRouteCircuitConnectionsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gets all global reach peer connections associated with a private peering in /// an express route circuit. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <PeerExpressRouteCircuitConnection> ListNext(this IPeerExpressRouteCircuitConnectionsOperations operations, string nextPageLink) { return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult()); }