aspose_slides_cloud 24.7.0 → 24.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +6 -8
- data/README.md +12 -0
- data/lib/aspose_slides_cloud/api/slides_api.rb +298 -6
- data/lib/aspose_slides_cloud/api/slides_async_api.rb +281 -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/shape_base.rb +0 -5
- 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/models/table_row.rb +0 -10
- 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 +943 -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 +4 -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: 1c8fcabd1dec89602f7187e17e260535eb94f19956482773ac9cb3c2a662236e
|
4
|
+
data.tar.gz: 47ffe13f3b3b81b71141b8fccea059515f4f01d87e0cff7b2eb16d8f8d267692
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 33aeef7fe847968ddd2391a4bd4154a83130c109bbd6f00d90e203049cbf94fb228bf11b74dacbea76ea2a2568996abf4b94bc0a6e870de1c5f1db0043a0291c
|
7
|
+
data.tar.gz: 8295d67f63e70d40de051485920906ab8be1b58a9fece34c4f965702cbcd5b2837883a038988bb401527a49109f1e2ba081f9f94413cc70ff330113b00b97fb2
|
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.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)
|
@@ -23,7 +23,7 @@ GEM
|
|
23
23
|
bigdecimal
|
24
24
|
rexml
|
25
25
|
diff-lcs (1.5.1)
|
26
|
-
faraday (1.10.
|
26
|
+
faraday (1.10.4)
|
27
27
|
faraday-em_http (~> 1.0)
|
28
28
|
faraday-em_synchrony (~> 1.0)
|
29
29
|
faraday-excon (~> 1.1)
|
@@ -46,21 +46,20 @@ 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.
|
56
|
-
strscan
|
55
|
+
rexml (3.3.8)
|
57
56
|
rspec (3.13.0)
|
58
57
|
rspec-core (~> 3.13.0)
|
59
58
|
rspec-expectations (~> 3.13.0)
|
60
59
|
rspec-mocks (~> 3.13.0)
|
61
|
-
rspec-core (3.13.
|
60
|
+
rspec-core (3.13.1)
|
62
61
|
rspec-support (~> 3.13.0)
|
63
|
-
rspec-expectations (3.13.
|
62
|
+
rspec-expectations (3.13.3)
|
64
63
|
diff-lcs (>= 1.2.0, < 2.0)
|
65
64
|
rspec-support (~> 3.13.0)
|
66
65
|
rspec-mocks (3.13.1)
|
@@ -71,7 +70,6 @@ GEM
|
|
71
70
|
rspec-core (>= 2, < 4, != 2.12.0)
|
72
71
|
ruby2_keywords (0.0.5)
|
73
72
|
rubyzip (2.3.2)
|
74
|
-
strscan (3.1.0)
|
75
73
|
vcr (3.0.3)
|
76
74
|
warning (1.4.0)
|
77
75
|
webmock (1.24.6)
|
data/README.md
CHANGED
@@ -27,6 +27,18 @@ 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.9
|
31
|
+
|
32
|
+
* Added **Upload** and **Download** methods to async API. They are identical to **UploadFile** and **DownloadFile** methods of the regular API, but file size is not restricted for them.
|
33
|
+
|
34
|
+
## Enhancements in Version 24.8
|
35
|
+
|
36
|
+
* Added **StartSplit** and **StartUploadAndSplit** methods to async API.
|
37
|
+
* Added **ReplacePresentationRegex** and **ReplacePresentationRegexOnline** methods.
|
38
|
+
* Added **HighlightPresentationText** and **HighlightPresentationRegex** methods.
|
39
|
+
* Added **OperationError** class; changed **Operation**.**Error** property type from string to **OperationError**.
|
40
|
+
* Removed **wholeWordsOnly** parameter from **ReplaceShapeRegex** method.
|
41
|
+
|
30
42
|
## Enhancements in Version 24.7
|
31
43
|
|
32
44
|
* 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.
|