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 \ V1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ resolved_storage_source |
Google\Cloud\Build\V1\StorageSource
A copy of the build's |
↳ resolved_repo_source |
Google\Cloud\Build\V1\RepoSource
A copy of the build's |
↳ resolved_storage_source_manifest |
Google\Cloud\Build\V1\StorageSourceManifest
A copy of the build's |
↳ 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 |
getResolvedStorageSource
A copy of the build's source.storage_source
, if exists, with any
generations resolved.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
Google\Cloud\Build\V1\StorageSource
|
Returns | |
---|---|
Type | Description |
$this |
getResolvedRepoSource
A copy of the build's source.repo_source
, if exists, with any
revisions resolved.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
Google\Cloud\Build\V1\RepoSource
|
Returns | |
---|---|
Type | Description |
$this |
getResolvedStorageSourceManifest
A copy of the build's source.storage_source_manifest
, if exists, with any
revisions resolved.
This feature is in Preview.
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
Google\Cloud\Build\V1\StorageSourceManifest
|
Returns | |
---|---|
Type | Description |
$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 | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
var |
array|Google\Protobuf\Internal\MapField
|
Returns | |
---|---|
Type | Description |
$this |