groupdocs_conversion_cloud 22.3 → 22.10

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b93578f301f3dd674254b13c04a283e6619a0be1
4
- data.tar.gz: 905df83bec7c3bbe4256d4411ce149b0ae04cf0b
3
+ metadata.gz: 96b04fc7da714f510ecd002a911dfd65aaec8a94
4
+ data.tar.gz: b6c54223fc4fdb35f945a103bb267b69791ccd8d
5
5
  SHA512:
6
- metadata.gz: 36ce390b64933663dc793e7d7ec77e837fd65b9d74adc266c4c38a11dfb0c03fc3da9cd539a2c141dc029838d5093fb0dd10237c3024299ca8eaacd055ec16ae
7
- data.tar.gz: 5f9e143615109ec4292646657c556f1e34bfef613196a1f4372ca7d8bbf49ecea5c7193ad86096754c05a28b7e1382d01c9b883f934b867a0568ccff3c1e54b8
6
+ metadata.gz: 5ab8cefccc5408d9325402c3747f08c2bc018d5a6adc6414503f6fef38675a6bf855911a4e35a2999fd5c49925e123c370865f99c2c6a4aae8118fcbae1e110b
7
+ data.tar.gz: bbb635d3abbfbc1296688d0dd6a485bc4c2739ee622557cc5ea9f97898a1f458a32e657b3ee0544a6968f255cf3995c69261ca841b21fef1908814e3d4180f48
@@ -0,0 +1,239 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose Pty Ltd" file="personal_storage_load_options.rb">
4
+ # Copyright (c) 2003-2022 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 GroupDocsConversionCloud
31
+ # Options for loading personal storage documents.
32
+ class PersonalStorageLoadOptions
33
+
34
+ # The format of input file, (\"docx\", for example). This field must be filled with correct input file format when using ConvertDirect method, which accept input file as binary stream, and, because of that, API can correctly handle LoadOptions. In regular conversion, the input file format taken from the input file name and this field ignored.
35
+ attr_accessor :format
36
+
37
+ # Folder which to be processed Default is Inbox
38
+ attr_accessor :folder
39
+
40
+ # Controls how many levels in depth to perform conversion
41
+ attr_accessor :depth
42
+
43
+ # Attribute mapping from ruby-style variable name to JSON key.
44
+ def self.attribute_map
45
+ {
46
+ :'format' => :'Format',
47
+ :'folder' => :'Folder',
48
+ :'depth' => :'Depth'
49
+ }
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.swagger_types
54
+ {
55
+ :'format' => :'String',
56
+ :'folder' => :'String',
57
+ :'depth' => :'Integer'
58
+ }
59
+ end
60
+
61
+ # Initializes the object
62
+ # @param [Hash] attributes Model attributes in the form of hash
63
+ def initialize(attributes = {})
64
+ return unless attributes.is_a?(Hash)
65
+
66
+ # convert string to symbol for hash key
67
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
68
+
69
+ if attributes.key?(:'Format')
70
+ self.format = attributes[:'Format']
71
+ end
72
+
73
+ if attributes.key?(:'Folder')
74
+ self.folder = attributes[:'Folder']
75
+ end
76
+
77
+ if attributes.key?(:'Depth')
78
+ self.depth = attributes[:'Depth']
79
+ end
80
+
81
+ end
82
+
83
+ # Show invalid properties with the reasons. Usually used together with valid?
84
+ # @return Array for valid properies with the reasons
85
+ def list_invalid_properties
86
+ invalid_properties = []
87
+ if @depth.nil?
88
+ invalid_properties.push("invalid value for 'depth', depth cannot be nil.")
89
+ end
90
+
91
+ return invalid_properties
92
+ end
93
+
94
+ # Check to see if the all the properties in the model are valid
95
+ # @return true if the model is valid
96
+ def valid?
97
+ return false if @depth.nil?
98
+ return true
99
+ end
100
+
101
+ # Checks equality by comparing each attribute.
102
+ # @param [Object] Object to be compared
103
+ def ==(other)
104
+ return true if self.equal?(other)
105
+ self.class == other.class &&
106
+ format == other.format &&
107
+ folder == other.folder &&
108
+ depth == other.depth
109
+ end
110
+
111
+ # @see the `==` method
112
+ # @param [Object] Object to be compared
113
+ def eql?(other)
114
+ self == other
115
+ end
116
+
117
+ # Calculates hash code according to all attributes.
118
+ # @return [Fixnum] Hash code
119
+ def hash
120
+ [format, folder, depth].hash
121
+ end
122
+
123
+ # Downcases first letter.
124
+ # @return downcased string
125
+ def uncap(str)
126
+ str[0, 1].downcase + str[1..-1]
127
+ end
128
+
129
+ # Builds the object from hash
130
+ # @param [Hash] attributes Model attributes in the form of hash
131
+ # @return [Object] Returns the model itself
132
+ def build_from_hash(attributes)
133
+ return nil unless attributes.is_a?(Hash)
134
+ self.class.swagger_types.each_pair do |key, type|
135
+ pname = uncap(self.class.attribute_map[key]).intern
136
+ value = attributes[pname]
137
+ if type =~ /\AArray<(.*)>/i
138
+ # check to ensure the input is an array given that the the attribute
139
+ # is documented as an array but the input is not
140
+ if value.is_a?(Array)
141
+ self.send("#{key}=", value.map { |v| _deserialize($1, v) })
142
+ end
143
+ elsif !value.nil?
144
+ self.send("#{key}=", _deserialize(type, value))
145
+ end
146
+ # or else data not found in attributes(hash), not an issue as the data can be optional
147
+ end
148
+
149
+ self
150
+ end
151
+
152
+ # Deserializes the data based on type
153
+ # @param string type Data type
154
+ # @param string value Value to be deserialized
155
+ # @return [Object] Deserialized data
156
+ def _deserialize(type, value)
157
+ case type.to_sym
158
+ when :DateTime
159
+ Date.parse value
160
+ when :Date
161
+ Date.parse value
162
+ when :String
163
+ value.to_s
164
+ when :Integer
165
+ value.to_i
166
+ when :Float
167
+ value.to_f
168
+ when :BOOLEAN
169
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
170
+ true
171
+ else
172
+ false
173
+ end
174
+ when :Object
175
+ # generic object (usually a Hash), return directly
176
+ value
177
+ when /\AArray<(?<inner_type>.+)>\z/
178
+ inner_type = Regexp.last_match[:inner_type]
179
+ value.map { |v| _deserialize(inner_type, v) }
180
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
181
+ k_type = Regexp.last_match[:k_type]
182
+ v_type = Regexp.last_match[:v_type]
183
+ {}.tap do |hash|
184
+ value.each do |k, v|
185
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
186
+ end
187
+ end
188
+ else
189
+ # model
190
+ temp_model = GroupDocsConversionCloud.const_get(type).new
191
+ temp_model.build_from_hash(value)
192
+ end
193
+ end
194
+
195
+ # Returns the string representation of the object
196
+ # @return [String] String presentation of the object
197
+ def to_s
198
+ to_hash.to_s
199
+ end
200
+
201
+ # to_body is an alias to to_hash (backward compatibility)
202
+ # @return [Hash] Returns the object in the form of hash
203
+ def to_body
204
+ to_hash
205
+ end
206
+
207
+ # Returns the object in the form of hash
208
+ # @return [Hash] Returns the object in the form of hash
209
+ def to_hash
210
+ hash = {}
211
+ self.class.attribute_map.each_pair do |attr, param|
212
+ value = self.send(attr)
213
+ next if value.nil?
214
+ hash[param] = _to_hash(value)
215
+ end
216
+ hash
217
+ end
218
+
219
+ # Outputs non-array value in the form of hash
220
+ # For object, use to_hash. Otherwise, just return the value
221
+ # @param [Object] value Any valid value
222
+ # @return [Hash] Returns the value in the form of hash
223
+ def _to_hash(value)
224
+ if value.is_a?(Array)
225
+ value.compact.map { |v| _to_hash(v) }
226
+ elsif value.is_a?(Hash)
227
+ {}.tap do |hash|
228
+ value.each { |k, v| hash[k] = _to_hash(v) }
229
+ end
230
+ elsif value.respond_to? :to_hash
231
+ value.to_hash
232
+ else
233
+ value
234
+ end
235
+ end
236
+
237
+ end
238
+
239
+ end
@@ -25,5 +25,5 @@
25
25
  # --------------------------------------------------------------------------------------------------------------------
26
26
  #
27
27
  module GroupDocsConversionCloud
28
- VERSION = "22.3".freeze
28
+ VERSION = "22.10".freeze
29
29
  end
@@ -60,6 +60,7 @@ require_relative 'groupdocs_conversion_cloud/models/image_load_options'
60
60
  require_relative 'groupdocs_conversion_cloud/models/one_load_options'
61
61
  require_relative 'groupdocs_conversion_cloud/models/pdf_convert_options'
62
62
  require_relative 'groupdocs_conversion_cloud/models/pdf_load_options'
63
+ require_relative 'groupdocs_conversion_cloud/models/personal_storage_load_options'
63
64
  require_relative 'groupdocs_conversion_cloud/models/presentation_convert_options'
64
65
  require_relative 'groupdocs_conversion_cloud/models/presentation_load_options'
65
66
  require_relative 'groupdocs_conversion_cloud/models/spreadsheet_convert_options'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: groupdocs_conversion_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: '22.3'
4
+ version: '22.10'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GroupDocs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-17 00:00:00.000000000 Z
11
+ date: 2022-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -174,6 +174,7 @@ files:
174
174
  - lib/groupdocs_conversion_cloud/models/ott_load_options.rb
175
175
  - lib/groupdocs_conversion_cloud/models/pdf_convert_options.rb
176
176
  - lib/groupdocs_conversion_cloud/models/pdf_load_options.rb
177
+ - lib/groupdocs_conversion_cloud/models/personal_storage_load_options.rb
177
178
  - lib/groupdocs_conversion_cloud/models/plt_load_options.rb
178
179
  - lib/groupdocs_conversion_cloud/models/png_convert_options.rb
179
180
  - lib/groupdocs_conversion_cloud/models/png_load_options.rb