aspose_words_cloud 21.6.0 → 21.7.0

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/lib/aspose_words_cloud.rb +2 -0
  3. data/lib/aspose_words_cloud/api/words_api.rb +68 -7
  4. data/lib/aspose_words_cloud/models/bmp_save_options_data.rb +11 -1
  5. data/lib/aspose_words_cloud/models/doc_save_options_data.rb +11 -1
  6. data/lib/aspose_words_cloud/models/emf_save_options_data.rb +11 -1
  7. data/lib/aspose_words_cloud/models/epub_save_options_data.rb +11 -1
  8. data/lib/aspose_words_cloud/models/fixed_page_save_options_data.rb +11 -1
  9. data/lib/aspose_words_cloud/models/gif_save_options_data.rb +11 -1
  10. data/lib/aspose_words_cloud/models/html_fixed_save_options_data.rb +11 -1
  11. data/lib/aspose_words_cloud/models/html_save_options_data.rb +11 -1
  12. data/lib/aspose_words_cloud/models/image_save_options_data.rb +11 -1
  13. data/lib/aspose_words_cloud/models/jpeg_save_options_data.rb +11 -1
  14. data/lib/aspose_words_cloud/models/markdown_save_options_data.rb +11 -1
  15. data/lib/aspose_words_cloud/models/mhtml_save_options_data.rb +11 -1
  16. data/lib/aspose_words_cloud/models/odt_save_options_data.rb +11 -1
  17. data/lib/aspose_words_cloud/models/ooxml_save_options_data.rb +11 -1
  18. data/lib/aspose_words_cloud/models/pcl_save_options_data.rb +11 -1
  19. data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +11 -1
  20. data/lib/aspose_words_cloud/models/png_save_options_data.rb +11 -1
  21. data/lib/aspose_words_cloud/models/ps_save_options_data.rb +11 -1
  22. data/lib/aspose_words_cloud/models/public_key_response.rb +221 -0
  23. data/lib/aspose_words_cloud/models/requests/append_document_online_request.rb +2 -2
  24. data/lib/aspose_words_cloud/models/requests/get_document_field_names_online_request.rb +11 -11
  25. data/lib/aspose_words_cloud/models/requests/get_public_key_request.rb +114 -0
  26. data/lib/aspose_words_cloud/models/rtf_save_options_data.rb +11 -1
  27. data/lib/aspose_words_cloud/models/save_options_data.rb +11 -1
  28. data/lib/aspose_words_cloud/models/svg_save_options_data.rb +11 -1
  29. data/lib/aspose_words_cloud/models/text_save_options_data.rb +22 -1
  30. data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +11 -1
  31. data/lib/aspose_words_cloud/models/txt_save_options_base_data.rb +11 -1
  32. data/lib/aspose_words_cloud/models/word_ml_save_options_data.rb +11 -1
  33. data/lib/aspose_words_cloud/models/xaml_fixed_save_options_data.rb +11 -1
  34. data/lib/aspose_words_cloud/models/xaml_flow_save_options_data.rb +11 -1
  35. data/lib/aspose_words_cloud/models/xps_save_options_data.rb +11 -1
  36. data/lib/aspose_words_cloud/version.rb +1 -1
  37. metadata +4 -2
@@ -48,6 +48,9 @@ module AsposeWordsCloud
48
48
  # Gets or sets the name of destination file.
49
49
  attr_accessor :file_name
50
50
 
51
+ # Gets or sets the value determining how ink (InkML) objects are rendered.
52
+ attr_accessor :iml_rendering_mode
53
+
51
54
  # Gets or sets the format of save.
52
55
  attr_accessor :save_format
53
56
 
@@ -202,6 +205,7 @@ module AsposeWordsCloud
202
205
  :'dml_effects_rendering_mode' => :'DmlEffectsRenderingMode',
203
206
  :'dml_rendering_mode' => :'DmlRenderingMode',
204
207
  :'file_name' => :'FileName',
208
+ :'iml_rendering_mode' => :'ImlRenderingMode',
205
209
  :'save_format' => :'SaveFormat',
206
210
  :'update_created_time_property' => :'UpdateCreatedTimeProperty',
207
211
  :'update_fields' => :'UpdateFields',
@@ -252,6 +256,7 @@ module AsposeWordsCloud
252
256
  :'dml_effects_rendering_mode' => :'String',
253
257
  :'dml_rendering_mode' => :'String',
254
258
  :'file_name' => :'String',
259
+ :'iml_rendering_mode' => :'String',
255
260
  :'save_format' => :'String',
256
261
  :'update_created_time_property' => :'BOOLEAN',
257
262
  :'update_fields' => :'BOOLEAN',
@@ -325,6 +330,10 @@ module AsposeWordsCloud
325
330
  self.file_name = attributes[:'FileName']
326
331
  end
327
332
 
333
+ if attributes.key?(:'ImlRenderingMode')
334
+ self.iml_rendering_mode = attributes[:'ImlRenderingMode']
335
+ end
336
+
328
337
  if attributes.key?(:'SaveFormat')
329
338
  self.save_format = attributes[:'SaveFormat']
330
339
  end
@@ -536,6 +545,7 @@ module AsposeWordsCloud
536
545
  dml_effects_rendering_mode == other.dml_effects_rendering_mode &&
537
546
  dml_rendering_mode == other.dml_rendering_mode &&
538
547
  file_name == other.file_name &&
548
+ iml_rendering_mode == other.iml_rendering_mode &&
539
549
  save_format == other.save_format &&
540
550
  update_created_time_property == other.update_created_time_property &&
541
551
  update_fields == other.update_fields &&
@@ -585,7 +595,7 @@ module AsposeWordsCloud
585
595
  # Calculates hash code according to all attributes.
586
596
  # @return [Fixnum] Hash code
587
597
  def hash
588
- [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, compliance, create_note_hyperlinks, custom_properties_export, digital_signature_details, display_doc_title, downsample_options, embed_full_fonts, encryption_details, export_document_structure, font_embedding_mode, header_footer_bookmarks_export_mode, image_color_space_export_mode, image_compression, interpolate_images, open_hyperlinks_in_new_window, outline_options, page_mode, preblend_images, preserve_form_fields, text_compression, use_book_fold_printing_settings, use_core_fonts, zoom_behavior, zoom_factor].hash
598
+ [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, iml_rendering_mode, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, compliance, create_note_hyperlinks, custom_properties_export, digital_signature_details, display_doc_title, downsample_options, embed_full_fonts, encryption_details, export_document_structure, font_embedding_mode, header_footer_bookmarks_export_mode, image_color_space_export_mode, image_compression, interpolate_images, open_hyperlinks_in_new_window, outline_options, page_mode, preblend_images, preserve_form_fields, text_compression, use_book_fold_printing_settings, use_core_fonts, zoom_behavior, zoom_factor].hash
589
599
  end
590
600
 
591
601
  # Builds the object from hash
@@ -48,6 +48,9 @@ module AsposeWordsCloud
48
48
  # Gets or sets the name of destination file.
49
49
  attr_accessor :file_name
50
50
 
51
+ # Gets or sets the value determining how ink (InkML) objects are rendered.
52
+ attr_accessor :iml_rendering_mode
53
+
51
54
  # Gets or sets the format of save.
52
55
  attr_accessor :save_format
53
56
 
@@ -171,6 +174,7 @@ module AsposeWordsCloud
171
174
  :'dml_effects_rendering_mode' => :'DmlEffectsRenderingMode',
172
175
  :'dml_rendering_mode' => :'DmlRenderingMode',
173
176
  :'file_name' => :'FileName',
177
+ :'iml_rendering_mode' => :'ImlRenderingMode',
174
178
  :'save_format' => :'SaveFormat',
175
179
  :'update_created_time_property' => :'UpdateCreatedTimeProperty',
176
180
  :'update_fields' => :'UpdateFields',
@@ -210,6 +214,7 @@ module AsposeWordsCloud
210
214
  :'dml_effects_rendering_mode' => :'String',
211
215
  :'dml_rendering_mode' => :'String',
212
216
  :'file_name' => :'String',
217
+ :'iml_rendering_mode' => :'String',
213
218
  :'save_format' => :'String',
214
219
  :'update_created_time_property' => :'BOOLEAN',
215
220
  :'update_fields' => :'BOOLEAN',
@@ -272,6 +277,10 @@ module AsposeWordsCloud
272
277
  self.file_name = attributes[:'FileName']
273
278
  end
274
279
 
280
+ if attributes.key?(:'ImlRenderingMode')
281
+ self.iml_rendering_mode = attributes[:'ImlRenderingMode']
282
+ end
283
+
275
284
  if attributes.key?(:'SaveFormat')
276
285
  self.save_format = attributes[:'SaveFormat']
277
286
  end
@@ -423,6 +432,7 @@ module AsposeWordsCloud
423
432
  dml_effects_rendering_mode == other.dml_effects_rendering_mode &&
424
433
  dml_rendering_mode == other.dml_rendering_mode &&
425
434
  file_name == other.file_name &&
435
+ iml_rendering_mode == other.iml_rendering_mode &&
426
436
  save_format == other.save_format &&
427
437
  update_created_time_property == other.update_created_time_property &&
428
438
  update_fields == other.update_fields &&
@@ -461,7 +471,7 @@ module AsposeWordsCloud
461
471
  # Calculates hash code according to all attributes.
462
472
  # @return [Fixnum] Hash code
463
473
  def hash
464
- [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, graphics_quality_options, horizontal_resolution, image_brightness, image_color_mode, image_contrast, paper_color, pixel_format, resolution, scale, use_anti_aliasing, use_gdi_emf_renderer, use_high_quality_rendering, vertical_resolution].hash
474
+ [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, iml_rendering_mode, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, graphics_quality_options, horizontal_resolution, image_brightness, image_color_mode, image_contrast, paper_color, pixel_format, resolution, scale, use_anti_aliasing, use_gdi_emf_renderer, use_high_quality_rendering, vertical_resolution].hash
465
475
  end
466
476
 
467
477
  # Builds the object from hash
@@ -48,6 +48,9 @@ module AsposeWordsCloud
48
48
  # Gets or sets the name of destination file.
49
49
  attr_accessor :file_name
50
50
 
51
+ # Gets or sets the value determining how ink (InkML) objects are rendered.
52
+ attr_accessor :iml_rendering_mode
53
+
51
54
  # Gets or sets the format of save.
52
55
  attr_accessor :save_format
53
56
 
@@ -129,6 +132,7 @@ module AsposeWordsCloud
129
132
  :'dml_effects_rendering_mode' => :'DmlEffectsRenderingMode',
130
133
  :'dml_rendering_mode' => :'DmlRenderingMode',
131
134
  :'file_name' => :'FileName',
135
+ :'iml_rendering_mode' => :'ImlRenderingMode',
132
136
  :'save_format' => :'SaveFormat',
133
137
  :'update_created_time_property' => :'UpdateCreatedTimeProperty',
134
138
  :'update_fields' => :'UpdateFields',
@@ -156,6 +160,7 @@ module AsposeWordsCloud
156
160
  :'dml_effects_rendering_mode' => :'String',
157
161
  :'dml_rendering_mode' => :'String',
158
162
  :'file_name' => :'String',
163
+ :'iml_rendering_mode' => :'String',
159
164
  :'save_format' => :'String',
160
165
  :'update_created_time_property' => :'BOOLEAN',
161
166
  :'update_fields' => :'BOOLEAN',
@@ -206,6 +211,10 @@ module AsposeWordsCloud
206
211
  self.file_name = attributes[:'FileName']
207
212
  end
208
213
 
214
+ if attributes.key?(:'ImlRenderingMode')
215
+ self.iml_rendering_mode = attributes[:'ImlRenderingMode']
216
+ end
217
+
209
218
  if attributes.key?(:'SaveFormat')
210
219
  self.save_format = attributes[:'SaveFormat']
211
220
  end
@@ -309,6 +318,7 @@ module AsposeWordsCloud
309
318
  dml_effects_rendering_mode == other.dml_effects_rendering_mode &&
310
319
  dml_rendering_mode == other.dml_rendering_mode &&
311
320
  file_name == other.file_name &&
321
+ iml_rendering_mode == other.iml_rendering_mode &&
312
322
  save_format == other.save_format &&
313
323
  update_created_time_property == other.update_created_time_property &&
314
324
  update_fields == other.update_fields &&
@@ -335,7 +345,7 @@ module AsposeWordsCloud
335
345
  # Calculates hash code according to all attributes.
336
346
  # @return [Fixnum] Hash code
337
347
  def hash
338
- [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, use_book_fold_printing_settings].hash
348
+ [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, iml_rendering_mode, save_format, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, color_mode, jpeg_quality, metafile_rendering_options, numeral_format, optimize_output, page_count, page_index, use_book_fold_printing_settings].hash
339
349
  end
340
350
 
341
351
  # Builds the object from hash
@@ -0,0 +1,221 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="public_key_response.rb">
3
+ # Copyright (c) 2021 Aspose.Words for Cloud
4
+ # </copyright>
5
+ # <summary>
6
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ # of this software and associated documentation files (the "Software"), to deal
8
+ # in the Software without restriction, including without limitation the rights
9
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ # copies of the Software, and to permit persons to whom the Software is
11
+ # furnished to do so, subject to the following conditions:
12
+ #
13
+ # The above copyright notice and this permission notice shall be included in all
14
+ # copies or substantial portions of the Software.
15
+ #
16
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ # SOFTWARE.
23
+ # </summary>
24
+ # ------------------------------------------------------------------------------------
25
+
26
+ require 'date'
27
+
28
+ module AsposeWordsCloud
29
+
30
+ # REST response for RSA public key info.
31
+ class PublicKeyResponse
32
+ # Gets or sets the request Id.
33
+ attr_accessor :request_id
34
+
35
+ # Gets or sets RSA key exponent as Base64 string.
36
+ attr_accessor :exponent
37
+
38
+ # Gets or sets RSA key modulus as Base64 string.
39
+ attr_accessor :modulus
40
+ # Attribute mapping from ruby-style variable name to JSON key.
41
+ def self.attribute_map
42
+ {
43
+ :'request_id' => :'RequestId',
44
+ :'exponent' => :'Exponent',
45
+ :'modulus' => :'Modulus'
46
+ }
47
+ end
48
+
49
+ # Attribute type mapping.
50
+ def self.swagger_types
51
+ {
52
+ :'request_id' => :'String',
53
+ :'exponent' => :'String',
54
+ :'modulus' => :'String'
55
+ }
56
+ end
57
+
58
+ # Initializes the object
59
+ # @param [Hash] attributes Model attributes in the form of hash
60
+ def initialize(attributes = {})
61
+ return unless attributes.is_a?(Hash)
62
+
63
+ # convert string to symbol for hash key
64
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
65
+
66
+ if attributes.key?(:'RequestId')
67
+ self.request_id = attributes[:'RequestId']
68
+ end
69
+
70
+ if attributes.key?(:'Exponent')
71
+ self.exponent = attributes[:'Exponent']
72
+ end
73
+
74
+ if attributes.key?(:'Modulus')
75
+ self.modulus = attributes[:'Modulus']
76
+ end
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properies with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = []
83
+ return invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ return true
90
+ end
91
+
92
+ # Checks equality by comparing each attribute.
93
+ # @param [Object] Object to be compared
94
+ def ==(other)
95
+ return true if self.equal?(other)
96
+ self.class == other.class &&
97
+ request_id == other.request_id &&
98
+ exponent == other.exponent &&
99
+ modulus == other.modulus
100
+ end
101
+
102
+ # @see the `==` method
103
+ # @param [Object] Object to be compared
104
+ def eql?(other)
105
+ self == other
106
+ end
107
+
108
+ # Calculates hash code according to all attributes.
109
+ # @return [Fixnum] Hash code
110
+ def hash
111
+ [request_id, exponent, modulus].hash
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def build_from_hash(attributes)
118
+ return nil unless attributes.is_a?(Hash)
119
+ self.class.swagger_types.each_pair do |key, type|
120
+ if type =~ /\AArray<(.*)>/i
121
+ # check to ensure the input is an array given that the the attribute
122
+ # is documented as an array but the input is not
123
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
124
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
125
+ end
126
+ elsif !attributes[self.class.attribute_map[key]].nil?
127
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
128
+ end
129
+ # or else data not found in attributes(hash), not an issue as the data can be optional
130
+ end
131
+
132
+ self
133
+ end
134
+
135
+ # Deserializes the data based on type
136
+ # @param string type Data type
137
+ # @param string value Value to be deserialized
138
+ # @return [Object] Deserialized data
139
+ def _deserialize(type, value)
140
+ case type.to_sym
141
+ when :DateTime
142
+ Time.at(/\d/.match(value)[0].to_f).to_datetime
143
+ when :Date
144
+ Time.at(/\d/.match(value)[0].to_f).to_date
145
+ when :String
146
+ value.to_s
147
+ when :Integer
148
+ value.to_i
149
+ when :Float
150
+ value.to_f
151
+ when :BOOLEAN
152
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
153
+ true
154
+ else
155
+ false
156
+ end
157
+ when :Object
158
+ # generic object (usually a Hash), return directly
159
+ value
160
+ when /\AArray<(?<inner_type>.+)>\z/
161
+ inner_type = Regexp.last_match[:inner_type]
162
+ value.map { |v| _deserialize(inner_type, v) }
163
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
164
+ k_type = Regexp.last_match[:k_type]
165
+ v_type = Regexp.last_match[:v_type]
166
+ {}.tap do |hash|
167
+ value.each do |k, v|
168
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
169
+ end
170
+ end
171
+ else
172
+ # model
173
+ temp_model = AsposeWordsCloud.const_get(type).new
174
+ temp_model.build_from_hash(value)
175
+ end
176
+ end
177
+
178
+ # Returns the string representation of the object
179
+ # @return [String] String presentation of the object
180
+ def to_s
181
+ to_hash.to_s
182
+ end
183
+
184
+ # to_body is an alias to to_hash (backward compatibility)
185
+ # @return [Hash] Returns the object in the form of hash
186
+ def to_body
187
+ to_hash
188
+ end
189
+
190
+ # Returns the object in the form of hash
191
+ # @return [Hash] Returns the object in the form of hash
192
+ def to_hash
193
+ hash = {}
194
+ self.class.attribute_map.each_pair do |attr, param|
195
+ value = self.send(attr)
196
+ next if value.nil?
197
+ hash[param] = _to_hash(value)
198
+ end
199
+ hash
200
+ end
201
+
202
+ # Outputs non-array value in the form of hash
203
+ # For object, use to_hash. Otherwise, just return the value
204
+ # @param [Object] value Any valid value
205
+ # @return [Hash] Returns the value in the form of hash
206
+ def _to_hash(value)
207
+ if value.is_a?(Array)
208
+ value.compact.map { |v| _to_hash(v) }
209
+ elsif value.is_a?(Hash)
210
+ {}.tap do |hash|
211
+ value.each { |k, v| hash[k] = _to_hash(v) }
212
+ end
213
+ elsif value.respond_to? :to_hash
214
+ value.to_hash
215
+ else
216
+ value
217
+ end
218
+ end
219
+
220
+ end
221
+ end
@@ -29,7 +29,7 @@ module AsposeWordsCloud
29
29
  # Request model for append_document_online operation.
30
30
  #
31
31
  class AppendDocumentOnlineRequest
32
- # The document.
32
+ # Original document.
33
33
  attr_accessor :document
34
34
 
35
35
  # <see cref="DocumentEntryList"/> with a list of documents to append.
@@ -52,7 +52,7 @@ module AsposeWordsCloud
52
52
 
53
53
  #
54
54
  # Initializes a new instance.
55
- # @param document The document.
55
+ # @param document Original document.
56
56
  # @param document_list <see cref="DocumentEntryList"/> with a list of documents to append.
57
57
  # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
58
58
  # @param password Password for opening an encrypted document.
@@ -29,8 +29,8 @@ module AsposeWordsCloud
29
29
  # Request model for get_document_field_names_online operation.
30
30
  #
31
31
  class GetDocumentFieldNamesOnlineRequest
32
- # The document.
33
- attr_accessor :document
32
+ # The template document.
33
+ attr_accessor :template
34
34
 
35
35
  # Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
36
36
  attr_accessor :load_encoding
@@ -43,13 +43,13 @@ module AsposeWordsCloud
43
43
 
44
44
  #
45
45
  # Initializes a new instance.
46
- # @param document The document.
46
+ # @param template The template document.
47
47
  # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
48
48
  # @param password Password for opening an encrypted document.
49
49
  # @param use_non_merge_fields The flag indicating whether to use non merge fields. If true, result includes "mustache" field names.
50
50
 
51
- def initialize(document, load_encoding = nil, password = nil, use_non_merge_fields = nil)
52
- self.document = document
51
+ def initialize(template, load_encoding = nil, password = nil, use_non_merge_fields = nil)
52
+ self.template = template
53
53
  self.load_encoding = load_encoding
54
54
  self.password = password
55
55
  self.use_non_merge_fields = use_non_merge_fields
@@ -57,8 +57,8 @@ module AsposeWordsCloud
57
57
 
58
58
  # Creating batch part from request
59
59
  def to_batch_part(api_client)
60
- # verify the required parameter 'document' is set
61
- raise ArgumentError, 'Missing the required parameter document when calling WordsApi.get_document_field_names_online' if api_client.config.client_side_validation && self.document.nil?
60
+ # verify the required parameter 'template' is set
61
+ raise ArgumentError, 'Missing the required parameter template when calling WordsApi.get_document_field_names_online' if api_client.config.client_side_validation && self.template.nil?
62
62
 
63
63
  # resource path
64
64
  local_var_path = '/words/online/get/mailMerge/FieldNames'[7..-1]
@@ -81,7 +81,7 @@ module AsposeWordsCloud
81
81
 
82
82
  # form parameters
83
83
  form_params = {}
84
- form_params[downcase_first_letter('Document')] = self.document
84
+ form_params[downcase_first_letter('Template')] = self.template
85
85
 
86
86
  # http body (model)
87
87
  post_body = nil
@@ -107,8 +107,8 @@ module AsposeWordsCloud
107
107
  end
108
108
 
109
109
  def create_http_request(api_client)
110
- # verify the required parameter 'document' is set
111
- raise ArgumentError, 'Missing the required parameter document when calling WordsApi.get_document_field_names_online' if api_client.config.client_side_validation && self.document.nil?
110
+ # verify the required parameter 'template' is set
111
+ raise ArgumentError, 'Missing the required parameter template when calling WordsApi.get_document_field_names_online' if api_client.config.client_side_validation && self.template.nil?
112
112
 
113
113
  # resource path
114
114
  local_var_path = '/words/online/get/mailMerge/FieldNames'[1..-1]
@@ -127,7 +127,7 @@ module AsposeWordsCloud
127
127
 
128
128
  # form parameters
129
129
  form_params = {}
130
- form_params[downcase_first_letter('Document')] = self.document
130
+ form_params[downcase_first_letter('Template')] = self.template
131
131
 
132
132
  # http body (model)
133
133
  post_body = nil