RepositoryTag

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

Bases: oci.devops.models.repository_ref.RepositoryRef

The information needed to create a lightweight tag.

Attributes

REF_TYPE_BRANCH str(object=’’) -> str
REF_TYPE_TAG str(object=’’) -> str
full_ref_name [Required] Gets the full_ref_name of this RepositoryRef.
object_id [Required] Gets the object_id of this RepositoryTag.
ref_name [Required] Gets the ref_name of this RepositoryRef.
ref_type [Required] Gets the ref_type of this RepositoryRef.
repository_id [Required] Gets the repository_id of this RepositoryRef.

Methods

__init__(**kwargs) Initializes a new RepositoryTag 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.
REF_TYPE_BRANCH = 'BRANCH'
REF_TYPE_TAG = 'TAG'
__init__(**kwargs)

Initializes a new RepositoryTag 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 RepositoryTag.
  • ref_type (str) – The value to assign to the ref_type property of this RepositoryTag. Allowed values for this property are: “BRANCH”, “TAG”
  • full_ref_name (str) – The value to assign to the full_ref_name property of this RepositoryTag.
  • repository_id (str) – The value to assign to the repository_id property of this RepositoryTag.
  • object_id (str) – The value to assign to the object_id property of this RepositoryTag.
full_ref_name

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

Returns:The full_ref_name of this RepositoryRef.
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 RepositoryTag. SHA-1 hash value of the object pointed to by the tag.

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

[Required] Gets the ref_name of this RepositoryRef. Unique reference name inside a repository.

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

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

Allowed values for this property are: “BRANCH”, “TAG”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.

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

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

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