New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Datastore: Add support for creating a database with option for choosing modes. #8
Comments
@himanshu219 I'm afraid I don't understand this request: there is no "create a database" operation in the Datastore API. All entities for a given project are stored together, segregated only by Can you please point to docs for the feature you have in mind? |
yes here are the docs https://cloud.google.com/datastore/docs/quickstart please refer to "Create a Database" section. Currently one has to go to the console and would like this step to be automated via APIs |
@himanshu219 OK, thanks. I'm pretty sure that we cannot do this from the API: the "create a database" option described there is how one enables using the Datastore API project: like all other Google Cloud APIs, client libraries cannot do this step directly. |
so does that mean in future also there are no plans to automate this? Also any particular reason why in general all other google cloud APIs also behave similarly? Thanks |
The client libraries are designed to wrap the methods exposed by the various APIs, but a prerequisite for using those methods is to enable the API, which is normally done through the console. There may be a different API for managing the set of enabled APIs, but I'm not aware of it: neither the Billing Service API nor the Resource Manager API expose that facility. If such an API exists, we would need to wrap it in a different library than |
Even with the addition of the Datastore Admin Client in PR #39, there is still no way for this library to bootstrap enabling the Datastore API itself. |
Currently there is no way to create a database in datastore via APIs and customers find it frustrating to go to the console create a database choose the mode in their project.
It would be good if we can automate this and provide APIs so that one can achieve this via gcloud sdk, python sdk etc.
The text was updated successfully, but these errors were encountered: