/// <summary>
 /// Regenerate Service Keys.
 /// </summary>
 /// <remarks>
 /// Regenerate and return the Service keys.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='subscriptionId'>
 /// The Azure Subscription ID.
 /// </param>
 /// <param name='resourceGroup'>
 /// The Name of the resource group in which the workspace is located.
 /// </param>
 /// <param name='workspace'>
 /// The name of the workspace.
 /// </param>
 /// <param name='id'>
 /// The Service Id.
 /// </param>
 /// <param name='request'>
 /// The payload that is used to regenerate keys.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <AuthKeys> RegenerateServiceKeysAsync(this IServicesOperations operations, System.Guid subscriptionId, string resourceGroup, string workspace, string id, RegenerateServiceKeysRequest request, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.RegenerateServiceKeysWithHttpMessagesAsync(subscriptionId, resourceGroup, workspace, id, request, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Regenerate Service Keys.
 /// </summary>
 /// <remarks>
 /// Regenerate and return the Service keys.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='subscriptionId'>
 /// The Azure Subscription ID.
 /// </param>
 /// <param name='resourceGroup'>
 /// The Name of the resource group in which the workspace is located.
 /// </param>
 /// <param name='workspace'>
 /// The name of the workspace.
 /// </param>
 /// <param name='id'>
 /// The Service Id.
 /// </param>
 /// <param name='request'>
 /// The payload that is used to regenerate keys.
 /// </param>
 public static AuthKeys RegenerateServiceKeys(this IServicesOperations operations, System.Guid subscriptionId, string resourceGroup, string workspace, string id, RegenerateServiceKeysRequest request)
 {
     return(operations.RegenerateServiceKeysAsync(subscriptionId, resourceGroup, workspace, id, request).GetAwaiter().GetResult());
 }