Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2fc15b3

Browse files
PhongChuonggcf-owl-bot[bot]
andauthoredAug 15, 2024
docs: update iam policy sample user to be consistent with other languages (#3429)
* docs: update iam policy sample user to be consistent with other language samples * fix format * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 16f350c commit 2fc15b3

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed
 

‎README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ If you are using Maven without the BOM, add this to your dependencies:
5353
If you are using Gradle 5.x or later, add this to your dependencies:
5454

5555
```Groovy
56-
implementation platform('com.google.cloud:libraries-bom:26.43.0')
56+
implementation platform('com.google.cloud:libraries-bom:26.44.0')
5757
5858
implementation 'com.google.cloud:google-cloud-bigquery'
5959
```

‎samples/snippets/src/main/java/com/example/bigquery/CreateIamPolicy.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ public static void createIamPolicy(String datasetName, String tableName) {
4646
Policy policy = bigquery.getIamPolicy(tableId);
4747
policy
4848
.toBuilder()
49-
.addIdentity(Role.of("roles/bigquery.dataViewer"), Identity.allUsers())
49+
.addIdentity(
50+
Role.of("roles/bigquery.dataViewer"),
51+
Identity.user("example-analyst-group@google.com"))
5052
.build();
5153
bigquery.setIamPolicy(tableId, policy);
5254
System.out.println("Iam policy created successfully");

0 commit comments

Comments
 (0)
Failed to load comments.