#NEWLINE# def list( self , filter = None , top = None , skip = None , expand = None , select = None , orderby = None , count = None , search = None , format = None , custom_headers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , raw = False , **operation_config ) : #NEWLINE# #INDENT# '\n        Gets the first page of Data Lake Analytics accounts, if any, within\n        the current subscription. This includes a link to the next page, if\n        any.\n\n        :param filter: OData filter. Optional.\n        :type filter: str\n        :param top: The number of items to return. Optional.\n        :type top: int\n        :param skip: The number of items to skip over before returning\n         elements. Optional.\n        :type skip: int\n        :param expand: OData expansion. Expand related resources in line with\n         the retrieved resources, e.g. Categories/$expand=Products would\n         expand Product data in line with each Category entry. Optional.\n        :type expand: str\n        :param select: OData Select statement. Limits the properties on each\n         entry to just those requested, e.g.\n         Categories?$select=CategoryName,Description. Optional.\n        :type select: str\n        :param orderby: OrderBy clause. One or more comma-separated\n         expressions with an optional "asc" (the default) or "desc" depending\n         on the order you\'d like the values sorted, e.g.\n         Categories?$orderby=CategoryName desc. Optional.\n        :type orderby: str\n        :param count: The Boolean value of true or false to request a count\n         of the matching resources included with the resources in the\n         response, e.g. Categories?$count=true. Optional.\n        :type count: bool\n        :param search: A free form search. A free-text search expression to\n         match for whether a particular entry should be included in the feed,\n         e.g. Categories?$search=blue OR green. Optional.\n        :type search: str\n        :param format: The desired return format. Return the response in\n         particular formatxii without access to request headers for standard\n         content-type negotiation (e.g Orders?$format=json). Optional.\n        :type format: 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: :class:`DataLakeAnalyticsAccountPaged\n         <azure.mgmt.datalake.analytics.account.models.DataLakeAnalyticsAccountPaged>`\n        ' #NEWLINE# def internal_paging( next_link = None , raw = False ) : #NEWLINE# #INDENT# if ( not next_link ) : #NEWLINE# #INDENT# url = '/subscriptions/{subscriptionId}/providers/Microsoft.DataLakeAnalytics/accounts' #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 ( filter is not None ) : #NEWLINE# #INDENT# query_parameters [ '$filter' ] = self . _serialize . query ( 'filter' , filter , 'str' ) #NEWLINE# #UNINDENT# if ( top is not None ) : #NEWLINE# #INDENT# query_parameters [ '$top' ] = self . _serialize . query ( 'top' , top , 'int' ) #NEWLINE# #UNINDENT# if ( skip is not None ) : #NEWLINE# #INDENT# query_parameters [ '$skip' ] = self . _serialize . query ( 'skip' , skip , 'int' ) #NEWLINE# #UNINDENT# if ( expand is not None ) : #NEWLINE# #INDENT# query_parameters [ '$expand' ] = self . _serialize . query ( 'expand' , expand , 'str' ) #NEWLINE# #UNINDENT# if ( select is not None ) : #NEWLINE# #INDENT# query_parameters [ '$select' ] = self . _serialize . query ( 'select' , select , 'str' ) #NEWLINE# #UNINDENT# if ( orderby is not None ) : #NEWLINE# #INDENT# query_parameters [ '$orderby' ] = self . _serialize . query ( 'orderby' , orderby , 'str' ) #NEWLINE# #UNINDENT# if ( count is not None ) : #NEWLINE# #INDENT# query_parameters [ '$count' ] = self . _serialize . query ( 'count' , count , 'bool' ) #NEWLINE# #UNINDENT# if ( search is not None ) : #NEWLINE# #INDENT# query_parameters [ '$search' ] = self . _serialize . query ( 'search' , search , 'str' ) #NEWLINE# #UNINDENT# if ( format is not None ) : #NEWLINE# #INDENT# query_parameters [ '$format' ] = self . _serialize . query ( 'format' , format , 'str' ) #NEWLINE# #UNINDENT# query_parameters [ 'api-version' ] = self . _serialize . query ( 'self.config.api_version' , self . config . api_version , 'str' ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# url = next_link #NEWLINE# query_parameters = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# 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 , header_parameters , ** 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# return response #NEWLINE# #UNINDENT# deserialized = models . DataLakeAnalyticsAccountPaged ( internal_paging , self . _deserialize . dependencies ) #NEWLINE# if raw : #NEWLINE# #INDENT# header_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# client_raw_response = models . DataLakeAnalyticsAccountPaged ( internal_paging , expand . _deserialize . dependencies , header_dict ) #NEWLINE# return client_raw_response #NEWLINE# #UNINDENT# return deserialized