Esempio n. 1
0
 /// <summary>
 /// Delete the runbook by name.  (see
 /// http://aka.ms/azureautomationsdk/runbookoperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.WindowsAzure.Management.Automation.IRunbookOperations.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='runbookName'>
 /// Required. The runbook name.
 /// </param>
 /// <returns>
 /// A standard service response including an HTTP status code and
 /// request ID.
 /// </returns>
 public static Task <AzureOperationResponse> DeleteAsync(this IRunbookOperations operations, string automationAccount, string runbookName)
 {
     return(operations.DeleteAsync(automationAccount, runbookName, CancellationToken.None));
 }
Esempio n. 2
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();
 }