ContainerImageLayer

class oci.artifacts.models.ContainerImageLayer(**kwargs)

Bases: object

The container image layer metadata.

Methods:

__init__(**kwargs)

Initializes a new ContainerImageLayer object with values from keyword arguments.

Attributes:

digest

[Required] Gets the digest of this ContainerImageLayer.

size_in_bytes

[Required] Gets the size_in_bytes of this ContainerImageLayer.

time_created

[Required] Gets the time_created of this ContainerImageLayer.

__init__(**kwargs)

Initializes a new ContainerImageLayer object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters
  • digest (str) – The value to assign to the digest property of this ContainerImageLayer.

  • size_in_bytes (int) – The value to assign to the size_in_bytes property of this ContainerImageLayer.

  • time_created (datetime) – The value to assign to the time_created property of this ContainerImageLayer.

property digest

[Required] Gets the digest of this ContainerImageLayer. The sha256 digest of the image layer.

Returns

The digest of this ContainerImageLayer.

Return type

str

property size_in_bytes

[Required] Gets the size_in_bytes of this ContainerImageLayer. The size of the layer in bytes.

Returns

The size_in_bytes of this ContainerImageLayer.

Return type

int

property time_created

[Required] Gets the time_created of this ContainerImageLayer. An RFC 3339 timestamp indicating when the layer was created.

Returns

The time_created of this ContainerImageLayer.

Return type

datetime