RepositorySummary

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

Bases: object

Summary information for a repository.

Methods

__init__(**kwargs) Initializes a new RepositorySummary object with values from keyword arguments.
get_subtype(object_dictionary) Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

Attributes

compartment_id [Required] Gets the compartment_id of this RepositorySummary.
defined_tags [Required] Gets the defined_tags of this RepositorySummary.
description Gets the description of this RepositorySummary.
display_name [Required] Gets the display_name of this RepositorySummary.
freeform_tags [Required] Gets the freeform_tags of this RepositorySummary.
id [Required] Gets the id of this RepositorySummary.
is_immutable [Required] Gets the is_immutable of this RepositorySummary.
lifecycle_state [Required] Gets the lifecycle_state of this RepositorySummary.
repository_type [Required] Gets the repository_type of this RepositorySummary.
time_created [Required] Gets the time_created of this RepositorySummary.
__init__(**kwargs)

Initializes a new RepositorySummary object with values from keyword arguments. This class has the following subclasses and if you are using this class as input to a service operations then you should favor using a subclass over the base class:

The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • id (str) – The value to assign to the id property of this RepositorySummary.
  • display_name (str) – The value to assign to the display_name property of this RepositorySummary.
  • compartment_id (str) – The value to assign to the compartment_id property of this RepositorySummary.
  • repository_type (str) – The value to assign to the repository_type property of this RepositorySummary.
  • description (str) – The value to assign to the description property of this RepositorySummary.
  • is_immutable (bool) – The value to assign to the is_immutable property of this RepositorySummary.
  • lifecycle_state (str) – The value to assign to the lifecycle_state property of this RepositorySummary.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this RepositorySummary.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this RepositorySummary.
  • time_created (datetime) – The value to assign to the time_created property of this RepositorySummary.
compartment_id

[Required] Gets the compartment_id of this RepositorySummary. The OCID of the repository’s compartment.

Returns:The compartment_id of this RepositorySummary.
Return type:str
defined_tags

[Required] Gets the defined_tags of this RepositorySummary. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.

Example: {“Operations”: {“CostCenter”: “42”}}

Returns:The defined_tags of this RepositorySummary.
Return type:dict(str, dict(str, object))
description

Gets the description of this RepositorySummary. The repository description.

Returns:The description of this RepositorySummary.
Return type:str
display_name

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

Returns:The display_name of this RepositorySummary.
Return type:str
freeform_tags

[Required] Gets the freeform_tags of this RepositorySummary. Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.

Example: {“Department”: “Finance”}

Returns:The freeform_tags of this RepositorySummary.
Return type:dict(str, str)
static get_subtype(object_dictionary)

Given the hash representation of a subtype of this class, use the info in the hash to return the class of the subtype.

id

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

Example: ocid1.artifactrepository.oc1..exampleuniqueID

Returns:The id of this RepositorySummary.
Return type:str
is_immutable

[Required] Gets the is_immutable of this RepositorySummary. Whether the repository is immutable. The artifacts of an immutable repository cannot be overwritten.

Returns:The is_immutable of this RepositorySummary.
Return type:bool
lifecycle_state

[Required] Gets the lifecycle_state of this RepositorySummary. The current state of the artifact repository.

Returns:The lifecycle_state of this RepositorySummary.
Return type:str
repository_type

[Required] Gets the repository_type of this RepositorySummary. The repository’s supported artifact type.

Returns:The repository_type of this RepositorySummary.
Return type:str
time_created

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

Returns:The time_created of this RepositorySummary.
Return type:datetime