我想在本地测试 BigQuery DataTransfer API,但遇到库问题:
client = bigquery_datatransfer_v1.DataTransferServiceClient()
projectid = 'MyProjectID'
transferid = 'MyTransferID'
parent = client.transfer_config_path(projectid, transferid)
start_time = bigquery_datatransfer_v1.types.Timestamp(seconds=int(time.time() + 10))
response = client.start_manual_transfer_runs(parent, requested_run_time=start_time)
print(response)
以下是遇到的问题:
Module 'google.cloud.bigquery_datatransfer_v1.types' has no 'Timestamp'
和 :
Unexpected keyword argument 'requested_run_time' in method call