DiffResponse

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

Bases: object

Response object for obtaining list of changed files.

Methods:

__init__(**kwargs)

Initializes a new DiffResponse object with values from keyword arguments.

Attributes:

added_lines_count

Gets the added_lines_count of this DiffResponse.

are_all_changes_included

Gets the are_all_changes_included of this DiffResponse.

change_type_count

Gets the change_type_count of this DiffResponse.

changes

[Required] Gets the changes of this DiffResponse.

commits_ahead_count

Gets the commits_ahead_count of this DiffResponse.

commits_behind_count

Gets the commits_behind_count of this DiffResponse.

common_commit

Gets the common_commit of this DiffResponse.

deleted_lines_count

Gets the deleted_lines_count of this DiffResponse.

__init__(**kwargs)

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

Parameters
  • are_all_changes_included (bool) – The value to assign to the are_all_changes_included property of this DiffResponse.

  • change_type_count (dict(str, int)) – The value to assign to the change_type_count property of this DiffResponse.

  • common_commit (str) – The value to assign to the common_commit property of this DiffResponse.

  • commits_ahead_count (int) – The value to assign to the commits_ahead_count property of this DiffResponse.

  • commits_behind_count (int) – The value to assign to the commits_behind_count property of this DiffResponse.

  • added_lines_count (int) – The value to assign to the added_lines_count property of this DiffResponse.

  • deleted_lines_count (int) – The value to assign to the deleted_lines_count property of this DiffResponse.

  • changes (list[oci.devops.models.DiffResponseEntry]) – The value to assign to the changes property of this DiffResponse.

property added_lines_count

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

Returns

The added_lines_count of this DiffResponse.

Return type

int

property are_all_changes_included

Gets the are_all_changes_included of this DiffResponse. Boolean value to indicate if all changes are included in the response.

Returns

The are_all_changes_included of this DiffResponse.

Return type

bool

property change_type_count

Gets the change_type_count of this DiffResponse. Count of each type of change in difference.

Returns

The change_type_count of this DiffResponse.

Return type

dict(str, int)

property changes

[Required] Gets the changes of this DiffResponse. List of changes in the difference.

Returns

The changes of this DiffResponse.

Return type

list[oci.devops.models.DiffResponseEntry]

property commits_ahead_count

Gets the commits_ahead_count of this DiffResponse. The number of commits source is ahead of target by.

Returns

The commits_ahead_count of this DiffResponse.

Return type

int

property commits_behind_count

Gets the commits_behind_count of this DiffResponse. The number of commits source is behind target by.

Returns

The commits_behind_count of this DiffResponse.

Return type

int

property common_commit

Gets the common_commit of this DiffResponse. The ID of the common commit between source and target.

Returns

The common_commit of this DiffResponse.

Return type

str

property deleted_lines_count

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

Returns

The deleted_lines_count of this DiffResponse.

Return type

int