From 5ab003ab7f77859ed5fdf0e4c291308f99655446 Mon Sep 17 00:00:00 2001 From: Misha Brukman Date: Fri, 18 Mar 2016 00:39:41 -0400 Subject: [PATCH] Fix Cloud Bigtable scopes. Cloud Bigtable scopes are of the form `https://www.googleapis.com/auth/bigtable.*` per the docs: https://cloud.google.com/bigtable/docs/creating-vm-instance Previously, they were listed with the form `https://www.googleapis.com/auth/cloud-bigtable.*` which are invalid, leading to user-reported errors. --- gcloud/bigtable/client.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gcloud/bigtable/client.py b/gcloud/bigtable/client.py index c67ce2b7057f..073aec4e99c4 100644 --- a/gcloud/bigtable/client.py +++ b/gcloud/bigtable/client.py @@ -66,12 +66,11 @@ OPERATIONS_STUB_FACTORY = operations_grpc_pb2.beta_create_Operations_stub -ADMIN_SCOPE = 'https://www.googleapis.com/auth/cloud-bigtable.admin' +ADMIN_SCOPE = 'https://www.googleapis.com/auth/bigtable.admin' """Scope for interacting with the Cluster Admin and Table Admin APIs.""" -DATA_SCOPE = 'https://www.googleapis.com/auth/cloud-bigtable.data' +DATA_SCOPE = 'https://www.googleapis.com/auth/bigtable.data' """Scope for reading and writing table data.""" -READ_ONLY_SCOPE = ('https://www.googleapis.com/auth/' - 'cloud-bigtable.data.readonly') +READ_ONLY_SCOPE = 'https://www.googleapis.com/auth/bigtable.data.readonly' """Scope for reading table data.""" DEFAULT_TIMEOUT_SECONDS = 10