ContainerRepository

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

Bases: object

Container repository metadata.

Attributes

LIFECYCLE_STATE_AVAILABLE A constant which can be used with the lifecycle_state property of a ContainerRepository.
LIFECYCLE_STATE_DELETED A constant which can be used with the lifecycle_state property of a ContainerRepository.
LIFECYCLE_STATE_DELETING A constant which can be used with the lifecycle_state property of a ContainerRepository.
compartment_id [Required] Gets the compartment_id of this ContainerRepository.
created_by [Required] Gets the created_by of this ContainerRepository.
display_name [Required] Gets the display_name of this ContainerRepository.
id [Required] Gets the id of this ContainerRepository.
image_count [Required] Gets the image_count of this ContainerRepository.
is_immutable [Required] Gets the is_immutable of this ContainerRepository.
is_public [Required] Gets the is_public of this ContainerRepository.
layer_count [Required] Gets the layer_count of this ContainerRepository.
layers_size_in_bytes [Required] Gets the layers_size_in_bytes of this ContainerRepository.
lifecycle_state [Required] Gets the lifecycle_state of this ContainerRepository.
readme Gets the readme of this ContainerRepository.
time_created [Required] Gets the time_created of this ContainerRepository.
time_last_pushed Gets the time_last_pushed of this ContainerRepository.

Methods

__init__(**kwargs) Initializes a new ContainerRepository object with values from keyword arguments.
LIFECYCLE_STATE_AVAILABLE = 'AVAILABLE'

A constant which can be used with the lifecycle_state property of a ContainerRepository. This constant has a value of “AVAILABLE”

LIFECYCLE_STATE_DELETED = 'DELETED'

A constant which can be used with the lifecycle_state property of a ContainerRepository. This constant has a value of “DELETED”

LIFECYCLE_STATE_DELETING = 'DELETING'

A constant which can be used with the lifecycle_state property of a ContainerRepository. This constant has a value of “DELETING”

__init__(**kwargs)

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

Parameters:
  • compartment_id (str) – The value to assign to the compartment_id property of this ContainerRepository.
  • created_by (str) – The value to assign to the created_by property of this ContainerRepository.
  • display_name (str) – The value to assign to the display_name property of this ContainerRepository.
  • id (str) – The value to assign to the id property of this ContainerRepository.
  • image_count (int) – The value to assign to the image_count property of this ContainerRepository.
  • is_immutable (bool) – The value to assign to the is_immutable property of this ContainerRepository.
  • is_public (bool) – The value to assign to the is_public property of this ContainerRepository.
  • layer_count (int) – The value to assign to the layer_count property of this ContainerRepository.
  • layers_size_in_bytes (int) – The value to assign to the layers_size_in_bytes property of this ContainerRepository.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this ContainerRepository. Allowed values for this property are: “AVAILABLE”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
  • readme (oci.artifacts.models.ContainerRepositoryReadme) – The value to assign to the readme property of this ContainerRepository.
  • time_created (datetime) – The value to assign to the time_created property of this ContainerRepository.
  • time_last_pushed (datetime) – The value to assign to the time_last_pushed property of this ContainerRepository.
compartment_id

[Required] Gets the compartment_id of this ContainerRepository. The OCID of the compartment in which the container repository exists.

Returns:The compartment_id of this ContainerRepository.
Return type:str
created_by

[Required] Gets the created_by of this ContainerRepository. The id of the user or principal that created the resource.

Returns:The created_by of this ContainerRepository.
Return type:str
display_name

[Required] Gets the display_name of this ContainerRepository. The container repository name.

Returns:The display_name of this ContainerRepository.
Return type:str
id

[Required] Gets the id of this ContainerRepository. The OCID of the container repository.

Example: ocid1.containerrepo.oc1..exampleuniqueID

Returns:The id of this ContainerRepository.
Return type:str
image_count

[Required] Gets the image_count of this ContainerRepository. Total number of images.

Returns:The image_count of this ContainerRepository.
Return type:int
is_immutable

[Required] Gets the is_immutable of this ContainerRepository. Whether the repository is immutable. Images cannot be overwritten in an immutable repository.

Returns:The is_immutable of this ContainerRepository.
Return type:bool
is_public

[Required] Gets the is_public of this ContainerRepository. Whether the repository is public. A public repository allows unauthenticated access.

Returns:The is_public of this ContainerRepository.
Return type:bool
layer_count

[Required] Gets the layer_count of this ContainerRepository. Total number of layers.

Returns:The layer_count of this ContainerRepository.
Return type:int
layers_size_in_bytes

[Required] Gets the layers_size_in_bytes of this ContainerRepository. Total storage in bytes consumed by layers.

Returns:The layers_size_in_bytes of this ContainerRepository.
Return type:int
lifecycle_state

[Required] Gets the lifecycle_state of this ContainerRepository. The current state of the container repository.

Allowed values for this property are: “AVAILABLE”, “DELETING”, “DELETED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

Returns:The lifecycle_state of this ContainerRepository.
Return type:str
readme

Gets the readme of this ContainerRepository.

Returns:The readme of this ContainerRepository.
Return type:oci.artifacts.models.ContainerRepositoryReadme
time_created

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

Returns:The time_created of this ContainerRepository.
Return type:datetime
time_last_pushed

Gets the time_last_pushed of this ContainerRepository. An RFC 3339 timestamp indicating when an image was last pushed to the repository.

Returns:The time_last_pushed of this ContainerRepository.
Return type:datetime