Transcoder API Connector Overview

The Workflows connector defines the built-in functions that can be used to access other Google Cloud products within a workflow.

This page provides an overview of the individual connector. There is no need to import or load connector libraries in a workflow—connectors work out of the box when used in a call step.

Transcoder API

This API converts video files into formats suitable for consumer distribution. For more information, see the Transcoder API overview. To learn more, see the Transcoder API documentation.

Transcoder connector sample

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}

JSON

{
  "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}"
        }
      }
    ]
  }
}

Module: googleapis.transcoder.v1.projects.locations.jobTemplates

Functions
create Creates a job template in the specified region.
delete Deletes a job template.
get Returns the job template data.
list Lists job templates in the specified region.

Module: googleapis.transcoder.v1.projects.locations.jobs

Functions
create Creates a job in the specified region.
delete Deletes a job.
get Returns the job data.
list Lists jobs in the specified region.