DiffSummary

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

Bases: object

Response object for showing differences for a file between two revisions.

Methods

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

Attributes

are_conflicts_in_file Gets the are_conflicts_in_file of this DiffSummary.
changes [Required] Gets the changes of this DiffSummary.
defined_tags Gets the defined_tags of this DiffSummary.
freeform_tags Gets the freeform_tags of this DiffSummary.
is_binary Gets the is_binary of this DiffSummary.
is_large Gets the is_large of this DiffSummary.
new_id Gets the new_id of this DiffSummary.
new_path Gets the new_path of this DiffSummary.
old_id Gets the old_id of this DiffSummary.
old_path Gets the old_path of this DiffSummary.
system_tags Gets the system_tags of this DiffSummary.
__init__(**kwargs)

Initializes a new DiffSummary 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 DiffSummary.
  • new_path (str) – The value to assign to the new_path property of this DiffSummary.
  • old_id (str) – The value to assign to the old_id property of this DiffSummary.
  • new_id (str) – The value to assign to the new_id property of this DiffSummary.
  • are_conflicts_in_file (bool) – The value to assign to the are_conflicts_in_file property of this DiffSummary.
  • is_large (bool) – The value to assign to the is_large property of this DiffSummary.
  • is_binary (bool) – The value to assign to the is_binary property of this DiffSummary.
  • changes (list[oci.devops.models.DiffChunk]) – The value to assign to the changes property of this DiffSummary.
  • freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this DiffSummary.
  • defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this DiffSummary.
  • system_tags (dict(str, dict(str, object))) – The value to assign to the system_tags property of this DiffSummary.
are_conflicts_in_file

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

Returns:The are_conflicts_in_file of this DiffSummary.
Return type:bool
changes

[Required] Gets the changes of this DiffSummary. List of changed section in the file.

Returns:The changes of this DiffSummary.
Return type:list[oci.devops.models.DiffChunk]
defined_tags

Gets the defined_tags of this DiffSummary. Defined tags for this resource. Each key is predefined and scoped to a namespace. See Resource Tags. Example: {“foo-namespace”: {“bar-key”: “value”}}

Returns:The defined_tags of this DiffSummary.
Return type:dict(str, dict(str, object))
freeform_tags

Gets the freeform_tags of this DiffSummary. Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. See Resource Tags. Example: {“bar-key”: “value”}

Returns:The freeform_tags of this DiffSummary.
Return type:dict(str, str)
is_binary

Gets the is_binary of this DiffSummary. Indicates whether the file is binary.

Returns:The is_binary of this DiffSummary.
Return type:bool
is_large

Gets the is_large of this DiffSummary. Indicates whether the file is large.

Returns:The is_large of this DiffSummary.
Return type:bool
new_id

Gets the new_id of this DiffSummary. The ID of the changed object on the target version.

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

Gets the new_path of this DiffSummary. The path on the target version to the changed object.

Returns:The new_path of this DiffSummary.
Return type:str
old_id

Gets the old_id of this DiffSummary. The ID of the changed object on the base version.

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

Gets the old_path of this DiffSummary. The path on the base version to the changed object.

Returns:The old_path of this DiffSummary.
Return type:str
system_tags

Gets the system_tags of this DiffSummary. Usage of system tag keys. These predefined keys are scoped to namespaces. See Resource Tags. Example: {“orcl-cloud”: {“free-tier-retained”: “true”}}

Returns:The system_tags of this DiffSummary.
Return type:dict(str, dict(str, object))