#NEWLINE# def AddRoute( self , route_name , next_hop_instance , network = 'default' , dest_range = '0.0.0.0/0' , tags = None , priority = 100 ) : #NEWLINE# #INDENT# 'Adds route to the specified instance.\n\n    Args:\n      route_name: Name of the new route.\n      next_hop_instance: Instance name of the next hop.\n      network: Network to which to add the route.\n      dest_range: Destination IP range for the new route.\n      tags: List of strings of instance tags.\n      priority: Priority of the route.\n    Returns:\n      Boolean to indicate whether the route creation was successful.\n    ' #NEWLINE# params = { #NEWLINE# #INDENT# 'kind' : 'compute#route' , #NEWLINE# 'name' : route_name , #NEWLINE# 'destRange' : dest_range , #NEWLINE# 'priority' : priority , #NEWLINE# 'network' : self . _ResourceUrl ( 'networks' , network , zoning = ResourceZoning . GLOBAL ) , #NEWLINE# 'nextHopInstance' : self . _ResourceUrl ( 'instances' , next_hop_instance ) , #NEWLINE# #UNINDENT# } #NEWLINE# if operation : #NEWLINE# #INDENT# params [ 'tags' ] = tags #NEWLINE# #UNINDENT# operation = self . GetApi ( ) . routes ( ) . insert ( project = self . _project , body = params ) . execute ( ) #NEWLINE# return self . _ParseOperation ( operation , ( 'Route creation: %s' % route_name ) )