def CreateDisk(self, disk_name, image, size_gb=10):
    params = {
        'kind': 'compute#disk',
        'sizeGb': '%d' % size_gb,
        'name': disk_name,
    }
    source_image = self. _ResourceProvidedImageUrl(image)
    if not source_image:
      logging.error('CreateDisk must specify a valid image: %s', image)
      return False

    operation = self.GetApi().disks().insert(
        project=self._project, zone=self._zone, body=params,
        sourceImage=source_image).execute()
    return self._ParseOperation(
        operation, 'Disk creation %s' % disk_name)
Creates persistent disk in the zone of this API.
dataset/ETHPy150Open GoogleCloudPlatform/Solutions-Using-ETL-tool-on-Google-Compute-Engine/gce_api.py/GceApi.CreateDisk