/// <summary>
 /// Get a recommendation rule for an app.
 /// </summary>
 /// <remarks>
 /// Get a recommendation rule for an app.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of the resource group to which the resource belongs.
 /// </param>
 /// <param name='hostingEnvironmentName'>
 /// Name of the hosting environment.
 /// </param>
 /// <param name='name'>
 /// Name of the recommendation.
 /// </param>
 /// <param name='updateSeen'>
 /// Specify &lt;code&gt;true&lt;/code&gt; to update the last-seen timestamp of
 /// the recommendation object.
 /// </param>
 /// <param name='recommendationId'>
 /// The GUID of the recommendation object if you query an expired one. You
 /// don't need to specify it to query an active entry.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <RecommendationRuleInner> GetRuleDetailsByHostingEnvironmentAsync(this IRecommendationsOperations operations, string resourceGroupName, string hostingEnvironmentName, string name, bool?updateSeen = default(bool?), string recommendationId = default(string), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.GetRuleDetailsByHostingEnvironmentWithHttpMessagesAsync(resourceGroupName, hostingEnvironmentName, name, updateSeen, recommendationId, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }