Repository¶
-
class
oci.artifacts.models.Repository(**kwargs)¶ Bases:
objectThe metadata for the artifact repository.
Attributes
LIFECYCLE_STATE_AVAILABLEA constant which can be used with the lifecycle_state property of a Repository. LIFECYCLE_STATE_DELETEDA constant which can be used with the lifecycle_state property of a Repository. LIFECYCLE_STATE_DELETINGA constant which can be used with the lifecycle_state property of a Repository. REPOSITORY_TYPE_GENERICA constant which can be used with the repository_type property of a Repository. compartment_id[Required] Gets the compartment_id of this Repository. defined_tags[Required] Gets the defined_tags of this Repository. description[Required] Gets the description of this Repository. display_name[Required] Gets the display_name of this Repository. freeform_tags[Required] Gets the freeform_tags of this Repository. id[Required] Gets the id of this Repository. is_immutable[Required] Gets the is_immutable of this Repository. lifecycle_state[Required] Gets the lifecycle_state of this Repository. repository_type[Required] Gets the repository_type of this Repository. time_created[Required] Gets the time_created of this Repository. Methods
__init__(**kwargs)Initializes a new Repository 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. -
LIFECYCLE_STATE_AVAILABLE= 'AVAILABLE'¶ A constant which can be used with the lifecycle_state property of a Repository. This constant has a value of “AVAILABLE”
-
LIFECYCLE_STATE_DELETED= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a Repository. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a Repository. This constant has a value of “DELETING”
-
REPOSITORY_TYPE_GENERIC= 'GENERIC'¶ A constant which can be used with the repository_type property of a Repository. This constant has a value of “GENERIC”
-
__init__(**kwargs)¶ Initializes a new Repository 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 Repository.
- display_name (str) – The value to assign to the display_name property of this Repository.
- compartment_id (str) – The value to assign to the compartment_id property of this Repository.
- repository_type (str) – The value to assign to the repository_type property of this Repository. Allowed values for this property are: “GENERIC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- description (str) – The value to assign to the description property of this Repository.
- is_immutable (bool) – The value to assign to the is_immutable property of this Repository.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this 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’.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this Repository.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this Repository.
- time_created (datetime) – The value to assign to the time_created property of this Repository.
-
compartment_id¶ [Required] Gets the compartment_id of this Repository. The OCID of the repository’s compartment.
Returns: The compartment_id of this Repository. Return type: str
[Required] Gets the defined_tags of this Repository. 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 Repository. Return type: dict(str, dict(str, object))
-
description¶ [Required] Gets the description of this Repository. The repository description.
Returns: The description of this Repository. Return type: str
-
display_name¶ [Required] Gets the display_name of this Repository. The repository name.
Returns: The display_name of this Repository. Return type: str
[Required] Gets the freeform_tags of this Repository. 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 Repository. 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 Repository. The OCID of the repository.
Example: ocid1.artifactrepository.oc1..exampleuniqueID
Returns: The id of this Repository. Return type: str
-
is_immutable¶ [Required] Gets the is_immutable of this Repository. Whether the repository is immutable. The artifacts of an immutable repository cannot be overwritten.
Returns: The is_immutable of this Repository. Return type: bool
-
lifecycle_state¶ [Required] Gets the lifecycle_state of this Repository. The current state of the 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 Repository. Return type: str
-
repository_type¶ [Required] Gets the repository_type of this Repository. The repository’s supported artifact type.
Allowed values for this property are: “GENERIC”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The repository_type of this Repository. Return type: str
-
time_created¶ [Required] Gets the time_created of this Repository. An RFC 3339 timestamp indicating when the repository was created.
Returns: The time_created of this Repository. Return type: datetime
-