groupdocs_comparison_cloud 18.9 → 19.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_comparison_cloud.rb +28 -42
  3. data/lib/groupdocs_comparison_cloud/api/compare_api.rb +411 -0
  4. data/lib/groupdocs_comparison_cloud/api/file_api.rb +729 -0
  5. data/lib/groupdocs_comparison_cloud/api/folder_api.rb +694 -0
  6. data/lib/groupdocs_comparison_cloud/api/info_api.rb +169 -0
  7. data/lib/groupdocs_comparison_cloud/api/storage_api.rb +541 -0
  8. data/lib/groupdocs_comparison_cloud/api_client.rb +7 -17
  9. data/lib/groupdocs_comparison_cloud/api_error.rb +5 -3
  10. data/lib/groupdocs_comparison_cloud/configuration.rb +3 -3
  11. data/lib/groupdocs_comparison_cloud/models/{comparison_change.rb → change_info.rb} +57 -49
  12. data/lib/groupdocs_comparison_cloud/models/diagram_master_setting.rb +259 -0
  13. data/lib/groupdocs_comparison_cloud/models/disc_usage.rb +234 -0
  14. data/lib/groupdocs_comparison_cloud/models/error.rb +244 -0
  15. data/lib/groupdocs_comparison_cloud/models/{comparison_file_info.rb → error_details.rb} +39 -36
  16. data/lib/groupdocs_comparison_cloud/models/{style_settings_values.rb → file_info.rb} +51 -38
  17. data/lib/groupdocs_comparison_cloud/models/file_version.rb +289 -0
  18. data/lib/groupdocs_comparison_cloud/models/{value_type.rb → file_versions.rb} +33 -13
  19. data/lib/groupdocs_comparison_cloud/models/{comparison_changes_category_dto.rb → files_list.rb} +28 -30
  20. data/lib/groupdocs_comparison_cloud/models/files_upload_result.rb +228 -0
  21. data/lib/groupdocs_comparison_cloud/models/format.rb +224 -0
  22. data/lib/groupdocs_comparison_cloud/models/{comparison_style_change.rb → formats_result.rb} +29 -19
  23. data/lib/groupdocs_comparison_cloud/models/items_style.rb +289 -0
  24. data/lib/groupdocs_comparison_cloud/models/link.rb +16 -8
  25. data/lib/groupdocs_comparison_cloud/models/{comparison_metadata_values.rb → metadata.rb} +28 -20
  26. data/lib/groupdocs_comparison_cloud/models/object_exist.rb +234 -0
  27. data/lib/groupdocs_comparison_cloud/models/{comparison_request.rb → options.rb} +39 -33
  28. data/lib/groupdocs_comparison_cloud/models/original_size.rb +234 -0
  29. data/lib/groupdocs_comparison_cloud/models/{comparison_request_settings.rb → settings.rb} +98 -70
  30. data/lib/groupdocs_comparison_cloud/models/storage_exist.rb +219 -0
  31. data/lib/groupdocs_comparison_cloud/models/storage_file.rb +264 -0
  32. data/lib/groupdocs_comparison_cloud/models/style_change_info.rb +234 -0
  33. data/lib/groupdocs_comparison_cloud/models/updates_options.rb +258 -0
  34. data/lib/groupdocs_comparison_cloud/version.rb +2 -2
  35. metadata +29 -44
  36. data/lib/groupdocs_comparison_cloud/api/changes_api.rb +0 -470
  37. data/lib/groupdocs_comparison_cloud/api/comparison_api.rb +0 -365
  38. data/lib/groupdocs_comparison_cloud/models/color.rb +0 -1404
  39. data/lib/groupdocs_comparison_cloud/models/requests/comparison_images_request.rb +0 -49
  40. data/lib/groupdocs_comparison_cloud/models/requests/comparison_images_stream_request.rb +0 -45
  41. data/lib/groupdocs_comparison_cloud/models/requests/comparison_request.rb +0 -49
  42. data/lib/groupdocs_comparison_cloud/models/requests/comparison_stream_request.rb +0 -45
  43. data/lib/groupdocs_comparison_cloud/models/requests/post_categories_changes_request.rb +0 -49
  44. data/lib/groupdocs_comparison_cloud/models/requests/post_changes_request.rb +0 -45
  45. data/lib/groupdocs_comparison_cloud/models/requests/put_changes_document_request.rb +0 -49
  46. data/lib/groupdocs_comparison_cloud/models/requests/put_changes_document_stream_request.rb +0 -45
  47. data/lib/groupdocs_comparison_cloud/models/requests/put_changes_images_request.rb +0 -49
  48. data/lib/groupdocs_comparison_cloud/models/requests/put_changes_images_stream_request.rb +0 -45
@@ -0,0 +1,234 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose Pty Ltd" file="original_size.rb">
4
+ # Copyright (c) 2003-2019 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
+ # OriginalSize Object fields
32
+ class OriginalSize
33
+
34
+ # Width of original document
35
+ attr_accessor :width
36
+
37
+ # Height of original document
38
+ attr_accessor :height
39
+
40
+ # Attribute mapping from ruby-style variable name to JSON key.
41
+ def self.attribute_map
42
+ {
43
+ :'width' => :'Width',
44
+ :'height' => :'Height'
45
+ }
46
+ end
47
+
48
+ # Attribute type mapping.
49
+ def self.swagger_types
50
+ {
51
+ :'width' => :'Integer',
52
+ :'height' => :'Integer'
53
+ }
54
+ end
55
+
56
+ # Initializes the object
57
+ # @param [Hash] attributes Model attributes in the form of hash
58
+ def initialize(attributes = {})
59
+ return unless attributes.is_a?(Hash)
60
+
61
+ # convert string to symbol for hash key
62
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
63
+
64
+ if attributes.key?(:'Width')
65
+ self.width = attributes[:'Width']
66
+ end
67
+
68
+ if attributes.key?(:'Height')
69
+ self.height = attributes[:'Height']
70
+ end
71
+
72
+ end
73
+
74
+ # Show invalid properties with the reasons. Usually used together with valid?
75
+ # @return Array for valid properies with the reasons
76
+ def list_invalid_properties
77
+ invalid_properties = []
78
+ if @width.nil?
79
+ invalid_properties.push("invalid value for 'width', width cannot be nil.")
80
+ end
81
+
82
+ if @height.nil?
83
+ invalid_properties.push("invalid value for 'height', height cannot be nil.")
84
+ end
85
+
86
+ return invalid_properties
87
+ end
88
+
89
+ # Check to see if the all the properties in the model are valid
90
+ # @return true if the model is valid
91
+ def valid?
92
+ return false if @width.nil?
93
+ return false if @height.nil?
94
+ return true
95
+ end
96
+
97
+ # Checks equality by comparing each attribute.
98
+ # @param [Object] Object to be compared
99
+ def ==(other)
100
+ return true if self.equal?(other)
101
+ self.class == other.class &&
102
+ width == other.width &&
103
+ height == other.height
104
+ end
105
+
106
+ # @see the `==` method
107
+ # @param [Object] Object to be compared
108
+ def eql?(other)
109
+ self == other
110
+ end
111
+
112
+ # Calculates hash code according to all attributes.
113
+ # @return [Fixnum] Hash code
114
+ def hash
115
+ [width, height].hash
116
+ end
117
+
118
+ # Downcases first letter.
119
+ # @return downcased string
120
+ def uncap(str)
121
+ str[0, 1].downcase + str[1..-1]
122
+ end
123
+
124
+ # Builds the object from hash
125
+ # @param [Hash] attributes Model attributes in the form of hash
126
+ # @return [Object] Returns the model itself
127
+ def build_from_hash(attributes)
128
+ return nil unless attributes.is_a?(Hash)
129
+ self.class.swagger_types.each_pair do |key, type|
130
+ pname = uncap(self.class.attribute_map[key]).intern
131
+ value = attributes[pname]
132
+ if type =~ /\AArray<(.*)>/i
133
+ # check to ensure the input is an array given that the the attribute
134
+ # is documented as an array but the input is not
135
+ if value.is_a?(Array)
136
+ self.send("#{key}=", value.map { |v| _deserialize($1, v) })
137
+ end
138
+ elsif !value.nil?
139
+ self.send("#{key}=", _deserialize(type, value))
140
+ end
141
+ # or else data not found in attributes(hash), not an issue as the data can be optional
142
+ end
143
+
144
+ self
145
+ end
146
+
147
+ # Deserializes the data based on type
148
+ # @param string type Data type
149
+ # @param string value Value to be deserialized
150
+ # @return [Object] Deserialized data
151
+ def _deserialize(type, value)
152
+ case type.to_sym
153
+ when :DateTime
154
+ Date.parse value
155
+ when :Date
156
+ Date.parse value
157
+ when :String
158
+ value.to_s
159
+ when :Integer
160
+ value.to_i
161
+ when :Float
162
+ value.to_f
163
+ when :BOOLEAN
164
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
165
+ true
166
+ else
167
+ false
168
+ end
169
+ when :Object
170
+ # generic object (usually a Hash), return directly
171
+ value
172
+ when /\AArray<(?<inner_type>.+)>\z/
173
+ inner_type = Regexp.last_match[:inner_type]
174
+ value.map { |v| _deserialize(inner_type, v) }
175
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
176
+ k_type = Regexp.last_match[:k_type]
177
+ v_type = Regexp.last_match[:v_type]
178
+ {}.tap do |hash|
179
+ value.each do |k, v|
180
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
181
+ end
182
+ end
183
+ else
184
+ # model
185
+ temp_model = GroupDocsComparisonCloud.const_get(type).new
186
+ temp_model.build_from_hash(value)
187
+ end
188
+ end
189
+
190
+ # Returns the string representation of the object
191
+ # @return [String] String presentation of the object
192
+ def to_s
193
+ to_hash.to_s
194
+ end
195
+
196
+ # to_body is an alias to to_hash (backward compatibility)
197
+ # @return [Hash] Returns the object in the form of hash
198
+ def to_body
199
+ to_hash
200
+ end
201
+
202
+ # Returns the object in the form of hash
203
+ # @return [Hash] Returns the object in the form of hash
204
+ def to_hash
205
+ hash = {}
206
+ self.class.attribute_map.each_pair do |attr, param|
207
+ value = self.send(attr)
208
+ next if value.nil?
209
+ hash[param] = _to_hash(value)
210
+ end
211
+ hash
212
+ end
213
+
214
+ # Outputs non-array value in the form of hash
215
+ # For object, use to_hash. Otherwise, just return the value
216
+ # @param [Object] value Any valid value
217
+ # @return [Hash] Returns the value in the form of hash
218
+ def _to_hash(value)
219
+ if value.is_a?(Array)
220
+ value.compact.map { |v| _to_hash(v) }
221
+ elsif value.is_a?(Hash)
222
+ {}.tap do |hash|
223
+ value.each { |k, v| hash[k] = _to_hash(v) }
224
+ end
225
+ elsif value.respond_to? :to_hash
226
+ value.to_hash
227
+ else
228
+ value
229
+ end
230
+ end
231
+
232
+ end
233
+
234
+ end
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
- # <copyright company="Aspose Pty Ltd" file="comparison_request_settings.rb">
4
- # Copyright (c) 2003-2018 Aspose Pty Ltd
3
+ # <copyright company="Aspose Pty Ltd" file="settings.rb">
4
+ # Copyright (c) 2003-2019 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -28,53 +28,59 @@
28
28
  require 'date'
29
29
 
30
30
  module GroupDocsComparisonCloud
31
- # ComparisonRequestSettings dto
32
- class ComparisonRequestSettings
31
+ # Defines comparison process additional settings
32
+ class Settings
33
33
 
34
- # The generate summary page
34
+ # Indicates whether to add summary page to resultant document or not
35
35
  attr_accessor :generate_summary_page
36
36
 
37
- # The show deleted content
37
+ # Indicates whether to show deleted components in resultant document or not
38
38
  attr_accessor :show_deleted_content
39
39
 
40
- # The style change detection
40
+ # Indicates whether to detect style changes or not
41
41
  attr_accessor :style_change_detection
42
42
 
43
- # The inserted items style
43
+ # Style for inserted components
44
44
  attr_accessor :inserted_items_style
45
45
 
46
- # The deleted items style
46
+ # Style for deleted components
47
47
  attr_accessor :deleted_items_style
48
48
 
49
- # The style changed items style
49
+ # Style for components with changed style
50
50
  attr_accessor :style_changed_items_style
51
51
 
52
- # The words separator chars
52
+ # An array of delimiters to split text into words
53
53
  attr_accessor :words_separator_chars
54
54
 
55
- # The use frames for delete ins elements
56
- attr_accessor :use_frames_for_del_ins_elements
57
-
58
- # The detail level
55
+ # Gets of sets the comparison detalisation level
59
56
  attr_accessor :detail_level
60
57
 
61
- # The calculate component coordinates
58
+ # Indicates whether to use frames for shapes in Word Processing and for rectangles in Image documents
59
+ attr_accessor :use_frames_for_del_ins_elements
60
+
61
+ # Indicates whether to calculate coordinates for changed components
62
62
  attr_accessor :calculate_component_coordinates
63
63
 
64
- # The clone metadata
64
+ # Indicates whether to accept inserted/deleted styles for all children of inserted/deleted components
65
+ attr_accessor :mark_deleted_inserted_content_deep
66
+
67
+ # Gets or sets type of metadata to clone
65
68
  attr_accessor :clone_metadata
66
69
 
67
- # The metadata
70
+ # Gets or sets user metadata
68
71
  attr_accessor :meta_data
69
72
 
70
- # The password save option
73
+ # Gets or sets type of password saving
71
74
  attr_accessor :password_save_option
72
75
 
73
- # The password
76
+ # Gets or sets user password to resultant document
74
77
  attr_accessor :password
75
78
 
76
- # The mark deleted inserted content deep
77
- attr_accessor :mark_deleted_inserted_content_deep
79
+ # Gets or sets master for Diagram document
80
+ attr_accessor :diagram_master_setting
81
+
82
+ # Gets or sets original document size when picture is compared with other different formats
83
+ attr_accessor :original_size
78
84
 
79
85
  # Attribute mapping from ruby-style variable name to JSON key.
80
86
  def self.attribute_map
@@ -86,14 +92,16 @@ module GroupDocsComparisonCloud
86
92
  :'deleted_items_style' => :'DeletedItemsStyle',
87
93
  :'style_changed_items_style' => :'StyleChangedItemsStyle',
88
94
  :'words_separator_chars' => :'WordsSeparatorChars',
89
- :'use_frames_for_del_ins_elements' => :'UseFramesForDelInsElements',
90
95
  :'detail_level' => :'DetailLevel',
96
+ :'use_frames_for_del_ins_elements' => :'UseFramesForDelInsElements',
91
97
  :'calculate_component_coordinates' => :'CalculateComponentCoordinates',
98
+ :'mark_deleted_inserted_content_deep' => :'MarkDeletedInsertedContentDeep',
92
99
  :'clone_metadata' => :'CloneMetadata',
93
100
  :'meta_data' => :'MetaData',
94
101
  :'password_save_option' => :'PasswordSaveOption',
95
102
  :'password' => :'Password',
96
- :'mark_deleted_inserted_content_deep' => :'MarkDeletedInsertedContentDeep'
103
+ :'diagram_master_setting' => :'DiagramMasterSetting',
104
+ :'original_size' => :'OriginalSize'
97
105
  }
98
106
  end
99
107
 
@@ -103,18 +111,20 @@ module GroupDocsComparisonCloud
103
111
  :'generate_summary_page' => :'BOOLEAN',
104
112
  :'show_deleted_content' => :'BOOLEAN',
105
113
  :'style_change_detection' => :'BOOLEAN',
106
- :'inserted_items_style' => :'StyleSettingsValues',
107
- :'deleted_items_style' => :'StyleSettingsValues',
108
- :'style_changed_items_style' => :'StyleSettingsValues',
114
+ :'inserted_items_style' => :'ItemsStyle',
115
+ :'deleted_items_style' => :'ItemsStyle',
116
+ :'style_changed_items_style' => :'ItemsStyle',
109
117
  :'words_separator_chars' => :'Array<String>',
110
- :'use_frames_for_del_ins_elements' => :'BOOLEAN',
111
118
  :'detail_level' => :'String',
119
+ :'use_frames_for_del_ins_elements' => :'BOOLEAN',
112
120
  :'calculate_component_coordinates' => :'BOOLEAN',
121
+ :'mark_deleted_inserted_content_deep' => :'BOOLEAN',
113
122
  :'clone_metadata' => :'String',
114
- :'meta_data' => :'ComparisonMetadataValues',
123
+ :'meta_data' => :'Metadata',
115
124
  :'password_save_option' => :'String',
116
125
  :'password' => :'String',
117
- :'mark_deleted_inserted_content_deep' => :'BOOLEAN'
126
+ :'diagram_master_setting' => :'DiagramMasterSetting',
127
+ :'original_size' => :'OriginalSize'
118
128
  }
119
129
  end
120
130
 
@@ -126,66 +136,74 @@ module GroupDocsComparisonCloud
126
136
  # convert string to symbol for hash key
127
137
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
128
138
 
129
- if attributes.key?(:'generateSummaryPage')
130
- self.generate_summary_page = attributes[:'generateSummaryPage']
139
+ if attributes.key?(:'GenerateSummaryPage')
140
+ self.generate_summary_page = attributes[:'GenerateSummaryPage']
131
141
  end
132
142
 
133
- if attributes.key?(:'showDeletedContent')
134
- self.show_deleted_content = attributes[:'showDeletedContent']
143
+ if attributes.key?(:'ShowDeletedContent')
144
+ self.show_deleted_content = attributes[:'ShowDeletedContent']
135
145
  end
136
146
 
137
- if attributes.key?(:'styleChangeDetection')
138
- self.style_change_detection = attributes[:'styleChangeDetection']
147
+ if attributes.key?(:'StyleChangeDetection')
148
+ self.style_change_detection = attributes[:'StyleChangeDetection']
139
149
  end
140
150
 
141
- if attributes.key?(:'insertedItemsStyle')
142
- self.inserted_items_style = attributes[:'insertedItemsStyle']
151
+ if attributes.key?(:'InsertedItemsStyle')
152
+ self.inserted_items_style = attributes[:'InsertedItemsStyle']
143
153
  end
144
154
 
145
- if attributes.key?(:'deletedItemsStyle')
146
- self.deleted_items_style = attributes[:'deletedItemsStyle']
155
+ if attributes.key?(:'DeletedItemsStyle')
156
+ self.deleted_items_style = attributes[:'DeletedItemsStyle']
147
157
  end
148
158
 
149
- if attributes.key?(:'styleChangedItemsStyle')
150
- self.style_changed_items_style = attributes[:'styleChangedItemsStyle']
159
+ if attributes.key?(:'StyleChangedItemsStyle')
160
+ self.style_changed_items_style = attributes[:'StyleChangedItemsStyle']
151
161
  end
152
162
 
153
- if attributes.key?(:'wordsSeparatorChars')
154
- if (value = attributes[:'wordsSeparatorChars']).is_a?(Array)
163
+ if attributes.key?(:'WordsSeparatorChars')
164
+ if (value = attributes[:'WordsSeparatorChars']).is_a?(Array)
155
165
  self.words_separator_chars = value
156
166
  end
157
167
  end
158
168
 
159
- if attributes.key?(:'useFramesForDelInsElements')
160
- self.use_frames_for_del_ins_elements = attributes[:'useFramesForDelInsElements']
169
+ if attributes.key?(:'DetailLevel')
170
+ self.detail_level = attributes[:'DetailLevel']
171
+ end
172
+
173
+ if attributes.key?(:'UseFramesForDelInsElements')
174
+ self.use_frames_for_del_ins_elements = attributes[:'UseFramesForDelInsElements']
175
+ end
176
+
177
+ if attributes.key?(:'CalculateComponentCoordinates')
178
+ self.calculate_component_coordinates = attributes[:'CalculateComponentCoordinates']
161
179
  end
162
180
 
163
- if attributes.key?(:'detailLevel')
164
- self.detail_level = attributes[:'detailLevel']
181
+ if attributes.key?(:'MarkDeletedInsertedContentDeep')
182
+ self.mark_deleted_inserted_content_deep = attributes[:'MarkDeletedInsertedContentDeep']
165
183
  end
166
184
 
167
- if attributes.key?(:'calculateComponentCoordinates')
168
- self.calculate_component_coordinates = attributes[:'calculateComponentCoordinates']
185
+ if attributes.key?(:'CloneMetadata')
186
+ self.clone_metadata = attributes[:'CloneMetadata']
169
187
  end
170
188
 
171
- if attributes.key?(:'cloneMetadata')
172
- self.clone_metadata = attributes[:'cloneMetadata']
189
+ if attributes.key?(:'MetaData')
190
+ self.meta_data = attributes[:'MetaData']
173
191
  end
174
192
 
175
- if attributes.key?(:'metaData')
176
- self.meta_data = attributes[:'metaData']
193
+ if attributes.key?(:'PasswordSaveOption')
194
+ self.password_save_option = attributes[:'PasswordSaveOption']
177
195
  end
178
196
 
179
- if attributes.key?(:'passwordSaveOption')
180
- self.password_save_option = attributes[:'passwordSaveOption']
197
+ if attributes.key?(:'Password')
198
+ self.password = attributes[:'Password']
181
199
  end
182
200
 
183
- if attributes.key?(:'password')
184
- self.password = attributes[:'password']
201
+ if attributes.key?(:'DiagramMasterSetting')
202
+ self.diagram_master_setting = attributes[:'DiagramMasterSetting']
185
203
  end
186
204
 
187
- if attributes.key?(:'markDeletedInsertedContentDeep')
188
- self.mark_deleted_inserted_content_deep = attributes[:'markDeletedInsertedContentDeep']
205
+ if attributes.key?(:'OriginalSize')
206
+ self.original_size = attributes[:'OriginalSize']
189
207
  end
190
208
 
191
209
  end
@@ -245,14 +263,16 @@ module GroupDocsComparisonCloud
245
263
  deleted_items_style == other.deleted_items_style &&
246
264
  style_changed_items_style == other.style_changed_items_style &&
247
265
  words_separator_chars == other.words_separator_chars &&
248
- use_frames_for_del_ins_elements == other.use_frames_for_del_ins_elements &&
249
266
  detail_level == other.detail_level &&
267
+ use_frames_for_del_ins_elements == other.use_frames_for_del_ins_elements &&
250
268
  calculate_component_coordinates == other.calculate_component_coordinates &&
269
+ mark_deleted_inserted_content_deep == other.mark_deleted_inserted_content_deep &&
251
270
  clone_metadata == other.clone_metadata &&
252
271
  meta_data == other.meta_data &&
253
272
  password_save_option == other.password_save_option &&
254
273
  password == other.password &&
255
- mark_deleted_inserted_content_deep == other.mark_deleted_inserted_content_deep
274
+ diagram_master_setting == other.diagram_master_setting &&
275
+ original_size == other.original_size
256
276
  end
257
277
 
258
278
  # @see the `==` method
@@ -264,7 +284,13 @@ module GroupDocsComparisonCloud
264
284
  # Calculates hash code according to all attributes.
265
285
  # @return [Fixnum] Hash code
266
286
  def hash
267
- [generate_summary_page, show_deleted_content, style_change_detection, inserted_items_style, deleted_items_style, style_changed_items_style, words_separator_chars, use_frames_for_del_ins_elements, detail_level, calculate_component_coordinates, clone_metadata, meta_data, password_save_option, password, mark_deleted_inserted_content_deep].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
288
+ end
289
+
290
+ # Downcases first letter.
291
+ # @return downcased string
292
+ def uncap(str)
293
+ str[0, 1].downcase + str[1..-1]
268
294
  end
269
295
 
270
296
  # Builds the object from hash
@@ -273,14 +299,16 @@ module GroupDocsComparisonCloud
273
299
  def build_from_hash(attributes)
274
300
  return nil unless attributes.is_a?(Hash)
275
301
  self.class.swagger_types.each_pair do |key, type|
302
+ pname = uncap(self.class.attribute_map[key]).intern
303
+ value = attributes[pname]
276
304
  if type =~ /\AArray<(.*)>/i
277
305
  # check to ensure the input is an array given that the the attribute
278
- # is documented as an array but the input is not
279
- if attributes[self.class.attribute_map[key]].is_a?(Array)
280
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
306
+ # is documented as an array but the input is not
307
+ if value.is_a?(Array)
308
+ self.send("#{key}=", value.map { |v| _deserialize($1, v) })
281
309
  end
282
- elsif !attributes[self.class.attribute_map[key]].nil?
283
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
310
+ elsif !value.nil?
311
+ self.send("#{key}=", _deserialize(type, value))
284
312
  end
285
313
  # or else data not found in attributes(hash), not an issue as the data can be optional
286
314
  end
@@ -295,9 +323,9 @@ module GroupDocsComparisonCloud
295
323
  def _deserialize(type, value)
296
324
  case type.to_sym
297
325
  when :DateTime
298
- Time.at(/\d/.match(value)[0].to_f).to_datetime
326
+ Date.parse value
299
327
  when :Date
300
- Time.at(/\d/.match(value)[0].to_f).to_date
328
+ Date.parse value
301
329
  when :String
302
330
  value.to_s
303
331
  when :Integer