#NEWLINE# def delete( self , resource_group_name , route_table_name , route_name , custom_headers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } , raw = False , **operation_config ) : #NEWLINE# #INDENT# '\n        The delete route operation deletes the specified route from a route\n        table.\n\n        :param resource_group_name: The name of the resource group.\n        :type resource_group_name: str\n        :param route_table_name: The name of the route table.\n        :type route_table_name: str\n        :param route_name: The name of the route.\n        :type route_name: 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        :rtype:\n         :class:`AzureOperationPoller<msrestazure.azure_operation.AzureOperationPoller>`\n         instance that returns None\n        :rtype: :class:`ClientRawResponse<msrest.pipeline.ClientRawResponse>`\n         if raw=true\n        ' #NEWLINE# url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/routeTables/{routeTableName}/routes/{routeName}' #NEWLINE# path_format_arguments = { #NEWLINE# #INDENT# 'resourceGroupName' : self . _serialize . url ( 'resource_group_name' , resource_group_name , 'str' ) , #NEWLINE# 'routeTableName' : self . _serialize . url ( 'route_table_name' , route_table_name , 'str' ) , #NEWLINE# 'routeName' : self . _serialize . url ( 'route_name' , route_name , 'str' ) , #NEWLINE# '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# 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# def long_running_send( ) : #NEWLINE# #INDENT# request = self . _client . delete ( url , query_parameters ) #NEWLINE# return self . _client . send ( request , header_parameters , ** operation_config ) #NEWLINE# #UNINDENT# def get_long_running_status( status_link , headers = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } ) : #NEWLINE# #INDENT# request = self . _client . get ( status_link ) #NEWLINE# request . headers . update ( headers ) #NEWLINE# return self . _client . send ( request , header_parameters , ** operation_config ) #NEWLINE# #UNINDENT# def get_long_running_output( response ) : #NEWLINE# #INDENT# if ( response . status_code not in [ 202 , 200 , 204 ] ) : #NEWLINE# #INDENT# exp = CloudError ( response ) #NEWLINE# exp . request_id = response . headers . get ( 'x-ms-request-id' ) #NEWLINE# raise exp #NEWLINE# #UNINDENT# if raw : #NEWLINE# #INDENT# client_raw_response = ClientRawResponse ( None , response ) #NEWLINE# return client_raw_response #NEWLINE# #UNINDENT# #UNINDENT# if raw : #NEWLINE# #INDENT# response = long_running_send ( ) #NEWLINE# return get_long_running_output ( response ) #NEWLINE# #UNINDENT# long_running_operation_timeout = operation_config . get ( 'long_running_operation_timeout' , self . config . long_running_operation_timeout ) #NEWLINE# return AzureOperationPoller ( long_running_send , get_long_running_output , get_long_running_status , long_running_operation_timeout )