/// <summary>
 /// Retrieve the runbook identified by runbook name.  (see
 /// http://aka.ms/azureautomationsdk/runbookdraftoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.IRunbookDraftOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters supplied to the publish runbook operation.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static LongRunningOperationResultResponse BeginPublish(this IRunbookDraftOperations operations, string automationAccount, RunbookDraftPublishParameters parameters)
 {
     return Task.Factory.StartNew((object s) => 
     {
         return ((IRunbookDraftOperations)s).BeginPublishAsync(automationAccount, parameters);
     }
     , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
 }
 /// <summary>
 /// Retrieve the runbook identified by runbook name.  (see
 /// http://aka.ms/azureautomationsdk/runbookdraftoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.IRunbookDraftOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters supplied to the publish runbook operation.
 /// </param>
 /// <returns>
 /// A standard service response for long running operations.
 /// </returns>
 public static Task<LongRunningOperationResultResponse> BeginPublishAsync(this IRunbookDraftOperations operations, string automationAccount, RunbookDraftPublishParameters parameters)
 {
     return operations.BeginPublishAsync(automationAccount, parameters, CancellationToken.None);
 }