aspose_slides_cloud 23.10.0 → 23.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +6 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +12 -4
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +266 -0
- data/lib/aspose_slides_cloud/models/operation.rb +12 -3
- data/lib/aspose_slides_cloud/models/operation_progress.rb +121 -0
- data/lib/aspose_slides_cloud/models/slide.rb +11 -1
- data/lib/aspose_slides_cloud/models/slide_replace_result.rb +2 -1
- data/lib/aspose_slides_cloud/models/slide_show_transition.rb +489 -0
- data/lib/aspose_slides_cloud/type_registry.rb +2 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +2 -0
- data/spec/api/slides_api_spec.rb +2 -2
- data/spec/api/slides_async_api_spec.rb +723 -0
- data/spec/spec_utils.rb +3 -4
- data/spec/use_cases/async_api_spec.rb +89 -0
- data/spec/use_cases/slide_spec.rb +16 -0
- data/testRules.json +6 -2
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 32347dd77bedcaea719ebda660fe3125f28a1c844e52fd95c922f9c7441e868a
|
4
|
+
data.tar.gz: 597bf7612740a835ae234685c1d82c87ed3f5ad062230a19a4d1ea6016e05bcb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: db359a39159e2bd7fad0ab15125b64deb8aa3a0d9ea322c94d1b52f506a5bc9381e68a74863bc866e9247ed0c12585cea5a78accf63dce3bbfab94bab3f0ae99
|
7
|
+
data.tar.gz: 739228c94230a16ddb69e32fedde343d2b342881e275671d7f962d4931811cb885b5deff6f4ce810b77cd14f2bdd98563e2ce9b182562185a77a5492569d35cc
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
aspose_slides_cloud (23.
|
4
|
+
aspose_slides_cloud (23.11.0)
|
5
5
|
faraday (~> 1.0, >= 1.0.0)
|
6
6
|
faraday-httpclient (~> 1.0, >= 1.0.0)
|
7
7
|
httpclient (~> 2.2, >= 2.2.0)
|
@@ -45,9 +45,9 @@ GEM
|
|
45
45
|
faraday-retry (1.0.3)
|
46
46
|
hashdiff (1.0.1)
|
47
47
|
httpclient (2.8.3)
|
48
|
-
json (2.
|
48
|
+
json (2.7.0)
|
49
49
|
multipart-post (2.3.0)
|
50
|
-
public_suffix (5.0.
|
50
|
+
public_suffix (5.0.4)
|
51
51
|
rake (12.3.3)
|
52
52
|
rexml (3.2.6)
|
53
53
|
rspec (3.12.0)
|
data/README.md
CHANGED
@@ -27,6 +27,12 @@ You may want to check out Aspose free [Powerpoint to PDF](https://products.aspos
|
|
27
27
|
**Web:** HTML/HTML5
|
28
28
|
**Other:** MPEG4, SWF (export whole presentations)
|
29
29
|
|
30
|
+
## Enhancements in Version 23.11
|
31
|
+
|
32
|
+
* Added **StartSavePresentation** and **StartConvertAndSave** methods to **SlidesAsyncApi**.
|
33
|
+
* Added **StartMerge** and **StartMergeAndSave** methods to **SlidesAsyncApi**.
|
34
|
+
* Added **Progress** property to **Operation** class to enable async operation progress tracking.
|
35
|
+
|
30
36
|
## Enhancements in Version 23.10
|
31
37
|
|
32
38
|
* Added asynchronous API - **SlidesAsyncApi** class with **StartConvert**, **StartDownloadPresentation**, **GetOperationStatus**, **GetOperationResult** methods that allow tracking progress of conversion operations.
|
@@ -14373,7 +14373,7 @@ module AsposeSlidesCloud
|
|
14373
14373
|
# @param password Document password.
|
14374
14374
|
# @param folder Document folder.
|
14375
14375
|
# @param storage Document storage.
|
14376
|
-
def replace_image(name, image_index, image
|
14376
|
+
def replace_image(name, image_index, image, password = nil, folder = nil, storage = nil)
|
14377
14377
|
replace_image_with_http_info(name, image_index, image, password, folder, storage)
|
14378
14378
|
nil
|
14379
14379
|
end
|
@@ -14385,7 +14385,7 @@ module AsposeSlidesCloud
|
|
14385
14385
|
# @param password Document password.
|
14386
14386
|
# @param folder Document folder.
|
14387
14387
|
# @param storage Document storage.
|
14388
|
-
def replace_image_with_http_info(name, image_index, image
|
14388
|
+
def replace_image_with_http_info(name, image_index, image, password = nil, folder = nil, storage = nil)
|
14389
14389
|
if @api_client.config.debugging
|
14390
14390
|
@api_client.config.logger.debug 'Calling API: SlidesApi.replace_image ...'
|
14391
14391
|
end
|
@@ -14398,6 +14398,10 @@ module AsposeSlidesCloud
|
|
14398
14398
|
if @api_client.config.client_side_validation && image_index.nil?
|
14399
14399
|
fail ArgumentError, "Missing the required parameter 'image_index' when calling SlidesApi.replace_image"
|
14400
14400
|
end
|
14401
|
+
# verify the required parameter 'image' is set
|
14402
|
+
if @api_client.config.client_side_validation && image.nil?
|
14403
|
+
fail ArgumentError, "Missing the required parameter 'image' when calling SlidesApi.replace_image"
|
14404
|
+
end
|
14401
14405
|
# resource path
|
14402
14406
|
local_var_path = '/slides/{name}/images/{imageIndex}/replace'
|
14403
14407
|
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
@@ -14439,7 +14443,7 @@ module AsposeSlidesCloud
|
|
14439
14443
|
# @param image_index Image index.
|
14440
14444
|
# @param image Image data.
|
14441
14445
|
# @param password Password.
|
14442
|
-
def replace_image_online(document, image_index, image
|
14446
|
+
def replace_image_online(document, image_index, image, password = nil)
|
14443
14447
|
data, _status_code, _headers = replace_image_online_with_http_info(document, image_index, image, password)
|
14444
14448
|
data
|
14445
14449
|
end
|
@@ -14449,7 +14453,7 @@ module AsposeSlidesCloud
|
|
14449
14453
|
# @param image_index Image index.
|
14450
14454
|
# @param image Image data.
|
14451
14455
|
# @param password Password.
|
14452
|
-
def replace_image_online_with_http_info(document, image_index, image
|
14456
|
+
def replace_image_online_with_http_info(document, image_index, image, password = nil)
|
14453
14457
|
if @api_client.config.debugging
|
14454
14458
|
@api_client.config.logger.debug 'Calling API: SlidesApi.replace_image_online ...'
|
14455
14459
|
end
|
@@ -14462,6 +14466,10 @@ module AsposeSlidesCloud
|
|
14462
14466
|
if @api_client.config.client_side_validation && image_index.nil?
|
14463
14467
|
fail ArgumentError, "Missing the required parameter 'image_index' when calling SlidesApi.replace_image_online"
|
14464
14468
|
end
|
14469
|
+
# verify the required parameter 'image' is set
|
14470
|
+
if @api_client.config.client_side_validation && image.nil?
|
14471
|
+
fail ArgumentError, "Missing the required parameter 'image' when calling SlidesApi.replace_image_online"
|
14472
|
+
end
|
14465
14473
|
# resource path
|
14466
14474
|
local_var_path = '/slides/images/{imageIndex}/replace'
|
14467
14475
|
local_var_path = @api_client.replace_path_parameter(local_var_path, 'imageIndex', image_index)
|
@@ -195,6 +195,86 @@ module AsposeSlidesCloud
|
|
195
195
|
:return_type => 'String')
|
196
196
|
return data, status_code, headers
|
197
197
|
end
|
198
|
+
# @param document Document data.
|
199
|
+
# @param format
|
200
|
+
# @param out_path
|
201
|
+
# @param password
|
202
|
+
# @param storage
|
203
|
+
# @param fonts_folder
|
204
|
+
# @param slides
|
205
|
+
# @param options
|
206
|
+
def start_convert_and_save(document, format, out_path, password = nil, storage = nil, fonts_folder = nil, slides = nil, options = nil)
|
207
|
+
data, _status_code, _headers = start_convert_and_save_with_http_info(document, format, out_path, password, storage, fonts_folder, slides, options)
|
208
|
+
data
|
209
|
+
end
|
210
|
+
|
211
|
+
# @param document Document data.
|
212
|
+
# @param format
|
213
|
+
# @param out_path
|
214
|
+
# @param password
|
215
|
+
# @param storage
|
216
|
+
# @param fonts_folder
|
217
|
+
# @param slides
|
218
|
+
# @param options
|
219
|
+
def start_convert_and_save_with_http_info(document, format, out_path, password = nil, storage = nil, fonts_folder = nil, slides = nil, options = nil)
|
220
|
+
if @api_client.config.debugging
|
221
|
+
@api_client.config.logger.debug 'Calling API: SlidesAsyncApi.start_convert_and_save ...'
|
222
|
+
end
|
223
|
+
|
224
|
+
# verify the required parameter 'document' is set
|
225
|
+
if @api_client.config.client_side_validation && document.nil?
|
226
|
+
fail ArgumentError, "Missing the required parameter 'document' when calling SlidesAsyncApi.start_convert_and_save"
|
227
|
+
end
|
228
|
+
# verify the required parameter 'format' is set
|
229
|
+
if @api_client.config.client_side_validation && format.nil?
|
230
|
+
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_convert_and_save"
|
231
|
+
end
|
232
|
+
# verify enum value
|
233
|
+
if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4'].any?{ |s| s.casecmp(format)==0 }
|
234
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml, Mpeg4"
|
235
|
+
end
|
236
|
+
# verify the required parameter 'out_path' is set
|
237
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
238
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling SlidesAsyncApi.start_convert_and_save"
|
239
|
+
end
|
240
|
+
# resource path
|
241
|
+
local_var_path = '/slides/async/convert/{format}'
|
242
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format)
|
243
|
+
|
244
|
+
# query parameters
|
245
|
+
query_params = {}
|
246
|
+
query_params[:'outPath'] = @api_client.prepare_for_query(out_path) unless out_path.nil?
|
247
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
248
|
+
query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
|
249
|
+
query_params[:'slides'] = @api_client.prepare_for_query(slides) unless slides.nil?
|
250
|
+
|
251
|
+
# header parameters
|
252
|
+
header_params = {}
|
253
|
+
# HTTP header 'Accept' (if needed)
|
254
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
255
|
+
# HTTP header 'Content-Type'
|
256
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
257
|
+
header_params[:'password'] = password unless password.nil?
|
258
|
+
|
259
|
+
# http body (model)
|
260
|
+
post_body = @api_client.object_to_http_body(options)
|
261
|
+
|
262
|
+
# form parameters
|
263
|
+
post_files = []
|
264
|
+
if document
|
265
|
+
post_files = post_files.push(document)
|
266
|
+
end
|
267
|
+
|
268
|
+
auth_names = ['JWT']
|
269
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
270
|
+
:header_params => header_params,
|
271
|
+
:query_params => query_params,
|
272
|
+
:body => post_body,
|
273
|
+
:files => post_files,
|
274
|
+
:auth_names => auth_names,
|
275
|
+
:return_type => 'String')
|
276
|
+
return data, status_code, headers
|
277
|
+
end
|
198
278
|
# @param name
|
199
279
|
# @param format
|
200
280
|
# @param options
|
@@ -269,5 +349,191 @@ module AsposeSlidesCloud
|
|
269
349
|
:return_type => 'String')
|
270
350
|
return data, status_code, headers
|
271
351
|
end
|
352
|
+
# @param files Files to merge
|
353
|
+
# @param request
|
354
|
+
# @param storage
|
355
|
+
def start_merge(files = nil, request = nil, storage = nil)
|
356
|
+
data, _status_code, _headers = start_merge_with_http_info(files, request, storage)
|
357
|
+
data
|
358
|
+
end
|
359
|
+
|
360
|
+
# @param files Files to merge
|
361
|
+
# @param request
|
362
|
+
# @param storage
|
363
|
+
def start_merge_with_http_info(files = nil, request = nil, storage = nil)
|
364
|
+
if @api_client.config.debugging
|
365
|
+
@api_client.config.logger.debug 'Calling API: SlidesAsyncApi.start_merge ...'
|
366
|
+
end
|
367
|
+
|
368
|
+
# resource path
|
369
|
+
local_var_path = '/slides/async/merge'
|
370
|
+
|
371
|
+
# query parameters
|
372
|
+
query_params = {}
|
373
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
374
|
+
|
375
|
+
# header parameters
|
376
|
+
header_params = {}
|
377
|
+
# HTTP header 'Accept' (if needed)
|
378
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
379
|
+
# HTTP header 'Content-Type'
|
380
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
381
|
+
|
382
|
+
# http body (model)
|
383
|
+
post_body = @api_client.object_to_http_body(request)
|
384
|
+
|
385
|
+
# form parameters
|
386
|
+
post_files = []
|
387
|
+
if files
|
388
|
+
post_files = post_files.concat(files)
|
389
|
+
end
|
390
|
+
|
391
|
+
auth_names = ['JWT']
|
392
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
393
|
+
:header_params => header_params,
|
394
|
+
:query_params => query_params,
|
395
|
+
:body => post_body,
|
396
|
+
:files => post_files,
|
397
|
+
:auth_names => auth_names,
|
398
|
+
:return_type => 'String')
|
399
|
+
return data, status_code, headers
|
400
|
+
end
|
401
|
+
# @param out_path
|
402
|
+
# @param files Files to merge
|
403
|
+
# @param request
|
404
|
+
# @param storage
|
405
|
+
def start_merge_and_save(out_path, files = nil, request = nil, storage = nil)
|
406
|
+
data, _status_code, _headers = start_merge_and_save_with_http_info(out_path, files, request, storage)
|
407
|
+
data
|
408
|
+
end
|
409
|
+
|
410
|
+
# @param out_path
|
411
|
+
# @param files Files to merge
|
412
|
+
# @param request
|
413
|
+
# @param storage
|
414
|
+
def start_merge_and_save_with_http_info(out_path, files = nil, request = nil, storage = nil)
|
415
|
+
if @api_client.config.debugging
|
416
|
+
@api_client.config.logger.debug 'Calling API: SlidesAsyncApi.start_merge_and_save ...'
|
417
|
+
end
|
418
|
+
|
419
|
+
# verify the required parameter 'out_path' is set
|
420
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
421
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling SlidesAsyncApi.start_merge_and_save"
|
422
|
+
end
|
423
|
+
# resource path
|
424
|
+
local_var_path = '/slides/async/merge'
|
425
|
+
|
426
|
+
# query parameters
|
427
|
+
query_params = {}
|
428
|
+
query_params[:'outPath'] = @api_client.prepare_for_query(out_path) unless out_path.nil?
|
429
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
430
|
+
|
431
|
+
# header parameters
|
432
|
+
header_params = {}
|
433
|
+
# HTTP header 'Accept' (if needed)
|
434
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
435
|
+
# HTTP header 'Content-Type'
|
436
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
437
|
+
|
438
|
+
# http body (model)
|
439
|
+
post_body = @api_client.object_to_http_body(request)
|
440
|
+
|
441
|
+
# form parameters
|
442
|
+
post_files = []
|
443
|
+
if files
|
444
|
+
post_files = post_files.concat(files)
|
445
|
+
end
|
446
|
+
|
447
|
+
auth_names = ['JWT']
|
448
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
449
|
+
:header_params => header_params,
|
450
|
+
:query_params => query_params,
|
451
|
+
:body => post_body,
|
452
|
+
:files => post_files,
|
453
|
+
:auth_names => auth_names,
|
454
|
+
:return_type => 'String')
|
455
|
+
return data, status_code, headers
|
456
|
+
end
|
457
|
+
# @param name
|
458
|
+
# @param format
|
459
|
+
# @param out_path
|
460
|
+
# @param options
|
461
|
+
# @param password
|
462
|
+
# @param folder
|
463
|
+
# @param storage
|
464
|
+
# @param fonts_folder
|
465
|
+
# @param slides
|
466
|
+
def start_save_presentation(name, format, out_path, options = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, slides = nil)
|
467
|
+
data, _status_code, _headers = start_save_presentation_with_http_info(name, format, out_path, options, password, folder, storage, fonts_folder, slides)
|
468
|
+
data
|
469
|
+
end
|
470
|
+
|
471
|
+
# @param name
|
472
|
+
# @param format
|
473
|
+
# @param out_path
|
474
|
+
# @param options
|
475
|
+
# @param password
|
476
|
+
# @param folder
|
477
|
+
# @param storage
|
478
|
+
# @param fonts_folder
|
479
|
+
# @param slides
|
480
|
+
def start_save_presentation_with_http_info(name, format, out_path, options = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil, slides = nil)
|
481
|
+
if @api_client.config.debugging
|
482
|
+
@api_client.config.logger.debug 'Calling API: SlidesAsyncApi.start_save_presentation ...'
|
483
|
+
end
|
484
|
+
|
485
|
+
# verify the required parameter 'name' is set
|
486
|
+
if @api_client.config.client_side_validation && name.nil?
|
487
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesAsyncApi.start_save_presentation"
|
488
|
+
end
|
489
|
+
# verify the required parameter 'format' is set
|
490
|
+
if @api_client.config.client_side_validation && format.nil?
|
491
|
+
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_save_presentation"
|
492
|
+
end
|
493
|
+
# verify enum value
|
494
|
+
if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4'].any?{ |s| s.casecmp(format)==0 }
|
495
|
+
fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml, Mpeg4"
|
496
|
+
end
|
497
|
+
# verify the required parameter 'out_path' is set
|
498
|
+
if @api_client.config.client_side_validation && out_path.nil?
|
499
|
+
fail ArgumentError, "Missing the required parameter 'out_path' when calling SlidesAsyncApi.start_save_presentation"
|
500
|
+
end
|
501
|
+
# resource path
|
502
|
+
local_var_path = '/slides/async/{name}/{format}'
|
503
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
504
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format)
|
505
|
+
|
506
|
+
# query parameters
|
507
|
+
query_params = {}
|
508
|
+
query_params[:'outPath'] = @api_client.prepare_for_query(out_path) unless out_path.nil?
|
509
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
510
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
511
|
+
query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
|
512
|
+
query_params[:'slides'] = @api_client.prepare_for_query(slides) unless slides.nil?
|
513
|
+
|
514
|
+
# header parameters
|
515
|
+
header_params = {}
|
516
|
+
# HTTP header 'Accept' (if needed)
|
517
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
518
|
+
# HTTP header 'Content-Type'
|
519
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
520
|
+
header_params[:'password'] = password unless password.nil?
|
521
|
+
|
522
|
+
# http body (model)
|
523
|
+
post_body = @api_client.object_to_http_body(options)
|
524
|
+
|
525
|
+
# form parameters
|
526
|
+
post_files = []
|
527
|
+
|
528
|
+
auth_names = ['JWT']
|
529
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
530
|
+
:header_params => header_params,
|
531
|
+
:query_params => query_params,
|
532
|
+
:body => post_body,
|
533
|
+
:files => post_files,
|
534
|
+
:auth_names => auth_names,
|
535
|
+
:return_type => 'String')
|
536
|
+
return data, status_code, headers
|
537
|
+
end
|
272
538
|
end
|
273
539
|
end
|
@@ -30,6 +30,8 @@ module AsposeSlidesCloud
|
|
30
30
|
|
31
31
|
attr_accessor :status
|
32
32
|
|
33
|
+
attr_accessor :progress
|
34
|
+
|
33
35
|
attr_accessor :created
|
34
36
|
|
35
37
|
attr_accessor :enqueued
|
@@ -50,6 +52,7 @@ module AsposeSlidesCloud
|
|
50
52
|
:'id' => :'Id',
|
51
53
|
:'method' => :'Method',
|
52
54
|
:'status' => :'Status',
|
55
|
+
:'progress' => :'Progress',
|
53
56
|
:'created' => :'Created',
|
54
57
|
:'enqueued' => :'Enqueued',
|
55
58
|
:'started' => :'Started',
|
@@ -66,6 +69,7 @@ module AsposeSlidesCloud
|
|
66
69
|
:'id' => :'String',
|
67
70
|
:'method' => :'String',
|
68
71
|
:'status' => :'String',
|
72
|
+
:'progress' => :'OperationProgress',
|
69
73
|
:'created' => :'DateTime',
|
70
74
|
:'enqueued' => :'DateTime',
|
71
75
|
:'started' => :'DateTime',
|
@@ -96,6 +100,10 @@ module AsposeSlidesCloud
|
|
96
100
|
self.status = attributes[:'Status']
|
97
101
|
end
|
98
102
|
|
103
|
+
if attributes.has_key?(:'Progress')
|
104
|
+
self.progress = attributes[:'Progress']
|
105
|
+
end
|
106
|
+
|
99
107
|
if attributes.has_key?(:'Created')
|
100
108
|
self.created = attributes[:'Created']
|
101
109
|
end
|
@@ -149,7 +157,7 @@ module AsposeSlidesCloud
|
|
149
157
|
def valid?
|
150
158
|
return false if @id.nil?
|
151
159
|
return false if @method.nil?
|
152
|
-
method_validator = EnumAttributeValidator.new('String', ['Convert', 'DownloadPresentation'])
|
160
|
+
method_validator = EnumAttributeValidator.new('String', ['Convert', 'DownloadPresentation', 'ConvertAndSave', 'SavePresentation', 'Merge', 'MergeAndSave'])
|
153
161
|
return false unless method_validator.valid?(@method)
|
154
162
|
return false if @status.nil?
|
155
163
|
status_validator = EnumAttributeValidator.new('String', ['Created', 'Enqueued', 'Started', 'Failed', 'Canceled', 'Finished'])
|
@@ -160,7 +168,7 @@ module AsposeSlidesCloud
|
|
160
168
|
# Custom attribute writer method checking allowed values (enum).
|
161
169
|
# @param [Object] method Object to be assigned
|
162
170
|
def method=(method)
|
163
|
-
validator = EnumAttributeValidator.new('String', ['Convert', 'DownloadPresentation'])
|
171
|
+
validator = EnumAttributeValidator.new('String', ['Convert', 'DownloadPresentation', 'ConvertAndSave', 'SavePresentation', 'Merge', 'MergeAndSave'])
|
164
172
|
unless validator.valid?(method)
|
165
173
|
fail ArgumentError, 'invalid value for "method", must be one of #{validator.allowable_values}.'
|
166
174
|
end
|
@@ -185,6 +193,7 @@ module AsposeSlidesCloud
|
|
185
193
|
id == o.id &&
|
186
194
|
method == o.method &&
|
187
195
|
status == o.status &&
|
196
|
+
progress == o.progress &&
|
188
197
|
created == o.created &&
|
189
198
|
enqueued == o.enqueued &&
|
190
199
|
started == o.started &&
|
@@ -203,7 +212,7 @@ module AsposeSlidesCloud
|
|
203
212
|
# Calculates hash code according to all attributes.
|
204
213
|
# @return [Fixnum] Hash code
|
205
214
|
def hash
|
206
|
-
[id, method, status, created, enqueued, started, failed, canceled, finished, error].hash
|
215
|
+
[id, method, status, progress, created, enqueued, started, failed, canceled, finished, error].hash
|
207
216
|
end
|
208
217
|
end
|
209
218
|
end
|
@@ -0,0 +1,121 @@
|
|
1
|
+
=begin
|
2
|
+
Copyright (c) 2019 Aspose Pty Ltd
|
3
|
+
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
6
|
+
in the Software without restriction, including without limitation the rights
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
9
|
+
furnished to do so, subject to the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
12
|
+
copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
20
|
+
SOFTWARE.
|
21
|
+
=end
|
22
|
+
|
23
|
+
require 'date'
|
24
|
+
|
25
|
+
module AsposeSlidesCloud
|
26
|
+
# Operation progress.
|
27
|
+
class OperationProgress < BaseObject
|
28
|
+
# Description.
|
29
|
+
attr_accessor :description
|
30
|
+
|
31
|
+
# Current Step Index.
|
32
|
+
attr_accessor :step_index
|
33
|
+
|
34
|
+
# Current Step Index.
|
35
|
+
attr_accessor :step_count
|
36
|
+
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
+
def self.attribute_map
|
39
|
+
{
|
40
|
+
:'description' => :'Description',
|
41
|
+
:'step_index' => :'StepIndex',
|
42
|
+
:'step_count' => :'StepCount',
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# Attribute type mapping.
|
47
|
+
def self.swagger_types
|
48
|
+
{
|
49
|
+
:'description' => :'String',
|
50
|
+
:'step_index' => :'Integer',
|
51
|
+
:'step_count' => :'Integer',
|
52
|
+
}
|
53
|
+
end
|
54
|
+
|
55
|
+
# Initializes the object
|
56
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
57
|
+
def initialize(attributes = {})
|
58
|
+
return unless attributes.is_a?(Hash)
|
59
|
+
|
60
|
+
# convert string to symbol for hash key
|
61
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
62
|
+
|
63
|
+
if attributes.has_key?(:'Description')
|
64
|
+
self.description = attributes[:'Description']
|
65
|
+
end
|
66
|
+
|
67
|
+
if attributes.has_key?(:'StepIndex')
|
68
|
+
self.step_index = attributes[:'StepIndex']
|
69
|
+
end
|
70
|
+
|
71
|
+
if attributes.has_key?(:'StepCount')
|
72
|
+
self.step_count = attributes[:'StepCount']
|
73
|
+
end
|
74
|
+
end
|
75
|
+
|
76
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
77
|
+
# @return Array for valid properties with the reasons
|
78
|
+
def list_invalid_properties
|
79
|
+
invalid_properties = Array.new
|
80
|
+
if @step_index.nil?
|
81
|
+
invalid_properties.push('invalid value for "step_index", step_index cannot be nil.')
|
82
|
+
end
|
83
|
+
|
84
|
+
if @step_count.nil?
|
85
|
+
invalid_properties.push('invalid value for "step_count", step_count cannot be nil.')
|
86
|
+
end
|
87
|
+
|
88
|
+
invalid_properties
|
89
|
+
end
|
90
|
+
|
91
|
+
# Check to see if the all the properties in the model are valid
|
92
|
+
# @return true if the model is valid
|
93
|
+
def valid?
|
94
|
+
return false if @step_index.nil?
|
95
|
+
return false if @step_count.nil?
|
96
|
+
true
|
97
|
+
end
|
98
|
+
|
99
|
+
# Checks equality by comparing each attribute.
|
100
|
+
# @param [Object] Object to be compared
|
101
|
+
def ==(o)
|
102
|
+
return true if self.equal?(o)
|
103
|
+
self.class == o.class &&
|
104
|
+
description == o.description &&
|
105
|
+
step_index == o.step_index &&
|
106
|
+
step_count == o.step_count
|
107
|
+
end
|
108
|
+
|
109
|
+
# @see the `==` method
|
110
|
+
# @param [Object] Object to be compared
|
111
|
+
def eql?(o)
|
112
|
+
self == o
|
113
|
+
end
|
114
|
+
|
115
|
+
# Calculates hash code according to all attributes.
|
116
|
+
# @return [Fixnum] Hash code
|
117
|
+
def hash
|
118
|
+
[description, step_index, step_count].hash
|
119
|
+
end
|
120
|
+
end
|
121
|
+
end
|
@@ -34,6 +34,9 @@ module AsposeSlidesCloud
|
|
34
34
|
# Specifies if shapes of the master slide should be shown on the slide. True by default.
|
35
35
|
attr_accessor :show_master_shapes
|
36
36
|
|
37
|
+
# Specifies if shapes of the master slide should be shown on the slide. True by default.
|
38
|
+
attr_accessor :slide_show_transition
|
39
|
+
|
37
40
|
# Gets or sets the link to the layout slide.
|
38
41
|
attr_accessor :layout_slide
|
39
42
|
|
@@ -64,6 +67,7 @@ module AsposeSlidesCloud
|
|
64
67
|
:'width' => :'Width',
|
65
68
|
:'height' => :'Height',
|
66
69
|
:'show_master_shapes' => :'ShowMasterShapes',
|
70
|
+
:'slide_show_transition' => :'SlideShowTransition',
|
67
71
|
:'layout_slide' => :'LayoutSlide',
|
68
72
|
:'shapes' => :'Shapes',
|
69
73
|
:'theme' => :'Theme',
|
@@ -81,6 +85,7 @@ module AsposeSlidesCloud
|
|
81
85
|
:'width' => :'Float',
|
82
86
|
:'height' => :'Float',
|
83
87
|
:'show_master_shapes' => :'BOOLEAN',
|
88
|
+
:'slide_show_transition' => :'SlideShowTransition',
|
84
89
|
:'layout_slide' => :'ResourceUri',
|
85
90
|
:'shapes' => :'ResourceUri',
|
86
91
|
:'theme' => :'ResourceUri',
|
@@ -109,6 +114,10 @@ module AsposeSlidesCloud
|
|
109
114
|
self.show_master_shapes = attributes[:'ShowMasterShapes']
|
110
115
|
end
|
111
116
|
|
117
|
+
if attributes.has_key?(:'SlideShowTransition')
|
118
|
+
self.slide_show_transition = attributes[:'SlideShowTransition']
|
119
|
+
end
|
120
|
+
|
112
121
|
if attributes.has_key?(:'LayoutSlide')
|
113
122
|
self.layout_slide = attributes[:'LayoutSlide']
|
114
123
|
end
|
@@ -181,6 +190,7 @@ module AsposeSlidesCloud
|
|
181
190
|
width == o.width &&
|
182
191
|
height == o.height &&
|
183
192
|
show_master_shapes == o.show_master_shapes &&
|
193
|
+
slide_show_transition == o.slide_show_transition &&
|
184
194
|
layout_slide == o.layout_slide &&
|
185
195
|
shapes == o.shapes &&
|
186
196
|
theme == o.theme &&
|
@@ -200,7 +210,7 @@ module AsposeSlidesCloud
|
|
200
210
|
# Calculates hash code according to all attributes.
|
201
211
|
# @return [Fixnum] Hash code
|
202
212
|
def hash
|
203
|
-
[self_uri, alternate_links, width, height, show_master_shapes, layout_slide, shapes, theme, placeholders, images, comments, background, notes_slide].hash
|
213
|
+
[self_uri, alternate_links, width, height, show_master_shapes, slide_show_transition, layout_slide, shapes, theme, placeholders, images, comments, background, notes_slide].hash
|
204
214
|
end
|
205
215
|
end
|
206
216
|
end
|
@@ -81,6 +81,7 @@ module AsposeSlidesCloud
|
|
81
81
|
width == o.width &&
|
82
82
|
height == o.height &&
|
83
83
|
show_master_shapes == o.show_master_shapes &&
|
84
|
+
slide_show_transition == o.slide_show_transition &&
|
84
85
|
layout_slide == o.layout_slide &&
|
85
86
|
shapes == o.shapes &&
|
86
87
|
theme == o.theme &&
|
@@ -101,7 +102,7 @@ module AsposeSlidesCloud
|
|
101
102
|
# Calculates hash code according to all attributes.
|
102
103
|
# @return [Fixnum] Hash code
|
103
104
|
def hash
|
104
|
-
[self_uri, alternate_links, width, height, show_master_shapes, layout_slide, shapes, theme, placeholders, images, comments, background, notes_slide, matches].hash
|
105
|
+
[self_uri, alternate_links, width, height, show_master_shapes, slide_show_transition, layout_slide, shapes, theme, placeholders, images, comments, background, notes_slide, matches].hash
|
105
106
|
end
|
106
107
|
end
|
107
108
|
end
|