cloudmersive-convert-api-client 1.7.6 → 1.7.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 +27 -4
- data/docs/AutodetectToThumbnailsResult.md +9 -0
- data/docs/ConvertDocumentApi.md +742 -91
- data/docs/DocxToPngResult.md +9 -0
- data/docs/EmlAttachment.md +9 -0
- data/docs/EmlToHtmlResult.md +18 -0
- data/docs/GetFileTypeIconResult.md +10 -0
- data/docs/MsgAttachment.md +9 -0
- data/docs/MsgToHtmlResult.md +16 -0
- data/docs/PptxToPngResult.md +9 -0
- data/docs/Thumbnail.md +9 -0
- data/docs/ValidateDocumentApi.md +110 -0
- data/docs/XlsxToPngResult.md +9 -0
- data/lib/cloudmersive-convert-api-client.rb +10 -0
- data/lib/cloudmersive-convert-api-client/api/convert_document_api.rb +657 -0
- data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +112 -0
- data/lib/cloudmersive-convert-api-client/models/autodetect_to_thumbnails_result.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/docx_to_png_result.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/eml_attachment.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/eml_to_html_result.rb +291 -0
- data/lib/cloudmersive-convert-api-client/models/get_file_type_icon_result.rb +225 -0
- data/lib/cloudmersive-convert-api-client/models/msg_attachment.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/msg_to_html_result.rb +271 -0
- data/lib/cloudmersive-convert-api-client/models/pptx_to_png_result.rb +201 -0
- data/lib/cloudmersive-convert-api-client/models/thumbnail.rb +215 -0
- data/lib/cloudmersive-convert-api-client/models/xlsx_to_png_result.rb +201 -0
- data/lib/cloudmersive-convert-api-client/version.rb +1 -1
- data/spec/api/convert_document_api_spec.rb +147 -0
- data/spec/api/validate_document_api_spec.rb +24 -0
- data/spec/models/autodetect_to_thumbnails_result_spec.rb +48 -0
- data/spec/models/docx_to_png_result_spec.rb +48 -0
- data/spec/models/eml_attachment_spec.rb +48 -0
- data/spec/models/eml_to_html_result_spec.rb +102 -0
- data/spec/models/get_file_type_icon_result_spec.rb +54 -0
- data/spec/models/msg_attachment_spec.rb +48 -0
- data/spec/models/msg_to_html_result_spec.rb +90 -0
- data/spec/models/pptx_to_png_result_spec.rb +48 -0
- data/spec/models/thumbnail_spec.rb +48 -0
- data/spec/models/xlsx_to_png_result_spec.rb +48 -0
- metadata +32 -2
@@ -68,6 +68,37 @@ describe 'ConvertDocumentApi' do
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
+
# unit tests for convert_document_autodetect_to_thumbnail
|
72
|
+
# Convert File to Thumbnail Image
|
73
|
+
# Automatically detect file type and convert it to a PNG thumbnail. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, and even multi-page TIFF files. Returns a generic PNG thumbnail for unsupported formats.
|
74
|
+
# @param input_file Input file to perform the operation on.
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @option opts [Integer] :max_width Optional; Maximum width of the output thumbnail - final image will be as large as possible while less than or equal to this width. Default is 128.
|
77
|
+
# @option opts [Integer] :max_height Optional; Maximum height of the output thumbnail - final image will be as large as possible while less than or equal to this width. Default is 128.
|
78
|
+
# @option opts [String] :extension Optional; Specify the file extension of the inputFile. This will improve the response time in most cases. Also allows unsupported files without extensions to still return a corresponding generic icon.
|
79
|
+
# @return [Object]
|
80
|
+
describe 'convert_document_autodetect_to_thumbnail test' do
|
81
|
+
it "should work" do
|
82
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# unit tests for convert_document_autodetect_to_thumbnails_advanced
|
87
|
+
# Convert File to Thumbnail Image Object
|
88
|
+
# Automatically detect file type and convert it to an array of PNG thumbnails, returned as an object. May specify the number of pages for multiple thumbnails; default is one thumbnail. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT), over 100 image formats, HTML files, and even multi-page TIFF files. Returns a generic PNG thumbnail for unsupported formats.
|
89
|
+
# @param input_file Input file to perform the operation on.
|
90
|
+
# @param [Hash] opts the optional parameters
|
91
|
+
# @option opts [Integer] :pages Optional; Specify how many pages of the document will be converted to thumbnails. Default is 1 page.
|
92
|
+
# @option opts [Integer] :max_width Optional; Maximum width of the output thumbnail - final image will be as large as possible while less than or equal to this width. Default is 128.
|
93
|
+
# @option opts [Integer] :max_height Optional; Maximum height of the output thumbnail - final image will be as large as possible while less than or equal to this width. Default is 128.
|
94
|
+
# @option opts [String] :extension Optional; Specify the file extension of the inputFile. This will improve the response time in most cases. Also allows unsupported files without extensions to still return a corresponding generic icon.
|
95
|
+
# @return [AutodetectToThumbnailsResult]
|
96
|
+
describe 'convert_document_autodetect_to_thumbnails_advanced test' do
|
97
|
+
it "should work" do
|
98
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
71
102
|
# unit tests for convert_document_autodetect_to_txt
|
72
103
|
# Convert Document to Text (txt)
|
73
104
|
# Automatically detect file type and convert it to Text. Supports all of the major Office document file formats including Word (DOCX, DOC), Excel (XLSX, XLS), PowerPoint (PPTX, PPT) and PDF files. For spreadsheets, all worksheets will be included. If you wish to exclude certain pages, worksheets, slides, etc. use the Split document API first, or the delete pages/slides/worksheet APIs first to adjust the document to the target state prior to converting to text.
|
@@ -141,6 +172,18 @@ describe 'ConvertDocumentApi' do
|
|
141
172
|
end
|
142
173
|
end
|
143
174
|
|
175
|
+
# unit tests for convert_document_docx_to_png
|
176
|
+
# Convert DOCX document to PNG image array
|
177
|
+
# Converts an Office Word Document (DOCX) file to an array of PNG images, one for each page.
|
178
|
+
# @param input_file Input file to perform the operation on.
|
179
|
+
# @param [Hash] opts the optional parameters
|
180
|
+
# @return [DocxToPngResult]
|
181
|
+
describe 'convert_document_docx_to_png test' do
|
182
|
+
it "should work" do
|
183
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
184
|
+
end
|
185
|
+
end
|
186
|
+
|
144
187
|
# unit tests for convert_document_docx_to_txt
|
145
188
|
# Convert Word DOCX Document to Text (txt)
|
146
189
|
# Convert Office Word Documents (docx) to text
|
@@ -154,6 +197,59 @@ describe 'ConvertDocumentApi' do
|
|
154
197
|
end
|
155
198
|
end
|
156
199
|
|
200
|
+
# unit tests for convert_document_eml_to_html
|
201
|
+
# Convert Email EML file to HTML string
|
202
|
+
# Convert Outlook Email EML file to HTML string and attachments. Supports images if they are base 64 inline.
|
203
|
+
# @param input_file Input file to perform the operation on.
|
204
|
+
# @param [Hash] opts the optional parameters
|
205
|
+
# @option opts [BOOLEAN] :body_only Optional; If true, the HTML string will only include the body of the email. Other information such as subject will still be given as properties in the response object. Default is false.
|
206
|
+
# @option opts [BOOLEAN] :include_attachments Optional; If false, the response object will not include any attachment files from the input file. Default is true.
|
207
|
+
# @return [EmlToHtmlResult]
|
208
|
+
describe 'convert_document_eml_to_html test' do
|
209
|
+
it "should work" do
|
210
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
# unit tests for convert_document_eml_to_pdf
|
215
|
+
# Convert Email EML file to PDF document
|
216
|
+
# Convert Outlook Email EML file to PDF document. Supports images if they are base 64 inline.
|
217
|
+
# @param input_file Input file to perform the operation on.
|
218
|
+
# @param [Hash] opts the optional parameters
|
219
|
+
# @option opts [BOOLEAN] :body_only Optional; If true, the HTML string will only include the body of the email. Other information such as subject will still be given as properties in the response object. Default is false.
|
220
|
+
# @return [Object]
|
221
|
+
describe 'convert_document_eml_to_pdf test' do
|
222
|
+
it "should work" do
|
223
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
# unit tests for convert_document_get_file_type_icon
|
228
|
+
# Get PNG icon file for the file extension
|
229
|
+
# Returns a PNG icon for the given file format extension as a file for download. User may specify the icon size. Supports over 100 file formats, with a generic icon for unsupported formats.
|
230
|
+
# @param file_extension Required; The file extension to be used for the icon. Limited to 4 AlphaNumeric characters.
|
231
|
+
# @param [Hash] opts the optional parameters
|
232
|
+
# @option opts [Integer] :icon_size Optional; The desired width of the icon, preserving its aspect ratio.
|
233
|
+
# @return [Object]
|
234
|
+
describe 'convert_document_get_file_type_icon test' do
|
235
|
+
it "should work" do
|
236
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
237
|
+
end
|
238
|
+
end
|
239
|
+
|
240
|
+
# unit tests for convert_document_get_file_type_icon_advanced
|
241
|
+
# Get PNG icon byte array for the file extension
|
242
|
+
# Returns a PNG icon for the given file format extension directly as a byte array. User may specify the icon size. Supports over 100 file formats, with a generic icon for unsupported formats.
|
243
|
+
# @param file_extension Required; The file extension to be used for the icon. Limited to 4 AlphaNumeric characters.
|
244
|
+
# @param [Hash] opts the optional parameters
|
245
|
+
# @option opts [Integer] :icon_size Optional; The desired width of the icon, preserving its aspect ratio.
|
246
|
+
# @return [GetFileTypeIconResult]
|
247
|
+
describe 'convert_document_get_file_type_icon_advanced test' do
|
248
|
+
it "should work" do
|
249
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
250
|
+
end
|
251
|
+
end
|
252
|
+
|
157
253
|
# unit tests for convert_document_html_to_pdf
|
158
254
|
# Convert HTML document file to PDF Document
|
159
255
|
# Convert standard HTML, with full support for CSS, JavaScript, Images, and other complex behavior to PDF. To use external files such as images, use an absolute URL to the file.
|
@@ -190,6 +286,33 @@ describe 'ConvertDocumentApi' do
|
|
190
286
|
end
|
191
287
|
end
|
192
288
|
|
289
|
+
# unit tests for convert_document_msg_to_html
|
290
|
+
# Convert Email MSG file to HTML string
|
291
|
+
# Convert Outlook Email MSG file to HTML string and attachments. Supports images if they are base 64 inline. Supports most, but not all, RTF bodied MSG files.
|
292
|
+
# @param input_file Input file to perform the operation on.
|
293
|
+
# @param [Hash] opts the optional parameters
|
294
|
+
# @option opts [BOOLEAN] :body_only Optional; If true, the HTML string will only include the body of the MSG. Other information such as subject will still be given as properties in the response object. Default is false.
|
295
|
+
# @option opts [BOOLEAN] :include_attachments Optional; If false, the response object will not include any attachment files from the input file. Default is true.
|
296
|
+
# @return [MsgToHtmlResult]
|
297
|
+
describe 'convert_document_msg_to_html test' do
|
298
|
+
it "should work" do
|
299
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
300
|
+
end
|
301
|
+
end
|
302
|
+
|
303
|
+
# unit tests for convert_document_msg_to_pdf
|
304
|
+
# Convert Email MSG file to PDF document
|
305
|
+
# Convert Outlook Email MSG file to PDF document. Supports images if they are base 64 inline. Supports most, but not all, RTF bodied MSG files.
|
306
|
+
# @param input_file Input file to perform the operation on.
|
307
|
+
# @param [Hash] opts the optional parameters
|
308
|
+
# @option opts [BOOLEAN] :body_only Optional; If true, the HTML string will only include the body of the email. Other information such as subject will still be given as properties in the response object. Default is false.
|
309
|
+
# @return [Object]
|
310
|
+
describe 'convert_document_msg_to_pdf test' do
|
311
|
+
it "should work" do
|
312
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
313
|
+
end
|
314
|
+
end
|
315
|
+
|
193
316
|
# unit tests for convert_document_pdf_to_docx
|
194
317
|
# Convert PDF to Word DOCX Document
|
195
318
|
# Convert standard PDF to Office Word Documents (docx). Converts a PDF at high fidelity into Word format, where it can be easily edited and processed.
|
@@ -320,6 +443,18 @@ describe 'ConvertDocumentApi' do
|
|
320
443
|
end
|
321
444
|
end
|
322
445
|
|
446
|
+
# unit tests for convert_document_pptx_to_png
|
447
|
+
# Convert PowerPoint PPTX to PNG image array
|
448
|
+
# Converts a PowerPoint Presentation (PPTX) file to an array of PNG images, one for each page.
|
449
|
+
# @param input_file Input file to perform the operation on.
|
450
|
+
# @param [Hash] opts the optional parameters
|
451
|
+
# @return [PptxToPngResult]
|
452
|
+
describe 'convert_document_pptx_to_png test' do
|
453
|
+
it "should work" do
|
454
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
455
|
+
end
|
456
|
+
end
|
457
|
+
|
323
458
|
# unit tests for convert_document_pptx_to_txt
|
324
459
|
# Convert PowerPoint PPTX Presentation to Text (txt)
|
325
460
|
# Convert Office PowerPoint Documents (pptx) to standard Text
|
@@ -406,6 +541,18 @@ describe 'ConvertDocumentApi' do
|
|
406
541
|
end
|
407
542
|
end
|
408
543
|
|
544
|
+
# unit tests for convert_document_xlsx_to_png
|
545
|
+
# Convert Excel XLSX spreadsheet to PNG image array
|
546
|
+
# Converts an Excel Spreadsheet (XLSX) file to an array of PNG images, one for each page.
|
547
|
+
# @param input_file Input file to perform the operation on.
|
548
|
+
# @param [Hash] opts the optional parameters
|
549
|
+
# @return [XlsxToPngResult]
|
550
|
+
describe 'convert_document_xlsx_to_png test' do
|
551
|
+
it "should work" do
|
552
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
553
|
+
end
|
554
|
+
end
|
555
|
+
|
409
556
|
# unit tests for convert_document_xlsx_to_txt
|
410
557
|
# Convert Excel XLSX Spreadsheet to Text (txt)
|
411
558
|
# Convert Office Excel Workbooks (XLSX) to standard Text. Converts all worksheets in the workbook to Text. Supports both XLSX and XLSB file formats. When a spreadsheet contains multiple worksheets, will export all of the text from all of the worksheets. If you wish to export the text from only one worksheet, try using the Split XLSX API to split the spreadsheet into multiple worksheet files, and then run XLSX to Text on the individual worksheet file that you need to extract the text from.
|
@@ -68,6 +68,18 @@ describe 'ValidateDocumentApi' do
|
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
+
# unit tests for validate_document_eml_validation
|
72
|
+
# Validate if an EML file is executable
|
73
|
+
# Validate if an input file is an EML email file; if the document is not valid
|
74
|
+
# @param input_file Input file to perform the operation on.
|
75
|
+
# @param [Hash] opts the optional parameters
|
76
|
+
# @return [DocumentValidationResult]
|
77
|
+
describe 'validate_document_eml_validation test' do
|
78
|
+
it "should work" do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
71
83
|
# unit tests for validate_document_executable_validation
|
72
84
|
# Validate if a file is executable
|
73
85
|
# Validate if an input file is a binary executable file; if the document is not valid
|
@@ -104,6 +116,18 @@ describe 'ValidateDocumentApi' do
|
|
104
116
|
end
|
105
117
|
end
|
106
118
|
|
119
|
+
# unit tests for validate_document_msg_validation
|
120
|
+
# Validate if an MSG file is executable
|
121
|
+
# Validate if an input file is an MSG email file; if the document is not valid
|
122
|
+
# @param input_file Input file to perform the operation on.
|
123
|
+
# @param [Hash] opts the optional parameters
|
124
|
+
# @return [DocumentValidationResult]
|
125
|
+
describe 'validate_document_msg_validation test' do
|
126
|
+
it "should work" do
|
127
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
128
|
+
end
|
129
|
+
end
|
130
|
+
|
107
131
|
# unit tests for validate_document_pdf_validation
|
108
132
|
# Validate a PDF document file
|
109
133
|
# Validate a PDF document; if the document is not valid, identifies the errors in the document. Also checks if the PDF is password protected.
|
@@ -0,0 +1,48 @@
|
|
1
|
+
=begin
|
2
|
+
#convertapi
|
3
|
+
|
4
|
+
#Convert API lets you effortlessly convert file formats and types.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveConvertApiClient::AutodetectToThumbnailsResult
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'AutodetectToThumbnailsResult' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveConvertApiClient::AutodetectToThumbnailsResult.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of AutodetectToThumbnailsResult' do
|
31
|
+
it 'should create an instance of AutodetectToThumbnailsResult' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::AutodetectToThumbnailsResult)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "successful"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "thumbnail_pages"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
@@ -0,0 +1,48 @@
|
|
1
|
+
=begin
|
2
|
+
#convertapi
|
3
|
+
|
4
|
+
#Convert API lets you effortlessly convert file formats and types.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveConvertApiClient::DocxToPngResult
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'DocxToPngResult' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveConvertApiClient::DocxToPngResult.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of DocxToPngResult' do
|
31
|
+
it 'should create an instance of DocxToPngResult' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::DocxToPngResult)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "successful"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "png_result_pages"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
@@ -0,0 +1,48 @@
|
|
1
|
+
=begin
|
2
|
+
#convertapi
|
3
|
+
|
4
|
+
#Convert API lets you effortlessly convert file formats and types.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveConvertApiClient::EmlAttachment
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'EmlAttachment' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveConvertApiClient::EmlAttachment.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of EmlAttachment' do
|
31
|
+
it 'should create an instance of EmlAttachment' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::EmlAttachment)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "name"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "content"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
end
|
48
|
+
|
@@ -0,0 +1,102 @@
|
|
1
|
+
=begin
|
2
|
+
#convertapi
|
3
|
+
|
4
|
+
#Convert API lets you effortlessly convert file formats and types.
|
5
|
+
|
6
|
+
OpenAPI spec version: v1
|
7
|
+
|
8
|
+
Generated by: https://github.com/swagger-api/swagger-codegen.git
|
9
|
+
Swagger Codegen version: 2.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for CloudmersiveConvertApiClient::EmlToHtmlResult
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe 'EmlToHtmlResult' do
|
21
|
+
before do
|
22
|
+
# run before each test
|
23
|
+
@instance = CloudmersiveConvertApiClient::EmlToHtmlResult.new
|
24
|
+
end
|
25
|
+
|
26
|
+
after do
|
27
|
+
# run after each test
|
28
|
+
end
|
29
|
+
|
30
|
+
describe 'test an instance of EmlToHtmlResult' do
|
31
|
+
it 'should create an instance of EmlToHtmlResult' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::EmlToHtmlResult)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
describe 'test attribute "successful"' do
|
36
|
+
it 'should work' do
|
37
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
describe 'test attribute "content"' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
describe 'test attribute "body"' do
|
48
|
+
it 'should work' do
|
49
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
|
+
end
|
51
|
+
end
|
52
|
+
|
53
|
+
describe 'test attribute "from"' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe 'test attribute "to"' do
|
60
|
+
it 'should work' do
|
61
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
describe 'test attribute "cc"' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
describe 'test attribute "bcc"' do
|
72
|
+
it 'should work' do
|
73
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
|
+
end
|
75
|
+
end
|
76
|
+
|
77
|
+
describe 'test attribute "received_time"' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
describe 'test attribute "subject"' do
|
84
|
+
it 'should work' do
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
|
+
end
|
87
|
+
end
|
88
|
+
|
89
|
+
describe 'test attribute "organization"' do
|
90
|
+
it 'should work' do
|
91
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
describe 'test attribute "attachments"' do
|
96
|
+
it 'should work' do
|
97
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
|
+
end
|
99
|
+
end
|
100
|
+
|
101
|
+
end
|
102
|
+
|