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

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringIdentifier. The release config's name.
codeCompilationConfigobjectOptional. If set, fields of code_compilation_config override the default compilation settings that are specified in dataform.json. (id: CodeCompilationConfig)
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
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.
recentScheduledReleaseRecordsarrayOutput only. Records of the 10 most recent scheduled release attempts, ordered 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

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, repositoriesId, releaseConfigsIdFetches a single ReleaseConfig.
listselectprojectsId, locationsId, repositoriesIdpageSize, pageTokenLists ReleaseConfigs in a given Repository.
createinsertprojectsId, locationsId, repositoriesIdreleaseConfigIdCreates a new ReleaseConfig in a given Repository.
patchupdateprojectsId, locationsId, repositoriesId, releaseConfigsIdupdateMaskUpdates a single ReleaseConfig. 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, releaseConfigsIdDeletes a single ReleaseConfig.

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
releaseConfigsIdstring
repositoriesIdstring
pageSizeinteger (int32)
pageTokenstring
releaseConfigIdstring
updateMaskstring (google-fieldmask)

SELECT examples

Fetches a single ReleaseConfig.

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

INSERT examples

Creates a new ReleaseConfig in a given Repository.

INSERT INTO google.dataform.release_configs (
data__name,
data__gitCommitish,
data__codeCompilationConfig,
data__cronSchedule,
data__timeZone,
data__releaseCompilationResult,
data__disabled,
projectsId,
locationsId,
repositoriesId,
releaseConfigId
)
SELECT
'{{ name }}',
'{{ gitCommitish }}',
'{{ codeCompilationConfig }}',
'{{ cronSchedule }}',
'{{ timeZone }}',
'{{ releaseCompilationResult }}',
{{ disabled }},
'{{ projectsId }}',
'{{ locationsId }}',
'{{ repositoriesId }}',
'{{ releaseConfigId }}'
RETURNING
name,
codeCompilationConfig,
cronSchedule,
disabled,
gitCommitish,
internalMetadata,
recentScheduledReleaseRecords,
releaseCompilationResult,
timeZone
;

UPDATE examples

Updates a single ReleaseConfig. 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.release_configs
SET
data__name = '{{ name }}',
data__gitCommitish = '{{ gitCommitish }}',
data__codeCompilationConfig = '{{ codeCompilationConfig }}',
data__cronSchedule = '{{ cronSchedule }}',
data__timeZone = '{{ timeZone }}',
data__releaseCompilationResult = '{{ releaseCompilationResult }}',
data__disabled = {{ disabled }}
WHERE
projectsId = '{{ projectsId }}' --required
AND locationsId = '{{ locationsId }}' --required
AND repositoriesId = '{{ repositoriesId }}' --required
AND releaseConfigsId = '{{ releaseConfigsId }}' --required
AND updateMask = '{{ updateMask}}'
RETURNING
name,
codeCompilationConfig,
cronSchedule,
disabled,
gitCommitish,
internalMetadata,
recentScheduledReleaseRecords,
releaseCompilationResult,
timeZone;

DELETE examples

Deletes a single ReleaseConfig.

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