Class: Google::Apis::CloudbuildV1::SourceProvenance

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
generated/google/apis/cloudbuild_v1/classes.rb,
generated/google/apis/cloudbuild_v1/representations.rb,
generated/google/apis/cloudbuild_v1/representations.rb

Overview

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Google::Apis::Core::JsonObjectSupport

#to_json

Methods included from Google::Apis::Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ SourceProvenance

Returns a new instance of SourceProvenance



1051
1052
1053
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1051

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#file_hashesHash<String,Google::Apis::CloudbuildV1::FileHashes>

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. Corresponds to the JSON property fileHashes

Returns:



1039
1040
1041
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1039

def file_hashes
  @file_hashes
end

#resolved_repo_sourceGoogle::Apis::CloudbuildV1::RepoSource

Location of the source in a Google Cloud Source Repository. Corresponds to the JSON property resolvedRepoSource



1044
1045
1046
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1044

def resolved_repo_source
  @resolved_repo_source
end

#resolved_storage_sourceGoogle::Apis::CloudbuildV1::StorageSource

Location of the source in an archive file in Google Cloud Storage. Corresponds to the JSON property resolvedStorageSource



1049
1050
1051
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1049

def resolved_storage_source
  @resolved_storage_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1056
1057
1058
1059
1060
# File 'generated/google/apis/cloudbuild_v1/classes.rb', line 1056

def update!(**args)
  @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
  @resolved_repo_source = args[:resolved_repo_source] if args.key?(:resolved_repo_source)
  @resolved_storage_source = args[:resolved_storage_source] if args.key?(:resolved_storage_source)
end