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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The workflow config's name.
createTimestring (google-datetime)Output only. The timestamp of when the WorkflowConfig was created.
cronSchedulestringOptional. Optional schedule (in cron format) for automatic execution of this workflow config.
disabledbooleanOptional. Disables automatic creation of workflow invocations.
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.
invocationConfigobjectOptional. If left unset, a default InvocationConfig will be used. (id: InvocationConfig)
recentScheduledExecutionRecordsarrayOutput only. Records of the 10 most recent scheduled execution attempts, ordered 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.
updateTimestring (google-datetime)Output only. The timestamp of when the WorkflowConfig was last updated.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, repositoriesId, workflowConfigsIdFetches a single WorkflowConfig.
listselectprojectsId, locationsId, repositoriesIdpageSize, pageTokenLists WorkflowConfigs in a given Repository.
createinsertprojectsId, locationsId, repositoriesIdworkflowConfigIdCreates a new WorkflowConfig in a given Repository.
patchupdateprojectsId, locationsId, repositoriesId, workflowConfigsIdupdateMaskUpdates a single WorkflowConfig. Note: This method does not fully implement AIP/134. The wildcard entry (*) is treated as a bad request, and when the field_mask is omitted, the request is treated as a full update on all modifiable fields.
deletedeleteprojectsId, locationsId, repositoriesId, workflowConfigsIdDeletes a single WorkflowConfig.

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
workflowConfigsIdstring
pageSizeinteger (int32)
pageTokenstring
updateMaskstring (google-fieldmask)
workflowConfigIdstring

SELECT examples

Fetches a single WorkflowConfig.

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

INSERT examples

Creates a new WorkflowConfig in a given Repository.

INSERT INTO google.dataform.workflow_configs (
data__name,
data__releaseConfig,
data__invocationConfig,
data__cronSchedule,
data__timeZone,
data__disabled,
projectsId,
locationsId,
repositoriesId,
workflowConfigId
)
SELECT
'{{ name }}',
'{{ releaseConfig }}',
'{{ invocationConfig }}',
'{{ cronSchedule }}',
'{{ timeZone }}',
{{ disabled }},
'{{ projectsId }}',
'{{ locationsId }}',
'{{ repositoriesId }}',
'{{ workflowConfigId }}'
RETURNING
name,
createTime,
cronSchedule,
disabled,
internalMetadata,
invocationConfig,
recentScheduledExecutionRecords,
releaseConfig,
timeZone,
updateTime
;

UPDATE examples

Updates a single WorkflowConfig. Note: This method does not fully implement AIP/134. The wildcard entry (*) is treated as a bad request, and when the field_mask is omitted, the request is treated as a full update on all modifiable fields.

UPDATE google.dataform.workflow_configs
SET
data__name = '{{ name }}',
data__releaseConfig = '{{ releaseConfig }}',
data__invocationConfig = '{{ invocationConfig }}',
data__cronSchedule = '{{ cronSchedule }}',
data__timeZone = '{{ timeZone }}',
data__disabled = {{ disabled }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND repositoriesId = '{{ repositoriesId }}' --required
AND workflowConfigsId = '{{ workflowConfigsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
createTime,
cronSchedule,
disabled,
internalMetadata,
invocationConfig,
recentScheduledExecutionRecords,
releaseConfig,
timeZone,
updateTime;

DELETE examples

Deletes a single WorkflowConfig.

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