/// <summary>
 /// Returns the requested edge gateway.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group.
 /// </param>
 /// <param name='location'>
 /// Location of the resource.
 /// </param>
 /// <param name='edgeGateway'>
 /// Name of the edge gateway.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <EdgeGateway> GetAsync(this IEdgeGatewaysOperations operations, string resourceGroupName, string location, string edgeGateway, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, location, edgeGateway, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Returns the list of all edge gateways at a certain location.
 /// </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 <EdgeGateway> > ListNextAsync(this IEdgeGatewaysOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Returns the list of all edge gateways at a certain location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group.
 /// </param>
 /// <param name='location'>
 /// Location of the resource.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <EdgeGateway> > ListAsync(this IEdgeGatewaysOperations operations, string resourceGroupName, string location, ODataQuery <EdgeGateway> odataQuery = default(ODataQuery <EdgeGateway>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, location, odataQuery, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Returns the list of all edge gateways at a certain location.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group.
 /// </param>
 /// <param name='location'>
 /// Location of the resource.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 public static IPage <EdgeGateway> List(this IEdgeGatewaysOperations operations, string resourceGroupName, string location, ODataQuery <EdgeGateway> odataQuery = default(ODataQuery <EdgeGateway>))
 {
     return(operations.ListAsync(resourceGroupName, location, odataQuery).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Returns the requested edge gateway.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group.
 /// </param>
 /// <param name='location'>
 /// Location of the resource.
 /// </param>
 /// <param name='edgeGateway'>
 /// Name of the edge gateway.
 /// </param>
 public static EdgeGateway Get(this IEdgeGatewaysOperations operations, string resourceGroupName, string location, string edgeGateway)
 {
     return(operations.GetAsync(resourceGroupName, location, edgeGateway).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Returns the list of all edge gateways at a certain location.
 /// </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 <EdgeGateway> ListNext(this IEdgeGatewaysOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }