Upcoming changes to Google Drive API
Hello
This morning I received an email from Google Drive informing me of upcoming changes to their API. They say that I am affected because one of my "projects" uses the API. The "project" in question is of course the one that WHM uses to send my backups to my GoogleDrive. I set it up several years ago and I can't remember the details but it must have been this process that I did:
What do I need to know?
Items that have a file metadata in the Drive API response.
- If the file is a shortcut file, then the resource key for the target of the shortcut can be read from the shortcutDetails.targetResourceKey field of the same resource.
- URL type fields such as exportLinks, webContentLink, and webViewLink will include the resourceKey.
- Requests to the Drive API can specify one or more resource keys with the X-Goog-Drive-Resource-Keys HTTP request header.
- Note: When fetching a file or folder, the resource key can be specified on the getFileByIdAndResourceKey or getFolderByIdAndResourceKey methods.
- The state information for a New URL will contain folderResourceKey, which is the resource key of the folder where the new item should be created.
- The state for an Open URL will contain a mapping of file ID to resource key in the resourceKeys field.
-
Howdy! I use Google Drive as our nightly backup destination. Running CENTOS 7.9 virtuozzo [server] v96.0.15. I received the following notice from Google. Is there anything that I need to do? Thanks! --- Hello Google Drive Developer, We have identified you as a Developer who has used the Drive API in the last 30 days. We are writing to let you know that on September 13, 2021, Drive will apply a security update that will change the links used to share some files, and may lead to some new file access requests. Access to files won"t change for people who have already viewed or modified these files. Please update your code as detailed below before September 13, 2021, to avoid failing requests. What do I need to know? Items that have a file metadata in the Drive API response. - If the file is a shortcut file, then the resource key for the target of the shortcut can be read from the shortcutDetails.targetResourceKey field of the same resource.
- URL type fields such as exportLinks, webContentLink, and webViewLink will include the resourceKey.
- Requests to the Drive API can specify one or more resource keys with the X-Goog-Drive-Resource-Keys HTTP request header.
- Note: When fetching a file or folder, the resource key can be specified on the getFileByIdAndResourceKey or getFolderByIdAndResourceKey methods.
- The state information for a New URL will contain folderResourceKey, which is the resource key of the folder where the new item should be created.
- The state for an Open URL will contain a mapping of file ID to resource key in the resourceKeys field.
0 -
Thanks for letting us know about this. I've reached out to our backup team and I'll let you know what we find out soon. 0 -
The backup team is looking into this to see what adjustments need to be made on our side. I can't say for sure what work that will entail, but if I get updates I'll be sure to post them. 0 -
Upvoting this, I received the same email from Google. 0 -
Update - our backup team has confirmed our system is all set to work with these changes. 0 -
Update - our backup team has confirmed our system is all set to work with these changes.
Everything seems to be working as normal. Thank-you. :)0 -
Hey there! I'm glad to hear that everything is now working as expected! If you have any other questions or concerns, please let us know! :) 0
Please sign in to leave a comment.
Comments
8 comments