Skip to content

Commit

Permalink
docs: update a few URLs in example documentation (#3882)
Browse files Browse the repository at this point in the history
Updated a few URLs to point to current locations (as opposed to redirect URLs).
In the Service Account URLs case, it was pointing to a non-existant cloud console page.
  • Loading branch information
veleek committed Apr 2, 2021
1 parent 625aef9 commit 17cae3c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions examples_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func Example_cancellation() {
// and authenticate clients.
//
// For information on how to create and obtain Application Default Credentials, see
// https://developers.google.com/identity/protocols/application-default-credentials.
// https://cloud.google.com/docs/authentication/production.
func Example_applicationDefaultCredentials() {
client, err := secretmanager.NewClient(context.Background())
if err != nil {
Expand All @@ -80,7 +80,7 @@ func Example_applicationDefaultCredentials() {
// You can use a file with credentials to authenticate and authorize, such as a JSON
// key file associated with a Google service account. Service Account keys can be
// created and downloaded from
// https://console.developers.google.com/permissions/serviceaccounts.
// https://console.cloud.google.com/iam-admin/serviceaccounts.
//
// This example uses the Datastore client, but the same steps apply to
// the other client libraries underneath this package.
Expand All @@ -100,7 +100,7 @@ func Example_credentialsFile() {
//
// This example uses the Secret Manager client, but the same steps apply to
// the other client libraries underneath this package. Note that scopes can be
// found at https://developers.google.com/identity/protocols/googlescopes, and
// found at https://developers.google.com/identity/protocols/oauth2/scopes, and
// are also provided in all auto-generated libraries: for example,
// cloud.google.com/go/secretmanager/apiv1 provides DefaultAuthScopes.
func Example_credentialsFromJSON() {
Expand Down

0 comments on commit 17cae3c

Please sign in to comment.