aspose_slides_cloud 23.6.0 → 23.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1c1e1af4c71458529a07f4fc9b6fae823eff361ec3ffb0a154d11f43a0419a6
4
- data.tar.gz: 489f10d97840be220bf096e246747fce4e2a080a28b21c1c1b370d2095f07ef9
3
+ metadata.gz: 9a41a0a352d4ed06aacdc85d71e640b75be6c90686c9b4e1f5adda2daa6df22a
4
+ data.tar.gz: a9315c7e5dbb2d6984427064200142917aa9251a70bcbb13613fcb58e3a2455e
5
5
  SHA512:
6
- metadata.gz: 622ceaec28bf5d62289105e0f9b2d55d4d411f6e3bfd4f2dfc42f446865b955e309166ab5c11f602ddb5f2891adbdd133aee07de752a89582afc512d978306f4
7
- data.tar.gz: 0eb8c52acc3e8300c3507bdecf939adcbdf7d292c55d1fc0fb123eb678eb267ae7a47c5672b33688dedfccc524f1a3fb78002862e65942e177195865252a9668
6
+ metadata.gz: 9bb1a96e9c6dacffdad05685025efbf4f3ccb227c0ccdc5e880420413e9e22816b7b23771066a2e85b9438abb2df482b761fcec5f779cc88b8c8e24d9c5cd088
7
+ data.tar.gz: 39bef77e18cd0a00e6e501b763d65f98949406f828e637e8f7e9bca90ea625124fdcc893d7fff92a035e88fc60171a966a49db665d5348be39177547dececa4b
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aspose_slides_cloud (23.6.0)
4
+ aspose_slides_cloud (23.9.0)
5
5
  faraday (~> 1.0, >= 1.0.0)
6
6
  faraday-httpclient (~> 1.0, >= 1.0.0)
7
7
  httpclient (~> 2.2, >= 2.2.0)
@@ -11,7 +11,7 @@ GEM
11
11
  remote: https://rubygems.org/
12
12
  specs:
13
13
  ZenTest (4.12.1)
14
- addressable (2.8.4)
14
+ addressable (2.8.5)
15
15
  public_suffix (>= 2.0.2, < 6.0)
16
16
  autotest (4.4.6)
17
17
  ZenTest (>= 4.4.1)
@@ -45,14 +45,14 @@ GEM
45
45
  faraday-patron (1.0.0)
46
46
  faraday-rack (1.0.0)
47
47
  faraday-retry (1.0.3)
48
- ffi (1.15.5)
48
+ ffi (1.16.2)
49
49
  hashdiff (1.0.1)
50
50
  httpclient (2.8.3)
51
51
  json (2.6.3)
52
52
  multipart-post (2.3.0)
53
- public_suffix (5.0.1)
53
+ public_suffix (5.0.3)
54
54
  rake (12.3.3)
55
- rexml (3.2.5)
55
+ rexml (3.2.6)
56
56
  rspec (3.12.0)
57
57
  rspec-core (~> 3.12.0)
58
58
  rspec-expectations (~> 3.12.0)
@@ -62,7 +62,7 @@ GEM
62
62
  rspec-expectations (3.12.3)
63
63
  diff-lcs (>= 1.2.0, < 2.0)
64
64
  rspec-support (~> 3.12.0)
65
- rspec-mocks (3.12.5)
65
+ rspec-mocks (3.12.6)
66
66
  diff-lcs (>= 1.2.0, < 2.0)
67
67
  rspec-support (~> 3.12.0)
68
68
  rspec-support (3.12.1)
data/README.md CHANGED
@@ -27,6 +27,16 @@ You may want to check out Aspose free [Powerpoint to PDF](https://products.aspos
27
27
  **Web:** HTML/HTML5
28
28
  **Other:** MPEG4, SWF (export whole presentations)
29
29
 
30
+ ## Enhancements in Version 23.9
31
+
32
+ * Added **ReplaceImage** and **ReplaceImageOnline** methods that enable replacing images in a presentation.
33
+
34
+ ## Enhancements in Version 23.7
35
+
36
+ * New methods **ReplaceTextFormatting** and **ReplaceTextFormatting** allow to replace text with formatting.
37
+ * Added **AfterAnimationType**, **Rewind** and **AfterAnimationColor** methods to **Effect** class.
38
+ * Added **TrimFromStart** and **TrimFromEnd** methods to **VideoFrame** class.
39
+
30
40
  ## Enhancements in Version 23.6
31
41
 
32
42
  * Added methods ho handle VBA methods: **GetVbaProject**, **GetVbaModule**, **CreateVbaModule**, **UpdateVbaModule** and **DeleteVbaModule**. Added model classes related to VBA: **VbaProject**, **VbaModule** and **VbaReference**.
@@ -2794,7 +2794,7 @@ module AsposeSlidesCloud
2794
2794
  # @param folder Document folder.
2795
2795
  # @param storage Document storage.
2796
2796
  # @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
2797
- def create_special_slide_shape(name, slide_index, slide_type, dto = nil, shape_to_clone = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
2797
+ def create_special_slide_shape(name, slide_index, slide_type, dto, shape_to_clone = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
2798
2798
  data, _status_code, _headers = create_special_slide_shape_with_http_info(name, slide_index, slide_type, dto, shape_to_clone, position, password, folder, storage, sub_shape)
2799
2799
  data
2800
2800
  end
@@ -2810,7 +2810,7 @@ module AsposeSlidesCloud
2810
2810
  # @param folder Document folder.
2811
2811
  # @param storage Document storage.
2812
2812
  # @param sub_shape Sub-shape path (e.g. \"3\", \"3/shapes/2).
2813
- def create_special_slide_shape_with_http_info(name, slide_index, slide_type, dto = nil, shape_to_clone = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
2813
+ def create_special_slide_shape_with_http_info(name, slide_index, slide_type, dto, shape_to_clone = nil, position = nil, password = nil, folder = nil, storage = nil, sub_shape = nil)
2814
2814
  if @api_client.config.debugging
2815
2815
  @api_client.config.logger.debug 'Calling API: SlidesApi.create_special_slide_shape ...'
2816
2816
  end
@@ -2831,6 +2831,10 @@ module AsposeSlidesCloud
2831
2831
  if @api_client.config.client_side_validation && !['MasterSlide', 'LayoutSlide', 'NotesSlide'].any?{ |s| s.casecmp(slide_type)==0 }
2832
2832
  fail ArgumentError, "Invalid value for parameter slide_type: " + slide_type + ". Must be one of MasterSlide, LayoutSlide, NotesSlide"
2833
2833
  end
2834
+ # verify the required parameter 'dto' is set
2835
+ if @api_client.config.client_side_validation && dto.nil?
2836
+ fail ArgumentError, "Missing the required parameter 'dto' when calling SlidesApi.create_special_slide_shape"
2837
+ end
2834
2838
  # resource path
2835
2839
  local_var_path = '/slides/{name}/slides/{slideIndex}/{slideType}/shapes'
2836
2840
  local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
@@ -4975,7 +4979,7 @@ module AsposeSlidesCloud
4975
4979
  # Resets all presentation protection settings.
4976
4980
  # @param document Document data.
4977
4981
  # @param password Presentation password.
4978
- def delete_protection_online(document, password)
4982
+ def delete_protection_online(document, password = nil)
4979
4983
  data, _status_code, _headers = delete_protection_online_with_http_info(document, password)
4980
4984
  data
4981
4985
  end
@@ -4983,7 +4987,7 @@ module AsposeSlidesCloud
4983
4987
  # Resets all presentation protection settings.
4984
4988
  # @param document Document data.
4985
4989
  # @param password Presentation password.
4986
- def delete_protection_online_with_http_info(document, password)
4990
+ def delete_protection_online_with_http_info(document, password = nil)
4987
4991
  if @api_client.config.debugging
4988
4992
  @api_client.config.logger.debug 'Calling API: SlidesApi.delete_protection_online ...'
4989
4993
  end
@@ -4992,10 +4996,6 @@ module AsposeSlidesCloud
4992
4996
  if @api_client.config.client_side_validation && document.nil?
4993
4997
  fail ArgumentError, "Missing the required parameter 'document' when calling SlidesApi.delete_protection_online"
4994
4998
  end
4995
- # verify the required parameter 'password' is set
4996
- if @api_client.config.client_side_validation && password.nil?
4997
- fail ArgumentError, "Missing the required parameter 'password' when calling SlidesApi.delete_protection_online"
4998
- end
4999
4999
  # resource path
5000
5000
  local_var_path = '/slides/protection/delete'
5001
5001
 
@@ -5008,7 +5008,7 @@ module AsposeSlidesCloud
5008
5008
  header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
5009
5009
  # HTTP header 'Content-Type'
5010
5010
  header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
5011
- header_params[:'password'] = password
5011
+ header_params[:'password'] = password unless password.nil?
5012
5012
 
5013
5013
  # http body (model)
5014
5014
  post_body = nil
@@ -14366,6 +14366,139 @@ module AsposeSlidesCloud
14366
14366
  :return_type => 'File')
14367
14367
  return data, status_code, headers
14368
14368
  end
14369
+ # Replaces image by the specified index.
14370
+ # @param name Document name.
14371
+ # @param image_index Image index.
14372
+ # @param image Image data.
14373
+ # @param password Document password.
14374
+ # @param folder Document folder.
14375
+ # @param storage Document storage.
14376
+ def replace_image(name, image_index, image = nil, password = nil, folder = nil, storage = nil)
14377
+ replace_image_with_http_info(name, image_index, image, password, folder, storage)
14378
+ nil
14379
+ end
14380
+
14381
+ # Replaces image by the specified index.
14382
+ # @param name Document name.
14383
+ # @param image_index Image index.
14384
+ # @param image Image data.
14385
+ # @param password Document password.
14386
+ # @param folder Document folder.
14387
+ # @param storage Document storage.
14388
+ def replace_image_with_http_info(name, image_index, image = nil, password = nil, folder = nil, storage = nil)
14389
+ if @api_client.config.debugging
14390
+ @api_client.config.logger.debug 'Calling API: SlidesApi.replace_image ...'
14391
+ end
14392
+
14393
+ # verify the required parameter 'name' is set
14394
+ if @api_client.config.client_side_validation && name.nil?
14395
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.replace_image"
14396
+ end
14397
+ # verify the required parameter 'image_index' is set
14398
+ if @api_client.config.client_side_validation && image_index.nil?
14399
+ fail ArgumentError, "Missing the required parameter 'image_index' when calling SlidesApi.replace_image"
14400
+ end
14401
+ # resource path
14402
+ local_var_path = '/slides/{name}/images/{imageIndex}/replace'
14403
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
14404
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'imageIndex', image_index)
14405
+
14406
+ # query parameters
14407
+ query_params = {}
14408
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
14409
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
14410
+
14411
+ # header parameters
14412
+ header_params = {}
14413
+ # HTTP header 'Accept' (if needed)
14414
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
14415
+ # HTTP header 'Content-Type'
14416
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
14417
+ header_params[:'password'] = password unless password.nil?
14418
+
14419
+ # http body (model)
14420
+ post_body = nil
14421
+
14422
+ # form parameters
14423
+ post_files = []
14424
+ if image
14425
+ post_files = post_files.push(image)
14426
+ end
14427
+
14428
+ auth_names = ['JWT']
14429
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
14430
+ :header_params => header_params,
14431
+ :query_params => query_params,
14432
+ :body => post_body,
14433
+ :files => post_files,
14434
+ :auth_names => auth_names)
14435
+ return data, status_code, headers
14436
+ end
14437
+ # Replaces image by the specified index and returns updated document.
14438
+ # @param document Document data.
14439
+ # @param image_index Image index.
14440
+ # @param image Image data.
14441
+ # @param password Password.
14442
+ def replace_image_online(document, image_index, image = nil, password = nil)
14443
+ data, _status_code, _headers = replace_image_online_with_http_info(document, image_index, image, password)
14444
+ data
14445
+ end
14446
+
14447
+ # Replaces image by the specified index and returns updated document.
14448
+ # @param document Document data.
14449
+ # @param image_index Image index.
14450
+ # @param image Image data.
14451
+ # @param password Password.
14452
+ def replace_image_online_with_http_info(document, image_index, image = nil, password = nil)
14453
+ if @api_client.config.debugging
14454
+ @api_client.config.logger.debug 'Calling API: SlidesApi.replace_image_online ...'
14455
+ end
14456
+
14457
+ # verify the required parameter 'document' is set
14458
+ if @api_client.config.client_side_validation && document.nil?
14459
+ fail ArgumentError, "Missing the required parameter 'document' when calling SlidesApi.replace_image_online"
14460
+ end
14461
+ # verify the required parameter 'image_index' is set
14462
+ if @api_client.config.client_side_validation && image_index.nil?
14463
+ fail ArgumentError, "Missing the required parameter 'image_index' when calling SlidesApi.replace_image_online"
14464
+ end
14465
+ # resource path
14466
+ local_var_path = '/slides/images/{imageIndex}/replace'
14467
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'imageIndex', image_index)
14468
+
14469
+ # query parameters
14470
+ query_params = {}
14471
+
14472
+ # header parameters
14473
+ header_params = {}
14474
+ # HTTP header 'Accept' (if needed)
14475
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
14476
+ # HTTP header 'Content-Type'
14477
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
14478
+ header_params[:'password'] = password unless password.nil?
14479
+
14480
+ # http body (model)
14481
+ post_body = nil
14482
+
14483
+ # form parameters
14484
+ post_files = []
14485
+ if document
14486
+ post_files = post_files.push(document)
14487
+ end
14488
+ if image
14489
+ post_files = post_files.push(image)
14490
+ end
14491
+
14492
+ auth_names = ['JWT']
14493
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
14494
+ :header_params => header_params,
14495
+ :query_params => query_params,
14496
+ :body => post_body,
14497
+ :files => post_files,
14498
+ :auth_names => auth_names,
14499
+ :return_type => 'File')
14500
+ return data, status_code, headers
14501
+ end
14369
14502
  # Replace text with a new value.
14370
14503
  # @param name Document name.
14371
14504
  # @param old_value Text value to be replaced.
@@ -14668,6 +14801,154 @@ module AsposeSlidesCloud
14668
14801
  :return_type => 'File')
14669
14802
  return data, status_code, headers
14670
14803
  end
14804
+ # Finds and replaces text in presentation with given format.
14805
+ # @param name Document name.
14806
+ # @param old_value Text value to be replaced.
14807
+ # @param new_value Text value to replace with.
14808
+ # @param portion_format Portion format.
14809
+ # @param with_masters Text replacement includes master slides.
14810
+ # @param password Document password.
14811
+ # @param folder Document folder.
14812
+ # @param storage Document storage.
14813
+ def replace_text_formatting(name, old_value, new_value, portion_format = nil, with_masters = nil, password = nil, folder = nil, storage = nil)
14814
+ data, _status_code, _headers = replace_text_formatting_with_http_info(name, old_value, new_value, portion_format, with_masters, password, folder, storage)
14815
+ data
14816
+ end
14817
+
14818
+ # Finds and replaces text in presentation with given format.
14819
+ # @param name Document name.
14820
+ # @param old_value Text value to be replaced.
14821
+ # @param new_value Text value to replace with.
14822
+ # @param portion_format Portion format.
14823
+ # @param with_masters Text replacement includes master slides.
14824
+ # @param password Document password.
14825
+ # @param folder Document folder.
14826
+ # @param storage Document storage.
14827
+ def replace_text_formatting_with_http_info(name, old_value, new_value, portion_format = nil, with_masters = nil, password = nil, folder = nil, storage = nil)
14828
+ if @api_client.config.debugging
14829
+ @api_client.config.logger.debug 'Calling API: SlidesApi.replace_text_formatting ...'
14830
+ end
14831
+
14832
+ # verify the required parameter 'name' is set
14833
+ if @api_client.config.client_side_validation && name.nil?
14834
+ fail ArgumentError, "Missing the required parameter 'name' when calling SlidesApi.replace_text_formatting"
14835
+ end
14836
+ # verify the required parameter 'old_value' is set
14837
+ if @api_client.config.client_side_validation && old_value.nil?
14838
+ fail ArgumentError, "Missing the required parameter 'old_value' when calling SlidesApi.replace_text_formatting"
14839
+ end
14840
+ # verify the required parameter 'new_value' is set
14841
+ if @api_client.config.client_side_validation && new_value.nil?
14842
+ fail ArgumentError, "Missing the required parameter 'new_value' when calling SlidesApi.replace_text_formatting"
14843
+ end
14844
+ # resource path
14845
+ local_var_path = '/slides/{name}/replaceTextFormatting'
14846
+ local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
14847
+
14848
+ # query parameters
14849
+ query_params = {}
14850
+ query_params[:'oldValue'] = @api_client.prepare_for_query(old_value) unless old_value.nil?
14851
+ query_params[:'newValue'] = @api_client.prepare_for_query(new_value) unless new_value.nil?
14852
+ query_params[:'withMasters'] = @api_client.prepare_for_query(with_masters) unless with_masters.nil?
14853
+ query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
14854
+ query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
14855
+
14856
+ # header parameters
14857
+ header_params = {}
14858
+ # HTTP header 'Accept' (if needed)
14859
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
14860
+ # HTTP header 'Content-Type'
14861
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
14862
+ header_params[:'password'] = password unless password.nil?
14863
+
14864
+ # http body (model)
14865
+ post_body = @api_client.object_to_http_body(portion_format)
14866
+
14867
+ # form parameters
14868
+ post_files = []
14869
+
14870
+ auth_names = ['JWT']
14871
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
14872
+ :header_params => header_params,
14873
+ :query_params => query_params,
14874
+ :body => post_body,
14875
+ :files => post_files,
14876
+ :auth_names => auth_names,
14877
+ :return_type => 'Document')
14878
+ return data, status_code, headers
14879
+ end
14880
+ # Finds and replaces text in presentation with given format.
14881
+ # @param document Document data.
14882
+ # @param old_value Text value to be replaced.
14883
+ # @param new_value Text value to replace with.
14884
+ # @param portion_format Portion format.
14885
+ # @param with_masters Text replacement includes master slides.
14886
+ # @param password Document password.
14887
+ def replace_text_formatting_online(document, old_value, new_value, portion_format = nil, with_masters = nil, password = nil)
14888
+ data, _status_code, _headers = replace_text_formatting_online_with_http_info(document, old_value, new_value, portion_format, with_masters, password)
14889
+ data
14890
+ end
14891
+
14892
+ # Finds and replaces text in presentation with given format.
14893
+ # @param document Document data.
14894
+ # @param old_value Text value to be replaced.
14895
+ # @param new_value Text value to replace with.
14896
+ # @param portion_format Portion format.
14897
+ # @param with_masters Text replacement includes master slides.
14898
+ # @param password Document password.
14899
+ def replace_text_formatting_online_with_http_info(document, old_value, new_value, portion_format = nil, with_masters = nil, password = nil)
14900
+ if @api_client.config.debugging
14901
+ @api_client.config.logger.debug 'Calling API: SlidesApi.replace_text_formatting_online ...'
14902
+ end
14903
+
14904
+ # verify the required parameter 'document' is set
14905
+ if @api_client.config.client_side_validation && document.nil?
14906
+ fail ArgumentError, "Missing the required parameter 'document' when calling SlidesApi.replace_text_formatting_online"
14907
+ end
14908
+ # verify the required parameter 'old_value' is set
14909
+ if @api_client.config.client_side_validation && old_value.nil?
14910
+ fail ArgumentError, "Missing the required parameter 'old_value' when calling SlidesApi.replace_text_formatting_online"
14911
+ end
14912
+ # verify the required parameter 'new_value' is set
14913
+ if @api_client.config.client_side_validation && new_value.nil?
14914
+ fail ArgumentError, "Missing the required parameter 'new_value' when calling SlidesApi.replace_text_formatting_online"
14915
+ end
14916
+ # resource path
14917
+ local_var_path = '/slides/replaceTextFormatting'
14918
+
14919
+ # query parameters
14920
+ query_params = {}
14921
+ query_params[:'oldValue'] = @api_client.prepare_for_query(old_value) unless old_value.nil?
14922
+ query_params[:'newValue'] = @api_client.prepare_for_query(new_value) unless new_value.nil?
14923
+ query_params[:'withMasters'] = @api_client.prepare_for_query(with_masters) unless with_masters.nil?
14924
+
14925
+ # header parameters
14926
+ header_params = {}
14927
+ # HTTP header 'Accept' (if needed)
14928
+ header_params['Accept'] = @api_client.select_header_accept(['multipart/form-data'])
14929
+ # HTTP header 'Content-Type'
14930
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
14931
+ header_params[:'password'] = password unless password.nil?
14932
+
14933
+ # http body (model)
14934
+ post_body = @api_client.object_to_http_body(portion_format)
14935
+
14936
+ # form parameters
14937
+ post_files = []
14938
+ if document
14939
+ post_files = post_files.push(document)
14940
+ end
14941
+
14942
+ auth_names = ['JWT']
14943
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
14944
+ :header_params => header_params,
14945
+ :query_params => query_params,
14946
+ :body => post_body,
14947
+ :files => post_files,
14948
+ :auth_names => auth_names,
14949
+ :return_type => 'File')
14950
+ return data, status_code, headers
14951
+ end
14671
14952
  # Convert Mathematical Text to MathML Format and saves result to the storage
14672
14953
  # @param name Document name.
14673
14954
  # @param slide_index Slide index.
@@ -19270,7 +19551,7 @@ module AsposeSlidesCloud
19270
19551
  # @param password Document password.
19271
19552
  # @param folder Document folder.
19272
19553
  # @param storage Document storage.
19273
- def update_vba_module(name, module_index, module_dto = nil, password = nil, folder = nil, storage = nil)
19554
+ def update_vba_module(name, module_index, module_dto, password = nil, folder = nil, storage = nil)
19274
19555
  data, _status_code, _headers = update_vba_module_with_http_info(name, module_index, module_dto, password, folder, storage)
19275
19556
  data
19276
19557
  end
@@ -19282,7 +19563,7 @@ module AsposeSlidesCloud
19282
19563
  # @param password Document password.
19283
19564
  # @param folder Document folder.
19284
19565
  # @param storage Document storage.
19285
- def update_vba_module_with_http_info(name, module_index, module_dto = nil, password = nil, folder = nil, storage = nil)
19566
+ def update_vba_module_with_http_info(name, module_index, module_dto, password = nil, folder = nil, storage = nil)
19286
19567
  if @api_client.config.debugging
19287
19568
  @api_client.config.logger.debug 'Calling API: SlidesApi.update_vba_module ...'
19288
19569
  end
@@ -19295,6 +19576,10 @@ module AsposeSlidesCloud
19295
19576
  if @api_client.config.client_side_validation && module_index.nil?
19296
19577
  fail ArgumentError, "Missing the required parameter 'module_index' when calling SlidesApi.update_vba_module"
19297
19578
  end
19579
+ # verify the required parameter 'module_dto' is set
19580
+ if @api_client.config.client_side_validation && module_dto.nil?
19581
+ fail ArgumentError, "Missing the required parameter 'module_dto' when calling SlidesApi.update_vba_module"
19582
+ end
19298
19583
  # resource path
19299
19584
  local_var_path = '/slides/{name}/vbaProject/modules/{moduleIndex}'
19300
19585
  local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
@@ -79,6 +79,15 @@ module AsposeSlidesCloud
79
79
  # This attribute specifies if the animation effect stops the previous sound.
80
80
  attr_accessor :stop_previous_sound
81
81
 
82
+ # This attribute specifies if the effect will rewind when done playing.
83
+ attr_accessor :rewind
84
+
85
+ # Defined an after animation color for effect.
86
+ attr_accessor :after_animation_type
87
+
88
+ # Defined an after animation color for effect. Applied when the AfterAnimationType property is set to Color.
89
+ attr_accessor :after_animation_color
90
+
82
91
  # Attribute mapping from ruby-style variable name to JSON key.
83
92
  def self.attribute_map
84
93
  {
@@ -100,6 +109,9 @@ module AsposeSlidesCloud
100
109
  :'repeat_until_end_slide' => :'RepeatUntilEndSlide',
101
110
  :'repeat_until_next_click' => :'RepeatUntilNextClick',
102
111
  :'stop_previous_sound' => :'StopPreviousSound',
112
+ :'rewind' => :'Rewind',
113
+ :'after_animation_type' => :'AfterAnimationType',
114
+ :'after_animation_color' => :'AfterAnimationColor',
103
115
  }
104
116
  end
105
117
 
@@ -124,6 +136,9 @@ module AsposeSlidesCloud
124
136
  :'repeat_until_end_slide' => :'BOOLEAN',
125
137
  :'repeat_until_next_click' => :'BOOLEAN',
126
138
  :'stop_previous_sound' => :'BOOLEAN',
139
+ :'rewind' => :'BOOLEAN',
140
+ :'after_animation_type' => :'String',
141
+ :'after_animation_color' => :'String',
127
142
  }
128
143
  end
129
144
 
@@ -206,6 +221,18 @@ module AsposeSlidesCloud
206
221
  if attributes.has_key?(:'StopPreviousSound')
207
222
  self.stop_previous_sound = attributes[:'StopPreviousSound']
208
223
  end
224
+
225
+ if attributes.has_key?(:'Rewind')
226
+ self.rewind = attributes[:'Rewind']
227
+ end
228
+
229
+ if attributes.has_key?(:'AfterAnimationType')
230
+ self.after_animation_type = attributes[:'AfterAnimationType']
231
+ end
232
+
233
+ if attributes.has_key?(:'AfterAnimationColor')
234
+ self.after_animation_color = attributes[:'AfterAnimationColor']
235
+ end
209
236
  end
210
237
 
211
238
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -233,6 +260,8 @@ module AsposeSlidesCloud
233
260
  return false unless trigger_type_validator.valid?(@trigger_type)
234
261
  restart_validator = EnumAttributeValidator.new('String', ['Always', 'WhenNotActive', 'Never', 'NotDefined'])
235
262
  return false unless restart_validator.valid?(@restart)
263
+ after_animation_type_validator = EnumAttributeValidator.new('String', ['DoNotDim', 'Color', 'HideAfterAnimation', 'HideOnNextMouseClick'])
264
+ return false unless after_animation_type_validator.valid?(@after_animation_type)
236
265
  true
237
266
  end
238
267
 
@@ -286,6 +315,16 @@ module AsposeSlidesCloud
286
315
  @restart = restart
287
316
  end
288
317
 
318
+ # Custom attribute writer method checking allowed values (enum).
319
+ # @param [Object] after_animation_type Object to be assigned
320
+ def after_animation_type=(after_animation_type)
321
+ validator = EnumAttributeValidator.new('String', ['DoNotDim', 'Color', 'HideAfterAnimation', 'HideOnNextMouseClick'])
322
+ unless validator.valid?(after_animation_type)
323
+ fail ArgumentError, 'invalid value for "after_animation_type", must be one of #{validator.allowable_values}.'
324
+ end
325
+ @after_animation_type = after_animation_type
326
+ end
327
+
289
328
  # Checks equality by comparing each attribute.
290
329
  # @param [Object] Object to be compared
291
330
  def ==(o)
@@ -308,7 +347,10 @@ module AsposeSlidesCloud
308
347
  trigger_delay_time == o.trigger_delay_time &&
309
348
  repeat_until_end_slide == o.repeat_until_end_slide &&
310
349
  repeat_until_next_click == o.repeat_until_next_click &&
311
- stop_previous_sound == o.stop_previous_sound
350
+ stop_previous_sound == o.stop_previous_sound &&
351
+ rewind == o.rewind &&
352
+ after_animation_type == o.after_animation_type &&
353
+ after_animation_color == o.after_animation_color
312
354
  end
313
355
 
314
356
  # @see the `==` method
@@ -320,7 +362,7 @@ module AsposeSlidesCloud
320
362
  # Calculates hash code according to all attributes.
321
363
  # @return [Fixnum] Hash code
322
364
  def hash
323
- [type, subtype, preset_class_type, shape_index, paragraph_index, trigger_type, accelerate, auto_reverse, decelerate, duration, repeat_count, repeat_duration, restart, speed, trigger_delay_time, repeat_until_end_slide, repeat_until_next_click, stop_previous_sound].hash
365
+ [type, subtype, preset_class_type, shape_index, paragraph_index, trigger_type, accelerate, auto_reverse, decelerate, duration, repeat_count, repeat_duration, restart, speed, trigger_delay_time, repeat_until_end_slide, repeat_until_next_click, stop_previous_sound, rewind, after_animation_type, after_animation_color].hash
324
366
  end
325
367
  end
326
368
  end
@@ -49,6 +49,12 @@ module AsposeSlidesCloud
49
49
  # Picture fill format.
50
50
  attr_accessor :picture_fill_format
51
51
 
52
+ # Trim start [ms]
53
+ attr_accessor :trim_from_start
54
+
55
+ # Trim end [ms]
56
+ attr_accessor :trim_from_end
57
+
52
58
  # Attribute mapping from ruby-style variable name to JSON key.
53
59
  def self.attribute_map
54
60
  super.merge({
@@ -60,6 +66,8 @@ module AsposeSlidesCloud
60
66
  :'volume' => :'Volume',
61
67
  :'base64_data' => :'Base64Data',
62
68
  :'picture_fill_format' => :'PictureFillFormat',
69
+ :'trim_from_start' => :'TrimFromStart',
70
+ :'trim_from_end' => :'TrimFromEnd',
63
71
  })
64
72
  end
65
73
 
@@ -74,6 +82,8 @@ module AsposeSlidesCloud
74
82
  :'volume' => :'String',
75
83
  :'base64_data' => :'String',
76
84
  :'picture_fill_format' => :'PictureFill',
85
+ :'trim_from_start' => :'Float',
86
+ :'trim_from_end' => :'Float',
77
87
  })
78
88
  end
79
89
 
@@ -113,6 +123,14 @@ module AsposeSlidesCloud
113
123
  if attributes.has_key?(:'PictureFillFormat')
114
124
  self.picture_fill_format = attributes[:'PictureFillFormat']
115
125
  end
126
+
127
+ if attributes.has_key?(:'TrimFromStart')
128
+ self.trim_from_start = attributes[:'TrimFromStart']
129
+ end
130
+
131
+ if attributes.has_key?(:'TrimFromEnd')
132
+ self.trim_from_end = attributes[:'TrimFromEnd']
133
+ end
116
134
  self.type = 'VideoFrame'
117
135
  end
118
136
 
@@ -185,7 +203,9 @@ module AsposeSlidesCloud
185
203
  rewind_video == o.rewind_video &&
186
204
  volume == o.volume &&
187
205
  base64_data == o.base64_data &&
188
- picture_fill_format == o.picture_fill_format
206
+ picture_fill_format == o.picture_fill_format &&
207
+ trim_from_start == o.trim_from_start &&
208
+ trim_from_end == o.trim_from_end
189
209
  end
190
210
 
191
211
  # @see the `==` method
@@ -197,7 +217,7 @@ module AsposeSlidesCloud
197
217
  # Calculates hash code according to all attributes.
198
218
  # @return [Fixnum] Hash code
199
219
  def hash
200
- [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, full_screen_mode, hide_at_showing, play_loop_mode, play_mode, rewind_video, volume, base64_data, picture_fill_format].hash
220
+ [self_uri, alternate_links, name, width, height, alternative_text, alternative_text_title, hidden, x, y, z_order_position, fill_format, effect_format, three_d_format, line_format, hyperlink_click, hyperlink_mouse_over, type, shape_type, full_screen_mode, hide_at_showing, play_loop_mode, play_mode, rewind_video, volume, base64_data, picture_fill_format, trim_from_start, trim_from_end].hash
201
221
  end
202
222
  end
203
223
  end
@@ -21,5 +21,5 @@ SOFTWARE.
21
21
  =end
22
22
 
23
23
  module AsposeSlidesCloud
24
- VERSION = '23.6.0'
24
+ VERSION = '23.9.0'
25
25
  end