Skip to content

Commit

Permalink
Replacing v1beta3 with v1 in handwritten datastore references.
Browse files Browse the repository at this point in the history
  • Loading branch information
dhermes committed Aug 16, 2016
1 parent 9002168 commit c52d363
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ writes, strong consistency for reads and ancestor queries, and eventual
consistency for all other queries.

.. _Cloud Datastore: https://cloud.google.com/datastore/docs
.. _Datastore API docs: https://cloud.google.com/datastore/docs/apis/v1beta3/
.. _Datastore API docs: https://cloud.google.com/datastore/docs/

See the ``gcloud-python`` API `datastore documentation`_ to learn how to
interact with the Cloud Datastore using this Client Library.
Expand Down
2 changes: 1 addition & 1 deletion gcloud/datastore/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ class Connection(connection.Connection):
API_BASE_URL = 'https://datastore.googleapis.com'
"""The base of the API call URL."""

API_VERSION = 'v1beta3'
API_VERSION = 'v1'
"""The version of the API, used in building the API call's URL."""

API_URL_TEMPLATE = ('{api_base}/{api_version}/projects'
Expand Down
6 changes: 3 additions & 3 deletions scripts/make_datastore_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
os.path.join(os.path.dirname(__file__), '..'))
PROTOS_DIR = os.path.join(ROOT_DIR, 'googleapis-pb')
PROTO_PATH = os.path.join(PROTOS_DIR, 'google', 'datastore',
'v1beta3', 'datastore.proto')
'v1', 'datastore.proto')
GRPC_ONLY_FILE = os.path.join(ROOT_DIR, 'gcloud', 'datastore',
'_generated', 'datastore_grpc_pb2.py')
GRPCIO_VIRTUALENV = os.environ.get('GRPCIO_VIRTUALENV', 'protoc')
Expand All @@ -39,7 +39,7 @@ def get_pb2_contents_with_grpc():
"""
temp_dir = tempfile.mkdtemp()
generated_path = os.path.join(temp_dir, 'google', 'datastore',
'v1beta3', 'datastore_pb2.py')
'v1', 'datastore_pb2.py')
try:
return_code = subprocess.call([
'%s/bin/python' % GRPCIO_VIRTUALENV,
Expand Down Expand Up @@ -69,7 +69,7 @@ def get_pb2_contents_without_grpc():
"""
temp_dir = tempfile.mkdtemp()
generated_path = os.path.join(temp_dir, 'google', 'datastore',
'v1beta3', 'datastore_pb2.py')
'v1', 'datastore_pb2.py')
try:
return_code = subprocess.call([
'%s/bin/python' % GRPCIO_VIRTUALENV,
Expand Down
4 changes: 2 additions & 2 deletions scripts/rewrite_imports.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
# Bigtable v2
'google.bigtable.v2': 'gcloud.bigtable._generated',
'google.bigtable.admin.v2': 'gcloud.bigtable._generated',
# Datastore v1beta3
'google.datastore.v1beta3': 'gcloud.datastore._generated',
# Datastore v1
'google.datastore.v1': 'gcloud.datastore._generated',
}


Expand Down

0 comments on commit c52d363

Please sign in to comment.