Reference documentation and code samples for the Google Cloud Build V1 Client class SourceProvenance.
Provenance of the source. Ways to find the original source, or verify that some source was used for this build.
Generated from protobuf message google.devtools.cloudbuild.v1.SourceProvenance
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ resolved_storage_source
Google\Cloud\Build\V1\StorageSource
A copy of the build's source.storage_source
, if exists, with any generations resolved.
↳ resolved_repo_source
Google\Cloud\Build\V1\RepoSource
A copy of the build's source.repo_source
, if exists, with any revisions resolved.
↳ resolved_storage_source_manifest
Google\Cloud\Build\V1\StorageSourceManifest
A copy of the build's source.storage_source_manifest
, if exists, with any revisions resolved. This feature is in Preview.
↳ file_hashes
array| Google\Protobuf\Internal\MapField
Output only. Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. Note that FileHashes
will only be populated if BuildOptions
has requested a SourceProvenanceHash
. The keys to this map are file paths used as build source and the values contain the hash values for those files. If the build source came in a single package such as a gzipped tarfile ( .tar.gz
), the FileHash
will be for the single path to that file.
getResolvedStorageSource
A copy of the build's source.storage_source
, if exists, with any
generations resolved.
hasResolvedStorageSource
clearResolvedStorageSource
setResolvedStorageSource
A copy of the build's source.storage_source
, if exists, with any
generations resolved.
$this
getResolvedRepoSource
A copy of the build's source.repo_source
, if exists, with any
revisions resolved.
hasResolvedRepoSource
clearResolvedRepoSource
setResolvedRepoSource
A copy of the build's source.repo_source
, if exists, with any
revisions resolved.
$this
getResolvedStorageSourceManifest
A copy of the build's source.storage_source_manifest
, if exists, with any
revisions resolved.
This feature is in Preview.
hasResolvedStorageSourceManifest
clearResolvedStorageSourceManifest
setResolvedStorageSourceManifest
A copy of the build's source.storage_source_manifest
, if exists, with any
revisions resolved.
This feature is in Preview.
$this
getFileHashes
Output only. Hash(es) of the build source, which can be used to verify that
the original source integrity was maintained in the build. Note that FileHashes
will only be populated if BuildOptions
has requested a SourceProvenanceHash
.
The keys to this map are file paths used as build source and the values
contain the hash values for those files.
If the build source came in a single package such as a gzipped tarfile
( .tar.gz
), the FileHash
will be for the single path to that file.
setFileHashes
Output only. Hash(es) of the build source, which can be used to verify that
the original source integrity was maintained in the build. Note that FileHashes
will only be populated if BuildOptions
has requested a SourceProvenanceHash
.
The keys to this map are file paths used as build source and the values
contain the hash values for those files.
If the build source came in a single package such as a gzipped tarfile
( .tar.gz
), the FileHash
will be for the single path to that file.
$this