GenericRepository¶
-
class
oci.artifacts.models.
GenericRepository
(**kwargs)¶ Bases:
oci.artifacts.models.repository.Repository
The metadata for the artifact repository.
Attributes
LIFECYCLE_STATE_AVAILABLE
str(object=’’) -> str LIFECYCLE_STATE_DELETED
str(object=’’) -> str LIFECYCLE_STATE_DELETING
str(object=’’) -> str REPOSITORY_TYPE_GENERIC
str(object=’’) -> str 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 GenericRepository 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'¶
-
LIFECYCLE_STATE_DELETED
= 'DELETED'¶
-
LIFECYCLE_STATE_DELETING
= 'DELETING'¶
-
REPOSITORY_TYPE_GENERIC
= 'GENERIC'¶
-
__init__
(**kwargs)¶ Initializes a new GenericRepository object with values from keyword arguments. The default value of the
repository_type
attribute of this class isGENERIC
and 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 GenericRepository.
- display_name (str) – The value to assign to the display_name property of this GenericRepository.
- compartment_id (str) – The value to assign to the compartment_id property of this GenericRepository.
- repository_type (str) – The value to assign to the repository_type property of this GenericRepository. Allowed values for this property are: “GENERIC”
- description (str) – The value to assign to the description property of this GenericRepository.
- is_immutable (bool) – The value to assign to the is_immutable property of this GenericRepository.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this GenericRepository. Allowed values for this property are: “AVAILABLE”, “DELETING”, “DELETED”
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this GenericRepository.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this GenericRepository.
- time_created (datetime) – The value to assign to the time_created property of this GenericRepository.
-
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
-