Google Drive/Google Cloud Storage - google-drive-api

Does google drive use the broader google cloud storage infrastructure as it's backend? If it does is there any way to get the bucket metadata related to a drive account via an api call?

Whether it physically uses the same infrastructure or not, it doesn't logically. There's no bucket corresponding to a user's Drive, at least not publicly.

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

Enabling Advanced Google Service in Apps Script for Google Drive API - Does it cost anything?

I need to enable the Advanced Drive Google service in order to be able to use Google Drive API. I need it because, only with this API, can I share Google Drive files programatically without sending emails to the users.
When enabling Advanced Google services, I'm asked to agree to the Google Cloud Platform and Google APIs Terms of Service. My question is, "Do I expose my account / my company, to costs by enabling advanced Google services?" I just want to use Google Drive API to make use of one method only.
There is no cost to enabling the Google Drive API for use with Apps Script.
Use of the Google Drive API doesn't have a cost associated with it.
There are three quota limits for the Drive API, which are controlled through the Google Cloud Platform, not through Apps Script. It's highly doubtful that you'll hit those limits. The limit for Queries per day is 1 Billion. But even if you did hit a Drive API quota limit, there is no cost, the API would just stop working.
To be charged for any API, you'd need to enable billing and set up a billing account. It's good to understand the liability before making a commitment. If you ever decide to pay for a service, make sure that you know how to shut it off. There should be tools to keep track of how much of a quota that you've used.
If you hit the storage limit in your Google Drive, then you can "upgrade" to a higher storage limit, which would cost you something. Users with personal (free/consumer) accounts can pay for more Drive storage with a product named Google One.
If you have a Google Workspace account, then extra storage can be purchased also, but it's different than Google One.
There are Cloud Computing Storage products that do cost something, but they probably have a free tier.

Can we use google cloud storage as database?

Google drive is technically based on google cloud storage.
and they have this API (https://developers.google.com/drive/api/v3/appdata) and this API (https://developers.google.com/realtime/overview ~which had been deprecated) for developers, so that we can use google drive as our mobile or web app database.
The question is, since google cloud storage and google drive are the same, can we use google cloud storage as database?
i.e creating a file in google cloud storage and use it for Create, Read, Update and Delete operation (the typical one).
Google Cloud Storage and Google Drive are not the same, nor is one based on the other. They are entirely separate products.
You can use the Google Cloud Storage API to create Cloud Storage objects, and you can use the Google Drive API to create Google Drive objects. I'm not sure about the Realtime API, but as it's being turned down, I wouldn't advise making use of it.
The successor to that API, Cloud Firestore, is a good choice, and Firebase's cloud storage is built on top of Google Cloud Storage.

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.

Can the Licensing Manager API retrieve Drive quota usage?

The Google Licensing Manager API, https://developers.google.com/google-apps/licensing/, can be used to assign Drive licenses to users in an Apps domain. How can you retrieve the amount of storage a given user is actually using and not just what their total quota is?
This can't be done in the Licensing Manager API, it only retrieves information about the actual storage licences. The amount of quota a user has actually used can be found with about call in the Drive API, documented at https://developers.google.com/drive/v2/reference/about/get. Specifically the quotaBytesUsed property.