Skip to content

Commit c52d363

Browse files
committed
Replacing v1beta3 with v1 in handwritten datastore references.
1 parent 9002168 commit c52d363

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ writes, strong consistency for reads and ancestor queries, and eventual
7474
consistency for all other queries.
7575

7676
.. _Cloud Datastore: https://cloud.google.com/datastore/docs
77-
.. _Datastore API docs: https://cloud.google.com/datastore/docs/apis/v1beta3/
77+
.. _Datastore API docs: https://cloud.google.com/datastore/docs/
7878

7979
See the ``gcloud-python`` API `datastore documentation`_ to learn how to
8080
interact with the Cloud Datastore using this Client Library.

gcloud/datastore/connection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class Connection(connection.Connection):
4343
API_BASE_URL = 'https://datastore.googleapis.com'
4444
"""The base of the API call URL."""
4545

46-
API_VERSION = 'v1beta3'
46+
API_VERSION = 'v1'
4747
"""The version of the API, used in building the API call's URL."""
4848

4949
API_URL_TEMPLATE = ('{api_base}/{api_version}/projects'

scripts/make_datastore_grpc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
os.path.join(os.path.dirname(__file__), '..'))
2626
PROTOS_DIR = os.path.join(ROOT_DIR, 'googleapis-pb')
2727
PROTO_PATH = os.path.join(PROTOS_DIR, 'google', 'datastore',
28-
'v1beta3', 'datastore.proto')
28+
'v1', 'datastore.proto')
2929
GRPC_ONLY_FILE = os.path.join(ROOT_DIR, 'gcloud', 'datastore',
3030
'_generated', 'datastore_grpc_pb2.py')
3131
GRPCIO_VIRTUALENV = os.environ.get('GRPCIO_VIRTUALENV', 'protoc')
@@ -39,7 +39,7 @@ def get_pb2_contents_with_grpc():
3939
"""
4040
temp_dir = tempfile.mkdtemp()
4141
generated_path = os.path.join(temp_dir, 'google', 'datastore',
42-
'v1beta3', 'datastore_pb2.py')
42+
'v1', 'datastore_pb2.py')
4343
try:
4444
return_code = subprocess.call([
4545
'%s/bin/python' % GRPCIO_VIRTUALENV,
@@ -69,7 +69,7 @@ def get_pb2_contents_without_grpc():
6969
"""
7070
temp_dir = tempfile.mkdtemp()
7171
generated_path = os.path.join(temp_dir, 'google', 'datastore',
72-
'v1beta3', 'datastore_pb2.py')
72+
'v1', 'datastore_pb2.py')
7373
try:
7474
return_code = subprocess.call([
7575
'%s/bin/python' % GRPCIO_VIRTUALENV,

scripts/rewrite_imports.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@
2727
# Bigtable v2
2828
'google.bigtable.v2': 'gcloud.bigtable._generated',
2929
'google.bigtable.admin.v2': 'gcloud.bigtable._generated',
30-
# Datastore v1beta3
31-
'google.datastore.v1beta3': 'gcloud.datastore._generated',
30+
# Datastore v1
31+
'google.datastore.v1': 'gcloud.datastore._generated',
3232
}
3333

3434

0 commit comments

Comments
 (0)