Skip to content
Permalink
Browse files
fix(spanner): restore removed scopes (#3684)
  • Loading branch information
codyoss committed Feb 9, 2021
1 parent bcac779 commit 232d3a17bdadb92864592351a335ec920a68f9bf
Showing with 8 additions and 0 deletions.
  1. +8 −0 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<project>[^/]+)/instances/(?P<instance>[^/]+)/databases/(?P<database>[^/]+)$")
)

0 comments on commit 232d3a1

Please sign in to comment.