File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ const {
2121const { revokeTableOrViewAccess} = require ( './src/revokeTableOrViewAccess' ) ;
2222const { grantAccessToDataset} = require ( './src/grantAccessToDataset' ) ;
2323const { grantAccessToTableOrView} = require ( './src/grantAccessToTableOrView' ) ;
24+ const { revokeDatasetAccess} = require ( './src/revokeDatasetAccess' ) ;
2425
2526async 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+ 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} ;
You can’t perform that action at this time.
0 commit comments