class Google::Apis::ContaineranalysisV1alpha1::Artifact

Artifact describes a build product.

Attributes

checksum[RW]

Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. Corresponds to the JSON property `checksum` @return [String]

id[RW]

Artifact ID, if any; for container images, this will be a URL by digest like sha256 at gcr.io/projectID/imagename:123456 Corresponds to the JSON property `id` @return [String]

name[RW]

Name of the artifact. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. This field is deprecated in favor of the plural `names` field; it continues to exist here to allow existing BuildProvenance serialized to json in google.devtools. containeranalysis.v1alpha1.BuildDetails.provenance_bytes to deserialize back into proto. Corresponds to the JSON property `name` @return [String]

names[RW]

Related artifact names. This may be the path to a binary or jar file, or in the case of a container build, the name used to push the container image to Google Container Registry, as presented to `docker push`. Note that a single Artifact ID can have multiple names, for example if two tags are applied to one image. Corresponds to the JSON property `names` @return [Array<String>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/containeranalysis_v1alpha1/classes.rb, line 61
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_v1alpha1/classes.rb, line 66
def update!(**args)
  @checksum = args[:checksum] if args.key?(:checksum)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
  @names = args[:names] if args.key?(:names)
end