Skip to main content

workflow_invocations

Creates, updates, deletes, gets or lists a workflow_invocations resource.

Overview

Nameworkflow_invocations
TypeResource
Idgoogle.dataform.workflow_invocations

Fields

NameDatatypeDescription
namestringOutput only. The workflow invocation's name.
compilationResultstringImmutable. The name of the compilation result to use for this invocation. Must be in the format projects/*/locations/*/repositories/*/compilationResults/*.
dataEncryptionStateobjectDescribes encryption state of a resource.
invocationConfigobjectIncludes various configuration options for a workflow invocation. If both included_targets and included_tags are unset, all actions will be included.
invocationTimingobjectRepresents a time interval, encoded as a Timestamp start (inclusive) and a Timestamp end (exclusive). The start must be less than or equal to the end. When the start equals the end, the interval is empty (matches no time). When both start and end are unspecified, the interval matches any time.
resolvedCompilationResultstringOutput only. The resolved compilation result that was used to create this invocation. Will be in the format projects/*/locations/*/repositories/*/compilationResults/*.
statestringOutput only. This workflow invocation's current state.
workflowConfigstringImmutable. The name of the workflow config to invoke. Must be in the format projects/*/locations/*/repositories/*/workflowConfigs/*.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, projectsId, repositoriesId, workflowInvocationsIdFetches a single WorkflowInvocation.
listSELECTlocationsId, projectsId, repositoriesIdLists WorkflowInvocations in a given Repository.
querySELECTlocationsId, projectsId, repositoriesId, workflowInvocationsIdReturns WorkflowInvocationActions in a given WorkflowInvocation.
createINSERTlocationsId, projectsId, repositoriesIdCreates a new WorkflowInvocation in a given Repository.
deleteDELETElocationsId, projectsId, repositoriesId, workflowInvocationsIdDeletes a single WorkflowInvocation.
cancelEXEClocationsId, projectsId, repositoriesId, workflowInvocationsIdRequests cancellation of a running WorkflowInvocation.

SELECT examples

Lists WorkflowInvocations in a given Repository.

SELECT
name,
compilationResult,
dataEncryptionState,
invocationConfig,
invocationTiming,
resolvedCompilationResult,
state,
workflowConfig
FROM google.dataform.workflow_invocations
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}';

INSERT example

Use the following StackQL query and manifest file to create a new workflow_invocations resource.

/*+ create */
INSERT INTO google.dataform.workflow_invocations (
locationsId,
projectsId,
repositoriesId,
compilationResult,
workflowConfig,
invocationConfig
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ repositoriesId }}',
'{{ compilationResult }}',
'{{ workflowConfig }}',
'{{ invocationConfig }}'
;

DELETE example

Deletes the specified workflow_invocations resource.

/*+ delete */
DELETE FROM google.dataform.workflow_invocations
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}'
AND workflowInvocationsId = '{{ workflowInvocationsId }}';