Space occupied by files uploaded using Google Drive API - google-drive-api

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.

Related

How to do you store data to Google Drive using console.cloud.google

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

How to store Gmail messages in Google Drive without using double storage space

If you have a Google Account the total amount of space available to you (for free) has been fixed to 15 Gb (at the time being).
How you divide the space between Gmail and Google Drive (and other applications) is up to you.
I would like to store Gmail messages (received) on my Google Drive and be able to see them in Gmail as well WITHOUT using the double amount of storage.
Is this possible? I'm using Google Apps Script.
If you store your messages in the native format (Google Document), then the size of the document does not account in your storage quota. That's your best option I think.
You can find more info about this in this doc from Google.
In particular, here is what it says about Google Document and quota usage :
Items that don't count toward your storage limit
Google Docs, Sheets, Slides, Presentations, Drawings, etc.
Files that others have shared with you
This is not currently possible.

Limits of a google developer project

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/

How to check if user's Google Drive has enough space using Drive SDK?

I am trying to upload a file to Google Drive using Drive SDK.
I wanted to know if there is an API method to check if the user's drive has enough capacity to hold the file. If yes, can you please point me to where I should search, if not what is the best way to handle this?
P.S.: Please assume that I know the size of the file to upload.
About.get() will tell you user's quota and usage. You can calculate user's free space based on this information.

Search capabilities with Google Cloud Storage

I'm going to use Google's infrastructure to store files and I hesitate between Google Drive and Google Cloud Storage. I don't think I'll store a lot of data (less than 50GB). However I would like to offer search functionality through files contents (FULL TEXT) to my users.
I know it's available with Google Drive SDK https://developers.google.com/drive/search-parameters but I'm not sure it is for Google Cloud Storage files ? I don't want to force my users to have a google account and they will be able to share files to others, and they will do all their stuff through my web site.
One more question, is there a way to manage identities with a Google API (create/update users) ? without a gmail account ?
thanks
Google cloud storage does not offer full text search at this time.
Identities require a Google/gmail account, but check out signed URLs: https://developers.google.com/storage/docs/accesscontrol#Signed-URLs.
Your app can determine whether one of your users should have access to an app and then hand the user a signed url that grants access to that object for a limited period of time.