# Grafeas V1 API - Class Grafeas::V1::ImageOccurrence (v1.9.0)

1.9.0 (latest) 1.8.0 1.7.0 1.6.0 1.5.1 1.4.0 1.3.1 1.2.0 1.1.1 1.0.0 0.16.1 0.15.0 0.14.2 0.13.0 0.12.1 0.11.0 0.10.0 0.9.0 0.8.0 0.7.0 0.6.1 0.5.0 0.4.0 0.3.1 Reference documentation and code samples for the Grafeas V1 API class Grafeas::V1::ImageOccurrence.

Details of the derived image portion of the DockerImage relationship. This
image would be produced from a Dockerfile with FROM \<DockerImage.Basis in
attached Note\>.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #base_resource_url

    def base_resource_url() -> ::String

**Returns**

- (::String) --- Output only. This contains the base image URL for the derived image occurrence.

### #base_resource_url=

    def base_resource_url=(value) -> ::String

**Parameter**

- **value** (::String) --- Output only. This contains the base image URL for the derived image occurrence.
**Returns**

- (::String) --- Output only. This contains the base image URL for the derived image occurrence.

### #distance

    def distance() -> ::Integer

**Returns**

- (::Integer) --- Output only. The number of layers by which this image differs from the associated image basis.

### #distance=

    def distance=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- Output only. The number of layers by which this image differs from the associated image basis.
**Returns**

- (::Integer) --- Output only. The number of layers by which this image differs from the associated image basis.

### #fingerprint

    def fingerprint() -> ::Grafeas::V1::Fingerprint

**Returns**

- ([::Grafeas::V1::Fingerprint](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Fingerprint)) --- Required. The fingerprint of the derived image.

### #fingerprint=

    def fingerprint=(value) -> ::Grafeas::V1::Fingerprint

**Parameter**

- **value** ([::Grafeas::V1::Fingerprint](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Fingerprint)) --- Required. The fingerprint of the derived image.
**Returns**

- ([::Grafeas::V1::Fingerprint](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-Fingerprint)) --- Required. The fingerprint of the derived image.

### #layer_info

    def layer_info() -> ::Array<::Grafeas::V1::Layer>

**Returns**

- (::Array\<[::Grafeas::V1::Layer](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-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.

### #layer_info=

    def layer_info=(value) -> ::Array<::Grafeas::V1::Layer>

**Parameter**

- **value** (::Array\<[::Grafeas::V1::Layer](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-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.
**Returns**

- (::Array\<[::Grafeas::V1::Layer](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-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.