RepositoryTagSummary

class oci.devops.models.RepositoryTagSummary(**kwargs)

Bases: oci.devops.models.repository_ref_summary.RepositoryRefSummary

The information needed to create a lightweight tag.

Methods

__init__(**kwargs) Initializes a new RepositoryTagSummary 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

defined_tags Gets the defined_tags of this RepositoryRefSummary.
freeform_tags Gets the freeform_tags of this RepositoryRefSummary.
full_ref_name [Required] Gets the full_ref_name of this RepositoryRefSummary.
object_id [Required] Gets the object_id of this RepositoryTagSummary.
ref_name [Required] Gets the ref_name of this RepositoryRefSummary.
ref_type [Required] Gets the ref_type of this RepositoryRefSummary.
repository_id [Required] Gets the repository_id of this RepositoryRefSummary.
__init__(**kwargs)

Initializes a new RepositoryTagSummary object with values from keyword arguments. The default value of the ref_type attribute of this class is TAG and it should not be changed. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • ref_name (str) – The value to assign to the ref_name property of this RepositoryTagSummary.
  • ref_type (str) – The value to assign to the ref_type property of this RepositoryTagSummary.
  • full_ref_name (str) – The value to assign to the full_ref_name property of this RepositoryTagSummary.
  • repository_id (str) – The value to assign to the repository_id property of this RepositoryTagSummary.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this RepositoryTagSummary.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this RepositoryTagSummary.
  • object_id (str) – The value to assign to the object_id property of this RepositoryTagSummary.
defined_tags

Gets the defined_tags of this RepositoryRefSummary. Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns:The defined_tags of this RepositoryRefSummary.
Return type:dict(str, dict(str, object))
freeform_tags

Gets the freeform_tags of this RepositoryRefSummary. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {“bar-key”: “value”}

Returns:The freeform_tags of this RepositoryRefSummary.
Return type:dict(str, str)
full_ref_name

[Required] Gets the full_ref_name of this RepositoryRefSummary. Unique full reference name inside a repository.

Returns:The full_ref_name of this RepositoryRefSummary.
Return type: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.

object_id

[Required] Gets the object_id of this RepositoryTagSummary. SHA-1 hash value of the object pointed to by the tag.

Returns:The object_id of this RepositoryTagSummary.
Return type:str
ref_name

[Required] Gets the ref_name of this RepositoryRefSummary. Reference name inside a repository.

Returns:The ref_name of this RepositoryRefSummary.
Return type:str
ref_type

[Required] Gets the ref_type of this RepositoryRefSummary. The type of reference (Branch or Tag).

Returns:The ref_type of this RepositoryRefSummary.
Return type:str
repository_id

[Required] Gets the repository_id of this RepositoryRefSummary. The OCID of the repository containing the reference.

Returns:The repository_id of this RepositoryRefSummary.
Return type:str