groupdocs_annotation_cloud 19.5 → 20.10

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 (37) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_annotation_cloud.rb +1 -2
  3. data/lib/groupdocs_annotation_cloud/api/annotate_api.rb +5 -104
  4. data/lib/groupdocs_annotation_cloud/api/file_api.rb +7 -7
  5. data/lib/groupdocs_annotation_cloud/api/folder_api.rb +7 -7
  6. data/lib/groupdocs_annotation_cloud/api/info_api.rb +2 -2
  7. data/lib/groupdocs_annotation_cloud/api/preview_api.rb +37 -37
  8. data/lib/groupdocs_annotation_cloud/api/storage_api.rb +5 -5
  9. data/lib/groupdocs_annotation_cloud/api_client.rb +1 -1
  10. data/lib/groupdocs_annotation_cloud/api_error.rb +1 -1
  11. data/lib/groupdocs_annotation_cloud/configuration.rb +1 -1
  12. data/lib/groupdocs_annotation_cloud/models/annotation_api_link.rb +1 -1
  13. data/lib/groupdocs_annotation_cloud/models/annotation_info.rb +147 -64
  14. data/lib/groupdocs_annotation_cloud/models/annotation_reply_info.rb +41 -26
  15. data/lib/groupdocs_annotation_cloud/models/disc_usage.rb +1 -1
  16. data/lib/groupdocs_annotation_cloud/models/document_info.rb +1 -1
  17. data/lib/groupdocs_annotation_cloud/models/error.rb +1 -1
  18. data/lib/groupdocs_annotation_cloud/models/error_details.rb +1 -1
  19. data/lib/groupdocs_annotation_cloud/models/file_version.rb +1 -1
  20. data/lib/groupdocs_annotation_cloud/models/file_versions.rb +1 -1
  21. data/lib/groupdocs_annotation_cloud/models/files_list.rb +1 -1
  22. data/lib/groupdocs_annotation_cloud/models/files_upload_result.rb +1 -1
  23. data/lib/groupdocs_annotation_cloud/models/format.rb +1 -1
  24. data/lib/groupdocs_annotation_cloud/models/formats_result.rb +1 -1
  25. data/lib/groupdocs_annotation_cloud/models/link.rb +1 -1
  26. data/lib/groupdocs_annotation_cloud/models/link_element.rb +1 -1
  27. data/lib/groupdocs_annotation_cloud/models/object_exist.rb +1 -1
  28. data/lib/groupdocs_annotation_cloud/models/page_image.rb +2 -2
  29. data/lib/groupdocs_annotation_cloud/models/page_images.rb +1 -1
  30. data/lib/groupdocs_annotation_cloud/models/page_info.rb +5 -32
  31. data/lib/groupdocs_annotation_cloud/models/point.rb +1 -1
  32. data/lib/groupdocs_annotation_cloud/models/rectangle.rb +1 -1
  33. data/lib/groupdocs_annotation_cloud/models/storage_exist.rb +1 -1
  34. data/lib/groupdocs_annotation_cloud/models/storage_file.rb +1 -1
  35. data/lib/groupdocs_annotation_cloud/version.rb +2 -2
  36. metadata +2 -3
  37. data/lib/groupdocs_annotation_cloud/models/row_info.rb +0 -298
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="version.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
@@ -25,5 +25,5 @@
25
25
  # --------------------------------------------------------------------------------------------------------------------
26
26
  #
27
27
  module GroupDocsAnnotationCloud
28
- VERSION = "19.5".freeze
28
+ VERSION = "20.10".freeze
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupdocs_annotation_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '19.5'
4
+ version: '20.10'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GroupDocs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-07-02 00:00:00.000000000 Z
11
+ date: 2020-10-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -115,7 +115,6 @@ files:
115
115
  - lib/groupdocs_annotation_cloud/models/page_info.rb
116
116
  - lib/groupdocs_annotation_cloud/models/point.rb
117
117
  - lib/groupdocs_annotation_cloud/models/rectangle.rb
118
- - lib/groupdocs_annotation_cloud/models/row_info.rb
119
118
  - lib/groupdocs_annotation_cloud/models/storage_exist.rb
120
119
  - lib/groupdocs_annotation_cloud/models/storage_file.rb
121
120
  - lib/groupdocs_annotation_cloud/version.rb
@@ -1,298 +0,0 @@
1
- #
2
- # --------------------------------------------------------------------------------------------------------------------
3
- # <copyright company="Aspose Pty Ltd" file="row_info.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 GroupDocsAnnotationCloud
31
- # Describes text row information
32
- class RowInfo
33
-
34
- # Gets or sets the list of character coordinates
35
- attr_accessor :character_coordinates
36
-
37
- # Gets or sets the text line height
38
- attr_accessor :line_height
39
-
40
- # Gets or sets the x coordinate of the text line upper left corner
41
- attr_accessor :line_left
42
-
43
- # Gets or sets the y coordinate of the text line upper left corner
44
- attr_accessor :line_top
45
-
46
- # Gets or sets the text line width
47
- attr_accessor :line_width
48
-
49
- # Gets or sets the text
50
- attr_accessor :text
51
-
52
- # Gets or sets the list of text coordinates
53
- attr_accessor :text_coordinates
54
-
55
- # Attribute mapping from ruby-style variable name to JSON key.
56
- def self.attribute_map
57
- {
58
- :'character_coordinates' => :'CharacterCoordinates',
59
- :'line_height' => :'LineHeight',
60
- :'line_left' => :'LineLeft',
61
- :'line_top' => :'LineTop',
62
- :'line_width' => :'LineWidth',
63
- :'text' => :'Text',
64
- :'text_coordinates' => :'TextCoordinates'
65
- }
66
- end
67
-
68
- # Attribute type mapping.
69
- def self.swagger_types
70
- {
71
- :'character_coordinates' => :'Array<Float>',
72
- :'line_height' => :'Float',
73
- :'line_left' => :'Float',
74
- :'line_top' => :'Float',
75
- :'line_width' => :'Float',
76
- :'text' => :'String',
77
- :'text_coordinates' => :'Array<Float>'
78
- }
79
- end
80
-
81
- # Initializes the object
82
- # @param [Hash] attributes Model attributes in the form of hash
83
- def initialize(attributes = {})
84
- return unless attributes.is_a?(Hash)
85
-
86
- # convert string to symbol for hash key
87
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
88
-
89
- if attributes.key?(:'CharacterCoordinates')
90
- if (value = attributes[:'CharacterCoordinates']).is_a?(Array)
91
- self.character_coordinates = value
92
- end
93
- end
94
-
95
- if attributes.key?(:'LineHeight')
96
- self.line_height = attributes[:'LineHeight']
97
- end
98
-
99
- if attributes.key?(:'LineLeft')
100
- self.line_left = attributes[:'LineLeft']
101
- end
102
-
103
- if attributes.key?(:'LineTop')
104
- self.line_top = attributes[:'LineTop']
105
- end
106
-
107
- if attributes.key?(:'LineWidth')
108
- self.line_width = attributes[:'LineWidth']
109
- end
110
-
111
- if attributes.key?(:'Text')
112
- self.text = attributes[:'Text']
113
- end
114
-
115
- if attributes.key?(:'TextCoordinates')
116
- if (value = attributes[:'TextCoordinates']).is_a?(Array)
117
- self.text_coordinates = value
118
- end
119
- end
120
-
121
- end
122
-
123
- # Show invalid properties with the reasons. Usually used together with valid?
124
- # @return Array for valid properies with the reasons
125
- def list_invalid_properties
126
- invalid_properties = []
127
- if @line_height.nil?
128
- invalid_properties.push("invalid value for 'line_height', line_height cannot be nil.")
129
- end
130
-
131
- if @line_left.nil?
132
- invalid_properties.push("invalid value for 'line_left', line_left cannot be nil.")
133
- end
134
-
135
- if @line_top.nil?
136
- invalid_properties.push("invalid value for 'line_top', line_top cannot be nil.")
137
- end
138
-
139
- if @line_width.nil?
140
- invalid_properties.push("invalid value for 'line_width', line_width cannot be nil.")
141
- end
142
-
143
- return invalid_properties
144
- end
145
-
146
- # Check to see if the all the properties in the model are valid
147
- # @return true if the model is valid
148
- def valid?
149
- return false if @line_height.nil?
150
- return false if @line_left.nil?
151
- return false if @line_top.nil?
152
- return false if @line_width.nil?
153
- return true
154
- end
155
-
156
- # Checks equality by comparing each attribute.
157
- # @param [Object] Object to be compared
158
- def ==(other)
159
- return true if self.equal?(other)
160
- self.class == other.class &&
161
- character_coordinates == other.character_coordinates &&
162
- line_height == other.line_height &&
163
- line_left == other.line_left &&
164
- line_top == other.line_top &&
165
- line_width == other.line_width &&
166
- text == other.text &&
167
- text_coordinates == other.text_coordinates
168
- end
169
-
170
- # @see the `==` method
171
- # @param [Object] Object to be compared
172
- def eql?(other)
173
- self == other
174
- end
175
-
176
- # Calculates hash code according to all attributes.
177
- # @return [Fixnum] Hash code
178
- def hash
179
- [character_coordinates, line_height, line_left, line_top, line_width, text, text_coordinates].hash
180
- end
181
-
182
- # Downcases first letter.
183
- # @return downcased string
184
- def uncap(str)
185
- str[0, 1].downcase + str[1..-1]
186
- end
187
-
188
- # Builds the object from hash
189
- # @param [Hash] attributes Model attributes in the form of hash
190
- # @return [Object] Returns the model itself
191
- def build_from_hash(attributes)
192
- return nil unless attributes.is_a?(Hash)
193
- self.class.swagger_types.each_pair do |key, type|
194
- pname = uncap(self.class.attribute_map[key]).intern
195
- value = attributes[pname]
196
- if type =~ /\AArray<(.*)>/i
197
- # check to ensure the input is an array given that the the attribute
198
- # is documented as an array but the input is not
199
- if value.is_a?(Array)
200
- self.send("#{key}=", value.map { |v| _deserialize($1, v) })
201
- end
202
- elsif !value.nil?
203
- self.send("#{key}=", _deserialize(type, value))
204
- end
205
- # or else data not found in attributes(hash), not an issue as the data can be optional
206
- end
207
-
208
- self
209
- end
210
-
211
- # Deserializes the data based on type
212
- # @param string type Data type
213
- # @param string value Value to be deserialized
214
- # @return [Object] Deserialized data
215
- def _deserialize(type, value)
216
- case type.to_sym
217
- when :DateTime
218
- Date.parse value
219
- when :Date
220
- Date.parse value
221
- when :String
222
- value.to_s
223
- when :Integer
224
- value.to_i
225
- when :Float
226
- value.to_f
227
- when :BOOLEAN
228
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
229
- true
230
- else
231
- false
232
- end
233
- when :Object
234
- # generic object (usually a Hash), return directly
235
- value
236
- when /\AArray<(?<inner_type>.+)>\z/
237
- inner_type = Regexp.last_match[:inner_type]
238
- value.map { |v| _deserialize(inner_type, v) }
239
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
240
- k_type = Regexp.last_match[:k_type]
241
- v_type = Regexp.last_match[:v_type]
242
- {}.tap do |hash|
243
- value.each do |k, v|
244
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
245
- end
246
- end
247
- else
248
- # model
249
- temp_model = GroupDocsAnnotationCloud.const_get(type).new
250
- temp_model.build_from_hash(value)
251
- end
252
- end
253
-
254
- # Returns the string representation of the object
255
- # @return [String] String presentation of the object
256
- def to_s
257
- to_hash.to_s
258
- end
259
-
260
- # to_body is an alias to to_hash (backward compatibility)
261
- # @return [Hash] Returns the object in the form of hash
262
- def to_body
263
- to_hash
264
- end
265
-
266
- # Returns the object in the form of hash
267
- # @return [Hash] Returns the object in the form of hash
268
- def to_hash
269
- hash = {}
270
- self.class.attribute_map.each_pair do |attr, param|
271
- value = self.send(attr)
272
- next if value.nil?
273
- hash[param] = _to_hash(value)
274
- end
275
- hash
276
- end
277
-
278
- # Outputs non-array value in the form of hash
279
- # For object, use to_hash. Otherwise, just return the value
280
- # @param [Object] value Any valid value
281
- # @return [Hash] Returns the value in the form of hash
282
- def _to_hash(value)
283
- if value.is_a?(Array)
284
- value.compact.map { |v| _to_hash(v) }
285
- elsif value.is_a?(Hash)
286
- {}.tap do |hash|
287
- value.each { |k, v| hash[k] = _to_hash(v) }
288
- end
289
- elsif value.respond_to? :to_hash
290
- value.to_hash
291
- else
292
- value
293
- end
294
- end
295
-
296
- end
297
-
298
- end