Python
Dataset#
Convenience wrapper for invoking APIs/factories w/ a dataset ID.
-
class
gcloud.datastore.dataset.
Dataset
(dataset_id, connection=None)[source]# Bases:
object
Convenience wrapper for invoking APIs/factories w/ a dataset ID.
Parameters: - dataset_id (string) – (required) dataset ID to pass to proxied API methods.
- connection (
gcloud.datastore.connection.Connection
, or None) – (optional) connection to pass to proxied API methods
-
batch
()[source]# Proxy to
gcloud.datastore.batch.Batch
.Passes our
dataset_id
.
-
delete
(keys)[source]# Proxy to
gcloud.datastore.api.delete()
.Passes our
dataset_id
.
-
get
(keys, missing=None, deferred=None)[source]# Proxy to
gcloud.datastore.api.get()
.Passes our
dataset_id
.
-
key
(*path_args, **kwargs)[source]# Proxy to
gcloud.datastore.key.Key
.Passes our
dataset_id
.
-
put
(entities)[source]# Proxy to
gcloud.datastore.api.put()
.Passes our
dataset_id
.
-
query
(**kwargs)[source]# Proxy to
gcloud.datastore.query.Query
.Passes our
dataset_id
.
-
transaction
()[source]# Proxy to
gcloud.datastore.transaction.Transaction
.Passes our
dataset_id
.