class Google::Apis::ContaineranalysisV1::Source

Source describes the location of the source used for the build.

Attributes

additional_contexts[RW]

If provided, some of the source code used for the build may be found in these locations, in the case where the source repository had multiple remotes or submodules. This list will not include the context specified in the context field. Corresponds to the JSON property ‘additionalContexts` @return [Array<Google::Apis::ContaineranalysisV1::SourceContext>]

artifact_storage_source_uri[RW]

If provided, the input binary artifacts for the build came from this location. Corresponds to the JSON property ‘artifactStorageSourceUri` @return [String]

context[RW]

A SourceContext is a reference to a tree of files. A SourceContext together with a path point to a unique revision of a single file or directory. Corresponds to the JSON property ‘context` @return [Google::Apis::ContaineranalysisV1::SourceContext]

file_hashes[RW]

Hash(es) of the build source, which can be used to verify that the original source integrity was maintained in the build. 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` @return [Hash<String,Google::Apis::ContaineranalysisV1::FileHashes>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/containeranalysis_v1/classes.rb, line 4433
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/containeranalysis_v1/classes.rb, line 4438
def update!(**args)
  @additional_contexts = args[:additional_contexts] if args.key?(:additional_contexts)
  @artifact_storage_source_uri = args[:artifact_storage_source_uri] if args.key?(:artifact_storage_source_uri)
  @context = args[:context] if args.key?(:context)
  @file_hashes = args[:file_hashes] if args.key?(:file_hashes)
end