cloudmersive-convert-api-client 2.1.5 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +21 -4
  3. data/docs/EditDocumentApi.md +165 -0
  4. data/docs/EditHtmlApi.md +418 -0
  5. data/docs/EditPdfApi.md +6 -2
  6. data/docs/GetMacrosResponse.md +9 -0
  7. data/docs/HtmlGetLanguageResult.md +9 -0
  8. data/docs/HtmlGetRelCanonicalUrlResult.md +9 -0
  9. data/docs/HtmlGetSitemapUrlResult.md +9 -0
  10. data/docs/MergeDocumentApi.md +2 -2
  11. data/docs/ValidateDocumentApi.md +55 -0
  12. data/docs/XxeThreatDetectionResult.md +9 -0
  13. data/docs/ZipArchiveApi.md +62 -0
  14. data/lib/cloudmersive-convert-api-client.rb +5 -0
  15. data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +165 -0
  16. data/lib/cloudmersive-convert-api-client/api/edit_html_api.rb +392 -0
  17. data/lib/cloudmersive-convert-api-client/api/edit_pdf_api.rb +3 -0
  18. data/lib/cloudmersive-convert-api-client/api/merge_document_api.rb +3 -3
  19. data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +55 -0
  20. data/lib/cloudmersive-convert-api-client/api/zip_archive_api.rb +63 -0
  21. data/lib/cloudmersive-convert-api-client/models/get_macros_response.rb +196 -0
  22. data/lib/cloudmersive-convert-api-client/models/html_get_language_result.rb +196 -0
  23. data/lib/cloudmersive-convert-api-client/models/html_get_rel_canonical_url_result.rb +196 -0
  24. data/lib/cloudmersive-convert-api-client/models/html_get_sitemap_url_result.rb +196 -0
  25. data/lib/cloudmersive-convert-api-client/models/xxe_threat_detection_result.rb +196 -0
  26. data/lib/cloudmersive-convert-api-client/version.rb +1 -1
  27. data/spec/api/edit_document_api_spec.rb +36 -0
  28. data/spec/api/edit_html_api_spec.rb +95 -0
  29. data/spec/api/edit_pdf_api_spec.rb +1 -0
  30. data/spec/api/merge_document_api_spec.rb +1 -1
  31. data/spec/api/validate_document_api_spec.rb +12 -0
  32. data/spec/api/zip_archive_api_spec.rb +14 -0
  33. data/spec/models/get_macros_response_spec.rb +47 -0
  34. data/spec/models/html_get_language_result_spec.rb +47 -0
  35. data/spec/models/html_get_rel_canonical_url_result_spec.rb +47 -0
  36. data/spec/models/html_get_sitemap_url_result_spec.rb +47 -0
  37. data/spec/models/xxe_threat_detection_result_spec.rb +47 -0
  38. metadata +17 -2
data/docs/EditPdfApi.md CHANGED
@@ -714,7 +714,7 @@ Name | Type | Description | Notes
714
714
 
715
715
 
716
716
  # **edit_pdf_reduce_file_size**
717
- > String edit_pdf_reduce_file_size(input_file)
717
+ > String edit_pdf_reduce_file_size(input_file, opts)
718
718
 
719
719
  Reduce the file size and optimize a PDF
720
720
 
@@ -736,10 +736,13 @@ api_instance = CloudmersiveConvertApiClient::EditPdfApi.new
736
736
 
737
737
  input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
738
738
 
739
+ opts = {
740
+ quality: 8.14 # Float | Quality level for the images in the PDF, ranging from 0.0 (low quality) to 1.0 (high quality); default is 0.3
741
+ }
739
742
 
740
743
  begin
741
744
  #Reduce the file size and optimize a PDF
742
- result = api_instance.edit_pdf_reduce_file_size(input_file)
745
+ result = api_instance.edit_pdf_reduce_file_size(input_file, opts)
743
746
  p result
744
747
  rescue CloudmersiveConvertApiClient::ApiError => e
745
748
  puts "Exception when calling EditPdfApi->edit_pdf_reduce_file_size: #{e}"
@@ -751,6 +754,7 @@ end
751
754
  Name | Type | Description | Notes
752
755
  ------------- | ------------- | ------------- | -------------
753
756
  **input_file** | **File**| Input file to perform the operation on. |
757
+ **quality** | **Float**| Quality level for the images in the PDF, ranging from 0.0 (low quality) to 1.0 (high quality); default is 0.3 | [optional]
754
758
 
755
759
  ### Return type
756
760
 
@@ -0,0 +1,9 @@
1
+ # CloudmersiveConvertApiClient::GetMacrosResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if successful, false otherwise | [optional]
7
+ **contains_vba_macros** | **BOOLEAN** | True if the document contains VBA macros, false otherwise | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveConvertApiClient::HtmlGetLanguageResult
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
7
+ **language_code** | **String** | HTML language code of the HTML document, e.g. \"en\" or \"de\" | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveConvertApiClient::HtmlGetRelCanonicalUrlResult
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
7
+ **canonical_url** | **String** | HTML canonical URL if present | [optional]
8
+
9
+
@@ -0,0 +1,9 @@
1
+ # CloudmersiveConvertApiClient::HtmlGetSitemapUrlResult
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
7
+ **canonical_url** | **String** | HTML sitemap URL if present | [optional]
8
+
9
+
@@ -153,7 +153,7 @@ Name | Type | Description | Notes
153
153
 
154
154
 
155
155
  # **merge_document_html**
156
- > Object merge_document_html(input_file1, input_file2)
156
+ > String merge_document_html(input_file1, input_file2)
157
157
 
158
158
  Merge Two HTML (HTM) Files Together
159
159
 
@@ -196,7 +196,7 @@ Name | Type | Description | Notes
196
196
 
197
197
  ### Return type
198
198
 
199
- **Object**
199
+ **String**
200
200
 
201
201
  ### Authorization
202
202
 
@@ -24,6 +24,7 @@ Method | HTTP request | Description
24
24
  [**validate_document_txt_validation**](ValidateDocumentApi.md#validate_document_txt_validation) | **POST** /convert/validate/txt | Validate an TXT file
25
25
  [**validate_document_xlsx_validation**](ValidateDocumentApi.md#validate_document_xlsx_validation) | **POST** /convert/validate/xlsx | Validate a Excel document (XLSX)
26
26
  [**validate_document_xml_validation**](ValidateDocumentApi.md#validate_document_xml_validation) | **POST** /convert/validate/xml | Validate an XML file
27
+ [**validate_document_xml_xxe_threat_validation**](ValidateDocumentApi.md#validate_document_xml_xxe_threat_validation) | **POST** /convert/validate/xml/xxe-threats | Validate an XML file for XML External Entity (XXE) threats
27
28
  [**validate_document_zip_validation**](ValidateDocumentApi.md#validate_document_zip_validation) | **POST** /convert/validate/zip | Validate a Zip Archive file (zip)
28
29
 
29
30
 
@@ -1107,6 +1108,60 @@ Name | Type | Description | Notes
1107
1108
 
1108
1109
 
1109
1110
 
1111
+ # **validate_document_xml_xxe_threat_validation**
1112
+ > XxeThreatDetectionResult validate_document_xml_xxe_threat_validation(input_file)
1113
+
1114
+ Validate an XML file for XML External Entity (XXE) threats
1115
+
1116
+ 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.
1117
+
1118
+ ### Example
1119
+ ```ruby
1120
+ # load the gem
1121
+ require 'cloudmersive-convert-api-client'
1122
+ # setup authorization
1123
+ CloudmersiveConvertApiClient.configure do |config|
1124
+ # Configure API key authorization: Apikey
1125
+ config.api_key['Apikey'] = 'YOUR API KEY'
1126
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
1127
+ #config.api_key_prefix['Apikey'] = 'Bearer'
1128
+ end
1129
+
1130
+ api_instance = CloudmersiveConvertApiClient::ValidateDocumentApi.new
1131
+
1132
+ input_file = File.new('/path/to/file.txt') # File | Input file to perform the operation on.
1133
+
1134
+
1135
+ begin
1136
+ #Validate an XML file for XML External Entity (XXE) threats
1137
+ result = api_instance.validate_document_xml_xxe_threat_validation(input_file)
1138
+ p result
1139
+ rescue CloudmersiveConvertApiClient::ApiError => e
1140
+ puts "Exception when calling ValidateDocumentApi->validate_document_xml_xxe_threat_validation: #{e}"
1141
+ end
1142
+ ```
1143
+
1144
+ ### Parameters
1145
+
1146
+ Name | Type | Description | Notes
1147
+ ------------- | ------------- | ------------- | -------------
1148
+ **input_file** | **File**| Input file to perform the operation on. |
1149
+
1150
+ ### Return type
1151
+
1152
+ [**XxeThreatDetectionResult**](XxeThreatDetectionResult.md)
1153
+
1154
+ ### Authorization
1155
+
1156
+ [Apikey](../README.md#Apikey)
1157
+
1158
+ ### HTTP request headers
1159
+
1160
+ - **Content-Type**: multipart/form-data
1161
+ - **Accept**: application/json, text/json, application/xml, text/xml
1162
+
1163
+
1164
+
1110
1165
  # **validate_document_zip_validation**
1111
1166
  > DocumentValidationResult validate_document_zip_validation(input_file)
1112
1167
 
@@ -0,0 +1,9 @@
1
+ # CloudmersiveConvertApiClient::XxeThreatDetectionResult
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **successful** | **BOOLEAN** | True if the operation was successful, false otherwise | [optional]
7
+ **contains_xxe_threat** | **BOOLEAN** | True if the XML input contains XXE threats, false otherwise | [optional]
8
+
9
+
@@ -7,6 +7,7 @@ Method | HTTP request | Description
7
7
  [**zip_archive_zip_create**](ZipArchiveApi.md#zip_archive_zip_create) | **POST** /convert/archive/zip/create | Compress files to create a new zip archive
8
8
  [**zip_archive_zip_create_advanced**](ZipArchiveApi.md#zip_archive_zip_create_advanced) | **POST** /convert/archive/zip/create/advanced | Compress files and folders to create a new zip archive with advanced options
9
9
  [**zip_archive_zip_create_encrypted**](ZipArchiveApi.md#zip_archive_zip_create_encrypted) | **POST** /convert/archive/zip/create/encrypted | Compress files to create a new, encrypted and password-protected zip archive
10
+ [**zip_archive_zip_create_quarantine**](ZipArchiveApi.md#zip_archive_zip_create_quarantine) | **POST** /convert/archive/zip/create/quarantine | Create an encrypted zip file to quarantine a dangerous file
10
11
  [**zip_archive_zip_decrypt**](ZipArchiveApi.md#zip_archive_zip_decrypt) | **POST** /convert/archive/zip/decrypt | Decrypt and remove password protection on a zip file
11
12
  [**zip_archive_zip_encrypt_advanced**](ZipArchiveApi.md#zip_archive_zip_encrypt_advanced) | **POST** /convert/archive/zip/encrypt/advanced | Encrypt and password protect a zip file
12
13
  [**zip_archive_zip_extract**](ZipArchiveApi.md#zip_archive_zip_extract) | **POST** /convert/archive/zip/extract | Extract, decompress files and folders from a zip archive
@@ -219,6 +220,67 @@ Name | Type | Description | Notes
219
220
 
220
221
 
221
222
 
223
+ # **zip_archive_zip_create_quarantine**
224
+ > Object zip_archive_zip_create_quarantine(password, input_file1, opts)
225
+
226
+ Create an encrypted zip file to quarantine a dangerous file
227
+
228
+ 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.
229
+
230
+ ### Example
231
+ ```ruby
232
+ # load the gem
233
+ require 'cloudmersive-convert-api-client'
234
+ # setup authorization
235
+ CloudmersiveConvertApiClient.configure do |config|
236
+ # Configure API key authorization: Apikey
237
+ config.api_key['Apikey'] = 'YOUR API KEY'
238
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
239
+ #config.api_key_prefix['Apikey'] = 'Bearer'
240
+ end
241
+
242
+ api_instance = CloudmersiveConvertApiClient::ZipArchiveApi.new
243
+
244
+ password = 'password_example' # String | Password to place on the Zip file; the longer the password, the more secure
245
+
246
+ input_file1 = File.new('/path/to/file.txt') # File | First input file to perform the operation on.
247
+
248
+ opts = {
249
+ encryption_algorithm: 'encryption_algorithm_example' # String | Encryption algorithm to use; possible values are AES-256 (recommended), AES-128, and PK-Zip (not recommended; legacy, weak encryption algorithm). Default is AES-256.
250
+ }
251
+
252
+ begin
253
+ #Create an encrypted zip file to quarantine a dangerous file
254
+ result = api_instance.zip_archive_zip_create_quarantine(password, input_file1, opts)
255
+ p result
256
+ rescue CloudmersiveConvertApiClient::ApiError => e
257
+ puts "Exception when calling ZipArchiveApi->zip_archive_zip_create_quarantine: #{e}"
258
+ end
259
+ ```
260
+
261
+ ### Parameters
262
+
263
+ Name | Type | Description | Notes
264
+ ------------- | ------------- | ------------- | -------------
265
+ **password** | **String**| Password to place on the Zip file; the longer the password, the more secure |
266
+ **input_file1** | **File**| First input file to perform the operation on. |
267
+ **encryption_algorithm** | **String**| Encryption algorithm to use; possible values are AES-256 (recommended), AES-128, and PK-Zip (not recommended; legacy, weak encryption algorithm). Default is AES-256. | [optional]
268
+
269
+ ### Return type
270
+
271
+ **Object**
272
+
273
+ ### Authorization
274
+
275
+ [Apikey](../README.md#Apikey)
276
+
277
+ ### HTTP request headers
278
+
279
+ - **Content-Type**: Not defined
280
+ - **Accept**: application/octet-stream
281
+
282
+
283
+
222
284
  # **zip_archive_zip_decrypt**
223
285
  > Object zip_archive_zip_decrypt(input_file, zip_password)
224
286
 
@@ -130,6 +130,7 @@ require 'cloudmersive-convert-api-client/models/get_docx_tables_request'
130
130
  require 'cloudmersive-convert-api-client/models/get_docx_tables_response'
131
131
  require 'cloudmersive-convert-api-client/models/get_file_type_icon_result'
132
132
  require 'cloudmersive-convert-api-client/models/get_image_info_result'
133
+ require 'cloudmersive-convert-api-client/models/get_macros_response'
133
134
  require 'cloudmersive-convert-api-client/models/get_pdf_annotations_result'
134
135
  require 'cloudmersive-convert-api-client/models/get_xlsx_cell_by_identifier_request'
135
136
  require 'cloudmersive-convert-api-client/models/get_xlsx_cell_by_identifier_response'
@@ -147,7 +148,10 @@ require 'cloudmersive-convert-api-client/models/get_xlsx_styles_request'
147
148
  require 'cloudmersive-convert-api-client/models/get_xlsx_styles_response'
148
149
  require 'cloudmersive-convert-api-client/models/get_xlsx_worksheets_request'
149
150
  require 'cloudmersive-convert-api-client/models/get_xlsx_worksheets_response'
151
+ require 'cloudmersive-convert-api-client/models/html_get_language_result'
150
152
  require 'cloudmersive-convert-api-client/models/html_get_links_response'
153
+ require 'cloudmersive-convert-api-client/models/html_get_rel_canonical_url_result'
154
+ require 'cloudmersive-convert-api-client/models/html_get_sitemap_url_result'
151
155
  require 'cloudmersive-convert-api-client/models/html_hyperlink'
152
156
  require 'cloudmersive-convert-api-client/models/html_md_result'
153
157
  require 'cloudmersive-convert-api-client/models/html_ssrf_threat_check_result'
@@ -260,6 +264,7 @@ require 'cloudmersive-convert-api-client/models/xml_remove_all_children_with_x_p
260
264
  require 'cloudmersive-convert-api-client/models/xml_remove_with_x_path_result'
261
265
  require 'cloudmersive-convert-api-client/models/xml_replace_with_x_path_result'
262
266
  require 'cloudmersive-convert-api-client/models/xml_set_value_with_x_path_result'
267
+ require 'cloudmersive-convert-api-client/models/xxe_threat_detection_result'
263
268
  require 'cloudmersive-convert-api-client/models/zip_directory'
264
269
  require 'cloudmersive-convert-api-client/models/zip_encryption_advanced_request'
265
270
  require 'cloudmersive-convert-api-client/models/zip_extract_response'
@@ -779,6 +779,61 @@ module CloudmersiveConvertApiClient
779
779
  end
780
780
  return data, status_code, headers
781
781
  end
782
+ # Get macro information from a Word DOCX/DOCM document
783
+ # Returns information about the Macros (e.g. VBA) defined in the Word Document
784
+ # @param input_file Input file to perform the operation on.
785
+ # @param [Hash] opts the optional parameters
786
+ # @return [GetMacrosResponse]
787
+ def edit_document_docx_get_macro_information(input_file, opts = {})
788
+ data, _status_code, _headers = edit_document_docx_get_macro_information_with_http_info(input_file, opts)
789
+ data
790
+ end
791
+
792
+ # Get macro information from a Word DOCX/DOCM document
793
+ # Returns information about the Macros (e.g. VBA) defined in the Word Document
794
+ # @param input_file Input file to perform the operation on.
795
+ # @param [Hash] opts the optional parameters
796
+ # @return [Array<(GetMacrosResponse, Fixnum, Hash)>] GetMacrosResponse data, response status code and response headers
797
+ def edit_document_docx_get_macro_information_with_http_info(input_file, opts = {})
798
+ if @api_client.config.debugging
799
+ @api_client.config.logger.debug 'Calling API: EditDocumentApi.edit_document_docx_get_macro_information ...'
800
+ end
801
+ # verify the required parameter 'input_file' is set
802
+ if @api_client.config.client_side_validation && input_file.nil?
803
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditDocumentApi.edit_document_docx_get_macro_information"
804
+ end
805
+ # resource path
806
+ local_var_path = '/convert/edit/docx/get-macros'
807
+
808
+ # query parameters
809
+ query_params = {}
810
+
811
+ # header parameters
812
+ header_params = {}
813
+ # HTTP header 'Accept' (if needed)
814
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
815
+ # HTTP header 'Content-Type'
816
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
817
+
818
+ # form parameters
819
+ form_params = {}
820
+ form_params['inputFile'] = input_file
821
+
822
+ # http body (model)
823
+ post_body = nil
824
+ auth_names = ['Apikey']
825
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
826
+ :header_params => header_params,
827
+ :query_params => query_params,
828
+ :form_params => form_params,
829
+ :body => post_body,
830
+ :auth_names => auth_names,
831
+ :return_type => 'GetMacrosResponse')
832
+ if @api_client.config.debugging
833
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_docx_get_macro_information\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
834
+ end
835
+ return data, status_code, headers
836
+ end
782
837
  # Get all metadata properties in Word DOCX document
783
838
  # Returns all the metadata properties in an Office Word Document (docx)
784
839
  # @param input_file Input file to perform the operation on.
@@ -2185,6 +2240,61 @@ module CloudmersiveConvertApiClient
2185
2240
  end
2186
2241
  return data, status_code, headers
2187
2242
  end
2243
+ # Get macro information from a PowerPoint PPTX/PPTM presentation document
2244
+ # Returns information about the Macros (e.g. VBA) defined in the PowerPoint Document
2245
+ # @param input_file Input file to perform the operation on.
2246
+ # @param [Hash] opts the optional parameters
2247
+ # @return [GetMacrosResponse]
2248
+ def edit_document_pptx_get_macro_information(input_file, opts = {})
2249
+ data, _status_code, _headers = edit_document_pptx_get_macro_information_with_http_info(input_file, opts)
2250
+ data
2251
+ end
2252
+
2253
+ # Get macro information from a PowerPoint PPTX/PPTM presentation document
2254
+ # Returns information about the Macros (e.g. VBA) defined in the PowerPoint Document
2255
+ # @param input_file Input file to perform the operation on.
2256
+ # @param [Hash] opts the optional parameters
2257
+ # @return [Array<(GetMacrosResponse, Fixnum, Hash)>] GetMacrosResponse data, response status code and response headers
2258
+ def edit_document_pptx_get_macro_information_with_http_info(input_file, opts = {})
2259
+ if @api_client.config.debugging
2260
+ @api_client.config.logger.debug 'Calling API: EditDocumentApi.edit_document_pptx_get_macro_information ...'
2261
+ end
2262
+ # verify the required parameter 'input_file' is set
2263
+ if @api_client.config.client_side_validation && input_file.nil?
2264
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditDocumentApi.edit_document_pptx_get_macro_information"
2265
+ end
2266
+ # resource path
2267
+ local_var_path = '/convert/edit/pptx/get-macros'
2268
+
2269
+ # query parameters
2270
+ query_params = {}
2271
+
2272
+ # header parameters
2273
+ header_params = {}
2274
+ # HTTP header 'Accept' (if needed)
2275
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
2276
+ # HTTP header 'Content-Type'
2277
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
2278
+
2279
+ # form parameters
2280
+ form_params = {}
2281
+ form_params['inputFile'] = input_file
2282
+
2283
+ # http body (model)
2284
+ post_body = nil
2285
+ auth_names = ['Apikey']
2286
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
2287
+ :header_params => header_params,
2288
+ :query_params => query_params,
2289
+ :form_params => form_params,
2290
+ :body => post_body,
2291
+ :auth_names => auth_names,
2292
+ :return_type => 'GetMacrosResponse')
2293
+ if @api_client.config.debugging
2294
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_pptx_get_macro_information\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
2295
+ end
2296
+ return data, status_code, headers
2297
+ end
2188
2298
  # Replace string in PowerPoint PPTX presentation
2189
2299
  # Replace all instances of a string in an Office PowerPoint Document (pptx)
2190
2300
  # @param req_config Replacement document configuration input
@@ -2887,6 +2997,61 @@ module CloudmersiveConvertApiClient
2887
2997
  end
2888
2998
  return data, status_code, headers
2889
2999
  end
3000
+ # Get macro information from a Excel XLSX/XLSM spreadsheet, worksheet
3001
+ # Returns information about the Macros (e.g. VBA) defined in the Excel Spreadsheet
3002
+ # @param input_file Input file to perform the operation on.
3003
+ # @param [Hash] opts the optional parameters
3004
+ # @return [GetMacrosResponse]
3005
+ def edit_document_xlsx_get_macro_information(input_file, opts = {})
3006
+ data, _status_code, _headers = edit_document_xlsx_get_macro_information_with_http_info(input_file, opts)
3007
+ data
3008
+ end
3009
+
3010
+ # Get macro information from a Excel XLSX/XLSM spreadsheet, worksheet
3011
+ # Returns information about the Macros (e.g. VBA) defined in the Excel Spreadsheet
3012
+ # @param input_file Input file to perform the operation on.
3013
+ # @param [Hash] opts the optional parameters
3014
+ # @return [Array<(GetMacrosResponse, Fixnum, Hash)>] GetMacrosResponse data, response status code and response headers
3015
+ def edit_document_xlsx_get_macro_information_with_http_info(input_file, opts = {})
3016
+ if @api_client.config.debugging
3017
+ @api_client.config.logger.debug 'Calling API: EditDocumentApi.edit_document_xlsx_get_macro_information ...'
3018
+ end
3019
+ # verify the required parameter 'input_file' is set
3020
+ if @api_client.config.client_side_validation && input_file.nil?
3021
+ fail ArgumentError, "Missing the required parameter 'input_file' when calling EditDocumentApi.edit_document_xlsx_get_macro_information"
3022
+ end
3023
+ # resource path
3024
+ local_var_path = '/convert/edit/xlsx/get-macros'
3025
+
3026
+ # query parameters
3027
+ query_params = {}
3028
+
3029
+ # header parameters
3030
+ header_params = {}
3031
+ # HTTP header 'Accept' (if needed)
3032
+ header_params['Accept'] = @api_client.select_header_accept(['application/json', 'text/json', 'application/xml', 'text/xml'])
3033
+ # HTTP header 'Content-Type'
3034
+ header_params['Content-Type'] = @api_client.select_header_content_type(['multipart/form-data'])
3035
+
3036
+ # form parameters
3037
+ form_params = {}
3038
+ form_params['inputFile'] = input_file
3039
+
3040
+ # http body (model)
3041
+ post_body = nil
3042
+ auth_names = ['Apikey']
3043
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
3044
+ :header_params => header_params,
3045
+ :query_params => query_params,
3046
+ :form_params => form_params,
3047
+ :body => post_body,
3048
+ :auth_names => auth_names,
3049
+ :return_type => 'GetMacrosResponse')
3050
+ if @api_client.config.debugging
3051
+ @api_client.config.logger.debug "API called: EditDocumentApi#edit_document_xlsx_get_macro_information\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
3052
+ end
3053
+ return data, status_code, headers
3054
+ end
2890
3055
  # Get rows and cells from a Excel XLSX spreadsheet, worksheet
2891
3056
  # Returns the rows and cells defined in the Excel Spreadsheet worksheet
2892
3057
  # @param input Document input request