/// <summary>
 /// Update the runbook definition identified by runbookVersionId.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/XXXXX.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IRunbookVersionOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters supplied to the update runbook version's
 /// runbook definition operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <OperationResponse> UpdateRunbookDefinitionAsync(this IRunbookVersionOperations operations, string automationAccount, RunbookVersionUpdateRunbookDefinitionParameters parameters)
 {
     return(operations.UpdateRunbookDefinitionAsync(automationAccount, parameters, CancellationToken.None));
 }
 /// <summary>
 /// Update the runbook definition identified by runbookVersionId.  (see
 /// http://msdn.microsoft.com/en-us/library/windowsazure/XXXXX.aspx
 /// for more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IRunbookVersionOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters supplied to the update runbook version's
 /// runbook definition operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static OperationResponse UpdateRunbookDefinition(this IRunbookVersionOperations operations, string automationAccount, RunbookVersionUpdateRunbookDefinitionParameters parameters)
 {
     return(Task.Factory.StartNew((object s) =>
     {
         return ((IRunbookVersionOperations)s).UpdateRunbookDefinitionAsync(automationAccount, parameters);
     }
                                  , operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }