CommitInfo

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

Bases: object

Commit details that need to be used for the build run.

Methods

__init__(**kwargs) Initializes a new CommitInfo object with values from keyword arguments.

Attributes

commit_hash [Required] Gets the commit_hash of this CommitInfo.
repository_branch [Required] Gets the repository_branch of this CommitInfo.
repository_url [Required] Gets the repository_url of this CommitInfo.
__init__(**kwargs)

Initializes a new CommitInfo object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):

Parameters:
  • repository_url (str) – The value to assign to the repository_url property of this CommitInfo.
  • repository_branch (str) – The value to assign to the repository_branch property of this CommitInfo.
  • commit_hash (str) – The value to assign to the commit_hash property of this CommitInfo.
commit_hash

[Required] Gets the commit_hash of this CommitInfo. Commit hash pertinent to the repository URL and the specified branch.

Returns:The commit_hash of this CommitInfo.
Return type:str
repository_branch

[Required] Gets the repository_branch of this CommitInfo. Name of the repository branch.

Returns:The repository_branch of this CommitInfo.
Return type:str
repository_url

[Required] Gets the repository_url of this CommitInfo. Repository URL.

Returns:The repository_url of this CommitInfo.
Return type:str