英文:
Update BigQuery access policy using golang
问题
文档中没有提到任何选项:
https://cloud.google.com/bigquery/docs/table-access-controls#update_an_access_policy
有没有任何方法可以实现这一点(类似于https://cloud.google.com/bigquery/docs/dataset-access-controls#granting_access_to_a_dataset)?
英文:
The documentation doesn't mention any options:
https://cloud.google.com/bigquery/docs/table-access-controls#update_an_access_policy
Are there any ways to achieve this (similar to https://cloud.google.com/bigquery/docs/dataset-access-controls#granting_access_to_a_dataset)?
答案1
得分: 1
https://pkg.go.dev/cloud.google.com/go/bigquery#hdr-Querying - 这不仅适用于SELECT语句。因此,通过这种方式运行"GRANT"语句可以解决我的问题。
英文:
https://pkg.go.dev/cloud.google.com/go/bigquery#hdr-Querying - this works not only with SELECT statements. So running a "GRANT" through that solves my issue.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论