DiffLineDetails¶
- class oci.devops.models.DiffLineDetails(**kwargs)¶
Bases:
objectDetails about a line within the difference.
Attributes:
A constant which can be used with the conflict_marker property of a DiffLineDetails.
A constant which can be used with the conflict_marker property of a DiffLineDetails.
A constant which can be used with the conflict_marker property of a DiffLineDetails.
A constant which can be used with the conflict_marker property of a DiffLineDetails.
Gets the base_line of this DiffLineDetails.
Gets the conflict_marker of this DiffLineDetails.
Gets the line_content of this DiffLineDetails.
Gets the target_line of this DiffLineDetails.
Methods:
__init__(**kwargs)Initializes a new DiffLineDetails object with values from keyword arguments.
- CONFLICT_MARKER_BASE = 'BASE'¶
A constant which can be used with the conflict_marker property of a DiffLineDetails. This constant has a value of “BASE”
- CONFLICT_MARKER_MARKER = 'MARKER'¶
A constant which can be used with the conflict_marker property of a DiffLineDetails. This constant has a value of “MARKER”
- CONFLICT_MARKER_NONE = 'NONE'¶
A constant which can be used with the conflict_marker property of a DiffLineDetails. This constant has a value of “NONE”
- CONFLICT_MARKER_TARGET = 'TARGET'¶
A constant which can be used with the conflict_marker property of a DiffLineDetails. This constant has a value of “TARGET”
- __init__(**kwargs)¶
Initializes a new DiffLineDetails object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
- Parameters
base_line (int) – The value to assign to the base_line property of this DiffLineDetails.
target_line (int) – The value to assign to the target_line property of this DiffLineDetails.
line_content (str) – The value to assign to the line_content property of this DiffLineDetails.
conflict_marker (str) – The value to assign to the conflict_marker property of this DiffLineDetails. Allowed values for this property are: “BASE”, “TARGET”, “MARKER”, “NONE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- property base_line¶
Gets the base_line of this DiffLineDetails. The number of a line in the base version.
- Returns
The base_line of this DiffLineDetails.
- Return type
int
- property conflict_marker¶
Gets the conflict_marker of this DiffLineDetails. Indicates whether a line in a conflicted section of the difference is from the base version, the target version, or if its just a marker indicating the beginning, middle, or end of a conflicted section.
Allowed values for this property are: “BASE”, “TARGET”, “MARKER”, “NONE”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- Returns
The conflict_marker of this DiffLineDetails.
- Return type
str
- property line_content¶
Gets the line_content of this DiffLineDetails. The contents of a line.
- Returns
The line_content of this DiffLineDetails.
- Return type
str
- property target_line¶
Gets the target_line of this DiffLineDetails. The number of a line in the target version.
- Returns
The target_line of this DiffLineDetails.
- Return type
int