#NEWLINE# def list_all( self , custom_headers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , raw = False , **operation_config ) : #NEWLINE# #INDENT# '\n        The list RouteTables returns all route tables in a subscription\n\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:`RouteTablePaged\n         <azure.mgmt.network.models.RouteTablePaged>`\n        ' #NEWLINE# def internal_paging( next_link = None , raw = False ) : #NEWLINE# #INDENT# if ( not next_link ) : #NEWLINE# #INDENT# url = '/subscriptions/{subscriptionId}/providers/Microsoft.Network/routeTables' #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# 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 . RouteTablePaged ( internal_paging , self . _deserialize . dependencies ) #NEWLINE# if raw : #NEWLINE# #INDENT# header_dict = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# client_raw_response = models . RouteTablePaged ( internal_paging , self . _deserialize . dependencies , header_dict ) #NEWLINE# return client_raw_response #NEWLINE# #UNINDENT# return deserialized