Skip to content

Commit

Permalink
fix(spanner): restore removed scopes (#3684)
Browse files Browse the repository at this point in the history
  • Loading branch information
codyoss committed Feb 9, 2021
1 parent bcac779 commit 232d3a1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions spanner/client.go
Expand Up @@ -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<project>[^/]+)/instances/(?P<instance>[^/]+)/databases/(?P<database>[^/]+)$")
)
Expand Down

0 comments on commit 232d3a1

Please sign in to comment.