google: Support scopes for ComputeTokenSource

This commit is contained in:
Steven Buss
2019-03-29 15:41:50 -07:00
parent c85d3e98c9
commit 1cb4a6ec12
3 changed files with 16 additions and 6 deletions

View File

@@ -126,7 +126,9 @@ func ExampleComputeTokenSource() {
// Fetch from Google Compute Engine's metadata server to retrieve
// an access token for the provided account.
// If no account is specified, "default" is used.
Source: google.ComputeTokenSource(""),
// If no scopes are specified, a set of default scopes
// are automatically granted.
Source: google.ComputeTokenSource("", "https://www.googleapis.com/auth/bigquery"),
},
}
client.Get("...")