RepositoryCommit

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

Bases: object

Commit object with commit information.

Methods

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

Attributes

author_email Gets the author_email of this RepositoryCommit.
author_name Gets the author_name of this RepositoryCommit.
commit_id [Required] Gets the commit_id of this RepositoryCommit.
commit_message [Required] Gets the commit_message of this RepositoryCommit.
committer_email Gets the committer_email of this RepositoryCommit.
committer_name Gets the committer_name of this RepositoryCommit.
parent_commit_ids Gets the parent_commit_ids of this RepositoryCommit.
time_created Gets the time_created of this RepositoryCommit.
tree_id Gets the tree_id of this RepositoryCommit.
__init__(**kwargs)

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

Parameters:
  • commit_id (str) – The value to assign to the commit_id property of this RepositoryCommit.
  • commit_message (str) – The value to assign to the commit_message property of this RepositoryCommit.
  • author_name (str) – The value to assign to the author_name property of this RepositoryCommit.
  • author_email (str) – The value to assign to the author_email property of this RepositoryCommit.
  • committer_name (str) – The value to assign to the committer_name property of this RepositoryCommit.
  • committer_email (str) – The value to assign to the committer_email property of this RepositoryCommit.
  • parent_commit_ids (list[str]) – The value to assign to the parent_commit_ids property of this RepositoryCommit.
  • time_created (datetime) – The value to assign to the time_created property of this RepositoryCommit.
  • tree_id (str) – The value to assign to the tree_id property of this RepositoryCommit.
author_email

Gets the author_email of this RepositoryCommit. Email of the author of the repository.

Returns:The author_email of this RepositoryCommit.
Return type:str
author_name

Gets the author_name of this RepositoryCommit. Name of the author of the repository.

Returns:The author_name of this RepositoryCommit.
Return type:str
commit_id

[Required] Gets the commit_id of this RepositoryCommit. Commit hash pointed to by reference name.

Returns:The commit_id of this RepositoryCommit.
Return type:str
commit_message

[Required] Gets the commit_message of this RepositoryCommit. The commit message.

Returns:The commit_message of this RepositoryCommit.
Return type:str
committer_email

Gets the committer_email of this RepositoryCommit. Email of who creates the commit.

Returns:The committer_email of this RepositoryCommit.
Return type:str
committer_name

Gets the committer_name of this RepositoryCommit. Name of who creates the commit.

Returns:The committer_name of this RepositoryCommit.
Return type:str
parent_commit_ids

Gets the parent_commit_ids of this RepositoryCommit. An array of parent commit IDs of created commit.

Returns:The parent_commit_ids of this RepositoryCommit.
Return type:list[str]
time_created

Gets the time_created of this RepositoryCommit. The time at which commit was created.

Returns:The time_created of this RepositoryCommit.
Return type:datetime
tree_id

Gets the tree_id of this RepositoryCommit. Tree information for the specified commit.

Returns:The tree_id of this RepositoryCommit.
Return type:str