Skip to main content

workflow_configs

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

Overview

Nameworkflow_configs
TypeResource
Idgoogle.dataform.workflow_configs

Fields

NameDatatypeDescription
namestringIdentifier. The workflow config's name.
createTimestringOutput only. The timestamp of when the WorkflowConfig was created.
cronSchedulestringOptional. Optional schedule (in cron format) for automatic execution of this workflow config.
invocationConfigobjectIncludes various configuration options for a workflow invocation. If both included_targets and included_tags are unset, all actions will be included.
recentScheduledExecutionRecordsarrayOutput only. Records of the 10 most recent scheduled execution attempts, ordered in in descending order of execution_time. Updated whenever automatic creation of a workflow invocation is triggered by cron_schedule.
releaseConfigstringRequired. The name of the release config whose release_compilation_result should be executed. Must be in the format projects/*/locations/*/repositories/*/releaseConfigs/*.
timeZonestringOptional. Specifies the time zone to be used when interpreting cron_schedule. Must be a time zone name from the time zone database (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones). If left unspecified, the default is UTC.
updateTimestringOutput only. The timestamp of when the WorkflowConfig was last updated.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, projectsId, repositoriesId, workflowConfigsIdFetches a single WorkflowConfig.
listSELECTlocationsId, projectsId, repositoriesIdLists WorkflowConfigs in a given Repository.
createINSERTlocationsId, projectsId, repositoriesIdCreates a new WorkflowConfig in a given Repository.
deleteDELETElocationsId, projectsId, repositoriesId, workflowConfigsIdDeletes a single WorkflowConfig.
patchUPDATElocationsId, projectsId, repositoriesId, workflowConfigsIdUpdates a single WorkflowConfig.

SELECT examples

Lists WorkflowConfigs in a given Repository.

SELECT
name,
createTime,
cronSchedule,
invocationConfig,
recentScheduledExecutionRecords,
releaseConfig,
timeZone,
updateTime
FROM google.dataform.workflow_configs
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}';

INSERT example

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

/*+ create */
INSERT INTO google.dataform.workflow_configs (
locationsId,
projectsId,
repositoriesId,
name,
releaseConfig,
invocationConfig,
cronSchedule,
timeZone
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ repositoriesId }}',
'{{ name }}',
'{{ releaseConfig }}',
'{{ invocationConfig }}',
'{{ cronSchedule }}',
'{{ timeZone }}'
;

UPDATE example

Updates a workflow_configs resource.

/*+ update */
UPDATE google.dataform.workflow_configs
SET
name = '{{ name }}',
releaseConfig = '{{ releaseConfig }}',
invocationConfig = '{{ invocationConfig }}',
cronSchedule = '{{ cronSchedule }}',
timeZone = '{{ timeZone }}'
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}'
AND workflowConfigsId = '{{ workflowConfigsId }}';

DELETE example

Deletes the specified workflow_configs resource.

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