Google Functions with YAML
List of YAML parameters and examples for the "Google Functions" action
提示
YAML parameters for Google Functions
名称 | 类型 | 描述 |
---|---|---|
action 必填 | String | 操作名称 |
type 必填 | String | The type of the action. Should be set to GOOGLE_FUNCTION_INVOKE . |
function_name 必填 | String | The name of the Google function. |
integration_hash 必填 | String | The ID of the integration. |
application_id 必填 | String | The id of the Google Cloud project. |
payload | String | The JSON that will be provided as input to the Google function. |
region | String | Region in which function can be found or will be created. |
YAML example for Google Functions
actions:
- action: "Invoke function hello-world-0"
type: "GOOGLE_FUNCTION_INVOKE"
application_id: "hello-world"
region: "europe-west3"
function_name: "hello-world-0"
payload: "{\r\n \"revision\": \"$BUDDY_EXECUTION_REVISION\",\r\n \"message\": \"$BUDDY_EXECUTION_REVISION_MESSAGE\",\r\n \"pipelineId\": \"$BUDDY_PIPELINE_ID\",\r\n \"id\": \"$BUDDY_EXECUTION_ID\"\r\n}"
integration_hash: "5ddb7c180fb38be67bd78a88a"