/// <summary> /// Create the webhook identified by webhook 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='parameters'> /// Required. The create or update parameters for webhook. /// </param> /// <returns> /// The response model for the create or update webhook operation. /// </returns> public static Task <WebhookCreateOrUpdateResponse> CreateOrUpdateAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccount, WebhookCreateOrUpdateParameters parameters) { return(operations.CreateOrUpdateAsync(resourceGroupName, automationAccount, parameters, CancellationToken.None)); }
/// <summary> /// Create the webhook identified by webhook 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> /// <param name='parameters'> /// The create or update parameters for webhook. /// </param> public static Webhook CreateOrUpdate(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string webhookName, WebhookCreateOrUpdateParameters parameters) { return(operations.CreateOrUpdateAsync(resourceGroupName, automationAccountName, webhookName, parameters).GetAwaiter().GetResult()); }