/// <summary> /// Get a recommendation action advisor. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> /// <param name='advisorName'> /// The advisor name for recommendation action. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <Advisor> GetAsync(this IAdvisorsOperations operations, string resourceGroupName, string serverName, string advisorName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetWithHttpMessagesAsync(resourceGroupName, serverName, advisorName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List recommendation action advisors. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <Advisor> > ListByServerNextAsync(this IAdvisorsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListByServerNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// List recommendation action advisors. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> public static IPage <Advisor> ListByServer(this IAdvisorsOperations operations, string resourceGroupName, string serverName) { return(operations.ListByServerAsync(resourceGroupName, serverName).GetAwaiter().GetResult()); }
/// <summary> /// Get a recommendation action advisor. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='serverName'> /// The name of the server. /// </param> /// <param name='advisorName'> /// The advisor name for recommendation action. /// </param> public static Advisor Get(this IAdvisorsOperations operations, string resourceGroupName, string serverName, string advisorName) { return(operations.GetAsync(resourceGroupName, serverName, advisorName).GetAwaiter().GetResult()); }
/// <summary> /// List recommendation action advisors. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='nextPageLink'> /// The NextLink from the previous successful call to List operation. /// </param> public static IPage <Advisor> ListByServerNext(this IAdvisorsOperations operations, string nextPageLink) { return(operations.ListByServerNextAsync(nextPageLink).GetAwaiter().GetResult()); }