PutRepositoryBranchDetails

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

Bases: oci.devops.models.put_repository_ref_details.PutRepositoryRefDetails

The information needed to create a branch.

Attributes

REF_TYPE_BRANCH str(object=’’) -> str
REF_TYPE_TAG str(object=’’) -> str
commit_id [Required] Gets the commit_id of this PutRepositoryBranchDetails.
ref_type [Required] Gets the ref_type of this PutRepositoryRefDetails.

Methods

__init__(**kwargs) Initializes a new PutRepositoryBranchDetails 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 PutRepositoryBranchDetails 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_type (str) – The value to assign to the ref_type property of this PutRepositoryBranchDetails. Allowed values for this property are: “BRANCH”, “TAG”
  • commit_id (str) – The value to assign to the commit_id property of this PutRepositoryBranchDetails.
commit_id

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

Returns:The commit_id of this PutRepositoryBranchDetails.
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_type

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

Allowed values for this property are: “BRANCH”, “TAG”

Returns:The ref_type of this PutRepositoryRefDetails.
Return type:str