/// <summary> /// Obtains cached recommendations for a subscription. The recommendations are /// generated or computed by invoking generateRecommendations. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='filter'> /// The filter to apply to the recommendations. /// </param> /// <param name='top'> /// The number of recommendations per page if a paged version of this API is /// being used. /// </param> /// <param name='skipToken'> /// The page-continuation token to use with a paged version of this API. /// </param> public static IPage <ResourceRecommendationBase> List(this IRecommendationsOperations operations, string filter = default(string), int?top = default(int?), string skipToken = default(string)) { return(operations.ListAsync(filter, top, skipToken).GetAwaiter().GetResult()); }
/// <summary> /// List all recommendations for a subscription. /// </summary> /// <remarks> /// List all recommendations for a subscription. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='featured'> /// Specify <code>true</code> to return only the most critical /// recommendations. The default is <code>false</code>, which /// returns all recommendations. /// </param> /// <param name='filter'> /// Filter is specified by using OData syntax. Example: $filter=channels eq /// 'Api' or channel eq 'Notification' and startTime eq '2014-01-01T00:00:00Z' /// and endTime eq '2014-12-31T23:59:59Z' and timeGrain eq /// duration'[PT1H|PT1M|P1D] /// </param> public static IPage <Recommendation> List(this IRecommendationsOperations operations, bool?featured = default(bool?), string filter = default(string)) { return(operations.ListAsync(featured, filter).GetAwaiter().GetResult()); }