aspose_slides_cloud 24.7.0 → 24.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +4 -4
- data/README.md +8 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +298 -6
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +171 -0
- data/lib/aspose_slides_cloud/models/ole_object_frame.rb +0 -5
- data/lib/aspose_slides_cloud/models/operation.rb +3 -3
- data/lib/aspose_slides_cloud/models/operation_error.rb +121 -0
- data/lib/aspose_slides_cloud/models/smart_art.rb +0 -5
- data/lib/aspose_slides_cloud/models/smart_art_node.rb +0 -5
- data/lib/aspose_slides_cloud/type_registry.rb +1 -0
- data/lib/aspose_slides_cloud/version.rb +1 -1
- data/lib/aspose_slides_cloud.rb +1 -0
- data/spec/api/slides_api_spec.rb +820 -50
- data/spec/api/slides_async_api_spec.rb +773 -0
- data/spec/use_cases/async_api_spec.rb +42 -0
- data/spec/use_cases/font_spec.rb +4 -4
- data/spec/use_cases/text_spec.rb +50 -5
- data/testRules.json +3 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e720369f0a944de500eaf21878cc35f1210b9de7a4e072c4ce889c4b41e22284
|
4
|
+
data.tar.gz: 62ac4b1964852dbf2b44480e75dba30e99b83c214a22d9eba36ddf0bc0742a31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ccbb6b1d18d40ef25da501d99710c4507fe17780bea0de697efb8097b6b0bda0d6072a1703a8b5f3e2f2c45bc2b0561a12a4e5fc422a01700ad96653e5b3b8b
|
7
|
+
data.tar.gz: 50dd76a96b948511e7ece0b6a609ccff79dc4170f5a5c4fc4a99185232a78bf43aabb1e8eead94c54684dfea1274aebf4981ce363c22307f7044ea4dff55a3eb
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
aspose_slides_cloud (24.
|
4
|
+
aspose_slides_cloud (24.8.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)
|
@@ -46,13 +46,13 @@ GEM
|
|
46
46
|
faraday-patron (1.0.0)
|
47
47
|
faraday-rack (1.0.0)
|
48
48
|
faraday-retry (1.0.3)
|
49
|
-
hashdiff (1.1.
|
49
|
+
hashdiff (1.1.1)
|
50
50
|
httpclient (2.8.3)
|
51
51
|
json (2.7.2)
|
52
52
|
multipart-post (2.4.1)
|
53
53
|
public_suffix (6.0.1)
|
54
54
|
rake (12.3.3)
|
55
|
-
rexml (3.3.
|
55
|
+
rexml (3.3.6)
|
56
56
|
strscan
|
57
57
|
rspec (3.13.0)
|
58
58
|
rspec-core (~> 3.13.0)
|
@@ -60,7 +60,7 @@ GEM
|
|
60
60
|
rspec-mocks (~> 3.13.0)
|
61
61
|
rspec-core (3.13.0)
|
62
62
|
rspec-support (~> 3.13.0)
|
63
|
-
rspec-expectations (3.13.
|
63
|
+
rspec-expectations (3.13.2)
|
64
64
|
diff-lcs (>= 1.2.0, < 2.0)
|
65
65
|
rspec-support (~> 3.13.0)
|
66
66
|
rspec-mocks (3.13.1)
|
data/README.md
CHANGED
@@ -27,6 +27,14 @@ 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 24.8
|
31
|
+
|
32
|
+
* Added **StartSplit** and **StartUploadAndSplit** methods to async API.
|
33
|
+
* Added **ReplacePresentationRegex** and **ReplacePresentationRegexOnline** methods.
|
34
|
+
* Added **HighlightPresentationText** and **HighlightPresentationRegex** methods.
|
35
|
+
* Added **OperationError** class; changed **Operation**.**Error** property type from string to **OperationError**.
|
36
|
+
* Removed **wholeWordsOnly** parameter from **ReplaceShapeRegex** method.
|
37
|
+
|
30
38
|
## Enhancements in Version 24.7
|
31
39
|
|
32
40
|
* Added **TemplatesPath** property to **Html5ExportOptions** class. It enables using custom templates in conversion to Html5 format.
|
@@ -13181,17 +13181,167 @@ module AsposeSlidesCloud
|
|
13181
13181
|
end
|
13182
13182
|
# Highlight all matches of sample in text frame text using specified color.
|
13183
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.
|
13184
13335
|
# @param slide_index Slide index.
|
13185
13336
|
# @param shape_index Shape index.
|
13186
13337
|
# @param regex Regular expression.
|
13187
13338
|
# @param color Highlighting color.
|
13188
|
-
# @param whole_words_only Match only whole words.
|
13189
13339
|
# @param ignore_case True to search ignoring char case.
|
13190
13340
|
# @param password Document password.
|
13191
13341
|
# @param folder Document folder.
|
13192
13342
|
# @param storage Document storage.
|
13193
|
-
def highlight_shape_regex(name, slide_index, shape_index, regex, color,
|
13194
|
-
data, _status_code, _headers = highlight_shape_regex_with_http_info(name, slide_index, shape_index, regex, color,
|
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)
|
13195
13345
|
data
|
13196
13346
|
end
|
13197
13347
|
|
@@ -13201,12 +13351,11 @@ module AsposeSlidesCloud
|
|
13201
13351
|
# @param shape_index Shape index.
|
13202
13352
|
# @param regex Regular expression.
|
13203
13353
|
# @param color Highlighting color.
|
13204
|
-
# @param whole_words_only Match only whole words.
|
13205
13354
|
# @param ignore_case True to search ignoring char case.
|
13206
13355
|
# @param password Document password.
|
13207
13356
|
# @param folder Document folder.
|
13208
13357
|
# @param storage Document storage.
|
13209
|
-
def highlight_shape_regex_with_http_info(name, slide_index, shape_index, regex, color,
|
13358
|
+
def highlight_shape_regex_with_http_info(name, slide_index, shape_index, regex, color, ignore_case = nil, password = nil, folder = nil, storage = nil)
|
13210
13359
|
if @api_client.config.debugging
|
13211
13360
|
@api_client.config.logger.debug 'Calling API: SlidesApi.highlight_shape_regex ...'
|
13212
13361
|
end
|
@@ -13241,7 +13390,6 @@ module AsposeSlidesCloud
|
|
13241
13390
|
query_params = {}
|
13242
13391
|
query_params[:'regex'] = @api_client.prepare_for_query(regex) unless regex.nil?
|
13243
13392
|
query_params[:'color'] = @api_client.prepare_for_query(color) unless color.nil?
|
13244
|
-
query_params[:'wholeWordsOnly'] = @api_client.prepare_for_query(whole_words_only) unless whole_words_only.nil?
|
13245
13393
|
query_params[:'ignoreCase'] = @api_client.prepare_for_query(ignore_case) unless ignore_case.nil?
|
13246
13394
|
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
13247
13395
|
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
@@ -14735,6 +14883,150 @@ module AsposeSlidesCloud
|
|
14735
14883
|
:return_type => 'File')
|
14736
14884
|
return data, status_code, headers
|
14737
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
|
14738
15030
|
# Replace text with a new value.
|
14739
15031
|
# @param name Document name.
|
14740
15032
|
# @param old_value Text value to be replaced.
|
@@ -535,5 +535,176 @@ module AsposeSlidesCloud
|
|
535
535
|
:return_type => 'String')
|
536
536
|
return data, status_code, headers
|
537
537
|
end
|
538
|
+
# @param name
|
539
|
+
# @param format
|
540
|
+
# @param options
|
541
|
+
# @param width
|
542
|
+
# @param height
|
543
|
+
# @param from
|
544
|
+
# @param to
|
545
|
+
# @param dest_folder
|
546
|
+
# @param password
|
547
|
+
# @param folder
|
548
|
+
# @param storage
|
549
|
+
# @param fonts_folder
|
550
|
+
def start_split(name, format, options = nil, width = nil, height = nil, from = nil, to = nil, dest_folder = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil)
|
551
|
+
data, _status_code, _headers = start_split_with_http_info(name, format, options, width, height, from, to, dest_folder, password, folder, storage, fonts_folder)
|
552
|
+
data
|
553
|
+
end
|
554
|
+
|
555
|
+
# @param name
|
556
|
+
# @param format
|
557
|
+
# @param options
|
558
|
+
# @param width
|
559
|
+
# @param height
|
560
|
+
# @param from
|
561
|
+
# @param to
|
562
|
+
# @param dest_folder
|
563
|
+
# @param password
|
564
|
+
# @param folder
|
565
|
+
# @param storage
|
566
|
+
# @param fonts_folder
|
567
|
+
def start_split_with_http_info(name, format, options = nil, width = nil, height = nil, from = nil, to = nil, dest_folder = nil, password = nil, folder = nil, storage = nil, fonts_folder = nil)
|
568
|
+
if @api_client.config.debugging
|
569
|
+
@api_client.config.logger.debug 'Calling API: SlidesAsyncApi.start_split ...'
|
570
|
+
end
|
571
|
+
|
572
|
+
# verify the required parameter 'name' is set
|
573
|
+
if @api_client.config.client_side_validation && name.nil?
|
574
|
+
fail ArgumentError, "Missing the required parameter 'name' when calling SlidesAsyncApi.start_split"
|
575
|
+
end
|
576
|
+
# verify the required parameter 'format' is set
|
577
|
+
if @api_client.config.client_side_validation && format.nil?
|
578
|
+
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_split"
|
579
|
+
end
|
580
|
+
# verify enum value
|
581
|
+
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 }
|
582
|
+
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"
|
583
|
+
end
|
584
|
+
# resource path
|
585
|
+
local_var_path = '/slides/async/{name}/split/{format}'
|
586
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'name', name)
|
587
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format)
|
588
|
+
|
589
|
+
# query parameters
|
590
|
+
query_params = {}
|
591
|
+
query_params[:'width'] = @api_client.prepare_for_query(width) unless width.nil?
|
592
|
+
query_params[:'height'] = @api_client.prepare_for_query(height) unless height.nil?
|
593
|
+
query_params[:'from'] = @api_client.prepare_for_query(from) unless from.nil?
|
594
|
+
query_params[:'to'] = @api_client.prepare_for_query(to) unless to.nil?
|
595
|
+
query_params[:'destFolder'] = @api_client.prepare_for_query(dest_folder) unless dest_folder.nil?
|
596
|
+
query_params[:'folder'] = @api_client.prepare_for_query(folder) unless folder.nil?
|
597
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
598
|
+
query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
|
599
|
+
|
600
|
+
# header parameters
|
601
|
+
header_params = {}
|
602
|
+
# HTTP header 'Accept' (if needed)
|
603
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
604
|
+
# HTTP header 'Content-Type'
|
605
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
606
|
+
header_params[:'password'] = password unless password.nil?
|
607
|
+
|
608
|
+
# http body (model)
|
609
|
+
post_body = @api_client.object_to_http_body(options)
|
610
|
+
|
611
|
+
# form parameters
|
612
|
+
post_files = []
|
613
|
+
|
614
|
+
auth_names = ['JWT']
|
615
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
616
|
+
:header_params => header_params,
|
617
|
+
:query_params => query_params,
|
618
|
+
:body => post_body,
|
619
|
+
:files => post_files,
|
620
|
+
:auth_names => auth_names,
|
621
|
+
:return_type => 'String')
|
622
|
+
return data, status_code, headers
|
623
|
+
end
|
624
|
+
# @param document Document data.
|
625
|
+
# @param format
|
626
|
+
# @param dest_folder
|
627
|
+
# @param width
|
628
|
+
# @param height
|
629
|
+
# @param from
|
630
|
+
# @param to
|
631
|
+
# @param password
|
632
|
+
# @param storage
|
633
|
+
# @param fonts_folder
|
634
|
+
# @param options
|
635
|
+
def start_upload_and_split(document, format, dest_folder = nil, width = nil, height = nil, from = nil, to = nil, password = nil, storage = nil, fonts_folder = nil, options = nil)
|
636
|
+
data, _status_code, _headers = start_upload_and_split_with_http_info(document, format, dest_folder, width, height, from, to, password, storage, fonts_folder, options)
|
637
|
+
data
|
638
|
+
end
|
639
|
+
|
640
|
+
# @param document Document data.
|
641
|
+
# @param format
|
642
|
+
# @param dest_folder
|
643
|
+
# @param width
|
644
|
+
# @param height
|
645
|
+
# @param from
|
646
|
+
# @param to
|
647
|
+
# @param password
|
648
|
+
# @param storage
|
649
|
+
# @param fonts_folder
|
650
|
+
# @param options
|
651
|
+
def start_upload_and_split_with_http_info(document, format, dest_folder = nil, width = nil, height = nil, from = nil, to = nil, password = nil, storage = nil, fonts_folder = nil, options = nil)
|
652
|
+
if @api_client.config.debugging
|
653
|
+
@api_client.config.logger.debug 'Calling API: SlidesAsyncApi.start_upload_and_split ...'
|
654
|
+
end
|
655
|
+
|
656
|
+
# verify the required parameter 'document' is set
|
657
|
+
if @api_client.config.client_side_validation && document.nil?
|
658
|
+
fail ArgumentError, "Missing the required parameter 'document' when calling SlidesAsyncApi.start_upload_and_split"
|
659
|
+
end
|
660
|
+
# verify the required parameter 'format' is set
|
661
|
+
if @api_client.config.client_side_validation && format.nil?
|
662
|
+
fail ArgumentError, "Missing the required parameter 'format' when calling SlidesAsyncApi.start_upload_and_split"
|
663
|
+
end
|
664
|
+
# verify enum value
|
665
|
+
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 }
|
666
|
+
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"
|
667
|
+
end
|
668
|
+
# resource path
|
669
|
+
local_var_path = '/slides/async/split/{format}'
|
670
|
+
local_var_path = @api_client.replace_path_parameter(local_var_path, 'format', format)
|
671
|
+
|
672
|
+
# query parameters
|
673
|
+
query_params = {}
|
674
|
+
query_params[:'destFolder'] = @api_client.prepare_for_query(dest_folder) unless dest_folder.nil?
|
675
|
+
query_params[:'width'] = @api_client.prepare_for_query(width) unless width.nil?
|
676
|
+
query_params[:'height'] = @api_client.prepare_for_query(height) unless height.nil?
|
677
|
+
query_params[:'from'] = @api_client.prepare_for_query(from) unless from.nil?
|
678
|
+
query_params[:'to'] = @api_client.prepare_for_query(to) unless to.nil?
|
679
|
+
query_params[:'storage'] = @api_client.prepare_for_query(storage) unless storage.nil?
|
680
|
+
query_params[:'fontsFolder'] = @api_client.prepare_for_query(fonts_folder) unless fonts_folder.nil?
|
681
|
+
|
682
|
+
# header parameters
|
683
|
+
header_params = {}
|
684
|
+
# HTTP header 'Accept' (if needed)
|
685
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
686
|
+
# HTTP header 'Content-Type'
|
687
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
688
|
+
header_params[:'password'] = password unless password.nil?
|
689
|
+
|
690
|
+
# http body (model)
|
691
|
+
post_body = @api_client.object_to_http_body(options)
|
692
|
+
|
693
|
+
# form parameters
|
694
|
+
post_files = []
|
695
|
+
if document
|
696
|
+
post_files = post_files.push(document)
|
697
|
+
end
|
698
|
+
|
699
|
+
auth_names = ['JWT']
|
700
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
701
|
+
:header_params => header_params,
|
702
|
+
:query_params => query_params,
|
703
|
+
:body => post_body,
|
704
|
+
:files => post_files,
|
705
|
+
:auth_names => auth_names,
|
706
|
+
:return_type => 'String')
|
707
|
+
return data, status_code, headers
|
708
|
+
end
|
538
709
|
end
|
539
710
|
end
|
@@ -129,10 +129,6 @@ module AsposeSlidesCloud
|
|
129
129
|
# @return Array for valid properties with the reasons
|
130
130
|
def list_invalid_properties
|
131
131
|
invalid_properties = super
|
132
|
-
if @is_object_icon.nil?
|
133
|
-
invalid_properties.push('invalid value for "is_object_icon", is_object_icon cannot be nil.')
|
134
|
-
end
|
135
|
-
|
136
132
|
invalid_properties
|
137
133
|
end
|
138
134
|
|
@@ -140,7 +136,6 @@ module AsposeSlidesCloud
|
|
140
136
|
# @return true if the model is valid
|
141
137
|
def valid?
|
142
138
|
return false if !super
|
143
|
-
return false if @is_object_icon.nil?
|
144
139
|
true
|
145
140
|
end
|
146
141
|
|
@@ -72,7 +72,7 @@ module AsposeSlidesCloud
|
|
72
72
|
:'failed' => :'DateTime',
|
73
73
|
:'canceled' => :'DateTime',
|
74
74
|
:'finished' => :'DateTime',
|
75
|
-
:'error' => :'
|
75
|
+
:'error' => :'OperationError',
|
76
76
|
}
|
77
77
|
end
|
78
78
|
|
@@ -149,7 +149,7 @@ module AsposeSlidesCloud
|
|
149
149
|
def valid?
|
150
150
|
return false if @id.nil?
|
151
151
|
return false if @method.nil?
|
152
|
-
method_validator = EnumAttributeValidator.new('String', ['Convert', 'DownloadPresentation', 'ConvertAndSave', 'SavePresentation', 'Merge', 'MergeAndSave'])
|
152
|
+
method_validator = EnumAttributeValidator.new('String', ['Convert', 'DownloadPresentation', 'ConvertAndSave', 'SavePresentation', 'Merge', 'MergeAndSave', 'Split', 'UploadAndSplit'])
|
153
153
|
return false unless method_validator.valid?(@method)
|
154
154
|
return false if @status.nil?
|
155
155
|
status_validator = EnumAttributeValidator.new('String', ['Created', 'Enqueued', 'Started', 'Failed', 'Canceled', 'Finished'])
|
@@ -160,7 +160,7 @@ module AsposeSlidesCloud
|
|
160
160
|
# Custom attribute writer method checking allowed values (enum).
|
161
161
|
# @param [Object] method Object to be assigned
|
162
162
|
def method=(method)
|
163
|
-
validator = EnumAttributeValidator.new('String', ['Convert', 'DownloadPresentation', 'ConvertAndSave', 'SavePresentation', 'Merge', 'MergeAndSave'])
|
163
|
+
validator = EnumAttributeValidator.new('String', ['Convert', 'DownloadPresentation', 'ConvertAndSave', 'SavePresentation', 'Merge', 'MergeAndSave', 'Split', 'UploadAndSplit'])
|
164
164
|
unless validator.valid?(method)
|
165
165
|
fail ArgumentError, 'invalid value for "method", must be one of #{validator.allowable_values}.'
|
166
166
|
end
|