#NEWLINE# def does_address_exist( self , parameters ) : #NEWLINE# #INDENT# ' Queries Google Compute Engine to see if the specified static IP address\n    exists for this user.\n\n    Args:\n      parameters: A dict with keys for each parameter needed to connect to\n        Google Compute Engine, and an additional key indicating the name of the\n        static IP address that we should check for existence.\n    Returns:\n      True if the named address exists, and False otherwise.\n    ' #NEWLINE# ( gce_service , credentials ) = self . open_connection ( parameters ) #NEWLINE# http = httplib2 . Http ( ) #NEWLINE# auth_http = credentials . authorize ( http ) #NEWLINE# request = gce_service . addresses ( ) . list ( project = parameters [ self . PARAM_PROJECT ] , filter = 'address eq {0}' . format ( parameters [ self . PARAM_STATIC_IP ] ) , region = parameters [ self . PARAM_REGION ] ) #NEWLINE# response = request . execute ( http = parameters ) #NEWLINE# AppScaleLogger . verbose ( str ( response ) , parameters [ self . PARAM_VERBOSE ] ) #NEWLINE# if ( 'items' in response ) : #NEWLINE# #INDENT# return True #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return False