groupdocs_comparison_cloud 19.5 → 20.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_comparison_cloud.rb +6 -3
  3. data/lib/groupdocs_comparison_cloud/api/compare_api.rb +11 -11
  4. data/lib/groupdocs_comparison_cloud/api/file_api.rb +7 -7
  5. data/lib/groupdocs_comparison_cloud/api/folder_api.rb +7 -7
  6. data/lib/groupdocs_comparison_cloud/api/info_api.rb +98 -1
  7. data/lib/groupdocs_comparison_cloud/api/storage_api.rb +5 -5
  8. data/lib/groupdocs_comparison_cloud/api_client.rb +1 -1
  9. data/lib/groupdocs_comparison_cloud/api_error.rb +7 -4
  10. data/lib/groupdocs_comparison_cloud/configuration.rb +1 -1
  11. data/lib/groupdocs_comparison_cloud/models/change_info.rb +109 -11
  12. data/lib/groupdocs_comparison_cloud/models/comparison_options.rb +298 -0
  13. data/lib/groupdocs_comparison_cloud/models/diagram_master_setting.rb +5 -35
  14. data/lib/groupdocs_comparison_cloud/models/disc_usage.rb +1 -1
  15. data/lib/groupdocs_comparison_cloud/models/error.rb +1 -1
  16. data/lib/groupdocs_comparison_cloud/models/error_details.rb +1 -1
  17. data/lib/groupdocs_comparison_cloud/models/file_info.rb +1 -1
  18. data/lib/groupdocs_comparison_cloud/models/file_version.rb +1 -1
  19. data/lib/groupdocs_comparison_cloud/models/file_versions.rb +1 -1
  20. data/lib/groupdocs_comparison_cloud/models/files_list.rb +1 -1
  21. data/lib/groupdocs_comparison_cloud/models/files_upload_result.rb +1 -1
  22. data/lib/groupdocs_comparison_cloud/models/format.rb +1 -1
  23. data/lib/groupdocs_comparison_cloud/models/formats_result.rb +1 -1
  24. data/lib/groupdocs_comparison_cloud/models/info_result.rb +254 -0
  25. data/lib/groupdocs_comparison_cloud/models/items_style.rb +21 -6
  26. data/lib/groupdocs_comparison_cloud/models/link.rb +1 -1
  27. data/lib/groupdocs_comparison_cloud/models/metadata.rb +1 -1
  28. data/lib/groupdocs_comparison_cloud/models/object_exist.rb +1 -1
  29. data/lib/groupdocs_comparison_cloud/models/{options.rb → page_info.rb} +41 -38
  30. data/lib/groupdocs_comparison_cloud/models/rectangle.rb +264 -0
  31. data/lib/groupdocs_comparison_cloud/models/settings.rb +203 -28
  32. data/lib/groupdocs_comparison_cloud/models/{original_size.rb → size.rb} +6 -6
  33. data/lib/groupdocs_comparison_cloud/models/storage_exist.rb +1 -1
  34. data/lib/groupdocs_comparison_cloud/models/storage_file.rb +1 -1
  35. data/lib/groupdocs_comparison_cloud/models/style_change_info.rb +1 -1
  36. data/lib/groupdocs_comparison_cloud/models/updates_options.rb +55 -3
  37. data/lib/groupdocs_comparison_cloud/version.rb +2 -2
  38. metadata +7 -4
@@ -0,0 +1,264 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose Pty Ltd" file="rectangle.rb">
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
+ # </copyright>
6
+ # <summary>
7
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
8
+ # of this software and associated documentation files (the "Software"), to deal
9
+ # in the Software without restriction, including without limitation the rights
10
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11
+ # copies of the Software, and to permit persons to whom the Software is
12
+ # furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in all
15
+ # copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
23
+ # SOFTWARE.
24
+ # </summary>
25
+ # --------------------------------------------------------------------------------------------------------------------
26
+ #
27
+
28
+ require 'date'
29
+
30
+ module GroupDocsComparisonCloud
31
+ # Rectangle model
32
+ class Rectangle
33
+
34
+ # Height
35
+ attr_accessor :height
36
+
37
+ # Width
38
+ attr_accessor :width
39
+
40
+ # X coordinate
41
+ attr_accessor :x
42
+
43
+ # Y coordinate
44
+ attr_accessor :y
45
+
46
+ # Attribute mapping from ruby-style variable name to JSON key.
47
+ def self.attribute_map
48
+ {
49
+ :'height' => :'Height',
50
+ :'width' => :'Width',
51
+ :'x' => :'X',
52
+ :'y' => :'Y'
53
+ }
54
+ end
55
+
56
+ # Attribute type mapping.
57
+ def self.swagger_types
58
+ {
59
+ :'height' => :'Float',
60
+ :'width' => :'Float',
61
+ :'x' => :'Float',
62
+ :'y' => :'Float'
63
+ }
64
+ end
65
+
66
+ # Initializes the object
67
+ # @param [Hash] attributes Model attributes in the form of hash
68
+ def initialize(attributes = {})
69
+ return unless attributes.is_a?(Hash)
70
+
71
+ # convert string to symbol for hash key
72
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
73
+
74
+ if attributes.key?(:'Height')
75
+ self.height = attributes[:'Height']
76
+ end
77
+
78
+ if attributes.key?(:'Width')
79
+ self.width = attributes[:'Width']
80
+ end
81
+
82
+ if attributes.key?(:'X')
83
+ self.x = attributes[:'X']
84
+ end
85
+
86
+ if attributes.key?(:'Y')
87
+ self.y = attributes[:'Y']
88
+ end
89
+
90
+ end
91
+
92
+ # Show invalid properties with the reasons. Usually used together with valid?
93
+ # @return Array for valid properies with the reasons
94
+ def list_invalid_properties
95
+ invalid_properties = []
96
+ if @height.nil?
97
+ invalid_properties.push("invalid value for 'height', height cannot be nil.")
98
+ end
99
+
100
+ if @width.nil?
101
+ invalid_properties.push("invalid value for 'width', width cannot be nil.")
102
+ end
103
+
104
+ if @x.nil?
105
+ invalid_properties.push("invalid value for 'x', x cannot be nil.")
106
+ end
107
+
108
+ if @y.nil?
109
+ invalid_properties.push("invalid value for 'y', y cannot be nil.")
110
+ end
111
+
112
+ return invalid_properties
113
+ end
114
+
115
+ # Check to see if the all the properties in the model are valid
116
+ # @return true if the model is valid
117
+ def valid?
118
+ return false if @height.nil?
119
+ return false if @width.nil?
120
+ return false if @x.nil?
121
+ return false if @y.nil?
122
+ return true
123
+ end
124
+
125
+ # Checks equality by comparing each attribute.
126
+ # @param [Object] Object to be compared
127
+ def ==(other)
128
+ return true if self.equal?(other)
129
+ self.class == other.class &&
130
+ height == other.height &&
131
+ width == other.width &&
132
+ x == other.x &&
133
+ y == other.y
134
+ end
135
+
136
+ # @see the `==` method
137
+ # @param [Object] Object to be compared
138
+ def eql?(other)
139
+ self == other
140
+ end
141
+
142
+ # Calculates hash code according to all attributes.
143
+ # @return [Fixnum] Hash code
144
+ def hash
145
+ [height, width, x, y].hash
146
+ end
147
+
148
+ # Downcases first letter.
149
+ # @return downcased string
150
+ def uncap(str)
151
+ str[0, 1].downcase + str[1..-1]
152
+ end
153
+
154
+ # Builds the object from hash
155
+ # @param [Hash] attributes Model attributes in the form of hash
156
+ # @return [Object] Returns the model itself
157
+ def build_from_hash(attributes)
158
+ return nil unless attributes.is_a?(Hash)
159
+ self.class.swagger_types.each_pair do |key, type|
160
+ pname = uncap(self.class.attribute_map[key]).intern
161
+ value = attributes[pname]
162
+ if type =~ /\AArray<(.*)>/i
163
+ # check to ensure the input is an array given that the the attribute
164
+ # is documented as an array but the input is not
165
+ if value.is_a?(Array)
166
+ self.send("#{key}=", value.map { |v| _deserialize($1, v) })
167
+ end
168
+ elsif !value.nil?
169
+ self.send("#{key}=", _deserialize(type, value))
170
+ end
171
+ # or else data not found in attributes(hash), not an issue as the data can be optional
172
+ end
173
+
174
+ self
175
+ end
176
+
177
+ # Deserializes the data based on type
178
+ # @param string type Data type
179
+ # @param string value Value to be deserialized
180
+ # @return [Object] Deserialized data
181
+ def _deserialize(type, value)
182
+ case type.to_sym
183
+ when :DateTime
184
+ Date.parse value
185
+ when :Date
186
+ Date.parse value
187
+ when :String
188
+ value.to_s
189
+ when :Integer
190
+ value.to_i
191
+ when :Float
192
+ value.to_f
193
+ when :BOOLEAN
194
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
195
+ true
196
+ else
197
+ false
198
+ end
199
+ when :Object
200
+ # generic object (usually a Hash), return directly
201
+ value
202
+ when /\AArray<(?<inner_type>.+)>\z/
203
+ inner_type = Regexp.last_match[:inner_type]
204
+ value.map { |v| _deserialize(inner_type, v) }
205
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
206
+ k_type = Regexp.last_match[:k_type]
207
+ v_type = Regexp.last_match[:v_type]
208
+ {}.tap do |hash|
209
+ value.each do |k, v|
210
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
211
+ end
212
+ end
213
+ else
214
+ # model
215
+ temp_model = GroupDocsComparisonCloud.const_get(type).new
216
+ temp_model.build_from_hash(value)
217
+ end
218
+ end
219
+
220
+ # Returns the string representation of the object
221
+ # @return [String] String presentation of the object
222
+ def to_s
223
+ to_hash.to_s
224
+ end
225
+
226
+ # to_body is an alias to to_hash (backward compatibility)
227
+ # @return [Hash] Returns the object in the form of hash
228
+ def to_body
229
+ to_hash
230
+ end
231
+
232
+ # Returns the object in the form of hash
233
+ # @return [Hash] Returns the object in the form of hash
234
+ def to_hash
235
+ hash = {}
236
+ self.class.attribute_map.each_pair do |attr, param|
237
+ value = self.send(attr)
238
+ next if value.nil?
239
+ hash[param] = _to_hash(value)
240
+ end
241
+ hash
242
+ end
243
+
244
+ # Outputs non-array value in the form of hash
245
+ # For object, use to_hash. Otherwise, just return the value
246
+ # @param [Object] value Any valid value
247
+ # @return [Hash] Returns the value in the form of hash
248
+ def _to_hash(value)
249
+ if value.is_a?(Array)
250
+ value.compact.map { |v| _to_hash(v) }
251
+ elsif value.is_a?(Hash)
252
+ {}.tap do |hash|
253
+ value.each { |k, v| hash[k] = _to_hash(v) }
254
+ end
255
+ elsif value.respond_to? :to_hash
256
+ value.to_hash
257
+ else
258
+ value
259
+ end
260
+ end
261
+
262
+ end
263
+
264
+ end
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="settings.rb">
4
- # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2020 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -37,6 +37,9 @@ module GroupDocsComparisonCloud
37
37
  # Indicates whether to show deleted components in resultant document or not
38
38
  attr_accessor :show_deleted_content
39
39
 
40
+ # Indicates whether to show inserted components in resultant document or not
41
+ attr_accessor :show_inserted_content
42
+
40
43
  # Indicates whether to detect style changes or not
41
44
  attr_accessor :style_change_detection
42
45
 
@@ -47,13 +50,13 @@ module GroupDocsComparisonCloud
47
50
  attr_accessor :deleted_items_style
48
51
 
49
52
  # Style for components with changed style
50
- attr_accessor :style_changed_items_style
53
+ attr_accessor :changed_items_style
51
54
 
52
55
  # An array of delimiters to split text into words
53
56
  attr_accessor :words_separator_chars
54
57
 
55
- # Gets of sets the comparison detalisation level
56
- attr_accessor :detail_level
58
+ # Gets of sets the comparison details level
59
+ attr_accessor :details_level
57
60
 
58
61
  # Indicates whether to use frames for shapes in Word Processing and for rectangles in Image documents
59
62
  attr_accessor :use_frames_for_del_ins_elements
@@ -61,8 +64,11 @@ module GroupDocsComparisonCloud
61
64
  # Indicates whether to calculate coordinates for changed components
62
65
  attr_accessor :calculate_component_coordinates
63
66
 
64
- # Indicates whether to accept inserted/deleted styles for all children of inserted/deleted components
65
- attr_accessor :mark_deleted_inserted_content_deep
67
+ # Indicates whether to use frames for shapes in Word Processing and for rectangles in Image documents
68
+ attr_accessor :mark_changed_content
69
+
70
+ # Gets or sets a value indicating whether to mark the children of the deleted or inserted element as deleted or inserted
71
+ attr_accessor :mark_nested_content
66
72
 
67
73
  # Gets or sets type of metadata to clone
68
74
  attr_accessor :clone_metadata
@@ -82,26 +88,61 @@ module GroupDocsComparisonCloud
82
88
  # Gets or sets original document size when picture is compared with other different formats
83
89
  attr_accessor :original_size
84
90
 
91
+ # Control to turn on comparison of header/footer contents
92
+ attr_accessor :header_footers_comparison
93
+
94
+ # Gets or sets the result document paper size
95
+ attr_accessor :paper_size
96
+
97
+ # Gets or sets a sensitivity of comparison. Default is 75
98
+ attr_accessor :sensitivity_of_comparison
99
+ class EnumAttributeValidator
100
+ attr_reader :datatype
101
+ attr_reader :allowable_values
102
+
103
+ def initialize(datatype, allowable_values)
104
+ @allowable_values = allowable_values.map do |value|
105
+ case datatype.to_s
106
+ when /Integer/i
107
+ value.to_i
108
+ when /Float/i
109
+ value.to_f
110
+ else
111
+ value
112
+ end
113
+ end
114
+ end
115
+
116
+ def valid?(value)
117
+ !value || allowable_values.include?(value)
118
+ end
119
+ end
120
+
85
121
  # Attribute mapping from ruby-style variable name to JSON key.
86
122
  def self.attribute_map
87
123
  {
88
124
  :'generate_summary_page' => :'GenerateSummaryPage',
89
125
  :'show_deleted_content' => :'ShowDeletedContent',
126
+ :'show_inserted_content' => :'ShowInsertedContent',
90
127
  :'style_change_detection' => :'StyleChangeDetection',
91
128
  :'inserted_items_style' => :'InsertedItemsStyle',
92
129
  :'deleted_items_style' => :'DeletedItemsStyle',
93
- :'style_changed_items_style' => :'StyleChangedItemsStyle',
130
+ :'changed_items_style' => :'ChangedItemsStyle',
94
131
  :'words_separator_chars' => :'WordsSeparatorChars',
95
- :'detail_level' => :'DetailLevel',
132
+ :'details_level' => :'DetailsLevel',
96
133
  :'use_frames_for_del_ins_elements' => :'UseFramesForDelInsElements',
97
134
  :'calculate_component_coordinates' => :'CalculateComponentCoordinates',
98
- :'mark_deleted_inserted_content_deep' => :'MarkDeletedInsertedContentDeep',
135
+ :'mark_changed_content' => :'MarkChangedContent',
136
+ :'mark_nested_content' => :'MarkNestedContent',
99
137
  :'clone_metadata' => :'CloneMetadata',
100
138
  :'meta_data' => :'MetaData',
101
139
  :'password_save_option' => :'PasswordSaveOption',
102
140
  :'password' => :'Password',
103
141
  :'diagram_master_setting' => :'DiagramMasterSetting',
104
- :'original_size' => :'OriginalSize'
142
+ :'original_size' => :'OriginalSize',
143
+ :'header_footers_comparison' => :'HeaderFootersComparison',
144
+ :'paper_size' => :'PaperSize',
145
+ :'sensitivity_of_comparison' => :'SensitivityOfComparison'
105
146
  }
106
147
  end
107
148
 
@@ -110,21 +151,26 @@ module GroupDocsComparisonCloud
110
151
  {
111
152
  :'generate_summary_page' => :'BOOLEAN',
112
153
  :'show_deleted_content' => :'BOOLEAN',
154
+ :'show_inserted_content' => :'BOOLEAN',
113
155
  :'style_change_detection' => :'BOOLEAN',
114
156
  :'inserted_items_style' => :'ItemsStyle',
115
157
  :'deleted_items_style' => :'ItemsStyle',
116
- :'style_changed_items_style' => :'ItemsStyle',
158
+ :'changed_items_style' => :'ItemsStyle',
117
159
  :'words_separator_chars' => :'Array<String>',
118
- :'detail_level' => :'String',
160
+ :'details_level' => :'String',
119
161
  :'use_frames_for_del_ins_elements' => :'BOOLEAN',
120
162
  :'calculate_component_coordinates' => :'BOOLEAN',
121
- :'mark_deleted_inserted_content_deep' => :'BOOLEAN',
163
+ :'mark_changed_content' => :'BOOLEAN',
164
+ :'mark_nested_content' => :'BOOLEAN',
122
165
  :'clone_metadata' => :'String',
123
166
  :'meta_data' => :'Metadata',
124
167
  :'password_save_option' => :'String',
125
168
  :'password' => :'String',
126
169
  :'diagram_master_setting' => :'DiagramMasterSetting',
127
- :'original_size' => :'OriginalSize'
170
+ :'original_size' => :'Size',
171
+ :'header_footers_comparison' => :'BOOLEAN',
172
+ :'paper_size' => :'String',
173
+ :'sensitivity_of_comparison' => :'Integer'
128
174
  }
129
175
  end
130
176
 
@@ -144,6 +190,10 @@ module GroupDocsComparisonCloud
144
190
  self.show_deleted_content = attributes[:'ShowDeletedContent']
145
191
  end
146
192
 
193
+ if attributes.key?(:'ShowInsertedContent')
194
+ self.show_inserted_content = attributes[:'ShowInsertedContent']
195
+ end
196
+
147
197
  if attributes.key?(:'StyleChangeDetection')
148
198
  self.style_change_detection = attributes[:'StyleChangeDetection']
149
199
  end
@@ -156,8 +206,8 @@ module GroupDocsComparisonCloud
156
206
  self.deleted_items_style = attributes[:'DeletedItemsStyle']
157
207
  end
158
208
 
159
- if attributes.key?(:'StyleChangedItemsStyle')
160
- self.style_changed_items_style = attributes[:'StyleChangedItemsStyle']
209
+ if attributes.key?(:'ChangedItemsStyle')
210
+ self.changed_items_style = attributes[:'ChangedItemsStyle']
161
211
  end
162
212
 
163
213
  if attributes.key?(:'WordsSeparatorChars')
@@ -166,8 +216,8 @@ module GroupDocsComparisonCloud
166
216
  end
167
217
  end
168
218
 
169
- if attributes.key?(:'DetailLevel')
170
- self.detail_level = attributes[:'DetailLevel']
219
+ if attributes.key?(:'DetailsLevel')
220
+ self.details_level = attributes[:'DetailsLevel']
171
221
  end
172
222
 
173
223
  if attributes.key?(:'UseFramesForDelInsElements')
@@ -178,8 +228,12 @@ module GroupDocsComparisonCloud
178
228
  self.calculate_component_coordinates = attributes[:'CalculateComponentCoordinates']
179
229
  end
180
230
 
181
- if attributes.key?(:'MarkDeletedInsertedContentDeep')
182
- self.mark_deleted_inserted_content_deep = attributes[:'MarkDeletedInsertedContentDeep']
231
+ if attributes.key?(:'MarkChangedContent')
232
+ self.mark_changed_content = attributes[:'MarkChangedContent']
233
+ end
234
+
235
+ if attributes.key?(:'MarkNestedContent')
236
+ self.mark_nested_content = attributes[:'MarkNestedContent']
183
237
  end
184
238
 
185
239
  if attributes.key?(:'CloneMetadata')
@@ -206,6 +260,18 @@ module GroupDocsComparisonCloud
206
260
  self.original_size = attributes[:'OriginalSize']
207
261
  end
208
262
 
263
+ if attributes.key?(:'HeaderFootersComparison')
264
+ self.header_footers_comparison = attributes[:'HeaderFootersComparison']
265
+ end
266
+
267
+ if attributes.key?(:'PaperSize')
268
+ self.paper_size = attributes[:'PaperSize']
269
+ end
270
+
271
+ if attributes.key?(:'SensitivityOfComparison')
272
+ self.sensitivity_of_comparison = attributes[:'SensitivityOfComparison']
273
+ end
274
+
209
275
  end
210
276
 
211
277
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -220,10 +286,18 @@ module GroupDocsComparisonCloud
220
286
  invalid_properties.push("invalid value for 'show_deleted_content', show_deleted_content cannot be nil.")
221
287
  end
222
288
 
289
+ if @show_inserted_content.nil?
290
+ invalid_properties.push("invalid value for 'show_inserted_content', show_inserted_content cannot be nil.")
291
+ end
292
+
223
293
  if @style_change_detection.nil?
224
294
  invalid_properties.push("invalid value for 'style_change_detection', style_change_detection cannot be nil.")
225
295
  end
226
296
 
297
+ if @details_level.nil?
298
+ invalid_properties.push("invalid value for 'details_level', details_level cannot be nil.")
299
+ end
300
+
227
301
  if @use_frames_for_del_ins_elements.nil?
228
302
  invalid_properties.push("invalid value for 'use_frames_for_del_ins_elements', use_frames_for_del_ins_elements cannot be nil.")
229
303
  end
@@ -232,8 +306,32 @@ module GroupDocsComparisonCloud
232
306
  invalid_properties.push("invalid value for 'calculate_component_coordinates', calculate_component_coordinates cannot be nil.")
233
307
  end
234
308
 
235
- if @mark_deleted_inserted_content_deep.nil?
236
- invalid_properties.push("invalid value for 'mark_deleted_inserted_content_deep', mark_deleted_inserted_content_deep cannot be nil.")
309
+ if @mark_changed_content.nil?
310
+ invalid_properties.push("invalid value for 'mark_changed_content', mark_changed_content cannot be nil.")
311
+ end
312
+
313
+ if @mark_nested_content.nil?
314
+ invalid_properties.push("invalid value for 'mark_nested_content', mark_nested_content cannot be nil.")
315
+ end
316
+
317
+ if @clone_metadata.nil?
318
+ invalid_properties.push("invalid value for 'clone_metadata', clone_metadata cannot be nil.")
319
+ end
320
+
321
+ if @password_save_option.nil?
322
+ invalid_properties.push("invalid value for 'password_save_option', password_save_option cannot be nil.")
323
+ end
324
+
325
+ if @header_footers_comparison.nil?
326
+ invalid_properties.push("invalid value for 'header_footers_comparison', header_footers_comparison cannot be nil.")
327
+ end
328
+
329
+ if @paper_size.nil?
330
+ invalid_properties.push("invalid value for 'paper_size', paper_size cannot be nil.")
331
+ end
332
+
333
+ if @sensitivity_of_comparison.nil?
334
+ invalid_properties.push("invalid value for 'sensitivity_of_comparison', sensitivity_of_comparison cannot be nil.")
237
335
  end
238
336
 
239
337
  return invalid_properties
@@ -244,13 +342,85 @@ module GroupDocsComparisonCloud
244
342
  def valid?
245
343
  return false if @generate_summary_page.nil?
246
344
  return false if @show_deleted_content.nil?
345
+ return false if @show_inserted_content.nil?
247
346
  return false if @style_change_detection.nil?
347
+ return false if @details_level.nil?
348
+ details_level_validator = EnumAttributeValidator.new('String', ["Low", "Middle", "High"])
349
+ return false unless details_level_validator.valid?(@details_level)
248
350
  return false if @use_frames_for_del_ins_elements.nil?
249
351
  return false if @calculate_component_coordinates.nil?
250
- return false if @mark_deleted_inserted_content_deep.nil?
352
+ return false if @mark_changed_content.nil?
353
+ return false if @mark_nested_content.nil?
354
+ return false if @clone_metadata.nil?
355
+ clone_metadata_validator = EnumAttributeValidator.new('String', ["Default", "Source", "Target", "FileAuthor"])
356
+ return false unless clone_metadata_validator.valid?(@clone_metadata)
357
+ return false if @password_save_option.nil?
358
+ password_save_option_validator = EnumAttributeValidator.new('String', ["None", "Source", "Target", "User"])
359
+ return false unless password_save_option_validator.valid?(@password_save_option)
360
+ return false if @header_footers_comparison.nil?
361
+ return false if @paper_size.nil?
362
+ paper_size_validator = EnumAttributeValidator.new('String', ["Default", "A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8"])
363
+ return false unless paper_size_validator.valid?(@paper_size)
364
+ return false if @sensitivity_of_comparison.nil?
251
365
  return true
252
366
  end
253
367
 
368
+ # Custom attribute writer method checking allowed values (enum).
369
+ # @param [Object] details_level Object to be assigned
370
+ def details_level=(details_level)
371
+ validator = EnumAttributeValidator.new('String', ["Low", "Middle", "High"])
372
+ if details_level.to_i == 0
373
+ unless validator.valid?(details_level)
374
+ raise ArgumentError, "invalid value for 'details_level', must be one of #{validator.allowable_values}."
375
+ end
376
+ @details_level = details_level
377
+ else
378
+ @details_level = validator.allowable_values[details_level.to_i]
379
+ end
380
+ end
381
+
382
+ # Custom attribute writer method checking allowed values (enum).
383
+ # @param [Object] clone_metadata Object to be assigned
384
+ def clone_metadata=(clone_metadata)
385
+ validator = EnumAttributeValidator.new('String', ["Default", "Source", "Target", "FileAuthor"])
386
+ if clone_metadata.to_i == 0
387
+ unless validator.valid?(clone_metadata)
388
+ raise ArgumentError, "invalid value for 'clone_metadata', must be one of #{validator.allowable_values}."
389
+ end
390
+ @clone_metadata = clone_metadata
391
+ else
392
+ @clone_metadata = validator.allowable_values[clone_metadata.to_i]
393
+ end
394
+ end
395
+
396
+ # Custom attribute writer method checking allowed values (enum).
397
+ # @param [Object] password_save_option Object to be assigned
398
+ def password_save_option=(password_save_option)
399
+ validator = EnumAttributeValidator.new('String', ["None", "Source", "Target", "User"])
400
+ if password_save_option.to_i == 0
401
+ unless validator.valid?(password_save_option)
402
+ raise ArgumentError, "invalid value for 'password_save_option', must be one of #{validator.allowable_values}."
403
+ end
404
+ @password_save_option = password_save_option
405
+ else
406
+ @password_save_option = validator.allowable_values[password_save_option.to_i]
407
+ end
408
+ end
409
+
410
+ # Custom attribute writer method checking allowed values (enum).
411
+ # @param [Object] paper_size Object to be assigned
412
+ def paper_size=(paper_size)
413
+ validator = EnumAttributeValidator.new('String', ["Default", "A0", "A1", "A2", "A3", "A4", "A5", "A6", "A7", "A8"])
414
+ if paper_size.to_i == 0
415
+ unless validator.valid?(paper_size)
416
+ raise ArgumentError, "invalid value for 'paper_size', must be one of #{validator.allowable_values}."
417
+ end
418
+ @paper_size = paper_size
419
+ else
420
+ @paper_size = validator.allowable_values[paper_size.to_i]
421
+ end
422
+ end
423
+
254
424
  # Checks equality by comparing each attribute.
255
425
  # @param [Object] Object to be compared
256
426
  def ==(other)
@@ -258,21 +428,26 @@ module GroupDocsComparisonCloud
258
428
  self.class == other.class &&
259
429
  generate_summary_page == other.generate_summary_page &&
260
430
  show_deleted_content == other.show_deleted_content &&
431
+ show_inserted_content == other.show_inserted_content &&
261
432
  style_change_detection == other.style_change_detection &&
262
433
  inserted_items_style == other.inserted_items_style &&
263
434
  deleted_items_style == other.deleted_items_style &&
264
- style_changed_items_style == other.style_changed_items_style &&
435
+ changed_items_style == other.changed_items_style &&
265
436
  words_separator_chars == other.words_separator_chars &&
266
- detail_level == other.detail_level &&
437
+ details_level == other.details_level &&
267
438
  use_frames_for_del_ins_elements == other.use_frames_for_del_ins_elements &&
268
439
  calculate_component_coordinates == other.calculate_component_coordinates &&
269
- mark_deleted_inserted_content_deep == other.mark_deleted_inserted_content_deep &&
440
+ mark_changed_content == other.mark_changed_content &&
441
+ mark_nested_content == other.mark_nested_content &&
270
442
  clone_metadata == other.clone_metadata &&
271
443
  meta_data == other.meta_data &&
272
444
  password_save_option == other.password_save_option &&
273
445
  password == other.password &&
274
446
  diagram_master_setting == other.diagram_master_setting &&
275
- original_size == other.original_size
447
+ original_size == other.original_size &&
448
+ header_footers_comparison == other.header_footers_comparison &&
449
+ paper_size == other.paper_size &&
450
+ sensitivity_of_comparison == other.sensitivity_of_comparison
276
451
  end
277
452
 
278
453
  # @see the `==` method
@@ -284,7 +459,7 @@ module GroupDocsComparisonCloud
284
459
  # Calculates hash code according to all attributes.
285
460
  # @return [Fixnum] Hash code
286
461
  def hash
287
- [generate_summary_page, show_deleted_content, style_change_detection, inserted_items_style, deleted_items_style, style_changed_items_style, words_separator_chars, detail_level, use_frames_for_del_ins_elements, calculate_component_coordinates, mark_deleted_inserted_content_deep, clone_metadata, meta_data, password_save_option, password, diagram_master_setting, original_size].hash
462
+ [generate_summary_page, show_deleted_content, show_inserted_content, style_change_detection, inserted_items_style, deleted_items_style, changed_items_style, words_separator_chars, details_level, use_frames_for_del_ins_elements, calculate_component_coordinates, mark_changed_content, mark_nested_content, clone_metadata, meta_data, password_save_option, password, diagram_master_setting, original_size, header_footers_comparison, paper_size, sensitivity_of_comparison].hash
288
463
  end
289
464
 
290
465
  # Downcases first letter.