【发布时间】:2019-12-29 03:53:36
【问题描述】:
我目前正在尝试使用REST API 部署一个谷歌云功能,以便监听谷歌云存储桶的更改/删除。
但是,我注意到我只能指定一个EventTrigger
{
"name": string,
"description": string,
"status": enum (CloudFunctionStatus),
"entryPoint": string,
"runtime": string,
...
"sourceUploadUrl": string
// End of list of possible types for union field source_code.
// Union field trigger can be only one of the following:
"httpsTrigger": {
object (HttpsTrigger)
},
"eventTrigger": {
object (EventTrigger)
}
// End of list of possible types for union field trigger.
}
我的选项如下choices
google.storage.object.finalize
google.storage.object.delete
google.storage.object.archive
google.storage.object.metadataUpdate
如果我想收听多个触发器(例如 google.storage.object.finalize 和 google.storage.object.delete),会发生什么?
我是否只需要部署多个云功能?
【问题讨论】:
标签: google-cloud-platform google-cloud-functions gcloud