cloudmersive-convert-api-client 2.1.2 → 2.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +26 -4
- data/docs/DocxMetadataCustomProperty.md +13 -0
- data/docs/DocxSetCustomMetadataPropertiesRequest.md +10 -0
- data/docs/EditDocumentApi.md +275 -0
- data/docs/EditHtmlApi.md +60 -0
- data/docs/GetDocxMetadataPropertiesResponse.md +16 -0
- data/docs/GetMacrosResponse.md +9 -0
- data/docs/HtmlGetLinksResponse.md +9 -0
- data/docs/HtmlHyperlink.md +9 -0
- data/docs/HtmlSsrfThreatCheckResult.md +10 -0
- data/docs/HtmlThreatLink.md +9 -0
- data/docs/MergeDocumentApi.md +134 -0
- data/docs/ValidateDocumentApi.md +220 -0
- data/docs/XxeThreatDetectionResult.md +9 -0
- data/docs/ZipArchiveApi.md +49 -0
- data/lib/cloudmersive-convert-api-client.rb +9 -0
- data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +274 -0
- data/lib/cloudmersive-convert-api-client/api/edit_html_api.rb +55 -0
- data/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +148 -0
- data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +220 -0
- data/lib/cloudmersive-convert-api-client/api/zip_archive_api.rb +46 -0
- data/lib/cloudmersive-convert-api-client/models/docx_metadata_custom_property.rb +236 -0
- data/lib/cloudmersive-convert-api-client/models/docx_set_custom_metadata_properties_request.rb +223 -0
- data/lib/cloudmersive-convert-api-client/models/get_docx_metadata_properties_response.rb +268 -0
- data/lib/cloudmersive-convert-api-client/models/get_macros_response.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/html_get_links_response.rb +198 -0
- data/lib/cloudmersive-convert-api-client/models/html_hyperlink.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/html_ssrf_threat_check_result.rb +208 -0
- data/lib/cloudmersive-convert-api-client/models/html_threat_link.rb +196 -0
- data/lib/cloudmersive-convert-api-client/models/xxe_threat_detection_result.rb +196 -0
- data/lib/cloudmersive-convert-api-client/version.rb +1 -1
- data/spec/api/edit_document_api_spec.rb +60 -0
- data/spec/api/edit_html_api_spec.rb +14 -0
- data/spec/api/merge_document_api_spec.rb +34 -0
- data/spec/api/validate_document_api_spec.rb +48 -0
- data/spec/api/zip_archive_api_spec.rb +11 -0
- data/spec/models/docx_metadata_custom_property_spec.rb +71 -0
- data/spec/models/docx_set_custom_metadata_properties_request_spec.rb +53 -0
- data/spec/models/get_docx_metadata_properties_response_spec.rb +89 -0
- data/spec/models/get_macros_response_spec.rb +47 -0
- data/spec/models/html_get_links_response_spec.rb +47 -0
- data/spec/models/html_hyperlink_spec.rb +47 -0
- data/spec/models/html_ssrf_threat_check_result_spec.rb +53 -0
- data/spec/models/html_threat_link_spec.rb +47 -0
- data/spec/models/xxe_threat_detection_result_spec.rb +47 -0
- metadata +29 -2
@@ -167,6 +167,154 @@ module CloudmersiveConvertApiClient
|
|
167
167
|
end
|
168
168
|
return data, status_code, headers
|
169
169
|
end
|
170
|
+
# Merge Two HTML (HTM) Files Together
|
171
|
+
# Combine two HTML (.HTM) files into a single text document, preserving the order of the input documents in the combined document by stacking them vertically. The title will be taken from the first document.
|
172
|
+
# @param input_file1 First input file to perform the operation on.
|
173
|
+
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
174
|
+
# @param [Hash] opts the optional parameters
|
175
|
+
# @return [Object]
|
176
|
+
def merge_document_html(input_file1, input_file2, opts = {})
|
177
|
+
data, _status_code, _headers = merge_document_html_with_http_info(input_file1, input_file2, opts)
|
178
|
+
data
|
179
|
+
end
|
180
|
+
|
181
|
+
# Merge Two HTML (HTM) Files Together
|
182
|
+
# Combine two HTML (.HTM) files into a single text document, preserving the order of the input documents in the combined document by stacking them vertically. The title will be taken from the first document.
|
183
|
+
# @param input_file1 First input file to perform the operation on.
|
184
|
+
# @param input_file2 Second input file to perform the operation on (more than 2 can be supplied).
|
185
|
+
# @param [Hash] opts the optional parameters
|
186
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
187
|
+
def merge_document_html_with_http_info(input_file1, input_file2, opts = {})
|
188
|
+
if @api_client.config.debugging
|
189
|
+
@api_client.config.logger.debug 'Calling API: MergeDocumentApi.merge_document_html ...'
|
190
|
+
end
|
191
|
+
# verify the required parameter 'input_file1' is set
|
192
|
+
if @api_client.config.client_side_validation && input_file1.nil?
|
193
|
+
fail ArgumentError, "Missing the required parameter 'input_file1' when calling MergeDocumentApi.merge_document_html"
|
194
|
+
end
|
195
|
+
# verify the required parameter 'input_file2' is set
|
196
|
+
if @api_client.config.client_side_validation && input_file2.nil?
|
197
|
+
fail ArgumentError, "Missing the required parameter 'input_file2' when calling MergeDocumentApi.merge_document_html"
|
198
|
+
end
|
199
|
+
# resource path
|
200
|
+
local_var_path = '/convert/merge/html'
|
201
|
+
|
202
|
+
# query parameters
|
203
|
+
query_params = {}
|
204
|
+
|
205
|
+
# header parameters
|
206
|
+
header_params = {}
|
207
|
+
# HTTP header 'Accept' (if needed)
|
208
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
209
|
+
# HTTP header 'Content-Type'
|
210
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
211
|
+
|
212
|
+
# form parameters
|
213
|
+
form_params = {}
|
214
|
+
form_params['inputFile1'] = input_file1
|
215
|
+
form_params['inputFile2'] = input_file2
|
216
|
+
|
217
|
+
# http body (model)
|
218
|
+
post_body = nil
|
219
|
+
auth_names = ['Apikey']
|
220
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
221
|
+
:header_params => header_params,
|
222
|
+
:query_params => query_params,
|
223
|
+
:form_params => form_params,
|
224
|
+
:body => post_body,
|
225
|
+
:auth_names => auth_names,
|
226
|
+
:return_type => 'Object')
|
227
|
+
if @api_client.config.debugging
|
228
|
+
@api_client.config.logger.debug "API called: MergeDocumentApi#merge_document_html\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
229
|
+
end
|
230
|
+
return data, status_code, headers
|
231
|
+
end
|
232
|
+
# Merge Multple HTML (HTM) Files Together
|
233
|
+
# Combine multiple HTML (.HTM) files into a single text document, preserving the order of the input documents in the combined document by stacking them vertically. The title will be taken from the first document.
|
234
|
+
# @param input_file1 First input file to perform the operation on.
|
235
|
+
# @param input_file2 Second input file to perform the operation on.
|
236
|
+
# @param [Hash] opts the optional parameters
|
237
|
+
# @option opts [File] :input_file3 Third input file to perform the operation on.
|
238
|
+
# @option opts [File] :input_file4 Fourth input file to perform the operation on.
|
239
|
+
# @option opts [File] :input_file5 Fifth input file to perform the operation on.
|
240
|
+
# @option opts [File] :input_file6 Sixth input file to perform the operation on.
|
241
|
+
# @option opts [File] :input_file7 Seventh input file to perform the operation on.
|
242
|
+
# @option opts [File] :input_file8 Eighth input file to perform the operation on.
|
243
|
+
# @option opts [File] :input_file9 Ninth input file to perform the operation on.
|
244
|
+
# @option opts [File] :input_file10 Tenth input file to perform the operation on.
|
245
|
+
# @return [String]
|
246
|
+
def merge_document_html_multi(input_file1, input_file2, opts = {})
|
247
|
+
data, _status_code, _headers = merge_document_html_multi_with_http_info(input_file1, input_file2, opts)
|
248
|
+
data
|
249
|
+
end
|
250
|
+
|
251
|
+
# Merge Multple HTML (HTM) Files Together
|
252
|
+
# Combine multiple HTML (.HTM) files into a single text document, preserving the order of the input documents in the combined document by stacking them vertically. The title will be taken from the first document.
|
253
|
+
# @param input_file1 First input file to perform the operation on.
|
254
|
+
# @param input_file2 Second input file to perform the operation on.
|
255
|
+
# @param [Hash] opts the optional parameters
|
256
|
+
# @option opts [File] :input_file3 Third input file to perform the operation on.
|
257
|
+
# @option opts [File] :input_file4 Fourth input file to perform the operation on.
|
258
|
+
# @option opts [File] :input_file5 Fifth input file to perform the operation on.
|
259
|
+
# @option opts [File] :input_file6 Sixth input file to perform the operation on.
|
260
|
+
# @option opts [File] :input_file7 Seventh input file to perform the operation on.
|
261
|
+
# @option opts [File] :input_file8 Eighth input file to perform the operation on.
|
262
|
+
# @option opts [File] :input_file9 Ninth input file to perform the operation on.
|
263
|
+
# @option opts [File] :input_file10 Tenth input file to perform the operation on.
|
264
|
+
# @return [Array<(String, Fixnum, Hash)>] String data, response status code and response headers
|
265
|
+
def merge_document_html_multi_with_http_info(input_file1, input_file2, opts = {})
|
266
|
+
if @api_client.config.debugging
|
267
|
+
@api_client.config.logger.debug 'Calling API: MergeDocumentApi.merge_document_html_multi ...'
|
268
|
+
end
|
269
|
+
# verify the required parameter 'input_file1' is set
|
270
|
+
if @api_client.config.client_side_validation && input_file1.nil?
|
271
|
+
fail ArgumentError, "Missing the required parameter 'input_file1' when calling MergeDocumentApi.merge_document_html_multi"
|
272
|
+
end
|
273
|
+
# verify the required parameter 'input_file2' is set
|
274
|
+
if @api_client.config.client_side_validation && input_file2.nil?
|
275
|
+
fail ArgumentError, "Missing the required parameter 'input_file2' when calling MergeDocumentApi.merge_document_html_multi"
|
276
|
+
end
|
277
|
+
# resource path
|
278
|
+
local_var_path = '/convert/merge/html/multi'
|
279
|
+
|
280
|
+
# query parameters
|
281
|
+
query_params = {}
|
282
|
+
|
283
|
+
# header parameters
|
284
|
+
header_params = {}
|
285
|
+
# HTTP header 'Accept' (if needed)
|
286
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
287
|
+
# HTTP header 'Content-Type'
|
288
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
289
|
+
|
290
|
+
# form parameters
|
291
|
+
form_params = {}
|
292
|
+
form_params['inputFile1'] = input_file1
|
293
|
+
form_params['inputFile2'] = input_file2
|
294
|
+
form_params['inputFile3'] = opts[:'input_file3'] if !opts[:'input_file3'].nil?
|
295
|
+
form_params['inputFile4'] = opts[:'input_file4'] if !opts[:'input_file4'].nil?
|
296
|
+
form_params['inputFile5'] = opts[:'input_file5'] if !opts[:'input_file5'].nil?
|
297
|
+
form_params['inputFile6'] = opts[:'input_file6'] if !opts[:'input_file6'].nil?
|
298
|
+
form_params['inputFile7'] = opts[:'input_file7'] if !opts[:'input_file7'].nil?
|
299
|
+
form_params['inputFile8'] = opts[:'input_file8'] if !opts[:'input_file8'].nil?
|
300
|
+
form_params['inputFile9'] = opts[:'input_file9'] if !opts[:'input_file9'].nil?
|
301
|
+
form_params['inputFile10'] = opts[:'input_file10'] if !opts[:'input_file10'].nil?
|
302
|
+
|
303
|
+
# http body (model)
|
304
|
+
post_body = nil
|
305
|
+
auth_names = ['Apikey']
|
306
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
307
|
+
:header_params => header_params,
|
308
|
+
:query_params => query_params,
|
309
|
+
:form_params => form_params,
|
310
|
+
:body => post_body,
|
311
|
+
:auth_names => auth_names,
|
312
|
+
:return_type => 'String')
|
313
|
+
if @api_client.config.debugging
|
314
|
+
@api_client.config.logger.debug "API called: MergeDocumentApi#merge_document_html_multi\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
315
|
+
end
|
316
|
+
return data, status_code, headers
|
317
|
+
end
|
170
318
|
# Merge Two PDF Files Together
|
171
319
|
# Combine two PDF files (pdf) into a single PDF document, preserving the order of the input documents in the combined document
|
172
320
|
# @param input_file1 First input file to perform the operation on.
|
@@ -349,6 +349,61 @@ module CloudmersiveConvertApiClient
|
|
349
349
|
end
|
350
350
|
return data, status_code, headers
|
351
351
|
end
|
352
|
+
# Validate an HTML file and checks for SSRF threats
|
353
|
+
# Validate an HTML document file and checks for SSRF (Server-side Request Forgery) threats in the file; if the document is not valid, identifies the errors in the document
|
354
|
+
# @param input_file Input file to perform the operation on.
|
355
|
+
# @param [Hash] opts the optional parameters
|
356
|
+
# @return [HtmlSsrfThreatCheckResult]
|
357
|
+
def validate_document_html_ssrf_validation(input_file, opts = {})
|
358
|
+
data, _status_code, _headers = validate_document_html_ssrf_validation_with_http_info(input_file, opts)
|
359
|
+
data
|
360
|
+
end
|
361
|
+
|
362
|
+
# Validate an HTML file and checks for SSRF threats
|
363
|
+
# Validate an HTML document file and checks for SSRF (Server-side Request Forgery) threats in the file; if the document is not valid, identifies the errors in the document
|
364
|
+
# @param input_file Input file to perform the operation on.
|
365
|
+
# @param [Hash] opts the optional parameters
|
366
|
+
# @return [Array<(HtmlSsrfThreatCheckResult, Fixnum, Hash)>] HtmlSsrfThreatCheckResult data, response status code and response headers
|
367
|
+
def validate_document_html_ssrf_validation_with_http_info(input_file, opts = {})
|
368
|
+
if @api_client.config.debugging
|
369
|
+
@api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_html_ssrf_validation ...'
|
370
|
+
end
|
371
|
+
# verify the required parameter 'input_file' is set
|
372
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
373
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_html_ssrf_validation"
|
374
|
+
end
|
375
|
+
# resource path
|
376
|
+
local_var_path = '/convert/validate/html/ssrf-threat-check'
|
377
|
+
|
378
|
+
# query parameters
|
379
|
+
query_params = {}
|
380
|
+
|
381
|
+
# header parameters
|
382
|
+
header_params = {}
|
383
|
+
# HTTP header 'Accept' (if needed)
|
384
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
385
|
+
# HTTP header 'Content-Type'
|
386
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
387
|
+
|
388
|
+
# form parameters
|
389
|
+
form_params = {}
|
390
|
+
form_params['inputFile'] = input_file
|
391
|
+
|
392
|
+
# http body (model)
|
393
|
+
post_body = nil
|
394
|
+
auth_names = ['Apikey']
|
395
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
396
|
+
:header_params => header_params,
|
397
|
+
:query_params => query_params,
|
398
|
+
:form_params => form_params,
|
399
|
+
:body => post_body,
|
400
|
+
:auth_names => auth_names,
|
401
|
+
:return_type => 'HtmlSsrfThreatCheckResult')
|
402
|
+
if @api_client.config.debugging
|
403
|
+
@api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_html_ssrf_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
404
|
+
end
|
405
|
+
return data, status_code, headers
|
406
|
+
end
|
352
407
|
# Validate an HTML file
|
353
408
|
# Validate an HTML document file; if the document is not valid, identifies the errors in the document
|
354
409
|
# @param input_file Input file to perform the operation on.
|
@@ -459,6 +514,61 @@ module CloudmersiveConvertApiClient
|
|
459
514
|
end
|
460
515
|
return data, status_code, headers
|
461
516
|
end
|
517
|
+
# Validate a JPG File
|
518
|
+
# Validate a JPEG image file; if the document is not valid, identifies the errors in the document..
|
519
|
+
# @param input_file Input file to perform the operation on.
|
520
|
+
# @param [Hash] opts the optional parameters
|
521
|
+
# @return [DocumentValidationResult]
|
522
|
+
def validate_document_jpg_validation(input_file, opts = {})
|
523
|
+
data, _status_code, _headers = validate_document_jpg_validation_with_http_info(input_file, opts)
|
524
|
+
data
|
525
|
+
end
|
526
|
+
|
527
|
+
# Validate a JPG File
|
528
|
+
# Validate a JPEG image file; if the document is not valid, identifies the errors in the document..
|
529
|
+
# @param input_file Input file to perform the operation on.
|
530
|
+
# @param [Hash] opts the optional parameters
|
531
|
+
# @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
|
532
|
+
def validate_document_jpg_validation_with_http_info(input_file, opts = {})
|
533
|
+
if @api_client.config.debugging
|
534
|
+
@api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_jpg_validation ...'
|
535
|
+
end
|
536
|
+
# verify the required parameter 'input_file' is set
|
537
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
538
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_jpg_validation"
|
539
|
+
end
|
540
|
+
# resource path
|
541
|
+
local_var_path = '/convert/validate/jpg'
|
542
|
+
|
543
|
+
# query parameters
|
544
|
+
query_params = {}
|
545
|
+
|
546
|
+
# header parameters
|
547
|
+
header_params = {}
|
548
|
+
# HTTP header 'Accept' (if needed)
|
549
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
550
|
+
# HTTP header 'Content-Type'
|
551
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
552
|
+
|
553
|
+
# form parameters
|
554
|
+
form_params = {}
|
555
|
+
form_params['inputFile'] = input_file
|
556
|
+
|
557
|
+
# http body (model)
|
558
|
+
post_body = nil
|
559
|
+
auth_names = ['Apikey']
|
560
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
561
|
+
:header_params => header_params,
|
562
|
+
:query_params => query_params,
|
563
|
+
:form_params => form_params,
|
564
|
+
:body => post_body,
|
565
|
+
:auth_names => auth_names,
|
566
|
+
:return_type => 'DocumentValidationResult')
|
567
|
+
if @api_client.config.debugging
|
568
|
+
@api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_jpg_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
569
|
+
end
|
570
|
+
return data, status_code, headers
|
571
|
+
end
|
462
572
|
# Validate a JSON file
|
463
573
|
# Validate a JSON (JavaScript Object Notation) document file; if the document is not valid, identifies the errors in the document
|
464
574
|
# @param input_file Input file to perform the operation on.
|
@@ -624,6 +734,61 @@ module CloudmersiveConvertApiClient
|
|
624
734
|
end
|
625
735
|
return data, status_code, headers
|
626
736
|
end
|
737
|
+
# Validate a PNG File
|
738
|
+
# Validate a PNG image file; if the document is not valid, identifies the errors in the document.
|
739
|
+
# @param input_file Input file to perform the operation on.
|
740
|
+
# @param [Hash] opts the optional parameters
|
741
|
+
# @return [DocumentValidationResult]
|
742
|
+
def validate_document_png_validation(input_file, opts = {})
|
743
|
+
data, _status_code, _headers = validate_document_png_validation_with_http_info(input_file, opts)
|
744
|
+
data
|
745
|
+
end
|
746
|
+
|
747
|
+
# Validate a PNG File
|
748
|
+
# Validate a PNG image file; if the document is not valid, identifies the errors in the document.
|
749
|
+
# @param input_file Input file to perform the operation on.
|
750
|
+
# @param [Hash] opts the optional parameters
|
751
|
+
# @return [Array<(DocumentValidationResult, Fixnum, Hash)>] DocumentValidationResult data, response status code and response headers
|
752
|
+
def validate_document_png_validation_with_http_info(input_file, opts = {})
|
753
|
+
if @api_client.config.debugging
|
754
|
+
@api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_png_validation ...'
|
755
|
+
end
|
756
|
+
# verify the required parameter 'input_file' is set
|
757
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
758
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_png_validation"
|
759
|
+
end
|
760
|
+
# resource path
|
761
|
+
local_var_path = '/convert/validate/png'
|
762
|
+
|
763
|
+
# query parameters
|
764
|
+
query_params = {}
|
765
|
+
|
766
|
+
# header parameters
|
767
|
+
header_params = {}
|
768
|
+
# HTTP header 'Accept' (if needed)
|
769
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
770
|
+
# HTTP header 'Content-Type'
|
771
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
772
|
+
|
773
|
+
# form parameters
|
774
|
+
form_params = {}
|
775
|
+
form_params['inputFile'] = input_file
|
776
|
+
|
777
|
+
# http body (model)
|
778
|
+
post_body = nil
|
779
|
+
auth_names = ['Apikey']
|
780
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
781
|
+
:header_params => header_params,
|
782
|
+
:query_params => query_params,
|
783
|
+
:form_params => form_params,
|
784
|
+
:body => post_body,
|
785
|
+
:auth_names => auth_names,
|
786
|
+
:return_type => 'DocumentValidationResult')
|
787
|
+
if @api_client.config.debugging
|
788
|
+
@api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_png_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
789
|
+
end
|
790
|
+
return data, status_code, headers
|
791
|
+
end
|
627
792
|
# Validate a PowerPoint presentation (PPTX)
|
628
793
|
# Validate a PowerPoint presentation (PPTX); if the document is not valid, identifies the errors in the document
|
629
794
|
# @param input_file Input file to perform the operation on.
|
@@ -954,6 +1119,61 @@ module CloudmersiveConvertApiClient
|
|
954
1119
|
end
|
955
1120
|
return data, status_code, headers
|
956
1121
|
end
|
1122
|
+
# Validate an XML file for XML External Entity (XXE) threats
|
1123
|
+
# Validate an XML document file for XML External Entity (XXE) threats; if the document is not valid, identifies the errors in the document. XXE threats are a type of threat that exploits vulnerabilities in the XML standard relating to external or local entity URIs in XML documents.
|
1124
|
+
# @param input_file Input file to perform the operation on.
|
1125
|
+
# @param [Hash] opts the optional parameters
|
1126
|
+
# @return [XxeThreatDetectionResult]
|
1127
|
+
def validate_document_xml_xxe_threat_validation(input_file, opts = {})
|
1128
|
+
data, _status_code, _headers = validate_document_xml_xxe_threat_validation_with_http_info(input_file, opts)
|
1129
|
+
data
|
1130
|
+
end
|
1131
|
+
|
1132
|
+
# Validate an XML file for XML External Entity (XXE) threats
|
1133
|
+
# Validate an XML document file for XML External Entity (XXE) threats; if the document is not valid, identifies the errors in the document. XXE threats are a type of threat that exploits vulnerabilities in the XML standard relating to external or local entity URIs in XML documents.
|
1134
|
+
# @param input_file Input file to perform the operation on.
|
1135
|
+
# @param [Hash] opts the optional parameters
|
1136
|
+
# @return [Array<(XxeThreatDetectionResult, Fixnum, Hash)>] XxeThreatDetectionResult data, response status code and response headers
|
1137
|
+
def validate_document_xml_xxe_threat_validation_with_http_info(input_file, opts = {})
|
1138
|
+
if @api_client.config.debugging
|
1139
|
+
@api_client.config.logger.debug 'Calling API: ValidateDocumentApi.validate_document_xml_xxe_threat_validation ...'
|
1140
|
+
end
|
1141
|
+
# verify the required parameter 'input_file' is set
|
1142
|
+
if @api_client.config.client_side_validation && input_file.nil?
|
1143
|
+
fail ArgumentError, "Missing the required parameter 'input_file' when calling ValidateDocumentApi.validate_document_xml_xxe_threat_validation"
|
1144
|
+
end
|
1145
|
+
# resource path
|
1146
|
+
local_var_path = '/convert/validate/xml/xxe-threats'
|
1147
|
+
|
1148
|
+
# query parameters
|
1149
|
+
query_params = {}
|
1150
|
+
|
1151
|
+
# header parameters
|
1152
|
+
header_params = {}
|
1153
|
+
# HTTP header 'Accept' (if needed)
|
1154
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
|
1155
|
+
# HTTP header 'Content-Type'
|
1156
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
|
1157
|
+
|
1158
|
+
# form parameters
|
1159
|
+
form_params = {}
|
1160
|
+
form_params['inputFile'] = input_file
|
1161
|
+
|
1162
|
+
# http body (model)
|
1163
|
+
post_body = nil
|
1164
|
+
auth_names = ['Apikey']
|
1165
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
1166
|
+
:header_params => header_params,
|
1167
|
+
:query_params => query_params,
|
1168
|
+
:form_params => form_params,
|
1169
|
+
:body => post_body,
|
1170
|
+
:auth_names => auth_names,
|
1171
|
+
:return_type => 'XxeThreatDetectionResult')
|
1172
|
+
if @api_client.config.debugging
|
1173
|
+
@api_client.config.logger.debug "API called: ValidateDocumentApi#validate_document_xml_xxe_threat_validation\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1174
|
+
end
|
1175
|
+
return data, status_code, headers
|
1176
|
+
end
|
957
1177
|
# Validate a Zip Archive file (zip)
|
958
1178
|
# Validate a Zip archive file (ZIP)
|
959
1179
|
# @param input_file Input file to perform the operation on.
|
@@ -247,6 +247,52 @@ module CloudmersiveConvertApiClient
|
|
247
247
|
end
|
248
248
|
return data, status_code, headers
|
249
249
|
end
|
250
|
+
# Create an encrypted zip file to quarantine a dangerous file
|
251
|
+
# Create a new zip archive by compressing input files, and also applies encryption and password protection to the zip, for the purposes of quarantining the underlyikng file.
|
252
|
+
# @param [Hash] opts the optional parameters
|
253
|
+
# @return [Object]
|
254
|
+
def zip_archive_zip_create_quarantine(opts = {})
|
255
|
+
data, _status_code, _headers = zip_archive_zip_create_quarantine_with_http_info(opts)
|
256
|
+
data
|
257
|
+
end
|
258
|
+
|
259
|
+
# Create an encrypted zip file to quarantine a dangerous file
|
260
|
+
# Create a new zip archive by compressing input files, and also applies encryption and password protection to the zip, for the purposes of quarantining the underlyikng file.
|
261
|
+
# @param [Hash] opts the optional parameters
|
262
|
+
# @return [Array<(Object, Fixnum, Hash)>] Object data, response status code and response headers
|
263
|
+
def zip_archive_zip_create_quarantine_with_http_info(opts = {})
|
264
|
+
if @api_client.config.debugging
|
265
|
+
@api_client.config.logger.debug 'Calling API: ZipArchiveApi.zip_archive_zip_create_quarantine ...'
|
266
|
+
end
|
267
|
+
# resource path
|
268
|
+
local_var_path = '/convert/archive/zip/create/quarantine'
|
269
|
+
|
270
|
+
# query parameters
|
271
|
+
query_params = {}
|
272
|
+
|
273
|
+
# header parameters
|
274
|
+
header_params = {}
|
275
|
+
# HTTP header 'Accept' (if needed)
|
276
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/octet-stream'])
|
277
|
+
|
278
|
+
# form parameters
|
279
|
+
form_params = {}
|
280
|
+
|
281
|
+
# http body (model)
|
282
|
+
post_body = nil
|
283
|
+
auth_names = ['Apikey']
|
284
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path,
|
285
|
+
:header_params => header_params,
|
286
|
+
:query_params => query_params,
|
287
|
+
:form_params => form_params,
|
288
|
+
:body => post_body,
|
289
|
+
:auth_names => auth_names,
|
290
|
+
:return_type => 'Object')
|
291
|
+
if @api_client.config.debugging
|
292
|
+
@api_client.config.logger.debug "API called: ZipArchiveApi#zip_archive_zip_create_quarantine\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
293
|
+
end
|
294
|
+
return data, status_code, headers
|
295
|
+
end
|
250
296
|
# Decrypt and remove password protection on a zip file
|
251
297
|
# Decrypts and removes password protection from an encrypted zip file with the specified password
|
252
298
|
# @param input_file Input file to perform the operation on.
|