Google Cloud Build V1 Client - Class SourceProvenance (0.8.0)

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

Namespace

Google \ Cloud \ Build \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
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.

Returns
TypeDescription
Google\Cloud\Build\V1\StorageSource|null

hasResolvedStorageSource

clearResolvedStorageSource

setResolvedStorageSource

A copy of the build's source.storage_source, if exists, with any generations resolved.

Parameter
NameDescription
var Google\Cloud\Build\V1\StorageSource
Returns
TypeDescription
$this

getResolvedRepoSource

A copy of the build's source.repo_source, if exists, with any revisions resolved.

Returns
TypeDescription
Google\Cloud\Build\V1\RepoSource|null

hasResolvedRepoSource

clearResolvedRepoSource

setResolvedRepoSource

A copy of the build's source.repo_source, if exists, with any revisions resolved.

Parameter
NameDescription
var Google\Cloud\Build\V1\RepoSource
Returns
TypeDescription
$this

getResolvedStorageSourceManifest

A copy of the build's source.storage_source_manifest, if exists, with any revisions resolved.

This feature is in Preview.

Returns
TypeDescription
Google\Cloud\Build\V1\StorageSourceManifest|null

hasResolvedStorageSourceManifest

clearResolvedStorageSourceManifest

setResolvedStorageSourceManifest

A copy of the build's source.storage_source_manifest, if exists, with any revisions resolved.

This feature is in Preview.

Parameter
NameDescription
var Google\Cloud\Build\V1\StorageSourceManifest
Returns
TypeDescription
$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.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

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.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this