Skip to main content

compilation_results

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

Overview

Namecompilation_results
TypeResource
Idgoogle.dataform.compilation_results

Fields

The following fields are returned by SELECT queries:

Successful response

NameDatatypeDescription
namestringOutput only. The compilation result's name.
codeCompilationConfigobjectImmutable. If set, fields of code_compilation_config override the default compilation settings that are specified in dataform.json. (id: CodeCompilationConfig)
compilationErrorsarrayOutput only. Errors encountered during project compilation.
createTimestring (google-datetime)Output only. The timestamp of when the compilation result was created.
dataEncryptionStateobjectOutput only. Only set if the repository has a KMS Key. (id: DataEncryptionState)
dataformCoreVersionstringOutput only. The version of @dataform/core that was used for compilation.
gitCommitishstringImmutable. 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.
releaseConfigstringImmutable. The name of the release config to compile. Must be in the format projects/*/locations/*/repositories/*/releaseConfigs/*.
resolvedGitCommitShastringOutput only. The fully resolved Git commit SHA of the code that was compiled. Not set for compilation results whose source is a workspace.
workspacestringImmutable. The name of the workspace to compile. Must be in the format projects/*/locations/*/repositories/*/workspaces/*.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectprojectsId, locationsId, repositoriesId, compilationResultsIdFetches a single CompilationResult.
queryselectprojectsId, locationsId, repositoriesId, compilationResultsIdpageSize, pageToken, filterReturns CompilationResultActions in a given CompilationResult.
listselectprojectsId, locationsId, repositoriesIdpageSize, pageToken, orderBy, filterLists CompilationResults in a given Repository.
createinsertprojectsId, locationsId, repositoriesIdCreates a new CompilationResult in a given project and location.

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
compilationResultsIdstring
locationsIdstring
projectsIdstring
repositoriesIdstring
filterstring
orderBystring
pageSizeinteger (int32)
pageTokenstring

SELECT examples

Fetches a single CompilationResult.

SELECT
name,
codeCompilationConfig,
compilationErrors,
createTime,
dataEncryptionState,
dataformCoreVersion,
gitCommitish,
internalMetadata,
releaseConfig,
resolvedGitCommitSha,
workspace
FROM google.dataform.compilation_results
WHERE projectsId = '{{ projectsId }}' -- required
AND locationsId = '{{ locationsId }}' -- required
AND repositoriesId = '{{ repositoriesId }}' -- required
AND compilationResultsId = '{{ compilationResultsId }}' -- required;

INSERT examples

Creates a new CompilationResult in a given project and location.

INSERT INTO google.dataform.compilation_results (
data__gitCommitish,
data__workspace,
data__releaseConfig,
data__codeCompilationConfig,
projectsId,
locationsId,
repositoriesId
)
SELECT
'{{ gitCommitish }}',
'{{ workspace }}',
'{{ releaseConfig }}',
'{{ codeCompilationConfig }}',
'{{ projectsId }}',
'{{ locationsId }}',
'{{ repositoriesId }}'
RETURNING
name,
codeCompilationConfig,
compilationErrors,
createTime,
dataEncryptionState,
dataformCoreVersion,
gitCommitish,
internalMetadata,
releaseConfig,
resolvedGitCommitSha,
workspace
;