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