RepositoryBranchSummary¶
-
class
oci.devops.models.
RepositoryBranchSummary
(**kwargs)¶ Bases:
oci.devops.models.repository_ref_summary.RepositoryRefSummary
Branch related information.
Methods
__init__
(**kwargs)Initializes a new RepositoryBranchSummary 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. Attributes
commit_id
[Required] Gets the commit_id of this RepositoryBranchSummary. defined_tags
Gets the defined_tags of this RepositoryRefSummary. freeform_tags
Gets the freeform_tags of this RepositoryRefSummary. full_ref_name
[Required] Gets the full_ref_name of this RepositoryRefSummary. ref_name
[Required] Gets the ref_name of this RepositoryRefSummary. ref_type
[Required] Gets the ref_type of this RepositoryRefSummary. repository_id
[Required] Gets the repository_id of this RepositoryRefSummary. system_tags
Gets the system_tags of this RepositoryRefSummary. -
__init__
(**kwargs)¶ Initializes a new RepositoryBranchSummary object with values from keyword arguments. The default value of the
ref_type
attribute of this class isBRANCH
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 RepositoryBranchSummary.
- ref_type (str) – The value to assign to the ref_type property of this RepositoryBranchSummary.
- full_ref_name (str) – The value to assign to the full_ref_name property of this RepositoryBranchSummary.
- repository_id (str) – The value to assign to the repository_id property of this RepositoryBranchSummary.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this RepositoryBranchSummary.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this RepositoryBranchSummary.
- system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this RepositoryBranchSummary.
- commit_id (str) – The value to assign to the commit_id property of this RepositoryBranchSummary.
-
commit_id
¶ [Required] Gets the commit_id of this RepositoryBranchSummary. Commit ID pointed to by the new branch.
Returns: The commit_id of this RepositoryBranchSummary. Return type: str
Gets the defined_tags of this RepositoryRefSummary. 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 RepositoryRefSummary. Return type: dict(str, dict(str, object))
Gets the freeform_tags of this RepositoryRefSummary. 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 RepositoryRefSummary. Return type: dict(str, str)
-
full_ref_name
¶ [Required] Gets the full_ref_name of this RepositoryRefSummary. Unique full reference name inside a repository.
Returns: The full_ref_name of this RepositoryRefSummary. 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 RepositoryRefSummary. Reference name inside a repository.
Returns: The ref_name of this RepositoryRefSummary. Return type: str
-
ref_type
¶ [Required] Gets the ref_type of this RepositoryRefSummary. The type of reference (BRANCH or TAG).
Returns: The ref_type of this RepositoryRefSummary. Return type: str
-
repository_id
¶ [Required] Gets the repository_id of this RepositoryRefSummary. The OCID of the repository containing the reference.
Returns: The repository_id of this RepositoryRefSummary. Return type: str
Gets the system_tags of this RepositoryRefSummary. Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}
Returns: The system_tags of this RepositoryRefSummary. Return type: dict(str, dict(str, object))
-