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

The following fields are returned by SELECT queries:

Successful response

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/*.
dataEncryptionStateobjectOutput only. Only set if the repository has a KMS Key. (id: DataEncryptionState)
internalMetadatastringOutput only. All the metadata information that is used internally to serve the resource. For example: timestamps, flags, status fields, etc. The format of this field is a JSON string.
invocationConfigobjectImmutable. If left unset, a default InvocationConfig will be used. (id: InvocationConfig)
invocationTimingobjectOutput only. This workflow invocation's timing details. (id: Interval)
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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, repositoriesId, workflowInvocationsIdFetches a single WorkflowInvocation.
queryselectprojectsId, locationsId, repositoriesId, workflowInvocationsIdpageSize, pageTokenReturns WorkflowInvocationActions in a given WorkflowInvocation.
listselectprojectsId, locationsId, repositoriesIdpageSize, pageToken, orderBy, filterLists WorkflowInvocations in a given Repository.
createinsertprojectsId, locationsId, repositoriesIdCreates a new WorkflowInvocation in a given Repository.
deletedeleteprojectsId, locationsId, repositoriesId, workflowInvocationsIdDeletes a single WorkflowInvocation.
cancelexecprojectsId, locationsId, repositoriesId, workflowInvocationsIdRequests cancellation of a running WorkflowInvocation.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
locationsIdstring
projectsIdstring
repositoriesIdstring
workflowInvocationsIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Fetches a single WorkflowInvocation.

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

INSERT examples

Creates a new WorkflowInvocation in a given Repository.

INSERT INTO google.dataform.workflow_invocations (
data__compilationResult,
data__workflowConfig,
data__invocationConfig,
projectsId,
locationsId,
repositoriesId
)
SELECT
'{{ compilationResult }}',
'{{ workflowConfig }}',
'{{ invocationConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ repositoriesId }}'
RETURNING
name,
compilationResult,
dataEncryptionState,
internalMetadata,
invocationConfig,
invocationTiming,
resolvedCompilationResult,
state,
workflowConfig
;

DELETE examples

Deletes a single WorkflowInvocation.

DELETE FROM google.dataform.workflow_invocations
WHERE projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND repositoriesId = '{{ repositoriesId }}' --required
AND workflowInvocationsId = '{{ workflowInvocationsId }}' --required;

Lifecycle Methods

Requests cancellation of a running WorkflowInvocation.

EXEC google.dataform.workflow_invocations.cancel 
@projectsId='{{ projectsId }}' --required,
@locationsId='{{ locationsId }}' --required,
@repositoriesId='{{ repositoriesId }}' --required,
@workflowInvocationsId='{{ workflowInvocationsId }}' --required;