aspose_slides_cloud 24.5.0 → 24.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +11 -9
  3. data/README.md +17 -0
  4. data/TestData/pictureFrame.html +39 -0
  5. data/TestData/test.pptx +0 -0
  6. data/aspose_slides_cloud.gemspec +1 -0
  7. data/lib/aspose_slides_cloud/api/slides_api.rb +75 -204
  8. data/lib/aspose_slides_cloud/api/slides_async_api.rb +8 -8
  9. data/lib/aspose_slides_cloud/api_client.rb +15 -3
  10. data/lib/aspose_slides_cloud/models/document_property.rb +0 -5
  11. data/lib/aspose_slides_cloud/models/export_format.rb +1 -0
  12. data/lib/aspose_slides_cloud/models/export_options.rb +23 -1
  13. data/lib/aspose_slides_cloud/models/gif_export_options.rb +2 -1
  14. data/lib/aspose_slides_cloud/models/gradient_fill.rb +0 -25
  15. data/lib/aspose_slides_cloud/models/html5_export_options.rb +13 -2
  16. data/lib/aspose_slides_cloud/models/html_export_options.rb +2 -1
  17. data/lib/aspose_slides_cloud/models/image_export_options.rb +2 -1
  18. data/lib/aspose_slides_cloud/models/image_export_options_base.rb +2 -1
  19. data/lib/aspose_slides_cloud/models/markdown_export_options.rb +2 -1
  20. data/lib/aspose_slides_cloud/models/operation.rb +1 -10
  21. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +33 -2
  22. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +26 -3
  23. data/lib/aspose_slides_cloud/models/protection_properties.rb +0 -10
  24. data/lib/aspose_slides_cloud/models/save.rb +2 -2
  25. data/lib/aspose_slides_cloud/models/save_slide.rb +2 -2
  26. data/lib/aspose_slides_cloud/models/slide.rb +0 -5
  27. data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
  28. data/lib/aspose_slides_cloud/models/svg_export_options.rb +2 -1
  29. data/lib/aspose_slides_cloud/models/swf_export_options.rb +2 -1
  30. data/lib/aspose_slides_cloud/models/table.rb +12 -2
  31. data/lib/aspose_slides_cloud/models/table_cell.rb +11 -1
  32. data/lib/aspose_slides_cloud/models/table_cell_merge_options.rb +0 -5
  33. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +2 -1
  34. data/lib/aspose_slides_cloud/models/video_export_options.rb +2 -1
  35. data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -1
  36. data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -1
  37. data/lib/aspose_slides_cloud/version.rb +1 -1
  38. data/spec/api/slides_api_spec.rb +96 -543
  39. data/spec/use_cases/text_spec.rb +7 -4
  40. metadata +23 -2
@@ -21966,252 +21966,6 @@ describe 'SlidesApi' do
21966
21966
  end
21967
21967
  end
21968
21968
 
21969
- # unit tests for download_portion_as_math_ml
21970
- # Convert Mathematical Text to MathML Format
21971
- # @param name Document name.
21972
- # @param slide_index Slide index.
21973
- # @param shape_index Shape index.
21974
- # @param paragraph_index Paragraph index.
21975
- # @param portion_index Portion index.
21976
- # @param [Hash] opts the optional parameters
21977
- # @option opts [String] :password Document password.
21978
- # @option opts [String] :folder Document folder.
21979
- # @option opts [String] :storage Document storage.
21980
- # @return [File]
21981
- describe 'download_portion_as_math_ml test' do
21982
- it 'should work' do
21983
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadPortionAsMathMl', 'String')
21984
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadPortionAsMathMl', 'Integer')
21985
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadPortionAsMathMl', 'Integer')
21986
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadPortionAsMathMl', 'Integer')
21987
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadPortionAsMathMl', 'Integer')
21988
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadPortionAsMathMl', 'String')
21989
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadPortionAsMathMl', 'String')
21990
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadPortionAsMathMl', 'String')
21991
- AsposeSlidesCloud::SpecUtils.initialize('DownloadPortionAsMathMl', nil, nil)
21992
- o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.download_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, parampassword, paramfolder, paramstorage)
21993
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', nil, nil, nil)
21994
- expect(c).to eq(code)
21995
- expect(o).not_to be_nil
21996
- end
21997
-
21998
- it 'invalid name' do
21999
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadPortionAsMathMl', 'String')
22000
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadPortionAsMathMl', 'Integer')
22001
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadPortionAsMathMl', 'Integer')
22002
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadPortionAsMathMl', 'Integer')
22003
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadPortionAsMathMl', 'Integer')
22004
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadPortionAsMathMl', 'String')
22005
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadPortionAsMathMl', 'String')
22006
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadPortionAsMathMl', 'String')
22007
- paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'DownloadPortionAsMathMl', paramname, 'String')
22008
- AsposeSlidesCloud::SpecUtils.initialize('DownloadPortionAsMathMl', 'name', paramname)
22009
- begin
22010
- AsposeSlidesCloud::SpecUtils.testSlidesApi.download_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, parampassword, paramfolder, paramstorage)
22011
- unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadPortionAsMathMl', 'name')
22012
- fail "An exception expected"
22013
- end
22014
- rescue AsposeSlidesCloud::ApiError => e
22015
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', 'name', paramname, 'String')
22016
- expect(e.code).to eq(code)
22017
- expect(e.response_body).to include(message)
22018
- rescue ArgumentError => e
22019
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', 'name', paramname, 'String')
22020
- expect(400).to eq(code)
22021
- expect(e.message).to include(message)
22022
- end
22023
- end
22024
-
22025
- it 'invalid slide_index' do
22026
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadPortionAsMathMl', 'String')
22027
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadPortionAsMathMl', 'Integer')
22028
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadPortionAsMathMl', 'Integer')
22029
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadPortionAsMathMl', 'Integer')
22030
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadPortionAsMathMl', 'Integer')
22031
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadPortionAsMathMl', 'String')
22032
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadPortionAsMathMl', 'String')
22033
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadPortionAsMathMl', 'String')
22034
- paramslide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'DownloadPortionAsMathMl', paramslide_index, 'Integer')
22035
- AsposeSlidesCloud::SpecUtils.initialize('DownloadPortionAsMathMl', 'slideIndex', paramslide_index)
22036
- begin
22037
- AsposeSlidesCloud::SpecUtils.testSlidesApi.download_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, parampassword, paramfolder, paramstorage)
22038
- unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadPortionAsMathMl', 'slideIndex')
22039
- fail "An exception expected"
22040
- end
22041
- rescue AsposeSlidesCloud::ApiError => e
22042
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', 'slideIndex', paramslide_index, 'Integer')
22043
- expect(e.code).to eq(code)
22044
- expect(e.response_body).to include(message)
22045
- rescue ArgumentError => e
22046
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', 'slideIndex', paramslide_index, 'Integer')
22047
- expect(400).to eq(code)
22048
- expect(e.message).to include(message)
22049
- end
22050
- end
22051
-
22052
- it 'invalid shape_index' do
22053
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadPortionAsMathMl', 'String')
22054
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadPortionAsMathMl', 'Integer')
22055
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadPortionAsMathMl', 'Integer')
22056
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadPortionAsMathMl', 'Integer')
22057
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadPortionAsMathMl', 'Integer')
22058
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadPortionAsMathMl', 'String')
22059
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadPortionAsMathMl', 'String')
22060
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadPortionAsMathMl', 'String')
22061
- paramshape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'DownloadPortionAsMathMl', paramshape_index, 'Integer')
22062
- AsposeSlidesCloud::SpecUtils.initialize('DownloadPortionAsMathMl', 'shapeIndex', paramshape_index)
22063
- begin
22064
- AsposeSlidesCloud::SpecUtils.testSlidesApi.download_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, parampassword, paramfolder, paramstorage)
22065
- unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadPortionAsMathMl', 'shapeIndex')
22066
- fail "An exception expected"
22067
- end
22068
- rescue AsposeSlidesCloud::ApiError => e
22069
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', 'shapeIndex', paramshape_index, 'Integer')
22070
- expect(e.code).to eq(code)
22071
- expect(e.response_body).to include(message)
22072
- rescue ArgumentError => e
22073
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', 'shapeIndex', paramshape_index, 'Integer')
22074
- expect(400).to eq(code)
22075
- expect(e.message).to include(message)
22076
- end
22077
- end
22078
-
22079
- it 'invalid paragraph_index' do
22080
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadPortionAsMathMl', 'String')
22081
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadPortionAsMathMl', 'Integer')
22082
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadPortionAsMathMl', 'Integer')
22083
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadPortionAsMathMl', 'Integer')
22084
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadPortionAsMathMl', 'Integer')
22085
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadPortionAsMathMl', 'String')
22086
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadPortionAsMathMl', 'String')
22087
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadPortionAsMathMl', 'String')
22088
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('paragraphIndex', 'DownloadPortionAsMathMl', paramparagraph_index, 'Integer')
22089
- AsposeSlidesCloud::SpecUtils.initialize('DownloadPortionAsMathMl', 'paragraphIndex', paramparagraph_index)
22090
- begin
22091
- AsposeSlidesCloud::SpecUtils.testSlidesApi.download_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, parampassword, paramfolder, paramstorage)
22092
- unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadPortionAsMathMl', 'paragraphIndex')
22093
- fail "An exception expected"
22094
- end
22095
- rescue AsposeSlidesCloud::ApiError => e
22096
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', 'paragraphIndex', paramparagraph_index, 'Integer')
22097
- expect(e.code).to eq(code)
22098
- expect(e.response_body).to include(message)
22099
- rescue ArgumentError => e
22100
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', 'paragraphIndex', paramparagraph_index, 'Integer')
22101
- expect(400).to eq(code)
22102
- expect(e.message).to include(message)
22103
- end
22104
- end
22105
-
22106
- it 'invalid portion_index' do
22107
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadPortionAsMathMl', 'String')
22108
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadPortionAsMathMl', 'Integer')
22109
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadPortionAsMathMl', 'Integer')
22110
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadPortionAsMathMl', 'Integer')
22111
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadPortionAsMathMl', 'Integer')
22112
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadPortionAsMathMl', 'String')
22113
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadPortionAsMathMl', 'String')
22114
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadPortionAsMathMl', 'String')
22115
- paramportion_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('portionIndex', 'DownloadPortionAsMathMl', paramportion_index, 'Integer')
22116
- AsposeSlidesCloud::SpecUtils.initialize('DownloadPortionAsMathMl', 'portionIndex', paramportion_index)
22117
- begin
22118
- AsposeSlidesCloud::SpecUtils.testSlidesApi.download_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, parampassword, paramfolder, paramstorage)
22119
- unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadPortionAsMathMl', 'portionIndex')
22120
- fail "An exception expected"
22121
- end
22122
- rescue AsposeSlidesCloud::ApiError => e
22123
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', 'portionIndex', paramportion_index, 'Integer')
22124
- expect(e.code).to eq(code)
22125
- expect(e.response_body).to include(message)
22126
- rescue ArgumentError => e
22127
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', 'portionIndex', paramportion_index, 'Integer')
22128
- expect(400).to eq(code)
22129
- expect(e.message).to include(message)
22130
- end
22131
- end
22132
-
22133
- it 'invalid password' do
22134
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadPortionAsMathMl', 'String')
22135
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadPortionAsMathMl', 'Integer')
22136
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadPortionAsMathMl', 'Integer')
22137
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadPortionAsMathMl', 'Integer')
22138
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadPortionAsMathMl', 'Integer')
22139
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadPortionAsMathMl', 'String')
22140
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadPortionAsMathMl', 'String')
22141
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadPortionAsMathMl', 'String')
22142
- parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'DownloadPortionAsMathMl', parampassword, 'String')
22143
- AsposeSlidesCloud::SpecUtils.initialize('DownloadPortionAsMathMl', 'password', parampassword)
22144
- begin
22145
- AsposeSlidesCloud::SpecUtils.testSlidesApi.download_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, parampassword, paramfolder, paramstorage)
22146
- unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadPortionAsMathMl', 'password')
22147
- fail "An exception expected"
22148
- end
22149
- rescue AsposeSlidesCloud::ApiError => e
22150
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', 'password', parampassword, 'String')
22151
- expect(e.code).to eq(code)
22152
- expect(e.response_body).to include(message)
22153
- rescue ArgumentError => e
22154
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', 'password', parampassword, 'String')
22155
- expect(400).to eq(code)
22156
- expect(e.message).to include(message)
22157
- end
22158
- end
22159
-
22160
- it 'invalid folder' do
22161
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadPortionAsMathMl', 'String')
22162
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadPortionAsMathMl', 'Integer')
22163
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadPortionAsMathMl', 'Integer')
22164
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadPortionAsMathMl', 'Integer')
22165
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadPortionAsMathMl', 'Integer')
22166
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadPortionAsMathMl', 'String')
22167
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadPortionAsMathMl', 'String')
22168
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadPortionAsMathMl', 'String')
22169
- paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'DownloadPortionAsMathMl', paramfolder, 'String')
22170
- AsposeSlidesCloud::SpecUtils.initialize('DownloadPortionAsMathMl', 'folder', paramfolder)
22171
- begin
22172
- AsposeSlidesCloud::SpecUtils.testSlidesApi.download_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, parampassword, paramfolder, paramstorage)
22173
- unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadPortionAsMathMl', 'folder')
22174
- fail "An exception expected"
22175
- end
22176
- rescue AsposeSlidesCloud::ApiError => e
22177
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', 'folder', paramfolder, 'String')
22178
- expect(e.code).to eq(code)
22179
- expect(e.response_body).to include(message)
22180
- rescue ArgumentError => e
22181
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', 'folder', paramfolder, 'String')
22182
- expect(400).to eq(code)
22183
- expect(e.message).to include(message)
22184
- end
22185
- end
22186
-
22187
- it 'invalid storage' do
22188
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'DownloadPortionAsMathMl', 'String')
22189
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'DownloadPortionAsMathMl', 'Integer')
22190
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'DownloadPortionAsMathMl', 'Integer')
22191
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'DownloadPortionAsMathMl', 'Integer')
22192
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'DownloadPortionAsMathMl', 'Integer')
22193
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'DownloadPortionAsMathMl', 'String')
22194
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'DownloadPortionAsMathMl', 'String')
22195
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'DownloadPortionAsMathMl', 'String')
22196
- paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'DownloadPortionAsMathMl', paramstorage, 'String')
22197
- AsposeSlidesCloud::SpecUtils.initialize('DownloadPortionAsMathMl', 'storage', paramstorage)
22198
- begin
22199
- AsposeSlidesCloud::SpecUtils.testSlidesApi.download_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, parampassword, paramfolder, paramstorage)
22200
- unless AsposeSlidesCloud::SpecUtils.no_exception?('DownloadPortionAsMathMl', 'storage')
22201
- fail "An exception expected"
22202
- end
22203
- rescue AsposeSlidesCloud::ApiError => e
22204
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', 'storage', paramstorage, 'String')
22205
- expect(e.code).to eq(code)
22206
- expect(e.response_body).to include(message)
22207
- rescue ArgumentError => e
22208
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('DownloadPortionAsMathMl', 'storage', paramstorage, 'String')
22209
- expect(400).to eq(code)
22210
- expect(e.message).to include(message)
22211
- end
22212
- end
22213
- end
22214
-
22215
21969
  # unit tests for download_presentation
22216
21970
  # Save a presentation to a specified format.
22217
21971
  # @param name Document name.
@@ -26012,6 +25766,20 @@ describe 'SlidesApi' do
26012
25766
  end
26013
25767
  end
26014
25768
 
25769
+ # unit tests for get_html5_templates
25770
+ # Get default templates for HTML5 export.
25771
+ # @param [Hash] opts the optional parameters
25772
+ # @return [File]
25773
+ describe 'get_html5_templates test' do
25774
+ it 'should work' do
25775
+ AsposeSlidesCloud::SpecUtils.initialize('GetHtml5Templates', nil, nil)
25776
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.get_html5_templates_with_http_info
25777
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('GetHtml5Templates', nil, nil, nil)
25778
+ expect(c).to eq(code)
25779
+ expect(o).not_to be_nil
25780
+ end
25781
+ end
25782
+
26015
25783
  # unit tests for get_layout_slide
26016
25784
  # Read presentation layoutSlide info.
26017
25785
  # @param name Document name.
@@ -38928,6 +38696,7 @@ describe 'SlidesApi' do
38928
38696
  # @param new_value Text value to replace with.
38929
38697
  # @param [Hash] opts the optional parameters
38930
38698
  # @option opts [BOOLEAN] :ignore_case True if character case must be ignored.
38699
+ # @option opts [BOOLEAN] :whole_words_only True to replace whole words only.
38931
38700
  # @option opts [String] :password Document password.
38932
38701
  # @option opts [String] :folder Document folder.
38933
38702
  # @option opts [String] :storage Document storage.
@@ -38938,11 +38707,12 @@ describe 'SlidesApi' do
38938
38707
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
38939
38708
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
38940
38709
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
38710
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
38941
38711
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
38942
38712
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
38943
38713
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
38944
38714
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', nil, nil)
38945
- o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
38715
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
38946
38716
  code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationText', nil, nil, nil)
38947
38717
  expect(c).to eq(code)
38948
38718
  expect(o).not_to be_nil
@@ -38953,13 +38723,14 @@ describe 'SlidesApi' do
38953
38723
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
38954
38724
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
38955
38725
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
38726
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
38956
38727
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
38957
38728
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
38958
38729
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
38959
38730
  paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'ReplacePresentationText', paramname, 'String')
38960
38731
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', 'name', paramname)
38961
38732
  begin
38962
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
38733
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
38963
38734
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationText', 'name')
38964
38735
  fail "An exception expected"
38965
38736
  end
@@ -38979,13 +38750,14 @@ describe 'SlidesApi' do
38979
38750
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
38980
38751
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
38981
38752
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
38753
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
38982
38754
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
38983
38755
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
38984
38756
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
38985
38757
  paramold_value = AsposeSlidesCloud::SpecUtils.invalidize_param_value('oldValue', 'ReplacePresentationText', paramold_value, 'String')
38986
38758
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', 'oldValue', paramold_value)
38987
38759
  begin
38988
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
38760
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
38989
38761
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationText', 'oldValue')
38990
38762
  fail "An exception expected"
38991
38763
  end
@@ -39005,13 +38777,14 @@ describe 'SlidesApi' do
39005
38777
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
39006
38778
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
39007
38779
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
38780
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
39008
38781
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
39009
38782
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
39010
38783
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
39011
38784
  paramnew_value = AsposeSlidesCloud::SpecUtils.invalidize_param_value('newValue', 'ReplacePresentationText', paramnew_value, 'String')
39012
38785
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', 'newValue', paramnew_value)
39013
38786
  begin
39014
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
38787
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
39015
38788
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationText', 'newValue')
39016
38789
  fail "An exception expected"
39017
38790
  end
@@ -39031,13 +38804,14 @@ describe 'SlidesApi' do
39031
38804
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
39032
38805
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
39033
38806
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
38807
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
39034
38808
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
39035
38809
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
39036
38810
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
39037
38811
  paramignore_case = AsposeSlidesCloud::SpecUtils.invalidize_param_value('ignoreCase', 'ReplacePresentationText', paramignore_case, 'BOOLEAN')
39038
38812
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', 'ignoreCase', paramignore_case)
39039
38813
  begin
39040
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
38814
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
39041
38815
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationText', 'ignoreCase')
39042
38816
  fail "An exception expected"
39043
38817
  end
@@ -39052,18 +38826,46 @@ describe 'SlidesApi' do
39052
38826
  end
39053
38827
  end
39054
38828
 
38829
+ it 'invalid whole_words_only' do
38830
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationText', 'String')
38831
+ paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
38832
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
38833
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
38834
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
38835
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
38836
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
38837
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
38838
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.invalidize_param_value('wholeWordsOnly', 'ReplacePresentationText', paramwhole_words_only, 'BOOLEAN')
38839
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', 'wholeWordsOnly', paramwhole_words_only)
38840
+ begin
38841
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
38842
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationText', 'wholeWordsOnly')
38843
+ fail "An exception expected"
38844
+ end
38845
+ rescue AsposeSlidesCloud::ApiError => e
38846
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationText', 'wholeWordsOnly', paramwhole_words_only, 'BOOLEAN')
38847
+ expect(e.code).to eq(code)
38848
+ expect(e.response_body).to include(message)
38849
+ rescue ArgumentError => e
38850
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationText', 'wholeWordsOnly', paramwhole_words_only, 'BOOLEAN')
38851
+ expect(400).to eq(code)
38852
+ expect(e.message).to include(message)
38853
+ end
38854
+ end
38855
+
39055
38856
  it 'invalid password' do
39056
38857
  paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationText', 'String')
39057
38858
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
39058
38859
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
39059
38860
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
38861
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
39060
38862
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
39061
38863
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
39062
38864
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
39063
38865
  parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'ReplacePresentationText', parampassword, 'String')
39064
38866
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', 'password', parampassword)
39065
38867
  begin
39066
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
38868
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
39067
38869
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationText', 'password')
39068
38870
  fail "An exception expected"
39069
38871
  end
@@ -39083,13 +38885,14 @@ describe 'SlidesApi' do
39083
38885
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
39084
38886
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
39085
38887
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
38888
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
39086
38889
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
39087
38890
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
39088
38891
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
39089
38892
  paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'ReplacePresentationText', paramfolder, 'String')
39090
38893
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', 'folder', paramfolder)
39091
38894
  begin
39092
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
38895
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
39093
38896
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationText', 'folder')
39094
38897
  fail "An exception expected"
39095
38898
  end
@@ -39109,13 +38912,14 @@ describe 'SlidesApi' do
39109
38912
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
39110
38913
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
39111
38914
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
38915
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
39112
38916
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
39113
38917
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
39114
38918
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
39115
38919
  paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'ReplacePresentationText', paramstorage, 'String')
39116
38920
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', 'storage', paramstorage)
39117
38921
  begin
39118
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
38922
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
39119
38923
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationText', 'storage')
39120
38924
  fail "An exception expected"
39121
38925
  end
@@ -39138,6 +38942,7 @@ describe 'SlidesApi' do
39138
38942
  # @param new_value Text value to replace with.
39139
38943
  # @param [Hash] opts the optional parameters
39140
38944
  # @option opts [BOOLEAN] :ignore_case True if character case must be ignored.
38945
+ # @option opts [BOOLEAN] :whole_words_only True to replace whole words only.
39141
38946
  # @option opts [String] :password Document password.
39142
38947
  # @return [File]
39143
38948
  describe 'replace_presentation_text_online test' do
@@ -39146,9 +38951,10 @@ describe 'SlidesApi' do
39146
38951
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationTextOnline', 'String')
39147
38952
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationTextOnline', 'String')
39148
38953
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationTextOnline', 'BOOLEAN')
38954
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationTextOnline', 'BOOLEAN')
39149
38955
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationTextOnline', 'String')
39150
38956
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationTextOnline', nil, nil)
39151
- o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, parampassword)
38957
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword)
39152
38958
  code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationTextOnline', nil, nil, nil)
39153
38959
  expect(c).to eq(code)
39154
38960
  expect(o).not_to be_nil
@@ -39159,11 +38965,12 @@ describe 'SlidesApi' do
39159
38965
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationTextOnline', 'String')
39160
38966
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationTextOnline', 'String')
39161
38967
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationTextOnline', 'BOOLEAN')
38968
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationTextOnline', 'BOOLEAN')
39162
38969
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationTextOnline', 'String')
39163
38970
  paramdocument = AsposeSlidesCloud::SpecUtils.invalidize_param_value('document', 'ReplacePresentationTextOnline', paramdocument, 'File')
39164
38971
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationTextOnline', 'document', paramdocument)
39165
38972
  begin
39166
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, parampassword)
38973
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword)
39167
38974
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationTextOnline', 'document')
39168
38975
  fail "An exception expected"
39169
38976
  end
@@ -39183,11 +38990,12 @@ describe 'SlidesApi' do
39183
38990
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationTextOnline', 'String')
39184
38991
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationTextOnline', 'String')
39185
38992
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationTextOnline', 'BOOLEAN')
38993
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationTextOnline', 'BOOLEAN')
39186
38994
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationTextOnline', 'String')
39187
38995
  paramold_value = AsposeSlidesCloud::SpecUtils.invalidize_param_value('oldValue', 'ReplacePresentationTextOnline', paramold_value, 'String')
39188
38996
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationTextOnline', 'oldValue', paramold_value)
39189
38997
  begin
39190
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, parampassword)
38998
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword)
39191
38999
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationTextOnline', 'oldValue')
39192
39000
  fail "An exception expected"
39193
39001
  end
@@ -39207,11 +39015,12 @@ describe 'SlidesApi' do
39207
39015
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationTextOnline', 'String')
39208
39016
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationTextOnline', 'String')
39209
39017
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationTextOnline', 'BOOLEAN')
39018
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationTextOnline', 'BOOLEAN')
39210
39019
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationTextOnline', 'String')
39211
39020
  paramnew_value = AsposeSlidesCloud::SpecUtils.invalidize_param_value('newValue', 'ReplacePresentationTextOnline', paramnew_value, 'String')
39212
39021
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationTextOnline', 'newValue', paramnew_value)
39213
39022
  begin
39214
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, parampassword)
39023
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword)
39215
39024
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationTextOnline', 'newValue')
39216
39025
  fail "An exception expected"
39217
39026
  end
@@ -39231,11 +39040,12 @@ describe 'SlidesApi' do
39231
39040
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationTextOnline', 'String')
39232
39041
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationTextOnline', 'String')
39233
39042
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationTextOnline', 'BOOLEAN')
39043
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationTextOnline', 'BOOLEAN')
39234
39044
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationTextOnline', 'String')
39235
39045
  paramignore_case = AsposeSlidesCloud::SpecUtils.invalidize_param_value('ignoreCase', 'ReplacePresentationTextOnline', paramignore_case, 'BOOLEAN')
39236
39046
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationTextOnline', 'ignoreCase', paramignore_case)
39237
39047
  begin
39238
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, parampassword)
39048
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword)
39239
39049
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationTextOnline', 'ignoreCase')
39240
39050
  fail "An exception expected"
39241
39051
  end
@@ -39250,16 +39060,42 @@ describe 'SlidesApi' do
39250
39060
  end
39251
39061
  end
39252
39062
 
39063
+ it 'invalid whole_words_only' do
39064
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplacePresentationTextOnline', 'File')
39065
+ paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationTextOnline', 'String')
39066
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationTextOnline', 'String')
39067
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationTextOnline', 'BOOLEAN')
39068
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationTextOnline', 'BOOLEAN')
39069
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationTextOnline', 'String')
39070
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.invalidize_param_value('wholeWordsOnly', 'ReplacePresentationTextOnline', paramwhole_words_only, 'BOOLEAN')
39071
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationTextOnline', 'wholeWordsOnly', paramwhole_words_only)
39072
+ begin
39073
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword)
39074
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationTextOnline', 'wholeWordsOnly')
39075
+ fail "An exception expected"
39076
+ end
39077
+ rescue AsposeSlidesCloud::ApiError => e
39078
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationTextOnline', 'wholeWordsOnly', paramwhole_words_only, 'BOOLEAN')
39079
+ expect(e.code).to eq(code)
39080
+ expect(e.response_body).to include(message)
39081
+ rescue ArgumentError => e
39082
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationTextOnline', 'wholeWordsOnly', paramwhole_words_only, 'BOOLEAN')
39083
+ expect(400).to eq(code)
39084
+ expect(e.message).to include(message)
39085
+ end
39086
+ end
39087
+
39253
39088
  it 'invalid password' do
39254
39089
  paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplacePresentationTextOnline', 'File')
39255
39090
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationTextOnline', 'String')
39256
39091
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationTextOnline', 'String')
39257
39092
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationTextOnline', 'BOOLEAN')
39093
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationTextOnline', 'BOOLEAN')
39258
39094
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationTextOnline', 'String')
39259
39095
  parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'ReplacePresentationTextOnline', parampassword, 'String')
39260
39096
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationTextOnline', 'password', parampassword)
39261
39097
  begin
39262
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, parampassword)
39098
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword)
39263
39099
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationTextOnline', 'password')
39264
39100
  fail "An exception expected"
39265
39101
  end
@@ -40441,289 +40277,6 @@ describe 'SlidesApi' do
40441
40277
  end
40442
40278
  end
40443
40279
 
40444
- # unit tests for save_portion_as_math_ml
40445
- # Convert Mathematical Text to MathML Format and saves result to the storage
40446
- # @param name Document name.
40447
- # @param slide_index Slide index.
40448
- # @param shape_index Shape index.
40449
- # @param paragraph_index Paragraph index.
40450
- # @param portion_index Portion index.
40451
- # @param out_path Path to save result.
40452
- # @param [Hash] opts the optional parameters
40453
- # @option opts [String] :password Document password.
40454
- # @option opts [String] :folder Presentation folder.
40455
- # @option opts [String] :storage Presentation storage.
40456
- # @return [nil]
40457
- describe 'save_portion_as_math_ml test' do
40458
- it 'should work' do
40459
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SavePortionAsMathMl', 'String')
40460
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SavePortionAsMathMl', 'Integer')
40461
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SavePortionAsMathMl', 'Integer')
40462
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SavePortionAsMathMl', 'Integer')
40463
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SavePortionAsMathMl', 'Integer')
40464
- paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SavePortionAsMathMl', 'String')
40465
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SavePortionAsMathMl', 'String')
40466
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SavePortionAsMathMl', 'String')
40467
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SavePortionAsMathMl', 'String')
40468
- AsposeSlidesCloud::SpecUtils.initialize('SavePortionAsMathMl', nil, nil)
40469
- o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.save_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramout_path, parampassword, paramfolder, paramstorage)
40470
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', nil, nil, nil)
40471
- expect(c).to eq(code)
40472
- end
40473
-
40474
- it 'invalid name' do
40475
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SavePortionAsMathMl', 'String')
40476
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SavePortionAsMathMl', 'Integer')
40477
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SavePortionAsMathMl', 'Integer')
40478
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SavePortionAsMathMl', 'Integer')
40479
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SavePortionAsMathMl', 'Integer')
40480
- paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SavePortionAsMathMl', 'String')
40481
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SavePortionAsMathMl', 'String')
40482
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SavePortionAsMathMl', 'String')
40483
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SavePortionAsMathMl', 'String')
40484
- paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'SavePortionAsMathMl', paramname, 'String')
40485
- AsposeSlidesCloud::SpecUtils.initialize('SavePortionAsMathMl', 'name', paramname)
40486
- begin
40487
- AsposeSlidesCloud::SpecUtils.testSlidesApi.save_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramout_path, parampassword, paramfolder, paramstorage)
40488
- unless AsposeSlidesCloud::SpecUtils.no_exception?('SavePortionAsMathMl', 'name')
40489
- fail "An exception expected"
40490
- end
40491
- rescue AsposeSlidesCloud::ApiError => e
40492
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'name', paramname, 'String')
40493
- expect(e.code).to eq(code)
40494
- expect(e.response_body).to include(message)
40495
- rescue ArgumentError => e
40496
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'name', paramname, 'String')
40497
- expect(400).to eq(code)
40498
- expect(e.message).to include(message)
40499
- end
40500
- end
40501
-
40502
- it 'invalid slide_index' do
40503
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SavePortionAsMathMl', 'String')
40504
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SavePortionAsMathMl', 'Integer')
40505
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SavePortionAsMathMl', 'Integer')
40506
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SavePortionAsMathMl', 'Integer')
40507
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SavePortionAsMathMl', 'Integer')
40508
- paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SavePortionAsMathMl', 'String')
40509
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SavePortionAsMathMl', 'String')
40510
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SavePortionAsMathMl', 'String')
40511
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SavePortionAsMathMl', 'String')
40512
- paramslide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'SavePortionAsMathMl', paramslide_index, 'Integer')
40513
- AsposeSlidesCloud::SpecUtils.initialize('SavePortionAsMathMl', 'slideIndex', paramslide_index)
40514
- begin
40515
- AsposeSlidesCloud::SpecUtils.testSlidesApi.save_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramout_path, parampassword, paramfolder, paramstorage)
40516
- unless AsposeSlidesCloud::SpecUtils.no_exception?('SavePortionAsMathMl', 'slideIndex')
40517
- fail "An exception expected"
40518
- end
40519
- rescue AsposeSlidesCloud::ApiError => e
40520
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'slideIndex', paramslide_index, 'Integer')
40521
- expect(e.code).to eq(code)
40522
- expect(e.response_body).to include(message)
40523
- rescue ArgumentError => e
40524
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'slideIndex', paramslide_index, 'Integer')
40525
- expect(400).to eq(code)
40526
- expect(e.message).to include(message)
40527
- end
40528
- end
40529
-
40530
- it 'invalid shape_index' do
40531
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SavePortionAsMathMl', 'String')
40532
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SavePortionAsMathMl', 'Integer')
40533
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SavePortionAsMathMl', 'Integer')
40534
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SavePortionAsMathMl', 'Integer')
40535
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SavePortionAsMathMl', 'Integer')
40536
- paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SavePortionAsMathMl', 'String')
40537
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SavePortionAsMathMl', 'String')
40538
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SavePortionAsMathMl', 'String')
40539
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SavePortionAsMathMl', 'String')
40540
- paramshape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'SavePortionAsMathMl', paramshape_index, 'Integer')
40541
- AsposeSlidesCloud::SpecUtils.initialize('SavePortionAsMathMl', 'shapeIndex', paramshape_index)
40542
- begin
40543
- AsposeSlidesCloud::SpecUtils.testSlidesApi.save_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramout_path, parampassword, paramfolder, paramstorage)
40544
- unless AsposeSlidesCloud::SpecUtils.no_exception?('SavePortionAsMathMl', 'shapeIndex')
40545
- fail "An exception expected"
40546
- end
40547
- rescue AsposeSlidesCloud::ApiError => e
40548
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'shapeIndex', paramshape_index, 'Integer')
40549
- expect(e.code).to eq(code)
40550
- expect(e.response_body).to include(message)
40551
- rescue ArgumentError => e
40552
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'shapeIndex', paramshape_index, 'Integer')
40553
- expect(400).to eq(code)
40554
- expect(e.message).to include(message)
40555
- end
40556
- end
40557
-
40558
- it 'invalid paragraph_index' do
40559
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SavePortionAsMathMl', 'String')
40560
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SavePortionAsMathMl', 'Integer')
40561
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SavePortionAsMathMl', 'Integer')
40562
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SavePortionAsMathMl', 'Integer')
40563
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SavePortionAsMathMl', 'Integer')
40564
- paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SavePortionAsMathMl', 'String')
40565
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SavePortionAsMathMl', 'String')
40566
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SavePortionAsMathMl', 'String')
40567
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SavePortionAsMathMl', 'String')
40568
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('paragraphIndex', 'SavePortionAsMathMl', paramparagraph_index, 'Integer')
40569
- AsposeSlidesCloud::SpecUtils.initialize('SavePortionAsMathMl', 'paragraphIndex', paramparagraph_index)
40570
- begin
40571
- AsposeSlidesCloud::SpecUtils.testSlidesApi.save_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramout_path, parampassword, paramfolder, paramstorage)
40572
- unless AsposeSlidesCloud::SpecUtils.no_exception?('SavePortionAsMathMl', 'paragraphIndex')
40573
- fail "An exception expected"
40574
- end
40575
- rescue AsposeSlidesCloud::ApiError => e
40576
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'paragraphIndex', paramparagraph_index, 'Integer')
40577
- expect(e.code).to eq(code)
40578
- expect(e.response_body).to include(message)
40579
- rescue ArgumentError => e
40580
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'paragraphIndex', paramparagraph_index, 'Integer')
40581
- expect(400).to eq(code)
40582
- expect(e.message).to include(message)
40583
- end
40584
- end
40585
-
40586
- it 'invalid portion_index' do
40587
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SavePortionAsMathMl', 'String')
40588
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SavePortionAsMathMl', 'Integer')
40589
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SavePortionAsMathMl', 'Integer')
40590
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SavePortionAsMathMl', 'Integer')
40591
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SavePortionAsMathMl', 'Integer')
40592
- paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SavePortionAsMathMl', 'String')
40593
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SavePortionAsMathMl', 'String')
40594
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SavePortionAsMathMl', 'String')
40595
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SavePortionAsMathMl', 'String')
40596
- paramportion_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('portionIndex', 'SavePortionAsMathMl', paramportion_index, 'Integer')
40597
- AsposeSlidesCloud::SpecUtils.initialize('SavePortionAsMathMl', 'portionIndex', paramportion_index)
40598
- begin
40599
- AsposeSlidesCloud::SpecUtils.testSlidesApi.save_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramout_path, parampassword, paramfolder, paramstorage)
40600
- unless AsposeSlidesCloud::SpecUtils.no_exception?('SavePortionAsMathMl', 'portionIndex')
40601
- fail "An exception expected"
40602
- end
40603
- rescue AsposeSlidesCloud::ApiError => e
40604
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'portionIndex', paramportion_index, 'Integer')
40605
- expect(e.code).to eq(code)
40606
- expect(e.response_body).to include(message)
40607
- rescue ArgumentError => e
40608
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'portionIndex', paramportion_index, 'Integer')
40609
- expect(400).to eq(code)
40610
- expect(e.message).to include(message)
40611
- end
40612
- end
40613
-
40614
- it 'invalid out_path' do
40615
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SavePortionAsMathMl', 'String')
40616
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SavePortionAsMathMl', 'Integer')
40617
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SavePortionAsMathMl', 'Integer')
40618
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SavePortionAsMathMl', 'Integer')
40619
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SavePortionAsMathMl', 'Integer')
40620
- paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SavePortionAsMathMl', 'String')
40621
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SavePortionAsMathMl', 'String')
40622
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SavePortionAsMathMl', 'String')
40623
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SavePortionAsMathMl', 'String')
40624
- paramout_path = AsposeSlidesCloud::SpecUtils.invalidize_param_value('outPath', 'SavePortionAsMathMl', paramout_path, 'String')
40625
- AsposeSlidesCloud::SpecUtils.initialize('SavePortionAsMathMl', 'outPath', paramout_path)
40626
- begin
40627
- AsposeSlidesCloud::SpecUtils.testSlidesApi.save_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramout_path, parampassword, paramfolder, paramstorage)
40628
- unless AsposeSlidesCloud::SpecUtils.no_exception?('SavePortionAsMathMl', 'outPath')
40629
- fail "An exception expected"
40630
- end
40631
- rescue AsposeSlidesCloud::ApiError => e
40632
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'outPath', paramout_path, 'String')
40633
- expect(e.code).to eq(code)
40634
- expect(e.response_body).to include(message)
40635
- rescue ArgumentError => e
40636
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'outPath', paramout_path, 'String')
40637
- expect(400).to eq(code)
40638
- expect(e.message).to include(message)
40639
- end
40640
- end
40641
-
40642
- it 'invalid password' do
40643
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SavePortionAsMathMl', 'String')
40644
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SavePortionAsMathMl', 'Integer')
40645
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SavePortionAsMathMl', 'Integer')
40646
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SavePortionAsMathMl', 'Integer')
40647
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SavePortionAsMathMl', 'Integer')
40648
- paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SavePortionAsMathMl', 'String')
40649
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SavePortionAsMathMl', 'String')
40650
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SavePortionAsMathMl', 'String')
40651
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SavePortionAsMathMl', 'String')
40652
- parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'SavePortionAsMathMl', parampassword, 'String')
40653
- AsposeSlidesCloud::SpecUtils.initialize('SavePortionAsMathMl', 'password', parampassword)
40654
- begin
40655
- AsposeSlidesCloud::SpecUtils.testSlidesApi.save_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramout_path, parampassword, paramfolder, paramstorage)
40656
- unless AsposeSlidesCloud::SpecUtils.no_exception?('SavePortionAsMathMl', 'password')
40657
- fail "An exception expected"
40658
- end
40659
- rescue AsposeSlidesCloud::ApiError => e
40660
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'password', parampassword, 'String')
40661
- expect(e.code).to eq(code)
40662
- expect(e.response_body).to include(message)
40663
- rescue ArgumentError => e
40664
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'password', parampassword, 'String')
40665
- expect(400).to eq(code)
40666
- expect(e.message).to include(message)
40667
- end
40668
- end
40669
-
40670
- it 'invalid folder' do
40671
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SavePortionAsMathMl', 'String')
40672
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SavePortionAsMathMl', 'Integer')
40673
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SavePortionAsMathMl', 'Integer')
40674
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SavePortionAsMathMl', 'Integer')
40675
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SavePortionAsMathMl', 'Integer')
40676
- paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SavePortionAsMathMl', 'String')
40677
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SavePortionAsMathMl', 'String')
40678
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SavePortionAsMathMl', 'String')
40679
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SavePortionAsMathMl', 'String')
40680
- paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'SavePortionAsMathMl', paramfolder, 'String')
40681
- AsposeSlidesCloud::SpecUtils.initialize('SavePortionAsMathMl', 'folder', paramfolder)
40682
- begin
40683
- AsposeSlidesCloud::SpecUtils.testSlidesApi.save_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramout_path, parampassword, paramfolder, paramstorage)
40684
- unless AsposeSlidesCloud::SpecUtils.no_exception?('SavePortionAsMathMl', 'folder')
40685
- fail "An exception expected"
40686
- end
40687
- rescue AsposeSlidesCloud::ApiError => e
40688
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'folder', paramfolder, 'String')
40689
- expect(e.code).to eq(code)
40690
- expect(e.response_body).to include(message)
40691
- rescue ArgumentError => e
40692
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'folder', paramfolder, 'String')
40693
- expect(400).to eq(code)
40694
- expect(e.message).to include(message)
40695
- end
40696
- end
40697
-
40698
- it 'invalid storage' do
40699
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'SavePortionAsMathMl', 'String')
40700
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'SavePortionAsMathMl', 'Integer')
40701
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'SavePortionAsMathMl', 'Integer')
40702
- paramparagraph_index = AsposeSlidesCloud::SpecUtils.get_param_value('paragraphIndex', 'SavePortionAsMathMl', 'Integer')
40703
- paramportion_index = AsposeSlidesCloud::SpecUtils.get_param_value('portionIndex', 'SavePortionAsMathMl', 'Integer')
40704
- paramout_path = AsposeSlidesCloud::SpecUtils.get_param_value('outPath', 'SavePortionAsMathMl', 'String')
40705
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'SavePortionAsMathMl', 'String')
40706
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'SavePortionAsMathMl', 'String')
40707
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'SavePortionAsMathMl', 'String')
40708
- paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'SavePortionAsMathMl', paramstorage, 'String')
40709
- AsposeSlidesCloud::SpecUtils.initialize('SavePortionAsMathMl', 'storage', paramstorage)
40710
- begin
40711
- AsposeSlidesCloud::SpecUtils.testSlidesApi.save_portion_as_math_ml_with_http_info(paramname, paramslide_index, paramshape_index, paramparagraph_index, paramportion_index, paramout_path, parampassword, paramfolder, paramstorage)
40712
- unless AsposeSlidesCloud::SpecUtils.no_exception?('SavePortionAsMathMl', 'storage')
40713
- fail "An exception expected"
40714
- end
40715
- rescue AsposeSlidesCloud::ApiError => e
40716
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'storage', paramstorage, 'String')
40717
- expect(e.code).to eq(code)
40718
- expect(e.response_body).to include(message)
40719
- rescue ArgumentError => e
40720
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('SavePortionAsMathMl', 'storage', paramstorage, 'String')
40721
- expect(400).to eq(code)
40722
- expect(e.message).to include(message)
40723
- end
40724
- end
40725
- end
40726
-
40727
40280
  # unit tests for save_presentation
40728
40281
  # Save a presentation to a specified format.
40729
40282
  # @param name Document name.