Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,15 @@ public DatasetId getDatasetId() {
/**
* Returns the dataset's access control configuration.
*
* <p>Update the ACLs for a dataset.
* <p>Each {@link Acl} entry is immutable. Calling {@code acls.add(...)} appends a new entry to
* the dataset's access list; to modify an existing {@link Acl} (for example, to change its {@link
* Acl.Role} or {@link Acl.Expr} condition), remove the existing entry from the copied list and
* add a new {@link Acl} before calling {@link BigQuery#update(DatasetInfo,
* BigQuery.DatasetOption...)}. When reading or updating conditional ACLs ({@link Acl.Expr}), pass
* {@link BigQuery.DatasetOption#accessPolicyVersion(Integer)
* DatasetOption.accessPolicyVersion(3)} to {@code getDataset} and {@code update}.
Comment thread
jinseopkim0 marked this conversation as resolved.
Resolved
*
* <p>Append a new ACL entry to a dataset:
*
* <pre>{@code
* Dataset dataset = bigquery.getDataset(DatasetId.of("my_dataset"));
Expand All @@ -463,7 +471,9 @@ public DatasetId getDatasetId() {
* bigquery.update(builder.build()); // API request.
* }</pre>
*
* @see <a href="https://cloud.google.com/bigquery/access-control">Access Control</a>
* @see <a href="https://cloud.google.com/bigquery/docs/access-control">Access Control</a>
* @see <a href="https://cloud.google.com/bigquery/docs/conditions">Control access with IAM
* Conditions</a>
*/
public List<Acl> getAcl() {
return acl;
Expand Down
Loading