aspose_slides_cloud 20.7.0 → 20.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (159) hide show
  1. checksums.yaml +4 -4
  2. data/TestData/ChartTest.pptx +0 -0
  3. data/lib/aspose_slides_cloud.rb +5 -3
  4. data/lib/aspose_slides_cloud/api/slides_api.rb +407 -0
  5. data/lib/aspose_slides_cloud/api/slides_api_requests.rb +165 -0
  6. data/lib/aspose_slides_cloud/api_client.rb +1 -2
  7. data/lib/aspose_slides_cloud/models/add_layout_slide.rb +11 -40
  8. data/lib/aspose_slides_cloud/models/add_master_slide.rb +11 -40
  9. data/lib/aspose_slides_cloud/models/add_shape.rb +11 -40
  10. data/lib/aspose_slides_cloud/models/add_slide.rb +11 -40
  11. data/lib/aspose_slides_cloud/models/api_info.rb +2 -2
  12. data/lib/aspose_slides_cloud/models/arrow_head_properties.rb +2 -2
  13. data/lib/aspose_slides_cloud/models/audio_frame.rb +12 -236
  14. data/lib/aspose_slides_cloud/models/axes.rb +2 -2
  15. data/lib/aspose_slides_cloud/models/axis.rb +2 -2
  16. data/lib/aspose_slides_cloud/models/base64_input_file.rb +11 -49
  17. data/lib/aspose_slides_cloud/models/blur_effect.rb +2 -2
  18. data/lib/aspose_slides_cloud/models/box_and_whisker_series.rb +11 -216
  19. data/lib/aspose_slides_cloud/models/bubble_chart_data_point.rb +10 -40
  20. data/lib/aspose_slides_cloud/models/bubble_series.rb +11 -205
  21. data/lib/aspose_slides_cloud/models/chart.rb +12 -210
  22. data/lib/aspose_slides_cloud/models/chart_category.rb +16 -4
  23. data/lib/aspose_slides_cloud/models/chart_title.rb +2 -2
  24. data/lib/aspose_slides_cloud/models/chart_wall.rb +2 -2
  25. data/lib/aspose_slides_cloud/models/color_scheme.rb +10 -32
  26. data/lib/aspose_slides_cloud/models/common_slide_view_properties.rb +2 -2
  27. data/lib/aspose_slides_cloud/models/connector.rb +11 -234
  28. data/lib/aspose_slides_cloud/models/custom_dash_pattern.rb +2 -2
  29. data/lib/aspose_slides_cloud/models/disc_usage.rb +2 -2
  30. data/lib/aspose_slides_cloud/models/document.rb +10 -32
  31. data/lib/aspose_slides_cloud/models/document_properties.rb +10 -32
  32. data/lib/aspose_slides_cloud/models/document_property.rb +10 -32
  33. data/lib/aspose_slides_cloud/models/document_replace_result.rb +10 -86
  34. data/lib/aspose_slides_cloud/models/effect.rb +2 -2
  35. data/lib/aspose_slides_cloud/models/effect_format.rb +2 -2
  36. data/lib/aspose_slides_cloud/models/entity_exists.rb +2 -2
  37. data/lib/aspose_slides_cloud/models/error.rb +2 -2
  38. data/lib/aspose_slides_cloud/models/error_details.rb +2 -2
  39. data/lib/aspose_slides_cloud/models/export_options.rb +13 -3
  40. data/lib/aspose_slides_cloud/models/file_version.rb +10 -67
  41. data/lib/aspose_slides_cloud/models/file_versions.rb +2 -2
  42. data/lib/aspose_slides_cloud/models/files_list.rb +2 -2
  43. data/lib/aspose_slides_cloud/models/files_upload_result.rb +2 -2
  44. data/lib/aspose_slides_cloud/models/fill_format.rb +2 -2
  45. data/lib/aspose_slides_cloud/models/fill_overlay_effect.rb +2 -2
  46. data/lib/aspose_slides_cloud/models/font_scheme.rb +10 -32
  47. data/lib/aspose_slides_cloud/models/font_set.rb +2 -2
  48. data/lib/aspose_slides_cloud/models/format_scheme.rb +10 -32
  49. data/lib/aspose_slides_cloud/models/geometry_shape.rb +10 -200
  50. data/lib/aspose_slides_cloud/models/glow_effect.rb +2 -2
  51. data/lib/aspose_slides_cloud/models/gradient_fill.rb +11 -40
  52. data/lib/aspose_slides_cloud/models/gradient_fill_stop.rb +2 -2
  53. data/lib/aspose_slides_cloud/models/graphical_object.rb +11 -209
  54. data/lib/aspose_slides_cloud/models/group_shape.rb +11 -209
  55. data/lib/aspose_slides_cloud/models/html_export_options.rb +13 -24
  56. data/lib/aspose_slides_cloud/models/i_shape_export_options.rb +2 -2
  57. data/lib/aspose_slides_cloud/models/image.rb +10 -32
  58. data/lib/aspose_slides_cloud/models/image_export_options.rb +13 -24
  59. data/lib/aspose_slides_cloud/models/images.rb +10 -32
  60. data/lib/aspose_slides_cloud/models/inner_shadow_effect.rb +2 -2
  61. data/lib/aspose_slides_cloud/models/input.rb +2 -2
  62. data/lib/aspose_slides_cloud/models/input_file.rb +2 -2
  63. data/lib/aspose_slides_cloud/models/interactive_sequence.rb +2 -2
  64. data/lib/aspose_slides_cloud/models/layout_slide.rb +10 -32
  65. data/lib/aspose_slides_cloud/models/layout_slides.rb +10 -32
  66. data/lib/aspose_slides_cloud/models/legend.rb +2 -2
  67. data/lib/aspose_slides_cloud/models/line_format.rb +2 -2
  68. data/lib/aspose_slides_cloud/models/master_slide.rb +10 -32
  69. data/lib/aspose_slides_cloud/models/master_slides.rb +10 -32
  70. data/lib/aspose_slides_cloud/models/merge.rb +11 -40
  71. data/lib/aspose_slides_cloud/models/merging_source.rb +2 -2
  72. data/lib/aspose_slides_cloud/models/no_fill.rb +9 -38
  73. data/lib/aspose_slides_cloud/models/normal_view_restored_properties.rb +2 -2
  74. data/lib/aspose_slides_cloud/models/notes_slide.rb +10 -32
  75. data/lib/aspose_slides_cloud/models/object_exist.rb +2 -2
  76. data/lib/aspose_slides_cloud/models/ole_object_frame.rb +12 -210
  77. data/lib/aspose_slides_cloud/models/one_value_chart_data_point.rb +10 -12
  78. data/lib/aspose_slides_cloud/models/one_value_series.rb +11 -205
  79. data/lib/aspose_slides_cloud/models/ordered_merge_request.rb +2 -2
  80. data/lib/aspose_slides_cloud/models/outer_shadow_effect.rb +2 -2
  81. data/lib/aspose_slides_cloud/models/output_file.rb +2 -2
  82. data/lib/aspose_slides_cloud/models/paragraph.rb +10 -32
  83. data/lib/aspose_slides_cloud/models/paragraphs.rb +10 -32
  84. data/lib/aspose_slides_cloud/models/path_input_file.rb +11 -49
  85. data/lib/aspose_slides_cloud/models/path_output_file.rb +11 -40
  86. data/lib/aspose_slides_cloud/models/pattern_fill.rb +11 -40
  87. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +13 -24
  88. data/lib/aspose_slides_cloud/models/picture_fill.rb +11 -40
  89. data/lib/aspose_slides_cloud/models/picture_frame.rb +12 -236
  90. data/lib/aspose_slides_cloud/models/pipeline.rb +2 -2
  91. data/lib/aspose_slides_cloud/models/placeholder.rb +10 -32
  92. data/lib/aspose_slides_cloud/models/placeholders.rb +10 -32
  93. data/lib/aspose_slides_cloud/models/plot_area.rb +2 -2
  94. data/lib/aspose_slides_cloud/models/portion.rb +10 -32
  95. data/lib/aspose_slides_cloud/models/portions.rb +10 -32
  96. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +13 -24
  97. data/lib/aspose_slides_cloud/models/presentation_to_merge.rb +2 -2
  98. data/lib/aspose_slides_cloud/models/presentations_merge_request.rb +2 -2
  99. data/lib/aspose_slides_cloud/models/preset_shadow_effect.rb +2 -2
  100. data/lib/aspose_slides_cloud/models/reflection_effect.rb +2 -2
  101. data/lib/aspose_slides_cloud/models/remove_shape.rb +11 -40
  102. data/lib/aspose_slides_cloud/models/remove_slide.rb +11 -40
  103. data/lib/aspose_slides_cloud/models/reorder_slide.rb +11 -40
  104. data/lib/aspose_slides_cloud/models/replace_text.rb +11 -40
  105. data/lib/aspose_slides_cloud/models/request_input_file.rb +11 -49
  106. data/lib/aspose_slides_cloud/models/reset_slide.rb +11 -40
  107. data/lib/aspose_slides_cloud/models/resource_base.rb +2 -2
  108. data/lib/aspose_slides_cloud/models/resource_uri.rb +2 -2
  109. data/lib/aspose_slides_cloud/models/resource_uri_element.rb +2 -2
  110. data/lib/aspose_slides_cloud/models/response_output_file.rb +9 -38
  111. data/lib/aspose_slides_cloud/models/save.rb +11 -40
  112. data/lib/aspose_slides_cloud/models/save_shape.rb +11 -40
  113. data/lib/aspose_slides_cloud/models/save_slide.rb +11 -40
  114. data/lib/aspose_slides_cloud/models/scatter_chart_data_point.rb +10 -12
  115. data/lib/aspose_slides_cloud/models/scatter_series.rb +11 -205
  116. data/lib/aspose_slides_cloud/models/series.rb +2 -2
  117. data/lib/aspose_slides_cloud/models/series_marker.rb +2 -2
  118. data/lib/aspose_slides_cloud/models/shape.rb +11 -234
  119. data/lib/aspose_slides_cloud/models/shape_base.rb +10 -32
  120. data/lib/aspose_slides_cloud/models/shape_image_export_options.rb +2 -2
  121. data/lib/aspose_slides_cloud/models/shapes.rb +10 -32
  122. data/lib/aspose_slides_cloud/models/slide.rb +10 -32
  123. data/lib/aspose_slides_cloud/models/slide_animation.rb +10 -32
  124. data/lib/aspose_slides_cloud/models/slide_background.rb +10 -32
  125. data/lib/aspose_slides_cloud/models/slide_comment.rb +2 -2
  126. data/lib/aspose_slides_cloud/models/slide_comments.rb +10 -32
  127. data/lib/aspose_slides_cloud/models/slide_replace_result.rb +10 -146
  128. data/lib/aspose_slides_cloud/models/slides.rb +10 -32
  129. data/lib/aspose_slides_cloud/models/smart_art.rb +12 -210
  130. data/lib/aspose_slides_cloud/models/smart_art_node.rb +2 -2
  131. data/lib/aspose_slides_cloud/models/smart_art_shape.rb +11 -209
  132. data/lib/aspose_slides_cloud/models/soft_edge_effect.rb +2 -2
  133. data/lib/aspose_slides_cloud/models/solid_fill.rb +11 -40
  134. data/lib/aspose_slides_cloud/models/split_document_result.rb +10 -32
  135. data/lib/aspose_slides_cloud/models/storage_exist.rb +2 -2
  136. data/lib/aspose_slides_cloud/models/storage_file.rb +2 -2
  137. data/lib/aspose_slides_cloud/models/svg_export_options.rb +13 -24
  138. data/lib/aspose_slides_cloud/models/swf_export_options.rb +13 -24
  139. data/lib/aspose_slides_cloud/models/table.rb +12 -210
  140. data/lib/aspose_slides_cloud/models/table_cell.rb +2 -2
  141. data/lib/aspose_slides_cloud/models/table_column.rb +2 -2
  142. data/lib/aspose_slides_cloud/models/table_row.rb +2 -2
  143. data/lib/aspose_slides_cloud/models/task.rb +2 -2
  144. data/lib/aspose_slides_cloud/models/text_item.rb +2 -2
  145. data/lib/aspose_slides_cloud/models/text_items.rb +10 -32
  146. data/lib/aspose_slides_cloud/models/theme.rb +10 -32
  147. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +13 -24
  148. data/lib/aspose_slides_cloud/models/update_background.rb +11 -40
  149. data/lib/aspose_slides_cloud/models/update_shape.rb +11 -40
  150. data/lib/aspose_slides_cloud/models/video_frame.rb +12 -236
  151. data/lib/aspose_slides_cloud/models/view_properties.rb +10 -32
  152. data/lib/aspose_slides_cloud/models/waterfall_series.rb +11 -216
  153. data/lib/aspose_slides_cloud/models/xps_export_options.rb +13 -24
  154. data/lib/aspose_slides_cloud/type_registry.rb +313 -0
  155. data/lib/aspose_slides_cloud/version.rb +1 -1
  156. data/spec/api/slides_api_spec.rb +1417 -63
  157. data/spec/extra/extra_spec.rb +66 -33
  158. data/testRules.json +31 -0
  159. metadata +4 -2
@@ -21,5 +21,5 @@ SOFTWARE.
21
21
  =end
22
22
 
23
23
  module AsposeSlidesCloud
24
- VERSION = '20.7.0'
24
+ VERSION = '20.8.0'
25
25
  end
@@ -324,6 +324,434 @@ describe 'SlidesApi' do
324
324
  end
325
325
  end
326
326
 
327
+ # unit tests for delete_chart_category
328
+ # Delete a category from a chart.
329
+ # @param name Document name.
330
+ # @param slide_index Slide index.
331
+ # @param shape_index Shape index.
332
+ # @param category_index Category index.
333
+ # @param [Hash] opts the optional parameters
334
+ # @option opts [String] :password Document password.
335
+ # @option opts [String] :folder Document folder.
336
+ # @option opts [String] :storage Document storage.
337
+ # @return [Chart]
338
+ describe 'delete_chart_category test' do
339
+ it 'should work' do
340
+ requestParam = AsposeSlidesCloud::DeleteChartCategoryRequest.new
341
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartCategory', 'String')
342
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartCategory', 'Integer')
343
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartCategory', 'Integer')
344
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'DeleteChartCategory', 'Integer')
345
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartCategory', 'String')
346
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartCategory', 'String')
347
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartCategory', 'String')
348
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartCategory', nil, nil)
349
+ o, c, _h = AsposeSlidesCloud::SpecUtils.api.delete_chart_category_with_http_info(requestParam)
350
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartCategory', nil, nil)
351
+ expect(c).to eq(code)
352
+ expect(o).not_to be_nil
353
+ end
354
+
355
+ it 'invalid name' do
356
+ requestParam = AsposeSlidesCloud::DeleteChartCategoryRequest.new
357
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartCategory', 'String')
358
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartCategory', 'Integer')
359
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartCategory', 'Integer')
360
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'DeleteChartCategory', 'Integer')
361
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartCategory', 'String')
362
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartCategory', 'String')
363
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartCategory', 'String')
364
+ requestParam.name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'DeleteChartCategory', requestParam.name, 'String')
365
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartCategory', 'name', requestParam.name)
366
+ begin
367
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_category_with_http_info(requestParam)
368
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartCategory', 'name')
369
+ fail "An exception expected"
370
+ end
371
+ rescue AsposeSlidesCloud::ApiError => e
372
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartCategory', 'name', requestParam.name)
373
+ expect(e.code).to eq(code)
374
+ expect(e.response_body).to include(message)
375
+ rescue
376
+ end
377
+ end
378
+
379
+ it 'invalid slide_index' do
380
+ requestParam = AsposeSlidesCloud::DeleteChartCategoryRequest.new
381
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartCategory', 'String')
382
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartCategory', 'Integer')
383
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartCategory', 'Integer')
384
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'DeleteChartCategory', 'Integer')
385
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartCategory', 'String')
386
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartCategory', 'String')
387
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartCategory', 'String')
388
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'DeleteChartCategory', requestParam.slide_index, 'Integer')
389
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartCategory', 'slideIndex', requestParam.slide_index)
390
+ begin
391
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_category_with_http_info(requestParam)
392
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartCategory', 'slideIndex')
393
+ fail "An exception expected"
394
+ end
395
+ rescue AsposeSlidesCloud::ApiError => e
396
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartCategory', 'slideIndex', requestParam.slide_index)
397
+ expect(e.code).to eq(code)
398
+ expect(e.response_body).to include(message)
399
+ rescue
400
+ end
401
+ end
402
+
403
+ it 'invalid shape_index' do
404
+ requestParam = AsposeSlidesCloud::DeleteChartCategoryRequest.new
405
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartCategory', 'String')
406
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartCategory', 'Integer')
407
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartCategory', 'Integer')
408
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'DeleteChartCategory', 'Integer')
409
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartCategory', 'String')
410
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartCategory', 'String')
411
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartCategory', 'String')
412
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'DeleteChartCategory', requestParam.shape_index, 'Integer')
413
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartCategory', 'shapeIndex', requestParam.shape_index)
414
+ begin
415
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_category_with_http_info(requestParam)
416
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartCategory', 'shapeIndex')
417
+ fail "An exception expected"
418
+ end
419
+ rescue AsposeSlidesCloud::ApiError => e
420
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartCategory', 'shapeIndex', requestParam.shape_index)
421
+ expect(e.code).to eq(code)
422
+ expect(e.response_body).to include(message)
423
+ rescue
424
+ end
425
+ end
426
+
427
+ it 'invalid category_index' do
428
+ requestParam = AsposeSlidesCloud::DeleteChartCategoryRequest.new
429
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartCategory', 'String')
430
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartCategory', 'Integer')
431
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartCategory', 'Integer')
432
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'DeleteChartCategory', 'Integer')
433
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartCategory', 'String')
434
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartCategory', 'String')
435
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartCategory', 'String')
436
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('categoryIndex', 'DeleteChartCategory', requestParam.category_index, 'Integer')
437
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartCategory', 'categoryIndex', requestParam.category_index)
438
+ begin
439
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_category_with_http_info(requestParam)
440
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartCategory', 'categoryIndex')
441
+ fail "An exception expected"
442
+ end
443
+ rescue AsposeSlidesCloud::ApiError => e
444
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartCategory', 'categoryIndex', requestParam.category_index)
445
+ expect(e.code).to eq(code)
446
+ expect(e.response_body).to include(message)
447
+ rescue
448
+ end
449
+ end
450
+
451
+ it 'invalid password' do
452
+ requestParam = AsposeSlidesCloud::DeleteChartCategoryRequest.new
453
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartCategory', 'String')
454
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartCategory', 'Integer')
455
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartCategory', 'Integer')
456
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'DeleteChartCategory', 'Integer')
457
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartCategory', 'String')
458
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartCategory', 'String')
459
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartCategory', 'String')
460
+ requestParam.password = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'DeleteChartCategory', requestParam.password, 'String')
461
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartCategory', 'password', requestParam.password)
462
+ begin
463
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_category_with_http_info(requestParam)
464
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartCategory', 'password')
465
+ fail "An exception expected"
466
+ end
467
+ rescue AsposeSlidesCloud::ApiError => e
468
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartCategory', 'password', requestParam.password)
469
+ expect(e.code).to eq(code)
470
+ expect(e.response_body).to include(message)
471
+ rescue
472
+ end
473
+ end
474
+
475
+ it 'invalid folder' do
476
+ requestParam = AsposeSlidesCloud::DeleteChartCategoryRequest.new
477
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartCategory', 'String')
478
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartCategory', 'Integer')
479
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartCategory', 'Integer')
480
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'DeleteChartCategory', 'Integer')
481
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartCategory', 'String')
482
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartCategory', 'String')
483
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartCategory', 'String')
484
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'DeleteChartCategory', requestParam.folder, 'String')
485
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartCategory', 'folder', requestParam.folder)
486
+ begin
487
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_category_with_http_info(requestParam)
488
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartCategory', 'folder')
489
+ fail "An exception expected"
490
+ end
491
+ rescue AsposeSlidesCloud::ApiError => e
492
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartCategory', 'folder', requestParam.folder)
493
+ expect(e.code).to eq(code)
494
+ expect(e.response_body).to include(message)
495
+ rescue
496
+ end
497
+ end
498
+
499
+ it 'invalid storage' do
500
+ requestParam = AsposeSlidesCloud::DeleteChartCategoryRequest.new
501
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartCategory', 'String')
502
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartCategory', 'Integer')
503
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartCategory', 'Integer')
504
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'DeleteChartCategory', 'Integer')
505
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartCategory', 'String')
506
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartCategory', 'String')
507
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartCategory', 'String')
508
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'DeleteChartCategory', requestParam.storage, 'String')
509
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartCategory', 'storage', requestParam.storage)
510
+ begin
511
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_category_with_http_info(requestParam)
512
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartCategory', 'storage')
513
+ fail "An exception expected"
514
+ end
515
+ rescue AsposeSlidesCloud::ApiError => e
516
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartCategory', 'storage', requestParam.storage)
517
+ expect(e.code).to eq(code)
518
+ expect(e.response_body).to include(message)
519
+ rescue
520
+ end
521
+ end
522
+ end
523
+
524
+ # unit tests for delete_chart_data_point
525
+ # Delete a data point from a chart series.
526
+ # @param name Document name.
527
+ # @param slide_index Slide index.
528
+ # @param shape_index Shape index.
529
+ # @param series_index Series index.
530
+ # @param point_index Data point index.
531
+ # @param [Hash] opts the optional parameters
532
+ # @option opts [String] :password Document password.
533
+ # @option opts [String] :folder Document folder.
534
+ # @option opts [String] :storage Document storage.
535
+ # @return [Chart]
536
+ describe 'delete_chart_data_point test' do
537
+ it 'should work' do
538
+ requestParam = AsposeSlidesCloud::DeleteChartDataPointRequest.new
539
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartDataPoint', 'String')
540
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartDataPoint', 'Integer')
541
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartDataPoint', 'Integer')
542
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartDataPoint', 'Integer')
543
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'DeleteChartDataPoint', 'Integer')
544
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartDataPoint', 'String')
545
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartDataPoint', 'String')
546
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartDataPoint', 'String')
547
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartDataPoint', nil, nil)
548
+ o, c, _h = AsposeSlidesCloud::SpecUtils.api.delete_chart_data_point_with_http_info(requestParam)
549
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartDataPoint', nil, nil)
550
+ expect(c).to eq(code)
551
+ expect(o).not_to be_nil
552
+ end
553
+
554
+ it 'invalid name' do
555
+ requestParam = AsposeSlidesCloud::DeleteChartDataPointRequest.new
556
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartDataPoint', 'String')
557
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartDataPoint', 'Integer')
558
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartDataPoint', 'Integer')
559
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartDataPoint', 'Integer')
560
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'DeleteChartDataPoint', 'Integer')
561
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartDataPoint', 'String')
562
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartDataPoint', 'String')
563
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartDataPoint', 'String')
564
+ requestParam.name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'DeleteChartDataPoint', requestParam.name, 'String')
565
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartDataPoint', 'name', requestParam.name)
566
+ begin
567
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_data_point_with_http_info(requestParam)
568
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartDataPoint', 'name')
569
+ fail "An exception expected"
570
+ end
571
+ rescue AsposeSlidesCloud::ApiError => e
572
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartDataPoint', 'name', requestParam.name)
573
+ expect(e.code).to eq(code)
574
+ expect(e.response_body).to include(message)
575
+ rescue
576
+ end
577
+ end
578
+
579
+ it 'invalid slide_index' do
580
+ requestParam = AsposeSlidesCloud::DeleteChartDataPointRequest.new
581
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartDataPoint', 'String')
582
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartDataPoint', 'Integer')
583
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartDataPoint', 'Integer')
584
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartDataPoint', 'Integer')
585
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'DeleteChartDataPoint', 'Integer')
586
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartDataPoint', 'String')
587
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartDataPoint', 'String')
588
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartDataPoint', 'String')
589
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'DeleteChartDataPoint', requestParam.slide_index, 'Integer')
590
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartDataPoint', 'slideIndex', requestParam.slide_index)
591
+ begin
592
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_data_point_with_http_info(requestParam)
593
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartDataPoint', 'slideIndex')
594
+ fail "An exception expected"
595
+ end
596
+ rescue AsposeSlidesCloud::ApiError => e
597
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartDataPoint', 'slideIndex', requestParam.slide_index)
598
+ expect(e.code).to eq(code)
599
+ expect(e.response_body).to include(message)
600
+ rescue
601
+ end
602
+ end
603
+
604
+ it 'invalid shape_index' do
605
+ requestParam = AsposeSlidesCloud::DeleteChartDataPointRequest.new
606
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartDataPoint', 'String')
607
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartDataPoint', 'Integer')
608
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartDataPoint', 'Integer')
609
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartDataPoint', 'Integer')
610
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'DeleteChartDataPoint', 'Integer')
611
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartDataPoint', 'String')
612
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartDataPoint', 'String')
613
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartDataPoint', 'String')
614
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'DeleteChartDataPoint', requestParam.shape_index, 'Integer')
615
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartDataPoint', 'shapeIndex', requestParam.shape_index)
616
+ begin
617
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_data_point_with_http_info(requestParam)
618
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartDataPoint', 'shapeIndex')
619
+ fail "An exception expected"
620
+ end
621
+ rescue AsposeSlidesCloud::ApiError => e
622
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartDataPoint', 'shapeIndex', requestParam.shape_index)
623
+ expect(e.code).to eq(code)
624
+ expect(e.response_body).to include(message)
625
+ rescue
626
+ end
627
+ end
628
+
629
+ it 'invalid series_index' do
630
+ requestParam = AsposeSlidesCloud::DeleteChartDataPointRequest.new
631
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartDataPoint', 'String')
632
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartDataPoint', 'Integer')
633
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartDataPoint', 'Integer')
634
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartDataPoint', 'Integer')
635
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'DeleteChartDataPoint', 'Integer')
636
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartDataPoint', 'String')
637
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartDataPoint', 'String')
638
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartDataPoint', 'String')
639
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('seriesIndex', 'DeleteChartDataPoint', requestParam.series_index, 'Integer')
640
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartDataPoint', 'seriesIndex', requestParam.series_index)
641
+ begin
642
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_data_point_with_http_info(requestParam)
643
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartDataPoint', 'seriesIndex')
644
+ fail "An exception expected"
645
+ end
646
+ rescue AsposeSlidesCloud::ApiError => e
647
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartDataPoint', 'seriesIndex', requestParam.series_index)
648
+ expect(e.code).to eq(code)
649
+ expect(e.response_body).to include(message)
650
+ rescue
651
+ end
652
+ end
653
+
654
+ it 'invalid point_index' do
655
+ requestParam = AsposeSlidesCloud::DeleteChartDataPointRequest.new
656
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartDataPoint', 'String')
657
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartDataPoint', 'Integer')
658
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartDataPoint', 'Integer')
659
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartDataPoint', 'Integer')
660
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'DeleteChartDataPoint', 'Integer')
661
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartDataPoint', 'String')
662
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartDataPoint', 'String')
663
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartDataPoint', 'String')
664
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('pointIndex', 'DeleteChartDataPoint', requestParam.point_index, 'Integer')
665
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartDataPoint', 'pointIndex', requestParam.point_index)
666
+ begin
667
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_data_point_with_http_info(requestParam)
668
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartDataPoint', 'pointIndex')
669
+ fail "An exception expected"
670
+ end
671
+ rescue AsposeSlidesCloud::ApiError => e
672
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartDataPoint', 'pointIndex', requestParam.point_index)
673
+ expect(e.code).to eq(code)
674
+ expect(e.response_body).to include(message)
675
+ rescue
676
+ end
677
+ end
678
+
679
+ it 'invalid password' do
680
+ requestParam = AsposeSlidesCloud::DeleteChartDataPointRequest.new
681
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartDataPoint', 'String')
682
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartDataPoint', 'Integer')
683
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartDataPoint', 'Integer')
684
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartDataPoint', 'Integer')
685
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'DeleteChartDataPoint', 'Integer')
686
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartDataPoint', 'String')
687
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartDataPoint', 'String')
688
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartDataPoint', 'String')
689
+ requestParam.password = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'DeleteChartDataPoint', requestParam.password, 'String')
690
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartDataPoint', 'password', requestParam.password)
691
+ begin
692
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_data_point_with_http_info(requestParam)
693
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartDataPoint', 'password')
694
+ fail "An exception expected"
695
+ end
696
+ rescue AsposeSlidesCloud::ApiError => e
697
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartDataPoint', 'password', requestParam.password)
698
+ expect(e.code).to eq(code)
699
+ expect(e.response_body).to include(message)
700
+ rescue
701
+ end
702
+ end
703
+
704
+ it 'invalid folder' do
705
+ requestParam = AsposeSlidesCloud::DeleteChartDataPointRequest.new
706
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartDataPoint', 'String')
707
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartDataPoint', 'Integer')
708
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartDataPoint', 'Integer')
709
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartDataPoint', 'Integer')
710
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'DeleteChartDataPoint', 'Integer')
711
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartDataPoint', 'String')
712
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartDataPoint', 'String')
713
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartDataPoint', 'String')
714
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'DeleteChartDataPoint', requestParam.folder, 'String')
715
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartDataPoint', 'folder', requestParam.folder)
716
+ begin
717
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_data_point_with_http_info(requestParam)
718
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartDataPoint', 'folder')
719
+ fail "An exception expected"
720
+ end
721
+ rescue AsposeSlidesCloud::ApiError => e
722
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartDataPoint', 'folder', requestParam.folder)
723
+ expect(e.code).to eq(code)
724
+ expect(e.response_body).to include(message)
725
+ rescue
726
+ end
727
+ end
728
+
729
+ it 'invalid storage' do
730
+ requestParam = AsposeSlidesCloud::DeleteChartDataPointRequest.new
731
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DeleteChartDataPoint', 'String')
732
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DeleteChartDataPoint', 'Integer')
733
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DeleteChartDataPoint', 'Integer')
734
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'DeleteChartDataPoint', 'Integer')
735
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'DeleteChartDataPoint', 'Integer')
736
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DeleteChartDataPoint', 'String')
737
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DeleteChartDataPoint', 'String')
738
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DeleteChartDataPoint', 'String')
739
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'DeleteChartDataPoint', requestParam.storage, 'String')
740
+ AsposeSlidesCloud::SpecUtils.initialize('DeleteChartDataPoint', 'storage', requestParam.storage)
741
+ begin
742
+ AsposeSlidesCloud::SpecUtils.api.delete_chart_data_point_with_http_info(requestParam)
743
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('DeleteChartDataPoint', 'storage')
744
+ fail "An exception expected"
745
+ end
746
+ rescue AsposeSlidesCloud::ApiError => e
747
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DeleteChartDataPoint', 'storage', requestParam.storage)
748
+ expect(e.code).to eq(code)
749
+ expect(e.response_body).to include(message)
750
+ rescue
751
+ end
752
+ end
753
+ end
754
+
327
755
  # unit tests for delete_chart_series
328
756
  # Delete a series from a chart.
329
757
  # @param name Document name.
@@ -15759,52 +16187,52 @@ describe 'SlidesApi' do
15759
16187
  end
15760
16188
  end
15761
16189
 
15762
- # unit tests for post_chart_series
15763
- # Add a new series to a chart.
16190
+ # unit tests for post_chart_category
16191
+ # Add a new category to a chart.
15764
16192
  # @param name Document name.
15765
16193
  # @param slide_index Slide index.
15766
- # @param shape_index Shape index (must be a chart).
16194
+ # @param shape_index Shape index.
15767
16195
  # @param [Hash] opts the optional parameters
15768
- # @option opts [Series] :series Series DTO.
16196
+ # @option opts [ChartCategory] :category Category DTO.
15769
16197
  # @option opts [String] :password Document password.
15770
16198
  # @option opts [String] :folder Document folder.
15771
16199
  # @option opts [String] :storage Document storage.
15772
16200
  # @return [Chart]
15773
- describe 'post_chart_series test' do
16201
+ describe 'post_chart_category test' do
15774
16202
  it 'should work' do
15775
- requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
15776
- requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
15777
- requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
15778
- requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
15779
- requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
15780
- requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
15781
- requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
15782
- requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
15783
- AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', nil, nil)
15784
- o, c, _h = AsposeSlidesCloud::SpecUtils.api.post_chart_series_with_http_info(requestParam)
15785
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartSeries', nil, nil)
16203
+ requestParam = AsposeSlidesCloud::PostChartCategoryRequest.new
16204
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartCategory', 'String')
16205
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartCategory', 'Integer')
16206
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartCategory', 'Integer')
16207
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PostChartCategory', 'ChartCategory')
16208
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartCategory', 'String')
16209
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartCategory', 'String')
16210
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartCategory', 'String')
16211
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartCategory', nil, nil)
16212
+ o, c, _h = AsposeSlidesCloud::SpecUtils.api.post_chart_category_with_http_info(requestParam)
16213
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartCategory', nil, nil)
15786
16214
  expect(c).to eq(code)
15787
16215
  expect(o).not_to be_nil
15788
16216
  end
15789
16217
 
15790
16218
  it 'invalid name' do
15791
- requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
15792
- requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
15793
- requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
15794
- requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
15795
- requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
15796
- requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
15797
- requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
15798
- requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
15799
- requestParam.name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'PostChartSeries', requestParam.name, 'String')
15800
- AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', 'name', requestParam.name)
16219
+ requestParam = AsposeSlidesCloud::PostChartCategoryRequest.new
16220
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartCategory', 'String')
16221
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartCategory', 'Integer')
16222
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartCategory', 'Integer')
16223
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PostChartCategory', 'ChartCategory')
16224
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartCategory', 'String')
16225
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartCategory', 'String')
16226
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartCategory', 'String')
16227
+ requestParam.name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'PostChartCategory', requestParam.name, 'String')
16228
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartCategory', 'name', requestParam.name)
15801
16229
  begin
15802
- AsposeSlidesCloud::SpecUtils.api.post_chart_series_with_http_info(requestParam)
15803
- unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartSeries', 'name')
16230
+ AsposeSlidesCloud::SpecUtils.api.post_chart_category_with_http_info(requestParam)
16231
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartCategory', 'name')
15804
16232
  fail "An exception expected"
15805
16233
  end
15806
16234
  rescue AsposeSlidesCloud::ApiError => e
15807
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartSeries', 'name', requestParam.name)
16235
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartCategory', 'name', requestParam.name)
15808
16236
  expect(e.code).to eq(code)
15809
16237
  expect(e.response_body).to include(message)
15810
16238
  rescue
@@ -15812,23 +16240,23 @@ describe 'SlidesApi' do
15812
16240
  end
15813
16241
 
15814
16242
  it 'invalid slide_index' do
15815
- requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
15816
- requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
15817
- requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
15818
- requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
15819
- requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
15820
- requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
15821
- requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
15822
- requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
15823
- requestParam.slide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'PostChartSeries', requestParam.slide_index, 'Integer')
15824
- AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', 'slideIndex', requestParam.slide_index)
16243
+ requestParam = AsposeSlidesCloud::PostChartCategoryRequest.new
16244
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartCategory', 'String')
16245
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartCategory', 'Integer')
16246
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartCategory', 'Integer')
16247
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PostChartCategory', 'ChartCategory')
16248
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartCategory', 'String')
16249
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartCategory', 'String')
16250
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartCategory', 'String')
16251
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'PostChartCategory', requestParam.slide_index, 'Integer')
16252
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartCategory', 'slideIndex', requestParam.slide_index)
15825
16253
  begin
15826
- AsposeSlidesCloud::SpecUtils.api.post_chart_series_with_http_info(requestParam)
15827
- unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartSeries', 'slideIndex')
16254
+ AsposeSlidesCloud::SpecUtils.api.post_chart_category_with_http_info(requestParam)
16255
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartCategory', 'slideIndex')
15828
16256
  fail "An exception expected"
15829
16257
  end
15830
16258
  rescue AsposeSlidesCloud::ApiError => e
15831
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartSeries', 'slideIndex', requestParam.slide_index)
16259
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartCategory', 'slideIndex', requestParam.slide_index)
15832
16260
  expect(e.code).to eq(code)
15833
16261
  expect(e.response_body).to include(message)
15834
16262
  rescue
@@ -15836,37 +16264,465 @@ describe 'SlidesApi' do
15836
16264
  end
15837
16265
 
15838
16266
  it 'invalid shape_index' do
15839
- requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
15840
- requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
15841
- requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
15842
- requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
15843
- requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
15844
- requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
15845
- requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
15846
- requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
15847
- requestParam.shape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'PostChartSeries', requestParam.shape_index, 'Integer')
15848
- AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', 'shapeIndex', requestParam.shape_index)
16267
+ requestParam = AsposeSlidesCloud::PostChartCategoryRequest.new
16268
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartCategory', 'String')
16269
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartCategory', 'Integer')
16270
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartCategory', 'Integer')
16271
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PostChartCategory', 'ChartCategory')
16272
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartCategory', 'String')
16273
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartCategory', 'String')
16274
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartCategory', 'String')
16275
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'PostChartCategory', requestParam.shape_index, 'Integer')
16276
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartCategory', 'shapeIndex', requestParam.shape_index)
15849
16277
  begin
15850
- AsposeSlidesCloud::SpecUtils.api.post_chart_series_with_http_info(requestParam)
15851
- unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartSeries', 'shapeIndex')
16278
+ AsposeSlidesCloud::SpecUtils.api.post_chart_category_with_http_info(requestParam)
16279
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartCategory', 'shapeIndex')
15852
16280
  fail "An exception expected"
15853
16281
  end
15854
16282
  rescue AsposeSlidesCloud::ApiError => e
15855
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartSeries', 'shapeIndex', requestParam.shape_index)
16283
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartCategory', 'shapeIndex', requestParam.shape_index)
15856
16284
  expect(e.code).to eq(code)
15857
16285
  expect(e.response_body).to include(message)
15858
16286
  rescue
15859
16287
  end
15860
16288
  end
15861
16289
 
15862
- it 'invalid series' do
15863
- requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
15864
- requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
15865
- requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
15866
- requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
15867
- requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
15868
- requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
15869
- requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
16290
+ it 'invalid category' do
16291
+ requestParam = AsposeSlidesCloud::PostChartCategoryRequest.new
16292
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartCategory', 'String')
16293
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartCategory', 'Integer')
16294
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartCategory', 'Integer')
16295
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PostChartCategory', 'ChartCategory')
16296
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartCategory', 'String')
16297
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartCategory', 'String')
16298
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartCategory', 'String')
16299
+ requestParam.category = AsposeSlidesCloud::SpecUtils.invalidize_param_value('category', 'PostChartCategory', requestParam.category, 'ChartCategory')
16300
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartCategory', 'category', requestParam.category)
16301
+ begin
16302
+ AsposeSlidesCloud::SpecUtils.api.post_chart_category_with_http_info(requestParam)
16303
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartCategory', 'category')
16304
+ fail "An exception expected"
16305
+ end
16306
+ rescue AsposeSlidesCloud::ApiError => e
16307
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartCategory', 'category', requestParam.category)
16308
+ expect(e.code).to eq(code)
16309
+ expect(e.response_body).to include(message)
16310
+ rescue
16311
+ end
16312
+ end
16313
+
16314
+ it 'invalid password' do
16315
+ requestParam = AsposeSlidesCloud::PostChartCategoryRequest.new
16316
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartCategory', 'String')
16317
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartCategory', 'Integer')
16318
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartCategory', 'Integer')
16319
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PostChartCategory', 'ChartCategory')
16320
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartCategory', 'String')
16321
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartCategory', 'String')
16322
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartCategory', 'String')
16323
+ requestParam.password = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'PostChartCategory', requestParam.password, 'String')
16324
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartCategory', 'password', requestParam.password)
16325
+ begin
16326
+ AsposeSlidesCloud::SpecUtils.api.post_chart_category_with_http_info(requestParam)
16327
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartCategory', 'password')
16328
+ fail "An exception expected"
16329
+ end
16330
+ rescue AsposeSlidesCloud::ApiError => e
16331
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartCategory', 'password', requestParam.password)
16332
+ expect(e.code).to eq(code)
16333
+ expect(e.response_body).to include(message)
16334
+ rescue
16335
+ end
16336
+ end
16337
+
16338
+ it 'invalid folder' do
16339
+ requestParam = AsposeSlidesCloud::PostChartCategoryRequest.new
16340
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartCategory', 'String')
16341
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartCategory', 'Integer')
16342
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartCategory', 'Integer')
16343
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PostChartCategory', 'ChartCategory')
16344
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartCategory', 'String')
16345
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartCategory', 'String')
16346
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartCategory', 'String')
16347
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'PostChartCategory', requestParam.folder, 'String')
16348
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartCategory', 'folder', requestParam.folder)
16349
+ begin
16350
+ AsposeSlidesCloud::SpecUtils.api.post_chart_category_with_http_info(requestParam)
16351
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartCategory', 'folder')
16352
+ fail "An exception expected"
16353
+ end
16354
+ rescue AsposeSlidesCloud::ApiError => e
16355
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartCategory', 'folder', requestParam.folder)
16356
+ expect(e.code).to eq(code)
16357
+ expect(e.response_body).to include(message)
16358
+ rescue
16359
+ end
16360
+ end
16361
+
16362
+ it 'invalid storage' do
16363
+ requestParam = AsposeSlidesCloud::PostChartCategoryRequest.new
16364
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartCategory', 'String')
16365
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartCategory', 'Integer')
16366
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartCategory', 'Integer')
16367
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PostChartCategory', 'ChartCategory')
16368
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartCategory', 'String')
16369
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartCategory', 'String')
16370
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartCategory', 'String')
16371
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'PostChartCategory', requestParam.storage, 'String')
16372
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartCategory', 'storage', requestParam.storage)
16373
+ begin
16374
+ AsposeSlidesCloud::SpecUtils.api.post_chart_category_with_http_info(requestParam)
16375
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartCategory', 'storage')
16376
+ fail "An exception expected"
16377
+ end
16378
+ rescue AsposeSlidesCloud::ApiError => e
16379
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartCategory', 'storage', requestParam.storage)
16380
+ expect(e.code).to eq(code)
16381
+ expect(e.response_body).to include(message)
16382
+ rescue
16383
+ end
16384
+ end
16385
+ end
16386
+
16387
+ # unit tests for post_chart_data_point
16388
+ # Add a new data point to a chart series.
16389
+ # @param name Document name.
16390
+ # @param slide_index Slide index.
16391
+ # @param shape_index Shape index.
16392
+ # @param series_index Series index.
16393
+ # @param [Hash] opts the optional parameters
16394
+ # @option opts [DataPoint] :data_point Data point DTO.
16395
+ # @option opts [String] :password Document password.
16396
+ # @option opts [String] :folder Document folder.
16397
+ # @option opts [String] :storage Document storage.
16398
+ # @return [Chart]
16399
+ describe 'post_chart_data_point test' do
16400
+ it 'should work' do
16401
+ requestParam = AsposeSlidesCloud::PostChartDataPointRequest.new
16402
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartDataPoint', 'String')
16403
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartDataPoint', 'Integer')
16404
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartDataPoint', 'Integer')
16405
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PostChartDataPoint', 'Integer')
16406
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PostChartDataPoint', 'DataPoint')
16407
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartDataPoint', 'String')
16408
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartDataPoint', 'String')
16409
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartDataPoint', 'String')
16410
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartDataPoint', nil, nil)
16411
+ o, c, _h = AsposeSlidesCloud::SpecUtils.api.post_chart_data_point_with_http_info(requestParam)
16412
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartDataPoint', nil, nil)
16413
+ expect(c).to eq(code)
16414
+ expect(o).not_to be_nil
16415
+ end
16416
+
16417
+ it 'invalid name' do
16418
+ requestParam = AsposeSlidesCloud::PostChartDataPointRequest.new
16419
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartDataPoint', 'String')
16420
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartDataPoint', 'Integer')
16421
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartDataPoint', 'Integer')
16422
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PostChartDataPoint', 'Integer')
16423
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PostChartDataPoint', 'DataPoint')
16424
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartDataPoint', 'String')
16425
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartDataPoint', 'String')
16426
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartDataPoint', 'String')
16427
+ requestParam.name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'PostChartDataPoint', requestParam.name, 'String')
16428
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartDataPoint', 'name', requestParam.name)
16429
+ begin
16430
+ AsposeSlidesCloud::SpecUtils.api.post_chart_data_point_with_http_info(requestParam)
16431
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartDataPoint', 'name')
16432
+ fail "An exception expected"
16433
+ end
16434
+ rescue AsposeSlidesCloud::ApiError => e
16435
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartDataPoint', 'name', requestParam.name)
16436
+ expect(e.code).to eq(code)
16437
+ expect(e.response_body).to include(message)
16438
+ rescue
16439
+ end
16440
+ end
16441
+
16442
+ it 'invalid slide_index' do
16443
+ requestParam = AsposeSlidesCloud::PostChartDataPointRequest.new
16444
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartDataPoint', 'String')
16445
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartDataPoint', 'Integer')
16446
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartDataPoint', 'Integer')
16447
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PostChartDataPoint', 'Integer')
16448
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PostChartDataPoint', 'DataPoint')
16449
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartDataPoint', 'String')
16450
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartDataPoint', 'String')
16451
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartDataPoint', 'String')
16452
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'PostChartDataPoint', requestParam.slide_index, 'Integer')
16453
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartDataPoint', 'slideIndex', requestParam.slide_index)
16454
+ begin
16455
+ AsposeSlidesCloud::SpecUtils.api.post_chart_data_point_with_http_info(requestParam)
16456
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartDataPoint', 'slideIndex')
16457
+ fail "An exception expected"
16458
+ end
16459
+ rescue AsposeSlidesCloud::ApiError => e
16460
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartDataPoint', 'slideIndex', requestParam.slide_index)
16461
+ expect(e.code).to eq(code)
16462
+ expect(e.response_body).to include(message)
16463
+ rescue
16464
+ end
16465
+ end
16466
+
16467
+ it 'invalid shape_index' do
16468
+ requestParam = AsposeSlidesCloud::PostChartDataPointRequest.new
16469
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartDataPoint', 'String')
16470
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartDataPoint', 'Integer')
16471
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartDataPoint', 'Integer')
16472
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PostChartDataPoint', 'Integer')
16473
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PostChartDataPoint', 'DataPoint')
16474
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartDataPoint', 'String')
16475
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartDataPoint', 'String')
16476
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartDataPoint', 'String')
16477
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'PostChartDataPoint', requestParam.shape_index, 'Integer')
16478
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartDataPoint', 'shapeIndex', requestParam.shape_index)
16479
+ begin
16480
+ AsposeSlidesCloud::SpecUtils.api.post_chart_data_point_with_http_info(requestParam)
16481
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartDataPoint', 'shapeIndex')
16482
+ fail "An exception expected"
16483
+ end
16484
+ rescue AsposeSlidesCloud::ApiError => e
16485
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartDataPoint', 'shapeIndex', requestParam.shape_index)
16486
+ expect(e.code).to eq(code)
16487
+ expect(e.response_body).to include(message)
16488
+ rescue
16489
+ end
16490
+ end
16491
+
16492
+ it 'invalid series_index' do
16493
+ requestParam = AsposeSlidesCloud::PostChartDataPointRequest.new
16494
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartDataPoint', 'String')
16495
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartDataPoint', 'Integer')
16496
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartDataPoint', 'Integer')
16497
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PostChartDataPoint', 'Integer')
16498
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PostChartDataPoint', 'DataPoint')
16499
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartDataPoint', 'String')
16500
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartDataPoint', 'String')
16501
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartDataPoint', 'String')
16502
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('seriesIndex', 'PostChartDataPoint', requestParam.series_index, 'Integer')
16503
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartDataPoint', 'seriesIndex', requestParam.series_index)
16504
+ begin
16505
+ AsposeSlidesCloud::SpecUtils.api.post_chart_data_point_with_http_info(requestParam)
16506
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartDataPoint', 'seriesIndex')
16507
+ fail "An exception expected"
16508
+ end
16509
+ rescue AsposeSlidesCloud::ApiError => e
16510
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartDataPoint', 'seriesIndex', requestParam.series_index)
16511
+ expect(e.code).to eq(code)
16512
+ expect(e.response_body).to include(message)
16513
+ rescue
16514
+ end
16515
+ end
16516
+
16517
+ it 'invalid data_point' do
16518
+ requestParam = AsposeSlidesCloud::PostChartDataPointRequest.new
16519
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartDataPoint', 'String')
16520
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartDataPoint', 'Integer')
16521
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartDataPoint', 'Integer')
16522
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PostChartDataPoint', 'Integer')
16523
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PostChartDataPoint', 'DataPoint')
16524
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartDataPoint', 'String')
16525
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartDataPoint', 'String')
16526
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartDataPoint', 'String')
16527
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.invalidize_param_value('dataPoint', 'PostChartDataPoint', requestParam.data_point, 'DataPoint')
16528
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartDataPoint', 'dataPoint', requestParam.data_point)
16529
+ begin
16530
+ AsposeSlidesCloud::SpecUtils.api.post_chart_data_point_with_http_info(requestParam)
16531
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartDataPoint', 'dataPoint')
16532
+ fail "An exception expected"
16533
+ end
16534
+ rescue AsposeSlidesCloud::ApiError => e
16535
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartDataPoint', 'dataPoint', requestParam.data_point)
16536
+ expect(e.code).to eq(code)
16537
+ expect(e.response_body).to include(message)
16538
+ rescue
16539
+ end
16540
+ end
16541
+
16542
+ it 'invalid password' do
16543
+ requestParam = AsposeSlidesCloud::PostChartDataPointRequest.new
16544
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartDataPoint', 'String')
16545
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartDataPoint', 'Integer')
16546
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartDataPoint', 'Integer')
16547
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PostChartDataPoint', 'Integer')
16548
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PostChartDataPoint', 'DataPoint')
16549
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartDataPoint', 'String')
16550
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartDataPoint', 'String')
16551
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartDataPoint', 'String')
16552
+ requestParam.password = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'PostChartDataPoint', requestParam.password, 'String')
16553
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartDataPoint', 'password', requestParam.password)
16554
+ begin
16555
+ AsposeSlidesCloud::SpecUtils.api.post_chart_data_point_with_http_info(requestParam)
16556
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartDataPoint', 'password')
16557
+ fail "An exception expected"
16558
+ end
16559
+ rescue AsposeSlidesCloud::ApiError => e
16560
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartDataPoint', 'password', requestParam.password)
16561
+ expect(e.code).to eq(code)
16562
+ expect(e.response_body).to include(message)
16563
+ rescue
16564
+ end
16565
+ end
16566
+
16567
+ it 'invalid folder' do
16568
+ requestParam = AsposeSlidesCloud::PostChartDataPointRequest.new
16569
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartDataPoint', 'String')
16570
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartDataPoint', 'Integer')
16571
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartDataPoint', 'Integer')
16572
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PostChartDataPoint', 'Integer')
16573
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PostChartDataPoint', 'DataPoint')
16574
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartDataPoint', 'String')
16575
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartDataPoint', 'String')
16576
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartDataPoint', 'String')
16577
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'PostChartDataPoint', requestParam.folder, 'String')
16578
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartDataPoint', 'folder', requestParam.folder)
16579
+ begin
16580
+ AsposeSlidesCloud::SpecUtils.api.post_chart_data_point_with_http_info(requestParam)
16581
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartDataPoint', 'folder')
16582
+ fail "An exception expected"
16583
+ end
16584
+ rescue AsposeSlidesCloud::ApiError => e
16585
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartDataPoint', 'folder', requestParam.folder)
16586
+ expect(e.code).to eq(code)
16587
+ expect(e.response_body).to include(message)
16588
+ rescue
16589
+ end
16590
+ end
16591
+
16592
+ it 'invalid storage' do
16593
+ requestParam = AsposeSlidesCloud::PostChartDataPointRequest.new
16594
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartDataPoint', 'String')
16595
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartDataPoint', 'Integer')
16596
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartDataPoint', 'Integer')
16597
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PostChartDataPoint', 'Integer')
16598
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PostChartDataPoint', 'DataPoint')
16599
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartDataPoint', 'String')
16600
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartDataPoint', 'String')
16601
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartDataPoint', 'String')
16602
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'PostChartDataPoint', requestParam.storage, 'String')
16603
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartDataPoint', 'storage', requestParam.storage)
16604
+ begin
16605
+ AsposeSlidesCloud::SpecUtils.api.post_chart_data_point_with_http_info(requestParam)
16606
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartDataPoint', 'storage')
16607
+ fail "An exception expected"
16608
+ end
16609
+ rescue AsposeSlidesCloud::ApiError => e
16610
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartDataPoint', 'storage', requestParam.storage)
16611
+ expect(e.code).to eq(code)
16612
+ expect(e.response_body).to include(message)
16613
+ rescue
16614
+ end
16615
+ end
16616
+ end
16617
+
16618
+ # unit tests for post_chart_series
16619
+ # Add a new series to a chart.
16620
+ # @param name Document name.
16621
+ # @param slide_index Slide index.
16622
+ # @param shape_index Shape index (must be a chart).
16623
+ # @param [Hash] opts the optional parameters
16624
+ # @option opts [Series] :series Series DTO.
16625
+ # @option opts [String] :password Document password.
16626
+ # @option opts [String] :folder Document folder.
16627
+ # @option opts [String] :storage Document storage.
16628
+ # @return [Chart]
16629
+ describe 'post_chart_series test' do
16630
+ it 'should work' do
16631
+ requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
16632
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
16633
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
16634
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
16635
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
16636
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
16637
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
16638
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
16639
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', nil, nil)
16640
+ o, c, _h = AsposeSlidesCloud::SpecUtils.api.post_chart_series_with_http_info(requestParam)
16641
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartSeries', nil, nil)
16642
+ expect(c).to eq(code)
16643
+ expect(o).not_to be_nil
16644
+ end
16645
+
16646
+ it 'invalid name' do
16647
+ requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
16648
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
16649
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
16650
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
16651
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
16652
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
16653
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
16654
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
16655
+ requestParam.name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'PostChartSeries', requestParam.name, 'String')
16656
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', 'name', requestParam.name)
16657
+ begin
16658
+ AsposeSlidesCloud::SpecUtils.api.post_chart_series_with_http_info(requestParam)
16659
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartSeries', 'name')
16660
+ fail "An exception expected"
16661
+ end
16662
+ rescue AsposeSlidesCloud::ApiError => e
16663
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartSeries', 'name', requestParam.name)
16664
+ expect(e.code).to eq(code)
16665
+ expect(e.response_body).to include(message)
16666
+ rescue
16667
+ end
16668
+ end
16669
+
16670
+ it 'invalid slide_index' do
16671
+ requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
16672
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
16673
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
16674
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
16675
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
16676
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
16677
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
16678
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
16679
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'PostChartSeries', requestParam.slide_index, 'Integer')
16680
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', 'slideIndex', requestParam.slide_index)
16681
+ begin
16682
+ AsposeSlidesCloud::SpecUtils.api.post_chart_series_with_http_info(requestParam)
16683
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartSeries', 'slideIndex')
16684
+ fail "An exception expected"
16685
+ end
16686
+ rescue AsposeSlidesCloud::ApiError => e
16687
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartSeries', 'slideIndex', requestParam.slide_index)
16688
+ expect(e.code).to eq(code)
16689
+ expect(e.response_body).to include(message)
16690
+ rescue
16691
+ end
16692
+ end
16693
+
16694
+ it 'invalid shape_index' do
16695
+ requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
16696
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
16697
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
16698
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
16699
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
16700
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
16701
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
16702
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
16703
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'PostChartSeries', requestParam.shape_index, 'Integer')
16704
+ AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', 'shapeIndex', requestParam.shape_index)
16705
+ begin
16706
+ AsposeSlidesCloud::SpecUtils.api.post_chart_series_with_http_info(requestParam)
16707
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PostChartSeries', 'shapeIndex')
16708
+ fail "An exception expected"
16709
+ end
16710
+ rescue AsposeSlidesCloud::ApiError => e
16711
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PostChartSeries', 'shapeIndex', requestParam.shape_index)
16712
+ expect(e.code).to eq(code)
16713
+ expect(e.response_body).to include(message)
16714
+ rescue
16715
+ end
16716
+ end
16717
+
16718
+ it 'invalid series' do
16719
+ requestParam = AsposeSlidesCloud::PostChartSeriesRequest.new
16720
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PostChartSeries', 'String')
16721
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PostChartSeries', 'Integer')
16722
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PostChartSeries', 'Integer')
16723
+ requestParam.series = AsposeSlidesCloud::SpecUtils.get_param_value('series', 'PostChartSeries', 'Series')
16724
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PostChartSeries', 'String')
16725
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PostChartSeries', 'String')
15870
16726
  requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PostChartSeries', 'String')
15871
16727
  requestParam.series = AsposeSlidesCloud::SpecUtils.invalidize_param_value('series', 'PostChartSeries', requestParam.series, 'Series')
15872
16728
  AsposeSlidesCloud::SpecUtils.initialize('PostChartSeries', 'series', requestParam.series)
@@ -22550,6 +23406,504 @@ describe 'SlidesApi' do
22550
23406
  end
22551
23407
  end
22552
23408
 
23409
+ # unit tests for put_chart_category
23410
+ # Update a chart category.
23411
+ # @param name Document name.
23412
+ # @param slide_index Slide index.
23413
+ # @param shape_index Shape index.
23414
+ # @param category_index Category index.
23415
+ # @param [Hash] opts the optional parameters
23416
+ # @option opts [ChartCategory] :category Category DTO.
23417
+ # @option opts [String] :password Document password.
23418
+ # @option opts [String] :folder Document folder.
23419
+ # @option opts [String] :storage Document storage.
23420
+ # @return [Chart]
23421
+ describe 'put_chart_category test' do
23422
+ it 'should work' do
23423
+ requestParam = AsposeSlidesCloud::PutChartCategoryRequest.new
23424
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartCategory', 'String')
23425
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartCategory', 'Integer')
23426
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartCategory', 'Integer')
23427
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'PutChartCategory', 'Integer')
23428
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PutChartCategory', 'ChartCategory')
23429
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartCategory', 'String')
23430
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartCategory', 'String')
23431
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartCategory', 'String')
23432
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartCategory', nil, nil)
23433
+ o, c, _h = AsposeSlidesCloud::SpecUtils.api.put_chart_category_with_http_info(requestParam)
23434
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartCategory', nil, nil)
23435
+ expect(c).to eq(code)
23436
+ expect(o).not_to be_nil
23437
+ end
23438
+
23439
+ it 'invalid name' do
23440
+ requestParam = AsposeSlidesCloud::PutChartCategoryRequest.new
23441
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartCategory', 'String')
23442
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartCategory', 'Integer')
23443
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartCategory', 'Integer')
23444
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'PutChartCategory', 'Integer')
23445
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PutChartCategory', 'ChartCategory')
23446
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartCategory', 'String')
23447
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartCategory', 'String')
23448
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartCategory', 'String')
23449
+ requestParam.name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'PutChartCategory', requestParam.name, 'String')
23450
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartCategory', 'name', requestParam.name)
23451
+ begin
23452
+ AsposeSlidesCloud::SpecUtils.api.put_chart_category_with_http_info(requestParam)
23453
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartCategory', 'name')
23454
+ fail "An exception expected"
23455
+ end
23456
+ rescue AsposeSlidesCloud::ApiError => e
23457
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartCategory', 'name', requestParam.name)
23458
+ expect(e.code).to eq(code)
23459
+ expect(e.response_body).to include(message)
23460
+ rescue
23461
+ end
23462
+ end
23463
+
23464
+ it 'invalid slide_index' do
23465
+ requestParam = AsposeSlidesCloud::PutChartCategoryRequest.new
23466
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartCategory', 'String')
23467
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartCategory', 'Integer')
23468
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartCategory', 'Integer')
23469
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'PutChartCategory', 'Integer')
23470
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PutChartCategory', 'ChartCategory')
23471
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartCategory', 'String')
23472
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartCategory', 'String')
23473
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartCategory', 'String')
23474
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'PutChartCategory', requestParam.slide_index, 'Integer')
23475
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartCategory', 'slideIndex', requestParam.slide_index)
23476
+ begin
23477
+ AsposeSlidesCloud::SpecUtils.api.put_chart_category_with_http_info(requestParam)
23478
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartCategory', 'slideIndex')
23479
+ fail "An exception expected"
23480
+ end
23481
+ rescue AsposeSlidesCloud::ApiError => e
23482
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartCategory', 'slideIndex', requestParam.slide_index)
23483
+ expect(e.code).to eq(code)
23484
+ expect(e.response_body).to include(message)
23485
+ rescue
23486
+ end
23487
+ end
23488
+
23489
+ it 'invalid shape_index' do
23490
+ requestParam = AsposeSlidesCloud::PutChartCategoryRequest.new
23491
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartCategory', 'String')
23492
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartCategory', 'Integer')
23493
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartCategory', 'Integer')
23494
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'PutChartCategory', 'Integer')
23495
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PutChartCategory', 'ChartCategory')
23496
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartCategory', 'String')
23497
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartCategory', 'String')
23498
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartCategory', 'String')
23499
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'PutChartCategory', requestParam.shape_index, 'Integer')
23500
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartCategory', 'shapeIndex', requestParam.shape_index)
23501
+ begin
23502
+ AsposeSlidesCloud::SpecUtils.api.put_chart_category_with_http_info(requestParam)
23503
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartCategory', 'shapeIndex')
23504
+ fail "An exception expected"
23505
+ end
23506
+ rescue AsposeSlidesCloud::ApiError => e
23507
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartCategory', 'shapeIndex', requestParam.shape_index)
23508
+ expect(e.code).to eq(code)
23509
+ expect(e.response_body).to include(message)
23510
+ rescue
23511
+ end
23512
+ end
23513
+
23514
+ it 'invalid category_index' do
23515
+ requestParam = AsposeSlidesCloud::PutChartCategoryRequest.new
23516
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartCategory', 'String')
23517
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartCategory', 'Integer')
23518
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartCategory', 'Integer')
23519
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'PutChartCategory', 'Integer')
23520
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PutChartCategory', 'ChartCategory')
23521
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartCategory', 'String')
23522
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartCategory', 'String')
23523
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartCategory', 'String')
23524
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('categoryIndex', 'PutChartCategory', requestParam.category_index, 'Integer')
23525
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartCategory', 'categoryIndex', requestParam.category_index)
23526
+ begin
23527
+ AsposeSlidesCloud::SpecUtils.api.put_chart_category_with_http_info(requestParam)
23528
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartCategory', 'categoryIndex')
23529
+ fail "An exception expected"
23530
+ end
23531
+ rescue AsposeSlidesCloud::ApiError => e
23532
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartCategory', 'categoryIndex', requestParam.category_index)
23533
+ expect(e.code).to eq(code)
23534
+ expect(e.response_body).to include(message)
23535
+ rescue
23536
+ end
23537
+ end
23538
+
23539
+ it 'invalid category' do
23540
+ requestParam = AsposeSlidesCloud::PutChartCategoryRequest.new
23541
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartCategory', 'String')
23542
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartCategory', 'Integer')
23543
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartCategory', 'Integer')
23544
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'PutChartCategory', 'Integer')
23545
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PutChartCategory', 'ChartCategory')
23546
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartCategory', 'String')
23547
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartCategory', 'String')
23548
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartCategory', 'String')
23549
+ requestParam.category = AsposeSlidesCloud::SpecUtils.invalidize_param_value('category', 'PutChartCategory', requestParam.category, 'ChartCategory')
23550
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartCategory', 'category', requestParam.category)
23551
+ begin
23552
+ AsposeSlidesCloud::SpecUtils.api.put_chart_category_with_http_info(requestParam)
23553
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartCategory', 'category')
23554
+ fail "An exception expected"
23555
+ end
23556
+ rescue AsposeSlidesCloud::ApiError => e
23557
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartCategory', 'category', requestParam.category)
23558
+ expect(e.code).to eq(code)
23559
+ expect(e.response_body).to include(message)
23560
+ rescue
23561
+ end
23562
+ end
23563
+
23564
+ it 'invalid password' do
23565
+ requestParam = AsposeSlidesCloud::PutChartCategoryRequest.new
23566
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartCategory', 'String')
23567
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartCategory', 'Integer')
23568
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartCategory', 'Integer')
23569
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'PutChartCategory', 'Integer')
23570
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PutChartCategory', 'ChartCategory')
23571
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartCategory', 'String')
23572
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartCategory', 'String')
23573
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartCategory', 'String')
23574
+ requestParam.password = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'PutChartCategory', requestParam.password, 'String')
23575
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartCategory', 'password', requestParam.password)
23576
+ begin
23577
+ AsposeSlidesCloud::SpecUtils.api.put_chart_category_with_http_info(requestParam)
23578
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartCategory', 'password')
23579
+ fail "An exception expected"
23580
+ end
23581
+ rescue AsposeSlidesCloud::ApiError => e
23582
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartCategory', 'password', requestParam.password)
23583
+ expect(e.code).to eq(code)
23584
+ expect(e.response_body).to include(message)
23585
+ rescue
23586
+ end
23587
+ end
23588
+
23589
+ it 'invalid folder' do
23590
+ requestParam = AsposeSlidesCloud::PutChartCategoryRequest.new
23591
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartCategory', 'String')
23592
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartCategory', 'Integer')
23593
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartCategory', 'Integer')
23594
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'PutChartCategory', 'Integer')
23595
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PutChartCategory', 'ChartCategory')
23596
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartCategory', 'String')
23597
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartCategory', 'String')
23598
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartCategory', 'String')
23599
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'PutChartCategory', requestParam.folder, 'String')
23600
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartCategory', 'folder', requestParam.folder)
23601
+ begin
23602
+ AsposeSlidesCloud::SpecUtils.api.put_chart_category_with_http_info(requestParam)
23603
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartCategory', 'folder')
23604
+ fail "An exception expected"
23605
+ end
23606
+ rescue AsposeSlidesCloud::ApiError => e
23607
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartCategory', 'folder', requestParam.folder)
23608
+ expect(e.code).to eq(code)
23609
+ expect(e.response_body).to include(message)
23610
+ rescue
23611
+ end
23612
+ end
23613
+
23614
+ it 'invalid storage' do
23615
+ requestParam = AsposeSlidesCloud::PutChartCategoryRequest.new
23616
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartCategory', 'String')
23617
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartCategory', 'Integer')
23618
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartCategory', 'Integer')
23619
+ requestParam.category_index = AsposeSlidesCloud::SpecUtils.get_param_value('categoryIndex', 'PutChartCategory', 'Integer')
23620
+ requestParam.category = AsposeSlidesCloud::SpecUtils.get_param_value('category', 'PutChartCategory', 'ChartCategory')
23621
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartCategory', 'String')
23622
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartCategory', 'String')
23623
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartCategory', 'String')
23624
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'PutChartCategory', requestParam.storage, 'String')
23625
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartCategory', 'storage', requestParam.storage)
23626
+ begin
23627
+ AsposeSlidesCloud::SpecUtils.api.put_chart_category_with_http_info(requestParam)
23628
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartCategory', 'storage')
23629
+ fail "An exception expected"
23630
+ end
23631
+ rescue AsposeSlidesCloud::ApiError => e
23632
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartCategory', 'storage', requestParam.storage)
23633
+ expect(e.code).to eq(code)
23634
+ expect(e.response_body).to include(message)
23635
+ rescue
23636
+ end
23637
+ end
23638
+ end
23639
+
23640
+ # unit tests for put_chart_data_point
23641
+ # Update a data point in a chart series.
23642
+ # @param name Document name.
23643
+ # @param slide_index Slide index.
23644
+ # @param shape_index Shape index.
23645
+ # @param series_index Series index.
23646
+ # @param point_index Data point index.
23647
+ # @param [Hash] opts the optional parameters
23648
+ # @option opts [DataPoint] :data_point Data point DTO.
23649
+ # @option opts [String] :password Document password.
23650
+ # @option opts [String] :folder Document folder.
23651
+ # @option opts [String] :storage Document storage.
23652
+ # @return [Chart]
23653
+ describe 'put_chart_data_point test' do
23654
+ it 'should work' do
23655
+ requestParam = AsposeSlidesCloud::PutChartDataPointRequest.new
23656
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartDataPoint', 'String')
23657
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartDataPoint', 'Integer')
23658
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartDataPoint', 'Integer')
23659
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartDataPoint', 'Integer')
23660
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'PutChartDataPoint', 'Integer')
23661
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PutChartDataPoint', 'DataPoint')
23662
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartDataPoint', 'String')
23663
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartDataPoint', 'String')
23664
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartDataPoint', 'String')
23665
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartDataPoint', nil, nil)
23666
+ o, c, _h = AsposeSlidesCloud::SpecUtils.api.put_chart_data_point_with_http_info(requestParam)
23667
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartDataPoint', nil, nil)
23668
+ expect(c).to eq(code)
23669
+ expect(o).not_to be_nil
23670
+ end
23671
+
23672
+ it 'invalid name' do
23673
+ requestParam = AsposeSlidesCloud::PutChartDataPointRequest.new
23674
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartDataPoint', 'String')
23675
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartDataPoint', 'Integer')
23676
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartDataPoint', 'Integer')
23677
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartDataPoint', 'Integer')
23678
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'PutChartDataPoint', 'Integer')
23679
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PutChartDataPoint', 'DataPoint')
23680
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartDataPoint', 'String')
23681
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartDataPoint', 'String')
23682
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartDataPoint', 'String')
23683
+ requestParam.name = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'PutChartDataPoint', requestParam.name, 'String')
23684
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartDataPoint', 'name', requestParam.name)
23685
+ begin
23686
+ AsposeSlidesCloud::SpecUtils.api.put_chart_data_point_with_http_info(requestParam)
23687
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartDataPoint', 'name')
23688
+ fail "An exception expected"
23689
+ end
23690
+ rescue AsposeSlidesCloud::ApiError => e
23691
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartDataPoint', 'name', requestParam.name)
23692
+ expect(e.code).to eq(code)
23693
+ expect(e.response_body).to include(message)
23694
+ rescue
23695
+ end
23696
+ end
23697
+
23698
+ it 'invalid slide_index' do
23699
+ requestParam = AsposeSlidesCloud::PutChartDataPointRequest.new
23700
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartDataPoint', 'String')
23701
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartDataPoint', 'Integer')
23702
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartDataPoint', 'Integer')
23703
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartDataPoint', 'Integer')
23704
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'PutChartDataPoint', 'Integer')
23705
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PutChartDataPoint', 'DataPoint')
23706
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartDataPoint', 'String')
23707
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartDataPoint', 'String')
23708
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartDataPoint', 'String')
23709
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'PutChartDataPoint', requestParam.slide_index, 'Integer')
23710
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartDataPoint', 'slideIndex', requestParam.slide_index)
23711
+ begin
23712
+ AsposeSlidesCloud::SpecUtils.api.put_chart_data_point_with_http_info(requestParam)
23713
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartDataPoint', 'slideIndex')
23714
+ fail "An exception expected"
23715
+ end
23716
+ rescue AsposeSlidesCloud::ApiError => e
23717
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartDataPoint', 'slideIndex', requestParam.slide_index)
23718
+ expect(e.code).to eq(code)
23719
+ expect(e.response_body).to include(message)
23720
+ rescue
23721
+ end
23722
+ end
23723
+
23724
+ it 'invalid shape_index' do
23725
+ requestParam = AsposeSlidesCloud::PutChartDataPointRequest.new
23726
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartDataPoint', 'String')
23727
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartDataPoint', 'Integer')
23728
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartDataPoint', 'Integer')
23729
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartDataPoint', 'Integer')
23730
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'PutChartDataPoint', 'Integer')
23731
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PutChartDataPoint', 'DataPoint')
23732
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartDataPoint', 'String')
23733
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartDataPoint', 'String')
23734
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartDataPoint', 'String')
23735
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'PutChartDataPoint', requestParam.shape_index, 'Integer')
23736
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartDataPoint', 'shapeIndex', requestParam.shape_index)
23737
+ begin
23738
+ AsposeSlidesCloud::SpecUtils.api.put_chart_data_point_with_http_info(requestParam)
23739
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartDataPoint', 'shapeIndex')
23740
+ fail "An exception expected"
23741
+ end
23742
+ rescue AsposeSlidesCloud::ApiError => e
23743
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartDataPoint', 'shapeIndex', requestParam.shape_index)
23744
+ expect(e.code).to eq(code)
23745
+ expect(e.response_body).to include(message)
23746
+ rescue
23747
+ end
23748
+ end
23749
+
23750
+ it 'invalid series_index' do
23751
+ requestParam = AsposeSlidesCloud::PutChartDataPointRequest.new
23752
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartDataPoint', 'String')
23753
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartDataPoint', 'Integer')
23754
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartDataPoint', 'Integer')
23755
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartDataPoint', 'Integer')
23756
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'PutChartDataPoint', 'Integer')
23757
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PutChartDataPoint', 'DataPoint')
23758
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartDataPoint', 'String')
23759
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartDataPoint', 'String')
23760
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartDataPoint', 'String')
23761
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('seriesIndex', 'PutChartDataPoint', requestParam.series_index, 'Integer')
23762
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartDataPoint', 'seriesIndex', requestParam.series_index)
23763
+ begin
23764
+ AsposeSlidesCloud::SpecUtils.api.put_chart_data_point_with_http_info(requestParam)
23765
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartDataPoint', 'seriesIndex')
23766
+ fail "An exception expected"
23767
+ end
23768
+ rescue AsposeSlidesCloud::ApiError => e
23769
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartDataPoint', 'seriesIndex', requestParam.series_index)
23770
+ expect(e.code).to eq(code)
23771
+ expect(e.response_body).to include(message)
23772
+ rescue
23773
+ end
23774
+ end
23775
+
23776
+ it 'invalid point_index' do
23777
+ requestParam = AsposeSlidesCloud::PutChartDataPointRequest.new
23778
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartDataPoint', 'String')
23779
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartDataPoint', 'Integer')
23780
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartDataPoint', 'Integer')
23781
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartDataPoint', 'Integer')
23782
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'PutChartDataPoint', 'Integer')
23783
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PutChartDataPoint', 'DataPoint')
23784
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartDataPoint', 'String')
23785
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartDataPoint', 'String')
23786
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartDataPoint', 'String')
23787
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('pointIndex', 'PutChartDataPoint', requestParam.point_index, 'Integer')
23788
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartDataPoint', 'pointIndex', requestParam.point_index)
23789
+ begin
23790
+ AsposeSlidesCloud::SpecUtils.api.put_chart_data_point_with_http_info(requestParam)
23791
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartDataPoint', 'pointIndex')
23792
+ fail "An exception expected"
23793
+ end
23794
+ rescue AsposeSlidesCloud::ApiError => e
23795
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartDataPoint', 'pointIndex', requestParam.point_index)
23796
+ expect(e.code).to eq(code)
23797
+ expect(e.response_body).to include(message)
23798
+ rescue
23799
+ end
23800
+ end
23801
+
23802
+ it 'invalid data_point' do
23803
+ requestParam = AsposeSlidesCloud::PutChartDataPointRequest.new
23804
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartDataPoint', 'String')
23805
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartDataPoint', 'Integer')
23806
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartDataPoint', 'Integer')
23807
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartDataPoint', 'Integer')
23808
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'PutChartDataPoint', 'Integer')
23809
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PutChartDataPoint', 'DataPoint')
23810
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartDataPoint', 'String')
23811
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartDataPoint', 'String')
23812
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartDataPoint', 'String')
23813
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.invalidize_param_value('dataPoint', 'PutChartDataPoint', requestParam.data_point, 'DataPoint')
23814
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartDataPoint', 'dataPoint', requestParam.data_point)
23815
+ begin
23816
+ AsposeSlidesCloud::SpecUtils.api.put_chart_data_point_with_http_info(requestParam)
23817
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartDataPoint', 'dataPoint')
23818
+ fail "An exception expected"
23819
+ end
23820
+ rescue AsposeSlidesCloud::ApiError => e
23821
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartDataPoint', 'dataPoint', requestParam.data_point)
23822
+ expect(e.code).to eq(code)
23823
+ expect(e.response_body).to include(message)
23824
+ rescue
23825
+ end
23826
+ end
23827
+
23828
+ it 'invalid password' do
23829
+ requestParam = AsposeSlidesCloud::PutChartDataPointRequest.new
23830
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartDataPoint', 'String')
23831
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartDataPoint', 'Integer')
23832
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartDataPoint', 'Integer')
23833
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartDataPoint', 'Integer')
23834
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'PutChartDataPoint', 'Integer')
23835
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PutChartDataPoint', 'DataPoint')
23836
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartDataPoint', 'String')
23837
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartDataPoint', 'String')
23838
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartDataPoint', 'String')
23839
+ requestParam.password = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'PutChartDataPoint', requestParam.password, 'String')
23840
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartDataPoint', 'password', requestParam.password)
23841
+ begin
23842
+ AsposeSlidesCloud::SpecUtils.api.put_chart_data_point_with_http_info(requestParam)
23843
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartDataPoint', 'password')
23844
+ fail "An exception expected"
23845
+ end
23846
+ rescue AsposeSlidesCloud::ApiError => e
23847
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartDataPoint', 'password', requestParam.password)
23848
+ expect(e.code).to eq(code)
23849
+ expect(e.response_body).to include(message)
23850
+ rescue
23851
+ end
23852
+ end
23853
+
23854
+ it 'invalid folder' do
23855
+ requestParam = AsposeSlidesCloud::PutChartDataPointRequest.new
23856
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartDataPoint', 'String')
23857
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartDataPoint', 'Integer')
23858
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartDataPoint', 'Integer')
23859
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartDataPoint', 'Integer')
23860
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'PutChartDataPoint', 'Integer')
23861
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PutChartDataPoint', 'DataPoint')
23862
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartDataPoint', 'String')
23863
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartDataPoint', 'String')
23864
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartDataPoint', 'String')
23865
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'PutChartDataPoint', requestParam.folder, 'String')
23866
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartDataPoint', 'folder', requestParam.folder)
23867
+ begin
23868
+ AsposeSlidesCloud::SpecUtils.api.put_chart_data_point_with_http_info(requestParam)
23869
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartDataPoint', 'folder')
23870
+ fail "An exception expected"
23871
+ end
23872
+ rescue AsposeSlidesCloud::ApiError => e
23873
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartDataPoint', 'folder', requestParam.folder)
23874
+ expect(e.code).to eq(code)
23875
+ expect(e.response_body).to include(message)
23876
+ rescue
23877
+ end
23878
+ end
23879
+
23880
+ it 'invalid storage' do
23881
+ requestParam = AsposeSlidesCloud::PutChartDataPointRequest.new
23882
+ requestParam.name = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'PutChartDataPoint', 'String')
23883
+ requestParam.slide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'PutChartDataPoint', 'Integer')
23884
+ requestParam.shape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'PutChartDataPoint', 'Integer')
23885
+ requestParam.series_index = AsposeSlidesCloud::SpecUtils.get_param_value('seriesIndex', 'PutChartDataPoint', 'Integer')
23886
+ requestParam.point_index = AsposeSlidesCloud::SpecUtils.get_param_value('pointIndex', 'PutChartDataPoint', 'Integer')
23887
+ requestParam.data_point = AsposeSlidesCloud::SpecUtils.get_param_value('dataPoint', 'PutChartDataPoint', 'DataPoint')
23888
+ requestParam.password = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'PutChartDataPoint', 'String')
23889
+ requestParam.folder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'PutChartDataPoint', 'String')
23890
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'PutChartDataPoint', 'String')
23891
+ requestParam.storage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'PutChartDataPoint', requestParam.storage, 'String')
23892
+ AsposeSlidesCloud::SpecUtils.initialize('PutChartDataPoint', 'storage', requestParam.storage)
23893
+ begin
23894
+ AsposeSlidesCloud::SpecUtils.api.put_chart_data_point_with_http_info(requestParam)
23895
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('PutChartDataPoint', 'storage')
23896
+ fail "An exception expected"
23897
+ end
23898
+ rescue AsposeSlidesCloud::ApiError => e
23899
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('PutChartDataPoint', 'storage', requestParam.storage)
23900
+ expect(e.code).to eq(code)
23901
+ expect(e.response_body).to include(message)
23902
+ rescue
23903
+ end
23904
+ end
23905
+ end
23906
+
22553
23907
  # unit tests for put_chart_series
22554
23908
  # Update a series in a chart.
22555
23909
  # @param name Document name.