Class: Google::Apis::ContaineranalysisV1alpha1::Derived

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

Derived describes the derived image portion (Occurrence) of the DockerImage relationship. This image would be produced from a Dockerfile with FROM .

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Derived

Returns a new instance of Derived.



3001
3002
3003
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3001

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

Instance Attribute Details

#base_resource_urlString

Output only. This contains the base image URL for the derived image occurrence. Corresponds to the JSON property baseResourceUrl

Returns:

  • (String)


2981
2982
2983
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2981

def base_resource_url
  @base_resource_url
end

#distanceFixnum

Output only. The number of layers by which this image differs from the associated image basis. Corresponds to the JSON property distance

Returns:

  • (Fixnum)


2987
2988
2989
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2987

def distance
  @distance
end

#fingerprintGoogle::Apis::ContaineranalysisV1alpha1::Fingerprint

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



2992
2993
2994
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2992

def fingerprint
  @fingerprint
end

#layer_infoArray<Google::Apis::ContaineranalysisV1alpha1::Layer>

This contains layer-specific metadata, if populated it has length "distance" and is ordered with [distance] being the layer immediately following the base image and [1] being the final layer. Corresponds to the JSON property layerInfo



2999
3000
3001
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 2999

def layer_info
  @layer_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3006
3007
3008
3009
3010
3011
# File 'lib/google/apis/containeranalysis_v1alpha1/classes.rb', line 3006

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