provider/google: add scope aliases

This commit is contained in:
oleksandr.bushkovskyi 2016-10-19 00:03:02 +03:00
parent f8ce3f10ac
commit cb2e81ba84

View File

@ -6,12 +6,17 @@ func canonicalizeServiceScope(scope string) string {
scopeMap := map[string]string{
"bigquery": "https://www.googleapis.com/auth/bigquery",
"cloud-platform": "https://www.googleapis.com/auth/cloud-platform",
"cloud-source-repos": "https://www.googleapis.com/auth/source.full_control",
"cloud-source-repos-ro": "https://www.googleapis.com/auth/source.read_only",
"compute-ro": "https://www.googleapis.com/auth/compute.readonly",
"compute-rw": "https://www.googleapis.com/auth/compute",
"datastore": "https://www.googleapis.com/auth/datastore",
"logging-write": "https://www.googleapis.com/auth/logging.write",
"monitoring": "https://www.googleapis.com/auth/monitoring",
"monitoring-write": "https://www.googleapis.com/auth/monitoring.write",
"pubsub": "https://www.googleapis.com/auth/pubsub",
"service-control": "https://www.googleapis.com/auth/servicecontrol",
"service-management": "https://www.googleapis.com/auth/service.management.readonly",
"sql": "https://www.googleapis.com/auth/sqlservice",
"sql-admin": "https://www.googleapis.com/auth/sqlservice.admin",
"storage-full": "https://www.googleapis.com/auth/devstorage.full_control",