aspose_slides_cloud 24.6.0 → 24.8.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +9 -7
  3. data/README.md +20 -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 +373 -210
  8. data/lib/aspose_slides_cloud/api/slides_async_api.rb +179 -8
  9. data/lib/aspose_slides_cloud/api_client.rb +3 -0
  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/ole_object_frame.rb +0 -5
  21. data/lib/aspose_slides_cloud/models/operation.rb +3 -3
  22. data/lib/aspose_slides_cloud/models/operation_error.rb +121 -0
  23. data/lib/aspose_slides_cloud/models/pdf_export_options.rb +13 -2
  24. data/lib/aspose_slides_cloud/models/pptx_export_options.rb +26 -3
  25. data/lib/aspose_slides_cloud/models/protection_properties.rb +0 -10
  26. data/lib/aspose_slides_cloud/models/save.rb +2 -2
  27. data/lib/aspose_slides_cloud/models/save_slide.rb +2 -2
  28. data/lib/aspose_slides_cloud/models/slide.rb +0 -5
  29. data/lib/aspose_slides_cloud/models/slide_export_format.rb +1 -0
  30. data/lib/aspose_slides_cloud/models/smart_art.rb +0 -5
  31. data/lib/aspose_slides_cloud/models/smart_art_node.rb +0 -5
  32. data/lib/aspose_slides_cloud/models/svg_export_options.rb +2 -1
  33. data/lib/aspose_slides_cloud/models/swf_export_options.rb +2 -1
  34. data/lib/aspose_slides_cloud/models/table.rb +12 -2
  35. data/lib/aspose_slides_cloud/models/table_cell.rb +11 -1
  36. data/lib/aspose_slides_cloud/models/table_cell_merge_options.rb +0 -5
  37. data/lib/aspose_slides_cloud/models/tiff_export_options.rb +2 -1
  38. data/lib/aspose_slides_cloud/models/video_export_options.rb +2 -1
  39. data/lib/aspose_slides_cloud/models/xaml_export_options.rb +2 -1
  40. data/lib/aspose_slides_cloud/models/xps_export_options.rb +2 -1
  41. data/lib/aspose_slides_cloud/type_registry.rb +1 -0
  42. data/lib/aspose_slides_cloud/version.rb +1 -1
  43. data/lib/aspose_slides_cloud.rb +1 -0
  44. data/spec/api/slides_api_spec.rb +1080 -757
  45. data/spec/api/slides_async_api_spec.rb +773 -0
  46. data/spec/use_cases/async_api_spec.rb +42 -0
  47. data/spec/use_cases/font_spec.rb +4 -4
  48. data/spec/use_cases/text_spec.rb +57 -9
  49. data/testRules.json +3 -0
  50. metadata +24 -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.
@@ -34978,249 +34746,667 @@ describe 'SlidesApi' do
34978
34746
  end
34979
34747
  end
34980
34748
 
34981
- # unit tests for highlight_shape_regex
34749
+ # unit tests for highlight_presentation_regex
34982
34750
  # Highlight all matches of sample in text frame text using specified color.
34983
34751
  # @param name Document name.
34984
- # @param slide_index Slide index.
34985
- # @param shape_index Shape index.
34986
34752
  # @param regex Regular expression.
34987
34753
  # @param color Highlighting color.
34988
34754
  # @param [Hash] opts the optional parameters
34989
- # @option opts [BOOLEAN] :whole_words_only Match only whole words.
34990
34755
  # @option opts [BOOLEAN] :ignore_case True to search ignoring char case.
34991
34756
  # @option opts [String] :password Document password.
34992
34757
  # @option opts [String] :folder Document folder.
34993
34758
  # @option opts [String] :storage Document storage.
34994
- # @return [Shape]
34995
- describe 'highlight_shape_regex test' do
34996
- it 'should work' do
34997
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
34998
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
34999
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35000
- paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35001
- paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35002
- paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
35003
- paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35004
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35005
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
35006
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
35007
- AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', nil, nil)
35008
- o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35009
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', nil, nil, nil)
34759
+ # @return [DocumentReplaceResult]
34760
+ describe 'highlight_presentation_regex test' do
34761
+ it 'should work' do
34762
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationRegex', 'String')
34763
+ paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightPresentationRegex', 'String')
34764
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationRegex', 'String')
34765
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationRegex', 'BOOLEAN')
34766
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationRegex', 'String')
34767
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationRegex', 'String')
34768
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationRegex', 'String')
34769
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationRegex', nil, nil)
34770
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_regex_with_http_info(paramname, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
34771
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', nil, nil, nil)
35010
34772
  expect(c).to eq(code)
35011
34773
  expect(o).not_to be_nil
35012
34774
  end
35013
34775
 
35014
34776
  it 'invalid name' do
35015
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
35016
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
35017
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35018
- paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35019
- paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35020
- paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
35021
- paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35022
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35023
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
35024
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
35025
- paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'HighlightShapeRegex', paramname, 'String')
35026
- AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'name', paramname)
34777
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationRegex', 'String')
34778
+ paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightPresentationRegex', 'String')
34779
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationRegex', 'String')
34780
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationRegex', 'BOOLEAN')
34781
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationRegex', 'String')
34782
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationRegex', 'String')
34783
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationRegex', 'String')
34784
+ paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'HighlightPresentationRegex', paramname, 'String')
34785
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationRegex', 'name', paramname)
35027
34786
  begin
35028
- AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35029
- unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'name')
34787
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_regex_with_http_info(paramname, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
34788
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationRegex', 'name')
35030
34789
  fail "An exception expected"
35031
34790
  end
35032
34791
  rescue AsposeSlidesCloud::ApiError => e
35033
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'name', paramname, 'String')
34792
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'name', paramname, 'String')
35034
34793
  expect(e.code).to eq(code)
35035
34794
  expect(e.response_body).to include(message)
35036
34795
  rescue ArgumentError => e
35037
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'name', paramname, 'String')
34796
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'name', paramname, 'String')
35038
34797
  expect(400).to eq(code)
35039
34798
  expect(e.message).to include(message)
35040
34799
  end
35041
34800
  end
35042
34801
 
35043
- it 'invalid slide_index' do
35044
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
35045
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
35046
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35047
- paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35048
- paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35049
- paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
35050
- paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35051
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35052
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
35053
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
35054
- paramslide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'HighlightShapeRegex', paramslide_index, 'Integer')
35055
- AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'slideIndex', paramslide_index)
34802
+ it 'invalid regex' do
34803
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationRegex', 'String')
34804
+ paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightPresentationRegex', 'String')
34805
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationRegex', 'String')
34806
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationRegex', 'BOOLEAN')
34807
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationRegex', 'String')
34808
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationRegex', 'String')
34809
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationRegex', 'String')
34810
+ paramregex = AsposeSlidesCloud::SpecUtils.invalidize_param_value('regex', 'HighlightPresentationRegex', paramregex, 'String')
34811
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationRegex', 'regex', paramregex)
35056
34812
  begin
35057
- AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35058
- unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'slideIndex')
34813
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_regex_with_http_info(paramname, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
34814
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationRegex', 'regex')
35059
34815
  fail "An exception expected"
35060
34816
  end
35061
34817
  rescue AsposeSlidesCloud::ApiError => e
35062
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'slideIndex', paramslide_index, 'Integer')
34818
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'regex', paramregex, 'String')
35063
34819
  expect(e.code).to eq(code)
35064
34820
  expect(e.response_body).to include(message)
35065
34821
  rescue ArgumentError => e
35066
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'slideIndex', paramslide_index, 'Integer')
34822
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'regex', paramregex, 'String')
35067
34823
  expect(400).to eq(code)
35068
34824
  expect(e.message).to include(message)
35069
34825
  end
35070
34826
  end
35071
34827
 
35072
- it 'invalid shape_index' do
35073
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
35074
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
35075
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35076
- paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35077
- paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35078
- paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
35079
- paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35080
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35081
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
35082
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
35083
- paramshape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'HighlightShapeRegex', paramshape_index, 'Integer')
35084
- AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'shapeIndex', paramshape_index)
34828
+ it 'invalid color' do
34829
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationRegex', 'String')
34830
+ paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightPresentationRegex', 'String')
34831
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationRegex', 'String')
34832
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationRegex', 'BOOLEAN')
34833
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationRegex', 'String')
34834
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationRegex', 'String')
34835
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationRegex', 'String')
34836
+ paramcolor = AsposeSlidesCloud::SpecUtils.invalidize_param_value('color', 'HighlightPresentationRegex', paramcolor, 'String')
34837
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationRegex', 'color', paramcolor)
35085
34838
  begin
35086
- AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35087
- unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'shapeIndex')
34839
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_regex_with_http_info(paramname, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
34840
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationRegex', 'color')
35088
34841
  fail "An exception expected"
35089
34842
  end
35090
34843
  rescue AsposeSlidesCloud::ApiError => e
35091
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'shapeIndex', paramshape_index, 'Integer')
34844
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'color', paramcolor, 'String')
35092
34845
  expect(e.code).to eq(code)
35093
34846
  expect(e.response_body).to include(message)
35094
34847
  rescue ArgumentError => e
35095
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'shapeIndex', paramshape_index, 'Integer')
34848
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'color', paramcolor, 'String')
35096
34849
  expect(400).to eq(code)
35097
34850
  expect(e.message).to include(message)
35098
34851
  end
35099
34852
  end
35100
34853
 
35101
- it 'invalid regex' do
35102
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
35103
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
35104
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35105
- paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35106
- paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35107
- paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
35108
- paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35109
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35110
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
35111
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
35112
- paramregex = AsposeSlidesCloud::SpecUtils.invalidize_param_value('regex', 'HighlightShapeRegex', paramregex, 'String')
35113
- AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'regex', paramregex)
34854
+ it 'invalid ignore_case' do
34855
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationRegex', 'String')
34856
+ paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightPresentationRegex', 'String')
34857
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationRegex', 'String')
34858
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationRegex', 'BOOLEAN')
34859
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationRegex', 'String')
34860
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationRegex', 'String')
34861
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationRegex', 'String')
34862
+ paramignore_case = AsposeSlidesCloud::SpecUtils.invalidize_param_value('ignoreCase', 'HighlightPresentationRegex', paramignore_case, 'BOOLEAN')
34863
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationRegex', 'ignoreCase', paramignore_case)
35114
34864
  begin
35115
- AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35116
- unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'regex')
34865
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_regex_with_http_info(paramname, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
34866
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationRegex', 'ignoreCase')
35117
34867
  fail "An exception expected"
35118
34868
  end
35119
34869
  rescue AsposeSlidesCloud::ApiError => e
35120
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'regex', paramregex, 'String')
34870
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'ignoreCase', paramignore_case, 'BOOLEAN')
35121
34871
  expect(e.code).to eq(code)
35122
34872
  expect(e.response_body).to include(message)
35123
34873
  rescue ArgumentError => e
35124
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'regex', paramregex, 'String')
34874
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'ignoreCase', paramignore_case, 'BOOLEAN')
35125
34875
  expect(400).to eq(code)
35126
34876
  expect(e.message).to include(message)
35127
34877
  end
35128
34878
  end
35129
34879
 
35130
- it 'invalid color' do
35131
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
35132
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
35133
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35134
- paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35135
- paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35136
- paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
35137
- paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35138
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35139
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
35140
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
35141
- paramcolor = AsposeSlidesCloud::SpecUtils.invalidize_param_value('color', 'HighlightShapeRegex', paramcolor, 'String')
35142
- AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'color', paramcolor)
34880
+ it 'invalid password' do
34881
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationRegex', 'String')
34882
+ paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightPresentationRegex', 'String')
34883
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationRegex', 'String')
34884
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationRegex', 'BOOLEAN')
34885
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationRegex', 'String')
34886
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationRegex', 'String')
34887
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationRegex', 'String')
34888
+ parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'HighlightPresentationRegex', parampassword, 'String')
34889
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationRegex', 'password', parampassword)
35143
34890
  begin
35144
- AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35145
- unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'color')
34891
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_regex_with_http_info(paramname, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
34892
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationRegex', 'password')
35146
34893
  fail "An exception expected"
35147
34894
  end
35148
34895
  rescue AsposeSlidesCloud::ApiError => e
35149
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'color', paramcolor, 'String')
34896
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'password', parampassword, 'String')
35150
34897
  expect(e.code).to eq(code)
35151
34898
  expect(e.response_body).to include(message)
35152
34899
  rescue ArgumentError => e
35153
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'color', paramcolor, 'String')
34900
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'password', parampassword, 'String')
35154
34901
  expect(400).to eq(code)
35155
34902
  expect(e.message).to include(message)
35156
34903
  end
35157
34904
  end
35158
34905
 
35159
- it 'invalid whole_words_only' do
35160
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
35161
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
35162
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35163
- paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35164
- paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35165
- paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
35166
- paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35167
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35168
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
35169
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
35170
- paramwhole_words_only = AsposeSlidesCloud::SpecUtils.invalidize_param_value('wholeWordsOnly', 'HighlightShapeRegex', paramwhole_words_only, 'BOOLEAN')
35171
- AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'wholeWordsOnly', paramwhole_words_only)
34906
+ it 'invalid folder' do
34907
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationRegex', 'String')
34908
+ paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightPresentationRegex', 'String')
34909
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationRegex', 'String')
34910
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationRegex', 'BOOLEAN')
34911
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationRegex', 'String')
34912
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationRegex', 'String')
34913
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationRegex', 'String')
34914
+ paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'HighlightPresentationRegex', paramfolder, 'String')
34915
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationRegex', 'folder', paramfolder)
35172
34916
  begin
35173
- AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35174
- unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'wholeWordsOnly')
34917
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_regex_with_http_info(paramname, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
34918
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationRegex', 'folder')
35175
34919
  fail "An exception expected"
35176
34920
  end
35177
34921
  rescue AsposeSlidesCloud::ApiError => e
35178
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'wholeWordsOnly', paramwhole_words_only, 'BOOLEAN')
34922
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'folder', paramfolder, 'String')
35179
34923
  expect(e.code).to eq(code)
35180
34924
  expect(e.response_body).to include(message)
35181
34925
  rescue ArgumentError => e
35182
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'wholeWordsOnly', paramwhole_words_only, 'BOOLEAN')
34926
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'folder', paramfolder, 'String')
35183
34927
  expect(400).to eq(code)
35184
34928
  expect(e.message).to include(message)
35185
34929
  end
35186
34930
  end
35187
34931
 
35188
- it 'invalid ignore_case' do
35189
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
35190
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
35191
- paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35192
- paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35193
- paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35194
- paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
35195
- paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35196
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35197
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
35198
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
35199
- paramignore_case = AsposeSlidesCloud::SpecUtils.invalidize_param_value('ignoreCase', 'HighlightShapeRegex', paramignore_case, 'BOOLEAN')
35200
- AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'ignoreCase', paramignore_case)
34932
+ it 'invalid storage' do
34933
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationRegex', 'String')
34934
+ paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightPresentationRegex', 'String')
34935
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationRegex', 'String')
34936
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationRegex', 'BOOLEAN')
34937
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationRegex', 'String')
34938
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationRegex', 'String')
34939
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationRegex', 'String')
34940
+ paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'HighlightPresentationRegex', paramstorage, 'String')
34941
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationRegex', 'storage', paramstorage)
35201
34942
  begin
35202
- AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35203
- unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'ignoreCase')
34943
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_regex_with_http_info(paramname, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
34944
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationRegex', 'storage')
35204
34945
  fail "An exception expected"
35205
34946
  end
35206
34947
  rescue AsposeSlidesCloud::ApiError => e
35207
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'ignoreCase', paramignore_case, 'BOOLEAN')
34948
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'storage', paramstorage, 'String')
35208
34949
  expect(e.code).to eq(code)
35209
34950
  expect(e.response_body).to include(message)
35210
34951
  rescue ArgumentError => e
35211
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'ignoreCase', paramignore_case, 'BOOLEAN')
34952
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationRegex', 'storage', paramstorage, 'String')
35212
34953
  expect(400).to eq(code)
35213
34954
  expect(e.message).to include(message)
35214
34955
  end
35215
34956
  end
34957
+ end
35216
34958
 
35217
- it 'invalid password' do
35218
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
35219
- paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
34959
+ # unit tests for highlight_presentation_text
34960
+ # Highlight all matches of sample using specified color.
34961
+ # @param name Document name.
34962
+ # @param text Text sample to highlight.
34963
+ # @param color Highlighting color.
34964
+ # @param [Hash] opts the optional parameters
34965
+ # @option opts [BOOLEAN] :whole_words_only Match only whole words.
34966
+ # @option opts [BOOLEAN] :ignore_case True to search ignoring char case.
34967
+ # @option opts [String] :password Document password.
34968
+ # @option opts [String] :folder Document folder.
34969
+ # @option opts [String] :storage Document storage.
34970
+ # @return [DocumentReplaceResult]
34971
+ describe 'highlight_presentation_text test' do
34972
+ it 'should work' do
34973
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
34974
+ paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
34975
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
34976
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
34977
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
34978
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
34979
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
34980
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
34981
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', nil, nil)
34982
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
34983
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', nil, nil, nil)
34984
+ expect(c).to eq(code)
34985
+ expect(o).not_to be_nil
34986
+ end
34987
+
34988
+ it 'invalid name' do
34989
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
34990
+ paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
34991
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
34992
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
34993
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
34994
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
34995
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
34996
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
34997
+ paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'HighlightPresentationText', paramname, 'String')
34998
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', 'name', paramname)
34999
+ begin
35000
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35001
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationText', 'name')
35002
+ fail "An exception expected"
35003
+ end
35004
+ rescue AsposeSlidesCloud::ApiError => e
35005
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'name', paramname, 'String')
35006
+ expect(e.code).to eq(code)
35007
+ expect(e.response_body).to include(message)
35008
+ rescue ArgumentError => e
35009
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'name', paramname, 'String')
35010
+ expect(400).to eq(code)
35011
+ expect(e.message).to include(message)
35012
+ end
35013
+ end
35014
+
35015
+ it 'invalid text' do
35016
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
35017
+ paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
35018
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
35019
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
35020
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
35021
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
35022
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
35023
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
35024
+ paramtext = AsposeSlidesCloud::SpecUtils.invalidize_param_value('text', 'HighlightPresentationText', paramtext, 'String')
35025
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', 'text', paramtext)
35026
+ begin
35027
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35028
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationText', 'text')
35029
+ fail "An exception expected"
35030
+ end
35031
+ rescue AsposeSlidesCloud::ApiError => e
35032
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'text', paramtext, 'String')
35033
+ expect(e.code).to eq(code)
35034
+ expect(e.response_body).to include(message)
35035
+ rescue ArgumentError => e
35036
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'text', paramtext, 'String')
35037
+ expect(400).to eq(code)
35038
+ expect(e.message).to include(message)
35039
+ end
35040
+ end
35041
+
35042
+ it 'invalid color' do
35043
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
35044
+ paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
35045
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
35046
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
35047
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
35048
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
35049
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
35050
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
35051
+ paramcolor = AsposeSlidesCloud::SpecUtils.invalidize_param_value('color', 'HighlightPresentationText', paramcolor, 'String')
35052
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', 'color', paramcolor)
35053
+ begin
35054
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35055
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationText', 'color')
35056
+ fail "An exception expected"
35057
+ end
35058
+ rescue AsposeSlidesCloud::ApiError => e
35059
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'color', paramcolor, 'String')
35060
+ expect(e.code).to eq(code)
35061
+ expect(e.response_body).to include(message)
35062
+ rescue ArgumentError => e
35063
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'color', paramcolor, 'String')
35064
+ expect(400).to eq(code)
35065
+ expect(e.message).to include(message)
35066
+ end
35067
+ end
35068
+
35069
+ it 'invalid whole_words_only' do
35070
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
35071
+ paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
35072
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
35073
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
35074
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
35075
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
35076
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
35077
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
35078
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.invalidize_param_value('wholeWordsOnly', 'HighlightPresentationText', paramwhole_words_only, 'BOOLEAN')
35079
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', 'wholeWordsOnly', paramwhole_words_only)
35080
+ begin
35081
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35082
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationText', 'wholeWordsOnly')
35083
+ fail "An exception expected"
35084
+ end
35085
+ rescue AsposeSlidesCloud::ApiError => e
35086
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'wholeWordsOnly', paramwhole_words_only, 'BOOLEAN')
35087
+ expect(e.code).to eq(code)
35088
+ expect(e.response_body).to include(message)
35089
+ rescue ArgumentError => e
35090
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'wholeWordsOnly', paramwhole_words_only, 'BOOLEAN')
35091
+ expect(400).to eq(code)
35092
+ expect(e.message).to include(message)
35093
+ end
35094
+ end
35095
+
35096
+ it 'invalid ignore_case' do
35097
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
35098
+ paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
35099
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
35100
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
35101
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
35102
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
35103
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
35104
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
35105
+ paramignore_case = AsposeSlidesCloud::SpecUtils.invalidize_param_value('ignoreCase', 'HighlightPresentationText', paramignore_case, 'BOOLEAN')
35106
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', 'ignoreCase', paramignore_case)
35107
+ begin
35108
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35109
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationText', 'ignoreCase')
35110
+ fail "An exception expected"
35111
+ end
35112
+ rescue AsposeSlidesCloud::ApiError => e
35113
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'ignoreCase', paramignore_case, 'BOOLEAN')
35114
+ expect(e.code).to eq(code)
35115
+ expect(e.response_body).to include(message)
35116
+ rescue ArgumentError => e
35117
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'ignoreCase', paramignore_case, 'BOOLEAN')
35118
+ expect(400).to eq(code)
35119
+ expect(e.message).to include(message)
35120
+ end
35121
+ end
35122
+
35123
+ it 'invalid password' do
35124
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
35125
+ paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
35126
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
35127
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
35128
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
35129
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
35130
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
35131
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
35132
+ parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'HighlightPresentationText', parampassword, 'String')
35133
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', 'password', parampassword)
35134
+ begin
35135
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35136
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationText', 'password')
35137
+ fail "An exception expected"
35138
+ end
35139
+ rescue AsposeSlidesCloud::ApiError => e
35140
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'password', parampassword, 'String')
35141
+ expect(e.code).to eq(code)
35142
+ expect(e.response_body).to include(message)
35143
+ rescue ArgumentError => e
35144
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'password', parampassword, 'String')
35145
+ expect(400).to eq(code)
35146
+ expect(e.message).to include(message)
35147
+ end
35148
+ end
35149
+
35150
+ it 'invalid folder' do
35151
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
35152
+ paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
35153
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
35154
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
35155
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
35156
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
35157
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
35158
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
35159
+ paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'HighlightPresentationText', paramfolder, 'String')
35160
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', 'folder', paramfolder)
35161
+ begin
35162
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35163
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationText', 'folder')
35164
+ fail "An exception expected"
35165
+ end
35166
+ rescue AsposeSlidesCloud::ApiError => e
35167
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'folder', paramfolder, 'String')
35168
+ expect(e.code).to eq(code)
35169
+ expect(e.response_body).to include(message)
35170
+ rescue ArgumentError => e
35171
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'folder', paramfolder, 'String')
35172
+ expect(400).to eq(code)
35173
+ expect(e.message).to include(message)
35174
+ end
35175
+ end
35176
+
35177
+ it 'invalid storage' do
35178
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightPresentationText', 'String')
35179
+ paramtext = AsposeSlidesCloud::SpecUtils.get_param_value('text', 'HighlightPresentationText', 'String')
35180
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightPresentationText', 'String')
35181
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightPresentationText', 'BOOLEAN')
35182
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightPresentationText', 'BOOLEAN')
35183
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightPresentationText', 'String')
35184
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightPresentationText', 'String')
35185
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightPresentationText', 'String')
35186
+ paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'HighlightPresentationText', paramstorage, 'String')
35187
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightPresentationText', 'storage', paramstorage)
35188
+ begin
35189
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_presentation_text_with_http_info(paramname, paramtext, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35190
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightPresentationText', 'storage')
35191
+ fail "An exception expected"
35192
+ end
35193
+ rescue AsposeSlidesCloud::ApiError => e
35194
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'storage', paramstorage, 'String')
35195
+ expect(e.code).to eq(code)
35196
+ expect(e.response_body).to include(message)
35197
+ rescue ArgumentError => e
35198
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightPresentationText', 'storage', paramstorage, 'String')
35199
+ expect(400).to eq(code)
35200
+ expect(e.message).to include(message)
35201
+ end
35202
+ end
35203
+ end
35204
+
35205
+ # unit tests for highlight_shape_regex
35206
+ # Highlight all matches of sample in text frame text using specified color.
35207
+ # @param name Document name.
35208
+ # @param slide_index Slide index.
35209
+ # @param shape_index Shape index.
35210
+ # @param regex Regular expression.
35211
+ # @param color Highlighting color.
35212
+ # @param [Hash] opts the optional parameters
35213
+ # @option opts [BOOLEAN] :ignore_case True to search ignoring char case.
35214
+ # @option opts [String] :password Document password.
35215
+ # @option opts [String] :folder Document folder.
35216
+ # @option opts [String] :storage Document storage.
35217
+ # @return [Shape]
35218
+ describe 'highlight_shape_regex test' do
35219
+ it 'should work' do
35220
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
35221
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
35222
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35223
+ paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35224
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35225
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35226
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35227
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
35228
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
35229
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', nil, nil)
35230
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
35231
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', nil, nil, nil)
35232
+ expect(c).to eq(code)
35233
+ expect(o).not_to be_nil
35234
+ end
35235
+
35236
+ it 'invalid name' do
35237
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
35238
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
35239
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35240
+ paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35241
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35242
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35243
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35244
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
35245
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
35246
+ paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'HighlightShapeRegex', paramname, 'String')
35247
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'name', paramname)
35248
+ begin
35249
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
35250
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'name')
35251
+ fail "An exception expected"
35252
+ end
35253
+ rescue AsposeSlidesCloud::ApiError => e
35254
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'name', paramname, 'String')
35255
+ expect(e.code).to eq(code)
35256
+ expect(e.response_body).to include(message)
35257
+ rescue ArgumentError => e
35258
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'name', paramname, 'String')
35259
+ expect(400).to eq(code)
35260
+ expect(e.message).to include(message)
35261
+ end
35262
+ end
35263
+
35264
+ it 'invalid slide_index' do
35265
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
35266
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
35267
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35268
+ paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35269
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35270
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35271
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35272
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
35273
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
35274
+ paramslide_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('slideIndex', 'HighlightShapeRegex', paramslide_index, 'Integer')
35275
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'slideIndex', paramslide_index)
35276
+ begin
35277
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
35278
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'slideIndex')
35279
+ fail "An exception expected"
35280
+ end
35281
+ rescue AsposeSlidesCloud::ApiError => e
35282
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'slideIndex', paramslide_index, 'Integer')
35283
+ expect(e.code).to eq(code)
35284
+ expect(e.response_body).to include(message)
35285
+ rescue ArgumentError => e
35286
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'slideIndex', paramslide_index, 'Integer')
35287
+ expect(400).to eq(code)
35288
+ expect(e.message).to include(message)
35289
+ end
35290
+ end
35291
+
35292
+ it 'invalid shape_index' do
35293
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
35294
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
35295
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35296
+ paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35297
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35298
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35299
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35300
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
35301
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
35302
+ paramshape_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('shapeIndex', 'HighlightShapeRegex', paramshape_index, 'Integer')
35303
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'shapeIndex', paramshape_index)
35304
+ begin
35305
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
35306
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'shapeIndex')
35307
+ fail "An exception expected"
35308
+ end
35309
+ rescue AsposeSlidesCloud::ApiError => e
35310
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'shapeIndex', paramshape_index, 'Integer')
35311
+ expect(e.code).to eq(code)
35312
+ expect(e.response_body).to include(message)
35313
+ rescue ArgumentError => e
35314
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'shapeIndex', paramshape_index, 'Integer')
35315
+ expect(400).to eq(code)
35316
+ expect(e.message).to include(message)
35317
+ end
35318
+ end
35319
+
35320
+ it 'invalid regex' do
35321
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
35322
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
35323
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35324
+ paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35325
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35326
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35327
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35328
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
35329
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
35330
+ paramregex = AsposeSlidesCloud::SpecUtils.invalidize_param_value('regex', 'HighlightShapeRegex', paramregex, 'String')
35331
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'regex', paramregex)
35332
+ begin
35333
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
35334
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'regex')
35335
+ fail "An exception expected"
35336
+ end
35337
+ rescue AsposeSlidesCloud::ApiError => e
35338
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'regex', paramregex, 'String')
35339
+ expect(e.code).to eq(code)
35340
+ expect(e.response_body).to include(message)
35341
+ rescue ArgumentError => e
35342
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'regex', paramregex, 'String')
35343
+ expect(400).to eq(code)
35344
+ expect(e.message).to include(message)
35345
+ end
35346
+ end
35347
+
35348
+ it 'invalid color' do
35349
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
35350
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
35351
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35352
+ paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35353
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35354
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35355
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35356
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
35357
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
35358
+ paramcolor = AsposeSlidesCloud::SpecUtils.invalidize_param_value('color', 'HighlightShapeRegex', paramcolor, 'String')
35359
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'color', paramcolor)
35360
+ begin
35361
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
35362
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'color')
35363
+ fail "An exception expected"
35364
+ end
35365
+ rescue AsposeSlidesCloud::ApiError => e
35366
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'color', paramcolor, 'String')
35367
+ expect(e.code).to eq(code)
35368
+ expect(e.response_body).to include(message)
35369
+ rescue ArgumentError => e
35370
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'color', paramcolor, 'String')
35371
+ expect(400).to eq(code)
35372
+ expect(e.message).to include(message)
35373
+ end
35374
+ end
35375
+
35376
+ it 'invalid ignore_case' do
35377
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
35378
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
35379
+ paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35380
+ paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35381
+ paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35382
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35383
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35384
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
35385
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'HighlightShapeRegex', 'String')
35386
+ paramignore_case = AsposeSlidesCloud::SpecUtils.invalidize_param_value('ignoreCase', 'HighlightShapeRegex', paramignore_case, 'BOOLEAN')
35387
+ AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'ignoreCase', paramignore_case)
35388
+ begin
35389
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
35390
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'ignoreCase')
35391
+ fail "An exception expected"
35392
+ end
35393
+ rescue AsposeSlidesCloud::ApiError => e
35394
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'ignoreCase', paramignore_case, 'BOOLEAN')
35395
+ expect(e.code).to eq(code)
35396
+ expect(e.response_body).to include(message)
35397
+ rescue ArgumentError => e
35398
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('HighlightShapeRegex', 'ignoreCase', paramignore_case, 'BOOLEAN')
35399
+ expect(400).to eq(code)
35400
+ expect(e.message).to include(message)
35401
+ end
35402
+ end
35403
+
35404
+ it 'invalid password' do
35405
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'HighlightShapeRegex', 'String')
35406
+ paramslide_index = AsposeSlidesCloud::SpecUtils.get_param_value('slideIndex', 'HighlightShapeRegex', 'Integer')
35220
35407
  paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35221
35408
  paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35222
35409
  paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35223
- paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
35224
35410
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35225
35411
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35226
35412
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
@@ -35228,7 +35414,7 @@ describe 'SlidesApi' do
35228
35414
  parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'HighlightShapeRegex', parampassword, 'String')
35229
35415
  AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'password', parampassword)
35230
35416
  begin
35231
- AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35417
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
35232
35418
  unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'password')
35233
35419
  fail "An exception expected"
35234
35420
  end
@@ -35249,7 +35435,6 @@ describe 'SlidesApi' do
35249
35435
  paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35250
35436
  paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35251
35437
  paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35252
- paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
35253
35438
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35254
35439
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35255
35440
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
@@ -35257,7 +35442,7 @@ describe 'SlidesApi' do
35257
35442
  paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'HighlightShapeRegex', paramfolder, 'String')
35258
35443
  AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'folder', paramfolder)
35259
35444
  begin
35260
- AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35445
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
35261
35446
  unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'folder')
35262
35447
  fail "An exception expected"
35263
35448
  end
@@ -35278,7 +35463,6 @@ describe 'SlidesApi' do
35278
35463
  paramshape_index = AsposeSlidesCloud::SpecUtils.get_param_value('shapeIndex', 'HighlightShapeRegex', 'Integer')
35279
35464
  paramregex = AsposeSlidesCloud::SpecUtils.get_param_value('regex', 'HighlightShapeRegex', 'String')
35280
35465
  paramcolor = AsposeSlidesCloud::SpecUtils.get_param_value('color', 'HighlightShapeRegex', 'String')
35281
- paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'HighlightShapeRegex', 'BOOLEAN')
35282
35466
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'HighlightShapeRegex', 'BOOLEAN')
35283
35467
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'HighlightShapeRegex', 'String')
35284
35468
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'HighlightShapeRegex', 'String')
@@ -35286,7 +35470,7 @@ describe 'SlidesApi' do
35286
35470
  paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'HighlightShapeRegex', paramstorage, 'String')
35287
35471
  AsposeSlidesCloud::SpecUtils.initialize('HighlightShapeRegex', 'storage', paramstorage)
35288
35472
  begin
35289
- AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramwhole_words_only, paramignore_case, parampassword, paramfolder, paramstorage)
35473
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.highlight_shape_regex_with_http_info(paramname, paramslide_index, paramshape_index, paramregex, paramcolor, paramignore_case, parampassword, paramfolder, paramstorage)
35290
35474
  unless AsposeSlidesCloud::SpecUtils.no_exception?('HighlightShapeRegex', 'storage')
35291
35475
  fail "An exception expected"
35292
35476
  end
@@ -38782,139 +38966,493 @@ describe 'SlidesApi' do
38782
38966
  end
38783
38967
 
38784
38968
  it 'invalid storage' do
38785
- paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplaceImage', 'String')
38786
- paramimage_index = AsposeSlidesCloud::SpecUtils.get_param_value('imageIndex', 'ReplaceImage', 'Integer')
38787
- paramimage = AsposeSlidesCloud::SpecUtils.get_param_value('image', 'ReplaceImage', 'File')
38788
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplaceImage', 'String')
38789
- paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplaceImage', 'String')
38790
- paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplaceImage', 'String')
38791
- paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'ReplaceImage', paramstorage, 'String')
38792
- AsposeSlidesCloud::SpecUtils.initialize('ReplaceImage', 'storage', paramstorage)
38969
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplaceImage', 'String')
38970
+ paramimage_index = AsposeSlidesCloud::SpecUtils.get_param_value('imageIndex', 'ReplaceImage', 'Integer')
38971
+ paramimage = AsposeSlidesCloud::SpecUtils.get_param_value('image', 'ReplaceImage', 'File')
38972
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplaceImage', 'String')
38973
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplaceImage', 'String')
38974
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplaceImage', 'String')
38975
+ paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'ReplaceImage', paramstorage, 'String')
38976
+ AsposeSlidesCloud::SpecUtils.initialize('ReplaceImage', 'storage', paramstorage)
38977
+ begin
38978
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_image_with_http_info(paramname, paramimage_index, paramimage, parampassword, paramfolder, paramstorage)
38979
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplaceImage', 'storage')
38980
+ fail "An exception expected"
38981
+ end
38982
+ rescue AsposeSlidesCloud::ApiError => e
38983
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImage', 'storage', paramstorage, 'String')
38984
+ expect(e.code).to eq(code)
38985
+ expect(e.response_body).to include(message)
38986
+ rescue ArgumentError => e
38987
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImage', 'storage', paramstorage, 'String')
38988
+ expect(400).to eq(code)
38989
+ expect(e.message).to include(message)
38990
+ end
38991
+ end
38992
+ end
38993
+
38994
+ # unit tests for replace_image_online
38995
+ # Replaces image by the specified index and returns updated document.
38996
+ # @param document Document data.
38997
+ # @param image_index Image index.
38998
+ # @param image Image data.
38999
+ # @param [Hash] opts the optional parameters
39000
+ # @option opts [String] :password Password.
39001
+ # @return [File]
39002
+ describe 'replace_image_online test' do
39003
+ it 'should work' do
39004
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplaceImageOnline', 'File')
39005
+ paramimage_index = AsposeSlidesCloud::SpecUtils.get_param_value('imageIndex', 'ReplaceImageOnline', 'Integer')
39006
+ paramimage = AsposeSlidesCloud::SpecUtils.get_param_value('image', 'ReplaceImageOnline', 'File')
39007
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplaceImageOnline', 'String')
39008
+ AsposeSlidesCloud::SpecUtils.initialize('ReplaceImageOnline', nil, nil)
39009
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_image_online_with_http_info(paramdocument, paramimage_index, paramimage, parampassword)
39010
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', nil, nil, nil)
39011
+ expect(c).to eq(code)
39012
+ expect(o).not_to be_nil
39013
+ end
39014
+
39015
+ it 'invalid document' do
39016
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplaceImageOnline', 'File')
39017
+ paramimage_index = AsposeSlidesCloud::SpecUtils.get_param_value('imageIndex', 'ReplaceImageOnline', 'Integer')
39018
+ paramimage = AsposeSlidesCloud::SpecUtils.get_param_value('image', 'ReplaceImageOnline', 'File')
39019
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplaceImageOnline', 'String')
39020
+ paramdocument = AsposeSlidesCloud::SpecUtils.invalidize_param_value('document', 'ReplaceImageOnline', paramdocument, 'File')
39021
+ AsposeSlidesCloud::SpecUtils.initialize('ReplaceImageOnline', 'document', paramdocument)
39022
+ begin
39023
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_image_online_with_http_info(paramdocument, paramimage_index, paramimage, parampassword)
39024
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplaceImageOnline', 'document')
39025
+ fail "An exception expected"
39026
+ end
39027
+ rescue AsposeSlidesCloud::ApiError => e
39028
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', 'document', paramdocument, 'File')
39029
+ expect(e.code).to eq(code)
39030
+ expect(e.response_body).to include(message)
39031
+ rescue ArgumentError => e
39032
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', 'document', paramdocument, 'File')
39033
+ expect(400).to eq(code)
39034
+ expect(e.message).to include(message)
39035
+ end
39036
+ end
39037
+
39038
+ it 'invalid image_index' do
39039
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplaceImageOnline', 'File')
39040
+ paramimage_index = AsposeSlidesCloud::SpecUtils.get_param_value('imageIndex', 'ReplaceImageOnline', 'Integer')
39041
+ paramimage = AsposeSlidesCloud::SpecUtils.get_param_value('image', 'ReplaceImageOnline', 'File')
39042
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplaceImageOnline', 'String')
39043
+ paramimage_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('imageIndex', 'ReplaceImageOnline', paramimage_index, 'Integer')
39044
+ AsposeSlidesCloud::SpecUtils.initialize('ReplaceImageOnline', 'imageIndex', paramimage_index)
39045
+ begin
39046
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_image_online_with_http_info(paramdocument, paramimage_index, paramimage, parampassword)
39047
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplaceImageOnline', 'imageIndex')
39048
+ fail "An exception expected"
39049
+ end
39050
+ rescue AsposeSlidesCloud::ApiError => e
39051
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', 'imageIndex', paramimage_index, 'Integer')
39052
+ expect(e.code).to eq(code)
39053
+ expect(e.response_body).to include(message)
39054
+ rescue ArgumentError => e
39055
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', 'imageIndex', paramimage_index, 'Integer')
39056
+ expect(400).to eq(code)
39057
+ expect(e.message).to include(message)
39058
+ end
39059
+ end
39060
+
39061
+ it 'invalid image' do
39062
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplaceImageOnline', 'File')
39063
+ paramimage_index = AsposeSlidesCloud::SpecUtils.get_param_value('imageIndex', 'ReplaceImageOnline', 'Integer')
39064
+ paramimage = AsposeSlidesCloud::SpecUtils.get_param_value('image', 'ReplaceImageOnline', 'File')
39065
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplaceImageOnline', 'String')
39066
+ paramimage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('image', 'ReplaceImageOnline', paramimage, 'File')
39067
+ AsposeSlidesCloud::SpecUtils.initialize('ReplaceImageOnline', 'image', paramimage)
39068
+ begin
39069
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_image_online_with_http_info(paramdocument, paramimage_index, paramimage, parampassword)
39070
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplaceImageOnline', 'image')
39071
+ fail "An exception expected"
39072
+ end
39073
+ rescue AsposeSlidesCloud::ApiError => e
39074
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', 'image', paramimage, 'File')
39075
+ expect(e.code).to eq(code)
39076
+ expect(e.response_body).to include(message)
39077
+ rescue ArgumentError => e
39078
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', 'image', paramimage, 'File')
39079
+ expect(400).to eq(code)
39080
+ expect(e.message).to include(message)
39081
+ end
39082
+ end
39083
+
39084
+ it 'invalid password' do
39085
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplaceImageOnline', 'File')
39086
+ paramimage_index = AsposeSlidesCloud::SpecUtils.get_param_value('imageIndex', 'ReplaceImageOnline', 'Integer')
39087
+ paramimage = AsposeSlidesCloud::SpecUtils.get_param_value('image', 'ReplaceImageOnline', 'File')
39088
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplaceImageOnline', 'String')
39089
+ parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'ReplaceImageOnline', parampassword, 'String')
39090
+ AsposeSlidesCloud::SpecUtils.initialize('ReplaceImageOnline', 'password', parampassword)
39091
+ begin
39092
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_image_online_with_http_info(paramdocument, paramimage_index, paramimage, parampassword)
39093
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplaceImageOnline', 'password')
39094
+ fail "An exception expected"
39095
+ end
39096
+ rescue AsposeSlidesCloud::ApiError => e
39097
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', 'password', parampassword, 'String')
39098
+ expect(e.code).to eq(code)
39099
+ expect(e.response_body).to include(message)
39100
+ rescue ArgumentError => e
39101
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', 'password', parampassword, 'String')
39102
+ expect(400).to eq(code)
39103
+ expect(e.message).to include(message)
39104
+ end
39105
+ end
39106
+ end
39107
+
39108
+ # unit tests for replace_presentation_regex
39109
+ # Replace text with a new value using a regex.
39110
+ # @param name Document name.
39111
+ # @param pattern Text value pattern to be replaced.
39112
+ # @param new_value Text value to replace with.
39113
+ # @param [Hash] opts the optional parameters
39114
+ # @option opts [BOOLEAN] :ignore_case True if character case must be ignored.
39115
+ # @option opts [String] :password Document password.
39116
+ # @option opts [String] :folder Document folder.
39117
+ # @option opts [String] :storage Document storage.
39118
+ # @return [DocumentReplaceResult]
39119
+ describe 'replace_presentation_regex test' do
39120
+ it 'should work' do
39121
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationRegex', 'String')
39122
+ parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegex', 'String')
39123
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegex', 'String')
39124
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegex', 'BOOLEAN')
39125
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegex', 'String')
39126
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationRegex', 'String')
39127
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationRegex', 'String')
39128
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegex', nil, nil)
39129
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_with_http_info(paramname, parampattern, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
39130
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', nil, nil, nil)
39131
+ expect(c).to eq(code)
39132
+ expect(o).not_to be_nil
39133
+ end
39134
+
39135
+ it 'invalid name' do
39136
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationRegex', 'String')
39137
+ parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegex', 'String')
39138
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegex', 'String')
39139
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegex', 'BOOLEAN')
39140
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegex', 'String')
39141
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationRegex', 'String')
39142
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationRegex', 'String')
39143
+ paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'ReplacePresentationRegex', paramname, 'String')
39144
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegex', 'name', paramname)
39145
+ begin
39146
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_with_http_info(paramname, parampattern, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
39147
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegex', 'name')
39148
+ fail "An exception expected"
39149
+ end
39150
+ rescue AsposeSlidesCloud::ApiError => e
39151
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'name', paramname, 'String')
39152
+ expect(e.code).to eq(code)
39153
+ expect(e.response_body).to include(message)
39154
+ rescue ArgumentError => e
39155
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'name', paramname, 'String')
39156
+ expect(400).to eq(code)
39157
+ expect(e.message).to include(message)
39158
+ end
39159
+ end
39160
+
39161
+ it 'invalid pattern' do
39162
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationRegex', 'String')
39163
+ parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegex', 'String')
39164
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegex', 'String')
39165
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegex', 'BOOLEAN')
39166
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegex', 'String')
39167
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationRegex', 'String')
39168
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationRegex', 'String')
39169
+ parampattern = AsposeSlidesCloud::SpecUtils.invalidize_param_value('pattern', 'ReplacePresentationRegex', parampattern, 'String')
39170
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegex', 'pattern', parampattern)
39171
+ begin
39172
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_with_http_info(paramname, parampattern, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
39173
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegex', 'pattern')
39174
+ fail "An exception expected"
39175
+ end
39176
+ rescue AsposeSlidesCloud::ApiError => e
39177
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'pattern', parampattern, 'String')
39178
+ expect(e.code).to eq(code)
39179
+ expect(e.response_body).to include(message)
39180
+ rescue ArgumentError => e
39181
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'pattern', parampattern, 'String')
39182
+ expect(400).to eq(code)
39183
+ expect(e.message).to include(message)
39184
+ end
39185
+ end
39186
+
39187
+ it 'invalid new_value' do
39188
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationRegex', 'String')
39189
+ parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegex', 'String')
39190
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegex', 'String')
39191
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegex', 'BOOLEAN')
39192
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegex', 'String')
39193
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationRegex', 'String')
39194
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationRegex', 'String')
39195
+ paramnew_value = AsposeSlidesCloud::SpecUtils.invalidize_param_value('newValue', 'ReplacePresentationRegex', paramnew_value, 'String')
39196
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegex', 'newValue', paramnew_value)
39197
+ begin
39198
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_with_http_info(paramname, parampattern, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
39199
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegex', 'newValue')
39200
+ fail "An exception expected"
39201
+ end
39202
+ rescue AsposeSlidesCloud::ApiError => e
39203
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'newValue', paramnew_value, 'String')
39204
+ expect(e.code).to eq(code)
39205
+ expect(e.response_body).to include(message)
39206
+ rescue ArgumentError => e
39207
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'newValue', paramnew_value, 'String')
39208
+ expect(400).to eq(code)
39209
+ expect(e.message).to include(message)
39210
+ end
39211
+ end
39212
+
39213
+ it 'invalid ignore_case' do
39214
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationRegex', 'String')
39215
+ parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegex', 'String')
39216
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegex', 'String')
39217
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegex', 'BOOLEAN')
39218
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegex', 'String')
39219
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationRegex', 'String')
39220
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationRegex', 'String')
39221
+ paramignore_case = AsposeSlidesCloud::SpecUtils.invalidize_param_value('ignoreCase', 'ReplacePresentationRegex', paramignore_case, 'BOOLEAN')
39222
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegex', 'ignoreCase', paramignore_case)
39223
+ begin
39224
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_with_http_info(paramname, parampattern, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
39225
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegex', 'ignoreCase')
39226
+ fail "An exception expected"
39227
+ end
39228
+ rescue AsposeSlidesCloud::ApiError => e
39229
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'ignoreCase', paramignore_case, 'BOOLEAN')
39230
+ expect(e.code).to eq(code)
39231
+ expect(e.response_body).to include(message)
39232
+ rescue ArgumentError => e
39233
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'ignoreCase', paramignore_case, 'BOOLEAN')
39234
+ expect(400).to eq(code)
39235
+ expect(e.message).to include(message)
39236
+ end
39237
+ end
39238
+
39239
+ it 'invalid password' do
39240
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationRegex', 'String')
39241
+ parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegex', 'String')
39242
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegex', 'String')
39243
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegex', 'BOOLEAN')
39244
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegex', 'String')
39245
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationRegex', 'String')
39246
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationRegex', 'String')
39247
+ parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'ReplacePresentationRegex', parampassword, 'String')
39248
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegex', 'password', parampassword)
39249
+ begin
39250
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_with_http_info(paramname, parampattern, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
39251
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegex', 'password')
39252
+ fail "An exception expected"
39253
+ end
39254
+ rescue AsposeSlidesCloud::ApiError => e
39255
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'password', parampassword, 'String')
39256
+ expect(e.code).to eq(code)
39257
+ expect(e.response_body).to include(message)
39258
+ rescue ArgumentError => e
39259
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'password', parampassword, 'String')
39260
+ expect(400).to eq(code)
39261
+ expect(e.message).to include(message)
39262
+ end
39263
+ end
39264
+
39265
+ it 'invalid folder' do
39266
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationRegex', 'String')
39267
+ parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegex', 'String')
39268
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegex', 'String')
39269
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegex', 'BOOLEAN')
39270
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegex', 'String')
39271
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationRegex', 'String')
39272
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationRegex', 'String')
39273
+ paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'ReplacePresentationRegex', paramfolder, 'String')
39274
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegex', 'folder', paramfolder)
39275
+ begin
39276
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_with_http_info(paramname, parampattern, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
39277
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegex', 'folder')
39278
+ fail "An exception expected"
39279
+ end
39280
+ rescue AsposeSlidesCloud::ApiError => e
39281
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'folder', paramfolder, 'String')
39282
+ expect(e.code).to eq(code)
39283
+ expect(e.response_body).to include(message)
39284
+ rescue ArgumentError => e
39285
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'folder', paramfolder, 'String')
39286
+ expect(400).to eq(code)
39287
+ expect(e.message).to include(message)
39288
+ end
39289
+ end
39290
+
39291
+ it 'invalid storage' do
39292
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationRegex', 'String')
39293
+ parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegex', 'String')
39294
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegex', 'String')
39295
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegex', 'BOOLEAN')
39296
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegex', 'String')
39297
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationRegex', 'String')
39298
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationRegex', 'String')
39299
+ paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'ReplacePresentationRegex', paramstorage, 'String')
39300
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegex', 'storage', paramstorage)
38793
39301
  begin
38794
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_image_with_http_info(paramname, paramimage_index, paramimage, parampassword, paramfolder, paramstorage)
38795
- unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplaceImage', 'storage')
39302
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_with_http_info(paramname, parampattern, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
39303
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegex', 'storage')
38796
39304
  fail "An exception expected"
38797
39305
  end
38798
39306
  rescue AsposeSlidesCloud::ApiError => e
38799
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImage', 'storage', paramstorage, 'String')
39307
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'storage', paramstorage, 'String')
38800
39308
  expect(e.code).to eq(code)
38801
39309
  expect(e.response_body).to include(message)
38802
39310
  rescue ArgumentError => e
38803
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImage', 'storage', paramstorage, 'String')
39311
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegex', 'storage', paramstorage, 'String')
38804
39312
  expect(400).to eq(code)
38805
39313
  expect(e.message).to include(message)
38806
39314
  end
38807
39315
  end
38808
39316
  end
38809
39317
 
38810
- # unit tests for replace_image_online
38811
- # Replaces image by the specified index and returns updated document.
39318
+ # unit tests for replace_presentation_regex_online
39319
+ # Replace text with a new value using a regex.
38812
39320
  # @param document Document data.
38813
- # @param image_index Image index.
38814
- # @param image Image data.
39321
+ # @param pattern Text regex pattern to be replaced.
39322
+ # @param new_value Text value to replace with.
38815
39323
  # @param [Hash] opts the optional parameters
38816
- # @option opts [String] :password Password.
39324
+ # @option opts [BOOLEAN] :ignore_case True if character case must be ignored.
39325
+ # @option opts [String] :password Document password.
38817
39326
  # @return [File]
38818
- describe 'replace_image_online test' do
39327
+ describe 'replace_presentation_regex_online test' do
38819
39328
  it 'should work' do
38820
- paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplaceImageOnline', 'File')
38821
- paramimage_index = AsposeSlidesCloud::SpecUtils.get_param_value('imageIndex', 'ReplaceImageOnline', 'Integer')
38822
- paramimage = AsposeSlidesCloud::SpecUtils.get_param_value('image', 'ReplaceImageOnline', 'File')
38823
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplaceImageOnline', 'String')
38824
- AsposeSlidesCloud::SpecUtils.initialize('ReplaceImageOnline', nil, nil)
38825
- o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_image_online_with_http_info(paramdocument, paramimage_index, paramimage, parampassword)
38826
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', nil, nil, nil)
39329
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplacePresentationRegexOnline', 'File')
39330
+ parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegexOnline', 'String')
39331
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegexOnline', 'String')
39332
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegexOnline', 'BOOLEAN')
39333
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegexOnline', 'String')
39334
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegexOnline', nil, nil)
39335
+ o, c, _h = AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_online_with_http_info(paramdocument, parampattern, paramnew_value, paramignore_case, parampassword)
39336
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', nil, nil, nil)
38827
39337
  expect(c).to eq(code)
38828
39338
  expect(o).not_to be_nil
38829
39339
  end
38830
39340
 
38831
39341
  it 'invalid document' do
38832
- paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplaceImageOnline', 'File')
38833
- paramimage_index = AsposeSlidesCloud::SpecUtils.get_param_value('imageIndex', 'ReplaceImageOnline', 'Integer')
38834
- paramimage = AsposeSlidesCloud::SpecUtils.get_param_value('image', 'ReplaceImageOnline', 'File')
38835
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplaceImageOnline', 'String')
38836
- paramdocument = AsposeSlidesCloud::SpecUtils.invalidize_param_value('document', 'ReplaceImageOnline', paramdocument, 'File')
38837
- AsposeSlidesCloud::SpecUtils.initialize('ReplaceImageOnline', 'document', paramdocument)
39342
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplacePresentationRegexOnline', 'File')
39343
+ parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegexOnline', 'String')
39344
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegexOnline', 'String')
39345
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegexOnline', 'BOOLEAN')
39346
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegexOnline', 'String')
39347
+ paramdocument = AsposeSlidesCloud::SpecUtils.invalidize_param_value('document', 'ReplacePresentationRegexOnline', paramdocument, 'File')
39348
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegexOnline', 'document', paramdocument)
38838
39349
  begin
38839
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_image_online_with_http_info(paramdocument, paramimage_index, paramimage, parampassword)
38840
- unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplaceImageOnline', 'document')
39350
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_online_with_http_info(paramdocument, parampattern, paramnew_value, paramignore_case, parampassword)
39351
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegexOnline', 'document')
38841
39352
  fail "An exception expected"
38842
39353
  end
38843
39354
  rescue AsposeSlidesCloud::ApiError => e
38844
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', 'document', paramdocument, 'File')
39355
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'document', paramdocument, 'File')
38845
39356
  expect(e.code).to eq(code)
38846
39357
  expect(e.response_body).to include(message)
38847
39358
  rescue ArgumentError => e
38848
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', 'document', paramdocument, 'File')
39359
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'document', paramdocument, 'File')
38849
39360
  expect(400).to eq(code)
38850
39361
  expect(e.message).to include(message)
38851
39362
  end
38852
39363
  end
38853
39364
 
38854
- it 'invalid image_index' do
38855
- paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplaceImageOnline', 'File')
38856
- paramimage_index = AsposeSlidesCloud::SpecUtils.get_param_value('imageIndex', 'ReplaceImageOnline', 'Integer')
38857
- paramimage = AsposeSlidesCloud::SpecUtils.get_param_value('image', 'ReplaceImageOnline', 'File')
38858
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplaceImageOnline', 'String')
38859
- paramimage_index = AsposeSlidesCloud::SpecUtils.invalidize_param_value('imageIndex', 'ReplaceImageOnline', paramimage_index, 'Integer')
38860
- AsposeSlidesCloud::SpecUtils.initialize('ReplaceImageOnline', 'imageIndex', paramimage_index)
39365
+ it 'invalid pattern' do
39366
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplacePresentationRegexOnline', 'File')
39367
+ parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegexOnline', 'String')
39368
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegexOnline', 'String')
39369
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegexOnline', 'BOOLEAN')
39370
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegexOnline', 'String')
39371
+ parampattern = AsposeSlidesCloud::SpecUtils.invalidize_param_value('pattern', 'ReplacePresentationRegexOnline', parampattern, 'String')
39372
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegexOnline', 'pattern', parampattern)
38861
39373
  begin
38862
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_image_online_with_http_info(paramdocument, paramimage_index, paramimage, parampassword)
38863
- unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplaceImageOnline', 'imageIndex')
39374
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_online_with_http_info(paramdocument, parampattern, paramnew_value, paramignore_case, parampassword)
39375
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegexOnline', 'pattern')
38864
39376
  fail "An exception expected"
38865
39377
  end
38866
39378
  rescue AsposeSlidesCloud::ApiError => e
38867
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', 'imageIndex', paramimage_index, 'Integer')
39379
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'pattern', parampattern, 'String')
38868
39380
  expect(e.code).to eq(code)
38869
39381
  expect(e.response_body).to include(message)
38870
39382
  rescue ArgumentError => e
38871
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', 'imageIndex', paramimage_index, 'Integer')
39383
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'pattern', parampattern, 'String')
38872
39384
  expect(400).to eq(code)
38873
39385
  expect(e.message).to include(message)
38874
39386
  end
38875
39387
  end
38876
39388
 
38877
- it 'invalid image' do
38878
- paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplaceImageOnline', 'File')
38879
- paramimage_index = AsposeSlidesCloud::SpecUtils.get_param_value('imageIndex', 'ReplaceImageOnline', 'Integer')
38880
- paramimage = AsposeSlidesCloud::SpecUtils.get_param_value('image', 'ReplaceImageOnline', 'File')
38881
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplaceImageOnline', 'String')
38882
- paramimage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('image', 'ReplaceImageOnline', paramimage, 'File')
38883
- AsposeSlidesCloud::SpecUtils.initialize('ReplaceImageOnline', 'image', paramimage)
39389
+ it 'invalid new_value' do
39390
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplacePresentationRegexOnline', 'File')
39391
+ parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegexOnline', 'String')
39392
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegexOnline', 'String')
39393
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegexOnline', 'BOOLEAN')
39394
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegexOnline', 'String')
39395
+ paramnew_value = AsposeSlidesCloud::SpecUtils.invalidize_param_value('newValue', 'ReplacePresentationRegexOnline', paramnew_value, 'String')
39396
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegexOnline', 'newValue', paramnew_value)
38884
39397
  begin
38885
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_image_online_with_http_info(paramdocument, paramimage_index, paramimage, parampassword)
38886
- unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplaceImageOnline', 'image')
39398
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_online_with_http_info(paramdocument, parampattern, paramnew_value, paramignore_case, parampassword)
39399
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegexOnline', 'newValue')
38887
39400
  fail "An exception expected"
38888
39401
  end
38889
39402
  rescue AsposeSlidesCloud::ApiError => e
38890
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', 'image', paramimage, 'File')
39403
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'newValue', paramnew_value, 'String')
38891
39404
  expect(e.code).to eq(code)
38892
39405
  expect(e.response_body).to include(message)
38893
39406
  rescue ArgumentError => e
38894
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', 'image', paramimage, 'File')
39407
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'newValue', paramnew_value, 'String')
39408
+ expect(400).to eq(code)
39409
+ expect(e.message).to include(message)
39410
+ end
39411
+ end
39412
+
39413
+ it 'invalid ignore_case' do
39414
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplacePresentationRegexOnline', 'File')
39415
+ parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegexOnline', 'String')
39416
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegexOnline', 'String')
39417
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegexOnline', 'BOOLEAN')
39418
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegexOnline', 'String')
39419
+ paramignore_case = AsposeSlidesCloud::SpecUtils.invalidize_param_value('ignoreCase', 'ReplacePresentationRegexOnline', paramignore_case, 'BOOLEAN')
39420
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegexOnline', 'ignoreCase', paramignore_case)
39421
+ begin
39422
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_online_with_http_info(paramdocument, parampattern, paramnew_value, paramignore_case, parampassword)
39423
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegexOnline', 'ignoreCase')
39424
+ fail "An exception expected"
39425
+ end
39426
+ rescue AsposeSlidesCloud::ApiError => e
39427
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'ignoreCase', paramignore_case, 'BOOLEAN')
39428
+ expect(e.code).to eq(code)
39429
+ expect(e.response_body).to include(message)
39430
+ rescue ArgumentError => e
39431
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'ignoreCase', paramignore_case, 'BOOLEAN')
38895
39432
  expect(400).to eq(code)
38896
39433
  expect(e.message).to include(message)
38897
39434
  end
38898
39435
  end
38899
39436
 
38900
39437
  it 'invalid password' do
38901
- paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplaceImageOnline', 'File')
38902
- paramimage_index = AsposeSlidesCloud::SpecUtils.get_param_value('imageIndex', 'ReplaceImageOnline', 'Integer')
38903
- paramimage = AsposeSlidesCloud::SpecUtils.get_param_value('image', 'ReplaceImageOnline', 'File')
38904
- parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplaceImageOnline', 'String')
38905
- parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'ReplaceImageOnline', parampassword, 'String')
38906
- AsposeSlidesCloud::SpecUtils.initialize('ReplaceImageOnline', 'password', parampassword)
39438
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplacePresentationRegexOnline', 'File')
39439
+ parampattern = AsposeSlidesCloud::SpecUtils.get_param_value('pattern', 'ReplacePresentationRegexOnline', 'String')
39440
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationRegexOnline', 'String')
39441
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationRegexOnline', 'BOOLEAN')
39442
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationRegexOnline', 'String')
39443
+ parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'ReplacePresentationRegexOnline', parampassword, 'String')
39444
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationRegexOnline', 'password', parampassword)
38907
39445
  begin
38908
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_image_online_with_http_info(paramdocument, paramimage_index, paramimage, parampassword)
38909
- unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplaceImageOnline', 'password')
39446
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_regex_online_with_http_info(paramdocument, parampattern, paramnew_value, paramignore_case, parampassword)
39447
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationRegexOnline', 'password')
38910
39448
  fail "An exception expected"
38911
39449
  end
38912
39450
  rescue AsposeSlidesCloud::ApiError => e
38913
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', 'password', parampassword, 'String')
39451
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'password', parampassword, 'String')
38914
39452
  expect(e.code).to eq(code)
38915
39453
  expect(e.response_body).to include(message)
38916
39454
  rescue ArgumentError => e
38917
- code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplaceImageOnline', 'password', parampassword, 'String')
39455
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationRegexOnline', 'password', parampassword, 'String')
38918
39456
  expect(400).to eq(code)
38919
39457
  expect(e.message).to include(message)
38920
39458
  end
@@ -38928,6 +39466,7 @@ describe 'SlidesApi' do
38928
39466
  # @param new_value Text value to replace with.
38929
39467
  # @param [Hash] opts the optional parameters
38930
39468
  # @option opts [BOOLEAN] :ignore_case True if character case must be ignored.
39469
+ # @option opts [BOOLEAN] :whole_words_only True to replace whole words only.
38931
39470
  # @option opts [String] :password Document password.
38932
39471
  # @option opts [String] :folder Document folder.
38933
39472
  # @option opts [String] :storage Document storage.
@@ -38938,11 +39477,12 @@ describe 'SlidesApi' do
38938
39477
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
38939
39478
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
38940
39479
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
39480
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
38941
39481
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
38942
39482
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
38943
39483
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
38944
39484
  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)
39485
+ 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
39486
  code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationText', nil, nil, nil)
38947
39487
  expect(c).to eq(code)
38948
39488
  expect(o).not_to be_nil
@@ -38953,13 +39493,14 @@ describe 'SlidesApi' do
38953
39493
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
38954
39494
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
38955
39495
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
39496
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
38956
39497
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
38957
39498
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
38958
39499
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
38959
39500
  paramname = AsposeSlidesCloud::SpecUtils.invalidize_param_value('name', 'ReplacePresentationText', paramname, 'String')
38960
39501
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', 'name', paramname)
38961
39502
  begin
38962
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
39503
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
38963
39504
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationText', 'name')
38964
39505
  fail "An exception expected"
38965
39506
  end
@@ -38979,13 +39520,14 @@ describe 'SlidesApi' do
38979
39520
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
38980
39521
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
38981
39522
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
39523
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
38982
39524
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
38983
39525
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
38984
39526
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
38985
39527
  paramold_value = AsposeSlidesCloud::SpecUtils.invalidize_param_value('oldValue', 'ReplacePresentationText', paramold_value, 'String')
38986
39528
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', 'oldValue', paramold_value)
38987
39529
  begin
38988
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
39530
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
38989
39531
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationText', 'oldValue')
38990
39532
  fail "An exception expected"
38991
39533
  end
@@ -39005,13 +39547,14 @@ describe 'SlidesApi' do
39005
39547
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
39006
39548
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
39007
39549
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
39550
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
39008
39551
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
39009
39552
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
39010
39553
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
39011
39554
  paramnew_value = AsposeSlidesCloud::SpecUtils.invalidize_param_value('newValue', 'ReplacePresentationText', paramnew_value, 'String')
39012
39555
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', 'newValue', paramnew_value)
39013
39556
  begin
39014
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
39557
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
39015
39558
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationText', 'newValue')
39016
39559
  fail "An exception expected"
39017
39560
  end
@@ -39031,13 +39574,14 @@ describe 'SlidesApi' do
39031
39574
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
39032
39575
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
39033
39576
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
39577
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
39034
39578
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
39035
39579
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
39036
39580
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
39037
39581
  paramignore_case = AsposeSlidesCloud::SpecUtils.invalidize_param_value('ignoreCase', 'ReplacePresentationText', paramignore_case, 'BOOLEAN')
39038
39582
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', 'ignoreCase', paramignore_case)
39039
39583
  begin
39040
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
39584
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
39041
39585
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationText', 'ignoreCase')
39042
39586
  fail "An exception expected"
39043
39587
  end
@@ -39052,18 +39596,46 @@ describe 'SlidesApi' do
39052
39596
  end
39053
39597
  end
39054
39598
 
39599
+ it 'invalid whole_words_only' do
39600
+ paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationText', 'String')
39601
+ paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
39602
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
39603
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
39604
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
39605
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
39606
+ paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
39607
+ paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
39608
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.invalidize_param_value('wholeWordsOnly', 'ReplacePresentationText', paramwhole_words_only, 'BOOLEAN')
39609
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', 'wholeWordsOnly', paramwhole_words_only)
39610
+ begin
39611
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
39612
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationText', 'wholeWordsOnly')
39613
+ fail "An exception expected"
39614
+ end
39615
+ rescue AsposeSlidesCloud::ApiError => e
39616
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationText', 'wholeWordsOnly', paramwhole_words_only, 'BOOLEAN')
39617
+ expect(e.code).to eq(code)
39618
+ expect(e.response_body).to include(message)
39619
+ rescue ArgumentError => e
39620
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationText', 'wholeWordsOnly', paramwhole_words_only, 'BOOLEAN')
39621
+ expect(400).to eq(code)
39622
+ expect(e.message).to include(message)
39623
+ end
39624
+ end
39625
+
39055
39626
  it 'invalid password' do
39056
39627
  paramname = AsposeSlidesCloud::SpecUtils.get_param_value('name', 'ReplacePresentationText', 'String')
39057
39628
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
39058
39629
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
39059
39630
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
39631
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
39060
39632
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
39061
39633
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
39062
39634
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
39063
39635
  parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'ReplacePresentationText', parampassword, 'String')
39064
39636
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', 'password', parampassword)
39065
39637
  begin
39066
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
39638
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
39067
39639
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationText', 'password')
39068
39640
  fail "An exception expected"
39069
39641
  end
@@ -39083,13 +39655,14 @@ describe 'SlidesApi' do
39083
39655
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
39084
39656
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
39085
39657
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
39658
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
39086
39659
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
39087
39660
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
39088
39661
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
39089
39662
  paramfolder = AsposeSlidesCloud::SpecUtils.invalidize_param_value('folder', 'ReplacePresentationText', paramfolder, 'String')
39090
39663
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', 'folder', paramfolder)
39091
39664
  begin
39092
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
39665
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
39093
39666
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationText', 'folder')
39094
39667
  fail "An exception expected"
39095
39668
  end
@@ -39109,13 +39682,14 @@ describe 'SlidesApi' do
39109
39682
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationText', 'String')
39110
39683
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationText', 'String')
39111
39684
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationText', 'BOOLEAN')
39685
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationText', 'BOOLEAN')
39112
39686
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationText', 'String')
39113
39687
  paramfolder = AsposeSlidesCloud::SpecUtils.get_param_value('folder', 'ReplacePresentationText', 'String')
39114
39688
  paramstorage = AsposeSlidesCloud::SpecUtils.get_param_value('storage', 'ReplacePresentationText', 'String')
39115
39689
  paramstorage = AsposeSlidesCloud::SpecUtils.invalidize_param_value('storage', 'ReplacePresentationText', paramstorage, 'String')
39116
39690
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationText', 'storage', paramstorage)
39117
39691
  begin
39118
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, parampassword, paramfolder, paramstorage)
39692
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_with_http_info(paramname, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword, paramfolder, paramstorage)
39119
39693
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationText', 'storage')
39120
39694
  fail "An exception expected"
39121
39695
  end
@@ -39138,6 +39712,7 @@ describe 'SlidesApi' do
39138
39712
  # @param new_value Text value to replace with.
39139
39713
  # @param [Hash] opts the optional parameters
39140
39714
  # @option opts [BOOLEAN] :ignore_case True if character case must be ignored.
39715
+ # @option opts [BOOLEAN] :whole_words_only True to replace whole words only.
39141
39716
  # @option opts [String] :password Document password.
39142
39717
  # @return [File]
39143
39718
  describe 'replace_presentation_text_online test' do
@@ -39146,9 +39721,10 @@ describe 'SlidesApi' do
39146
39721
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationTextOnline', 'String')
39147
39722
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationTextOnline', 'String')
39148
39723
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationTextOnline', 'BOOLEAN')
39724
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationTextOnline', 'BOOLEAN')
39149
39725
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationTextOnline', 'String')
39150
39726
  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)
39727
+ 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
39728
  code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationTextOnline', nil, nil, nil)
39153
39729
  expect(c).to eq(code)
39154
39730
  expect(o).not_to be_nil
@@ -39159,11 +39735,12 @@ describe 'SlidesApi' do
39159
39735
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationTextOnline', 'String')
39160
39736
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationTextOnline', 'String')
39161
39737
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationTextOnline', 'BOOLEAN')
39738
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationTextOnline', 'BOOLEAN')
39162
39739
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationTextOnline', 'String')
39163
39740
  paramdocument = AsposeSlidesCloud::SpecUtils.invalidize_param_value('document', 'ReplacePresentationTextOnline', paramdocument, 'File')
39164
39741
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationTextOnline', 'document', paramdocument)
39165
39742
  begin
39166
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, parampassword)
39743
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword)
39167
39744
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationTextOnline', 'document')
39168
39745
  fail "An exception expected"
39169
39746
  end
@@ -39183,11 +39760,12 @@ describe 'SlidesApi' do
39183
39760
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationTextOnline', 'String')
39184
39761
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationTextOnline', 'String')
39185
39762
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationTextOnline', 'BOOLEAN')
39763
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationTextOnline', 'BOOLEAN')
39186
39764
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationTextOnline', 'String')
39187
39765
  paramold_value = AsposeSlidesCloud::SpecUtils.invalidize_param_value('oldValue', 'ReplacePresentationTextOnline', paramold_value, 'String')
39188
39766
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationTextOnline', 'oldValue', paramold_value)
39189
39767
  begin
39190
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, parampassword)
39768
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword)
39191
39769
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationTextOnline', 'oldValue')
39192
39770
  fail "An exception expected"
39193
39771
  end
@@ -39207,11 +39785,12 @@ describe 'SlidesApi' do
39207
39785
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationTextOnline', 'String')
39208
39786
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationTextOnline', 'String')
39209
39787
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationTextOnline', 'BOOLEAN')
39788
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationTextOnline', 'BOOLEAN')
39210
39789
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationTextOnline', 'String')
39211
39790
  paramnew_value = AsposeSlidesCloud::SpecUtils.invalidize_param_value('newValue', 'ReplacePresentationTextOnline', paramnew_value, 'String')
39212
39791
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationTextOnline', 'newValue', paramnew_value)
39213
39792
  begin
39214
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, parampassword)
39793
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword)
39215
39794
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationTextOnline', 'newValue')
39216
39795
  fail "An exception expected"
39217
39796
  end
@@ -39231,11 +39810,12 @@ describe 'SlidesApi' do
39231
39810
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationTextOnline', 'String')
39232
39811
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationTextOnline', 'String')
39233
39812
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationTextOnline', 'BOOLEAN')
39813
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationTextOnline', 'BOOLEAN')
39234
39814
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationTextOnline', 'String')
39235
39815
  paramignore_case = AsposeSlidesCloud::SpecUtils.invalidize_param_value('ignoreCase', 'ReplacePresentationTextOnline', paramignore_case, 'BOOLEAN')
39236
39816
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationTextOnline', 'ignoreCase', paramignore_case)
39237
39817
  begin
39238
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, parampassword)
39818
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword)
39239
39819
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationTextOnline', 'ignoreCase')
39240
39820
  fail "An exception expected"
39241
39821
  end
@@ -39250,16 +39830,42 @@ describe 'SlidesApi' do
39250
39830
  end
39251
39831
  end
39252
39832
 
39833
+ it 'invalid whole_words_only' do
39834
+ paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplacePresentationTextOnline', 'File')
39835
+ paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationTextOnline', 'String')
39836
+ paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationTextOnline', 'String')
39837
+ paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationTextOnline', 'BOOLEAN')
39838
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationTextOnline', 'BOOLEAN')
39839
+ parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationTextOnline', 'String')
39840
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.invalidize_param_value('wholeWordsOnly', 'ReplacePresentationTextOnline', paramwhole_words_only, 'BOOLEAN')
39841
+ AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationTextOnline', 'wholeWordsOnly', paramwhole_words_only)
39842
+ begin
39843
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword)
39844
+ unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationTextOnline', 'wholeWordsOnly')
39845
+ fail "An exception expected"
39846
+ end
39847
+ rescue AsposeSlidesCloud::ApiError => e
39848
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationTextOnline', 'wholeWordsOnly', paramwhole_words_only, 'BOOLEAN')
39849
+ expect(e.code).to eq(code)
39850
+ expect(e.response_body).to include(message)
39851
+ rescue ArgumentError => e
39852
+ code, message = AsposeSlidesCloud::SpecUtils.get_expected_error('ReplacePresentationTextOnline', 'wholeWordsOnly', paramwhole_words_only, 'BOOLEAN')
39853
+ expect(400).to eq(code)
39854
+ expect(e.message).to include(message)
39855
+ end
39856
+ end
39857
+
39253
39858
  it 'invalid password' do
39254
39859
  paramdocument = AsposeSlidesCloud::SpecUtils.get_param_value('document', 'ReplacePresentationTextOnline', 'File')
39255
39860
  paramold_value = AsposeSlidesCloud::SpecUtils.get_param_value('oldValue', 'ReplacePresentationTextOnline', 'String')
39256
39861
  paramnew_value = AsposeSlidesCloud::SpecUtils.get_param_value('newValue', 'ReplacePresentationTextOnline', 'String')
39257
39862
  paramignore_case = AsposeSlidesCloud::SpecUtils.get_param_value('ignoreCase', 'ReplacePresentationTextOnline', 'BOOLEAN')
39863
+ paramwhole_words_only = AsposeSlidesCloud::SpecUtils.get_param_value('wholeWordsOnly', 'ReplacePresentationTextOnline', 'BOOLEAN')
39258
39864
  parampassword = AsposeSlidesCloud::SpecUtils.get_param_value('password', 'ReplacePresentationTextOnline', 'String')
39259
39865
  parampassword = AsposeSlidesCloud::SpecUtils.invalidize_param_value('password', 'ReplacePresentationTextOnline', parampassword, 'String')
39260
39866
  AsposeSlidesCloud::SpecUtils.initialize('ReplacePresentationTextOnline', 'password', parampassword)
39261
39867
  begin
39262
- AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, parampassword)
39868
+ AsposeSlidesCloud::SpecUtils.testSlidesApi.replace_presentation_text_online_with_http_info(paramdocument, paramold_value, paramnew_value, paramignore_case, paramwhole_words_only, parampassword)
39263
39869
  unless AsposeSlidesCloud::SpecUtils.no_exception?('ReplacePresentationTextOnline', 'password')
39264
39870
  fail "An exception expected"
39265
39871
  end
@@ -40441,289 +41047,6 @@ describe 'SlidesApi' do
40441
41047
  end
40442
41048
  end
40443
41049
 
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
41050
  # unit tests for save_presentation
40728
41051
  # Save a presentation to a specified format.
40729
41052
  # @param name Document name.