Can we use google cloud storage as database? - google-drive-api

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.

Related

Does Google Drive API have a api to show the upgrade link?

Does Google Drive API have an api to show the storage upgrade link?
I mean a link which can let user to buy more space.
Like Google One, https://one.google.com/plans
Thanks.
The google drive api is a file storage api. It gives you access to the data beind the google drive web application. It does not give you any control over the google drive web application itself.
Upgrade storage link is outside the scope for this api.

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.

Google Drive/Google Cloud Storage

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.

Google Maps Engine with a local MySql Server

I want to use maps engine to show data in a map. The problem is that my data (kmz, csv, Mysql) is in a local server and because of internal politics I can't upload all this data to the cloud. I have seen that the Google Maps Engine API documentation talks about authentification for installed applications (https://developers.google.com/maps-engine/documentation/oauth/installedapplication). But does this mean that I can use Google Maps Engine locally? Can I use my local data in Google Maps Engine without uploading it to the cloud?
Thanks
Google Maps Engine is a cloud based application. You must upload your data to GME in order to make use of it. The link you reference is for oAuth - an authentication mechanism to provide access to GME maps requiring a user account. An installed application is, for example, a Windows app that uses the Maps Engine API.
If you can get over your cloud issue, you could use the Maps Engine API to write a connector from mySQL to Maps Engine relatively easily
In your situation you should probably look at geoserver.