groupdocs_merger_cloud 19.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 (45) hide show
  1. checksums.yaml +7 -0
  2. data/lib/groupdocs_merger_cloud.rb +72 -0
  3. data/lib/groupdocs_merger_cloud/api/document_api.rb +411 -0
  4. data/lib/groupdocs_merger_cloud/api/file_api.rb +729 -0
  5. data/lib/groupdocs_merger_cloud/api/folder_api.rb +694 -0
  6. data/lib/groupdocs_merger_cloud/api/info_api.rb +266 -0
  7. data/lib/groupdocs_merger_cloud/api/pages_api.rb +702 -0
  8. data/lib/groupdocs_merger_cloud/api/security_api.rb +528 -0
  9. data/lib/groupdocs_merger_cloud/api/storage_api.rb +541 -0
  10. data/lib/groupdocs_merger_cloud/api_client.rb +380 -0
  11. data/lib/groupdocs_merger_cloud/api_error.rb +58 -0
  12. data/lib/groupdocs_merger_cloud/configuration.rb +95 -0
  13. data/lib/groupdocs_merger_cloud/models/disc_usage.rb +234 -0
  14. data/lib/groupdocs_merger_cloud/models/document_result.rb +214 -0
  15. data/lib/groupdocs_merger_cloud/models/error.rb +244 -0
  16. data/lib/groupdocs_merger_cloud/models/error_details.rb +229 -0
  17. data/lib/groupdocs_merger_cloud/models/extract_options.rb +318 -0
  18. data/lib/groupdocs_merger_cloud/models/file_info.rb +244 -0
  19. data/lib/groupdocs_merger_cloud/models/file_version.rb +289 -0
  20. data/lib/groupdocs_merger_cloud/models/file_versions.rb +216 -0
  21. data/lib/groupdocs_merger_cloud/models/files_list.rb +216 -0
  22. data/lib/groupdocs_merger_cloud/models/files_upload_result.rb +228 -0
  23. data/lib/groupdocs_merger_cloud/models/format.rb +224 -0
  24. data/lib/groupdocs_merger_cloud/models/formats_result.rb +216 -0
  25. data/lib/groupdocs_merger_cloud/models/info_result.rb +251 -0
  26. data/lib/groupdocs_merger_cloud/models/join_item.rb +308 -0
  27. data/lib/groupdocs_merger_cloud/models/join_options.rb +226 -0
  28. data/lib/groupdocs_merger_cloud/models/move_options.rb +254 -0
  29. data/lib/groupdocs_merger_cloud/models/multi_document_result.rb +216 -0
  30. data/lib/groupdocs_merger_cloud/models/object_exist.rb +234 -0
  31. data/lib/groupdocs_merger_cloud/models/options.rb +224 -0
  32. data/lib/groupdocs_merger_cloud/models/orientation_options.rb +349 -0
  33. data/lib/groupdocs_merger_cloud/models/page_info.rb +264 -0
  34. data/lib/groupdocs_merger_cloud/models/page_options.rb +318 -0
  35. data/lib/groupdocs_merger_cloud/models/password_result.rb +219 -0
  36. data/lib/groupdocs_merger_cloud/models/preview_options.rb +379 -0
  37. data/lib/groupdocs_merger_cloud/models/remove_options.rb +318 -0
  38. data/lib/groupdocs_merger_cloud/models/rotate_options.rb +349 -0
  39. data/lib/groupdocs_merger_cloud/models/split_options.rb +349 -0
  40. data/lib/groupdocs_merger_cloud/models/storage_exist.rb +219 -0
  41. data/lib/groupdocs_merger_cloud/models/storage_file.rb +264 -0
  42. data/lib/groupdocs_merger_cloud/models/swap_options.rb +254 -0
  43. data/lib/groupdocs_merger_cloud/models/update_password_options.rb +234 -0
  44. data/lib/groupdocs_merger_cloud/version.rb +29 -0
  45. metadata +155 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 26963d1e0b8a53e0f820b61ec916121e594356ac
4
+ data.tar.gz: caae255afc236b0bb89e5eb17b40d308104c68a0
5
+ SHA512:
6
+ metadata.gz: 0526e3f943c6ce9dbd0132f834285d827ee86ca503466776a3756e675ff4143ca8ec5bb8724f20979d0618cb16478c33ece7ee8deb64578287130339fae763fd
7
+ data.tar.gz: d6e7f60b2c8a495a8f409a5f4e52460afc4141e30969ea93c63027dae2b90e7fc0490ec38bc17d25484b99b29c55e383771483553fe1610f80a4c405621e5683
@@ -0,0 +1,72 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose Pty Ltd" file="groupdocs_merger_cloud.rb">
3
+ # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # </copyright>
5
+ # <summary>
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the "Software"), to deal
8
+ # in the Software without restriction, including without limitation the rights
9
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ # copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in all
14
+ # copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ # SOFTWARE.
23
+ # </summary>
24
+ # ------------------------------------------------------------------------------------
25
+
26
+ # Common files
27
+ require_relative 'groupdocs_merger_cloud/api_client'
28
+ require_relative 'groupdocs_merger_cloud/api_error'
29
+ require_relative 'groupdocs_merger_cloud/version'
30
+ require_relative 'groupdocs_merger_cloud/configuration'
31
+
32
+ # Models
33
+ require_relative 'groupdocs_merger_cloud/models/disc_usage'
34
+ require_relative 'groupdocs_merger_cloud/models/document_result'
35
+ require_relative 'groupdocs_merger_cloud/models/error'
36
+ require_relative 'groupdocs_merger_cloud/models/error_details'
37
+ require_relative 'groupdocs_merger_cloud/models/file_info'
38
+ require_relative 'groupdocs_merger_cloud/models/file_versions'
39
+ require_relative 'groupdocs_merger_cloud/models/files_list'
40
+ require_relative 'groupdocs_merger_cloud/models/files_upload_result'
41
+ require_relative 'groupdocs_merger_cloud/models/format'
42
+ require_relative 'groupdocs_merger_cloud/models/formats_result'
43
+ require_relative 'groupdocs_merger_cloud/models/info_result'
44
+ require_relative 'groupdocs_merger_cloud/models/join_item'
45
+ require_relative 'groupdocs_merger_cloud/models/join_options'
46
+ require_relative 'groupdocs_merger_cloud/models/multi_document_result'
47
+ require_relative 'groupdocs_merger_cloud/models/object_exist'
48
+ require_relative 'groupdocs_merger_cloud/models/options'
49
+ require_relative 'groupdocs_merger_cloud/models/page_info'
50
+ require_relative 'groupdocs_merger_cloud/models/password_result'
51
+ require_relative 'groupdocs_merger_cloud/models/storage_exist'
52
+ require_relative 'groupdocs_merger_cloud/models/storage_file'
53
+ require_relative 'groupdocs_merger_cloud/models/file_version'
54
+ require_relative 'groupdocs_merger_cloud/models/move_options'
55
+ require_relative 'groupdocs_merger_cloud/models/page_options'
56
+ require_relative 'groupdocs_merger_cloud/models/swap_options'
57
+ require_relative 'groupdocs_merger_cloud/models/update_password_options'
58
+ require_relative 'groupdocs_merger_cloud/models/extract_options'
59
+ require_relative 'groupdocs_merger_cloud/models/orientation_options'
60
+ require_relative 'groupdocs_merger_cloud/models/preview_options'
61
+ require_relative 'groupdocs_merger_cloud/models/remove_options'
62
+ require_relative 'groupdocs_merger_cloud/models/rotate_options'
63
+ require_relative 'groupdocs_merger_cloud/models/split_options'
64
+
65
+ # APIs
66
+ require_relative 'groupdocs_merger_cloud/api/document_api'
67
+ require_relative 'groupdocs_merger_cloud/api/file_api'
68
+ require_relative 'groupdocs_merger_cloud/api/folder_api'
69
+ require_relative 'groupdocs_merger_cloud/api/info_api'
70
+ require_relative 'groupdocs_merger_cloud/api/pages_api'
71
+ require_relative 'groupdocs_merger_cloud/api/security_api'
72
+ require_relative 'groupdocs_merger_cloud/api/storage_api'
@@ -0,0 +1,411 @@
1
+ # -----------------------------------------------------------------------------------
2
+ # <copyright company="Aspose Pty Ltd" file="document.rb">
3
+ # Copyright (c) 2003-2019 Aspose Pty Ltd
4
+ # </copyright>
5
+ # <summary>
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the "Software"), to deal
8
+ # in the Software without restriction, including without limitation the rights
9
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ # copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in all
14
+ # copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ # SOFTWARE.
23
+ # </summary>
24
+ # -----------------------------------------------------------------------------------
25
+
26
+ require 'uri'
27
+ require 'date'
28
+
29
+ module GroupDocsMergerCloud
30
+ #
31
+ # GroupDocs.Merger Cloud API
32
+ #
33
+ class DocumentApi
34
+ attr_accessor :config
35
+
36
+ #make DocumentApi.new private
37
+ private_class_method :new
38
+
39
+ # Initializes new instance of DocumentApi
40
+ #
41
+ # @param [config] Configuration
42
+ # @return [DocumentApi] New instance of DocumentApi
43
+ def initialize(config)
44
+ @config = config
45
+ @api_client = ApiClient.new(config)
46
+ @access_token = nil
47
+ end
48
+
49
+ # Initializes new instance of DocumentApi
50
+ #
51
+ # @param [app_sid] Application identifier (App SID)
52
+ # @param [app_key] Application private key (App Key)
53
+ # @return [DocumentApi] New instance of DocumentApi
54
+ def self.from_keys(app_sid, app_key)
55
+ config = Configuration.new(app_sid, app_key)
56
+ return new(config)
57
+ end
58
+
59
+ # Initializes new instance of DocumentApi
60
+ #
61
+ # @param [config] Configuration
62
+ # @return [DocumentApi] New instance of DocumentApi
63
+ def self.from_config(config)
64
+ return new(config)
65
+ end
66
+
67
+ # Join multiple documents into one document
68
+ #
69
+ # @param request join_request
70
+ # @return [DocumentResult]
71
+ def join(request)
72
+ data, _status_code, _headers = join_with_http_info(request)
73
+ data
74
+ end
75
+
76
+ # Join multiple documents into one document
77
+ #
78
+ # @param request join_request
79
+ # @return [Array<(DocumentResult, Fixnum, Hash)>]
80
+ # DocumentResult data, response status code and response headers
81
+ def join_with_http_info(request)
82
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? JoinRequest
83
+
84
+ @api_client.config.logger.debug 'Calling API: DocumentApi.join ...' if @api_client.config.debugging
85
+ # verify the required parameter 'options' is set
86
+ raise ArgumentError, 'Missing the required parameter options when calling DocumentApi.join' if @api_client.config.client_side_validation && request.options.nil?
87
+ # resource path
88
+ local_var_path = '/merger/join'
89
+
90
+ # query parameters
91
+ query_params = {}
92
+
93
+ # header parameters
94
+ header_params = {}
95
+ # HTTP header 'Accept' (if needed)
96
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
97
+ # HTTP header 'Content-Type'
98
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
99
+
100
+ # form parameters
101
+ form_params = {}
102
+
103
+ # http body (model)
104
+ post_body = @api_client.object_to_http_body(request.options)
105
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
106
+ header_params: header_params,
107
+ query_params: query_params,
108
+ form_params: form_params,
109
+ body: post_body,
110
+ access_token: get_access_token,
111
+ return_type: 'DocumentResult')
112
+ if @api_client.config.debugging
113
+ @api_client.config.logger.debug "API called:
114
+ DocumentApi#join\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
115
+ end
116
+ [data, status_code, headers]
117
+ end
118
+
119
+ # Generate document pages preview
120
+ #
121
+ # @param request preview_request
122
+ # @return [MultiDocumentResult]
123
+ def preview(request)
124
+ data, _status_code, _headers = preview_with_http_info(request)
125
+ data
126
+ end
127
+
128
+ # Generate document pages preview
129
+ #
130
+ # @param request preview_request
131
+ # @return [Array<(MultiDocumentResult, Fixnum, Hash)>]
132
+ # MultiDocumentResult data, response status code and response headers
133
+ def preview_with_http_info(request)
134
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? PreviewRequest
135
+
136
+ @api_client.config.logger.debug 'Calling API: DocumentApi.preview ...' if @api_client.config.debugging
137
+ # verify the required parameter 'options' is set
138
+ raise ArgumentError, 'Missing the required parameter options when calling DocumentApi.preview' if @api_client.config.client_side_validation && request.options.nil?
139
+ # resource path
140
+ local_var_path = '/merger/preview'
141
+
142
+ # query parameters
143
+ query_params = {}
144
+
145
+ # header parameters
146
+ header_params = {}
147
+ # HTTP header 'Accept' (if needed)
148
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
149
+ # HTTP header 'Content-Type'
150
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
151
+
152
+ # form parameters
153
+ form_params = {}
154
+
155
+ # http body (model)
156
+ post_body = @api_client.object_to_http_body(request.options)
157
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
158
+ header_params: header_params,
159
+ query_params: query_params,
160
+ form_params: form_params,
161
+ body: post_body,
162
+ access_token: get_access_token,
163
+ return_type: 'MultiDocumentResult')
164
+ if @api_client.config.debugging
165
+ @api_client.config.logger.debug "API called:
166
+ DocumentApi#preview\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
167
+ end
168
+ [data, status_code, headers]
169
+ end
170
+
171
+ # Split single document to multiple documents
172
+ #
173
+ # @param request split_request
174
+ # @return [MultiDocumentResult]
175
+ def split(request)
176
+ data, _status_code, _headers = split_with_http_info(request)
177
+ data
178
+ end
179
+
180
+ # Split single document to multiple documents
181
+ #
182
+ # @param request split_request
183
+ # @return [Array<(MultiDocumentResult, Fixnum, Hash)>]
184
+ # MultiDocumentResult data, response status code and response headers
185
+ def split_with_http_info(request)
186
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? SplitRequest
187
+
188
+ @api_client.config.logger.debug 'Calling API: DocumentApi.split ...' if @api_client.config.debugging
189
+ # verify the required parameter 'options' is set
190
+ raise ArgumentError, 'Missing the required parameter options when calling DocumentApi.split' if @api_client.config.client_side_validation && request.options.nil?
191
+ # resource path
192
+ local_var_path = '/merger/split'
193
+
194
+ # query parameters
195
+ query_params = {}
196
+
197
+ # header parameters
198
+ header_params = {}
199
+ # HTTP header 'Accept' (if needed)
200
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
201
+ # HTTP header 'Content-Type'
202
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
203
+
204
+ # form parameters
205
+ form_params = {}
206
+
207
+ # http body (model)
208
+ post_body = @api_client.object_to_http_body(request.options)
209
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
210
+ header_params: header_params,
211
+ query_params: query_params,
212
+ form_params: form_params,
213
+ body: post_body,
214
+ access_token: get_access_token,
215
+ return_type: 'MultiDocumentResult')
216
+ if @api_client.config.debugging
217
+ @api_client.config.logger.debug "API called:
218
+ DocumentApi#split\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
219
+ end
220
+ [data, status_code, headers]
221
+ end
222
+
223
+ #
224
+ # Helper method to convert first letter to downcase
225
+ #
226
+ private def downcase_first_letter(str)
227
+ value = str[0].downcase + str[1..-1]
228
+ value
229
+ end
230
+
231
+ #
232
+ # Retrieves access token
233
+ #
234
+ private def get_access_token
235
+ if @access_token.nil? then
236
+ request_access_token
237
+ end
238
+
239
+ @access_token
240
+ end
241
+
242
+ #
243
+ # Gets a access token from server
244
+ #
245
+ private def request_access_token
246
+ auth_config = Configuration.new(@config.app_sid, @config.app_key)
247
+ auth_config.api_base_url = @config.api_base_url
248
+ auth_config.debugging = @config.debugging
249
+ auth_config.logger = @config.logger
250
+ auth_config.temp_folder_path = @config.temp_folder_path
251
+ auth_config.client_side_validation = @config.client_side_validation
252
+ auth_config.api_version = ''
253
+
254
+ auth_api_client = ApiClient.new(auth_config)
255
+
256
+ request_url = "/connect/token"
257
+ post_data = "grant_type=client_credentials&client_id=#{@config.app_sid}&client_secret=#{@config.app_key}"
258
+
259
+ data, _status_code, _header = auth_api_client.call_api(:POST, request_url, :body => post_data, :return_type => 'Object')
260
+
261
+ @access_token = data[:access_token]
262
+
263
+ expires_in_seconds = data[:expires_in].to_i - 5 * 60
264
+ expires_in_days = Rational(expires_in_seconds, 60 * 60 * 24)
265
+ @access_token_expires_at = DateTime.now + expires_in_days
266
+ end
267
+
268
+ # requires all files inside a directory from current dir
269
+ # @param _dir can be relative path like '/lib' or "../lib"
270
+ private def require_all(_dir)
271
+ Dir[File.expand_path(File.join(File.dirname(File.absolute_path(__FILE__)), _dir)) + "/*.rb"].each do |file|
272
+ require file
273
+ end
274
+ end
275
+ end
276
+ end
277
+ #
278
+ # --------------------------------------------------------------------------------------------------------------------
279
+ # <copyright company="Aspose Pty Ltd" file="join_request.rb">
280
+ # Copyright (c) 2003-2019 Aspose Pty Ltd
281
+ # </copyright>
282
+ # <summary>
283
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
284
+ # of this software and associated documentation files (the "Software"), to deal
285
+ # in the Software without restriction, including without limitation the rights
286
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
287
+ # copies of the Software, and to permit persons to whom the Software is
288
+ # furnished to do so, subject to the following conditions:
289
+ #
290
+ # The above copyright notice and this permission notice shall be included in all
291
+ # copies or substantial portions of the Software.
292
+ #
293
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
294
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
295
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
296
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
297
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
298
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
299
+ # SOFTWARE.
300
+ # </summary>
301
+ # --------------------------------------------------------------------------------------------------------------------
302
+ #
303
+
304
+ module GroupDocsMergerCloud
305
+
306
+ #
307
+ # Request model for join operation.
308
+ #
309
+ class JoinRequest
310
+
311
+ # Join options
312
+ attr_accessor :options
313
+
314
+ #
315
+ # Initializes a new instance.
316
+ # @param options Join options
317
+ def initialize(options)
318
+ self.options = options
319
+ end
320
+ end
321
+ end
322
+ #
323
+ # --------------------------------------------------------------------------------------------------------------------
324
+ # <copyright company="Aspose Pty Ltd" file="preview_request.rb">
325
+ # Copyright (c) 2003-2019 Aspose Pty Ltd
326
+ # </copyright>
327
+ # <summary>
328
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
329
+ # of this software and associated documentation files (the "Software"), to deal
330
+ # in the Software without restriction, including without limitation the rights
331
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
332
+ # copies of the Software, and to permit persons to whom the Software is
333
+ # furnished to do so, subject to the following conditions:
334
+ #
335
+ # The above copyright notice and this permission notice shall be included in all
336
+ # copies or substantial portions of the Software.
337
+ #
338
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
339
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
340
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
341
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
342
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
343
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
344
+ # SOFTWARE.
345
+ # </summary>
346
+ # --------------------------------------------------------------------------------------------------------------------
347
+ #
348
+
349
+ module GroupDocsMergerCloud
350
+
351
+ #
352
+ # Request model for preview operation.
353
+ #
354
+ class PreviewRequest
355
+
356
+ # Preview options
357
+ attr_accessor :options
358
+
359
+ #
360
+ # Initializes a new instance.
361
+ # @param options Preview options
362
+ def initialize(options)
363
+ self.options = options
364
+ end
365
+ end
366
+ end
367
+ #
368
+ # --------------------------------------------------------------------------------------------------------------------
369
+ # <copyright company="Aspose Pty Ltd" file="split_request.rb">
370
+ # Copyright (c) 2003-2019 Aspose Pty Ltd
371
+ # </copyright>
372
+ # <summary>
373
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
374
+ # of this software and associated documentation files (the "Software"), to deal
375
+ # in the Software without restriction, including without limitation the rights
376
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
377
+ # copies of the Software, and to permit persons to whom the Software is
378
+ # furnished to do so, subject to the following conditions:
379
+ #
380
+ # The above copyright notice and this permission notice shall be included in all
381
+ # copies or substantial portions of the Software.
382
+ #
383
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
384
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
385
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
386
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
387
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
388
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
389
+ # SOFTWARE.
390
+ # </summary>
391
+ # --------------------------------------------------------------------------------------------------------------------
392
+ #
393
+
394
+ module GroupDocsMergerCloud
395
+
396
+ #
397
+ # Request model for split operation.
398
+ #
399
+ class SplitRequest
400
+
401
+ # SplitOptions
402
+ attr_accessor :options
403
+
404
+ #
405
+ # Initializes a new instance.
406
+ # @param options SplitOptions
407
+ def initialize(options)
408
+ self.options = options
409
+ end
410
+ end
411
+ end