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.
defined_tags Gets the defined_tags of this RepositoryRef.
freeform_tags Gets the freeform_tags of this RepositoryRef.
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.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this RepositoryBranch.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags 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
defined_tags

Gets the defined_tags of this RepositoryRef. 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 RepositoryRef.
Return type:dict(str, dict(str, object))
freeform_tags

Gets the freeform_tags of this RepositoryRef. 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 RepositoryRef.
Return type:dict(str, 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