aspose_slides_cloud 20.4.0 → 20.5.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,5 +21,5 @@ SOFTWARE.
21
21
  =end
22
22
 
23
23
  module AsposeSlidesCloud
24
- VERSION = '20.4.0'
24
+ VERSION = '20.5.0'
25
25
  end
@@ -13322,6 +13322,284 @@ describe 'SlidesApi' do
13322
13322
  end
13323
13323
  end
13324
13324
 
13325
+ # unit tests for post_get_notes_slide
13326
+ # Read notes slide info.
13327
+ # @param slide_index Slide index.
13328
+ # @param [Hash] opts the optional parameters
13329
+ # @option opts [File] :document Document data.
13330
+ # @option opts [String] :password Document password.
13331
+ # @return [NotesSlide]
13332
+ describe 'post_get_notes_slide test' do
13333
+ it 'should work' do
13334
+ requestParam = AsposeSlidesCloud::PostGetNotesSlideRequest.new
13335
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostGetNotesSlide', 'Integer')
13336
+ requestParam.document = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'PostGetNotesSlide', 'File')
13337
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostGetNotesSlide', 'String')
13338
+ AsposeSlidesCloud::SpecUtils.initialize('PostGetNotesSlide', nil, nil)
13339
+ o, c, _h = AsposeSlidesCloud::SpecUtils.api.post_get_notes_slide_with_http_info(requestParam)
13340
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostGetNotesSlide', nil, nil)
13341
+ expect(c).to eq(code)
13342
+ expect(o).not_to be_nil
13343
+ end
13344
+
13345
+ it 'invalid slide_index' do
13346
+ requestParam = AsposeSlidesCloud::PostGetNotesSlideRequest.new
13347
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostGetNotesSlide', 'Integer')
13348
+ requestParam.document = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'PostGetNotesSlide', 'File')
13349
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostGetNotesSlide', 'String')
13350
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'PostGetNotesSlide', requestParam.slide_index, 'Integer')
13351
+ AsposeSlidesCloud::SpecUtils.initialize('PostGetNotesSlide', 'slideIndex', requestParam.slide_index)
13352
+ begin
13353
+ AsposeSlidesCloud::SpecUtils.api.post_get_notes_slide_with_http_info(requestParam)
13354
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostGetNotesSlide', 'slideIndex')
13355
+ fail "An exception expected"
13356
+ end
13357
+ rescue AsposeSlidesCloud::ApiError => e
13358
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostGetNotesSlide', 'slideIndex', requestParam.slide_index)
13359
+ expect(e.code).to eq(code)
13360
+ expect(e.response_body).to include(message)
13361
+ rescue
13362
+ end
13363
+ end
13364
+
13365
+ it 'invalid document' do
13366
+ requestParam = AsposeSlidesCloud::PostGetNotesSlideRequest.new
13367
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostGetNotesSlide', 'Integer')
13368
+ requestParam.document = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'PostGetNotesSlide', 'File')
13369
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostGetNotesSlide', 'String')
13370
+ requestParam.document = AsposeSlidesCloud::SpecUtils.invalidize_param_value('document', 'PostGetNotesSlide', requestParam.document, 'File')
13371
+ AsposeSlidesCloud::SpecUtils.initialize('PostGetNotesSlide', 'document', requestParam.document)
13372
+ begin
13373
+ AsposeSlidesCloud::SpecUtils.api.post_get_notes_slide_with_http_info(requestParam)
13374
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostGetNotesSlide', 'document')
13375
+ fail "An exception expected"
13376
+ end
13377
+ rescue AsposeSlidesCloud::ApiError => e
13378
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostGetNotesSlide', 'document', requestParam.document)
13379
+ expect(e.code).to eq(code)
13380
+ expect(e.response_body).to include(message)
13381
+ rescue
13382
+ end
13383
+ end
13384
+
13385
+ it 'invalid password' do
13386
+ requestParam = AsposeSlidesCloud::PostGetNotesSlideRequest.new
13387
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostGetNotesSlide', 'Integer')
13388
+ requestParam.document = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'PostGetNotesSlide', 'File')
13389
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostGetNotesSlide', 'String')
13390
+ requestParam.password = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'PostGetNotesSlide', requestParam.password, 'String')
13391
+ AsposeSlidesCloud::SpecUtils.initialize('PostGetNotesSlide', 'password', requestParam.password)
13392
+ begin
13393
+ AsposeSlidesCloud::SpecUtils.api.post_get_notes_slide_with_http_info(requestParam)
13394
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostGetNotesSlide', 'password')
13395
+ fail "An exception expected"
13396
+ end
13397
+ rescue AsposeSlidesCloud::ApiError => e
13398
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostGetNotesSlide', 'password', requestParam.password)
13399
+ expect(e.code).to eq(code)
13400
+ expect(e.response_body).to include(message)
13401
+ rescue
13402
+ end
13403
+ end
13404
+ end
13405
+
13406
+ # unit tests for post_get_notes_slide_with_format
13407
+ # Convert notes slide to the specified image format.
13408
+ # @param slide_index Slide index.
13409
+ # @param format Output file format.
13410
+ # @param [Hash] opts the optional parameters
13411
+ # @option opts [File] :document Document data.
13412
+ # @option opts [Integer] :width Output file width.
13413
+ # @option opts [Integer] :height Output file height.
13414
+ # @option opts [String] :password Document password.
13415
+ # @option opts [String] :fonts_folder Storage folder containing custom fonts to be used with the document.
13416
+ # @return [File]
13417
+ describe 'post_get_notes_slide_with_format test' do
13418
+ it 'should work' do
13419
+ requestParam = AsposeSlidesCloud::PostGetNotesSlideWithFormatRequest.new
13420
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostGetNotesSlideWithFormat', 'Integer')
13421
+ requestParam.format = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'PostGetNotesSlideWithFormat', 'String')
13422
+ requestParam.document = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'PostGetNotesSlideWithFormat', 'File')
13423
+ requestParam.width = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'PostGetNotesSlideWithFormat', 'Integer')
13424
+ requestParam.height = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'PostGetNotesSlideWithFormat', 'Integer')
13425
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostGetNotesSlideWithFormat', 'String')
13426
+ requestParam.fonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'PostGetNotesSlideWithFormat', 'String')
13427
+ AsposeSlidesCloud::SpecUtils.initialize('PostGetNotesSlideWithFormat', nil, nil)
13428
+ o, c, _h = AsposeSlidesCloud::SpecUtils.api.post_get_notes_slide_with_format_with_http_info(requestParam)
13429
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostGetNotesSlideWithFormat', nil, nil)
13430
+ expect(c).to eq(code)
13431
+ expect(o).not_to be_nil
13432
+ end
13433
+
13434
+ it 'invalid slide_index' do
13435
+ requestParam = AsposeSlidesCloud::PostGetNotesSlideWithFormatRequest.new
13436
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostGetNotesSlideWithFormat', 'Integer')
13437
+ requestParam.format = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'PostGetNotesSlideWithFormat', 'String')
13438
+ requestParam.document = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'PostGetNotesSlideWithFormat', 'File')
13439
+ requestParam.width = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'PostGetNotesSlideWithFormat', 'Integer')
13440
+ requestParam.height = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'PostGetNotesSlideWithFormat', 'Integer')
13441
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostGetNotesSlideWithFormat', 'String')
13442
+ requestParam.fonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'PostGetNotesSlideWithFormat', 'String')
13443
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'PostGetNotesSlideWithFormat', requestParam.slide_index, 'Integer')
13444
+ AsposeSlidesCloud::SpecUtils.initialize('PostGetNotesSlideWithFormat', 'slideIndex', requestParam.slide_index)
13445
+ begin
13446
+ AsposeSlidesCloud::SpecUtils.api.post_get_notes_slide_with_format_with_http_info(requestParam)
13447
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostGetNotesSlideWithFormat', 'slideIndex')
13448
+ fail "An exception expected"
13449
+ end
13450
+ rescue AsposeSlidesCloud::ApiError => e
13451
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostGetNotesSlideWithFormat', 'slideIndex', requestParam.slide_index)
13452
+ expect(e.code).to eq(code)
13453
+ expect(e.response_body).to include(message)
13454
+ rescue
13455
+ end
13456
+ end
13457
+
13458
+ it 'invalid format' do
13459
+ requestParam = AsposeSlidesCloud::PostGetNotesSlideWithFormatRequest.new
13460
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostGetNotesSlideWithFormat', 'Integer')
13461
+ requestParam.format = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'PostGetNotesSlideWithFormat', 'String')
13462
+ requestParam.document = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'PostGetNotesSlideWithFormat', 'File')
13463
+ requestParam.width = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'PostGetNotesSlideWithFormat', 'Integer')
13464
+ requestParam.height = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'PostGetNotesSlideWithFormat', 'Integer')
13465
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostGetNotesSlideWithFormat', 'String')
13466
+ requestParam.fonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'PostGetNotesSlideWithFormat', 'String')
13467
+ requestParam.format = AsposeSlidesCloud::SpecUtils.invalidize_param_value('format', 'PostGetNotesSlideWithFormat', requestParam.format, 'String')
13468
+ AsposeSlidesCloud::SpecUtils.initialize('PostGetNotesSlideWithFormat', 'format', requestParam.format)
13469
+ begin
13470
+ AsposeSlidesCloud::SpecUtils.api.post_get_notes_slide_with_format_with_http_info(requestParam)
13471
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostGetNotesSlideWithFormat', 'format')
13472
+ fail "An exception expected"
13473
+ end
13474
+ rescue AsposeSlidesCloud::ApiError => e
13475
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostGetNotesSlideWithFormat', 'format', requestParam.format)
13476
+ expect(e.code).to eq(code)
13477
+ expect(e.response_body).to include(message)
13478
+ rescue
13479
+ end
13480
+ end
13481
+
13482
+ it 'invalid document' do
13483
+ requestParam = AsposeSlidesCloud::PostGetNotesSlideWithFormatRequest.new
13484
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostGetNotesSlideWithFormat', 'Integer')
13485
+ requestParam.format = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'PostGetNotesSlideWithFormat', 'String')
13486
+ requestParam.document = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'PostGetNotesSlideWithFormat', 'File')
13487
+ requestParam.width = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'PostGetNotesSlideWithFormat', 'Integer')
13488
+ requestParam.height = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'PostGetNotesSlideWithFormat', 'Integer')
13489
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostGetNotesSlideWithFormat', 'String')
13490
+ requestParam.fonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'PostGetNotesSlideWithFormat', 'String')
13491
+ requestParam.document = AsposeSlidesCloud::SpecUtils.invalidize_param_value('document', 'PostGetNotesSlideWithFormat', requestParam.document, 'File')
13492
+ AsposeSlidesCloud::SpecUtils.initialize('PostGetNotesSlideWithFormat', 'document', requestParam.document)
13493
+ begin
13494
+ AsposeSlidesCloud::SpecUtils.api.post_get_notes_slide_with_format_with_http_info(requestParam)
13495
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostGetNotesSlideWithFormat', 'document')
13496
+ fail "An exception expected"
13497
+ end
13498
+ rescue AsposeSlidesCloud::ApiError => e
13499
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostGetNotesSlideWithFormat', 'document', requestParam.document)
13500
+ expect(e.code).to eq(code)
13501
+ expect(e.response_body).to include(message)
13502
+ rescue
13503
+ end
13504
+ end
13505
+
13506
+ it 'invalid width' do
13507
+ requestParam = AsposeSlidesCloud::PostGetNotesSlideWithFormatRequest.new
13508
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostGetNotesSlideWithFormat', 'Integer')
13509
+ requestParam.format = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'PostGetNotesSlideWithFormat', 'String')
13510
+ requestParam.document = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'PostGetNotesSlideWithFormat', 'File')
13511
+ requestParam.width = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'PostGetNotesSlideWithFormat', 'Integer')
13512
+ requestParam.height = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'PostGetNotesSlideWithFormat', 'Integer')
13513
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostGetNotesSlideWithFormat', 'String')
13514
+ requestParam.fonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'PostGetNotesSlideWithFormat', 'String')
13515
+ requestParam.width = AsposeSlidesCloud::SpecUtils.invalidize_param_value('width', 'PostGetNotesSlideWithFormat', requestParam.width, 'Integer')
13516
+ AsposeSlidesCloud::SpecUtils.initialize('PostGetNotesSlideWithFormat', 'width', requestParam.width)
13517
+ begin
13518
+ AsposeSlidesCloud::SpecUtils.api.post_get_notes_slide_with_format_with_http_info(requestParam)
13519
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostGetNotesSlideWithFormat', 'width')
13520
+ fail "An exception expected"
13521
+ end
13522
+ rescue AsposeSlidesCloud::ApiError => e
13523
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostGetNotesSlideWithFormat', 'width', requestParam.width)
13524
+ expect(e.code).to eq(code)
13525
+ expect(e.response_body).to include(message)
13526
+ rescue
13527
+ end
13528
+ end
13529
+
13530
+ it 'invalid height' do
13531
+ requestParam = AsposeSlidesCloud::PostGetNotesSlideWithFormatRequest.new
13532
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostGetNotesSlideWithFormat', 'Integer')
13533
+ requestParam.format = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'PostGetNotesSlideWithFormat', 'String')
13534
+ requestParam.document = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'PostGetNotesSlideWithFormat', 'File')
13535
+ requestParam.width = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'PostGetNotesSlideWithFormat', 'Integer')
13536
+ requestParam.height = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'PostGetNotesSlideWithFormat', 'Integer')
13537
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostGetNotesSlideWithFormat', 'String')
13538
+ requestParam.fonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'PostGetNotesSlideWithFormat', 'String')
13539
+ requestParam.height = AsposeSlidesCloud::SpecUtils.invalidize_param_value('height', 'PostGetNotesSlideWithFormat', requestParam.height, 'Integer')
13540
+ AsposeSlidesCloud::SpecUtils.initialize('PostGetNotesSlideWithFormat', 'height', requestParam.height)
13541
+ begin
13542
+ AsposeSlidesCloud::SpecUtils.api.post_get_notes_slide_with_format_with_http_info(requestParam)
13543
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostGetNotesSlideWithFormat', 'height')
13544
+ fail "An exception expected"
13545
+ end
13546
+ rescue AsposeSlidesCloud::ApiError => e
13547
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostGetNotesSlideWithFormat', 'height', requestParam.height)
13548
+ expect(e.code).to eq(code)
13549
+ expect(e.response_body).to include(message)
13550
+ rescue
13551
+ end
13552
+ end
13553
+
13554
+ it 'invalid password' do
13555
+ requestParam = AsposeSlidesCloud::PostGetNotesSlideWithFormatRequest.new
13556
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostGetNotesSlideWithFormat', 'Integer')
13557
+ requestParam.format = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'PostGetNotesSlideWithFormat', 'String')
13558
+ requestParam.document = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'PostGetNotesSlideWithFormat', 'File')
13559
+ requestParam.width = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'PostGetNotesSlideWithFormat', 'Integer')
13560
+ requestParam.height = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'PostGetNotesSlideWithFormat', 'Integer')
13561
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostGetNotesSlideWithFormat', 'String')
13562
+ requestParam.fonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'PostGetNotesSlideWithFormat', 'String')
13563
+ requestParam.password = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'PostGetNotesSlideWithFormat', requestParam.password, 'String')
13564
+ AsposeSlidesCloud::SpecUtils.initialize('PostGetNotesSlideWithFormat', 'password', requestParam.password)
13565
+ begin
13566
+ AsposeSlidesCloud::SpecUtils.api.post_get_notes_slide_with_format_with_http_info(requestParam)
13567
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostGetNotesSlideWithFormat', 'password')
13568
+ fail "An exception expected"
13569
+ end
13570
+ rescue AsposeSlidesCloud::ApiError => e
13571
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostGetNotesSlideWithFormat', 'password', requestParam.password)
13572
+ expect(e.code).to eq(code)
13573
+ expect(e.response_body).to include(message)
13574
+ rescue
13575
+ end
13576
+ end
13577
+
13578
+ it 'invalid fonts_folder' do
13579
+ requestParam = AsposeSlidesCloud::PostGetNotesSlideWithFormatRequest.new
13580
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostGetNotesSlideWithFormat', 'Integer')
13581
+ requestParam.format = AsposeSlidesCloud::SpecUtils.get_param_value('format', 'PostGetNotesSlideWithFormat', 'String')
13582
+ requestParam.document = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'PostGetNotesSlideWithFormat', 'File')
13583
+ requestParam.width = AsposeSlidesCloud::SpecUtils.get_param_value('width', 'PostGetNotesSlideWithFormat', 'Integer')
13584
+ requestParam.height = AsposeSlidesCloud::SpecUtils.get_param_value('height', 'PostGetNotesSlideWithFormat', 'Integer')
13585
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostGetNotesSlideWithFormat', 'String')
13586
+ requestParam.fonts_folder = AsposeSlidesCloud::SpecUtils.get_param_value('fontsFolder', 'PostGetNotesSlideWithFormat', 'String')
13587
+ requestParam.fonts_folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('fontsFolder', 'PostGetNotesSlideWithFormat', requestParam.fonts_folder, 'String')
13588
+ AsposeSlidesCloud::SpecUtils.initialize('PostGetNotesSlideWithFormat', 'fontsFolder', requestParam.fonts_folder)
13589
+ begin
13590
+ AsposeSlidesCloud::SpecUtils.api.post_get_notes_slide_with_format_with_http_info(requestParam)
13591
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostGetNotesSlideWithFormat', 'fontsFolder')
13592
+ fail "An exception expected"
13593
+ end
13594
+ rescue AsposeSlidesCloud::ApiError => e
13595
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostGetNotesSlideWithFormat', 'fontsFolder', requestParam.fonts_folder)
13596
+ expect(e.code).to eq(code)
13597
+ expect(e.response_body).to include(message)
13598
+ rescue
13599
+ end
13600
+ end
13601
+ end
13602
+
13325
13603
  # unit tests for post_notes_slide_add_new_paragraph
13326
13604
  # Creates new paragraph.
13327
13605
  # @param name Document name.
@@ -23216,7 +23494,7 @@ describe 'SlidesApi' do
23216
23494
  # @option opts [String] :password Document password.
23217
23495
  # @option opts [String] :folder Document folder.
23218
23496
  # @option opts [String] :storage Document storage.
23219
- # @return [DocumentProperty]
23497
+ # @return [ViewProperties]
23220
23498
  describe 'put_slides_view_properties test' do
23221
23499
  it 'should work' do
23222
23500
  requestParam = AsposeSlidesCloud::PutSlidesViewPropertiesRequest.new
@@ -24348,6 +24626,7 @@ describe 'SlidesApi' do
24348
24626
 
24349
24627
  # unit tests for upload_file
24350
24628
  # Upload file
24629
+ # @param file File to upload
24351
24630
  # @param [Hash] opts the optional parameters
24352
24631
  # @option opts [String] :path Path where to upload including filename and extension e.g. /file.ext or /Folder 1/file.ext If the content is multipart and path does not contains the file name it tries to get them from filename parameter from Content-Disposition header.
24353
24632
  # @option opts [String] :storage_name Storage name
@@ -24355,6 +24634,7 @@ describe 'SlidesApi' do
24355
24634
  describe 'upload_file test' do
24356
24635
  it 'should work' do
24357
24636
  requestParam = AsposeSlidesCloud::UploadFileRequest.new
24637
+ requestParam.file = AsposeSlidesCloud::SpecUtils.get_param_value('file', 'UploadFile', 'File')
24358
24638
  requestParam.path = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'UploadFile', 'String')
24359
24639
  requestParam.storage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'UploadFile', 'String')
24360
24640
  AsposeSlidesCloud::SpecUtils.initialize('UploadFile', nil, nil)
@@ -24364,8 +24644,29 @@ describe 'SlidesApi' do
24364
24644
  expect(o).not_to be_nil
24365
24645
  end
24366
24646
 
24647
+ it 'invalid file' do
24648
+ requestParam = AsposeSlidesCloud::UploadFileRequest.new
24649
+ requestParam.file = AsposeSlidesCloud::SpecUtils.get_param_value('file', 'UploadFile', 'File')
24650
+ requestParam.path = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'UploadFile', 'String')
24651
+ requestParam.storage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'UploadFile', 'String')
24652
+ requestParam.file = AsposeSlidesCloud::SpecUtils.invalidize_param_value('file', 'UploadFile', requestParam.file, 'File')
24653
+ AsposeSlidesCloud::SpecUtils.initialize('UploadFile', 'file', requestParam.file)
24654
+ begin
24655
+ AsposeSlidesCloud::SpecUtils.api.upload_file_with_http_info(requestParam)
24656
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('UploadFile', 'file')
24657
+ fail "An exception expected"
24658
+ end
24659
+ rescue AsposeSlidesCloud::ApiError => e
24660
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('UploadFile', 'file', requestParam.file)
24661
+ expect(e.code).to eq(code)
24662
+ expect(e.response_body).to include(message)
24663
+ rescue
24664
+ end
24665
+ end
24666
+
24367
24667
  it 'invalid path' do
24368
24668
  requestParam = AsposeSlidesCloud::UploadFileRequest.new
24669
+ requestParam.file = AsposeSlidesCloud::SpecUtils.get_param_value('file', 'UploadFile', 'File')
24369
24670
  requestParam.path = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'UploadFile', 'String')
24370
24671
  requestParam.storage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'UploadFile', 'String')
24371
24672
  requestParam.path = AsposeSlidesCloud::SpecUtils.invalidize_param_value('path', 'UploadFile', requestParam.path, 'String')
@@ -24385,6 +24686,7 @@ describe 'SlidesApi' do
24385
24686
 
24386
24687
  it 'invalid storage_name' do
24387
24688
  requestParam = AsposeSlidesCloud::UploadFileRequest.new
24689
+ requestParam.file = AsposeSlidesCloud::SpecUtils.get_param_value('file', 'UploadFile', 'File')
24388
24690
  requestParam.path = AsposeSlidesCloud::SpecUtils.get_param_value('path', 'UploadFile', 'String')
24389
24691
  requestParam.storage_name = AsposeSlidesCloud::SpecUtils.get_param_value('storageName', 'UploadFile', 'String')
24390
24692
  requestParam.storage_name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storageName', 'UploadFile', requestParam.storage_name, 'String')
@@ -110,6 +110,7 @@
110
110
  "Type": "Shape",
111
111
  "Parameter": "DTO"
112
112
  },
113
+ { "Value": {}, "InvalidValue": null, "Type": "ViewProperties", "Parameter": "DTO", "Method": "PutSlidesViewProperties" },
113
114
  { "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PostAddNewPortion" },
114
115
  { "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PostNotesSlideAddNewPortion" },
115
116
  { "Value": { "Text": "testPortion" }, "InvalidValue": null, "Type": "Portion", "Parameter": "DTO", "Method": "PutSetParagraphPortionProperties" },
@@ -126,8 +127,10 @@
126
127
  { "Value": "pdf", "Parameter": "Format" },
127
128
  { "InvalidValue": "svg", "Parameter": "Format", "Language": "NET" },
128
129
  { "InvalidValue": "gif", "Parameter": "Format", "Method": "GetNotesSlideWithFormat", "Language": "NET" },
130
+ { "InvalidValue": "gif", "Parameter": "Format", "Method": "PostGetNotesSlideWithFormat", "Language": "NET" },
129
131
  { "InvalidValue": "gif", "Parameter": "Format", "Method": "GetSlidesImageWithFormat", "Language": "NET" },
130
132
  { "Value": "png", "Parameter": "Format", "Method": "GetNotesSlideWithFormat" },
133
+ { "Value": "png", "Parameter": "Format", "Method": "PostGetNotesSlideWithFormat" },
131
134
  { "Value": "png", "Parameter": "Format", "Method": "GetShapeWithFormat" },
132
135
  { "Value": "png", "Parameter": "Format", "Method": "PostShapeSaveAs" },
133
136
  { "Value": "png", "Parameter": "Format", "Method": "PutShapeSaveAs" },
@@ -199,6 +202,7 @@
199
202
  { "Parameter": "Effect", "Language": "Swift" },
200
203
  { "Parameter": "Sequence", "Language": "Swift" },
201
204
  { "Parameter": "Pipeline", "Language": "Swift" },
205
+ { "Parameter": "Properties", "Language": "Swift" },
202
206
  { "Parameter": "Position", "Method": "PostSlidesReorderPosition" },
203
207
  { "Parameter": "Name", "Method": "PostSlidesDocument" },
204
208
  { "Parameter": "Name", "Method": "PostSlidesDocumentFromHtml" },
@@ -320,6 +324,7 @@
320
324
  { "Message": "Can't read MSCDFileSystem.", "Parameter": "Data", "Language": "Python", "Method": "PostSlidesDocument" },
321
325
  { "Message": "Can't read MSCDFileSystem.", "Parameter": "Document" },
322
326
  { "Message": "The stream is empty.", "Parameter": "Document", "Language": "NodeJS" },
327
+ { "Message": "The stream is empty.", "Parameter": "Document", "Language": "PHP" },
323
328
  { "Message": "The stream is empty.", "Parameter": "Document", "Language": "Python" },
324
329
  { "Message": "The stream is empty.", "Parameter": "Document", "Language": "Go" },
325
330
  { "Message": "The stream is empty.", "Parameter": "Document", "Language": "Ruby" },
@@ -333,6 +338,7 @@
333
338
  { "Message": " DTO expected.", "Parameter": "Sequence" },
334
339
  { "Message": " DTO expected.", "Parameter": "Effect" },
335
340
  { "Message": " DTO expected.", "Parameter": "Request" },
341
+ { "Message": "Layout slide DTO must be not null and contain", "Parameter": "SlideDTO", "Language": "Swift" },
336
342
  { "Message": "Object reference not set to an instance of an object.", "Parameter": "Bounds" },
337
343
  { "Code": 409, "Message": " is not empty.", "Parameter": "Recursive" },
338
344
  { "Message": "An error has occurred.", "Code": 500, "Parameter": "Options" },
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspose_slides_cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 20.4.0
4
+ version: 20.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Putrov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-21 00:00:00.000000000 Z
11
+ date: 2020-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday
@@ -225,12 +225,15 @@ files:
225
225
  - lib/aspose_slides_cloud/models/axis.rb
226
226
  - lib/aspose_slides_cloud/models/base64_input_file.rb
227
227
  - lib/aspose_slides_cloud/models/blur_effect.rb
228
+ - lib/aspose_slides_cloud/models/box_and_whisker_series.rb
228
229
  - lib/aspose_slides_cloud/models/bubble_chart_data_point.rb
229
230
  - lib/aspose_slides_cloud/models/bubble_series.rb
230
231
  - lib/aspose_slides_cloud/models/chart.rb
232
+ - lib/aspose_slides_cloud/models/chart_category.rb
231
233
  - lib/aspose_slides_cloud/models/chart_title.rb
232
234
  - lib/aspose_slides_cloud/models/chart_wall.rb
233
235
  - lib/aspose_slides_cloud/models/color_scheme.rb
236
+ - lib/aspose_slides_cloud/models/common_slide_view_properties.rb
234
237
  - lib/aspose_slides_cloud/models/connector.rb
235
238
  - lib/aspose_slides_cloud/models/custom_dash_pattern.rb
236
239
  - lib/aspose_slides_cloud/models/disc_usage.rb
@@ -278,6 +281,7 @@ files:
278
281
  - lib/aspose_slides_cloud/models/merge.rb
279
282
  - lib/aspose_slides_cloud/models/merging_source.rb
280
283
  - lib/aspose_slides_cloud/models/no_fill.rb
284
+ - lib/aspose_slides_cloud/models/normal_view_restored_properties.rb
281
285
  - lib/aspose_slides_cloud/models/notes_slide.rb
282
286
  - lib/aspose_slides_cloud/models/notes_slide_export_format.rb
283
287
  - lib/aspose_slides_cloud/models/object_exist.rb
@@ -361,6 +365,8 @@ files:
361
365
  - lib/aspose_slides_cloud/models/update_background.rb
362
366
  - lib/aspose_slides_cloud/models/update_shape.rb
363
367
  - lib/aspose_slides_cloud/models/video_frame.rb
368
+ - lib/aspose_slides_cloud/models/view_properties.rb
369
+ - lib/aspose_slides_cloud/models/waterfall_series.rb
364
370
  - lib/aspose_slides_cloud/models/xps_export_options.rb
365
371
  - lib/aspose_slides_cloud/version.rb
366
372
  - spec/api/slides_api_spec.rb