@@ -44,6 +44,7 @@ class CompareOptions(object):
4444 """
4545 swagger_types = {
4646 'accept_all_revisions_before_comparison' : 'bool' ,
47+ 'granularity' : 'str' ,
4748 'ignore_case_changes' : 'bool' ,
4849 'ignore_comments' : 'bool' ,
4950 'ignore_fields' : 'bool' ,
@@ -57,6 +58,7 @@ class CompareOptions(object):
5758
5859 attribute_map = {
5960 'accept_all_revisions_before_comparison' : 'AcceptAllRevisionsBeforeComparison' ,
61+ 'granularity' : 'Granularity' ,
6062 'ignore_case_changes' : 'IgnoreCaseChanges' ,
6163 'ignore_comments' : 'IgnoreComments' ,
6264 'ignore_fields' : 'IgnoreFields' ,
@@ -68,10 +70,11 @@ class CompareOptions(object):
6870 'target' : 'Target'
6971 }
7072
71- def __init__ (self , accept_all_revisions_before_comparison = None , ignore_case_changes = None , ignore_comments = None , ignore_fields = None , ignore_footnotes = None , ignore_formatting = None , ignore_headers_and_footers = None , ignore_tables = None , ignore_textboxes = None , target = None ): # noqa: E501
73+ def __init__ (self , accept_all_revisions_before_comparison = None , granularity = None , ignore_case_changes = None , ignore_comments = None , ignore_fields = None , ignore_footnotes = None , ignore_formatting = None , ignore_headers_and_footers = None , ignore_tables = None , ignore_textboxes = None , target = None ): # noqa: E501
7274 """CompareOptions - a model defined in Swagger""" # noqa: E501
7375
7476 self ._accept_all_revisions_before_comparison = None
77+ self ._granularity = None
7578 self ._ignore_case_changes = None
7679 self ._ignore_comments = None
7780 self ._ignore_fields = None
@@ -85,6 +88,8 @@ def __init__(self, accept_all_revisions_before_comparison=None, ignore_case_chan
8588
8689 if accept_all_revisions_before_comparison is not None :
8790 self .accept_all_revisions_before_comparison = accept_all_revisions_before_comparison
91+ if granularity is not None :
92+ self .granularity = granularity
8893 if ignore_case_changes is not None :
8994 self .ignore_case_changes = ignore_case_changes
9095 if ignore_comments is not None :
@@ -126,6 +131,36 @@ def accept_all_revisions_before_comparison(self, accept_all_revisions_before_com
126131 """
127132 self ._accept_all_revisions_before_comparison = accept_all_revisions_before_comparison
128133
134+ @property
135+ def granularity (self ):
136+ """Gets the granularity of this CompareOptions. # noqa: E501
137+
138+ Gets or sets the option indicating whether changes are tracked by character or by word. # noqa: E501
139+
140+ :return: The granularity of this CompareOptions. # noqa: E501
141+ :rtype: str
142+ """
143+ return self ._granularity
144+
145+ @granularity .setter
146+ def granularity (self , granularity ):
147+ """Sets the granularity of this CompareOptions.
148+
149+ Gets or sets the option indicating whether changes are tracked by character or by word. # noqa: E501
150+
151+ :param granularity: The granularity of this CompareOptions. # noqa: E501
152+ :type: str
153+ """
154+ allowed_values = ["CharLevel" , "WordLevel" ] # noqa: E501
155+ if not granularity .isdigit ():
156+ if granularity not in allowed_values :
157+ raise ValueError (
158+ "Invalid value for `granularity` ({0}), must be one of {1}" # noqa: E501
159+ .format (granularity , allowed_values ))
160+ self ._granularity = granularity
161+ else :
162+ self ._granularity = allowed_values [int (granularity ) if six .PY3 else long (granularity )]
163+
129164 @property
130165 def ignore_case_changes (self ):
131166 """Gets the ignore_case_changes of this CompareOptions. # noqa: E501
0 commit comments