groupdocs_conversion_cloud 22.10 → 23.4

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 +12 -12
  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/consumption_result.rb +1 -1
  15. data/lib/groupdocs_conversion_cloud/models/convert_options.rb +15 -5
  16. data/lib/groupdocs_conversion_cloud/models/convert_settings.rb +1 -1
  17. data/lib/groupdocs_conversion_cloud/models/csv_load_options.rb +1 -1
  18. data/lib/groupdocs_conversion_cloud/models/dcm_convert_options.rb +12 -12
  19. data/lib/groupdocs_conversion_cloud/models/dcm_load_options.rb +1 -1
  20. data/lib/groupdocs_conversion_cloud/models/dgn_load_options.rb +1 -1
  21. data/lib/groupdocs_conversion_cloud/models/diagram_load_options.rb +1 -1
  22. data/lib/groupdocs_conversion_cloud/models/disc_usage.rb +1 -1
  23. data/lib/groupdocs_conversion_cloud/models/djvu_convert_options.rb +12 -12
  24. data/lib/groupdocs_conversion_cloud/models/dng_convert_options.rb +12 -12
  25. data/lib/groupdocs_conversion_cloud/models/dng_load_options.rb +1 -1
  26. data/lib/groupdocs_conversion_cloud/models/doc_convert_options.rb +77 -15
  27. data/lib/groupdocs_conversion_cloud/models/doc_load_options.rb +1 -1
  28. data/lib/groupdocs_conversion_cloud/models/docm_convert_options.rb +77 -15
  29. data/lib/groupdocs_conversion_cloud/models/docm_load_options.rb +1 -1
  30. data/lib/groupdocs_conversion_cloud/models/document_metadata.rb +1 -1
  31. data/lib/groupdocs_conversion_cloud/models/docx_convert_options.rb +77 -15
  32. data/lib/groupdocs_conversion_cloud/models/docx_load_options.rb +1 -1
  33. data/lib/groupdocs_conversion_cloud/models/dot_convert_options.rb +77 -15
  34. data/lib/groupdocs_conversion_cloud/models/dot_load_options.rb +1 -1
  35. data/lib/groupdocs_conversion_cloud/models/dotm_convert_options.rb +77 -15
  36. data/lib/groupdocs_conversion_cloud/models/dotm_load_options.rb +1 -1
  37. data/lib/groupdocs_conversion_cloud/models/dotx_convert_options.rb +77 -15
  38. data/lib/groupdocs_conversion_cloud/models/dotx_load_options.rb +1 -1
  39. data/lib/groupdocs_conversion_cloud/models/dwf_load_options.rb +1 -1
  40. data/lib/groupdocs_conversion_cloud/models/dwg_load_options.rb +1 -1
  41. data/lib/groupdocs_conversion_cloud/models/dxf_load_options.rb +1 -1
  42. data/lib/groupdocs_conversion_cloud/models/{xps_convert_options.rb → e_book_convert_options.rb} +85 -132
  43. data/lib/groupdocs_conversion_cloud/models/email_load_options.rb +1 -1
  44. data/lib/groupdocs_conversion_cloud/models/emf_convert_options.rb +12 -12
  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/error.rb +1 -1
  49. data/lib/groupdocs_conversion_cloud/models/error_details.rb +1 -1
  50. data/lib/groupdocs_conversion_cloud/models/field_label.rb +1 -1
  51. data/lib/groupdocs_conversion_cloud/models/file_version.rb +1 -1
  52. data/lib/groupdocs_conversion_cloud/models/file_versions.rb +1 -1
  53. data/lib/groupdocs_conversion_cloud/models/files_list.rb +1 -1
  54. data/lib/groupdocs_conversion_cloud/models/files_upload_result.rb +1 -1
  55. data/lib/groupdocs_conversion_cloud/models/gif_convert_options.rb +12 -12
  56. data/lib/groupdocs_conversion_cloud/models/gif_load_options.rb +1 -1
  57. data/lib/groupdocs_conversion_cloud/models/ico_convert_options.rb +12 -12
  58. data/lib/groupdocs_conversion_cloud/models/ico_load_options.rb +1 -1
  59. data/lib/groupdocs_conversion_cloud/models/ifc_load_options.rb +1 -1
  60. data/lib/groupdocs_conversion_cloud/models/igs_load_options.rb +1 -1
  61. data/lib/groupdocs_conversion_cloud/models/image_convert_options.rb +12 -12
  62. data/lib/groupdocs_conversion_cloud/models/image_load_options.rb +1 -1
  63. data/lib/groupdocs_conversion_cloud/models/j2c_convert_options.rb +12 -12
  64. data/lib/groupdocs_conversion_cloud/models/j2c_load_options.rb +1 -1
  65. data/lib/groupdocs_conversion_cloud/models/j2k_convert_options.rb +12 -12
  66. data/lib/groupdocs_conversion_cloud/models/j2k_load_options.rb +1 -1
  67. data/lib/groupdocs_conversion_cloud/models/jp2_convert_options.rb +12 -12
  68. data/lib/groupdocs_conversion_cloud/models/jp2_load_options.rb +1 -1
  69. data/lib/groupdocs_conversion_cloud/models/jpeg_convert_options.rb +12 -12
  70. data/lib/groupdocs_conversion_cloud/models/jpeg_load_options.rb +1 -1
  71. data/lib/groupdocs_conversion_cloud/models/jpf_convert_options.rb +12 -12
  72. data/lib/groupdocs_conversion_cloud/models/jpf_load_options.rb +1 -1
  73. data/lib/groupdocs_conversion_cloud/models/jpg_convert_options.rb +12 -12
  74. data/lib/groupdocs_conversion_cloud/models/jpg_load_options.rb +1 -1
  75. data/lib/groupdocs_conversion_cloud/models/jpm_convert_options.rb +12 -12
  76. data/lib/groupdocs_conversion_cloud/models/jpm_load_options.rb +1 -1
  77. data/lib/groupdocs_conversion_cloud/models/jpx_convert_options.rb +12 -12
  78. data/lib/groupdocs_conversion_cloud/models/jpx_load_options.rb +1 -1
  79. data/lib/groupdocs_conversion_cloud/models/load_options.rb +1 -1
  80. data/lib/groupdocs_conversion_cloud/models/mht_load_options.rb +1 -1
  81. data/lib/groupdocs_conversion_cloud/models/mobi_load_options.rb +1 -1
  82. data/lib/groupdocs_conversion_cloud/models/msg_load_options.rb +1 -1
  83. data/lib/groupdocs_conversion_cloud/models/object_exist.rb +1 -1
  84. data/lib/groupdocs_conversion_cloud/models/odg_convert_options.rb +12 -12
  85. data/lib/groupdocs_conversion_cloud/models/odg_load_options.rb +1 -1
  86. data/lib/groupdocs_conversion_cloud/models/odp_convert_options.rb +15 -15
  87. data/lib/groupdocs_conversion_cloud/models/odp_load_options.rb +1 -1
  88. data/lib/groupdocs_conversion_cloud/models/ods_convert_options.rb +15 -15
  89. data/lib/groupdocs_conversion_cloud/models/ods_load_options.rb +1 -1
  90. data/lib/groupdocs_conversion_cloud/models/odt_convert_options.rb +77 -15
  91. data/lib/groupdocs_conversion_cloud/models/odt_load_options.rb +1 -1
  92. data/lib/groupdocs_conversion_cloud/models/one_load_options.rb +1 -1
  93. data/lib/groupdocs_conversion_cloud/models/ost_load_options.rb +1 -1
  94. data/lib/groupdocs_conversion_cloud/models/otp_convert_options.rb +15 -15
  95. data/lib/groupdocs_conversion_cloud/models/otp_load_options.rb +1 -1
  96. data/lib/groupdocs_conversion_cloud/models/ots_convert_options.rb +15 -15
  97. data/lib/groupdocs_conversion_cloud/models/ots_load_options.rb +1 -1
  98. data/lib/groupdocs_conversion_cloud/models/ott_convert_options.rb +77 -15
  99. data/lib/groupdocs_conversion_cloud/models/ott_load_options.rb +1 -1
  100. data/lib/groupdocs_conversion_cloud/models/pdf_convert_options.rb +15 -15
  101. data/lib/groupdocs_conversion_cloud/models/pdf_load_options.rb +1 -1
  102. data/lib/groupdocs_conversion_cloud/models/{svg_convert_options.rb → pdl_convert_options.rb} +5 -80
  103. data/lib/groupdocs_conversion_cloud/models/personal_storage_load_options.rb +1 -1
  104. data/lib/groupdocs_conversion_cloud/models/plt_load_options.rb +1 -1
  105. data/lib/groupdocs_conversion_cloud/models/png_convert_options.rb +12 -12
  106. data/lib/groupdocs_conversion_cloud/models/png_load_options.rb +1 -1
  107. data/lib/groupdocs_conversion_cloud/models/potm_convert_options.rb +15 -15
  108. data/lib/groupdocs_conversion_cloud/models/potm_load_options.rb +1 -1
  109. data/lib/groupdocs_conversion_cloud/models/potx_convert_options.rb +15 -15
  110. data/lib/groupdocs_conversion_cloud/models/potx_load_options.rb +1 -1
  111. data/lib/groupdocs_conversion_cloud/models/pps_convert_options.rb +15 -15
  112. data/lib/groupdocs_conversion_cloud/models/pps_load_options.rb +1 -1
  113. data/lib/groupdocs_conversion_cloud/models/ppsm_convert_options.rb +15 -15
  114. data/lib/groupdocs_conversion_cloud/models/ppsm_load_options.rb +1 -1
  115. data/lib/groupdocs_conversion_cloud/models/ppsx_convert_options.rb +15 -15
  116. data/lib/groupdocs_conversion_cloud/models/ppsx_load_options.rb +1 -1
  117. data/lib/groupdocs_conversion_cloud/models/ppt_convert_options.rb +15 -15
  118. data/lib/groupdocs_conversion_cloud/models/ppt_load_options.rb +1 -1
  119. data/lib/groupdocs_conversion_cloud/models/pptm_convert_options.rb +15 -15
  120. data/lib/groupdocs_conversion_cloud/models/pptm_load_options.rb +1 -1
  121. data/lib/groupdocs_conversion_cloud/models/pptx_convert_options.rb +15 -15
  122. data/lib/groupdocs_conversion_cloud/models/pptx_load_options.rb +1 -1
  123. data/lib/groupdocs_conversion_cloud/models/presentation_convert_options.rb +15 -15
  124. data/lib/groupdocs_conversion_cloud/models/presentation_load_options.rb +1 -1
  125. data/lib/groupdocs_conversion_cloud/models/psd_convert_options.rb +12 -12
  126. data/lib/groupdocs_conversion_cloud/models/psd_load_options.rb +1 -1
  127. data/lib/groupdocs_conversion_cloud/models/pst_load_options.rb +1 -1
  128. data/lib/groupdocs_conversion_cloud/models/rtf_convert_options.rb +74 -12
  129. data/lib/groupdocs_conversion_cloud/models/spreadsheet_convert_options.rb +15 -15
  130. data/lib/groupdocs_conversion_cloud/models/spreadsheet_load_options.rb +1 -1
  131. data/lib/groupdocs_conversion_cloud/models/stl_load_options.rb +1 -1
  132. data/lib/groupdocs_conversion_cloud/models/storage_exist.rb +1 -1
  133. data/lib/groupdocs_conversion_cloud/models/storage_file.rb +1 -1
  134. data/lib/groupdocs_conversion_cloud/models/stored_converted_result.rb +1 -1
  135. data/lib/groupdocs_conversion_cloud/models/supported_format.rb +1 -1
  136. data/lib/groupdocs_conversion_cloud/models/tif_convert_options.rb +12 -12
  137. data/lib/groupdocs_conversion_cloud/models/tif_load_options.rb +1 -1
  138. data/lib/groupdocs_conversion_cloud/models/tiff_convert_options.rb +12 -12
  139. data/lib/groupdocs_conversion_cloud/models/tiff_load_options.rb +1 -1
  140. data/lib/groupdocs_conversion_cloud/models/tsv_convert_options.rb +15 -15
  141. data/lib/groupdocs_conversion_cloud/models/tsv_load_options.rb +1 -1
  142. data/lib/groupdocs_conversion_cloud/models/txt_convert_options.rb +15 -5
  143. data/lib/groupdocs_conversion_cloud/models/txt_load_options.rb +1 -1
  144. data/lib/groupdocs_conversion_cloud/models/vdw_load_options.rb +1 -1
  145. data/lib/groupdocs_conversion_cloud/models/vdx_load_options.rb +1 -1
  146. data/lib/groupdocs_conversion_cloud/models/vsd_load_options.rb +1 -1
  147. data/lib/groupdocs_conversion_cloud/models/vsdm_load_options.rb +1 -1
  148. data/lib/groupdocs_conversion_cloud/models/vsdx_load_options.rb +1 -1
  149. data/lib/groupdocs_conversion_cloud/models/vss_load_options.rb +1 -1
  150. data/lib/groupdocs_conversion_cloud/models/vssm_load_options.rb +1 -1
  151. data/lib/groupdocs_conversion_cloud/models/vssx_load_options.rb +1 -1
  152. data/lib/groupdocs_conversion_cloud/models/vst_load_options.rb +1 -1
  153. data/lib/groupdocs_conversion_cloud/models/vstm_load_options.rb +1 -1
  154. data/lib/groupdocs_conversion_cloud/models/vstx_load_options.rb +1 -1
  155. data/lib/groupdocs_conversion_cloud/models/vsx_load_options.rb +1 -1
  156. data/lib/groupdocs_conversion_cloud/models/vtx_load_options.rb +1 -1
  157. data/lib/groupdocs_conversion_cloud/models/watermark_options.rb +1 -1
  158. data/lib/groupdocs_conversion_cloud/models/{html_convert_options.rb → web_convert_options.rb} +17 -17
  159. data/lib/groupdocs_conversion_cloud/models/{html_load_options.rb → web_load_options.rb} +3 -3
  160. data/lib/groupdocs_conversion_cloud/models/webp_convert_options.rb +12 -12
  161. data/lib/groupdocs_conversion_cloud/models/webp_load_options.rb +1 -1
  162. data/lib/groupdocs_conversion_cloud/models/wmf_convert_options.rb +12 -12
  163. data/lib/groupdocs_conversion_cloud/models/wmf_load_options.rb +1 -1
  164. data/lib/groupdocs_conversion_cloud/models/word_processing_convert_options.rb +77 -15
  165. data/lib/groupdocs_conversion_cloud/models/word_processing_load_options.rb +1 -1
  166. data/lib/groupdocs_conversion_cloud/models/xls2003_convert_options.rb +15 -15
  167. data/lib/groupdocs_conversion_cloud/models/xls2003_load_options.rb +1 -1
  168. data/lib/groupdocs_conversion_cloud/models/xls_convert_options.rb +15 -15
  169. data/lib/groupdocs_conversion_cloud/models/xls_load_options.rb +1 -1
  170. data/lib/groupdocs_conversion_cloud/models/xlsb_convert_options.rb +15 -15
  171. data/lib/groupdocs_conversion_cloud/models/xlsb_load_options.rb +1 -1
  172. data/lib/groupdocs_conversion_cloud/models/xlsm_convert_options.rb +15 -15
  173. data/lib/groupdocs_conversion_cloud/models/xlsm_load_options.rb +1 -1
  174. data/lib/groupdocs_conversion_cloud/models/xlsx_convert_options.rb +15 -15
  175. data/lib/groupdocs_conversion_cloud/models/xlsx_load_options.rb +1 -1
  176. data/lib/groupdocs_conversion_cloud/models/xltm_convert_options.rb +15 -15
  177. data/lib/groupdocs_conversion_cloud/models/xltm_load_options.rb +1 -1
  178. data/lib/groupdocs_conversion_cloud/models/xltx_convert_options.rb +15 -15
  179. data/lib/groupdocs_conversion_cloud/models/xltx_load_options.rb +1 -1
  180. data/lib/groupdocs_conversion_cloud/models/xml_load_options.rb +1 -1
  181. data/lib/groupdocs_conversion_cloud/version.rb +2 -2
  182. data/lib/groupdocs_conversion_cloud.rb +5 -7
  183. metadata +10 -12
  184. data/lib/groupdocs_conversion_cloud/models/cgm_convert_options.rb +0 -458
  185. data/lib/groupdocs_conversion_cloud/models/epub_convert_options.rb +0 -386
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.10'
4
+ version: '23.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - GroupDocs
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-06 00:00:00.000000000 Z
11
+ date: 2023-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -30,20 +30,20 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.5.0
33
+ version: 2.8.0
34
34
  - - ">="
35
35
  - !ruby/object:Gem::Version
36
- version: 2.5.0
36
+ version: 2.8.0
37
37
  type: :runtime
38
38
  prerelease: false
39
39
  version_requirements: !ruby/object:Gem::Requirement
40
40
  requirements:
41
41
  - - "~>"
42
42
  - !ruby/object:Gem::Version
43
- version: 2.5.0
43
+ version: 2.8.0
44
44
  - - ">="
45
45
  - !ruby/object:Gem::Version
46
- version: 2.5.0
46
+ version: 2.8.0
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: minitest
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -83,7 +83,6 @@ files:
83
83
  - lib/groupdocs_conversion_cloud/models/bmp_convert_options.rb
84
84
  - lib/groupdocs_conversion_cloud/models/bmp_load_options.rb
85
85
  - lib/groupdocs_conversion_cloud/models/cad_load_options.rb
86
- - lib/groupdocs_conversion_cloud/models/cgm_convert_options.rb
87
86
  - lib/groupdocs_conversion_cloud/models/consumption_result.rb
88
87
  - lib/groupdocs_conversion_cloud/models/convert_options.rb
89
88
  - lib/groupdocs_conversion_cloud/models/convert_settings.rb
@@ -112,12 +111,12 @@ files:
112
111
  - lib/groupdocs_conversion_cloud/models/dwf_load_options.rb
113
112
  - lib/groupdocs_conversion_cloud/models/dwg_load_options.rb
114
113
  - lib/groupdocs_conversion_cloud/models/dxf_load_options.rb
114
+ - lib/groupdocs_conversion_cloud/models/e_book_convert_options.rb
115
115
  - lib/groupdocs_conversion_cloud/models/email_load_options.rb
116
116
  - lib/groupdocs_conversion_cloud/models/emf_convert_options.rb
117
117
  - lib/groupdocs_conversion_cloud/models/emf_load_options.rb
118
118
  - lib/groupdocs_conversion_cloud/models/eml_load_options.rb
119
119
  - lib/groupdocs_conversion_cloud/models/emlx_load_options.rb
120
- - lib/groupdocs_conversion_cloud/models/epub_convert_options.rb
121
120
  - lib/groupdocs_conversion_cloud/models/error.rb
122
121
  - lib/groupdocs_conversion_cloud/models/error_details.rb
123
122
  - lib/groupdocs_conversion_cloud/models/field_label.rb
@@ -127,8 +126,6 @@ files:
127
126
  - lib/groupdocs_conversion_cloud/models/files_upload_result.rb
128
127
  - lib/groupdocs_conversion_cloud/models/gif_convert_options.rb
129
128
  - lib/groupdocs_conversion_cloud/models/gif_load_options.rb
130
- - lib/groupdocs_conversion_cloud/models/html_convert_options.rb
131
- - lib/groupdocs_conversion_cloud/models/html_load_options.rb
132
129
  - lib/groupdocs_conversion_cloud/models/ico_convert_options.rb
133
130
  - lib/groupdocs_conversion_cloud/models/ico_load_options.rb
134
131
  - lib/groupdocs_conversion_cloud/models/ifc_load_options.rb
@@ -174,6 +171,7 @@ files:
174
171
  - lib/groupdocs_conversion_cloud/models/ott_load_options.rb
175
172
  - lib/groupdocs_conversion_cloud/models/pdf_convert_options.rb
176
173
  - lib/groupdocs_conversion_cloud/models/pdf_load_options.rb
174
+ - lib/groupdocs_conversion_cloud/models/pdl_convert_options.rb
177
175
  - lib/groupdocs_conversion_cloud/models/personal_storage_load_options.rb
178
176
  - lib/groupdocs_conversion_cloud/models/plt_load_options.rb
179
177
  - lib/groupdocs_conversion_cloud/models/png_convert_options.rb
@@ -207,7 +205,6 @@ files:
207
205
  - lib/groupdocs_conversion_cloud/models/storage_file.rb
208
206
  - lib/groupdocs_conversion_cloud/models/stored_converted_result.rb
209
207
  - lib/groupdocs_conversion_cloud/models/supported_format.rb
210
- - lib/groupdocs_conversion_cloud/models/svg_convert_options.rb
211
208
  - lib/groupdocs_conversion_cloud/models/tif_convert_options.rb
212
209
  - lib/groupdocs_conversion_cloud/models/tif_load_options.rb
213
210
  - lib/groupdocs_conversion_cloud/models/tiff_convert_options.rb
@@ -230,6 +227,8 @@ files:
230
227
  - lib/groupdocs_conversion_cloud/models/vsx_load_options.rb
231
228
  - lib/groupdocs_conversion_cloud/models/vtx_load_options.rb
232
229
  - lib/groupdocs_conversion_cloud/models/watermark_options.rb
230
+ - lib/groupdocs_conversion_cloud/models/web_convert_options.rb
231
+ - lib/groupdocs_conversion_cloud/models/web_load_options.rb
233
232
  - lib/groupdocs_conversion_cloud/models/webp_convert_options.rb
234
233
  - lib/groupdocs_conversion_cloud/models/webp_load_options.rb
235
234
  - lib/groupdocs_conversion_cloud/models/wmf_convert_options.rb
@@ -251,7 +250,6 @@ files:
251
250
  - lib/groupdocs_conversion_cloud/models/xltx_convert_options.rb
252
251
  - lib/groupdocs_conversion_cloud/models/xltx_load_options.rb
253
252
  - lib/groupdocs_conversion_cloud/models/xml_load_options.rb
254
- - lib/groupdocs_conversion_cloud/models/xps_convert_options.rb
255
253
  - lib/groupdocs_conversion_cloud/version.rb
256
254
  homepage: https://products.groupdocs.cloud/conversion/ruby
257
255
  licenses:
@@ -1,458 +0,0 @@
1
- #
2
- # --------------------------------------------------------------------------------------------------------------------
3
- # <copyright company="Aspose Pty Ltd" file="cgm_convert_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
- # Cgm convert options
32
- class CgmConvertOptions
33
-
34
- # Start conversion from FromPage page
35
- attr_accessor :from_page
36
-
37
- # Number of pages to convert
38
- attr_accessor :pages_count
39
-
40
- # Convert specific pages. The list contains the page indexes of the pages to be converted
41
- attr_accessor :pages
42
-
43
- # Desired image width after conversion
44
- attr_accessor :width
45
-
46
- # Desired image height after conversion
47
- attr_accessor :height
48
-
49
- # Desired image horizontal resolution after conversion. The default resolution is the resolution of the input file or 96dpi
50
- attr_accessor :horizontal_resolution
51
-
52
- # Desired image vertical resolution after conversion. The default resolution is the resolution of the input file or 96dpi
53
- attr_accessor :vertical_resolution
54
-
55
- # Convert to grayscale image
56
- attr_accessor :grayscale
57
-
58
- # Image rotation angle
59
- attr_accessor :rotate_angle
60
-
61
- # If true, the input firstly is converted to PDF and after that to desired format
62
- attr_accessor :use_pdf
63
-
64
- # Watermark specific options
65
- attr_accessor :watermark_options
66
-
67
- # Adjust image brightness
68
- attr_accessor :brightness
69
-
70
- # Adjust image contrast
71
- attr_accessor :contrast
72
-
73
- # Adjust image gamma
74
- attr_accessor :gamma
75
-
76
- # Image flip mode
77
- attr_accessor :flip_mode
78
- class EnumAttributeValidator
79
- attr_reader :datatype
80
- attr_reader :allowable_values
81
-
82
- def initialize(datatype, allowable_values)
83
- @allowable_values = allowable_values.map do |value|
84
- case datatype.to_s
85
- when /Integer/i
86
- value.to_i
87
- when /Float/i
88
- value.to_f
89
- else
90
- value
91
- end
92
- end
93
- end
94
-
95
- def valid?(value)
96
- !value || allowable_values.include?(value)
97
- end
98
- end
99
-
100
- # Attribute mapping from ruby-style variable name to JSON key.
101
- def self.attribute_map
102
- {
103
- :'from_page' => :'FromPage',
104
- :'pages_count' => :'PagesCount',
105
- :'pages' => :'Pages',
106
- :'width' => :'Width',
107
- :'height' => :'Height',
108
- :'horizontal_resolution' => :'HorizontalResolution',
109
- :'vertical_resolution' => :'VerticalResolution',
110
- :'grayscale' => :'Grayscale',
111
- :'rotate_angle' => :'RotateAngle',
112
- :'use_pdf' => :'UsePdf',
113
- :'watermark_options' => :'WatermarkOptions',
114
- :'brightness' => :'Brightness',
115
- :'contrast' => :'Contrast',
116
- :'gamma' => :'Gamma',
117
- :'flip_mode' => :'FlipMode'
118
- }
119
- end
120
-
121
- # Attribute type mapping.
122
- def self.swagger_types
123
- {
124
- :'from_page' => :'Integer',
125
- :'pages_count' => :'Integer',
126
- :'pages' => :'Array<Integer>',
127
- :'width' => :'Integer',
128
- :'height' => :'Integer',
129
- :'horizontal_resolution' => :'Integer',
130
- :'vertical_resolution' => :'Integer',
131
- :'grayscale' => :'BOOLEAN',
132
- :'rotate_angle' => :'Integer',
133
- :'use_pdf' => :'BOOLEAN',
134
- :'watermark_options' => :'WatermarkOptions',
135
- :'brightness' => :'Integer',
136
- :'contrast' => :'Integer',
137
- :'gamma' => :'Float',
138
- :'flip_mode' => :'String'
139
- }
140
- end
141
-
142
- # Initializes the object
143
- # @param [Hash] attributes Model attributes in the form of hash
144
- def initialize(attributes = {})
145
- return unless attributes.is_a?(Hash)
146
-
147
- # convert string to symbol for hash key
148
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
149
-
150
- if attributes.key?(:'FromPage')
151
- self.from_page = attributes[:'FromPage']
152
- end
153
-
154
- if attributes.key?(:'PagesCount')
155
- self.pages_count = attributes[:'PagesCount']
156
- end
157
-
158
- if attributes.key?(:'Pages')
159
- if (value = attributes[:'Pages']).is_a?(Array)
160
- self.pages = value
161
- end
162
- end
163
-
164
- if attributes.key?(:'Width')
165
- self.width = attributes[:'Width']
166
- end
167
-
168
- if attributes.key?(:'Height')
169
- self.height = attributes[:'Height']
170
- end
171
-
172
- if attributes.key?(:'HorizontalResolution')
173
- self.horizontal_resolution = attributes[:'HorizontalResolution']
174
- end
175
-
176
- if attributes.key?(:'VerticalResolution')
177
- self.vertical_resolution = attributes[:'VerticalResolution']
178
- end
179
-
180
- if attributes.key?(:'Grayscale')
181
- self.grayscale = attributes[:'Grayscale']
182
- end
183
-
184
- if attributes.key?(:'RotateAngle')
185
- self.rotate_angle = attributes[:'RotateAngle']
186
- end
187
-
188
- if attributes.key?(:'UsePdf')
189
- self.use_pdf = attributes[:'UsePdf']
190
- end
191
-
192
- if attributes.key?(:'WatermarkOptions')
193
- self.watermark_options = attributes[:'WatermarkOptions']
194
- end
195
-
196
- if attributes.key?(:'Brightness')
197
- self.brightness = attributes[:'Brightness']
198
- end
199
-
200
- if attributes.key?(:'Contrast')
201
- self.contrast = attributes[:'Contrast']
202
- end
203
-
204
- if attributes.key?(:'Gamma')
205
- self.gamma = attributes[:'Gamma']
206
- end
207
-
208
- if attributes.key?(:'FlipMode')
209
- self.flip_mode = attributes[:'FlipMode']
210
- end
211
-
212
- end
213
-
214
- # Show invalid properties with the reasons. Usually used together with valid?
215
- # @return Array for valid properies with the reasons
216
- def list_invalid_properties
217
- invalid_properties = []
218
- if @from_page.nil?
219
- invalid_properties.push("invalid value for 'from_page', from_page cannot be nil.")
220
- end
221
-
222
- if @pages_count.nil?
223
- invalid_properties.push("invalid value for 'pages_count', pages_count cannot be nil.")
224
- end
225
-
226
- if @width.nil?
227
- invalid_properties.push("invalid value for 'width', width cannot be nil.")
228
- end
229
-
230
- if @height.nil?
231
- invalid_properties.push("invalid value for 'height', height cannot be nil.")
232
- end
233
-
234
- if @horizontal_resolution.nil?
235
- invalid_properties.push("invalid value for 'horizontal_resolution', horizontal_resolution cannot be nil.")
236
- end
237
-
238
- if @vertical_resolution.nil?
239
- invalid_properties.push("invalid value for 'vertical_resolution', vertical_resolution cannot be nil.")
240
- end
241
-
242
- if @grayscale.nil?
243
- invalid_properties.push("invalid value for 'grayscale', grayscale cannot be nil.")
244
- end
245
-
246
- if @rotate_angle.nil?
247
- invalid_properties.push("invalid value for 'rotate_angle', rotate_angle cannot be nil.")
248
- end
249
-
250
- if @use_pdf.nil?
251
- invalid_properties.push("invalid value for 'use_pdf', use_pdf cannot be nil.")
252
- end
253
-
254
- if @brightness.nil?
255
- invalid_properties.push("invalid value for 'brightness', brightness cannot be nil.")
256
- end
257
-
258
- if @contrast.nil?
259
- invalid_properties.push("invalid value for 'contrast', contrast cannot be nil.")
260
- end
261
-
262
- if @gamma.nil?
263
- invalid_properties.push("invalid value for 'gamma', gamma cannot be nil.")
264
- end
265
-
266
- if @flip_mode.nil?
267
- invalid_properties.push("invalid value for 'flip_mode', flip_mode cannot be nil.")
268
- end
269
-
270
- return invalid_properties
271
- end
272
-
273
- # Check to see if the all the properties in the model are valid
274
- # @return true if the model is valid
275
- def valid?
276
- return false if @from_page.nil?
277
- return false if @pages_count.nil?
278
- return false if @width.nil?
279
- return false if @height.nil?
280
- return false if @horizontal_resolution.nil?
281
- return false if @vertical_resolution.nil?
282
- return false if @grayscale.nil?
283
- return false if @rotate_angle.nil?
284
- return false if @use_pdf.nil?
285
- return false if @brightness.nil?
286
- return false if @contrast.nil?
287
- return false if @gamma.nil?
288
- return false if @flip_mode.nil?
289
- flip_mode_validator = EnumAttributeValidator.new('String', ["None", "FlipX", "FlipY", "FlipXY"])
290
- return false unless flip_mode_validator.valid?(@flip_mode)
291
- return true
292
- end
293
-
294
- # Custom attribute writer method checking allowed values (enum).
295
- # @param [Object] flip_mode Object to be assigned
296
- def flip_mode=(flip_mode)
297
- validator = EnumAttributeValidator.new('String', ["None", "FlipX", "FlipY", "FlipXY"])
298
- if flip_mode.to_i == 0
299
- unless validator.valid?(flip_mode)
300
- raise ArgumentError, "invalid value for 'flip_mode', must be one of #{validator.allowable_values}."
301
- end
302
- @flip_mode = flip_mode
303
- else
304
- @flip_mode = validator.allowable_values[flip_mode.to_i]
305
- end
306
- end
307
-
308
- # Checks equality by comparing each attribute.
309
- # @param [Object] Object to be compared
310
- def ==(other)
311
- return true if self.equal?(other)
312
- self.class == other.class &&
313
- from_page == other.from_page &&
314
- pages_count == other.pages_count &&
315
- pages == other.pages &&
316
- width == other.width &&
317
- height == other.height &&
318
- horizontal_resolution == other.horizontal_resolution &&
319
- vertical_resolution == other.vertical_resolution &&
320
- grayscale == other.grayscale &&
321
- rotate_angle == other.rotate_angle &&
322
- use_pdf == other.use_pdf &&
323
- watermark_options == other.watermark_options &&
324
- brightness == other.brightness &&
325
- contrast == other.contrast &&
326
- gamma == other.gamma &&
327
- flip_mode == other.flip_mode
328
- end
329
-
330
- # @see the `==` method
331
- # @param [Object] Object to be compared
332
- def eql?(other)
333
- self == other
334
- end
335
-
336
- # Calculates hash code according to all attributes.
337
- # @return [Fixnum] Hash code
338
- def hash
339
- [from_page, pages_count, pages, width, height, horizontal_resolution, vertical_resolution, grayscale, rotate_angle, use_pdf, watermark_options, brightness, contrast, gamma, flip_mode].hash
340
- end
341
-
342
- # Downcases first letter.
343
- # @return downcased string
344
- def uncap(str)
345
- str[0, 1].downcase + str[1..-1]
346
- end
347
-
348
- # Builds the object from hash
349
- # @param [Hash] attributes Model attributes in the form of hash
350
- # @return [Object] Returns the model itself
351
- def build_from_hash(attributes)
352
- return nil unless attributes.is_a?(Hash)
353
- self.class.swagger_types.each_pair do |key, type|
354
- pname = uncap(self.class.attribute_map[key]).intern
355
- value = attributes[pname]
356
- if type =~ /\AArray<(.*)>/i
357
- # check to ensure the input is an array given that the the attribute
358
- # is documented as an array but the input is not
359
- if value.is_a?(Array)
360
- self.send("#{key}=", value.map { |v| _deserialize($1, v) })
361
- end
362
- elsif !value.nil?
363
- self.send("#{key}=", _deserialize(type, value))
364
- end
365
- # or else data not found in attributes(hash), not an issue as the data can be optional
366
- end
367
-
368
- self
369
- end
370
-
371
- # Deserializes the data based on type
372
- # @param string type Data type
373
- # @param string value Value to be deserialized
374
- # @return [Object] Deserialized data
375
- def _deserialize(type, value)
376
- case type.to_sym
377
- when :DateTime
378
- Date.parse value
379
- when :Date
380
- Date.parse value
381
- when :String
382
- value.to_s
383
- when :Integer
384
- value.to_i
385
- when :Float
386
- value.to_f
387
- when :BOOLEAN
388
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
389
- true
390
- else
391
- false
392
- end
393
- when :Object
394
- # generic object (usually a Hash), return directly
395
- value
396
- when /\AArray<(?<inner_type>.+)>\z/
397
- inner_type = Regexp.last_match[:inner_type]
398
- value.map { |v| _deserialize(inner_type, v) }
399
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
400
- k_type = Regexp.last_match[:k_type]
401
- v_type = Regexp.last_match[:v_type]
402
- {}.tap do |hash|
403
- value.each do |k, v|
404
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
405
- end
406
- end
407
- else
408
- # model
409
- temp_model = GroupDocsConversionCloud.const_get(type).new
410
- temp_model.build_from_hash(value)
411
- end
412
- end
413
-
414
- # Returns the string representation of the object
415
- # @return [String] String presentation of the object
416
- def to_s
417
- to_hash.to_s
418
- end
419
-
420
- # to_body is an alias to to_hash (backward compatibility)
421
- # @return [Hash] Returns the object in the form of hash
422
- def to_body
423
- to_hash
424
- end
425
-
426
- # Returns the object in the form of hash
427
- # @return [Hash] Returns the object in the form of hash
428
- def to_hash
429
- hash = {}
430
- self.class.attribute_map.each_pair do |attr, param|
431
- value = self.send(attr)
432
- next if value.nil?
433
- hash[param] = _to_hash(value)
434
- end
435
- hash
436
- end
437
-
438
- # Outputs non-array value in the form of hash
439
- # For object, use to_hash. Otherwise, just return the value
440
- # @param [Object] value Any valid value
441
- # @return [Hash] Returns the value in the form of hash
442
- def _to_hash(value)
443
- if value.is_a?(Array)
444
- value.compact.map { |v| _to_hash(v) }
445
- elsif value.is_a?(Hash)
446
- {}.tap do |hash|
447
- value.each { |k, v| hash[k] = _to_hash(v) }
448
- end
449
- elsif value.respond_to? :to_hash
450
- value.to_hash
451
- else
452
- value
453
- end
454
- end
455
-
456
- end
457
-
458
- end