/// <summary> /// Retrieve the test job for the specified runbook. (see /// http://aka.ms/azureautomationsdk/testjoboperations for more /// information) /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Automation.ITestJobOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group /// </param> /// <param name='automationAccount'> /// Required. The automation account name. /// </param> /// <param name='runbookName'> /// Required. The runbook name. /// </param> /// <returns> /// The response model for the get test job operation. /// </returns> public static Task <TestJobGetResponse> GetAsync(this ITestJobOperations operations, string resourceGroupName, string automationAccount, string runbookName) { return(operations.GetAsync(resourceGroupName, automationAccount, runbookName, CancellationToken.None)); }
/// <summary> /// Retrieve the test job for the specified runbook. /// <see href="http://aka.ms/azureautomationsdk/testjoboperations" /> /// </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 TestJob Get(this ITestJobOperations operations, string resourceGroupName, string automationAccountName, string runbookName) { return(operations.GetAsync(resourceGroupName, automationAccountName, runbookName).GetAwaiter().GetResult()); }