/// <summary>
 /// Patch a NotificationHub in a namespace.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace name.
 /// </param>
 /// <param name='notificationHubName'>
 /// The notification hub name.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to patch a NotificationHub Resource.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <NotificationHubResource> PatchAsync(this INotificationHubsOperations operations, string resourceGroupName, string namespaceName, string notificationHubName, NotificationHubPatchParameters parameters = default(NotificationHubPatchParameters), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.PatchWithHttpMessagesAsync(resourceGroupName, namespaceName, notificationHubName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Patch a NotificationHub in a namespace.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='namespaceName'>
 /// The namespace name.
 /// </param>
 /// <param name='notificationHubName'>
 /// The notification hub name.
 /// </param>
 /// <param name='parameters'>
 /// Parameters supplied to patch a NotificationHub Resource.
 /// </param>
 public static NotificationHubResource Patch(this INotificationHubsOperations operations, string resourceGroupName, string namespaceName, string notificationHubName, NotificationHubPatchParameters parameters = default(NotificationHubPatchParameters))
 {
     return(operations.PatchAsync(resourceGroupName, namespaceName, notificationHubName, parameters).GetAwaiter().GetResult());
 }