cloudmersive-convert-api-client 2.2.3 → 2.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -5
  3. data/docs/ConvertDataApi.md +60 -5
  4. data/docs/ConvertWebApi.md +8 -8
  5. data/docs/DocxContentControl.md +8 -0
  6. data/docs/DocxSetFormFieldsRequest.md +10 -0
  7. data/docs/EditDocumentApi.md +165 -0
  8. data/docs/FillHandlebarFormField.md +9 -0
  9. data/docs/GetDocxContentControlsResponse.md +9 -0
  10. data/docs/GetDocxGetFormFieldsResponse.md +10 -0
  11. data/docs/HandlebarFormField.md +8 -0
  12. data/docs/TransformDocumentApi.md +3 -3
  13. data/docs/ValidateDocumentApi.md +220 -0
  14. data/lib/cloudmersive-convert-api-client/api/convert_data_api.rb +57 -4
  15. data/lib/cloudmersive-convert-api-client/api/convert_web_api.rb +8 -8
  16. data/lib/cloudmersive-convert-api-client/api/edit_document_api.rb +164 -0
  17. data/lib/cloudmersive-convert-api-client/api/transform_document_api.rb +4 -4
  18. data/lib/cloudmersive-convert-api-client/api/validate_document_api.rb +220 -0
  19. data/lib/cloudmersive-convert-api-client/models/docx_content_control.rb +186 -0
  20. data/lib/cloudmersive-convert-api-client/models/docx_set_form_fields_request.rb +223 -0
  21. data/lib/cloudmersive-convert-api-client/models/fill_handlebar_form_field.rb +196 -0
  22. data/lib/cloudmersive-convert-api-client/models/get_docx_content_controls_response.rb +198 -0
  23. data/lib/cloudmersive-convert-api-client/models/get_docx_get_form_fields_response.rb +210 -0
  24. data/lib/cloudmersive-convert-api-client/models/handlebar_form_field.rb +186 -0
  25. data/lib/cloudmersive-convert-api-client/version.rb +1 -1
  26. data/lib/cloudmersive-convert-api-client.rb +6 -0
  27. data/spec/api/convert_data_api_spec.rb +14 -2
  28. data/spec/api/edit_document_api_spec.rb +36 -0
  29. data/spec/api/transform_document_api_spec.rb +1 -1
  30. data/spec/api/validate_document_api_spec.rb +48 -0
  31. data/spec/models/docx_content_control_spec.rb +41 -0
  32. data/spec/models/docx_set_form_fields_request_spec.rb +53 -0
  33. data/spec/models/fill_handlebar_form_field_spec.rb +47 -0
  34. data/spec/models/get_docx_content_controls_response_spec.rb +47 -0
  35. data/spec/models/get_docx_get_form_fields_response_spec.rb +53 -0
  36. data/spec/models/handlebar_form_field_spec.rb +41 -0
  37. metadata +20 -2
@@ -0,0 +1,186 @@
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.4.14
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudmersiveConvertApiClient
16
+ # Instance of a form field that is handlebar style, such as \"{{FieldName}}\"
17
+ class HandlebarFormField
18
+ # Title of the handlebar style form field, such as \"FieldName\" in the case of \"{{FieldName}}\"
19
+ attr_accessor :form_field_title
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'form_field_title' => :'FormFieldTitle'
25
+ }
26
+ end
27
+
28
+ # Attribute type mapping.
29
+ def self.swagger_types
30
+ {
31
+ :'form_field_title' => :'String'
32
+ }
33
+ end
34
+
35
+ # Initializes the object
36
+ # @param [Hash] attributes Model attributes in the form of hash
37
+ def initialize(attributes = {})
38
+ return unless attributes.is_a?(Hash)
39
+
40
+ # convert string to symbol for hash key
41
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
42
+
43
+ if attributes.has_key?(:'FormFieldTitle')
44
+ self.form_field_title = attributes[:'FormFieldTitle']
45
+ end
46
+ end
47
+
48
+ # Show invalid properties with the reasons. Usually used together with valid?
49
+ # @return Array for valid properties with the reasons
50
+ def list_invalid_properties
51
+ invalid_properties = Array.new
52
+ invalid_properties
53
+ end
54
+
55
+ # Check to see if the all the properties in the model are valid
56
+ # @return true if the model is valid
57
+ def valid?
58
+ true
59
+ end
60
+
61
+ # Checks equality by comparing each attribute.
62
+ # @param [Object] Object to be compared
63
+ def ==(o)
64
+ return true if self.equal?(o)
65
+ self.class == o.class &&
66
+ form_field_title == o.form_field_title
67
+ end
68
+
69
+ # @see the `==` method
70
+ # @param [Object] Object to be compared
71
+ def eql?(o)
72
+ self == o
73
+ end
74
+
75
+ # Calculates hash code according to all attributes.
76
+ # @return [Fixnum] Hash code
77
+ def hash
78
+ [form_field_title].hash
79
+ end
80
+
81
+ # Builds the object from hash
82
+ # @param [Hash] attributes Model attributes in the form of hash
83
+ # @return [Object] Returns the model itself
84
+ def build_from_hash(attributes)
85
+ return nil unless attributes.is_a?(Hash)
86
+ self.class.swagger_types.each_pair do |key, type|
87
+ if type =~ /\AArray<(.*)>/i
88
+ # check to ensure the input is an array given that the attribute
89
+ # is documented as an array but the input is not
90
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
91
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
92
+ end
93
+ elsif !attributes[self.class.attribute_map[key]].nil?
94
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
95
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
96
+ end
97
+
98
+ self
99
+ end
100
+
101
+ # Deserializes the data based on type
102
+ # @param string type Data type
103
+ # @param string value Value to be deserialized
104
+ # @return [Object] Deserialized data
105
+ def _deserialize(type, value)
106
+ case type.to_sym
107
+ when :DateTime
108
+ DateTime.parse(value)
109
+ when :Date
110
+ Date.parse(value)
111
+ when :String
112
+ value.to_s
113
+ when :Integer
114
+ value.to_i
115
+ when :Float
116
+ value.to_f
117
+ when :BOOLEAN
118
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
119
+ true
120
+ else
121
+ false
122
+ end
123
+ when :Object
124
+ # generic object (usually a Hash), return directly
125
+ value
126
+ when /\AArray<(?<inner_type>.+)>\z/
127
+ inner_type = Regexp.last_match[:inner_type]
128
+ value.map { |v| _deserialize(inner_type, v) }
129
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
130
+ k_type = Regexp.last_match[:k_type]
131
+ v_type = Regexp.last_match[:v_type]
132
+ {}.tap do |hash|
133
+ value.each do |k, v|
134
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
135
+ end
136
+ end
137
+ else # model
138
+ temp_model = CloudmersiveConvertApiClient.const_get(type).new
139
+ temp_model.build_from_hash(value)
140
+ end
141
+ end
142
+
143
+ # Returns the string representation of the object
144
+ # @return [String] String presentation of the object
145
+ def to_s
146
+ to_hash.to_s
147
+ end
148
+
149
+ # to_body is an alias to to_hash (backward compatibility)
150
+ # @return [Hash] Returns the object in the form of hash
151
+ def to_body
152
+ to_hash
153
+ end
154
+
155
+ # Returns the object in the form of hash
156
+ # @return [Hash] Returns the object in the form of hash
157
+ def to_hash
158
+ hash = {}
159
+ self.class.attribute_map.each_pair do |attr, param|
160
+ value = self.send(attr)
161
+ next if value.nil?
162
+ hash[param] = _to_hash(value)
163
+ end
164
+ hash
165
+ end
166
+
167
+ # Outputs non-array value in the form of hash
168
+ # For object, use to_hash. Otherwise, just return the value
169
+ # @param [Object] value Any valid value
170
+ # @return [Hash] Returns the value in the form of hash
171
+ def _to_hash(value)
172
+ if value.is_a?(Array)
173
+ value.compact.map { |v| _to_hash(v) }
174
+ elsif value.is_a?(Hash)
175
+ {}.tap do |hash|
176
+ value.each { |k, v| hash[k] = _to_hash(v) }
177
+ end
178
+ elsif value.respond_to? :to_hash
179
+ value.to_hash
180
+ else
181
+ value
182
+ end
183
+ end
184
+
185
+ end
186
+ end
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.14
11
11
  =end
12
12
 
13
13
  module CloudmersiveConvertApiClient
14
- VERSION = '2.2.3'
14
+ VERSION = '2.2.7'
15
15
  end
@@ -62,6 +62,7 @@ require 'cloudmersive-convert-api-client/models/document_validation_result'
62
62
  require 'cloudmersive-convert-api-client/models/docx_body'
63
63
  require 'cloudmersive-convert-api-client/models/docx_cell_style'
64
64
  require 'cloudmersive-convert-api-client/models/docx_comment'
65
+ require 'cloudmersive-convert-api-client/models/docx_content_control'
65
66
  require 'cloudmersive-convert-api-client/models/docx_footer'
66
67
  require 'cloudmersive-convert-api-client/models/docx_header'
67
68
  require 'cloudmersive-convert-api-client/models/docx_image'
@@ -79,6 +80,7 @@ require 'cloudmersive-convert-api-client/models/docx_set_custom_metadata_propert
79
80
  require 'cloudmersive-convert-api-client/models/docx_set_footer_add_page_number_request'
80
81
  require 'cloudmersive-convert-api-client/models/docx_set_footer_request'
81
82
  require 'cloudmersive-convert-api-client/models/docx_set_footer_response'
83
+ require 'cloudmersive-convert-api-client/models/docx_set_form_fields_request'
82
84
  require 'cloudmersive-convert-api-client/models/docx_set_header_request'
83
85
  require 'cloudmersive-convert-api-client/models/docx_set_header_response'
84
86
  require 'cloudmersive-convert-api-client/models/docx_style'
@@ -103,6 +105,7 @@ require 'cloudmersive-convert-api-client/models/eml_to_png_result'
103
105
  require 'cloudmersive-convert-api-client/models/enable_shared_workbook_request'
104
106
  require 'cloudmersive-convert-api-client/models/enable_shared_workbook_response'
105
107
  require 'cloudmersive-convert-api-client/models/exif_value'
108
+ require 'cloudmersive-convert-api-client/models/fill_handlebar_form_field'
106
109
  require 'cloudmersive-convert-api-client/models/find_docx_paragraph_request'
107
110
  require 'cloudmersive-convert-api-client/models/find_docx_paragraph_response'
108
111
  require 'cloudmersive-convert-api-client/models/find_regex_match'
@@ -116,8 +119,10 @@ require 'cloudmersive-convert-api-client/models/get_docx_body_request'
116
119
  require 'cloudmersive-convert-api-client/models/get_docx_body_response'
117
120
  require 'cloudmersive-convert-api-client/models/get_docx_comments_hierarchical_response'
118
121
  require 'cloudmersive-convert-api-client/models/get_docx_comments_response'
122
+ require 'cloudmersive-convert-api-client/models/get_docx_content_controls_response'
119
123
  require 'cloudmersive-convert-api-client/models/get_docx_get_comments_hierarchical_request'
120
124
  require 'cloudmersive-convert-api-client/models/get_docx_get_comments_request'
125
+ require 'cloudmersive-convert-api-client/models/get_docx_get_form_fields_response'
121
126
  require 'cloudmersive-convert-api-client/models/get_docx_headers_and_footers_request'
122
127
  require 'cloudmersive-convert-api-client/models/get_docx_headers_and_footers_response'
123
128
  require 'cloudmersive-convert-api-client/models/get_docx_images_request'
@@ -155,6 +160,7 @@ require 'cloudmersive-convert-api-client/models/get_xlsx_styles_request'
155
160
  require 'cloudmersive-convert-api-client/models/get_xlsx_styles_response'
156
161
  require 'cloudmersive-convert-api-client/models/get_xlsx_worksheets_request'
157
162
  require 'cloudmersive-convert-api-client/models/get_xlsx_worksheets_response'
163
+ require 'cloudmersive-convert-api-client/models/handlebar_form_field'
158
164
  require 'cloudmersive-convert-api-client/models/html_get_language_result'
159
165
  require 'cloudmersive-convert-api-client/models/html_get_links_response'
160
166
  require 'cloudmersive-convert-api-client/models/html_get_rel_canonical_url_result'
@@ -58,10 +58,22 @@ describe 'ConvertDataApi' do
58
58
  end
59
59
  end
60
60
 
61
+ # unit tests for convert_data_json_string_to_xml
62
+ # Convert JSON String to XML conversion
63
+ # Convert a JSON object into XML
64
+ # @param json_string Input JSON String to convert to XML
65
+ # @param [Hash] opts the optional parameters
66
+ # @return [Object]
67
+ describe 'convert_data_json_string_to_xml test' do
68
+ it 'should work' do
69
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
70
+ end
71
+ end
72
+
61
73
  # unit tests for convert_data_json_to_xml
62
- # Convert JSON to XML conversion
74
+ # Convert JSON Object to XML conversion
63
75
  # Convert a JSON object into XML
64
- # @param json_object Input JSON to convert to XML
76
+ # @param json_object Input JSON Object to convert to XML
65
77
  # @param [Hash] opts the optional parameters
66
78
  # @return [String]
67
79
  describe 'convert_data_json_to_xml test' do
@@ -176,6 +176,30 @@ describe 'EditDocumentApi' do
176
176
  end
177
177
  end
178
178
 
179
+ # unit tests for edit_document_docx_get_content_controls
180
+ # Get all content controls (form fields) and values in a Word DOCX document
181
+ # Returns all the content controls, used for creating form fields, in a Office Word Document (docx)
182
+ # @param input_file Input file to perform the operation on.
183
+ # @param [Hash] opts the optional parameters
184
+ # @return [GetDocxContentControlsResponse]
185
+ describe 'edit_document_docx_get_content_controls test' do
186
+ it 'should work' do
187
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
188
+ end
189
+ end
190
+
191
+ # unit tests for edit_document_docx_get_form_fields
192
+ # Get all form fields in a Word DOCX document
193
+ # Returns all the content controls, used for creating form fields, as well as handlebar style text-based form fields such as \&quot;{{FieldName}}\&quot;, in a Office Word Document (docx)
194
+ # @param input_file Input file to perform the operation on.
195
+ # @param [Hash] opts the optional parameters
196
+ # @return [GetDocxGetFormFieldsResponse]
197
+ describe 'edit_document_docx_get_form_fields test' do
198
+ it 'should work' do
199
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
200
+ end
201
+ end
202
+
179
203
  # unit tests for edit_document_docx_get_headers_and_footers
180
204
  # Get content of a footer from a Word DOCX document
181
205
  # Returns the footer content from a Word Document (DOCX) format file
@@ -476,6 +500,18 @@ describe 'EditDocumentApi' do
476
500
  end
477
501
  end
478
502
 
503
+ # unit tests for edit_document_docx_set_form_fields
504
+ # Set and fill values for form fields in a Word DOCX document
505
+ # Modifies a Office Word Document (docx) by filling in form fields using the provided values.
506
+ # @param req_config
507
+ # @param [Hash] opts the optional parameters
508
+ # @return [String]
509
+ describe 'edit_document_docx_set_form_fields test' do
510
+ it 'should work' do
511
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
512
+ end
513
+ end
514
+
479
515
  # unit tests for edit_document_docx_set_header
480
516
  # Set the header in a Word DOCX document
481
517
  # Set the header in a Word Document (DOCX). Call Finish Editing on the output URL to complete the operation.
@@ -93,7 +93,7 @@ describe 'TransformDocumentApi' do
93
93
  # Replace placeholder rows in multiple tables in an Office Word Document (docx) using one or more templates
94
94
  # @param request
95
95
  # @param [Hash] opts the optional parameters
96
- # @return [Object]
96
+ # @return [String]
97
97
  describe 'transform_document_docx_table_fill_in_multi test' do
98
98
  it 'should work' do
99
99
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -56,6 +56,18 @@ describe 'ValidateDocumentApi' do
56
56
  end
57
57
  end
58
58
 
59
+ # unit tests for validate_document_doc_validation
60
+ # Validate a Word 97-2003 Legacy document (DOC)
61
+ # Validate a Word 97-2003 Legacy document (DOC)
62
+ # @param input_file Input file to perform the operation on.
63
+ # @param [Hash] opts the optional parameters
64
+ # @return [DocumentValidationResult]
65
+ describe 'validate_document_doc_validation test' 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
+
59
71
  # unit tests for validate_document_docx_validation
60
72
  # Validate a Word document (DOCX)
61
73
  # Validate a Word document (DOCX); if the document is not valid, identifies the errors in the document
@@ -200,6 +212,18 @@ describe 'ValidateDocumentApi' do
200
212
  end
201
213
  end
202
214
 
215
+ # unit tests for validate_document_ppt_validation
216
+ # Validate a PowerPoint 97-2003 Legacy presentation (PPT)
217
+ # Validate a PowerPoint 97-2003 Legacy presentation (PPT)
218
+ # @param input_file Input file to perform the operation on.
219
+ # @param [Hash] opts the optional parameters
220
+ # @return [DocumentValidationResult]
221
+ describe 'validate_document_ppt_validation 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
+
203
227
  # unit tests for validate_document_pptx_validation
204
228
  # Validate a PowerPoint presentation (PPTX)
205
229
  # Validate a PowerPoint presentation (PPTX); if the document is not valid, identifies the errors in the document
@@ -224,6 +248,18 @@ describe 'ValidateDocumentApi' do
224
248
  end
225
249
  end
226
250
 
251
+ # unit tests for validate_document_rtf_validation
252
+ # Validate a Rich Text Format document (RTF)
253
+ # Validate a Rich Text Format document (RTF)
254
+ # @param input_file Input file to perform the operation on.
255
+ # @param [Hash] opts the optional parameters
256
+ # @return [DocumentValidationResult]
257
+ describe 'validate_document_rtf_validation test' do
258
+ it 'should work' do
259
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
260
+ end
261
+ end
262
+
227
263
  # unit tests for validate_document_tar_validation
228
264
  # Validate a TAR Tarball Archive file (TAR)
229
265
  # Validate a TAR tarball archive file (TAR)
@@ -248,6 +284,18 @@ describe 'ValidateDocumentApi' do
248
284
  end
249
285
  end
250
286
 
287
+ # unit tests for validate_document_xls_validation
288
+ # Validate a Excel 97-2003 Legacy spreadsheet (XLS)
289
+ # Validate a Excel 97-2003 Legacy spreadsheet (XLS)
290
+ # @param input_file Input file to perform the operation on.
291
+ # @param [Hash] opts the optional parameters
292
+ # @return [DocumentValidationResult]
293
+ describe 'validate_document_xls_validation test' do
294
+ it 'should work' do
295
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
296
+ end
297
+ end
298
+
251
299
  # unit tests for validate_document_xlsx_validation
252
300
  # Validate a Excel document (XLSX)
253
301
  # Validate a Excel document (XLSX); if the document is not valid, identifies the errors in the document
@@ -0,0 +1,41 @@
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.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveConvertApiClient::DocxContentControl
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'DocxContentControl' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveConvertApiClient::DocxContentControl.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of DocxContentControl' do
31
+ it 'should create an instance of DocxContentControl' do
32
+ expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::DocxContentControl)
33
+ end
34
+ end
35
+ describe 'test attribute "value"' 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
+ end
@@ -0,0 +1,53 @@
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.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveConvertApiClient::DocxSetFormFieldsRequest
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'DocxSetFormFieldsRequest' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveConvertApiClient::DocxSetFormFieldsRequest.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of DocxSetFormFieldsRequest' do
31
+ it 'should create an instance of DocxSetFormFieldsRequest' do
32
+ expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::DocxSetFormFieldsRequest)
33
+ end
34
+ end
35
+ describe 'test attribute "input_file_bytes"' 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 "input_file_url"' 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 "handlebar_fields_to_fill"' 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
+ end
@@ -0,0 +1,47 @@
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.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveConvertApiClient::FillHandlebarFormField
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'FillHandlebarFormField' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveConvertApiClient::FillHandlebarFormField.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of FillHandlebarFormField' do
31
+ it 'should create an instance of FillHandlebarFormField' do
32
+ expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::FillHandlebarFormField)
33
+ end
34
+ end
35
+ describe 'test attribute "field_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 "value_to_fill"' 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
@@ -0,0 +1,47 @@
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.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveConvertApiClient::GetDocxContentControlsResponse
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'GetDocxContentControlsResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveConvertApiClient::GetDocxContentControlsResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of GetDocxContentControlsResponse' do
31
+ it 'should create an instance of GetDocxContentControlsResponse' do
32
+ expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::GetDocxContentControlsResponse)
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_controls"' 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
@@ -0,0 +1,53 @@
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.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveConvertApiClient::GetDocxGetFormFieldsResponse
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'GetDocxGetFormFieldsResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveConvertApiClient::GetDocxGetFormFieldsResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of GetDocxGetFormFieldsResponse' do
31
+ it 'should create an instance of GetDocxGetFormFieldsResponse' do
32
+ expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::GetDocxGetFormFieldsResponse)
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_controls"' 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 "handlebar_form_fields"' 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
+ end
@@ -0,0 +1,41 @@
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.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveConvertApiClient::HandlebarFormField
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'HandlebarFormField' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveConvertApiClient::HandlebarFormField.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of HandlebarFormField' do
31
+ it 'should create an instance of HandlebarFormField' do
32
+ expect(@instance).to be_instance_of(CloudmersiveConvertApiClient::HandlebarFormField)
33
+ end
34
+ end
35
+ describe 'test attribute "form_field_title"' 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
+ end