/// <summary>
 /// Delete the runbook schedule link.  (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 delete runbook schedule
 /// link operation.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <OperationResponse> DeleteScheduleLinkAsync(this IRunbookOperations operations, string automationAccount, RunbookDeleteScheduleLinkParameters parameters)
 {
     return(operations.DeleteScheduleLinkAsync(automationAccount, parameters, CancellationToken.None));
 }
 /// <summary>
 /// Edit 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='runbookId'>
 /// Required. The runbook id.
 /// </param>
 /// <returns>
 /// The response model for the edit runbook operation.
 /// </returns>
 public static Task <RunbookEditResponse> EditAsync(this IRunbookOperations operations, string automationAccount, string runbookId)
 {
     return(operations.EditAsync(automationAccount, runbookId, CancellationToken.None));
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Retrieve a list of runbooks.
 /// <see href="http://aka.ms/azureautomationsdk/runbookoperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <Runbook> ListByAutomationAccountNext(this IRunbookOperations operations, string nextPageLink)
 {
     return(operations.ListByAutomationAccountNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Ejemplo n.º 4
0
 /// <summary>
 /// Retrieve the content of runbook identified by runbook name.
 /// <see href="http://aka.ms/azureautomationsdk/runbookoperations" />
 /// </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 runbook name.
 /// </param>
 public static Stream GetContent(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName)
 {
     return(operations.GetContentAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult());
 }
Ejemplo n.º 5
0
 /// <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());
 }
Ejemplo n.º 6
0
 /// <summary>
 /// Retrieve a list of runbooks.
 /// <see href="http://aka.ms/azureautomationsdk/runbookoperations" />
 /// </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>
 public static IPage <Runbook> ListByAutomationAccount(this IRunbookOperations operations, string resourceGroupName, string automationAccountName)
 {
     return(operations.ListByAutomationAccountAsync(resourceGroupName, automationAccountName).GetAwaiter().GetResult());
 }
Ejemplo n.º 7
0
 /// <summary>
 /// Delete the runbook by name.
 /// <see href="http://aka.ms/azureautomationsdk/runbookoperations" />
 /// </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 runbook name.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task DeleteAsync(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default(CancellationToken))
 {
     (await operations.DeleteWithHttpMessagesAsync(resourceGroupName, automationAccountName, runbookName, null, cancellationToken).ConfigureAwait(false)).Dispose();
 }
Ejemplo n.º 8
0
 /// <summary>
 /// Delete the runbook by name.
 /// <see href="http://aka.ms/azureautomationsdk/runbookoperations" />
 /// </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 runbook name.
 /// </param>
 public static void Delete(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName)
 {
     operations.DeleteAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult();
 }
Ejemplo n.º 9
0
 /// <summary>
 /// Update the runbook identified by runbook name.
 /// <see href="http://aka.ms/azureautomationsdk/runbookoperations" />
 /// </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 runbook name.
 /// </param>
 /// <param name='parameters'>
 /// The update parameters for runbook.
 /// </param>
 public static Runbook Update(this IRunbookOperations operations, string resourceGroupName, string automationAccountName, string runbookName, RunbookUpdateParameters parameters)
 {
     return(operations.UpdateAsync(resourceGroupName, automationAccountName, runbookName, parameters).GetAwaiter().GetResult());
 }