AI Platform Training 和 AI Platform Prediction 的连接器

Workflows 连接器,用于定义用于在工作流中访问 VertexAI (AI Platform) 的内置函数。

深入探索

如需查看包含此代码示例的详细文档,请参阅以下内容:

代码示例

YAML

# This workflow expects following items to be provided through input argument for execution:
#   - projectID (string)
#     - The user project ID.
#
# Expected successful output: "SUCCESS"

main:
  params: [args]
  steps:
    - init:
        assign:
          - project_id: ${args.projectID}
    - list_jobs:
        call: googleapis.ml.v1.projects.jobs.list
        args:
          parent: ${"projects/" + project_id}
        result: jobs
    - list_locations:
        call: googleapis.ml.v1.projects.locations.list
        args:
          parent: ${"projects/" + project_id}
        result: locations
    - the_end:
        return: "SUCCESS"

后续步骤

如需搜索和过滤其他 Google Cloud 产品的代码示例,请参阅 Google Cloud 示例浏览器