/// <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='siteName'> /// Name of the app. /// </param> /// <param name='name'> /// Name of the recommendation. /// </param> /// <param name='updateSeen'> /// Specify <code>true</code> to update the last-seen timestamp of /// the recommendation object. /// </param> /// <param name='recommendationId'> /// The GUID of the recommedation 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> GetRuleDetailsByWebAppAsync(this IRecommendationsOperations operations, string resourceGroupName, string siteName, string name, bool?updateSeen = default(bool?), string recommendationId = default(string), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.GetRuleDetailsByWebAppWithHttpMessagesAsync(resourceGroupName, siteName, name, updateSeen, recommendationId, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }