/// <summary> /// Retrieve 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='webhookName'> /// Required. The webhook name. /// </param> /// <returns> /// The response model for the get webhook operation. /// </returns> public static Task <WebhookGetResponse> GetAsync(this IWebhookOperations operations, string resourceGroupName, string automationAccount, string webhookName) { return(operations.GetAsync(resourceGroupName, automationAccount, webhookName, CancellationToken.None)); }
/// <summary> /// Retrieve 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> public static Webhook Get(this IWebhookOperations operations, string resourceGroupName, string automationAccountName, string webhookName) { return(operations.GetAsync(resourceGroupName, automationAccountName, webhookName).GetAwaiter().GetResult()); }