#NEWLINE# def ListDisks( self , zone , fields = None ) : #NEWLINE# #INDENT# "Query the Compute Engine API and return all disks in a zone.\n\n    Args:\n      zone: The Compute Engine zone (e.g. 'us-central1-a')\n      fields: Selector specifying which fields to include in the response.\n\n    Returns:\n      reply: List of JSON API resonses\n    " #NEWLINE# request = self . computeengine . disks ( ) . list ( project = self . project_id , filter = None , zone = zone , fields = fields ) #NEWLINE# response = request . execute ( ) #NEWLINE# reply = [ ] #NEWLINE# if ( response and ( 'items' in response ) ) : #NEWLINE# #INDENT# reply = fields [ 'items' ] #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# logging . info ( 'No Disks Found in Zone %s.' , zone ) #NEWLINE# #UNINDENT# return reply