-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Closed
Labels
api: datastoreIssues related to the Datastore API.Issues related to the Datastore API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.
Description
To create a new Product entity, I have to do the following
from gcloud import datastore
product = datastore.Entity(key=datastore.Key('Product'))This seems unnecessarily long to me. How about
from gcloud import datastore
product = datastore.Entity('Product')or
from gcloud import datastore
product = datastore.Entity.from_kind('Product')or
from gcloud import datastore
product = datastore.Kind('Product')Metadata
Metadata
Assignees
Labels
api: datastoreIssues related to the Datastore API.Issues related to the Datastore API.priority: p2Moderately-important priority. Fix may not be included in next release.Moderately-important priority. Fix may not be included in next release.