Class: Google::Apis::ContaineranalysisV1alpha1::Basis

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

Overview

Basis describes the base image portion (Note) of the DockerImage relationship. Linked occurrences are derived from this or an equivalent image via: FROM Or an equivalent reference, e.g. a tag of the resource_url.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Basis

Returns a new instance of Basis.



271
272
273
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 271

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

Instance Attribute Details

#fingerprintGoogle::Apis::ContaineranalysisV1alpha1::Fingerprint

A set of properties that uniquely identify a given Docker image. Corresponds to the JSON property fingerprint



263
264
265
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 263

def fingerprint
  @fingerprint
end

#resource_urlString

The resource_url for the resource representing the basis of associated occurrence images. Corresponds to the JSON property resourceUrl

Returns:

  • (String)


269
270
271
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 269

def resource_url
  @resource_url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



276
277
278
279
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 276

def update!(**args)
  @fingerprint = args[:fingerprint] if args.key?(:fingerprint)
  @resource_url = args[:resource_url] if args.key?(:resource_url)
end