Cloud Build v1 API - Class SourceProvenance (2.8.0)

public sealed class SourceProvenance : IMessage<SourceProvenance>, IEquatable<SourceProvenance>, IDeepCloneable<SourceProvenance>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Build v1 API class SourceProvenance.

Provenance of the source. Ways to find the original source, or verify that some source was used for this build.

Inheritance

object > SourceProvenance

Namespace

Google.Cloud.CloudBuild.V1

Assembly

Google.Cloud.CloudBuild.V1.dll

Constructors

SourceProvenance()

public SourceProvenance()

SourceProvenance(SourceProvenance)

public SourceProvenance(SourceProvenance other)
Parameter
NameDescription
otherSourceProvenance

Properties

FileHashes

public MapField<string, FileHashes> FileHashes { get; }

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.

Property Value
TypeDescription
MapFieldstringFileHashes

ResolvedRepoSource

public RepoSource ResolvedRepoSource { get; set; }

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

Property Value
TypeDescription
RepoSource

ResolvedStorageSource

public StorageSource ResolvedStorageSource { get; set; }

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

Property Value
TypeDescription
StorageSource

ResolvedStorageSourceManifest

public StorageSourceManifest ResolvedStorageSourceManifest { get; set; }

A copy of the build's source.storage_source_manifest, if exists, with any revisions resolved. This feature is in Preview.

Property Value
TypeDescription
StorageSourceManifest