/// <summary> /// Publish the runbook identified by runbookId. (see /// http://msdn.microsoft.com/en-us/library/windowsazure/XXXXXXX.aspx /// for more information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IRunbookOperations. /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='parameters'> /// Required. The parameters supplied to the publish runbook operation. /// </param> /// <returns> /// The response model for the publish runbook operation. /// </returns> public static Task <RunbookPublishResponse> PublishAsync(this IRunbookOperations operations, string automationAccount, RunbookPublishParameters parameters) { return(operations.PublishAsync(automationAccount, parameters, CancellationToken.None)); }
/// <summary> /// Publish runbook draft. /// <see href="http://aka.ms/azureautomationsdk/runbookdraftoperations" /> /// </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='runbookName'> /// The parameters supplied to the publish runbook operation. /// </param> public static RunbookPublishHeaders Publish(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName) { return(operations.PublishAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult()); }