All my questions come down to figuring out how many storages each google service contributes to the user storage quota.
The Google Drive API version 2 describes the user storage quota in its service components. for example: disk, gmail, photos, ...
{
"quotaBytesTotal": "16106127360",
"quotaBytesUsed": "8815339193",
"quotaBytesUsedAggregate": "11518850915",
"quotaBytesUsedInTrash": "3690146836",
"quotaType": "LIMITED",
"quotaBytesByService": [
{
"serviceName": "DRIVE",
"bytesUsed": "8815302329"
},
{
"serviceName": "GMAIL",
"bytesUsed": "2696242936"
},
{
"serviceName": "PHOTOS",
"bytesUsed": "7268786"
}
]
}
Version 3 of the Google Drive API returns only the Drive contribution to the user's total storage quota ...
{
"storageQuota": {
"limit": "16106127360",
"usage": "11518850915",
"usageInDrive": "8815339193",
"usageInDriveTrash": "3690146836"
}
}