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
@@ -353,8 +353,8 @@ module AsposeSlidesCloud
353
353
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.convert"
354
354
  end
355
355
  # verify enum value
356
- if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md'].any?{ |s| s.casecmp(format)==0 }
357
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml, Mpeg4, Md"
356
+ if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
357
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml, Mpeg4, Md, Xml"
358
358
  end
359
359
  # resource path
360
360
  local_var_path = '/slides/convert/{format}'
@@ -430,8 +430,8 @@ module AsposeSlidesCloud
430
430
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.convert_and_save"
431
431
  end
432
432
  # verify enum value
433
- if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md'].any?{ |s| s.casecmp(format)==0 }
434
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml, Mpeg4, Md"
433
+ if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
434
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml, Mpeg4, Md, Xml"
435
435
  end
436
436
  # verify the required parameter 'out_path' is set
437
437
  if @api_client.config.client_side_validation && out_path.nil?
@@ -8229,91 +8229,6 @@ module AsposeSlidesCloud
8229
8229
  :return_type => 'File')
8230
8230
  return data, status_code, headers
8231
8231
  end
8232
- # Convert Mathematical Text to MathML Format
8233
- # @param name Document name.
8234
- # @param slide_index Slide index.
8235
- # @param shape_index Shape index.
8236
- # @param paragraph_index Paragraph index.
8237
- # @param portion_index Portion index.
8238
- # @param password Document password.
8239
- # @param folder Document folder.
8240
- # @param storage Document storage.
8241
- def download_portion_as_math_ml(name, slide_index, shape_index, paragraph_index, portion_index, password = nil, folder = nil, storage = nil)
8242
- data, _status_code, _headers = download_portion_as_math_ml_with_http_info(name, slide_index, shape_index, paragraph_index, portion_index, password, folder, storage)
8243
- data
8244
- end
8245
-
8246
- # Convert Mathematical Text to MathML Format
8247
- # @param name Document name.
8248
- # @param slide_index Slide index.
8249
- # @param shape_index Shape index.
8250
- # @param paragraph_index Paragraph index.
8251
- # @param portion_index Portion index.
8252
- # @param password Document password.
8253
- # @param folder Document folder.
8254
- # @param storage Document storage.
8255
- def download_portion_as_math_ml_with_http_info(name, slide_index, shape_index, paragraph_index, portion_index, password = nil, folder = nil, storage = nil)
8256
- if @api_client.config.debugging
8257
- @api_client.config.logger.debug 'Calling API: SlidesApi.download_portion_as_math_ml ...'
8258
- end
8259
-
8260
- # verify the required parameter 'name' is set
8261
- if @api_client.config.client_side_validation && name.nil?
8262
- fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.download_portion_as_math_ml"
8263
- end
8264
- # verify the required parameter 'slide_index' is set
8265
- if @api_client.config.client_side_validation && slide_index.nil?
8266
- fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.download_portion_as_math_ml"
8267
- end
8268
- # verify the required parameter 'shape_index' is set
8269
- if @api_client.config.client_side_validation && shape_index.nil?
8270
- fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.download_portion_as_math_ml"
8271
- end
8272
- # verify the required parameter 'paragraph_index' is set
8273
- if @api_client.config.client_side_validation && paragraph_index.nil?
8274
- fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.download_portion_as_math_ml"
8275
- end
8276
- # verify the required parameter 'portion_index' is set
8277
- if @api_client.config.client_side_validation && portion_index.nil?
8278
- fail ArgumentError, "Missing the required parameter 'portion_index' when calling SlidesApi.download_portion_as_math_ml"
8279
- end
8280
- # resource path
8281
- local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/mathml'
8282
- local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
8283
- local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
8284
- local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
8285
- local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
8286
- local_var_path = @api_client.replace_path_parameter(local_var_path, 'portionIndex', portion_index)
8287
-
8288
- # query parameters
8289
- query_params = {}
8290
- query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
8291
- query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
8292
-
8293
- # header parameters
8294
- header_params = {}
8295
- # HTTP header 'Accept' (if needed)
8296
- header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
8297
- # HTTP header 'Content-Type'
8298
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
8299
- header_params[:'password'] = password unless password.nil?
8300
-
8301
- # http body (model)
8302
- post_body = nil
8303
-
8304
- # form parameters
8305
- post_files = []
8306
-
8307
- auth_names = ['JWT']
8308
- data, status_code, headers = @api_client.call_api(:POST, local_var_path,
8309
- :header_params => header_params,
8310
- :query_params => query_params,
8311
- :body => post_body,
8312
- :files => post_files,
8313
- :auth_names => auth_names,
8314
- :return_type => 'File')
8315
- return data, status_code, headers
8316
- end
8317
8232
  # Save a presentation to a specified format.
8318
8233
  # @param name Document name.
8319
8234
  # @param format Export format.
@@ -8351,8 +8266,8 @@ module AsposeSlidesCloud
8351
8266
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_presentation"
8352
8267
  end
8353
8268
  # verify enum value
8354
- if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md'].any?{ |s| s.casecmp(format)==0 }
8355
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml, Mpeg4, Md"
8269
+ if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
8270
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml, Mpeg4, Md, Xml"
8356
8271
  end
8357
8272
  # resource path
8358
8273
  local_var_path = '/slides/{name}/{format}'
@@ -8693,8 +8608,8 @@ module AsposeSlidesCloud
8693
8608
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_slide"
8694
8609
  end
8695
8610
  # verify enum value
8696
- if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md'].any?{ |s| s.casecmp(format)==0 }
8697
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml, Html5, Md"
8611
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
8612
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml, Html5, Md, Xml"
8698
8613
  end
8699
8614
  # resource path
8700
8615
  local_var_path = '/slides/{name}/slides/{slideIndex}/{format}'
@@ -8777,8 +8692,8 @@ module AsposeSlidesCloud
8777
8692
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.download_slide_online"
8778
8693
  end
8779
8694
  # verify enum value
8780
- if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md'].any?{ |s| s.casecmp(format)==0 }
8781
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml, Html5, Md"
8695
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
8696
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml, Html5, Md, Xml"
8782
8697
  end
8783
8698
  # resource path
8784
8699
  local_var_path = '/slides/slides/{slideIndex}/{format}'
@@ -9780,6 +9695,47 @@ module AsposeSlidesCloud
9780
9695
  :return_type => 'FormatScheme')
9781
9696
  return data, status_code, headers
9782
9697
  end
9698
+ # Get default templates for HTML5 export.
9699
+ def get_html5_templates()
9700
+ data, _status_code, _headers = get_html5_templates_with_http_info
9701
+ data
9702
+ end
9703
+
9704
+ # Get default templates for HTML5 export.
9705
+ def get_html5_templates_with_http_info()
9706
+ if @api_client.config.debugging
9707
+ @api_client.config.logger.debug 'Calling API: SlidesApi.get_html5_templates ...'
9708
+ end
9709
+
9710
+ # resource path
9711
+ local_var_path = '/slides/html5Templates'
9712
+
9713
+ # query parameters
9714
+ query_params = {}
9715
+
9716
+ # header parameters
9717
+ header_params = {}
9718
+ # HTTP header 'Accept' (if needed)
9719
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
9720
+ # HTTP header 'Content-Type'
9721
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
9722
+
9723
+ # http body (model)
9724
+ post_body = nil
9725
+
9726
+ # form parameters
9727
+ post_files = []
9728
+
9729
+ auth_names = ['JWT']
9730
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
9731
+ :header_params => header_params,
9732
+ :query_params => query_params,
9733
+ :body => post_body,
9734
+ :files => post_files,
9735
+ :auth_names => auth_names,
9736
+ :return_type => 'File')
9737
+ return data, status_code, headers
9738
+ end
9783
9739
  # Read presentation layoutSlide info.
9784
9740
  # @param name Document name.
9785
9741
  # @param slide_index Slide index.
@@ -13225,17 +13181,167 @@ module AsposeSlidesCloud
13225
13181
  end
13226
13182
  # Highlight all matches of sample in text frame text using specified color.
13227
13183
  # @param name Document name.
13184
+ # @param regex Regular expression.
13185
+ # @param color Highlighting color.
13186
+ # @param ignore_case True to search ignoring char case.
13187
+ # @param password Document password.
13188
+ # @param folder Document folder.
13189
+ # @param storage Document storage.
13190
+ def highlight_presentation_regex(name, regex, color, ignore_case = nil, password = nil, folder = nil, storage = nil)
13191
+ data, _status_code, _headers = highlight_presentation_regex_with_http_info(name, regex, color, ignore_case, password, folder, storage)
13192
+ data
13193
+ end
13194
+
13195
+ # Highlight all matches of sample in text frame text using specified color.
13196
+ # @param name Document name.
13197
+ # @param regex Regular expression.
13198
+ # @param color Highlighting color.
13199
+ # @param ignore_case True to search ignoring char case.
13200
+ # @param password Document password.
13201
+ # @param folder Document folder.
13202
+ # @param storage Document storage.
13203
+ def highlight_presentation_regex_with_http_info(name, regex, color, ignore_case = nil, password = nil, folder = nil, storage = nil)
13204
+ if @api_client.config.debugging
13205
+ @api_client.config.logger.debug 'Calling API: SlidesApi.highlight_presentation_regex ...'
13206
+ end
13207
+
13208
+ # verify the required parameter 'name' is set
13209
+ if @api_client.config.client_side_validation && name.nil?
13210
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.highlight_presentation_regex"
13211
+ end
13212
+ # verify the required parameter 'regex' is set
13213
+ if @api_client.config.client_side_validation && regex.nil?
13214
+ fail ArgumentError, "Missing the required parameter 'regex' when calling SlidesApi.highlight_presentation_regex"
13215
+ end
13216
+ # verify the required parameter 'color' is set
13217
+ if @api_client.config.client_side_validation && color.nil?
13218
+ fail ArgumentError, "Missing the required parameter 'color' when calling SlidesApi.highlight_presentation_regex"
13219
+ end
13220
+ # resource path
13221
+ local_var_path = '/slides/{name}/highlightRegex'
13222
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
13223
+
13224
+ # query parameters
13225
+ query_params = {}
13226
+ query_params[:'regex'] = @api_client.prepare_for_query(regex) unless regex.nil?
13227
+ query_params[:'color'] = @api_client.prepare_for_query(color) unless color.nil?
13228
+ query_params[:'ignoreCase'] = @api_client.prepare_for_query(ignore_case) unless ignore_case.nil?
13229
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
13230
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
13231
+
13232
+ # header parameters
13233
+ header_params = {}
13234
+ # HTTP header 'Accept' (if needed)
13235
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
13236
+ # HTTP header 'Content-Type'
13237
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
13238
+ header_params[:'password'] = password unless password.nil?
13239
+
13240
+ # http body (model)
13241
+ post_body = nil
13242
+
13243
+ # form parameters
13244
+ post_files = []
13245
+
13246
+ auth_names = ['JWT']
13247
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
13248
+ :header_params => header_params,
13249
+ :query_params => query_params,
13250
+ :body => post_body,
13251
+ :files => post_files,
13252
+ :auth_names => auth_names,
13253
+ :return_type => 'DocumentReplaceResult')
13254
+ return data, status_code, headers
13255
+ end
13256
+ # Highlight all matches of sample using specified color.
13257
+ # @param name Document name.
13258
+ # @param text Text sample to highlight.
13259
+ # @param color Highlighting color.
13260
+ # @param whole_words_only Match only whole words.
13261
+ # @param ignore_case True to search ignoring char case.
13262
+ # @param password Document password.
13263
+ # @param folder Document folder.
13264
+ # @param storage Document storage.
13265
+ def highlight_presentation_text(name, text, color, whole_words_only = nil, ignore_case = nil, password = nil, folder = nil, storage = nil)
13266
+ data, _status_code, _headers = highlight_presentation_text_with_http_info(name, text, color, whole_words_only, ignore_case, password, folder, storage)
13267
+ data
13268
+ end
13269
+
13270
+ # Highlight all matches of sample using specified color.
13271
+ # @param name Document name.
13272
+ # @param text Text sample to highlight.
13273
+ # @param color Highlighting color.
13274
+ # @param whole_words_only Match only whole words.
13275
+ # @param ignore_case True to search ignoring char case.
13276
+ # @param password Document password.
13277
+ # @param folder Document folder.
13278
+ # @param storage Document storage.
13279
+ def highlight_presentation_text_with_http_info(name, text, color, whole_words_only = nil, ignore_case = nil, password = nil, folder = nil, storage = nil)
13280
+ if @api_client.config.debugging
13281
+ @api_client.config.logger.debug 'Calling API: SlidesApi.highlight_presentation_text ...'
13282
+ end
13283
+
13284
+ # verify the required parameter 'name' is set
13285
+ if @api_client.config.client_side_validation && name.nil?
13286
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.highlight_presentation_text"
13287
+ end
13288
+ # verify the required parameter 'text' is set
13289
+ if @api_client.config.client_side_validation && text.nil?
13290
+ fail ArgumentError, "Missing the required parameter 'text' when calling SlidesApi.highlight_presentation_text"
13291
+ end
13292
+ # verify the required parameter 'color' is set
13293
+ if @api_client.config.client_side_validation && color.nil?
13294
+ fail ArgumentError, "Missing the required parameter 'color' when calling SlidesApi.highlight_presentation_text"
13295
+ end
13296
+ # resource path
13297
+ local_var_path = '/slides/{name}/highlightText'
13298
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
13299
+
13300
+ # query parameters
13301
+ query_params = {}
13302
+ query_params[:'text'] = @api_client.prepare_for_query(text) unless text.nil?
13303
+ query_params[:'color'] = @api_client.prepare_for_query(color) unless color.nil?
13304
+ query_params[:'wholeWordsOnly'] = @api_client.prepare_for_query(whole_words_only) unless whole_words_only.nil?
13305
+ query_params[:'ignoreCase'] = @api_client.prepare_for_query(ignore_case) unless ignore_case.nil?
13306
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
13307
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
13308
+
13309
+ # header parameters
13310
+ header_params = {}
13311
+ # HTTP header 'Accept' (if needed)
13312
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
13313
+ # HTTP header 'Content-Type'
13314
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
13315
+ header_params[:'password'] = password unless password.nil?
13316
+
13317
+ # http body (model)
13318
+ post_body = nil
13319
+
13320
+ # form parameters
13321
+ post_files = []
13322
+
13323
+ auth_names = ['JWT']
13324
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
13325
+ :header_params => header_params,
13326
+ :query_params => query_params,
13327
+ :body => post_body,
13328
+ :files => post_files,
13329
+ :auth_names => auth_names,
13330
+ :return_type => 'DocumentReplaceResult')
13331
+ return data, status_code, headers
13332
+ end
13333
+ # Highlight all matches of sample in text frame text using specified color.
13334
+ # @param name Document name.
13228
13335
  # @param slide_index Slide index.
13229
13336
  # @param shape_index Shape index.
13230
13337
  # @param regex Regular expression.
13231
13338
  # @param color Highlighting color.
13232
- # @param whole_words_only Match only whole words.
13233
13339
  # @param ignore_case True to search ignoring char case.
13234
13340
  # @param password Document password.
13235
13341
  # @param folder Document folder.
13236
13342
  # @param storage Document storage.
13237
- def highlight_shape_regex(name, slide_index, shape_index, regex, color, whole_words_only = nil, ignore_case = nil, password = nil, folder = nil, storage = nil)
13238
- data, _status_code, _headers = highlight_shape_regex_with_http_info(name, slide_index, shape_index, regex, color, whole_words_only, ignore_case, password, folder, storage)
13343
+ def highlight_shape_regex(name, slide_index, shape_index, regex, color, ignore_case = nil, password = nil, folder = nil, storage = nil)
13344
+ data, _status_code, _headers = highlight_shape_regex_with_http_info(name, slide_index, shape_index, regex, color, ignore_case, password, folder, storage)
13239
13345
  data
13240
13346
  end
13241
13347
 
@@ -13245,12 +13351,11 @@ module AsposeSlidesCloud
13245
13351
  # @param shape_index Shape index.
13246
13352
  # @param regex Regular expression.
13247
13353
  # @param color Highlighting color.
13248
- # @param whole_words_only Match only whole words.
13249
13354
  # @param ignore_case True to search ignoring char case.
13250
13355
  # @param password Document password.
13251
13356
  # @param folder Document folder.
13252
13357
  # @param storage Document storage.
13253
- def highlight_shape_regex_with_http_info(name, slide_index, shape_index, regex, color, whole_words_only = nil, ignore_case = nil, password = nil, folder = nil, storage = nil)
13358
+ def highlight_shape_regex_with_http_info(name, slide_index, shape_index, regex, color, ignore_case = nil, password = nil, folder = nil, storage = nil)
13254
13359
  if @api_client.config.debugging
13255
13360
  @api_client.config.logger.debug 'Calling API: SlidesApi.highlight_shape_regex ...'
13256
13361
  end
@@ -13285,7 +13390,6 @@ module AsposeSlidesCloud
13285
13390
  query_params = {}
13286
13391
  query_params[:'regex'] = @api_client.prepare_for_query(regex) unless regex.nil?
13287
13392
  query_params[:'color'] = @api_client.prepare_for_query(color) unless color.nil?
13288
- query_params[:'wholeWordsOnly'] = @api_client.prepare_for_query(whole_words_only) unless whole_words_only.nil?
13289
13393
  query_params[:'ignoreCase'] = @api_client.prepare_for_query(ignore_case) unless ignore_case.nil?
13290
13394
  query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
13291
13395
  query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
@@ -14779,16 +14883,161 @@ module AsposeSlidesCloud
14779
14883
  :return_type => 'File')
14780
14884
  return data, status_code, headers
14781
14885
  end
14886
+ # Replace text with a new value using a regex.
14887
+ # @param name Document name.
14888
+ # @param pattern Text value pattern to be replaced.
14889
+ # @param new_value Text value to replace with.
14890
+ # @param ignore_case True if character case must be ignored.
14891
+ # @param password Document password.
14892
+ # @param folder Document folder.
14893
+ # @param storage Document storage.
14894
+ def replace_presentation_regex(name, pattern, new_value, ignore_case = nil, password = nil, folder = nil, storage = nil)
14895
+ data, _status_code, _headers = replace_presentation_regex_with_http_info(name, pattern, new_value, ignore_case, password, folder, storage)
14896
+ data
14897
+ end
14898
+
14899
+ # Replace text with a new value using a regex.
14900
+ # @param name Document name.
14901
+ # @param pattern Text value pattern to be replaced.
14902
+ # @param new_value Text value to replace with.
14903
+ # @param ignore_case True if character case must be ignored.
14904
+ # @param password Document password.
14905
+ # @param folder Document folder.
14906
+ # @param storage Document storage.
14907
+ def replace_presentation_regex_with_http_info(name, pattern, new_value, ignore_case = nil, password = nil, folder = nil, storage = nil)
14908
+ if @api_client.config.debugging
14909
+ @api_client.config.logger.debug 'Calling API: SlidesApi.replace_presentation_regex ...'
14910
+ end
14911
+
14912
+ # verify the required parameter 'name' is set
14913
+ if @api_client.config.client_side_validation && name.nil?
14914
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.replace_presentation_regex"
14915
+ end
14916
+ # verify the required parameter 'pattern' is set
14917
+ if @api_client.config.client_side_validation && pattern.nil?
14918
+ fail ArgumentError, "Missing the required parameter 'pattern' when calling SlidesApi.replace_presentation_regex"
14919
+ end
14920
+ # verify the required parameter 'new_value' is set
14921
+ if @api_client.config.client_side_validation && new_value.nil?
14922
+ fail ArgumentError, "Missing the required parameter 'new_value' when calling SlidesApi.replace_presentation_regex"
14923
+ end
14924
+ # resource path
14925
+ local_var_path = '/slides/{name}/replaceRegex'
14926
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
14927
+
14928
+ # query parameters
14929
+ query_params = {}
14930
+ query_params[:'pattern'] = @api_client.prepare_for_query(pattern) unless pattern.nil?
14931
+ query_params[:'newValue'] = @api_client.prepare_for_query(new_value) unless new_value.nil?
14932
+ query_params[:'ignoreCase'] = @api_client.prepare_for_query(ignore_case) unless ignore_case.nil?
14933
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
14934
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
14935
+
14936
+ # header parameters
14937
+ header_params = {}
14938
+ # HTTP header 'Accept' (if needed)
14939
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
14940
+ # HTTP header 'Content-Type'
14941
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
14942
+ header_params[:'password'] = password unless password.nil?
14943
+
14944
+ # http body (model)
14945
+ post_body = nil
14946
+
14947
+ # form parameters
14948
+ post_files = []
14949
+
14950
+ auth_names = ['JWT']
14951
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
14952
+ :header_params => header_params,
14953
+ :query_params => query_params,
14954
+ :body => post_body,
14955
+ :files => post_files,
14956
+ :auth_names => auth_names,
14957
+ :return_type => 'DocumentReplaceResult')
14958
+ return data, status_code, headers
14959
+ end
14960
+ # Replace text with a new value using a regex.
14961
+ # @param document Document data.
14962
+ # @param pattern Text regex pattern to be replaced.
14963
+ # @param new_value Text value to replace with.
14964
+ # @param ignore_case True if character case must be ignored.
14965
+ # @param password Document password.
14966
+ def replace_presentation_regex_online(document, pattern, new_value, ignore_case = nil, password = nil)
14967
+ data, _status_code, _headers = replace_presentation_regex_online_with_http_info(document, pattern, new_value, ignore_case, password)
14968
+ data
14969
+ end
14970
+
14971
+ # Replace text with a new value using a regex.
14972
+ # @param document Document data.
14973
+ # @param pattern Text regex pattern to be replaced.
14974
+ # @param new_value Text value to replace with.
14975
+ # @param ignore_case True if character case must be ignored.
14976
+ # @param password Document password.
14977
+ def replace_presentation_regex_online_with_http_info(document, pattern, new_value, ignore_case = nil, password = nil)
14978
+ if @api_client.config.debugging
14979
+ @api_client.config.logger.debug 'Calling API: SlidesApi.replace_presentation_regex_online ...'
14980
+ end
14981
+
14982
+ # verify the required parameter 'document' is set
14983
+ if @api_client.config.client_side_validation && document.nil?
14984
+ fail ArgumentError, "Missing the required parameter 'document' when calling SlidesApi.replace_presentation_regex_online"
14985
+ end
14986
+ # verify the required parameter 'pattern' is set
14987
+ if @api_client.config.client_side_validation && pattern.nil?
14988
+ fail ArgumentError, "Missing the required parameter 'pattern' when calling SlidesApi.replace_presentation_regex_online"
14989
+ end
14990
+ # verify the required parameter 'new_value' is set
14991
+ if @api_client.config.client_side_validation && new_value.nil?
14992
+ fail ArgumentError, "Missing the required parameter 'new_value' when calling SlidesApi.replace_presentation_regex_online"
14993
+ end
14994
+ # resource path
14995
+ local_var_path = '/slides/replaceRegex'
14996
+
14997
+ # query parameters
14998
+ query_params = {}
14999
+ query_params[:'pattern'] = @api_client.prepare_for_query(pattern) unless pattern.nil?
15000
+ query_params[:'newValue'] = @api_client.prepare_for_query(new_value) unless new_value.nil?
15001
+ query_params[:'ignoreCase'] = @api_client.prepare_for_query(ignore_case) unless ignore_case.nil?
15002
+
15003
+ # header parameters
15004
+ header_params = {}
15005
+ # HTTP header 'Accept' (if needed)
15006
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
15007
+ # HTTP header 'Content-Type'
15008
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
15009
+ header_params[:'password'] = password unless password.nil?
15010
+
15011
+ # http body (model)
15012
+ post_body = nil
15013
+
15014
+ # form parameters
15015
+ post_files = []
15016
+ if document
15017
+ post_files = post_files.push(document)
15018
+ end
15019
+
15020
+ auth_names = ['JWT']
15021
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
15022
+ :header_params => header_params,
15023
+ :query_params => query_params,
15024
+ :body => post_body,
15025
+ :files => post_files,
15026
+ :auth_names => auth_names,
15027
+ :return_type => 'File')
15028
+ return data, status_code, headers
15029
+ end
14782
15030
  # Replace text with a new value.
14783
15031
  # @param name Document name.
14784
15032
  # @param old_value Text value to be replaced.
14785
15033
  # @param new_value Text value to replace with.
14786
15034
  # @param ignore_case True if character case must be ignored.
15035
+ # @param whole_words_only True to replace whole words only.
14787
15036
  # @param password Document password.
14788
15037
  # @param folder Document folder.
14789
15038
  # @param storage Document storage.
14790
- def replace_presentation_text(name, old_value, new_value, ignore_case = nil, password = nil, folder = nil, storage = nil)
14791
- data, _status_code, _headers = replace_presentation_text_with_http_info(name, old_value, new_value, ignore_case, password, folder, storage)
15039
+ def replace_presentation_text(name, old_value, new_value, ignore_case = nil, whole_words_only = nil, password = nil, folder = nil, storage = nil)
15040
+ data, _status_code, _headers = replace_presentation_text_with_http_info(name, old_value, new_value, ignore_case, whole_words_only, password, folder, storage)
14792
15041
  data
14793
15042
  end
14794
15043
 
@@ -14797,10 +15046,11 @@ module AsposeSlidesCloud
14797
15046
  # @param old_value Text value to be replaced.
14798
15047
  # @param new_value Text value to replace with.
14799
15048
  # @param ignore_case True if character case must be ignored.
15049
+ # @param whole_words_only True to replace whole words only.
14800
15050
  # @param password Document password.
14801
15051
  # @param folder Document folder.
14802
15052
  # @param storage Document storage.
14803
- def replace_presentation_text_with_http_info(name, old_value, new_value, ignore_case = nil, password = nil, folder = nil, storage = nil)
15053
+ def replace_presentation_text_with_http_info(name, old_value, new_value, ignore_case = nil, whole_words_only = nil, password = nil, folder = nil, storage = nil)
14804
15054
  if @api_client.config.debugging
14805
15055
  @api_client.config.logger.debug 'Calling API: SlidesApi.replace_presentation_text ...'
14806
15056
  end
@@ -14826,6 +15076,7 @@ module AsposeSlidesCloud
14826
15076
  query_params[:'oldValue'] = @api_client.prepare_for_query(old_value) unless old_value.nil?
14827
15077
  query_params[:'newValue'] = @api_client.prepare_for_query(new_value) unless new_value.nil?
14828
15078
  query_params[:'ignoreCase'] = @api_client.prepare_for_query(ignore_case) unless ignore_case.nil?
15079
+ query_params[:'wholeWordsOnly'] = @api_client.prepare_for_query(whole_words_only) unless whole_words_only.nil?
14829
15080
  query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
14830
15081
  query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
14831
15082
 
@@ -14858,9 +15109,10 @@ module AsposeSlidesCloud
14858
15109
  # @param old_value Text value to be replaced.
14859
15110
  # @param new_value Text value to replace with.
14860
15111
  # @param ignore_case True if character case must be ignored.
15112
+ # @param whole_words_only True to replace whole words only.
14861
15113
  # @param password Document password.
14862
- def replace_presentation_text_online(document, old_value, new_value, ignore_case = nil, password = nil)
14863
- data, _status_code, _headers = replace_presentation_text_online_with_http_info(document, old_value, new_value, ignore_case, password)
15114
+ def replace_presentation_text_online(document, old_value, new_value, ignore_case = nil, whole_words_only = nil, password = nil)
15115
+ data, _status_code, _headers = replace_presentation_text_online_with_http_info(document, old_value, new_value, ignore_case, whole_words_only, password)
14864
15116
  data
14865
15117
  end
14866
15118
 
@@ -14869,8 +15121,9 @@ module AsposeSlidesCloud
14869
15121
  # @param old_value Text value to be replaced.
14870
15122
  # @param new_value Text value to replace with.
14871
15123
  # @param ignore_case True if character case must be ignored.
15124
+ # @param whole_words_only True to replace whole words only.
14872
15125
  # @param password Document password.
14873
- def replace_presentation_text_online_with_http_info(document, old_value, new_value, ignore_case = nil, password = nil)
15126
+ def replace_presentation_text_online_with_http_info(document, old_value, new_value, ignore_case = nil, whole_words_only = nil, password = nil)
14874
15127
  if @api_client.config.debugging
14875
15128
  @api_client.config.logger.debug 'Calling API: SlidesApi.replace_presentation_text_online ...'
14876
15129
  end
@@ -14895,6 +15148,7 @@ module AsposeSlidesCloud
14895
15148
  query_params[:'oldValue'] = @api_client.prepare_for_query(old_value) unless old_value.nil?
14896
15149
  query_params[:'newValue'] = @api_client.prepare_for_query(new_value) unless new_value.nil?
14897
15150
  query_params[:'ignoreCase'] = @api_client.prepare_for_query(ignore_case) unless ignore_case.nil?
15151
+ query_params[:'wholeWordsOnly'] = @api_client.prepare_for_query(whole_words_only) unless whole_words_only.nil?
14898
15152
 
14899
15153
  # header parameters
14900
15154
  header_params = {}
@@ -15331,97 +15585,6 @@ module AsposeSlidesCloud
15331
15585
  :auth_names => auth_names)
15332
15586
  return data, status_code, headers
15333
15587
  end
15334
- # Convert Mathematical Text to MathML Format and saves result to the storage
15335
- # @param name Document name.
15336
- # @param slide_index Slide index.
15337
- # @param shape_index Shape index.
15338
- # @param paragraph_index Paragraph index.
15339
- # @param portion_index Portion index.
15340
- # @param out_path Path to save result.
15341
- # @param password Document password.
15342
- # @param folder Presentation folder.
15343
- # @param storage Presentation storage.
15344
- def save_portion_as_math_ml(name, slide_index, shape_index, paragraph_index, portion_index, out_path, password = nil, folder = nil, storage = nil)
15345
- save_portion_as_math_ml_with_http_info(name, slide_index, shape_index, paragraph_index, portion_index, out_path, password, folder, storage)
15346
- nil
15347
- end
15348
-
15349
- # Convert Mathematical Text to MathML Format and saves result to the storage
15350
- # @param name Document name.
15351
- # @param slide_index Slide index.
15352
- # @param shape_index Shape index.
15353
- # @param paragraph_index Paragraph index.
15354
- # @param portion_index Portion index.
15355
- # @param out_path Path to save result.
15356
- # @param password Document password.
15357
- # @param folder Presentation folder.
15358
- # @param storage Presentation storage.
15359
- def save_portion_as_math_ml_with_http_info(name, slide_index, shape_index, paragraph_index, portion_index, out_path, password = nil, folder = nil, storage = nil)
15360
- if @api_client.config.debugging
15361
- @api_client.config.logger.debug 'Calling API: SlidesApi.save_portion_as_math_ml ...'
15362
- end
15363
-
15364
- # verify the required parameter 'name' is set
15365
- if @api_client.config.client_side_validation && name.nil?
15366
- fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.save_portion_as_math_ml"
15367
- end
15368
- # verify the required parameter 'slide_index' is set
15369
- if @api_client.config.client_side_validation && slide_index.nil?
15370
- fail ArgumentError, "Missing the required parameter 'slide_index' when calling SlidesApi.save_portion_as_math_ml"
15371
- end
15372
- # verify the required parameter 'shape_index' is set
15373
- if @api_client.config.client_side_validation && shape_index.nil?
15374
- fail ArgumentError, "Missing the required parameter 'shape_index' when calling SlidesApi.save_portion_as_math_ml"
15375
- end
15376
- # verify the required parameter 'paragraph_index' is set
15377
- if @api_client.config.client_side_validation && paragraph_index.nil?
15378
- fail ArgumentError, "Missing the required parameter 'paragraph_index' when calling SlidesApi.save_portion_as_math_ml"
15379
- end
15380
- # verify the required parameter 'portion_index' is set
15381
- if @api_client.config.client_side_validation && portion_index.nil?
15382
- fail ArgumentError, "Missing the required parameter 'portion_index' when calling SlidesApi.save_portion_as_math_ml"
15383
- end
15384
- # verify the required parameter 'out_path' is set
15385
- if @api_client.config.client_side_validation && out_path.nil?
15386
- fail ArgumentError, "Missing the required parameter 'out_path' when calling SlidesApi.save_portion_as_math_ml"
15387
- end
15388
- # resource path
15389
- local_var_path = '/slides/{name}/slides/{slideIndex}/shapes/{shapeIndex}/paragraphs/{paragraphIndex}/portions/{portionIndex}/mathml'
15390
- local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
15391
- local_var_path = @api_client.replace_path_parameter(local_var_path, 'slideIndex', slide_index)
15392
- local_var_path = @api_client.replace_path_parameter(local_var_path, 'shapeIndex', shape_index)
15393
- local_var_path = @api_client.replace_path_parameter(local_var_path, 'paragraphIndex', paragraph_index)
15394
- local_var_path = @api_client.replace_path_parameter(local_var_path, 'portionIndex', portion_index)
15395
-
15396
- # query parameters
15397
- query_params = {}
15398
- query_params[:'outPath'] = @api_client.prepare_for_query(out_path) unless out_path.nil?
15399
- query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
15400
- query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
15401
-
15402
- # header parameters
15403
- header_params = {}
15404
- # HTTP header 'Accept' (if needed)
15405
- header_params['Accept'] = @api_client.select_header_accept(['application/json'])
15406
- # HTTP header 'Content-Type'
15407
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
15408
- header_params[:'password'] = password unless password.nil?
15409
-
15410
- # http body (model)
15411
- post_body = nil
15412
-
15413
- # form parameters
15414
- post_files = []
15415
-
15416
- auth_names = ['JWT']
15417
- data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
15418
- :header_params => header_params,
15419
- :query_params => query_params,
15420
- :body => post_body,
15421
- :files => post_files,
15422
- :auth_names => auth_names)
15423
- return data, status_code, headers
15424
- end
15425
15588
  # Save a presentation to a specified format.
15426
15589
  # @param name Document name.
15427
15590
  # @param format Export format.
@@ -15461,8 +15624,8 @@ module AsposeSlidesCloud
15461
15624
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_presentation"
15462
15625
  end
15463
15626
  # verify enum value
15464
- if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md'].any?{ |s| s.casecmp(format)==0 }
15465
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml, Mpeg4, Md"
15627
+ if @api_client.config.client_side_validation && !['Pdf', 'Xps', 'Tiff', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Pot', 'Potx', 'Potm', 'Html', 'Html5', 'Swf', 'Svg', 'Jpeg', 'Png', 'Gif', 'Bmp', 'Fodp', 'Xaml', 'Mpeg4', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
15628
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Pdf, Xps, Tiff, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Pot, Potx, Potm, Html, Html5, Swf, Svg, Jpeg, Png, Gif, Bmp, Fodp, Xaml, Mpeg4, Md, Xml"
15466
15629
  end
15467
15630
  # verify the required parameter 'out_path' is set
15468
15631
  if @api_client.config.client_side_validation && out_path.nil?
@@ -15763,8 +15926,8 @@ module AsposeSlidesCloud
15763
15926
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_slide"
15764
15927
  end
15765
15928
  # verify enum value
15766
- if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md'].any?{ |s| s.casecmp(format)==0 }
15767
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml, Html5, Md"
15929
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
15930
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml, Html5, Md, Xml"
15768
15931
  end
15769
15932
  # verify the required parameter 'out_path' is set
15770
15933
  if @api_client.config.client_side_validation && out_path.nil?
@@ -15853,8 +16016,8 @@ module AsposeSlidesCloud
15853
16016
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.save_slide_online"
15854
16017
  end
15855
16018
  # verify enum value
15856
- if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md'].any?{ |s| s.casecmp(format)==0 }
15857
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml, Html5, Md"
16019
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
16020
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml, Html5, Md, Xml"
15858
16021
  end
15859
16022
  # verify the required parameter 'out_path' is set
15860
16023
  if @api_client.config.client_side_validation && out_path.nil?
@@ -17744,8 +17907,8 @@ module AsposeSlidesCloud
17744
17907
  if @api_client.config.client_side_validation && name.nil?
17745
17908
  fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.split"
17746
17909
  end
17747
- if @api_client.config.client_side_validation && format && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md'].any?{ |s| s.casecmp(format)==0 }
17748
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml, Html5, Md"
17910
+ if @api_client.config.client_side_validation && format && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
17911
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml, Html5, Md, Xml"
17749
17912
  end
17750
17913
  # resource path
17751
17914
  local_var_path = '/slides/{name}/split'
@@ -17830,8 +17993,8 @@ module AsposeSlidesCloud
17830
17993
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.split_and_save_online"
17831
17994
  end
17832
17995
  # verify enum value
17833
- if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md'].any?{ |s| s.casecmp(format)==0 }
17834
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml, Html5, Md"
17996
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
17997
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml, Html5, Md, Xml"
17835
17998
  end
17836
17999
  # resource path
17837
18000
  local_var_path = '/slides/split/{format}'
@@ -17915,8 +18078,8 @@ module AsposeSlidesCloud
17915
18078
  fail ArgumentError, "Missing the required parameter 'format' when calling SlidesApi.split_online"
17916
18079
  end
17917
18080
  # verify enum value
17918
- if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md'].any?{ |s| s.casecmp(format)==0 }
17919
- fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml, Html5, Md"
18081
+ if @api_client.config.client_side_validation && !['Jpeg', 'Png', 'Gif', 'Bmp', 'Tiff', 'Html', 'Pdf', 'Xps', 'Pptx', 'Odp', 'Otp', 'Ppt', 'Pps', 'Ppsx', 'Pptm', 'Ppsm', 'Potx', 'Pot', 'Potm', 'Svg', 'Fodp', 'Xaml', 'Html5', 'Md', 'Xml'].any?{ |s| s.casecmp(format)==0 }
18082
+ fail ArgumentError, "Invalid value for parameter format: " + format + ". Must be one of Jpeg, Png, Gif, Bmp, Tiff, Html, Pdf, Xps, Pptx, Odp, Otp, Ppt, Pps, Ppsx, Pptm, Ppsm, Potx, Pot, Potm, Svg, Fodp, Xaml, Html5, Md, Xml"
17920
18083
  end
17921
18084
  # resource path
17922
18085
  local_var_path = '/slides/split/{format}'