/// <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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ResourceRecommendationBase> > ListAsync(this IRecommendationsOperations operations, string filter = default(string), int?top = default(int?), string skipToken = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(filter, top, skipToken, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
 /// <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>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <RecommendationInner> > ListAsync(this IRecommendationsOperations operations, bool?featured = default(bool?), string filter = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListWithHttpMessagesAsync(featured, filter, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }