Skip to content
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

Closed
himanshu219 opened this issue Jun 4, 2019 · 6 comments
Assignees
Labels
api: datastore Issues related to the googleapis/python-datastore API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.

Comments

@himanshu219
Copy link

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.

@tseaver tseaver changed the title Add support for creating a database with option for choosing modes in datastore APIs Datastore: Add support for creating a database with option for choosing modes. Jun 4, 2019
@tseaver
Copy link
Contributor

tseaver commented Jun 4, 2019

@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 namespace and their keys. The Datastore panels in the Cloud Console do not expose such an operation, either.

Can you please point to docs for the feature you have in mind?

@himanshu219
Copy link
Author

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

@tseaver
Copy link
Contributor

tseaver commented Jun 4, 2019

@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.

@himanshu219
Copy link
Author

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

@tseaver
Copy link
Contributor

tseaver commented Jun 5, 2019

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 google-cloud-datastore.

@crwilcox crwilcox transferred this issue from googleapis/google-cloud-python Feb 7, 2020
@crwilcox crwilcox added api: datastore Issues related to the googleapis/python-datastore API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design. labels Feb 7, 2020
@tseaver
Copy link
Contributor

tseaver commented Aug 11, 2020

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: datastore Issues related to the googleapis/python-datastore API. type: feature request ‘Nice-to-have’ improvement, new feature or different behavior or design.
Projects
None yet
Development

No branches or pull requests

3 participants