FileDiffResponse¶
- class oci.devops.models.FileDiffResponse(**kwargs)¶
Bases:
objectResponse object for showing differences for a file between two commits.
Methods:
__init__(**kwargs)Initializes a new FileDiffResponse object with values from keyword arguments.
Attributes:
Gets the are_conflicts_in_file of this FileDiffResponse.
[Required] Gets the changes of this FileDiffResponse.
Gets the is_binary of this FileDiffResponse.
Gets the is_large of this FileDiffResponse.
Gets the new_id of this FileDiffResponse.
Gets the new_path of this FileDiffResponse.
Gets the old_id of this FileDiffResponse.
Gets the old_path of this FileDiffResponse.
- __init__(**kwargs)¶
Initializes a new FileDiffResponse object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
old_path (str) – The value to assign to the old_path property of this FileDiffResponse.
new_path (str) – The value to assign to the new_path property of this FileDiffResponse.
old_id (str) – The value to assign to the old_id property of this FileDiffResponse.
new_id (str) – The value to assign to the new_id property of this FileDiffResponse.
are_conflicts_in_file (bool) – The value to assign to the are_conflicts_in_file property of this FileDiffResponse.
is_large (bool) – The value to assign to the is_large property of this FileDiffResponse.
is_binary (bool) – The value to assign to the is_binary property of this FileDiffResponse.
changes (list[oci.devops.models.DiffChunk]) – The value to assign to the changes property of this FileDiffResponse.
- property are_conflicts_in_file¶
Gets the are_conflicts_in_file of this FileDiffResponse. Indicates whether the changed file contains conflicts.
- Returns
The are_conflicts_in_file of this FileDiffResponse.
- Return type
bool
- property changes¶
[Required] Gets the changes of this FileDiffResponse. List of changed section in the file.
- Returns
The changes of this FileDiffResponse.
- Return type
- property is_binary¶
Gets the is_binary of this FileDiffResponse. Indicates whether the file is binary.
- Returns
The is_binary of this FileDiffResponse.
- Return type
bool
- property is_large¶
Gets the is_large of this FileDiffResponse. Indicates whether the file is large.
- Returns
The is_large of this FileDiffResponse.
- Return type
bool
- property new_id¶
Gets the new_id of this FileDiffResponse. The ID of the changed object on the target version.
- Returns
The new_id of this FileDiffResponse.
- Return type
str
- property new_path¶
Gets the new_path of this FileDiffResponse. The path on the target version to the changed object.
- Returns
The new_path of this FileDiffResponse.
- Return type
str
- property old_id¶
Gets the old_id of this FileDiffResponse. The ID of the changed object on the base version.
- Returns
The old_id of this FileDiffResponse.
- Return type
str
- property old_path¶
Gets the old_path of this FileDiffResponse. The path on the base version to the changed object.
- Returns
The old_path of this FileDiffResponse.
- Return type
str