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.
- checksums.yaml +4 -4
- data/lib/groupdocs_comparison_cloud.rb +6 -3
- data/lib/groupdocs_comparison_cloud/api/compare_api.rb +11 -11
- data/lib/groupdocs_comparison_cloud/api/file_api.rb +7 -7
- data/lib/groupdocs_comparison_cloud/api/folder_api.rb +7 -7
- data/lib/groupdocs_comparison_cloud/api/info_api.rb +98 -1
- data/lib/groupdocs_comparison_cloud/api/storage_api.rb +5 -5
- data/lib/groupdocs_comparison_cloud/api_client.rb +1 -1
- data/lib/groupdocs_comparison_cloud/api_error.rb +7 -4
- data/lib/groupdocs_comparison_cloud/configuration.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/change_info.rb +109 -11
- data/lib/groupdocs_comparison_cloud/models/comparison_options.rb +298 -0
- data/lib/groupdocs_comparison_cloud/models/diagram_master_setting.rb +5 -35
- data/lib/groupdocs_comparison_cloud/models/disc_usage.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/error.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/error_details.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/file_info.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/file_version.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/file_versions.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/files_list.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/files_upload_result.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/format.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/formats_result.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/info_result.rb +254 -0
- data/lib/groupdocs_comparison_cloud/models/items_style.rb +21 -6
- data/lib/groupdocs_comparison_cloud/models/link.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/metadata.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/object_exist.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/{options.rb → page_info.rb} +41 -38
- data/lib/groupdocs_comparison_cloud/models/rectangle.rb +264 -0
- data/lib/groupdocs_comparison_cloud/models/settings.rb +203 -28
- data/lib/groupdocs_comparison_cloud/models/{original_size.rb → size.rb} +6 -6
- data/lib/groupdocs_comparison_cloud/models/storage_exist.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/storage_file.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/style_change_info.rb +1 -1
- data/lib/groupdocs_comparison_cloud/models/updates_options.rb +55 -3
- data/lib/groupdocs_comparison_cloud/version.rb +2 -2
- metadata +7 -4
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="files_list.rb">
|
4
|
-
# Copyright (c) 2003-
|
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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="files_upload_result.rb">
|
4
|
-
# Copyright (c) 2003-
|
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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="format.rb">
|
4
|
-
# Copyright (c) 2003-
|
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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="formats_result.rb">
|
4
|
-
# Copyright (c) 2003-
|
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
|
@@ -0,0 +1,254 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="info_result.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
|
+
# Represents document information
|
32
|
+
class InfoResult
|
33
|
+
|
34
|
+
# Document format
|
35
|
+
attr_accessor :format
|
36
|
+
|
37
|
+
# Document file extension
|
38
|
+
attr_accessor :extension
|
39
|
+
|
40
|
+
# Document file size
|
41
|
+
attr_accessor :size
|
42
|
+
|
43
|
+
# Pages count
|
44
|
+
attr_accessor :page_count
|
45
|
+
|
46
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
47
|
+
def self.attribute_map
|
48
|
+
{
|
49
|
+
:'format' => :'Format',
|
50
|
+
:'extension' => :'Extension',
|
51
|
+
:'size' => :'Size',
|
52
|
+
:'page_count' => :'PageCount'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# Attribute type mapping.
|
57
|
+
def self.swagger_types
|
58
|
+
{
|
59
|
+
:'format' => :'String',
|
60
|
+
:'extension' => :'String',
|
61
|
+
:'size' => :'Integer',
|
62
|
+
:'page_count' => :'Integer'
|
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?(:'Format')
|
75
|
+
self.format = attributes[:'Format']
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.key?(:'Extension')
|
79
|
+
self.extension = attributes[:'Extension']
|
80
|
+
end
|
81
|
+
|
82
|
+
if attributes.key?(:'Size')
|
83
|
+
self.size = attributes[:'Size']
|
84
|
+
end
|
85
|
+
|
86
|
+
if attributes.key?(:'PageCount')
|
87
|
+
self.page_count = attributes[:'PageCount']
|
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 @size.nil?
|
97
|
+
invalid_properties.push("invalid value for 'size', size cannot be nil.")
|
98
|
+
end
|
99
|
+
|
100
|
+
if @page_count.nil?
|
101
|
+
invalid_properties.push("invalid value for 'page_count', page_count cannot be nil.")
|
102
|
+
end
|
103
|
+
|
104
|
+
return invalid_properties
|
105
|
+
end
|
106
|
+
|
107
|
+
# Check to see if the all the properties in the model are valid
|
108
|
+
# @return true if the model is valid
|
109
|
+
def valid?
|
110
|
+
return false if @size.nil?
|
111
|
+
return false if @page_count.nil?
|
112
|
+
return true
|
113
|
+
end
|
114
|
+
|
115
|
+
# Checks equality by comparing each attribute.
|
116
|
+
# @param [Object] Object to be compared
|
117
|
+
def ==(other)
|
118
|
+
return true if self.equal?(other)
|
119
|
+
self.class == other.class &&
|
120
|
+
format == other.format &&
|
121
|
+
extension == other.extension &&
|
122
|
+
size == other.size &&
|
123
|
+
page_count == other.page_count
|
124
|
+
end
|
125
|
+
|
126
|
+
# @see the `==` method
|
127
|
+
# @param [Object] Object to be compared
|
128
|
+
def eql?(other)
|
129
|
+
self == other
|
130
|
+
end
|
131
|
+
|
132
|
+
# Calculates hash code according to all attributes.
|
133
|
+
# @return [Fixnum] Hash code
|
134
|
+
def hash
|
135
|
+
[format, extension, size, page_count].hash
|
136
|
+
end
|
137
|
+
|
138
|
+
# Downcases first letter.
|
139
|
+
# @return downcased string
|
140
|
+
def uncap(str)
|
141
|
+
str[0, 1].downcase + str[1..-1]
|
142
|
+
end
|
143
|
+
|
144
|
+
# Builds the object from hash
|
145
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
146
|
+
# @return [Object] Returns the model itself
|
147
|
+
def build_from_hash(attributes)
|
148
|
+
return nil unless attributes.is_a?(Hash)
|
149
|
+
self.class.swagger_types.each_pair do |key, type|
|
150
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
151
|
+
value = attributes[pname]
|
152
|
+
if type =~ /\AArray<(.*)>/i
|
153
|
+
# check to ensure the input is an array given that the the attribute
|
154
|
+
# is documented as an array but the input is not
|
155
|
+
if value.is_a?(Array)
|
156
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
157
|
+
end
|
158
|
+
elsif !value.nil?
|
159
|
+
self.send("#{key}=", _deserialize(type, value))
|
160
|
+
end
|
161
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
162
|
+
end
|
163
|
+
|
164
|
+
self
|
165
|
+
end
|
166
|
+
|
167
|
+
# Deserializes the data based on type
|
168
|
+
# @param string type Data type
|
169
|
+
# @param string value Value to be deserialized
|
170
|
+
# @return [Object] Deserialized data
|
171
|
+
def _deserialize(type, value)
|
172
|
+
case type.to_sym
|
173
|
+
when :DateTime
|
174
|
+
Date.parse value
|
175
|
+
when :Date
|
176
|
+
Date.parse value
|
177
|
+
when :String
|
178
|
+
value.to_s
|
179
|
+
when :Integer
|
180
|
+
value.to_i
|
181
|
+
when :Float
|
182
|
+
value.to_f
|
183
|
+
when :BOOLEAN
|
184
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
185
|
+
true
|
186
|
+
else
|
187
|
+
false
|
188
|
+
end
|
189
|
+
when :Object
|
190
|
+
# generic object (usually a Hash), return directly
|
191
|
+
value
|
192
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
193
|
+
inner_type = Regexp.last_match[:inner_type]
|
194
|
+
value.map { |v| _deserialize(inner_type, v) }
|
195
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
196
|
+
k_type = Regexp.last_match[:k_type]
|
197
|
+
v_type = Regexp.last_match[:v_type]
|
198
|
+
{}.tap do |hash|
|
199
|
+
value.each do |k, v|
|
200
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
201
|
+
end
|
202
|
+
end
|
203
|
+
else
|
204
|
+
# model
|
205
|
+
temp_model = GroupDocsComparisonCloud.const_get(type).new
|
206
|
+
temp_model.build_from_hash(value)
|
207
|
+
end
|
208
|
+
end
|
209
|
+
|
210
|
+
# Returns the string representation of the object
|
211
|
+
# @return [String] String presentation of the object
|
212
|
+
def to_s
|
213
|
+
to_hash.to_s
|
214
|
+
end
|
215
|
+
|
216
|
+
# to_body is an alias to to_hash (backward compatibility)
|
217
|
+
# @return [Hash] Returns the object in the form of hash
|
218
|
+
def to_body
|
219
|
+
to_hash
|
220
|
+
end
|
221
|
+
|
222
|
+
# Returns the object in the form of hash
|
223
|
+
# @return [Hash] Returns the object in the form of hash
|
224
|
+
def to_hash
|
225
|
+
hash = {}
|
226
|
+
self.class.attribute_map.each_pair do |attr, param|
|
227
|
+
value = self.send(attr)
|
228
|
+
next if value.nil?
|
229
|
+
hash[param] = _to_hash(value)
|
230
|
+
end
|
231
|
+
hash
|
232
|
+
end
|
233
|
+
|
234
|
+
# Outputs non-array value in the form of hash
|
235
|
+
# For object, use to_hash. Otherwise, just return the value
|
236
|
+
# @param [Object] value Any valid value
|
237
|
+
# @return [Hash] Returns the value in the form of hash
|
238
|
+
def _to_hash(value)
|
239
|
+
if value.is_a?(Array)
|
240
|
+
value.compact.map { |v| _to_hash(v) }
|
241
|
+
elsif value.is_a?(Hash)
|
242
|
+
{}.tap do |hash|
|
243
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
244
|
+
end
|
245
|
+
elsif value.respond_to? :to_hash
|
246
|
+
value.to_hash
|
247
|
+
else
|
248
|
+
value
|
249
|
+
end
|
250
|
+
end
|
251
|
+
|
252
|
+
end
|
253
|
+
|
254
|
+
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="items_style.rb">
|
4
|
-
# Copyright (c) 2003-
|
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
|
@@ -49,9 +49,12 @@ module GroupDocsComparisonCloud
|
|
49
49
|
# Italic style for changed components
|
50
50
|
attr_accessor :italic
|
51
51
|
|
52
|
-
#
|
52
|
+
# Strike through style for changed components
|
53
53
|
attr_accessor :strike_through
|
54
54
|
|
55
|
+
# Underline style for changed components
|
56
|
+
attr_accessor :underline
|
57
|
+
|
55
58
|
# Attribute mapping from ruby-style variable name to JSON key.
|
56
59
|
def self.attribute_map
|
57
60
|
{
|
@@ -61,7 +64,8 @@ module GroupDocsComparisonCloud
|
|
61
64
|
:'end_separator_string' => :'EndSeparatorString',
|
62
65
|
:'bold' => :'Bold',
|
63
66
|
:'italic' => :'Italic',
|
64
|
-
:'strike_through' => :'StrikeThrough'
|
67
|
+
:'strike_through' => :'StrikeThrough',
|
68
|
+
:'underline' => :'Underline'
|
65
69
|
}
|
66
70
|
end
|
67
71
|
|
@@ -74,7 +78,8 @@ module GroupDocsComparisonCloud
|
|
74
78
|
:'end_separator_string' => :'String',
|
75
79
|
:'bold' => :'BOOLEAN',
|
76
80
|
:'italic' => :'BOOLEAN',
|
77
|
-
:'strike_through' => :'BOOLEAN'
|
81
|
+
:'strike_through' => :'BOOLEAN',
|
82
|
+
:'underline' => :'BOOLEAN'
|
78
83
|
}
|
79
84
|
end
|
80
85
|
|
@@ -114,6 +119,10 @@ module GroupDocsComparisonCloud
|
|
114
119
|
self.strike_through = attributes[:'StrikeThrough']
|
115
120
|
end
|
116
121
|
|
122
|
+
if attributes.key?(:'Underline')
|
123
|
+
self.underline = attributes[:'Underline']
|
124
|
+
end
|
125
|
+
|
117
126
|
end
|
118
127
|
|
119
128
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -132,6 +141,10 @@ module GroupDocsComparisonCloud
|
|
132
141
|
invalid_properties.push("invalid value for 'strike_through', strike_through cannot be nil.")
|
133
142
|
end
|
134
143
|
|
144
|
+
if @underline.nil?
|
145
|
+
invalid_properties.push("invalid value for 'underline', underline cannot be nil.")
|
146
|
+
end
|
147
|
+
|
135
148
|
return invalid_properties
|
136
149
|
end
|
137
150
|
|
@@ -141,6 +154,7 @@ module GroupDocsComparisonCloud
|
|
141
154
|
return false if @bold.nil?
|
142
155
|
return false if @italic.nil?
|
143
156
|
return false if @strike_through.nil?
|
157
|
+
return false if @underline.nil?
|
144
158
|
return true
|
145
159
|
end
|
146
160
|
|
@@ -155,7 +169,8 @@ module GroupDocsComparisonCloud
|
|
155
169
|
end_separator_string == other.end_separator_string &&
|
156
170
|
bold == other.bold &&
|
157
171
|
italic == other.italic &&
|
158
|
-
strike_through == other.strike_through
|
172
|
+
strike_through == other.strike_through &&
|
173
|
+
underline == other.underline
|
159
174
|
end
|
160
175
|
|
161
176
|
# @see the `==` method
|
@@ -167,7 +182,7 @@ module GroupDocsComparisonCloud
|
|
167
182
|
# Calculates hash code according to all attributes.
|
168
183
|
# @return [Fixnum] Hash code
|
169
184
|
def hash
|
170
|
-
[font_color, highlight_color, begin_separator_string, end_separator_string, bold, italic, strike_through].hash
|
185
|
+
[font_color, highlight_color, begin_separator_string, end_separator_string, bold, italic, strike_through, underline].hash
|
171
186
|
end
|
172
187
|
|
173
188
|
# Downcases first letter.
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="link.rb">
|
4
|
-
# Copyright (c) 2003-
|
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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="metadata.rb">
|
4
|
-
# Copyright (c) 2003-
|
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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="object_exist.rb">
|
4
|
-
# Copyright (c) 2003-
|
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
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose Pty Ltd" file="
|
4
|
-
# Copyright (c) 2003-
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="page_info.rb">
|
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
|
@@ -28,38 +28,33 @@
|
|
28
28
|
require 'date'
|
29
29
|
|
30
30
|
module GroupDocsComparisonCloud
|
31
|
-
#
|
32
|
-
class
|
31
|
+
# Represents information about page
|
32
|
+
class PageInfo
|
33
33
|
|
34
|
-
#
|
35
|
-
attr_accessor :
|
34
|
+
# Page width
|
35
|
+
attr_accessor :width
|
36
36
|
|
37
|
-
#
|
38
|
-
attr_accessor :
|
37
|
+
# Page height
|
38
|
+
attr_accessor :height
|
39
39
|
|
40
|
-
#
|
41
|
-
attr_accessor :
|
42
|
-
|
43
|
-
# Path to the resultant document (if not specified the document will not be saved)
|
44
|
-
attr_accessor :output_path
|
40
|
+
# Page number
|
41
|
+
attr_accessor :page_number
|
45
42
|
|
46
43
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
44
|
def self.attribute_map
|
48
45
|
{
|
49
|
-
:'
|
50
|
-
:'
|
51
|
-
:'
|
52
|
-
:'output_path' => :'OutputPath'
|
46
|
+
:'width' => :'Width',
|
47
|
+
:'height' => :'Height',
|
48
|
+
:'page_number' => :'PageNumber'
|
53
49
|
}
|
54
50
|
end
|
55
51
|
|
56
52
|
# Attribute type mapping.
|
57
53
|
def self.swagger_types
|
58
54
|
{
|
59
|
-
:'
|
60
|
-
:'
|
61
|
-
:'
|
62
|
-
:'output_path' => :'String'
|
55
|
+
:'width' => :'Integer',
|
56
|
+
:'height' => :'Integer',
|
57
|
+
:'page_number' => :'Integer'
|
63
58
|
}
|
64
59
|
end
|
65
60
|
|
@@ -71,22 +66,16 @@ module GroupDocsComparisonCloud
|
|
71
66
|
# convert string to symbol for hash key
|
72
67
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
73
68
|
|
74
|
-
if attributes.key?(:'
|
75
|
-
self.
|
69
|
+
if attributes.key?(:'Width')
|
70
|
+
self.width = attributes[:'Width']
|
76
71
|
end
|
77
72
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
|
80
|
-
self.target_files = value
|
81
|
-
end
|
73
|
+
if attributes.key?(:'Height')
|
74
|
+
self.height = attributes[:'Height']
|
82
75
|
end
|
83
76
|
|
84
|
-
if attributes.key?(:'
|
85
|
-
self.
|
86
|
-
end
|
87
|
-
|
88
|
-
if attributes.key?(:'OutputPath')
|
89
|
-
self.output_path = attributes[:'OutputPath']
|
77
|
+
if attributes.key?(:'PageNumber')
|
78
|
+
self.page_number = attributes[:'PageNumber']
|
90
79
|
end
|
91
80
|
|
92
81
|
end
|
@@ -95,12 +84,27 @@ module GroupDocsComparisonCloud
|
|
95
84
|
# @return Array for valid properies with the reasons
|
96
85
|
def list_invalid_properties
|
97
86
|
invalid_properties = []
|
87
|
+
if @width.nil?
|
88
|
+
invalid_properties.push("invalid value for 'width', width cannot be nil.")
|
89
|
+
end
|
90
|
+
|
91
|
+
if @height.nil?
|
92
|
+
invalid_properties.push("invalid value for 'height', height cannot be nil.")
|
93
|
+
end
|
94
|
+
|
95
|
+
if @page_number.nil?
|
96
|
+
invalid_properties.push("invalid value for 'page_number', page_number cannot be nil.")
|
97
|
+
end
|
98
|
+
|
98
99
|
return invalid_properties
|
99
100
|
end
|
100
101
|
|
101
102
|
# Check to see if the all the properties in the model are valid
|
102
103
|
# @return true if the model is valid
|
103
104
|
def valid?
|
105
|
+
return false if @width.nil?
|
106
|
+
return false if @height.nil?
|
107
|
+
return false if @page_number.nil?
|
104
108
|
return true
|
105
109
|
end
|
106
110
|
|
@@ -109,10 +113,9 @@ module GroupDocsComparisonCloud
|
|
109
113
|
def ==(other)
|
110
114
|
return true if self.equal?(other)
|
111
115
|
self.class == other.class &&
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
output_path == other.output_path
|
116
|
+
width == other.width &&
|
117
|
+
height == other.height &&
|
118
|
+
page_number == other.page_number
|
116
119
|
end
|
117
120
|
|
118
121
|
# @see the `==` method
|
@@ -124,7 +127,7 @@ module GroupDocsComparisonCloud
|
|
124
127
|
# Calculates hash code according to all attributes.
|
125
128
|
# @return [Fixnum] Hash code
|
126
129
|
def hash
|
127
|
-
[
|
130
|
+
[width, height, page_number].hash
|
128
131
|
end
|
129
132
|
|
130
133
|
# Downcases first letter.
|