CreateOrUpdateGitBranchDetails¶
- class oci.devops.models.CreateOrUpdateGitBranchDetails(**kwargs)¶
Bases:
CreateOrUpdateGitRefDetailsThe information needed to create a branch.
Attributes:
A constant which can be used with the ref_type property of a CreateOrUpdateGitRefDetails.
A constant which can be used with the ref_type property of a CreateOrUpdateGitRefDetails.
[Required] Gets the commit_id of this CreateOrUpdateGitBranchDetails.
[Required] Gets the ref_name of this CreateOrUpdateGitRefDetails.
[Required] Gets the ref_type of this CreateOrUpdateGitRefDetails.
Methods:
__init__(**kwargs)Initializes a new CreateOrUpdateGitBranchDetails 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'¶
A constant which can be used with the ref_type property of a CreateOrUpdateGitRefDetails. This constant has a value of “BRANCH”
- REF_TYPE_TAG = 'TAG'¶
A constant which can be used with the ref_type property of a CreateOrUpdateGitRefDetails. This constant has a value of “TAG”
- __init__(**kwargs)¶
Initializes a new CreateOrUpdateGitBranchDetails object with values from keyword arguments. The default value of the
ref_typeattribute of this class isBRANCHand 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 CreateOrUpdateGitBranchDetails.
ref_type (str) – The value to assign to the ref_type property of this CreateOrUpdateGitBranchDetails. Allowed values for this property are: “BRANCH”, “TAG”
commit_id (str) – The value to assign to the commit_id property of this CreateOrUpdateGitBranchDetails.
- property commit_id¶
[Required] Gets the commit_id of this CreateOrUpdateGitBranchDetails. Commit ID pointed to by the new branch.
- Returns
The commit_id of this CreateOrUpdateGitBranchDetails.
- 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.
- property ref_name¶
[Required] Gets the ref_name of this CreateOrUpdateGitRefDetails. The name of the reference to create or update.
- Returns
The ref_name of this CreateOrUpdateGitRefDetails.
- Return type
str
- property ref_type¶
[Required] Gets the ref_type of this CreateOrUpdateGitRefDetails. The type of reference (BRANCH or TAG).
Allowed values for this property are: “BRANCH”, “TAG”
- Returns
The ref_type of this CreateOrUpdateGitRefDetails.
- Return type
str