/// <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());
 }
Esempio n. 2
0
 /// <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 &lt;code&gt;true&lt;/code&gt; to return only the most critical
 /// recommendations. The default is &lt;code&gt;false&lt;/code&gt;, 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());
 }