#NEWLINE# def CreateDisk( self , disk_name , size_gb = 10 , image = None ) : #NEWLINE# #INDENT# "Creates persistent disk in the zone of this API.\n\n    Args:\n      disk_name: Name of the new persistent disk.\n      size_gb: Size of the new persistent disk in GB.\n      image: Machine image name for the new disk to base upon.\n          e.g. 'projects/debian-cloud/global/images/debian-7-wheezy-v20131014'\n    Returns:\n      Boolean to indicate whether the disk creation was successful.\n    " #NEWLINE# params = { #NEWLINE# #INDENT# 'kind' : 'compute#disk' , #NEWLINE# 'sizeGb' : ( '%d' % size_gb ) , #NEWLINE# 'name' : disk_name , #NEWLINE# #UNINDENT# } #NEWLINE# source_image = ( self . _ResourceUrlFromPath ( image ) if disk_name else None ) #NEWLINE# operation = self . GetApi ( ) . disks ( ) . insert ( project = self . _project , zone = self . _zone , body = params , sourceImage = source_image ) . execute ( ) #NEWLINE# return self . _ParseOperation ( operation , ( 'Disk creation %s' % disk_name ) )