Update list of GCE service scope short names
This commit is contained in:
parent
54351885b6
commit
f23a8bfe4e
|
@ -4,18 +4,22 @@ func canonicalizeServiceScope(scope string) string {
|
||||||
// This is a convenience map of short names used by the gcloud tool
|
// This is a convenience map of short names used by the gcloud tool
|
||||||
// to the GCE auth endpoints they alias to.
|
// to the GCE auth endpoints they alias to.
|
||||||
scopeMap := map[string]string{
|
scopeMap := map[string]string{
|
||||||
"bigquery": "https://www.googleapis.com/auth/bigquery",
|
"bigquery": "https://www.googleapis.com/auth/bigquery",
|
||||||
"compute-ro": "https://www.googleapis.com/auth/compute.readonly",
|
"cloud-platform": "https://www.googleapis.com/auth/cloud-platform",
|
||||||
"compute-rw": "https://www.googleapis.com/auth/compute",
|
"compute-ro": "https://www.googleapis.com/auth/compute.readonly",
|
||||||
"datastore": "https://www.googleapis.com/auth/datastore",
|
"compute-rw": "https://www.googleapis.com/auth/compute",
|
||||||
"logging-write": "https://www.googleapis.com/auth/logging.write",
|
"datastore": "https://www.googleapis.com/auth/datastore",
|
||||||
"sql": "https://www.googleapis.com/auth/sqlservice",
|
"logging-write": "https://www.googleapis.com/auth/logging.write",
|
||||||
"sql-admin": "https://www.googleapis.com/auth/sqlservice.admin",
|
"monitoring": "https://www.googleapis.com/auth/monitoring",
|
||||||
"storage-full": "https://www.googleapis.com/auth/devstorage.full_control",
|
"sql": "https://www.googleapis.com/auth/sqlservice",
|
||||||
"storage-ro": "https://www.googleapis.com/auth/devstorage.read_only",
|
"sql-admin": "https://www.googleapis.com/auth/sqlservice.admin",
|
||||||
"storage-rw": "https://www.googleapis.com/auth/devstorage.read_write",
|
"storage-full": "https://www.googleapis.com/auth/devstorage.full_control",
|
||||||
"taskqueue": "https://www.googleapis.com/auth/taskqueue",
|
"storage-ro": "https://www.googleapis.com/auth/devstorage.read_only",
|
||||||
"userinfo-email": "https://www.googleapis.com/auth/userinfo.email",
|
"storage-rw": "https://www.googleapis.com/auth/devstorage.read_write",
|
||||||
|
"taskqueue": "https://www.googleapis.com/auth/taskqueue",
|
||||||
|
"useraccounts-ro": "https://www.googleapis.com/auth/cloud.useraccounts.readonly",
|
||||||
|
"useraccounts-rw": "https://www.googleapis.com/auth/cloud.useraccounts",
|
||||||
|
"userinfo-email": "https://www.googleapis.com/auth/userinfo.email",
|
||||||
}
|
}
|
||||||
|
|
||||||
if matchedUrl, ok := scopeMap[scope]; ok {
|
if matchedUrl, ok := scopeMap[scope]; ok {
|
||||||
|
|
Loading…
Reference in New Issue