Class: Google::Apis::ContaineranalysisV1alpha1::Artifact
- Inherits:
-
Object
- Object
- Google::Apis::ContaineranalysisV1alpha1::Artifact
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- generated/google/apis/containeranalysis_v1alpha1/classes.rb,
generated/google/apis/containeranalysis_v1alpha1/representations.rb,
generated/google/apis/containeranalysis_v1alpha1/representations.rb
Overview
Artifact describes a build product.
Instance Attribute Summary collapse
-
#checksum ⇒ String
Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container.
-
#id ⇒ String
Artifact ID, if any; for container images, this will be a URL by digest like gcr.io/projectID/imagename@sha256:123456 Corresponds to the JSON property
id
. -
#name ⇒ String
Name of the artifact.
-
#names ⇒ Array<String>
Related artifact names.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Artifact
constructor
A new instance of Artifact.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Artifact
Returns a new instance of Artifact.
61 62 63 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 61 def initialize(**args) update!(**args) end |
Instance Attribute Details
#checksum ⇒ String
Hash or checksum value of a binary, or Docker Registry 2.0 digest of a
container.
Corresponds to the JSON property checksum
33 34 35 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 33 def checksum @checksum end |
#id ⇒ String
Artifact ID, if any; for container images, this will be a URL by digest like
gcr.io/projectID/imagename@sha256:123456
Corresponds to the JSON property id
39 40 41 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 39 def id @id end |
#name ⇒ String
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
50 51 52 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 50 def name @name end |
#names ⇒ Array<String>
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
59 60 61 |
# File 'generated/google/apis/containeranalysis_v1alpha1/classes.rb', line 59 def names @names end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
66 67 68 69 70 71 |
# File 'generated/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 |