groupdocs_conversion_cloud 24.3 → 24.8

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 (25) hide show
  1. checksums.yaml +4 -4
  2. data/lib/groupdocs_conversion_cloud/api/async_api.rb +539 -0
  3. data/lib/groupdocs_conversion_cloud/models/cad_load_options.rb +64 -32
  4. data/lib/groupdocs_conversion_cloud/models/cf2_load_options.rb +288 -0
  5. data/lib/groupdocs_conversion_cloud/models/dgn_load_options.rb +64 -32
  6. data/lib/groupdocs_conversion_cloud/models/dwf_load_options.rb +64 -32
  7. data/lib/groupdocs_conversion_cloud/models/dwfx_load_options.rb +288 -0
  8. data/lib/groupdocs_conversion_cloud/models/dwg_load_options.rb +64 -32
  9. data/lib/groupdocs_conversion_cloud/models/dwt_load_options.rb +288 -0
  10. data/lib/groupdocs_conversion_cloud/models/dxf_load_options.rb +64 -32
  11. data/lib/groupdocs_conversion_cloud/models/email_load_options.rb +1 -16
  12. data/lib/groupdocs_conversion_cloud/models/eml_load_options.rb +1 -16
  13. data/lib/groupdocs_conversion_cloud/models/emlx_load_options.rb +1 -16
  14. data/lib/groupdocs_conversion_cloud/models/ifc_load_options.rb +64 -32
  15. data/lib/groupdocs_conversion_cloud/models/igs_load_options.rb +64 -32
  16. data/lib/groupdocs_conversion_cloud/models/mht_load_options.rb +1 -16
  17. data/lib/groupdocs_conversion_cloud/models/msg_load_options.rb +1 -16
  18. data/lib/groupdocs_conversion_cloud/models/operation_result.rb +354 -0
  19. data/lib/groupdocs_conversion_cloud/models/ost_load_options.rb +1 -16
  20. data/lib/groupdocs_conversion_cloud/models/plt_load_options.rb +64 -32
  21. data/lib/groupdocs_conversion_cloud/models/pst_load_options.rb +1 -16
  22. data/lib/groupdocs_conversion_cloud/models/stl_load_options.rb +64 -32
  23. data/lib/groupdocs_conversion_cloud/version.rb +1 -1
  24. data/lib/groupdocs_conversion_cloud.rb +5 -0
  25. metadata +7 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 74886dfd7d48be4b54ea4ecc554d39346b4c5cfe14dcf18c2b654e94c4d2c068
4
- data.tar.gz: 52d625970d1efc95d04653f1bc48a8c6e7f38865faff1dca8536777d2d21da4c
3
+ metadata.gz: b1354fe62e635aea64e167a58a224ac421eb828ae62e34d8ceb7428a57ca5a79
4
+ data.tar.gz: 3f11f11e09ef7b69a94c530ebb8595cf4d76eb850167861af5b4c4968688e762
5
5
  SHA512:
6
- metadata.gz: fd78a4b7c44f32a57c977fe5b8014de6d6d547405753b733bf5a103af65e224e9a6f6360aa90200e4ccbb162fb2d2e56f4bb5ea78d3a7250e3dd4db8b280c32d
7
- data.tar.gz: f8ee111daa7d40bcd44a2b0be2c68c7b03f04985a82fd18b8d8208ec92e921de3ef8de786f06f818754741af6f09a633294c92fa87ccbceade58d2ce45bc9ee7
6
+ metadata.gz: facd18066e84f511bd977f1c080b8e215280883c8878fe575e83dc0ad3227dca150ce0677eed91375052cc00f029228c61fe8390827adaa1d8105955a39626fd
7
+ data.tar.gz: 06d857ba949f254664e99703ee9c309a224f4e734bc622707dd7b2fa5e55f35c4e96d2d90bbbe99f42bc94ca034b9fd806a11d12daa892d6c31b1aa89782c473
@@ -0,0 +1,539 @@
1
+ # -----------------------------------------------------------------------------------
2
+ # <copyright company="Aspose Pty Ltd" file="async.rb">
3
+ # Copyright (c) 2003-2024 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 GroupDocsConversionCloud
30
+ #
31
+ # GroupDocs.Conversion Cloud API
32
+ #
33
+ class AsyncApi
34
+ attr_accessor :config
35
+
36
+ #make AsyncApi.new private
37
+ private_class_method :new
38
+
39
+ # Initializes new instance of AsyncApi
40
+ #
41
+ # @param [config] Configuration
42
+ # @return [AsyncApi] New instance of AsyncApi
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 AsyncApi
50
+ #
51
+ # @param [app_sid] Application identifier (App SID)
52
+ # @param [app_key] Application private key (App Key)
53
+ # @return [AsyncApi] New instance of AsyncApi
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 AsyncApi
60
+ #
61
+ # @param [config] Configuration
62
+ # @return [AsyncApi] New instance of AsyncApi
63
+ def self.from_config(config)
64
+ return new(config)
65
+ end
66
+
67
+ # Get async operation result
68
+ #
69
+ # @param request get_operation_result_request
70
+ # @return [File]
71
+ def get_operation_result(request)
72
+ data, _status_code, _headers = get_operation_result_with_http_info(request)
73
+ data
74
+ end
75
+
76
+ # Get async operation result
77
+ #
78
+ # @param request get_operation_result_request
79
+ # @return [Array<(File, Fixnum, Hash)>]
80
+ # File data, response status code and response headers
81
+ def get_operation_result_with_http_info(request)
82
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? GetOperationResultRequest
83
+
84
+ @api_client.config.logger.debug 'Calling API: AsyncApi.get_operation_result ...' if @api_client.config.debugging
85
+ # verify the required parameter 'id' is set
86
+ raise ArgumentError, 'Missing the required parameter id when calling AsyncApi.get_operation_result' if @api_client.config.client_side_validation && request.id.nil?
87
+ # resource path
88
+ local_var_path = '/conversion/async/result'
89
+
90
+ # query parameters
91
+ query_params = {}
92
+ query_params[downcase_first_letter('id')] = request.id
93
+
94
+
95
+ # header parameters
96
+ header_params = {}
97
+ # HTTP header 'Accept' (if needed)
98
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
99
+ # HTTP header 'Content-Type'
100
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
101
+
102
+ # form parameters
103
+ form_params = {}
104
+
105
+ # http body (model)
106
+ post_body = nil
107
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
108
+ header_params: header_params,
109
+ query_params: query_params,
110
+ form_params: form_params,
111
+ body: post_body,
112
+ access_token: get_access_token,
113
+ return_type: 'File')
114
+ if @api_client.config.debugging
115
+ @api_client.config.logger.debug "API called:
116
+ AsyncApi#get_operation_result\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
117
+ end
118
+ [data, status_code, headers]
119
+ end
120
+
121
+ # Get async operation status
122
+ #
123
+ # @param request get_operation_status_request
124
+ # @return [OperationResult]
125
+ def get_operation_status(request)
126
+ data, _status_code, _headers = get_operation_status_with_http_info(request)
127
+ data
128
+ end
129
+
130
+ # Get async operation status
131
+ #
132
+ # @param request get_operation_status_request
133
+ # @return [Array<(OperationResult, Fixnum, Hash)>]
134
+ # OperationResult data, response status code and response headers
135
+ def get_operation_status_with_http_info(request)
136
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? GetOperationStatusRequest
137
+
138
+ @api_client.config.logger.debug 'Calling API: AsyncApi.get_operation_status ...' if @api_client.config.debugging
139
+ # verify the required parameter 'id' is set
140
+ raise ArgumentError, 'Missing the required parameter id when calling AsyncApi.get_operation_status' if @api_client.config.client_side_validation && request.id.nil?
141
+ # resource path
142
+ local_var_path = '/conversion/async'
143
+
144
+ # query parameters
145
+ query_params = {}
146
+ query_params[downcase_first_letter('id')] = request.id
147
+
148
+
149
+ # header parameters
150
+ header_params = {}
151
+ # HTTP header 'Accept' (if needed)
152
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
153
+ # HTTP header 'Content-Type'
154
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
155
+
156
+ # form parameters
157
+ form_params = {}
158
+
159
+ # http body (model)
160
+ post_body = nil
161
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
162
+ header_params: header_params,
163
+ query_params: query_params,
164
+ form_params: form_params,
165
+ body: post_body,
166
+ access_token: get_access_token,
167
+ return_type: 'OperationResult')
168
+ if @api_client.config.debugging
169
+ @api_client.config.logger.debug "API called:
170
+ AsyncApi#get_operation_status\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
171
+ end
172
+ [data, status_code, headers]
173
+ end
174
+
175
+ # Starts async conversion specified input document, from request body, to format specified
176
+ #
177
+ # @param request start_convert_request
178
+ # @return [String]
179
+ def start_convert(request)
180
+ data, _status_code, _headers = start_convert_with_http_info(request)
181
+ data
182
+ end
183
+
184
+ # Starts async conversion specified input document, from request body, to format specified
185
+ #
186
+ # @param request start_convert_request
187
+ # @return [Array<(String, Fixnum, Hash)>]
188
+ # String data, response status code and response headers
189
+ def start_convert_with_http_info(request)
190
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? StartConvertRequest
191
+
192
+ @api_client.config.logger.debug 'Calling API: AsyncApi.start_convert ...' if @api_client.config.debugging
193
+ # verify the required parameter 'format' is set
194
+ raise ArgumentError, 'Missing the required parameter format when calling AsyncApi.start_convert' if @api_client.config.client_side_validation && request.format.nil?
195
+ # verify the required parameter 'file' is set
196
+ raise ArgumentError, 'Missing the required parameter file when calling AsyncApi.start_convert' if @api_client.config.client_side_validation && request.file.nil?
197
+ # resource path
198
+ local_var_path = '/conversion/async'
199
+
200
+ # query parameters
201
+ query_params = {}
202
+ query_params[downcase_first_letter('format')] = request.format
203
+
204
+ if local_var_path.include? ('{' + downcase_first_letter('fromPage') + '}')
205
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('fromPage') + '}', request.from_page.to_s)
206
+ else
207
+ query_params[downcase_first_letter('fromPage')] = request.from_page unless request.from_page.nil?
208
+ end
209
+ if local_var_path.include? ('{' + downcase_first_letter('pagesCount') + '}')
210
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('pagesCount') + '}', request.pages_count.to_s)
211
+ else
212
+ query_params[downcase_first_letter('pagesCount')] = request.pages_count unless request.pages_count.nil?
213
+ end
214
+
215
+ # header parameters
216
+ header_params = {}
217
+ # HTTP header 'Accept' (if needed)
218
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
219
+ # HTTP header 'Content-Type'
220
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
221
+
222
+ # form parameters
223
+ form_params = {}
224
+ form_params[downcase_first_letter('File')] = request.file
225
+
226
+ # http body (model)
227
+ post_body = nil
228
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
229
+ header_params: header_params,
230
+ query_params: query_params,
231
+ form_params: form_params,
232
+ body: post_body,
233
+ access_token: get_access_token,
234
+ return_type: 'String')
235
+ if @api_client.config.debugging
236
+ @api_client.config.logger.debug "API called:
237
+ AsyncApi#start_convert\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
238
+ end
239
+ [data, status_code, headers]
240
+ end
241
+
242
+ # Starts async conversion specified input document to format specified in the convertSettings with specified options
243
+ #
244
+ # @param request start_convert_and_save_request
245
+ # @return [String]
246
+ def start_convert_and_save(request)
247
+ data, _status_code, _headers = start_convert_and_save_with_http_info(request)
248
+ data
249
+ end
250
+
251
+ # Starts async conversion specified input document to format specified in the convertSettings with specified options
252
+ #
253
+ # @param request start_convert_and_save_request
254
+ # @return [Array<(String, Fixnum, Hash)>]
255
+ # String data, response status code and response headers
256
+ def start_convert_and_save_with_http_info(request)
257
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? StartConvertAndSaveRequest
258
+
259
+ @api_client.config.logger.debug 'Calling API: AsyncApi.start_convert_and_save ...' if @api_client.config.debugging
260
+ # verify the required parameter 'convert_settings' is set
261
+ raise ArgumentError, 'Missing the required parameter convert_settings when calling AsyncApi.start_convert_and_save' if @api_client.config.client_side_validation && request.convert_settings.nil?
262
+ # resource path
263
+ local_var_path = '/conversion/async'
264
+
265
+ # query parameters
266
+ query_params = {}
267
+
268
+ # header parameters
269
+ header_params = {}
270
+ # HTTP header 'Accept' (if needed)
271
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
272
+ # HTTP header 'Content-Type'
273
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
274
+
275
+ # form parameters
276
+ form_params = {}
277
+
278
+ # http body (model)
279
+ post_body = @api_client.object_to_http_body(request.convert_settings)
280
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
281
+ header_params: header_params,
282
+ query_params: query_params,
283
+ form_params: form_params,
284
+ body: post_body,
285
+ access_token: get_access_token,
286
+ return_type: 'String')
287
+ if @api_client.config.debugging
288
+ @api_client.config.logger.debug "API called:
289
+ AsyncApi#start_convert_and_save\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
290
+ end
291
+ [data, status_code, headers]
292
+ end
293
+
294
+ #
295
+ # Helper method to convert first letter to downcase
296
+ #
297
+ private def downcase_first_letter(str)
298
+ value = str[0].downcase + str[1..-1]
299
+ value
300
+ end
301
+
302
+ #
303
+ # Retrieves access token
304
+ #
305
+ private def get_access_token
306
+ if @access_token.nil? then
307
+ request_access_token
308
+ end
309
+
310
+ @access_token
311
+ end
312
+
313
+ #
314
+ # Gets a access token from server
315
+ #
316
+ private def request_access_token
317
+ auth_config = Configuration.new(@config.app_sid, @config.app_key)
318
+ auth_config.api_base_url = @config.api_base_url
319
+ auth_config.debugging = @config.debugging
320
+ auth_config.logger = @config.logger
321
+ auth_config.temp_folder_path = @config.temp_folder_path
322
+ auth_config.client_side_validation = @config.client_side_validation
323
+ auth_config.api_version = ''
324
+
325
+ auth_api_client = ApiClient.new(auth_config)
326
+
327
+ request_url = "/connect/token"
328
+ post_data = "grant_type=client_credentials&client_id=#{@config.app_sid}&client_secret=#{@config.app_key}"
329
+
330
+ data, _status_code, _header = auth_api_client.call_api(:POST, request_url, :body => post_data, :return_type => 'Object')
331
+
332
+ @access_token = data[:access_token]
333
+
334
+ expires_in_seconds = data[:expires_in].to_i - 5 * 60
335
+ expires_in_days = Rational(expires_in_seconds, 60 * 60 * 24)
336
+ @access_token_expires_at = DateTime.now + expires_in_days
337
+ end
338
+
339
+ # requires all files inside a directory from current dir
340
+ # @param _dir can be relative path like '/lib' or "../lib"
341
+ private def require_all(_dir)
342
+ Dir[File.expand_path(File.join(File.dirname(File.absolute_path(__FILE__)), _dir)) + "/*.rb"].each do |file|
343
+ require file
344
+ end
345
+ end
346
+ end
347
+ end
348
+ #
349
+ # --------------------------------------------------------------------------------------------------------------------
350
+ # <copyright company="Aspose Pty Ltd" file="get_operation_result_request.rb">
351
+ # Copyright (c) 2003-2024 Aspose Pty Ltd
352
+ # </copyright>
353
+ # <summary>
354
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
355
+ # of this software and associated documentation files (the "Software"), to deal
356
+ # in the Software without restriction, including without limitation the rights
357
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
358
+ # copies of the Software, and to permit persons to whom the Software is
359
+ # furnished to do so, subject to the following conditions:
360
+ #
361
+ # The above copyright notice and this permission notice shall be included in all
362
+ # copies or substantial portions of the Software.
363
+ #
364
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
365
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
366
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
367
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
368
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
369
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
370
+ # SOFTWARE.
371
+ # </summary>
372
+ # --------------------------------------------------------------------------------------------------------------------
373
+ #
374
+
375
+ module GroupDocsConversionCloud
376
+
377
+ #
378
+ # Request model for get_operation_result operation.
379
+ #
380
+ class GetOperationResultRequest
381
+
382
+ # Gets or sets id
383
+ attr_accessor :id
384
+
385
+ #
386
+ # Initializes a new instance.
387
+ # @param id
388
+ def initialize(id)
389
+ self.id = id
390
+ end
391
+ end
392
+ end
393
+ #
394
+ # --------------------------------------------------------------------------------------------------------------------
395
+ # <copyright company="Aspose Pty Ltd" file="get_operation_status_request.rb">
396
+ # Copyright (c) 2003-2024 Aspose Pty Ltd
397
+ # </copyright>
398
+ # <summary>
399
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
400
+ # of this software and associated documentation files (the "Software"), to deal
401
+ # in the Software without restriction, including without limitation the rights
402
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
403
+ # copies of the Software, and to permit persons to whom the Software is
404
+ # furnished to do so, subject to the following conditions:
405
+ #
406
+ # The above copyright notice and this permission notice shall be included in all
407
+ # copies or substantial portions of the Software.
408
+ #
409
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
410
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
411
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
412
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
413
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
414
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
415
+ # SOFTWARE.
416
+ # </summary>
417
+ # --------------------------------------------------------------------------------------------------------------------
418
+ #
419
+
420
+ module GroupDocsConversionCloud
421
+
422
+ #
423
+ # Request model for get_operation_status operation.
424
+ #
425
+ class GetOperationStatusRequest
426
+
427
+ # Gets or sets id
428
+ attr_accessor :id
429
+
430
+ #
431
+ # Initializes a new instance.
432
+ # @param id
433
+ def initialize(id)
434
+ self.id = id
435
+ end
436
+ end
437
+ end
438
+ #
439
+ # --------------------------------------------------------------------------------------------------------------------
440
+ # <copyright company="Aspose Pty Ltd" file="start_convert_request.rb">
441
+ # Copyright (c) 2003-2024 Aspose Pty Ltd
442
+ # </copyright>
443
+ # <summary>
444
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
445
+ # of this software and associated documentation files (the "Software"), to deal
446
+ # in the Software without restriction, including without limitation the rights
447
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
448
+ # copies of the Software, and to permit persons to whom the Software is
449
+ # furnished to do so, subject to the following conditions:
450
+ #
451
+ # The above copyright notice and this permission notice shall be included in all
452
+ # copies or substantial portions of the Software.
453
+ #
454
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
455
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
456
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
457
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
458
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
459
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
460
+ # SOFTWARE.
461
+ # </summary>
462
+ # --------------------------------------------------------------------------------------------------------------------
463
+ #
464
+
465
+ module GroupDocsConversionCloud
466
+
467
+ #
468
+ # Request model for start_convert operation.
469
+ #
470
+ class StartConvertRequest
471
+
472
+ # Requested conversion format
473
+ attr_accessor :format
474
+ # Input file to convert
475
+ attr_accessor :file
476
+ # Page start conversion from
477
+ attr_accessor :from_page
478
+ # Number of pages to convert
479
+ attr_accessor :pages_count
480
+
481
+ #
482
+ # Initializes a new instance.
483
+ # @param format Requested conversion format
484
+ # @param file Input file to convert
485
+ # @param from_page Page start conversion from
486
+ # @param pages_count Number of pages to convert
487
+ def initialize(format, file, from_page = nil, pages_count = nil)
488
+ self.format = format
489
+ self.file = file
490
+ self.from_page = from_page
491
+ self.pages_count = pages_count
492
+ end
493
+ end
494
+ end
495
+ #
496
+ # --------------------------------------------------------------------------------------------------------------------
497
+ # <copyright company="Aspose Pty Ltd" file="start_convert_and_save_request.rb">
498
+ # Copyright (c) 2003-2024 Aspose Pty Ltd
499
+ # </copyright>
500
+ # <summary>
501
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
502
+ # of this software and associated documentation files (the "Software"), to deal
503
+ # in the Software without restriction, including without limitation the rights
504
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
505
+ # copies of the Software, and to permit persons to whom the Software is
506
+ # furnished to do so, subject to the following conditions:
507
+ #
508
+ # The above copyright notice and this permission notice shall be included in all
509
+ # copies or substantial portions of the Software.
510
+ #
511
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
512
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
513
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
514
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
515
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
516
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
517
+ # SOFTWARE.
518
+ # </summary>
519
+ # --------------------------------------------------------------------------------------------------------------------
520
+ #
521
+
522
+ module GroupDocsConversionCloud
523
+
524
+ #
525
+ # Request model for start_convert_and_save operation.
526
+ #
527
+ class StartConvertAndSaveRequest
528
+
529
+ # Conversion settings
530
+ attr_accessor :convert_settings
531
+
532
+ #
533
+ # Initializes a new instance.
534
+ # @param convert_settings Conversion settings
535
+ def initialize(convert_settings)
536
+ self.convert_settings = convert_settings
537
+ end
538
+ end
539
+ end