Skip to content

Commit

Permalink
Merge pull request #946 from tseaver/944-datastore_client_from_dataset
Browse files Browse the repository at this point in the history
Rename 'dataset.Dataset' -> 'client.Client'.
  • Loading branch information
tseaver committed Jun 25, 2015
2 parents b975d9c + 189f362 commit 119cba3
Show file tree
Hide file tree
Showing 5 changed files with 90 additions and 89 deletions.
2 changes: 1 addition & 1 deletion docs/datastore-dataset.rst → docs/datastore-client.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Dataset
~~~~~~~

.. automodule:: gcloud.datastore.dataset
.. automodule:: gcloud.datastore.client
:members:
:undoc-members:
:show-inheritance:
2 changes: 1 addition & 1 deletion docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
:hidden:

gcloud-api
datastore-client
datastore-api
datastore-entities
datastore-keys
datastore-queries
datastore-transactions
datastore-batches
datastore-dataset
storage-api
storage-blobs
storage-buckets
Expand Down
9 changes: 5 additions & 4 deletions gcloud/datastore/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@
which represents a connection between your machine and the Cloud Datastore
API.
- :class:`gcloud.datastore.dataset.Dataset`
which represents a dataset ID (string) bundled with a connection and has
convenience methods for constructing objects with that dataset ID.
- :class:`gcloud.datastore.client.Client`
which represents a dataset ID (string) and namespace (string) bundled with
a connection and has convenience methods for constructing objects with that
dataset ID / namespace.
- :class:`gcloud.datastore.entity.Entity`
which represents a single entity in the datastore
Expand Down Expand Up @@ -63,7 +64,7 @@
from gcloud.datastore.batch import Batch
from gcloud.datastore.connection import SCOPE
from gcloud.datastore.connection import Connection
from gcloud.datastore.dataset import Dataset
from gcloud.datastore.client import Client
from gcloud.datastore.entity import Entity
from gcloud.datastore.key import Key
from gcloud.datastore.query import Query
Expand Down
2 changes: 1 addition & 1 deletion gcloud/datastore/dataset.py → gcloud/datastore/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
from gcloud.datastore.transaction import Transaction


class Dataset(object):
class Client(object):
"""Convenience wrapper for invoking APIs/factories w/ a dataset ID.
:type dataset_id: string
Expand Down
Loading

0 comments on commit 119cba3

Please sign in to comment.