Class: Google::Apis::OndemandscanningV1beta1::Artifact

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/ondemandscanning_v1beta1/classes.rb,
lib/google/apis/ondemandscanning_v1beta1/representations.rb,
lib/google/apis/ondemandscanning_v1beta1/representations.rb

Overview

Artifact describes a build product.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Artifact

Returns a new instance of Artifact.



213
214
215
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 213

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

Instance Attribute Details

#checksumString

Hash or checksum value of a binary, or Docker Registry 2.0 digest of a container. Corresponds to the JSON property checksum

Returns:

  • (String)


196
197
198
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 196

def checksum
  @checksum
end

#idString

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

Returns:

  • (String)


202
203
204
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 202

def id
  @id
end

#namesArray<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

Returns:

  • (Array<String>)


211
212
213
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 211

def names
  @names
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



218
219
220
221
222
# File 'lib/google/apis/ondemandscanning_v1beta1/classes.rb', line 218

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