Class: Google::Apis::OndemandscanningV1::Artifact
- Inherits:
-
Object
- Object
- Google::Apis::OndemandscanningV1::Artifact
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/ondemandscanning_v1/classes.rb,
lib/google/apis/ondemandscanning_v1/representations.rb,
lib/google/apis/ondemandscanning_v1/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
. -
#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.
221 222 223 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 221 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
204 205 206 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 204 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
210 211 212 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 210 def id @id 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
219 220 221 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 219 def names @names end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
226 227 228 229 230 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 226 def update!(**args) @checksum = args[:checksum] if args.key?(:checksum) @id = args[:id] if args.key?(:id) @names = args[:names] if args.key?(:names) end |