GCPのcloudfunctionを使ってBigQueryのScheduled Queryに接続してlistを表示させようとしています。
チュートリアルにある下記のコードを使ったのですが、
python
1from google.cloud import bigquery 2from google.cloud import bigquery_datatransfer 3 4def main(event, context): 5 # Construct a BigQuery client object. 6 transfer_client = bigquery_datatransfer.DataTransferServiceClient() 7 8 project_id = "my-project" 9 parent = transfer_client.common_project_path(project_id) 10 11 configs = transfer_client.list_transfer_configs(parent=parent) 12 print("Got the following configs:") 13 for config in configs: 14 print(f"\tID: {config.name}, Schedule: {config.schedule}")
下記のようにlocationがusのものしか取得できません。asia-northeast1のlistを取得するにはどのように上記のコードを変更すればよろしいでしょうか
Cloufunctionのリージョンをasia-northeast1で実施しております。
D: projects/111111111111111/locations/us/transferConfigs/6146f076-0000-20e1-xxxxxxxxxxx , Schedule: every day 16:00
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。