Dataflow REST API 的 "projects.locations.templates.create" 和 "projects.locations.templates.launch" 有什么区别?
What is difference between "projects.locations.templates.create" and "projects.locations.templates.launch" of Dataflow REST API?
我正在尝试根据来自 Cloud Scheduler 的数据流模板启动数据流作业。
下面的文档提到 API projects.templates.launch 来启动数据流作业:
https://cloud.google.com/dataflow/docs/guides/templates/running-templates
API 文档这样说 API "Launch a template.":
https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.templates/launch
但我找到了另一个 REST API projects.templates.create,它可以很好地从 Google 提供的模板启动数据流作业:
https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.templates/create
并且 API 文件说 API "Creates a Cloud Dataflow job from a template."
对我来说,这两个 API 描述看起来是一样的。
有谁知道两个API的区别?
阅读您提供的文档,不同之处在于每个方法的响应正文returns。据称:
templates.launch: 如果成功,响应正文包含一个 LaunchTemplateResponse 实例。
templates.create: 如果成功,响应正文包含一个新创建的 Job 实例。
希望对您有所帮助。
我正在尝试根据来自 Cloud Scheduler 的数据流模板启动数据流作业。
下面的文档提到 API projects.templates.launch 来启动数据流作业: https://cloud.google.com/dataflow/docs/guides/templates/running-templates
API 文档这样说 API "Launch a template.": https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.templates/launch
但我找到了另一个 REST API projects.templates.create,它可以很好地从 Google 提供的模板启动数据流作业: https://cloud.google.com/dataflow/docs/reference/rest/v1b3/projects.templates/create
并且 API 文件说 API "Creates a Cloud Dataflow job from a template."
对我来说,这两个 API 描述看起来是一样的。 有谁知道两个API的区别?
阅读您提供的文档,不同之处在于每个方法的响应正文returns。据称:
templates.launch: 如果成功,响应正文包含一个 LaunchTemplateResponse 实例。
templates.create: 如果成功,响应正文包含一个新创建的 Job 实例。
希望对您有所帮助。