We are using OAuth 2.0 based client and Drive V3 REST APIs. During resumable upload, client makes multiple upload calls (per chunk) for a file being uploaded. I would like to know if each of these calls (per chunk) are accounted against Google Drive API Quotas?
For example:
API: drive.file.create
Upload Type: resumable.
File Size: 1 GB
Chunk size: 10MB
In above scenario, how many API Quotas will be consumed for this operation for a given project?
Will this be considered 1 request against our quota or will it be ~100?
If you are still looking for the solution, how about this answer? I think that in your situation, even if a file with the size of 1 GB was uploaded as a chunk of 10 MB using the resumable upload, Drive API is used only one time.
In my environment, when I uploaded a file with the size of 1 GB using a chunk of 10 MB as a sample, I confirmed that only one time Drive API was used at the API dashboard.
If this was difference from your environment, I'm sorry.
Related
I am trying to upload some models (2.5 GB) to the Autodesk Forge Data Management API. I tried it buy postman and with resumable endpoint: https://developer.api.autodesk.com/oss/v2/buckets/:bucketKey/objects/:objectName/resumable
I get 504 timeout error.
Do you have any suggestions? Thanks in advance : )
I guess you uploaded the whole file by the resumable endpoint directly?
resumable uploading means you need to split the file(file stream) to chunks, and upload chunks one by one by the resumable endpoint. I do not think Postman is a good tool to work with chunks. you may find some blogs about it in specific languages:
https://forge.autodesk.com/blog/nailing-large-files-uploads-forge-resumable-api
If you simply want to test file without much coding, I would recommend with the utility: Autodesk Forge Extension of VSCode. It has implemented resumable uploading.
https://marketplace.visualstudio.com/items?itemName=petrbroz.vscode-forge-tools
In my google console it says here Cloud Storage pricing
that the price for standard storage is $.026 per gigabyte month, which I think means that 500 gigs stored during one month will cost $13 since 500 * .026 = 13. But this article The Google Drive Price Cut Changes The Game For Personal Cloud Storage says:
Google is making a terabyte of cloud storage available for just $10
I don't see where you upload data to Google drive at Google cloud console.
My second question is that I want to make sure that I can create a virtual instance and connect it to Google drive or Storage and read the data from it and put that data into the RAM of the virtual instance.
Google Drive
is a web application which works as a file store allowing users to store files. Communication with it is normally done though the web application itself however developers can use the Google drive api to interact with google drive programticlly.
You may want to go though the documentation on the Google drive api to understand what its capable of.
Google cloud storage
is designed as a Unified object storage for developers and enterprises Cloud Storage allows world-wide storage and retrieval of any amount of data at any time. You can use Cloud Storage for a range of scenarios including serving website content, storing data for archival and disaster recovery, or distributing large data objects to users via direct download.
Interaction with this is done primarrly though the cloud console and command line tools.
I don't see where you upload data to Google drive at Google cloud console.
You dont cloud console wont help you upload to google drive.
My second question is that I want to make sure that I can create a virtual instance and connect it to Google drive or Storage and read the data from it and put that data into the RAM of the virtual instance.
Google drive is a web application you cant create a virtual instance of that.
You might want to go though a few of the quickstarts to understand how Google cloud console and the command line tool work Quick Starts
I created a Google Service Account to upload and download files using Google Drive API.
I have a quota of 100 GB in my main Google Drive account.
The files that I upload using the Google Drive API counts to this 100 Gb?
Thanks
Based off previous information (here and here) it seems the service account has its own storage that you may not be able to increase. I'm not entirely sure if this still stands today, as I could not find any other information in the docs. If it is the case, you may want to use your actual account (which would share the storage), if you need more space. I believe for larger storage size, Google Cloud would be better than Drive.
I've a Google Developer project created and enabled drive API through which I'm uploading files to drive.
There are limits in terms of number of requests but are there any other limits in terms of size of files, total capacity... using via api for a project.
The Limit Size of uploading files in Google Drive is 10 GB.
Google Drive offers 5 GB of free space. The Size of Google Drive can be increased. It depends on your interest. The Pricing factors are depends on the users choice.
For More details Please Check it http://www.hongkiat.com/blog/dropbox-gdrive-skydrive/
The Document List API allows you to batch ACL requests to save bandwidth.
Is there a similar capability using the Drive API?
There is a generalized batching solution in the new APIs and supported with Drive. See Is there a way to make batched calls using the Drive SDK? for an example of how to batch requests with Python. Most, if not all of the current API clients have batch support.