aspose_words_cloud 22.1.0 → 22.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_words_cloud/api/words_api.rb +328 -218
  3. data/lib/aspose_words_cloud/api_client.rb +82 -66
  4. data/lib/aspose_words_cloud/configuration.rb +6 -4
  5. data/lib/aspose_words_cloud/models/bmp_save_options_data.rb +124 -14
  6. data/lib/aspose_words_cloud/models/doc_save_options_data.rb +57 -11
  7. data/lib/aspose_words_cloud/models/{ooxml_save_options_data.rb → docm_save_options_data.rb} +79 -17
  8. data/lib/aspose_words_cloud/models/document_entry.rb +14 -14
  9. data/lib/aspose_words_cloud/models/docx_save_options_data.rb +504 -0
  10. data/lib/aspose_words_cloud/models/{fixed_page_save_options_data.rb → dot_save_options_data.rb} +89 -74
  11. data/lib/aspose_words_cloud/models/dotm_save_options_data.rb +504 -0
  12. data/lib/aspose_words_cloud/models/dotx_save_options_data.rb +504 -0
  13. data/lib/aspose_words_cloud/models/emf_save_options_data.rb +124 -14
  14. data/lib/aspose_words_cloud/models/epub_save_options_data.rb +150 -14
  15. data/lib/aspose_words_cloud/models/flat_opc_macro_save_options_data.rb +504 -0
  16. data/lib/aspose_words_cloud/models/flat_opc_save_options_data.rb +504 -0
  17. data/lib/aspose_words_cloud/models/flat_opc_template_macro_save_options_data.rb +504 -0
  18. data/lib/aspose_words_cloud/models/flat_opc_template_save_options_data.rb +504 -0
  19. data/lib/aspose_words_cloud/models/gif_save_options_data.rb +124 -14
  20. data/lib/aspose_words_cloud/models/html_fixed_save_options_data.rb +121 -11
  21. data/lib/aspose_words_cloud/models/html_save_options_data.rb +147 -11
  22. data/lib/aspose_words_cloud/models/jpeg_save_options_data.rb +124 -14
  23. data/lib/aspose_words_cloud/models/markdown_save_options_data.rb +57 -11
  24. data/lib/aspose_words_cloud/models/metafile_rendering_options_data.rb +57 -0
  25. data/lib/aspose_words_cloud/models/mhtml_save_options_data.rb +150 -14
  26. data/lib/aspose_words_cloud/models/odt_save_options_data.rb +60 -14
  27. data/lib/aspose_words_cloud/models/{image_save_options_data.rb → open_xps_save_options_data.rb} +119 -127
  28. data/lib/aspose_words_cloud/models/{save_options_data.rb → ott_save_options_data.rb} +120 -17
  29. data/lib/aspose_words_cloud/models/pcl_save_options_data.rb +92 -14
  30. data/lib/aspose_words_cloud/models/pdf_digital_signature_details_data.rb +41 -0
  31. data/lib/aspose_words_cloud/models/pdf_encryption_details_data.rb +5 -13
  32. data/lib/aspose_words_cloud/models/pdf_permissions.rb +52 -0
  33. data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +201 -11
  34. data/lib/aspose_words_cloud/models/png_save_options_data.rb +124 -14
  35. data/lib/aspose_words_cloud/models/ps_save_options_data.rb +89 -11
  36. data/lib/aspose_words_cloud/models/requests/copy_styles_from_template_request.rb +201 -0
  37. data/lib/aspose_words_cloud/models/requests/delete_comment_online_request.rb +1 -1
  38. data/lib/aspose_words_cloud/models/requests/delete_comments_online_request.rb +1 -1
  39. data/lib/aspose_words_cloud/models/requests/delete_custom_xml_part_online_request.rb +1 -1
  40. data/lib/aspose_words_cloud/models/requests/delete_custom_xml_parts_online_request.rb +1 -1
  41. data/lib/aspose_words_cloud/models/requests/delete_document_property_online_request.rb +1 -1
  42. data/lib/aspose_words_cloud/models/requests/delete_drawing_object_online_request.rb +1 -1
  43. data/lib/aspose_words_cloud/models/requests/delete_field_online_request.rb +1 -1
  44. data/lib/aspose_words_cloud/models/requests/delete_fields_online_request.rb +1 -1
  45. data/lib/aspose_words_cloud/models/requests/delete_footnote_online_request.rb +1 -1
  46. data/lib/aspose_words_cloud/models/requests/delete_form_field_online_request.rb +1 -1
  47. data/lib/aspose_words_cloud/models/requests/delete_header_footer_online_request.rb +1 -1
  48. data/lib/aspose_words_cloud/models/requests/delete_headers_footers_online_request.rb +1 -1
  49. data/lib/aspose_words_cloud/models/requests/delete_macros_online_request.rb +1 -1
  50. data/lib/aspose_words_cloud/models/requests/delete_office_math_object_online_request.rb +1 -1
  51. data/lib/aspose_words_cloud/models/requests/delete_paragraph_online_request.rb +1 -1
  52. data/lib/aspose_words_cloud/models/requests/delete_run_online_request.rb +1 -1
  53. data/lib/aspose_words_cloud/models/requests/delete_section_online_request.rb +1 -1
  54. data/lib/aspose_words_cloud/models/requests/delete_table_cell_online_request.rb +1 -1
  55. data/lib/aspose_words_cloud/models/requests/delete_table_online_request.rb +1 -1
  56. data/lib/aspose_words_cloud/models/requests/delete_table_row_online_request.rb +1 -1
  57. data/lib/aspose_words_cloud/models/requests/optimize_document_online_request.rb +1 -1
  58. data/lib/aspose_words_cloud/models/rtf_save_options_data.rb +57 -11
  59. data/lib/aspose_words_cloud/models/svg_save_options_data.rb +105 -11
  60. data/lib/aspose_words_cloud/models/text_save_options_data.rb +57 -11
  61. data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +153 -11
  62. data/lib/aspose_words_cloud/models/word_ml_save_options_data.rb +60 -14
  63. data/lib/aspose_words_cloud/models/xaml_fixed_save_options_data.rb +92 -14
  64. data/lib/aspose_words_cloud/models/{txt_save_options_base_data.rb → xaml_flow_pack_save_options_data.rb} +67 -59
  65. data/lib/aspose_words_cloud/models/xaml_flow_save_options_data.rb +60 -14
  66. data/lib/aspose_words_cloud/models/xps_save_options_data.rb +89 -11
  67. data/lib/aspose_words_cloud/version.rb +1 -1
  68. data/lib/aspose_words_cloud.rb +14 -10
  69. metadata +16 -12
  70. data/lib/aspose_words_cloud/models/comment_base.rb +0 -251
  71. data/lib/aspose_words_cloud/models/document_property_base.rb +0 -201
  72. data/lib/aspose_words_cloud/models/field_base.rb +0 -211
  73. data/lib/aspose_words_cloud/models/footnote_base.rb +0 -273
  74. data/lib/aspose_words_cloud/models/run_base.rb +0 -201
@@ -55,9 +55,6 @@ module AsposeWordsCloud
55
55
  # Gets or sets the value determining how ink (InkML) objects are rendered.
56
56
  attr_accessor :iml_rendering_mode
57
57
 
58
- # Gets or sets the format of save.
59
- attr_accessor :save_format
60
-
61
58
  # Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.CreatedTime property is updated before saving.
62
59
  # Default value is false.
63
60
  attr_accessor :update_created_time_property
@@ -102,6 +99,9 @@ module AsposeWordsCloud
102
99
  # Gets or sets the 0-based index of the first page to render.
103
100
  attr_accessor :page_index
104
101
 
102
+ # Gets the format of save.
103
+ attr_accessor :save_format
104
+
105
105
  # Gets or sets a value indicating whether the document should be saved using a booklet printing layout.
106
106
  attr_accessor :use_book_fold_printing_settings
107
107
 
@@ -138,7 +138,6 @@ module AsposeWordsCloud
138
138
  :'file_name' => :'FileName',
139
139
  :'flat_opc_xml_mapping_only' => :'FlatOpcXmlMappingOnly',
140
140
  :'iml_rendering_mode' => :'ImlRenderingMode',
141
- :'save_format' => :'SaveFormat',
142
141
  :'update_created_time_property' => :'UpdateCreatedTimeProperty',
143
142
  :'update_fields' => :'UpdateFields',
144
143
  :'update_last_printed_property' => :'UpdateLastPrintedProperty',
@@ -152,6 +151,7 @@ module AsposeWordsCloud
152
151
  :'optimize_output' => :'OptimizeOutput',
153
152
  :'page_count' => :'PageCount',
154
153
  :'page_index' => :'PageIndex',
154
+ :'save_format' => :'SaveFormat',
155
155
  :'use_book_fold_printing_settings' => :'UseBookFoldPrintingSettings'
156
156
  }
157
157
  end
@@ -167,7 +167,6 @@ module AsposeWordsCloud
167
167
  :'file_name' => :'String',
168
168
  :'flat_opc_xml_mapping_only' => :'BOOLEAN',
169
169
  :'iml_rendering_mode' => :'String',
170
- :'save_format' => :'String',
171
170
  :'update_created_time_property' => :'BOOLEAN',
172
171
  :'update_fields' => :'BOOLEAN',
173
172
  :'update_last_printed_property' => :'BOOLEAN',
@@ -181,6 +180,7 @@ module AsposeWordsCloud
181
180
  :'optimize_output' => :'BOOLEAN',
182
181
  :'page_count' => :'Integer',
183
182
  :'page_index' => :'Integer',
183
+ :'save_format' => :'String',
184
184
  :'use_book_fold_printing_settings' => :'BOOLEAN'
185
185
  }
186
186
  end
@@ -193,6 +193,8 @@ module AsposeWordsCloud
193
193
  # convert string to symbol for hash key
194
194
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
195
195
 
196
+ self.save_format = 'ps'
197
+
196
198
  if attributes.key?(:'AllowEmbeddingPostScriptFonts')
197
199
  self.allow_embedding_post_script_fonts = attributes[:'AllowEmbeddingPostScriptFonts']
198
200
  end
@@ -225,10 +227,6 @@ module AsposeWordsCloud
225
227
  self.iml_rendering_mode = attributes[:'ImlRenderingMode']
226
228
  end
227
229
 
228
- if attributes.key?(:'SaveFormat')
229
- self.save_format = attributes[:'SaveFormat']
230
- end
231
-
232
230
  if attributes.key?(:'UpdateCreatedTimeProperty')
233
231
  self.update_created_time_property = attributes[:'UpdateCreatedTimeProperty']
234
232
  end
@@ -298,6 +296,16 @@ module AsposeWordsCloud
298
296
  def valid?
299
297
  dml3_d_effects_rendering_mode_validator = EnumAttributeValidator.new('String', ["Basic", "Advanced"])
300
298
  return false unless dml3_d_effects_rendering_mode_validator.valid?(@dml3_d_effects_rendering_mode)
299
+ dml_effects_rendering_mode_validator = EnumAttributeValidator.new('String', ["Simplified", "None", "Fine"])
300
+ return false unless dml_effects_rendering_mode_validator.valid?(@dml_effects_rendering_mode)
301
+ dml_rendering_mode_validator = EnumAttributeValidator.new('String', ["Fallback", "DrawingML"])
302
+ return false unless dml_rendering_mode_validator.valid?(@dml_rendering_mode)
303
+ iml_rendering_mode_validator = EnumAttributeValidator.new('String', ["Fallback", "InkML"])
304
+ return false unless iml_rendering_mode_validator.valid?(@iml_rendering_mode)
305
+ color_mode_validator = EnumAttributeValidator.new('String', ["Normal", "Grayscale"])
306
+ return false unless color_mode_validator.valid?(@color_mode)
307
+ numeral_format_validator = EnumAttributeValidator.new('String', ["European", "ArabicIndic", "EasternArabicIndic", "Context", "System"])
308
+ return false unless numeral_format_validator.valid?(@numeral_format)
301
309
 
302
310
  return true
303
311
  end
@@ -316,6 +324,76 @@ module AsposeWordsCloud
316
324
  end
317
325
  end
318
326
 
327
+ # Custom attribute writer method checking allowed values (enum).
328
+ # @param [Object] dml_effects_rendering_mode Object to be assigned
329
+ def dml_effects_rendering_mode=(dml_effects_rendering_mode)
330
+ validator = EnumAttributeValidator.new('String', ["Simplified", "None", "Fine"])
331
+ if dml_effects_rendering_mode.to_i == 0
332
+ unless validator.valid?(dml_effects_rendering_mode)
333
+ raise ArgumentError, "invalid value for 'dml_effects_rendering_mode', must be one of #{validator.allowable_values}."
334
+ end
335
+ @dml_effects_rendering_mode = dml_effects_rendering_mode
336
+ else
337
+ @dml_effects_rendering_mode = validator.allowable_values[dml_effects_rendering_mode.to_i]
338
+ end
339
+ end
340
+
341
+ # Custom attribute writer method checking allowed values (enum).
342
+ # @param [Object] dml_rendering_mode Object to be assigned
343
+ def dml_rendering_mode=(dml_rendering_mode)
344
+ validator = EnumAttributeValidator.new('String', ["Fallback", "DrawingML"])
345
+ if dml_rendering_mode.to_i == 0
346
+ unless validator.valid?(dml_rendering_mode)
347
+ raise ArgumentError, "invalid value for 'dml_rendering_mode', must be one of #{validator.allowable_values}."
348
+ end
349
+ @dml_rendering_mode = dml_rendering_mode
350
+ else
351
+ @dml_rendering_mode = validator.allowable_values[dml_rendering_mode.to_i]
352
+ end
353
+ end
354
+
355
+ # Custom attribute writer method checking allowed values (enum).
356
+ # @param [Object] iml_rendering_mode Object to be assigned
357
+ def iml_rendering_mode=(iml_rendering_mode)
358
+ validator = EnumAttributeValidator.new('String', ["Fallback", "InkML"])
359
+ if iml_rendering_mode.to_i == 0
360
+ unless validator.valid?(iml_rendering_mode)
361
+ raise ArgumentError, "invalid value for 'iml_rendering_mode', must be one of #{validator.allowable_values}."
362
+ end
363
+ @iml_rendering_mode = iml_rendering_mode
364
+ else
365
+ @iml_rendering_mode = validator.allowable_values[iml_rendering_mode.to_i]
366
+ end
367
+ end
368
+
369
+ # Custom attribute writer method checking allowed values (enum).
370
+ # @param [Object] color_mode Object to be assigned
371
+ def color_mode=(color_mode)
372
+ validator = EnumAttributeValidator.new('String', ["Normal", "Grayscale"])
373
+ if color_mode.to_i == 0
374
+ unless validator.valid?(color_mode)
375
+ raise ArgumentError, "invalid value for 'color_mode', must be one of #{validator.allowable_values}."
376
+ end
377
+ @color_mode = color_mode
378
+ else
379
+ @color_mode = validator.allowable_values[color_mode.to_i]
380
+ end
381
+ end
382
+
383
+ # Custom attribute writer method checking allowed values (enum).
384
+ # @param [Object] numeral_format Object to be assigned
385
+ def numeral_format=(numeral_format)
386
+ validator = EnumAttributeValidator.new('String', ["European", "ArabicIndic", "EasternArabicIndic", "Context", "System"])
387
+ if numeral_format.to_i == 0
388
+ unless validator.valid?(numeral_format)
389
+ raise ArgumentError, "invalid value for 'numeral_format', must be one of #{validator.allowable_values}."
390
+ end
391
+ @numeral_format = numeral_format
392
+ else
393
+ @numeral_format = validator.allowable_values[numeral_format.to_i]
394
+ end
395
+ end
396
+
319
397
 
320
398
  # Checks equality by comparing each attribute.
321
399
  # @param [Object] Object to be compared
@@ -330,7 +408,6 @@ module AsposeWordsCloud
330
408
  file_name == other.file_name &&
331
409
  flat_opc_xml_mapping_only == other.flat_opc_xml_mapping_only &&
332
410
  iml_rendering_mode == other.iml_rendering_mode &&
333
- save_format == other.save_format &&
334
411
  update_created_time_property == other.update_created_time_property &&
335
412
  update_fields == other.update_fields &&
336
413
  update_last_printed_property == other.update_last_printed_property &&
@@ -344,6 +421,7 @@ module AsposeWordsCloud
344
421
  optimize_output == other.optimize_output &&
345
422
  page_count == other.page_count &&
346
423
  page_index == other.page_index &&
424
+ save_format == other.save_format &&
347
425
  use_book_fold_printing_settings == other.use_book_fold_printing_settings
348
426
  end
349
427
 
@@ -356,7 +434,7 @@ module AsposeWordsCloud
356
434
  # Calculates hash code according to all attributes.
357
435
  # @return [Fixnum] Hash code
358
436
  def hash
359
- [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, flat_opc_xml_mapping_only, 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
437
+ [allow_embedding_post_script_fonts, custom_time_zone_info_data, dml3_d_effects_rendering_mode, dml_effects_rendering_mode, dml_rendering_mode, file_name, flat_opc_xml_mapping_only, iml_rendering_mode, 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, save_format, use_book_fold_printing_settings].hash
360
438
  end
361
439
 
362
440
  # Builds the object from hash
@@ -0,0 +1,201 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="copy_styles_from_template_request.rb">
3
+ # Copyright (c) 2022 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
+ module AsposeWordsCloud
27
+
28
+ #
29
+ # Request model for copy_styles_from_template operation.
30
+ #
31
+ class CopyStylesFromTemplateRequest
32
+ # The filename of the target document.
33
+ attr_accessor :name
34
+
35
+ # The filename of the origin document.
36
+ attr_accessor :template_name
37
+
38
+ # Original document folder.
39
+ attr_accessor :folder
40
+
41
+ # Original document storage.
42
+ attr_accessor :storage
43
+
44
+ # Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
45
+ attr_accessor :load_encoding
46
+
47
+ # Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
48
+ attr_accessor :password
49
+
50
+ # Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
51
+ attr_accessor :encrypted_password
52
+
53
+ # Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
54
+ attr_accessor :dest_file_name
55
+
56
+ # Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
57
+ attr_accessor :revision_author
58
+
59
+ # The date and time to use for revisions.
60
+ attr_accessor :revision_date_time
61
+
62
+ #
63
+ # Initializes a new instance.
64
+ # @param name The filename of the target document.
65
+ # @param template_name The filename of the origin document.
66
+ # @param folder Original document folder.
67
+ # @param storage Original document storage.
68
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
69
+ # @param password Password of protected Word document. Use the parameter to pass a password via SDK. SDK encrypts it automatically. We don't recommend to use the parameter to pass a plain password for direct call of API.
70
+ # @param encrypted_password Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
71
+ # @param dest_file_name Result path of the document after the operation. If this parameter is omitted then result of the operation will be saved as the source document.
72
+ # @param revision_author Initials of the author to use for revisions.If you set this parameter and then make some changes to the document programmatically, save the document and later open the document in MS Word you will see these changes as revisions.
73
+ # @param revision_date_time The date and time to use for revisions.
74
+
75
+ def initialize(name:, template_name:, folder: nil, storage: nil, load_encoding: nil, password: nil, encrypted_password: nil, dest_file_name: nil, revision_author: nil, revision_date_time: nil)
76
+ self.name = name
77
+ self.template_name = template_name
78
+ self.folder = folder
79
+ self.storage = storage
80
+ self.load_encoding = load_encoding
81
+ self.password = password
82
+ self.encrypted_password = encrypted_password
83
+ self.dest_file_name = dest_file_name
84
+ self.revision_author = revision_author
85
+ self.revision_date_time = revision_date_time
86
+ end
87
+
88
+ # Creating batch part from request
89
+ def to_batch_part(api_client, guid)
90
+ # verify the required parameter 'name' is set
91
+ raise ArgumentError, 'Missing the required parameter name when calling WordsApi.copy_styles_from_template' if api_client.config.client_side_validation && self.name.nil?
92
+ # verify the required parameter 'template_name' is set
93
+ raise ArgumentError, 'Missing the required parameter template_name when calling WordsApi.copy_styles_from_template' if api_client.config.client_side_validation && self.template_name.nil?
94
+
95
+ # resource path
96
+ local_var_path = '/words/{name}/styles/copy_from'[7..-1]
97
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
98
+ local_var_path = local_var_path.sub('//', '/')
99
+
100
+ # query parameters
101
+ query_params = {}
102
+ query_params[downcase_first_letter('TemplateName')] = self.template_name
103
+ query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
104
+ query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
105
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
106
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
107
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
108
+ query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
109
+ query_params[downcase_first_letter('RevisionAuthor')] = self.revision_author unless self.revision_author.nil?
110
+ query_params[downcase_first_letter('RevisionDateTime')] = self.revision_date_time unless self.revision_date_time.nil?
111
+
112
+ if query_params
113
+ query_params.each { |key, value| local_var_path = api_client.add_param_to_query(local_var_path, key, value) }
114
+ end
115
+
116
+ header_params = {}
117
+ header_params['RequestId'] = guid
118
+
119
+ # form parameters
120
+ form_params = {}
121
+
122
+ # http body (model)
123
+ post_body = nil
124
+ body = nil
125
+ part = ""
126
+ part.concat("PUT".force_encoding('UTF-8'))
127
+ part.concat(" ".force_encoding('UTF-8'))
128
+ part.concat(local_var_path.force_encoding('UTF-8'))
129
+ part.concat(" \r\n".force_encoding('UTF-8'))
130
+
131
+ header_params.each_pair {|key, value| part.concat(key.dup.force_encoding('UTF-8') , ": ".force_encoding('UTF-8'), value.dup.force_encoding('UTF-8'), "\r\n".force_encoding('UTF-8')) }
132
+ part.concat("\r\n".force_encoding('UTF-8'))
133
+ if body
134
+ if body.is_a?(Hash)
135
+ body.each do |key, value|
136
+ part.concat(value, "\r\n")
137
+ end
138
+ else
139
+ part.concat(body)
140
+ end
141
+ end
142
+ part
143
+ end
144
+
145
+ def create_http_request(api_client)
146
+ # verify the required parameter 'name' is set
147
+ raise ArgumentError, 'Missing the required parameter name when calling WordsApi.copy_styles_from_template' if api_client.config.client_side_validation && self.name.nil?
148
+ # verify the required parameter 'template_name' is set
149
+ raise ArgumentError, 'Missing the required parameter template_name when calling WordsApi.copy_styles_from_template' if api_client.config.client_side_validation && self.template_name.nil?
150
+
151
+ # resource path
152
+ local_var_path = '/words/{name}/styles/copy_from'[1..-1]
153
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
154
+ local_var_path = local_var_path.sub('//', '/')
155
+
156
+ # query parameters
157
+ query_params = {}
158
+ query_params[downcase_first_letter('TemplateName')] = self.template_name
159
+ query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
160
+ query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
161
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
162
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
163
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
164
+ query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
165
+ query_params[downcase_first_letter('RevisionAuthor')] = self.revision_author unless self.revision_author.nil?
166
+ query_params[downcase_first_letter('RevisionDateTime')] = self.revision_date_time unless self.revision_date_time.nil?
167
+
168
+ # header parameters
169
+ header_params = {}
170
+ # HTTP header 'Content-Type'
171
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/xml', 'application/json'])
172
+
173
+ # form parameters
174
+ form_params = {}
175
+
176
+ # http body (model)
177
+ post_body = nil
178
+ body = api_client.build_request_body(header_params, form_params, post_body)
179
+ {
180
+ 'method': :PUT,
181
+ 'path': local_var_path,
182
+ 'header_params': header_params,
183
+ 'query_params': query_params,
184
+ 'body': body,
185
+ 'auth_names': ['JWT']
186
+ }
187
+ end
188
+
189
+ #
190
+ # Helper method to convert first letter to downcase
191
+ #
192
+ def downcase_first_letter(str)
193
+ str[0].downcase + str[1..-1]
194
+ end
195
+
196
+ # Get response type
197
+ def get_response_type
198
+ 'WordsResponse'
199
+ end
200
+ end
201
+ end
@@ -184,7 +184,7 @@ module AsposeWordsCloud
184
184
 
185
185
  # Get response type
186
186
  def get_response_type
187
- 'File'
187
+ 'FILES_COLLECTION'
188
188
  end
189
189
  end
190
190
  end
@@ -173,7 +173,7 @@ module AsposeWordsCloud
173
173
 
174
174
  # Get response type
175
175
  def get_response_type
176
- 'File'
176
+ 'FILES_COLLECTION'
177
177
  end
178
178
  end
179
179
  end
@@ -184,7 +184,7 @@ module AsposeWordsCloud
184
184
 
185
185
  # Get response type
186
186
  def get_response_type
187
- 'File'
187
+ 'FILES_COLLECTION'
188
188
  end
189
189
  end
190
190
  end
@@ -173,7 +173,7 @@ module AsposeWordsCloud
173
173
 
174
174
  # Get response type
175
175
  def get_response_type
176
- 'File'
176
+ 'FILES_COLLECTION'
177
177
  end
178
178
  end
179
179
  end
@@ -184,7 +184,7 @@ module AsposeWordsCloud
184
184
 
185
185
  # Get response type
186
186
  def get_response_type
187
- 'File'
187
+ 'FILES_COLLECTION'
188
188
  end
189
189
  end
190
190
  end
@@ -191,7 +191,7 @@ module AsposeWordsCloud
191
191
 
192
192
  # Get response type
193
193
  def get_response_type
194
- 'File'
194
+ 'FILES_COLLECTION'
195
195
  end
196
196
  end
197
197
  end
@@ -191,7 +191,7 @@ module AsposeWordsCloud
191
191
 
192
192
  # Get response type
193
193
  def get_response_type
194
- 'File'
194
+ 'FILES_COLLECTION'
195
195
  end
196
196
  end
197
197
  end
@@ -180,7 +180,7 @@ module AsposeWordsCloud
180
180
 
181
181
  # Get response type
182
182
  def get_response_type
183
- 'File'
183
+ 'FILES_COLLECTION'
184
184
  end
185
185
  end
186
186
  end
@@ -191,7 +191,7 @@ module AsposeWordsCloud
191
191
 
192
192
  # Get response type
193
193
  def get_response_type
194
- 'File'
194
+ 'FILES_COLLECTION'
195
195
  end
196
196
  end
197
197
  end
@@ -191,7 +191,7 @@ module AsposeWordsCloud
191
191
 
192
192
  # Get response type
193
193
  def get_response_type
194
- 'File'
194
+ 'FILES_COLLECTION'
195
195
  end
196
196
  end
197
197
  end
@@ -195,7 +195,7 @@ module AsposeWordsCloud
195
195
 
196
196
  # Get response type
197
197
  def get_response_type
198
- 'File'
198
+ 'FILES_COLLECTION'
199
199
  end
200
200
  end
201
201
  end
@@ -191,7 +191,7 @@ module AsposeWordsCloud
191
191
 
192
192
  # Get response type
193
193
  def get_response_type
194
- 'File'
194
+ 'FILES_COLLECTION'
195
195
  end
196
196
  end
197
197
  end
@@ -173,7 +173,7 @@ module AsposeWordsCloud
173
173
 
174
174
  # Get response type
175
175
  def get_response_type
176
- 'File'
176
+ 'FILES_COLLECTION'
177
177
  end
178
178
  end
179
179
  end
@@ -191,7 +191,7 @@ module AsposeWordsCloud
191
191
 
192
192
  # Get response type
193
193
  def get_response_type
194
- 'File'
194
+ 'FILES_COLLECTION'
195
195
  end
196
196
  end
197
197
  end
@@ -191,7 +191,7 @@ module AsposeWordsCloud
191
191
 
192
192
  # Get response type
193
193
  def get_response_type
194
- 'File'
194
+ 'FILES_COLLECTION'
195
195
  end
196
196
  end
197
197
  end
@@ -195,7 +195,7 @@ module AsposeWordsCloud
195
195
 
196
196
  # Get response type
197
197
  def get_response_type
198
- 'File'
198
+ 'FILES_COLLECTION'
199
199
  end
200
200
  end
201
201
  end
@@ -184,7 +184,7 @@ module AsposeWordsCloud
184
184
 
185
185
  # Get response type
186
186
  def get_response_type
187
- 'File'
187
+ 'FILES_COLLECTION'
188
188
  end
189
189
  end
190
190
  end
@@ -195,7 +195,7 @@ module AsposeWordsCloud
195
195
 
196
196
  # Get response type
197
197
  def get_response_type
198
- 'File'
198
+ 'FILES_COLLECTION'
199
199
  end
200
200
  end
201
201
  end
@@ -191,7 +191,7 @@ module AsposeWordsCloud
191
191
 
192
192
  # Get response type
193
193
  def get_response_type
194
- 'File'
194
+ 'FILES_COLLECTION'
195
195
  end
196
196
  end
197
197
  end
@@ -195,7 +195,7 @@ module AsposeWordsCloud
195
195
 
196
196
  # Get response type
197
197
  def get_response_type
198
- 'File'
198
+ 'FILES_COLLECTION'
199
199
  end
200
200
  end
201
201
  end
@@ -184,7 +184,7 @@ module AsposeWordsCloud
184
184
 
185
185
  # Get response type
186
186
  def get_response_type
187
- 'File'
187
+ 'FILES_COLLECTION'
188
188
  end
189
189
  end
190
190
  end