def GetDownloadSerializationData(src_obj_metadata, progress=0):

  serialization_dict = {
      'auto_transfer': 'False',
      'progress': progress,
      'total_size': src_obj_metadata.size,
      'url': src_obj_metadata.mediaLink
  }

  return json.dumps(serialization_dict)
Returns download serialization data.
dataset/ETHPy150Open GoogleCloudPlatform/gsutil/gslib/cloud_api_helper.py/GetDownloadSerializationData