groupdocs_conversion_cloud 22.3 → 23.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (185) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_conversion_cloud/api/convert_api.rb +3 -3
  3. data/lib/groupdocs_conversion_cloud/api/file_api.rb +6 -6
  4. data/lib/groupdocs_conversion_cloud/api/folder_api.rb +6 -6
  5. data/lib/groupdocs_conversion_cloud/api/info_api.rb +3 -3
  6. data/lib/groupdocs_conversion_cloud/api/license_api.rb +1 -1
  7. data/lib/groupdocs_conversion_cloud/api/storage_api.rb +5 -5
  8. data/lib/groupdocs_conversion_cloud/api_client.rb +1 -1
  9. data/lib/groupdocs_conversion_cloud/api_error.rb +1 -1
  10. data/lib/groupdocs_conversion_cloud/configuration.rb +1 -1
  11. data/lib/groupdocs_conversion_cloud/models/bmp_convert_options.rb +1 -1
  12. data/lib/groupdocs_conversion_cloud/models/bmp_load_options.rb +1 -1
  13. data/lib/groupdocs_conversion_cloud/models/cad_load_options.rb +1 -1
  14. data/lib/groupdocs_conversion_cloud/models/cgm_convert_options.rb +1 -1
  15. data/lib/groupdocs_conversion_cloud/models/consumption_result.rb +1 -1
  16. data/lib/groupdocs_conversion_cloud/models/convert_options.rb +1 -1
  17. data/lib/groupdocs_conversion_cloud/models/convert_settings.rb +1 -1
  18. data/lib/groupdocs_conversion_cloud/models/csv_load_options.rb +1 -1
  19. data/lib/groupdocs_conversion_cloud/models/dcm_convert_options.rb +1 -1
  20. data/lib/groupdocs_conversion_cloud/models/dcm_load_options.rb +1 -1
  21. data/lib/groupdocs_conversion_cloud/models/dgn_load_options.rb +1 -1
  22. data/lib/groupdocs_conversion_cloud/models/diagram_load_options.rb +1 -1
  23. data/lib/groupdocs_conversion_cloud/models/disc_usage.rb +1 -1
  24. data/lib/groupdocs_conversion_cloud/models/djvu_convert_options.rb +1 -1
  25. data/lib/groupdocs_conversion_cloud/models/dng_convert_options.rb +1 -1
  26. data/lib/groupdocs_conversion_cloud/models/dng_load_options.rb +1 -1
  27. data/lib/groupdocs_conversion_cloud/models/doc_convert_options.rb +67 -5
  28. data/lib/groupdocs_conversion_cloud/models/doc_load_options.rb +1 -1
  29. data/lib/groupdocs_conversion_cloud/models/docm_convert_options.rb +67 -5
  30. data/lib/groupdocs_conversion_cloud/models/docm_load_options.rb +1 -1
  31. data/lib/groupdocs_conversion_cloud/models/document_metadata.rb +1 -1
  32. data/lib/groupdocs_conversion_cloud/models/docx_convert_options.rb +67 -5
  33. data/lib/groupdocs_conversion_cloud/models/docx_load_options.rb +1 -1
  34. data/lib/groupdocs_conversion_cloud/models/dot_convert_options.rb +67 -5
  35. data/lib/groupdocs_conversion_cloud/models/dot_load_options.rb +1 -1
  36. data/lib/groupdocs_conversion_cloud/models/dotm_convert_options.rb +67 -5
  37. data/lib/groupdocs_conversion_cloud/models/dotm_load_options.rb +1 -1
  38. data/lib/groupdocs_conversion_cloud/models/dotx_convert_options.rb +67 -5
  39. data/lib/groupdocs_conversion_cloud/models/dotx_load_options.rb +1 -1
  40. data/lib/groupdocs_conversion_cloud/models/dwf_load_options.rb +1 -1
  41. data/lib/groupdocs_conversion_cloud/models/dwg_load_options.rb +1 -1
  42. data/lib/groupdocs_conversion_cloud/models/dxf_load_options.rb +1 -1
  43. data/lib/groupdocs_conversion_cloud/models/email_load_options.rb +1 -1
  44. data/lib/groupdocs_conversion_cloud/models/emf_convert_options.rb +1 -1
  45. data/lib/groupdocs_conversion_cloud/models/emf_load_options.rb +1 -1
  46. data/lib/groupdocs_conversion_cloud/models/eml_load_options.rb +1 -1
  47. data/lib/groupdocs_conversion_cloud/models/emlx_load_options.rb +1 -1
  48. data/lib/groupdocs_conversion_cloud/models/epub_convert_options.rb +1 -1
  49. data/lib/groupdocs_conversion_cloud/models/error.rb +1 -1
  50. data/lib/groupdocs_conversion_cloud/models/error_details.rb +1 -1
  51. data/lib/groupdocs_conversion_cloud/models/field_label.rb +1 -1
  52. data/lib/groupdocs_conversion_cloud/models/file_version.rb +1 -1
  53. data/lib/groupdocs_conversion_cloud/models/file_versions.rb +1 -1
  54. data/lib/groupdocs_conversion_cloud/models/files_list.rb +1 -1
  55. data/lib/groupdocs_conversion_cloud/models/files_upload_result.rb +1 -1
  56. data/lib/groupdocs_conversion_cloud/models/gif_convert_options.rb +1 -1
  57. data/lib/groupdocs_conversion_cloud/models/gif_load_options.rb +1 -1
  58. data/lib/groupdocs_conversion_cloud/models/html_convert_options.rb +1 -1
  59. data/lib/groupdocs_conversion_cloud/models/html_load_options.rb +1 -1
  60. data/lib/groupdocs_conversion_cloud/models/ico_convert_options.rb +1 -1
  61. data/lib/groupdocs_conversion_cloud/models/ico_load_options.rb +1 -1
  62. data/lib/groupdocs_conversion_cloud/models/ifc_load_options.rb +1 -1
  63. data/lib/groupdocs_conversion_cloud/models/igs_load_options.rb +1 -1
  64. data/lib/groupdocs_conversion_cloud/models/image_convert_options.rb +1 -1
  65. data/lib/groupdocs_conversion_cloud/models/image_load_options.rb +1 -1
  66. data/lib/groupdocs_conversion_cloud/models/j2c_convert_options.rb +1 -1
  67. data/lib/groupdocs_conversion_cloud/models/j2c_load_options.rb +1 -1
  68. data/lib/groupdocs_conversion_cloud/models/j2k_convert_options.rb +1 -1
  69. data/lib/groupdocs_conversion_cloud/models/j2k_load_options.rb +1 -1
  70. data/lib/groupdocs_conversion_cloud/models/jp2_convert_options.rb +1 -1
  71. data/lib/groupdocs_conversion_cloud/models/jp2_load_options.rb +1 -1
  72. data/lib/groupdocs_conversion_cloud/models/jpeg_convert_options.rb +1 -1
  73. data/lib/groupdocs_conversion_cloud/models/jpeg_load_options.rb +1 -1
  74. data/lib/groupdocs_conversion_cloud/models/jpf_convert_options.rb +1 -1
  75. data/lib/groupdocs_conversion_cloud/models/jpf_load_options.rb +1 -1
  76. data/lib/groupdocs_conversion_cloud/models/jpg_convert_options.rb +1 -1
  77. data/lib/groupdocs_conversion_cloud/models/jpg_load_options.rb +1 -1
  78. data/lib/groupdocs_conversion_cloud/models/jpm_convert_options.rb +1 -1
  79. data/lib/groupdocs_conversion_cloud/models/jpm_load_options.rb +1 -1
  80. data/lib/groupdocs_conversion_cloud/models/jpx_convert_options.rb +1 -1
  81. data/lib/groupdocs_conversion_cloud/models/jpx_load_options.rb +1 -1
  82. data/lib/groupdocs_conversion_cloud/models/load_options.rb +1 -1
  83. data/lib/groupdocs_conversion_cloud/models/mht_load_options.rb +1 -1
  84. data/lib/groupdocs_conversion_cloud/models/mobi_load_options.rb +1 -1
  85. data/lib/groupdocs_conversion_cloud/models/msg_load_options.rb +1 -1
  86. data/lib/groupdocs_conversion_cloud/models/object_exist.rb +1 -1
  87. data/lib/groupdocs_conversion_cloud/models/odg_convert_options.rb +1 -1
  88. data/lib/groupdocs_conversion_cloud/models/odg_load_options.rb +1 -1
  89. data/lib/groupdocs_conversion_cloud/models/odp_convert_options.rb +1 -1
  90. data/lib/groupdocs_conversion_cloud/models/odp_load_options.rb +1 -1
  91. data/lib/groupdocs_conversion_cloud/models/ods_convert_options.rb +1 -1
  92. data/lib/groupdocs_conversion_cloud/models/ods_load_options.rb +1 -1
  93. data/lib/groupdocs_conversion_cloud/models/odt_convert_options.rb +67 -5
  94. data/lib/groupdocs_conversion_cloud/models/odt_load_options.rb +1 -1
  95. data/lib/groupdocs_conversion_cloud/models/one_load_options.rb +1 -1
  96. data/lib/groupdocs_conversion_cloud/models/ost_load_options.rb +1 -1
  97. data/lib/groupdocs_conversion_cloud/models/otp_convert_options.rb +1 -1
  98. data/lib/groupdocs_conversion_cloud/models/otp_load_options.rb +1 -1
  99. data/lib/groupdocs_conversion_cloud/models/ots_convert_options.rb +1 -1
  100. data/lib/groupdocs_conversion_cloud/models/ots_load_options.rb +1 -1
  101. data/lib/groupdocs_conversion_cloud/models/ott_convert_options.rb +67 -5
  102. data/lib/groupdocs_conversion_cloud/models/ott_load_options.rb +1 -1
  103. data/lib/groupdocs_conversion_cloud/models/pdf_convert_options.rb +1 -1
  104. data/lib/groupdocs_conversion_cloud/models/pdf_load_options.rb +1 -1
  105. data/lib/groupdocs_conversion_cloud/models/personal_storage_load_options.rb +239 -0
  106. data/lib/groupdocs_conversion_cloud/models/plt_load_options.rb +1 -1
  107. data/lib/groupdocs_conversion_cloud/models/png_convert_options.rb +1 -1
  108. data/lib/groupdocs_conversion_cloud/models/png_load_options.rb +1 -1
  109. data/lib/groupdocs_conversion_cloud/models/potm_convert_options.rb +1 -1
  110. data/lib/groupdocs_conversion_cloud/models/potm_load_options.rb +1 -1
  111. data/lib/groupdocs_conversion_cloud/models/potx_convert_options.rb +1 -1
  112. data/lib/groupdocs_conversion_cloud/models/potx_load_options.rb +1 -1
  113. data/lib/groupdocs_conversion_cloud/models/pps_convert_options.rb +1 -1
  114. data/lib/groupdocs_conversion_cloud/models/pps_load_options.rb +1 -1
  115. data/lib/groupdocs_conversion_cloud/models/ppsm_convert_options.rb +1 -1
  116. data/lib/groupdocs_conversion_cloud/models/ppsm_load_options.rb +1 -1
  117. data/lib/groupdocs_conversion_cloud/models/ppsx_convert_options.rb +1 -1
  118. data/lib/groupdocs_conversion_cloud/models/ppsx_load_options.rb +1 -1
  119. data/lib/groupdocs_conversion_cloud/models/ppt_convert_options.rb +1 -1
  120. data/lib/groupdocs_conversion_cloud/models/ppt_load_options.rb +1 -1
  121. data/lib/groupdocs_conversion_cloud/models/pptm_convert_options.rb +1 -1
  122. data/lib/groupdocs_conversion_cloud/models/pptm_load_options.rb +1 -1
  123. data/lib/groupdocs_conversion_cloud/models/pptx_convert_options.rb +1 -1
  124. data/lib/groupdocs_conversion_cloud/models/pptx_load_options.rb +1 -1
  125. data/lib/groupdocs_conversion_cloud/models/presentation_convert_options.rb +1 -1
  126. data/lib/groupdocs_conversion_cloud/models/presentation_load_options.rb +1 -1
  127. data/lib/groupdocs_conversion_cloud/models/psd_convert_options.rb +1 -1
  128. data/lib/groupdocs_conversion_cloud/models/psd_load_options.rb +1 -1
  129. data/lib/groupdocs_conversion_cloud/models/pst_load_options.rb +1 -1
  130. data/lib/groupdocs_conversion_cloud/models/rtf_convert_options.rb +64 -2
  131. data/lib/groupdocs_conversion_cloud/models/spreadsheet_convert_options.rb +1 -1
  132. data/lib/groupdocs_conversion_cloud/models/spreadsheet_load_options.rb +1 -1
  133. data/lib/groupdocs_conversion_cloud/models/stl_load_options.rb +1 -1
  134. data/lib/groupdocs_conversion_cloud/models/storage_exist.rb +1 -1
  135. data/lib/groupdocs_conversion_cloud/models/storage_file.rb +1 -1
  136. data/lib/groupdocs_conversion_cloud/models/stored_converted_result.rb +1 -1
  137. data/lib/groupdocs_conversion_cloud/models/supported_format.rb +1 -1
  138. data/lib/groupdocs_conversion_cloud/models/svg_convert_options.rb +1 -1
  139. data/lib/groupdocs_conversion_cloud/models/tif_convert_options.rb +1 -1
  140. data/lib/groupdocs_conversion_cloud/models/tif_load_options.rb +1 -1
  141. data/lib/groupdocs_conversion_cloud/models/tiff_convert_options.rb +1 -1
  142. data/lib/groupdocs_conversion_cloud/models/tiff_load_options.rb +1 -1
  143. data/lib/groupdocs_conversion_cloud/models/tsv_convert_options.rb +1 -1
  144. data/lib/groupdocs_conversion_cloud/models/tsv_load_options.rb +1 -1
  145. data/lib/groupdocs_conversion_cloud/models/txt_convert_options.rb +1 -1
  146. data/lib/groupdocs_conversion_cloud/models/txt_load_options.rb +1 -1
  147. data/lib/groupdocs_conversion_cloud/models/vdw_load_options.rb +1 -1
  148. data/lib/groupdocs_conversion_cloud/models/vdx_load_options.rb +1 -1
  149. data/lib/groupdocs_conversion_cloud/models/vsd_load_options.rb +1 -1
  150. data/lib/groupdocs_conversion_cloud/models/vsdm_load_options.rb +1 -1
  151. data/lib/groupdocs_conversion_cloud/models/vsdx_load_options.rb +1 -1
  152. data/lib/groupdocs_conversion_cloud/models/vss_load_options.rb +1 -1
  153. data/lib/groupdocs_conversion_cloud/models/vssm_load_options.rb +1 -1
  154. data/lib/groupdocs_conversion_cloud/models/vssx_load_options.rb +1 -1
  155. data/lib/groupdocs_conversion_cloud/models/vst_load_options.rb +1 -1
  156. data/lib/groupdocs_conversion_cloud/models/vstm_load_options.rb +1 -1
  157. data/lib/groupdocs_conversion_cloud/models/vstx_load_options.rb +1 -1
  158. data/lib/groupdocs_conversion_cloud/models/vsx_load_options.rb +1 -1
  159. data/lib/groupdocs_conversion_cloud/models/vtx_load_options.rb +1 -1
  160. data/lib/groupdocs_conversion_cloud/models/watermark_options.rb +1 -1
  161. data/lib/groupdocs_conversion_cloud/models/webp_convert_options.rb +1 -1
  162. data/lib/groupdocs_conversion_cloud/models/webp_load_options.rb +1 -1
  163. data/lib/groupdocs_conversion_cloud/models/wmf_convert_options.rb +1 -1
  164. data/lib/groupdocs_conversion_cloud/models/wmf_load_options.rb +1 -1
  165. data/lib/groupdocs_conversion_cloud/models/word_processing_convert_options.rb +67 -5
  166. data/lib/groupdocs_conversion_cloud/models/word_processing_load_options.rb +1 -1
  167. data/lib/groupdocs_conversion_cloud/models/xls2003_convert_options.rb +1 -1
  168. data/lib/groupdocs_conversion_cloud/models/xls2003_load_options.rb +1 -1
  169. data/lib/groupdocs_conversion_cloud/models/xls_convert_options.rb +1 -1
  170. data/lib/groupdocs_conversion_cloud/models/xls_load_options.rb +1 -1
  171. data/lib/groupdocs_conversion_cloud/models/xlsb_convert_options.rb +1 -1
  172. data/lib/groupdocs_conversion_cloud/models/xlsb_load_options.rb +1 -1
  173. data/lib/groupdocs_conversion_cloud/models/xlsm_convert_options.rb +1 -1
  174. data/lib/groupdocs_conversion_cloud/models/xlsm_load_options.rb +1 -1
  175. data/lib/groupdocs_conversion_cloud/models/xlsx_convert_options.rb +1 -1
  176. data/lib/groupdocs_conversion_cloud/models/xlsx_load_options.rb +1 -1
  177. data/lib/groupdocs_conversion_cloud/models/xltm_convert_options.rb +1 -1
  178. data/lib/groupdocs_conversion_cloud/models/xltm_load_options.rb +1 -1
  179. data/lib/groupdocs_conversion_cloud/models/xltx_convert_options.rb +1 -1
  180. data/lib/groupdocs_conversion_cloud/models/xltx_load_options.rb +1 -1
  181. data/lib/groupdocs_conversion_cloud/models/xml_load_options.rb +1 -1
  182. data/lib/groupdocs_conversion_cloud/models/xps_convert_options.rb +1 -1
  183. data/lib/groupdocs_conversion_cloud/version.rb +2 -2
  184. data/lib/groupdocs_conversion_cloud.rb +2 -1
  185. metadata +7 -6
@@ -0,0 +1,239 @@
1
+ #
2
+ # --------------------------------------------------------------------------------------------------------------------
3
+ # <copyright company="Aspose Pty Ltd" file="personal_storage_load_options.rb">
4
+ # Copyright (c) 2003-2023 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
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="plt_load_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="png_convert_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="png_load_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="potm_convert_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="potm_load_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="potx_convert_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="potx_load_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="pps_convert_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="pps_load_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="ppsm_convert_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="ppsm_load_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="ppsx_convert_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="ppsx_load_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="ppt_convert_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="ppt_load_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="pptm_convert_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="pptm_load_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="pptx_convert_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="pptx_load_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="presentation_convert_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="presentation_load_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="psd_convert_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="psd_load_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="pst_load_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="rtf_convert_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -61,6 +61,12 @@ module GroupDocsConversionCloud
61
61
  # Recognition mode when converting from pdf
62
62
  attr_accessor :pdf_recognition_mode
63
63
 
64
+ # Page size
65
+ attr_accessor :page_size
66
+
67
+ # Specifies page orientation
68
+ attr_accessor :page_orientation
69
+
64
70
  # Specifies whether the keywords for \"old readers\" are written to RTF or not. This can significantly affect the size of the RTF document. Default is False.
65
71
  attr_accessor :export_images_for_old_readers
66
72
  class EnumAttributeValidator
@@ -98,6 +104,8 @@ module GroupDocsConversionCloud
98
104
  :'zoom' => :'Zoom',
99
105
  :'watermark_options' => :'WatermarkOptions',
100
106
  :'pdf_recognition_mode' => :'PdfRecognitionMode',
107
+ :'page_size' => :'PageSize',
108
+ :'page_orientation' => :'PageOrientation',
101
109
  :'export_images_for_old_readers' => :'ExportImagesForOldReaders'
102
110
  }
103
111
  end
@@ -115,6 +123,8 @@ module GroupDocsConversionCloud
115
123
  :'zoom' => :'Integer',
116
124
  :'watermark_options' => :'WatermarkOptions',
117
125
  :'pdf_recognition_mode' => :'String',
126
+ :'page_size' => :'String',
127
+ :'page_orientation' => :'String',
118
128
  :'export_images_for_old_readers' => :'BOOLEAN'
119
129
  }
120
130
  end
@@ -169,6 +179,14 @@ module GroupDocsConversionCloud
169
179
  self.pdf_recognition_mode = attributes[:'PdfRecognitionMode']
170
180
  end
171
181
 
182
+ if attributes.key?(:'PageSize')
183
+ self.page_size = attributes[:'PageSize']
184
+ end
185
+
186
+ if attributes.key?(:'PageOrientation')
187
+ self.page_orientation = attributes[:'PageOrientation']
188
+ end
189
+
172
190
  if attributes.key?(:'ExportImagesForOldReaders')
173
191
  self.export_images_for_old_readers = attributes[:'ExportImagesForOldReaders']
174
192
  end
@@ -207,6 +225,14 @@ module GroupDocsConversionCloud
207
225
  invalid_properties.push("invalid value for 'pdf_recognition_mode', pdf_recognition_mode cannot be nil.")
208
226
  end
209
227
 
228
+ if @page_size.nil?
229
+ invalid_properties.push("invalid value for 'page_size', page_size cannot be nil.")
230
+ end
231
+
232
+ if @page_orientation.nil?
233
+ invalid_properties.push("invalid value for 'page_orientation', page_orientation cannot be nil.")
234
+ end
235
+
210
236
  if @export_images_for_old_readers.nil?
211
237
  invalid_properties.push("invalid value for 'export_images_for_old_readers', export_images_for_old_readers cannot be nil.")
212
238
  end
@@ -226,6 +252,12 @@ module GroupDocsConversionCloud
226
252
  return false if @pdf_recognition_mode.nil?
227
253
  pdf_recognition_mode_validator = EnumAttributeValidator.new('String', ["Textbox", "Flow"])
228
254
  return false unless pdf_recognition_mode_validator.valid?(@pdf_recognition_mode)
255
+ return false if @page_size.nil?
256
+ page_size_validator = EnumAttributeValidator.new('String', ["Default", "A3", "Statement", "Quarto", "Paper11x17", "Paper10x14", "Letter", "Legal", "Ledger", "Folio", "Executive", "EnvelopeDL", "Custom", "B5", "B4", "A5", "A4", "Tabloid"])
257
+ return false unless page_size_validator.valid?(@page_size)
258
+ return false if @page_orientation.nil?
259
+ page_orientation_validator = EnumAttributeValidator.new('String', ["Default", "Landscape", "Portrait"])
260
+ return false unless page_orientation_validator.valid?(@page_orientation)
229
261
  return false if @export_images_for_old_readers.nil?
230
262
  return true
231
263
  end
@@ -244,6 +276,34 @@ module GroupDocsConversionCloud
244
276
  end
245
277
  end
246
278
 
279
+ # Custom attribute writer method checking allowed values (enum).
280
+ # @param [Object] page_size Object to be assigned
281
+ def page_size=(page_size)
282
+ validator = EnumAttributeValidator.new('String', ["Default", "A3", "Statement", "Quarto", "Paper11x17", "Paper10x14", "Letter", "Legal", "Ledger", "Folio", "Executive", "EnvelopeDL", "Custom", "B5", "B4", "A5", "A4", "Tabloid"])
283
+ if page_size.to_i == 0
284
+ unless validator.valid?(page_size)
285
+ raise ArgumentError, "invalid value for 'page_size', must be one of #{validator.allowable_values}."
286
+ end
287
+ @page_size = page_size
288
+ else
289
+ @page_size = validator.allowable_values[page_size.to_i]
290
+ end
291
+ end
292
+
293
+ # Custom attribute writer method checking allowed values (enum).
294
+ # @param [Object] page_orientation Object to be assigned
295
+ def page_orientation=(page_orientation)
296
+ validator = EnumAttributeValidator.new('String', ["Default", "Landscape", "Portrait"])
297
+ if page_orientation.to_i == 0
298
+ unless validator.valid?(page_orientation)
299
+ raise ArgumentError, "invalid value for 'page_orientation', must be one of #{validator.allowable_values}."
300
+ end
301
+ @page_orientation = page_orientation
302
+ else
303
+ @page_orientation = validator.allowable_values[page_orientation.to_i]
304
+ end
305
+ end
306
+
247
307
  # Checks equality by comparing each attribute.
248
308
  # @param [Object] Object to be compared
249
309
  def ==(other)
@@ -259,6 +319,8 @@ module GroupDocsConversionCloud
259
319
  zoom == other.zoom &&
260
320
  watermark_options == other.watermark_options &&
261
321
  pdf_recognition_mode == other.pdf_recognition_mode &&
322
+ page_size == other.page_size &&
323
+ page_orientation == other.page_orientation &&
262
324
  export_images_for_old_readers == other.export_images_for_old_readers
263
325
  end
264
326
 
@@ -271,7 +333,7 @@ module GroupDocsConversionCloud
271
333
  # Calculates hash code according to all attributes.
272
334
  # @return [Fixnum] Hash code
273
335
  def hash
274
- [from_page, pages_count, pages, width, height, dpi, password, zoom, watermark_options, pdf_recognition_mode, export_images_for_old_readers].hash
336
+ [from_page, pages_count, pages, width, height, dpi, password, zoom, watermark_options, pdf_recognition_mode, page_size, page_orientation, export_images_for_old_readers].hash
275
337
  end
276
338
 
277
339
  # Downcases first letter.
@@ -1,7 +1,7 @@
1
1
  #
2
2
  # --------------------------------------------------------------------------------------------------------------------
3
3
  # <copyright company="Aspose Pty Ltd" file="spreadsheet_convert_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="spreadsheet_load_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="stl_load_options.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 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="storage_exist.rb">
4
- # Copyright (c) 2003-2022 Aspose Pty Ltd
4
+ # Copyright (c) 2003-2023 Aspose Pty Ltd
5
5
  # </copyright>
6
6
  # <summary>
7
7
  # Permission is hereby granted, free of charge, to any person obtaining a copy