DiffResponseEntry

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

Bases: object

Entry for description of change on a file.

Methods

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

Attributes

added_lines_count Gets the added_lines_count of this DiffResponseEntry.
are_conflicts_in_file Gets the are_conflicts_in_file of this DiffResponseEntry.
change_type [Required] Gets the change_type of this DiffResponseEntry.
commit_id Gets the commit_id of this DiffResponseEntry.
deleted_lines_count Gets the deleted_lines_count of this DiffResponseEntry.
new_id Gets the new_id of this DiffResponseEntry.
new_path Gets the new_path of this DiffResponseEntry.
object_type Gets the object_type of this DiffResponseEntry.
old_id Gets the old_id of this DiffResponseEntry.
old_path Gets the old_path of this DiffResponseEntry.
url Gets the url of this DiffResponseEntry.
__init__(**kwargs)

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

Parameters:
  • change_type (str) – The value to assign to the change_type property of this DiffResponseEntry.
  • object_type (str) – The value to assign to the object_type property of this DiffResponseEntry.
  • commit_id (str) – The value to assign to the commit_id property of this DiffResponseEntry.
  • old_path (str) – The value to assign to the old_path property of this DiffResponseEntry.
  • new_path (str) – The value to assign to the new_path property of this DiffResponseEntry.
  • old_id (str) – The value to assign to the old_id property of this DiffResponseEntry.
  • new_id (str) – The value to assign to the new_id property of this DiffResponseEntry.
  • url (str) – The value to assign to the url property of this DiffResponseEntry.
  • added_lines_count (int) – The value to assign to the added_lines_count property of this DiffResponseEntry.
  • deleted_lines_count (int) – The value to assign to the deleted_lines_count property of this DiffResponseEntry.
  • are_conflicts_in_file (bool) – The value to assign to the are_conflicts_in_file property of this DiffResponseEntry.
added_lines_count

Gets the added_lines_count of this DiffResponseEntry. The number of lines added in whole difference.

Returns:The added_lines_count of this DiffResponseEntry.
Return type:int
are_conflicts_in_file

Gets the are_conflicts_in_file of this DiffResponseEntry. Indicates whether the changed file contains conflicts.

Returns:The are_conflicts_in_file of this DiffResponseEntry.
Return type:bool
change_type

[Required] Gets the change_type of this DiffResponseEntry. Type of change made to file.

Returns:The change_type of this DiffResponseEntry.
Return type:str
commit_id

Gets the commit_id of this DiffResponseEntry. The ID of the commit where the change is coming from.

Returns:The commit_id of this DiffResponseEntry.
Return type:str
deleted_lines_count

Gets the deleted_lines_count of this DiffResponseEntry. The number of lines deleted in whole difference.

Returns:The deleted_lines_count of this DiffResponseEntry.
Return type:int
new_id

Gets the new_id of this DiffResponseEntry. The ID of the changed object on the source.

Returns:The new_id of this DiffResponseEntry.
Return type:str
new_path

Gets the new_path of this DiffResponseEntry. The path on the source to the changed object.

Returns:The new_path of this DiffResponseEntry.
Return type:str
object_type

Gets the object_type of this DiffResponseEntry. The type of the changed object.

Returns:The object_type of this DiffResponseEntry.
Return type:str
old_id

Gets the old_id of this DiffResponseEntry. The ID of the changed object on the target.

Returns:The old_id of this DiffResponseEntry.
Return type:str
old_path

Gets the old_path of this DiffResponseEntry. The path on the target to the changed object.

Returns:The old_path of this DiffResponseEntry.
Return type:str
url

Gets the url of this DiffResponseEntry. The URL of the changed object.

Returns:The url of this DiffResponseEntry.
Return type:str