RepositoryBranch

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

Bases: oci.devops.models.repository_ref.RepositoryRef

Branch related information.

Attributes

REF_TYPE_BRANCH str(object=’’) -> str
REF_TYPE_TAG str(object=’’) -> str
commit_id [Required] Gets the commit_id of this RepositoryBranch.
full_ref_name [Required] Gets the full_ref_name of this RepositoryRef.
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 RepositoryBranch 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 RepositoryBranch object with values from keyword arguments. The default value of the ref_type attribute of this class is BRANCH 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 RepositoryBranch.
  • ref_type (str) – The value to assign to the ref_type property of this RepositoryBranch. Allowed values for this property are: “BRANCH”, “TAG”
  • full_ref_name (str) – The value to assign to the full_ref_name property of this RepositoryBranch.
  • repository_id (str) – The value to assign to the repository_id property of this RepositoryBranch.
  • commit_id (str) – The value to assign to the commit_id property of this RepositoryBranch.
commit_id

[Required] Gets the commit_id of this RepositoryBranch. Commit ID pointed to by the new branch.

Returns:The commit_id of this RepositoryBranch.
Return type:str
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.

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