Class: Google::Apis::OndemandscanningV1::ImageOccurrence
- Inherits:
-
Object
- Object
- Google::Apis::OndemandscanningV1::ImageOccurrence
- 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
Details of the derived image portion of the DockerImage relationship. This image would be produced from a Dockerfile with FROM .
Instance Attribute Summary collapse
-
#base_resource_url ⇒ String
Output only.
-
#distance ⇒ Fixnum
Output only.
-
#fingerprint ⇒ Google::Apis::OndemandscanningV1::Fingerprint
A set of properties that uniquely identify a given Docker image.
-
#layer_info ⇒ Array<Google::Apis::OndemandscanningV1::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.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ImageOccurrence
constructor
A new instance of ImageOccurrence.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ImageOccurrence
Returns a new instance of ImageOccurrence.
1515 1516 1517 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1515 def initialize(**args) update!(**args) end |
Instance Attribute Details
#base_resource_url ⇒ String
Output only. This contains the base image URL for the derived image occurrence.
Corresponds to the JSON property baseResourceUrl
1495 1496 1497 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1495 def base_resource_url @base_resource_url end |
#distance ⇒ Fixnum
Output only. The number of layers by which this image differs from the
associated image basis.
Corresponds to the JSON property distance
1501 1502 1503 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1501 def distance @distance end |
#fingerprint ⇒ Google::Apis::OndemandscanningV1::Fingerprint
A set of properties that uniquely identify a given Docker image.
Corresponds to the JSON property fingerprint
1506 1507 1508 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1506 def fingerprint @fingerprint end |
#layer_info ⇒ Array<Google::Apis::OndemandscanningV1::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
1513 1514 1515 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1513 def layer_info @layer_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1520 1521 1522 1523 1524 1525 |
# File 'lib/google/apis/ondemandscanning_v1/classes.rb', line 1520 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 |