Skip to content

Commit b600729

Browse files
feat(bigquery): Update app.js file with new sample
1 parent 6c40940 commit b600729

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

bigquery/cloud-client/app.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const {
2121
const {revokeTableOrViewAccess} = require('./src/revokeTableOrViewAccess');
2222
const {grantAccessToDataset} = require('./src/grantAccessToDataset');
2323
const {grantAccessToTableOrView} = require('./src/grantAccessToTableOrView');
24+
const {revokeDatasetAccess} = require('./src/revokeDatasetAccess');
2425

2526
async function main() {
2627
try {
@@ -60,6 +61,12 @@ async function main() {
6061
principalId: 'user:[email protected]',
6162
role: 'roles/bigquery.dataViewer',
6263
});
64+
65+
// Example usage of revoking dataset access
66+
await revokeDatasetAccess({
67+
datasetId: 'my_dataset',
68+
entityId: '[email protected]',
69+
});
6370
} catch (error) {
6471
console.error('Error:', error);
6572
process.exitCode = 1;
@@ -77,4 +84,5 @@ module.export = {
7784
revokeTableOrViewAccess,
7885
grantAccessToDataset,
7986
grantAccessToTableOrView,
87+
revokeDatasetAccess,
8088
};

0 commit comments

Comments
 (0)