From 040365d8a05959b2ac8ff3db28a0b15597062a96 Mon Sep 17 00:00:00 2001 From: Cody Oss Date: Tue, 9 Feb 2021 08:13:48 -0700 Subject: [PATCH] fix(spanner): restore removed scopes --- spanner/client.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/spanner/client.go b/spanner/client.go index cd02d23fee3..fcba322ac1d 100644 --- a/spanner/client.go +++ b/spanner/client.go @@ -44,6 +44,14 @@ const ( numChannels = 4 ) +const ( + // Scope is the scope for Cloud Spanner Data API. + Scope = "https://www.googleapis.com/auth/spanner.data" + + // AdminScope is the scope for Cloud Spanner Admin APIs. + AdminScope = "https://www.googleapis.com/auth/spanner.admin" +) + var ( validDBPattern = regexp.MustCompile("^projects/(?P[^/]+)/instances/(?P[^/]+)/databases/(?P[^/]+)$") )