CreateRepositoryDetails¶
-
class
oci.artifacts.models.
CreateRepositoryDetails
(**kwargs)¶ Bases:
object
Parameters needed to create an artifact repository.
Methods
__init__
(**kwargs)Initializes a new CreateRepositoryDetails 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 CreateRepositoryDetails. defined_tags
Gets the defined_tags of this CreateRepositoryDetails. description
Gets the description of this CreateRepositoryDetails. display_name
Gets the display_name of this CreateRepositoryDetails. freeform_tags
Gets the freeform_tags of this CreateRepositoryDetails. is_immutable
[Required] Gets the is_immutable of this CreateRepositoryDetails. repository_type
[Required] Gets the repository_type of this CreateRepositoryDetails. -
__init__
(**kwargs)¶ Initializes a new CreateRepositoryDetails 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: - display_name (str) – The value to assign to the display_name property of this CreateRepositoryDetails.
- compartment_id (str) – The value to assign to the compartment_id property of this CreateRepositoryDetails.
- repository_type (str) – The value to assign to the repository_type property of this CreateRepositoryDetails.
- description (str) – The value to assign to the description property of this CreateRepositoryDetails.
- is_immutable (bool) – The value to assign to the is_immutable property of this CreateRepositoryDetails.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this CreateRepositoryDetails.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this CreateRepositoryDetails.
-
compartment_id
¶ [Required] Gets the compartment_id of this CreateRepositoryDetails. The OCID of the repository’s compartment.
Returns: The compartment_id of this CreateRepositoryDetails. Return type: str
Gets the defined_tags of this CreateRepositoryDetails. 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 CreateRepositoryDetails. Return type: dict(str, dict(str, object))
-
description
¶ Gets the description of this CreateRepositoryDetails. A short description of the repository. It can be updated later.
Returns: The description of this CreateRepositoryDetails. Return type: str
-
display_name
¶ Gets the display_name of this CreateRepositoryDetails. A user-friendly display name for the repository. If not present, will be auto-generated. It can be modified later. Avoid entering confidential information.
Returns: The display_name of this CreateRepositoryDetails. Return type: str
Gets the freeform_tags of this CreateRepositoryDetails. 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 CreateRepositoryDetails. 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.
-
is_immutable
¶ [Required] Gets the is_immutable of this CreateRepositoryDetails. Whether to make the repository immutable. The artifacts of an immutable repository cannot be overwritten.
Returns: The is_immutable of this CreateRepositoryDetails. Return type: bool
-
repository_type
¶ [Required] Gets the repository_type of this CreateRepositoryDetails. The repository’s supported artifact type.
Returns: The repository_type of this CreateRepositoryDetails. Return type: str
-