/// <summary>
 /// Gets the specified ExpressRouteConnection.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='expressRouteGatewayName'>
 /// The name of the ExpressRoute gateway.
 /// </param>
 /// <param name='connectionName'>
 /// The name of the ExpressRoute connection.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ExpressRouteConnectionInner> GetAsync(this IExpressRouteConnectionsOperations operations, string resourceGroupName, string expressRouteGatewayName, string connectionName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, expressRouteGatewayName, connectionName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Creates a connection between an ExpressRoute gateway and an ExpressRoute
 /// 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='expressRouteGatewayName'>
 /// The name of the ExpressRoute gateway.
 /// </param>
 /// <param name='connectionName'>
 /// The name of the connection subresource.
 /// </param>
 /// <param name='putExpressRouteConnectionParameters'>
 /// Parameters required in an ExpressRouteConnection PUT operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ExpressRouteConnection> CreateOrUpdateAsync(this IExpressRouteConnectionsOperations operations, string resourceGroupName, string expressRouteGatewayName, string connectionName, ExpressRouteConnection putExpressRouteConnectionParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, expressRouteGatewayName, connectionName, putExpressRouteConnectionParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Deletes a connection to a ExpressRoute 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='expressRouteGatewayName'>
 /// The name of the ExpressRoute gateway.
 /// </param>
 /// <param name='connectionName'>
 /// The name of the connection subresource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IExpressRouteConnectionsOperations operations, string resourceGroupName, string expressRouteGatewayName, string connectionName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, expressRouteGatewayName, connectionName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Gets the specified ExpressRouteConnection.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='expressRouteGatewayName'>
 /// The name of the ExpressRoute gateway.
 /// </param>
 /// <param name='connectionName'>
 /// The name of the ExpressRoute connection.
 /// </param>
 public static ExpressRouteConnection Get(this IExpressRouteConnectionsOperations operations, string resourceGroupName, string expressRouteGatewayName, string connectionName)
 {
     return(operations.GetAsync(resourceGroupName, expressRouteGatewayName, connectionName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Creates a connection between an ExpressRoute gateway and an ExpressRoute
 /// 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='expressRouteGatewayName'>
 /// The name of the ExpressRoute gateway.
 /// </param>
 /// <param name='connectionName'>
 /// The name of the connection subresource.
 /// </param>
 /// <param name='putExpressRouteConnectionParameters'>
 /// Parameters required in an ExpressRouteConnection PUT operation.
 /// </param>
 public static ExpressRouteConnection CreateOrUpdate(this IExpressRouteConnectionsOperations operations, string resourceGroupName, string expressRouteGatewayName, string connectionName, ExpressRouteConnection putExpressRouteConnectionParameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, expressRouteGatewayName, connectionName, putExpressRouteConnectionParameters).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes a connection to a ExpressRoute 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='expressRouteGatewayName'>
 /// The name of the ExpressRoute gateway.
 /// </param>
 /// <param name='connectionName'>
 /// The name of the connection subresource.
 /// </param>
 public static void BeginDelete(this IExpressRouteConnectionsOperations operations, string resourceGroupName, string expressRouteGatewayName, string connectionName)
 {
     operations.BeginDeleteAsync(resourceGroupName, expressRouteGatewayName, connectionName).GetAwaiter().GetResult();
 }