Skip to main content

release_configs

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

Overview

Namerelease_configs
TypeResource
Idgoogle.dataform.release_configs

Fields

NameDatatypeDescription
namestringIdentifier. The release config's name.
codeCompilationConfigobjectConfigures various aspects of Dataform code compilation.
cronSchedulestringOptional. Optional schedule (in cron format) for automatic creation of compilation results.
disabledbooleanOptional. Disables automatic creation of compilation results.
gitCommitishstringRequired. Git commit/tag/branch name at which the repository should be compiled. Must exist in the remote repository. Examples: - a commit SHA: 12ade345 - a tag: tag1 - a branch name: branch1
recentScheduledReleaseRecordsarrayOutput only. Records of the 10 most recent scheduled release attempts, ordered in in descending order of release_time. Updated whenever automatic creation of a compilation result is triggered by cron_schedule.
releaseCompilationResultstringOptional. The name of the currently released compilation result for this release config. This value is updated when a compilation result is automatically created from this release config (using cron_schedule), or when this resource is updated by API call (perhaps to roll back to an earlier release). The compilation result must have been created using this release config. Must be in the format projects/*/locations/*/repositories/*/compilationResults/*.
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.

Methods

NameAccessible byRequired ParamsDescription
getSELECTlocationsId, projectsId, releaseConfigsId, repositoriesIdFetches a single ReleaseConfig.
listSELECTlocationsId, projectsId, repositoriesIdLists ReleaseConfigs in a given Repository.
createINSERTlocationsId, projectsId, repositoriesIdCreates a new ReleaseConfig in a given Repository.
deleteDELETElocationsId, projectsId, releaseConfigsId, repositoriesIdDeletes a single ReleaseConfig.
patchUPDATElocationsId, projectsId, releaseConfigsId, repositoriesIdUpdates a single ReleaseConfig.

SELECT examples

Lists ReleaseConfigs in a given Repository.

SELECT
name,
codeCompilationConfig,
cronSchedule,
disabled,
gitCommitish,
recentScheduledReleaseRecords,
releaseCompilationResult,
timeZone
FROM google.dataform.release_configs
WHERE locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND repositoriesId = '{{ repositoriesId }}';

INSERT example

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

/*+ create */
INSERT INTO google.dataform.release_configs (
locationsId,
projectsId,
repositoriesId,
name,
gitCommitish,
codeCompilationConfig,
cronSchedule,
timeZone,
releaseCompilationResult,
disabled
)
SELECT
'{{ locationsId }}',
'{{ projectsId }}',
'{{ repositoriesId }}',
'{{ name }}',
'{{ gitCommitish }}',
'{{ codeCompilationConfig }}',
'{{ cronSchedule }}',
'{{ timeZone }}',
'{{ releaseCompilationResult }}',
{{ disabled }}
;

UPDATE example

Updates a release_configs resource.

/*+ update */
UPDATE google.dataform.release_configs
SET
name = '{{ name }}',
gitCommitish = '{{ gitCommitish }}',
codeCompilationConfig = '{{ codeCompilationConfig }}',
cronSchedule = '{{ cronSchedule }}',
timeZone = '{{ timeZone }}',
releaseCompilationResult = '{{ releaseCompilationResult }}',
disabled = true|false
WHERE
locationsId = '{{ locationsId }}'
AND projectsId = '{{ projectsId }}'
AND releaseConfigsId = '{{ releaseConfigsId }}'
AND repositoriesId = '{{ repositoriesId }}';

DELETE example

Deletes the specified release_configs resource.

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