#NEWLINE# def get_recommendation_by_subscription( self , featured = None , filter = None , custom_headers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , raw = False , **operation_config ) : #NEWLINE# #INDENT# "\n        Gets a list of recommendations associated with the specified\n        subscription.\n\n        :param featured: If set, this API returns only the most critical\n         recommendation among the others. Otherwise this API returns all\n         recommendations available\n        :type featured: bool\n        :param filter: Return only channels specified in the filter. Filter\n         is specified by using OData syntax. Example: $filter=channels eq\n         'Api' or channel eq 'Notification'\n        :type filter: str\n        :param dict custom_headers: headers that will be added to the request\n        :param bool raw: returns the direct response alongside the\n         deserialized response\n        :param operation_config: :ref:`Operation configuration\n         overrides<msrest:optionsforoperations>`.\n        :rtype: list of :class:`Recommendation\n         <azure.mgmt.web.models.Recommendation>`\n        :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`\n         if raw=true\n        " #NEWLINE# url = '/subscriptions/{subscriptionId}/providers/Microsoft.Web/recommendations' #NEWLINE# path_format_arguments = { #NEWLINE# #INDENT# 'subscriptionId' : self . _serialize . url ( 'self.config.subscription_id' , self . config . subscription_id , 'str' ) , #NEWLINE# #UNINDENT# } #NEWLINE# url = self . _client . format_url ( url , ** path_format_arguments ) #NEWLINE# query_parameters = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# if ( featured is not None ) : #NEWLINE# #INDENT# query_parameters [ 'featured' ] = self . _serialize . query ( 'featured' , featured , 'bool' ) #NEWLINE# #UNINDENT# if ( filter is not None ) : #NEWLINE# #INDENT# query_parameters [ '$filter' ] = self . _serialize . query ( 'filter' , filter , 'str' ) #NEWLINE# #UNINDENT# query_parameters [ 'api-version' ] = self . _serialize . query ( 'self.config.api_version' , self . config . api_version , 'str' ) #NEWLINE# header_parameters = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# header_parameters [ 'Content-Type' ] = 'application/json; charset=utf-8' #NEWLINE# if self . config . generate_client_request_id : #NEWLINE# #INDENT# header_parameters [ 'x-ms-client-request-id' ] = str ( uuid . uuid1 ( ) ) #NEWLINE# #UNINDENT# if custom_headers : #NEWLINE# #INDENT# header_parameters . update ( custom_headers ) #NEWLINE# #UNINDENT# if ( self . config . accept_language is not None ) : #NEWLINE# #INDENT# header_parameters [ 'accept-language' ] = self . _serialize . header ( 'self.config.accept_language' , self . config . accept_language , 'str' ) #NEWLINE# #UNINDENT# request = self . _client . get ( url , query_parameters ) #NEWLINE# response = self . _client . send ( request , self , ** operation_config ) #NEWLINE# if ( response . status_code not in [ 200 ] ) : #NEWLINE# #INDENT# exp = CloudError ( response ) #NEWLINE# exp . request_id = response . headers . get ( 'x-ms-request-id' ) #NEWLINE# raise exp #NEWLINE# #UNINDENT# deserialized = None #NEWLINE# if ( response . status_code == 200 ) : #NEWLINE# #INDENT# deserialized = self . _deserialize ( '[Recommendation]' , response ) #NEWLINE# #UNINDENT# if raw : #NEWLINE# #INDENT# client_raw_response = ClientRawResponse ( deserialized , response ) #NEWLINE# return client_raw_response #NEWLINE# #UNINDENT# return deserialized