轉碼器連接器

Workflows 連接器,用於定義內建函式,以便在工作流程中存取 Transcoder。

深入探索

如需包含這個程式碼範例的詳細說明文件,請參閱下列內容:

程式碼範例

YAML

# This workflow demonstrates how to use the Transcoder API connector.
# This workflow sends a List request to Transcoder API.
main:
  steps:
    - init:
        assign:
          - project: ${sys.get_env("GOOGLE_CLOUD_PROJECT_ID")}
          - location: ${sys.get_env("GOOGLE_CLOUD_LOCATION")}
    - get_list:
        call: googleapis.transcoder.v1.projects.locations.jobs.list
        args:
          parent: ${"projects/" + project + "/locations/" + location}
        result: response
    - the_end:
        return: ${response}

後續步驟

如要搜尋及篩選其他 Google Cloud 產品的程式碼範例,請參閱Google Cloud 範例瀏覽器