google bigquery api 是否有 "create view" 选项?

Does the google bigquery api have a "create view" option?

我想在 php 中使用 google 的 bigquery API 创建一个视图。我查看了 GBQ API 文档,网址为:

https://cloud.google.com/bigquery/docs/reference/v2/

而且看起来不太可能。但是,bq 命令行界面允许您创建视图,如下例所示:

bq mk --view='select title from [publicdata:samples.wikipedia] where contributor_id = 3894110' dataset_id.table_id

您可以使用 Tables.insert API with view.query 属性