Skip to content

Commit 7cba38f

Browse files
committed
added link to docs
1 parent 4d74518 commit 7cba38f

File tree

4 files changed

+4
-0
lines changed

4 files changed

+4
-0
lines changed

iam/api-client/src/main/java/iam/snippets/CreateServiceAccountKey.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ public static String createKey(String projectId, String serviceAccountName) {
4848
// Construct the service account email.
4949
// You can modify the ".iam.gserviceaccount.com" to match the service account name in which
5050
// you want to create the key.
51+
// See, https://cloud.google.com/iam/docs/creating-managing-service-account-keys?hl=en#creating
5152
String serviceAccountEmail = serviceAccountName + "@" + projectId + ".iam.gserviceaccount.com";
5253
try {
5354
ServiceAccountKey key =

iam/api-client/src/main/java/iam/snippets/DeleteServiceAccountKey.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ public static void deleteKey(String projectId, String serviceAccountName,
4747
// Construct the service account email.
4848
// You can modify the ".iam.gserviceaccount.com" to match the service account name in which
4949
// you want to delete the key.
50+
// See, https://cloud.google.com/iam/docs/creating-managing-service-account-keys?hl=en#deleting
5051
String serviceAccountEmail = serviceAccountName + "@" + projectId + ".iam.gserviceaccount.com";
5152
try {
5253
String keyToDelete = String.format("projects/-/serviceAccounts/%s/keys/%s",

iam/api-client/src/main/java/iam/snippets/DisableServiceAccountKey.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public static void disableServiceAccountKey(String projectId, String serviceAcco
5555
// Construct the service account email.
5656
// You can modify the ".iam.gserviceaccount.com" to match the service account name in which
5757
// you want to disable the key.
58+
// See, https://cloud.google.com/iam/docs/creating-managing-service-account-keys?hl=en#disabling
5859
String serviceAccountEmail = serviceAccountName + "@" + projectId + ".iam.gserviceaccount.com";
5960

6061
try {

iam/api-client/src/main/java/iam/snippets/EnableServiceAccountKey.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public static void enableServiceAccountKey(String projectId, String serviceAccou
5555
// Construct the service account email.
5656
// You can modify the ".iam.gserviceaccount.com" to match the service account name in which
5757
// you want to enable the key.
58+
// See, https://cloud.google.com/iam/docs/creating-managing-service-account-keys?hl=en#enabling
5859
String serviceAccountEmail = serviceAccountName + "@" + projectId + ".iam.gserviceaccount.com";
5960

6061
try {

0 commit comments

Comments
 (0)