import { PagedAsyncIterableIterator } from "@azure/core-paging" ; import { Recommendations } from "../operationsInterfaces" ; import * as coreClient from "@azure/core-client" ; import * as Mappers from "../models/mappers" ; import * as Parameters from "../models/parameters" ; import { WebSiteManagementClient } from "../webSiteManagementClient" ; import { Recommendation , RecommendationsListNextOptionalParams , RecommendationsListOptionalParams , RecommendationsListHistoryForHostingEnvironmentNextOptionalParams , RecommendationsListHistoryForHostingEnvironmentOptionalParams , RecommendationsListRecommendedRulesForHostingEnvironmentNextOptionalParams , RecommendationsListRecommendedRulesForHostingEnvironmentOptionalParams , RecommendationsListHistoryForWebAppNextOptionalParams , RecommendationsListHistoryForWebAppOptionalParams , RecommendationsListRecommendedRulesForWebAppNextOptionalParams , RecommendationsListRecommendedRulesForWebAppOptionalParams , RecommendationsListResponse , RecommendationsResetAllFiltersOptionalParams , RecommendationsDisableRecommendationForSubscriptionOptionalParams , RecommendationsListHistoryForHostingEnvironmentResponse , RecommendationsListRecommendedRulesForHostingEnvironmentResponse , RecommendationsDisableAllForHostingEnvironmentOptionalParams , RecommendationsResetAllFiltersForHostingEnvironmentOptionalParams , RecommendationsGetRuleDetailsByHostingEnvironmentOptionalParams , RecommendationsGetRuleDetailsByHostingEnvironmentResponse , RecommendationsDisableRecommendationForHostingEnvironmentOptionalParams , RecommendationsListHistoryForWebAppResponse , RecommendationsListRecommendedRulesForWebAppResponse , RecommendationsDisableAllForWebAppOptionalParams , RecommendationsResetAllFiltersForWebAppOptionalParams , RecommendationsGetRuleDetailsByWebAppOptionalParams , RecommendationsGetRuleDetailsByWebAppResponse , RecommendationsDisableRecommendationForSiteOptionalParams , RecommendationsListNextResponse , RecommendationsListHistoryForHostingEnvironmentNextResponse , RecommendationsListRecommendedRulesForHostingEnvironmentNextResponse , RecommendationsListHistoryForWebAppNextResponse , RecommendationsListRecommendedRulesForWebAppNextResponse } from "../models" ; /** Class containing Recommendations operations. */ export class RecommendationsImpl implements Recommendations { private readonly client : WebSiteManagementClient ; param client constructor ( client ) { this . client = client ; } param options public list ( options ? ) { const iter = this . listPagingAll ( options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listPagingPage ( options ) ; } } ; } private async * listPagingPage ( options ? ) { let result = await this . _list ( options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listNext ( continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listPagingAll ( options ? ) { for await ( const page of this . listPagingPage ( options ) ) { yield * page ; } } param resourceGroupName param hostingEnvironmentName param options public listHistoryForHostingEnvironment ( resourceGroupName , hostingEnvironmentName , options ? ) { const iter = this . listHistoryForHostingEnvironmentPagingAll ( resourceGroupName , hostingEnvironmentName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listHistoryForHostingEnvironmentPagingPage ( resourceGroupName , hostingEnvironmentName , options ) ; } } ; } private async * listHistoryForHostingEnvironmentPagingPage ( resourceGroupName , hostingEnvironmentName , options ? ) { let result = await this . _listHistoryForHostingEnvironment ( resourceGroupName , hostingEnvironmentName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listHistoryForHostingEnvironmentNext ( resourceGroupName , hostingEnvironmentName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listHistoryForHostingEnvironmentPagingAll ( resourceGroupName , hostingEnvironmentName , options ? ) { for await ( const page of this . listHistoryForHostingEnvironmentPagingPage ( resourceGroupName , hostingEnvironmentName , options ) ) { yield * page ; } } param resourceGroupName param hostingEnvironmentName param options public listRecommendedRulesForHostingEnvironment ( resourceGroupName , hostingEnvironmentName , options ? ) { const iter = this . listRecommendedRulesForHostingEnvironmentPagingAll ( resourceGroupName , hostingEnvironmentName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listRecommendedRulesForHostingEnvironmentPagingPage ( resourceGroupName , hostingEnvironmentName , options ) ; } } ; } private async * listRecommendedRulesForHostingEnvironmentPagingPage ( resourceGroupName , hostingEnvironmentName , options ? ) { let result = await this . _listRecommendedRulesForHostingEnvironment ( resourceGroupName , hostingEnvironmentName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listRecommendedRulesForHostingEnvironmentNext ( resourceGroupName , hostingEnvironmentName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listRecommendedRulesForHostingEnvironmentPagingAll ( resourceGroupName , hostingEnvironmentName , options ? ) { for await ( const page of this . listRecommendedRulesForHostingEnvironmentPagingPage ( resourceGroupName , hostingEnvironmentName , options ) ) { yield * page ; } } param resourceGroupName param siteName param options public listHistoryForWebApp ( resourceGroupName , siteName , options ? ) { const iter = this . listHistoryForWebAppPagingAll ( resourceGroupName , siteName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listHistoryForWebAppPagingPage ( resourceGroupName , siteName , options ) ; } } ; } private async * listHistoryForWebAppPagingPage ( resourceGroupName , siteName , options ? ) { let result = await this . _listHistoryForWebApp ( resourceGroupName , siteName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listHistoryForWebAppNext ( resourceGroupName , siteName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listHistoryForWebAppPagingAll ( resourceGroupName , siteName , options ? ) { for await ( const page of this . listHistoryForWebAppPagingPage ( resourceGroupName , siteName , options ) ) { yield * page ; } } param resourceGroupName param siteName param options public listRecommendedRulesForWebApp ( resourceGroupName , siteName , options ? ) { const iter = this . listRecommendedRulesForWebAppPagingAll ( resourceGroupName , siteName , options ) ; return { next ( ) { return iter . next ( ) ; } , [ Symbol . asyncIterator ] ( ) { return this ; } , byPage : ( ) => { return this . listRecommendedRulesForWebAppPagingPage ( resourceGroupName , siteName , options ) ; } } ; } private async * listRecommendedRulesForWebAppPagingPage ( resourceGroupName , siteName , options ? ) { let result = await this . _listRecommendedRulesForWebApp ( resourceGroupName , siteName , options ) ; yield result . value || [ ] ; let continuationToken = result . nextLink ; while ( continuationToken ) { result = await this . _listRecommendedRulesForWebAppNext ( resourceGroupName , siteName , continuationToken , options ) ; continuationToken = result . nextLink ; yield result . value || [ ] ; } } private async * listRecommendedRulesForWebAppPagingAll ( resourceGroupName , siteName , options ? ) { for await ( const page of this . listRecommendedRulesForWebAppPagingPage ( resourceGroupName , siteName , options ) ) { yield * page ; } } param options private _list ( options ? ) { return this . client . sendOperationRequest ( { options } , listOperationSpec ) ; } param options resetAllFilters ( options ? ) { return this . client . sendOperationRequest ( { options } , resetAllFiltersOperationSpec ) ; } param name param options disableRecommendationForSubscription ( name , options ? ) { return this . client . sendOperationRequest ( { name , options } , disableRecommendationForSubscriptionOperationSpec ) ; } param resourceGroupName param hostingEnvironmentName param options private _listHistoryForHostingEnvironment ( resourceGroupName , hostingEnvironmentName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , hostingEnvironmentName , options } , listHistoryForHostingEnvironmentOperationSpec ) ; } param resourceGroupName param hostingEnvironmentName param options private _listRecommendedRulesForHostingEnvironment ( resourceGroupName , hostingEnvironmentName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , hostingEnvironmentName , options } , listRecommendedRulesForHostingEnvironmentOperationSpec ) ; } param resourceGroupName param environmentName param hostingEnvironmentName param options disableAllForHostingEnvironment ( resourceGroupName , environmentName , hostingEnvironmentName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , environmentName , hostingEnvironmentName , options } , disableAllForHostingEnvironmentOperationSpec ) ; } param resourceGroupName param environmentName param hostingEnvironmentName param options resetAllFiltersForHostingEnvironment ( resourceGroupName , environmentName , hostingEnvironmentName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , environmentName , hostingEnvironmentName , options } , resetAllFiltersForHostingEnvironmentOperationSpec ) ; } param resourceGroupName param hostingEnvironmentName param name param options getRuleDetailsByHostingEnvironment ( resourceGroupName , hostingEnvironmentName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , hostingEnvironmentName , name , options } , getRuleDetailsByHostingEnvironmentOperationSpec ) ; } param resourceGroupName param environmentName param name param hostingEnvironmentName param options disableRecommendationForHostingEnvironment ( resourceGroupName , environmentName , name , hostingEnvironmentName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , environmentName , name , hostingEnvironmentName , options } , disableRecommendationForHostingEnvironmentOperationSpec ) ; } param resourceGroupName param siteName param options private _listHistoryForWebApp ( resourceGroupName , siteName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , siteName , options } , listHistoryForWebAppOperationSpec ) ; } param resourceGroupName param siteName param options private _listRecommendedRulesForWebApp ( resourceGroupName , siteName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , siteName , options } , listRecommendedRulesForWebAppOperationSpec ) ; } param resourceGroupName param siteName param options disableAllForWebApp ( resourceGroupName , siteName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , siteName , options } , disableAllForWebAppOperationSpec ) ; } param resourceGroupName param siteName param options resetAllFiltersForWebApp ( resourceGroupName , siteName , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , siteName , options } , resetAllFiltersForWebAppOperationSpec ) ; } param resourceGroupName param siteName param name param options getRuleDetailsByWebApp ( resourceGroupName , siteName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , siteName , name , options } , getRuleDetailsByWebAppOperationSpec ) ; } param resourceGroupName param siteName param name param options disableRecommendationForSite ( resourceGroupName , siteName , name , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , siteName , name , options } , disableRecommendationForSiteOperationSpec ) ; } param nextLink param options private _listNext ( nextLink , options ? ) { return this . client . sendOperationRequest ( { nextLink , options } , listNextOperationSpec ) ; } param resourceGroupName param hostingEnvironmentName param nextLink param options private _listHistoryForHostingEnvironmentNext ( resourceGroupName , hostingEnvironmentName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , hostingEnvironmentName , nextLink , options } , listHistoryForHostingEnvironmentNextOperationSpec ) ; } param resourceGroupName param hostingEnvironmentName param nextLink param options private _listRecommendedRulesForHostingEnvironmentNext ( resourceGroupName , hostingEnvironmentName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , hostingEnvironmentName , nextLink , options } , listRecommendedRulesForHostingEnvironmentNextOperationSpec ) ; } param resourceGroupName param siteName param nextLink param options private _listHistoryForWebAppNext ( resourceGroupName , siteName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , siteName , nextLink , options } , listHistoryForWebAppNextOperationSpec ) ; } param resourceGroupName param siteName param nextLink param options private _listRecommendedRulesForWebAppNext ( resourceGroupName , siteName , nextLink , options ? ) { return this . client . sendOperationRequest ( { resourceGroupName , siteName , nextLink , options } , listRecommendedRulesForWebAppNextOperationSpec ) ; } } const serializer = coreClient . createSerializer ( Mappers , false ) ; const listOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . RecommendationCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . featured ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const resetAllFiltersOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/reset" , httpMethod : "POST" , responses : { 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId ] , headerParameters : [ Parameters . accept ] , serializer } ; const disableRecommendationForSubscriptionOperationSpec = { path : "/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations/{name}/disable" , httpMethod : "POST" , responses : { 200 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . name ] , headerParameters : [ Parameters . accept ] , serializer } ; const listHistoryForHostingEnvironmentOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendationHistory" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . RecommendationCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . expiredOnly ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . hostingEnvironmentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listRecommendedRulesForHostingEnvironmentOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . RecommendationCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . featured ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . hostingEnvironmentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const disableAllForHostingEnvironmentOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/disable" , httpMethod : "POST" , responses : { 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion , Parameters . environmentName ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . hostingEnvironmentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const resetAllFiltersForHostingEnvironmentOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/reset" , httpMethod : "POST" , responses : { 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion , Parameters . environmentName ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . hostingEnvironmentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const getRuleDetailsByHostingEnvironmentOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . RecommendationRule } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion , Parameters . updateSeen , Parameters . recommendationId ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . hostingEnvironmentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const disableRecommendationForHostingEnvironmentOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/hostingEnvironments/{hostingEnvironmentName}/recommendations/{name}/disable" , httpMethod : "POST" , responses : { 200 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion , Parameters . environmentName ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . hostingEnvironmentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listHistoryForWebAppOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendationHistory" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . RecommendationCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . expiredOnly ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . siteName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listRecommendedRulesForWebAppOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . RecommendationCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . featured ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . siteName ] , headerParameters : [ Parameters . accept ] , serializer } ; const disableAllForWebAppOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/disable" , httpMethod : "POST" , responses : { 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . siteName ] , headerParameters : [ Parameters . accept ] , serializer } ; const resetAllFiltersForWebAppOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/reset" , httpMethod : "POST" , responses : { 204 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . siteName ] , headerParameters : [ Parameters . accept ] , serializer } ; const getRuleDetailsByWebAppOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . RecommendationRule } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion , Parameters . updateSeen , Parameters . recommendationId ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . siteName ] , headerParameters : [ Parameters . accept ] , serializer } ; const disableRecommendationForSiteOperationSpec = { path : "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendations/{name}/disable" , httpMethod : "POST" , responses : { 200 : { } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . name , Parameters . siteName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . RecommendationCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . featured ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . nextLink ] , headerParameters : [ Parameters . accept ] , serializer } ; const listHistoryForHostingEnvironmentNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . RecommendationCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . expiredOnly ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . nextLink , Parameters . hostingEnvironmentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listRecommendedRulesForHostingEnvironmentNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . RecommendationCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . featured ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . nextLink , Parameters . hostingEnvironmentName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listHistoryForWebAppNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . RecommendationCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . expiredOnly ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . nextLink , Parameters . siteName ] , headerParameters : [ Parameters . accept ] , serializer } ; const listRecommendedRulesForWebAppNextOperationSpec = { path : "{nextLink}" , httpMethod : "GET" , responses : { 200 : { bodyMapper : Mappers . RecommendationCollection } , default : { bodyMapper : Mappers . DefaultErrorResponse } } , queryParameters : [ Parameters . apiVersion , Parameters . filter , Parameters . featured ] , urlParameters : [ Parameters . $host , Parameters . subscriptionId , Parameters . resourceGroupName , Parameters . nextLink , Parameters . siteName ] , headerParameters : [ Parameters . accept ] , serializer } ;