GenericRepositorySummary¶
- class oci.artifacts.models.GenericRepositorySummary(**kwargs)¶
Bases:
RepositorySummarySummary information for a repository.
Methods:
__init__(**kwargs)Initializes a new GenericRepositorySummary 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:
[Required] Gets the compartment_id of this RepositorySummary.
[Required] Gets the defined_tags of this RepositorySummary.
Gets the description of this RepositorySummary.
[Required] Gets the display_name of this RepositorySummary.
[Required] Gets the freeform_tags of this RepositorySummary.
[Required] Gets the id of this RepositorySummary.
[Required] Gets the is_immutable of this RepositorySummary.
[Required] Gets the lifecycle_state of this RepositorySummary.
[Required] Gets the repository_type of this RepositorySummary.
[Required] Gets the time_created of this RepositorySummary.
- __init__(**kwargs)¶
Initializes a new GenericRepositorySummary object with values from keyword arguments. The default value of the
repository_typeattribute of this class isGENERICand it should not be changed. 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 GenericRepositorySummary.
display_name (str) – The value to assign to the display_name property of this GenericRepositorySummary.
compartment_id (str) – The value to assign to the compartment_id property of this GenericRepositorySummary.
repository_type (str) – The value to assign to the repository_type property of this GenericRepositorySummary.
description (str) – The value to assign to the description property of this GenericRepositorySummary.
is_immutable (bool) – The value to assign to the is_immutable property of this GenericRepositorySummary.
lifecycle_state (str) – The value to assign to the lifecycle_state property of this GenericRepositorySummary.
freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this GenericRepositorySummary.
defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this GenericRepositorySummary.
time_created (datetime) – The value to assign to the time_created property of this GenericRepositorySummary.
- property 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
- property 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))
- property description¶
Gets the description of this RepositorySummary. The repository description.
- Returns
The description of this RepositorySummary.
- Return type
str
- property display_name¶
[Required] Gets the display_name of this RepositorySummary. The repository name.
- Returns
The display_name of this RepositorySummary.
- Return type
str
- property 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.
- property 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
- property 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
- property 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
- property 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
- property 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