/// <summary>
 /// Create a hybrid runbook worker.
 /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='hybridRunbookWorkerGroupName'>
 /// The hybrid runbook worker group name
 /// </param>
 /// <param name='hybridRunbookWorkerId'>
 /// The hybrid runbook worker id
 /// </param>
 /// <param name='hybridRunbookWorkerCreationParameters'>
 /// The create or update parameters for hybrid runbook worker.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <HybridRunbookWorker> CreateAsync(this IHybridRunbookWorkersOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, hybridRunbookWorkerCreationParameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <summary>
 /// Create a hybrid runbook worker.
 /// <see href="http://aka.ms/azureautomationsdk/hybridrunbookworkeroperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='hybridRunbookWorkerGroupName'>
 /// The hybrid runbook worker group name
 /// </param>
 /// <param name='hybridRunbookWorkerId'>
 /// The hybrid runbook worker id
 /// </param>
 /// <param name='hybridRunbookWorkerCreationParameters'>
 /// The create or update parameters for hybrid runbook worker.
 /// </param>
 public static HybridRunbookWorker Create(this IHybridRunbookWorkersOperations operations, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId, HybridRunbookWorkerCreateParameters hybridRunbookWorkerCreationParameters)
 {
     return(operations.CreateAsync(resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerId, hybridRunbookWorkerCreationParameters).GetAwaiter().GetResult());
 }