Skip to content

Commit 6a82d68

Browse files
committed
added comment
1 parent 8700bad commit 6a82d68

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,9 @@ public static String createKey(String projectId, String serviceAccountName) {
4545
return null;
4646
}
4747

48+
// Construct the service account email.
49+
// You can modify the ".iam.gserviceaccount.com" to match the service account name in which
50+
// you want to create the key.
4851
String serviceAccountEmail = serviceAccountName + "@" + projectId + ".iam.gserviceaccount.com";
4952
try {
5053
ServiceAccountKey key =

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ public static void deleteKey(String projectId, String serviceAccountName,
4444
return;
4545
}
4646

47+
// Construct the service account email.
48+
// You can modify the ".iam.gserviceaccount.com" to match the service account name in which
49+
// you want to delete the key.
4750
String serviceAccountEmail = serviceAccountName + "@" + projectId + ".iam.gserviceaccount.com";
4851
try {
4952
String keyToDelete = String.format("projects/-/serviceAccounts/%s/keys/%s",

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ public static void disableServiceAccountKey(String projectId, String serviceAcco
5252
return;
5353
}
5454

55+
// Construct the service account email.
56+
// You can modify the ".iam.gserviceaccount.com" to match the service account name in which
57+
// you want to disable the key.
5558
String serviceAccountEmail = serviceAccountName + "@" + projectId + ".iam.gserviceaccount.com";
5659

5760
try {

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ public static void enableServiceAccountKey(String projectId, String serviceAccou
5252
return;
5353
}
5454

55+
// Construct the service account email.
56+
// You can modify the ".iam.gserviceaccount.com" to match the service account name in which
57+
// you want to enable the key.
5558
String serviceAccountEmail = serviceAccountName + "@" + projectId + ".iam.gserviceaccount.com";
5659

5760
try {

0 commit comments

Comments
 (0)