/// <summary>
 /// Retrieves the details of all RouteTables.
 /// </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 <HubRouteTable> > ListNextAsync(this IHubRouteTablesOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Creates a RouteTable resource if it doesn't exist else updates the existing
 /// RouteTable.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name of the VirtualHub.
 /// </param>
 /// <param name='virtualHubName'>
 /// The name of the VirtualHub.
 /// </param>
 /// <param name='routeTableName'>
 /// The name of the RouteTable.
 /// </param>
 /// <param name='routeTableParameters'>
 /// Parameters supplied to create or update RouteTable.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <HubRouteTable> CreateOrUpdateAsync(this IHubRouteTablesOperations operations, string resourceGroupName, string virtualHubName, string routeTableName, HubRouteTable routeTableParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, virtualHubName, routeTableName, routeTableParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Retrieves the details of all RouteTables.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name of the VirtualHub.
 /// </param>
 /// <param name='virtualHubName'>
 /// The name of the VirtualHub.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <HubRouteTable> > ListAsync(this IHubRouteTablesOperations operations, string resourceGroupName, string virtualHubName, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, virtualHubName, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Retrieves the details of a RouteTable.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name of the VirtualHub.
 /// </param>
 /// <param name='virtualHubName'>
 /// The name of the VirtualHub.
 /// </param>
 /// <param name='routeTableName'>
 /// The name of the RouteTable.
 /// </param>
 public static HubRouteTable Get(this IHubRouteTablesOperations operations, string resourceGroupName, string virtualHubName, string routeTableName)
 {
     return(operations.GetAsync(resourceGroupName, virtualHubName, routeTableName).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Creates a RouteTable resource if it doesn't exist else updates the existing
 /// RouteTable.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name of the VirtualHub.
 /// </param>
 /// <param name='virtualHubName'>
 /// The name of the VirtualHub.
 /// </param>
 /// <param name='routeTableName'>
 /// The name of the RouteTable.
 /// </param>
 /// <param name='routeTableParameters'>
 /// Parameters supplied to create or update RouteTable.
 /// </param>
 public static HubRouteTable CreateOrUpdate(this IHubRouteTablesOperations operations, string resourceGroupName, string virtualHubName, string routeTableName, HubRouteTable routeTableParameters)
 {
     return(operations.CreateOrUpdateAsync(resourceGroupName, virtualHubName, routeTableName, routeTableParameters).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Retrieves the details of all RouteTables.
 /// </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 <HubRouteTable> ListNext(this IHubRouteTablesOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Deletes a RouteTable.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name of the RouteTable.
 /// </param>
 /// <param name='virtualHubName'>
 /// The name of the VirtualHub.
 /// </param>
 /// <param name='routeTableName'>
 /// The name of the RouteTable.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task BeginDeleteAsync(this IHubRouteTablesOperations operations, string resourceGroupName, string virtualHubName, string routeTableName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.BeginDeleteWithHttpMessagesAsync(resourceGroupName, virtualHubName, routeTableName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
 /// <summary>
 /// Deletes a RouteTable.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name of the RouteTable.
 /// </param>
 /// <param name='virtualHubName'>
 /// The name of the VirtualHub.
 /// </param>
 /// <param name='routeTableName'>
 /// The name of the RouteTable.
 /// </param>
 public static void BeginDelete(this IHubRouteTablesOperations operations, string resourceGroupName, string virtualHubName, string routeTableName)
 {
     operations.BeginDeleteAsync(resourceGroupName, virtualHubName, routeTableName).GetAwaiter().GetResult();
 }