# Grafeas V1 API - Class Grafeas::V1::LayerDetails (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::LayerDetails.

Details about the layer a package was found in.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #base_images

    def base_images() -> ::Array<::Grafeas::V1::BaseImage>

**Returns**

- (::Array\<[::Grafeas::V1::BaseImage](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-BaseImage)\>) --- The base images the layer is found within.

### #base_images=

    def base_images=(value) -> ::Array<::Grafeas::V1::BaseImage>

**Parameter**

- **value** (::Array\<[::Grafeas::V1::BaseImage](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-BaseImage)\>) --- The base images the layer is found within.
**Returns**

- (::Array\<[::Grafeas::V1::BaseImage](https://docs.cloud.google.com/ruby/docs/reference/grafeas-v1/latest/Grafeas-V1-BaseImage)\>) --- The base images the layer is found within.

### #chain_id

    def chain_id() -> ::String

**Returns**

- (::String) --- The layer chain ID (sha256 hash) of the layer in the container image. https://github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid

### #chain_id=

    def chain_id=(value) -> ::String

**Parameter**

- **value** (::String) --- The layer chain ID (sha256 hash) of the layer in the container image. https://github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid
**Returns**

- (::String) --- The layer chain ID (sha256 hash) of the layer in the container image. https://github.com/opencontainers/image-spec/blob/main/config.md#layer-chainid

### #command

    def command() -> ::String

**Returns**

- (::String) --- The layer build command that was used to build the layer. This may not be found in all layers depending on how the container image is built.

### #command=

    def command=(value) -> ::String

**Parameter**

- **value** (::String) --- The layer build command that was used to build the layer. This may not be found in all layers depending on how the container image is built.
**Returns**

- (::String) --- The layer build command that was used to build the layer. This may not be found in all layers depending on how the container image is built.

### #diff_id

    def diff_id() -> ::String

**Returns**

- (::String) --- The diff ID (typically a sha256 hash) of the layer in the container image.

### #diff_id=

    def diff_id=(value) -> ::String

**Parameter**

- **value** (::String) --- The diff ID (typically a sha256 hash) of the layer in the container image.
**Returns**

- (::String) --- The diff ID (typically a sha256 hash) of the layer in the container image.

### #index

    def index() -> ::Integer

**Returns**

- (::Integer) --- The index of the layer in the container image.

### #index=

    def index=(value) -> ::Integer

**Parameter**

- **value** (::Integer) --- The index of the layer in the container image.
**Returns**

- (::Integer) --- The index of the layer in the container image.