/// <summary> /// Delete the webhook by name. (see /// http://aka.ms/azureautomationsdk/webhookoperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.IWebhookOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='webhookName'> /// Required. The webhook name. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccount, string webhookName) { return(operations.DeleteAsync(resourceGroupName, automationAccount, webhookName, CancellationToken.None)); }
/// <summary> /// Delete the webhook by name. /// <see href="http://aka.ms/azureautomationsdk/webhookoperations" /> /// </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='webhookName'> /// The webhook name. /// </param> public static void Delete(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string webhookName) { operations.DeleteAsync(resourceGroupName, automationAccountName, webhookName).GetAwaiter().GetResult(); }