使用golang更新BigQuery访问策略

huangapple go评论80阅读模式
英文:

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.

huangapple
  • 本文由 发表于 2022年11月4日 03:32:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/74308642.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定