aspose_words_cloud 23.4.0 → 23.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_words_cloud/api/words_api.rb +85 -1
  3. data/lib/aspose_words_cloud/api_client.rb +1 -1
  4. data/lib/aspose_words_cloud/models/bmp_save_options_data.rb +11 -11
  5. data/lib/aspose_words_cloud/models/comment.rb +39 -39
  6. data/lib/aspose_words_cloud/models/comment_insert.rb +21 -21
  7. data/lib/aspose_words_cloud/models/comment_update.rb +21 -21
  8. data/lib/aspose_words_cloud/models/custom_xml_part.rb +14 -14
  9. data/lib/aspose_words_cloud/models/custom_xml_part_insert.rb +14 -14
  10. data/lib/aspose_words_cloud/models/custom_xml_part_update.rb +14 -14
  11. data/lib/aspose_words_cloud/models/doc_save_options_data.rb +10 -10
  12. data/lib/aspose_words_cloud/models/document.rb +13 -13
  13. data/lib/aspose_words_cloud/models/document_entry.rb +41 -0
  14. data/lib/aspose_words_cloud/models/document_property.rb +15 -15
  15. data/lib/aspose_words_cloud/models/document_stat_data.rb +16 -16
  16. data/lib/aspose_words_cloud/models/drawing_object.rb +41 -41
  17. data/lib/aspose_words_cloud/models/emf_save_options_data.rb +11 -11
  18. data/lib/aspose_words_cloud/models/footnote.rb +21 -21
  19. data/lib/aspose_words_cloud/models/form_field.rb +46 -46
  20. data/lib/aspose_words_cloud/models/form_field_checkbox.rb +59 -59
  21. data/lib/aspose_words_cloud/models/form_field_drop_down.rb +46 -46
  22. data/lib/aspose_words_cloud/models/form_field_text_input.rb +66 -66
  23. data/lib/aspose_words_cloud/models/gif_save_options_data.rb +11 -11
  24. data/lib/aspose_words_cloud/models/header_footer.rb +14 -14
  25. data/lib/aspose_words_cloud/models/html_fixed_save_options_data.rb +10 -10
  26. data/lib/aspose_words_cloud/models/html_save_options_data.rb +10 -10
  27. data/lib/aspose_words_cloud/models/jpeg_save_options_data.rb +11 -11
  28. data/lib/aspose_words_cloud/models/list_format.rb +15 -15
  29. data/lib/aspose_words_cloud/models/list_info.rb +35 -35
  30. data/lib/aspose_words_cloud/models/list_level.rb +76 -76
  31. data/lib/aspose_words_cloud/models/load_web_document_data.rb +14 -14
  32. data/lib/aspose_words_cloud/models/markdown_save_options_data.rb +10 -10
  33. data/lib/aspose_words_cloud/models/page_stat_data.rb +14 -14
  34. data/lib/aspose_words_cloud/models/paragraph_format.rb +21 -21
  35. data/lib/aspose_words_cloud/models/paragraph_format_base.rb +14 -14
  36. data/lib/aspose_words_cloud/models/paragraph_format_update.rb +14 -14
  37. data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +10 -10
  38. data/lib/aspose_words_cloud/models/png_save_options_data.rb +11 -11
  39. data/lib/aspose_words_cloud/models/ps_save_options_data.rb +10 -10
  40. data/lib/aspose_words_cloud/models/requests/create_document_request.rb +9 -3
  41. data/lib/aspose_words_cloud/models/requests/insert_section_online_request.rb +204 -0
  42. data/lib/aspose_words_cloud/models/requests/insert_section_request.rb +203 -0
  43. data/lib/aspose_words_cloud/models/rtf_save_options_data.rb +10 -10
  44. data/lib/aspose_words_cloud/models/save_result.rb +16 -16
  45. data/lib/aspose_words_cloud/models/search_result.rb +14 -14
  46. data/lib/aspose_words_cloud/models/section.rb +15 -15
  47. data/lib/aspose_words_cloud/models/split_document_result.rb +16 -16
  48. data/lib/aspose_words_cloud/models/structured_document_tag.rb +142 -142
  49. data/lib/aspose_words_cloud/models/structured_document_tag_insert.rb +142 -142
  50. data/lib/aspose_words_cloud/models/structured_document_tag_update.rb +142 -142
  51. data/lib/aspose_words_cloud/models/style.rb +71 -71
  52. data/lib/aspose_words_cloud/models/svg_save_options_data.rb +10 -10
  53. data/lib/aspose_words_cloud/models/table.rb +14 -14
  54. data/lib/aspose_words_cloud/models/table_row.rb +14 -14
  55. data/lib/aspose_words_cloud/models/table_row_format.rb +24 -24
  56. data/lib/aspose_words_cloud/models/text_save_options_data.rb +10 -10
  57. data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +19 -19
  58. data/lib/aspose_words_cloud/models/xps_save_options_data.rb +10 -10
  59. data/lib/aspose_words_cloud/version.rb +1 -1
  60. data/lib/aspose_words_cloud.rb +2 -0
  61. metadata +4 -2
@@ -0,0 +1,204 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="insert_section_online_request.rb">
3
+ # Copyright (c) 2023 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 insert_section_online operation.
30
+ #
31
+ class InsertSectionOnlineRequest
32
+ # The document.
33
+ attr_accessor :document
34
+
35
+ # The index to insert into.
36
+ attr_accessor :section_index
37
+
38
+ # Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
39
+ attr_accessor :load_encoding
40
+
41
+ # 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.
42
+ attr_accessor :password
43
+
44
+ # Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
45
+ attr_accessor :encrypted_password
46
+
47
+ # 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.
48
+ attr_accessor :dest_file_name
49
+
50
+ # 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.
51
+ attr_accessor :revision_author
52
+
53
+ # The date and time to use for revisions.
54
+ attr_accessor :revision_date_time
55
+
56
+ #
57
+ # Initializes a new instance.
58
+ # @param document The document.
59
+ # @param section_index The index to insert into.
60
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
61
+ # @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.
62
+ # @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.
63
+ # @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.
64
+ # @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.
65
+ # @param revision_date_time The date and time to use for revisions.
66
+
67
+ def initialize(document:, section_index:, load_encoding: nil, password: nil, encrypted_password: nil, dest_file_name: nil, revision_author: nil, revision_date_time: nil)
68
+ self.document = document
69
+ self.section_index = section_index
70
+ self.load_encoding = load_encoding
71
+ self.password = password
72
+ self.encrypted_password = encrypted_password
73
+ self.dest_file_name = dest_file_name
74
+ self.revision_author = revision_author
75
+ self.revision_date_time = revision_date_time
76
+ end
77
+
78
+ # Creating batch part from request
79
+ def to_batch_part(api_client, requestId, parentRequestId = nil)
80
+ # verify the required parameter 'document' is set
81
+ raise ArgumentError, 'Missing the required parameter document when calling WordsApi.insert_section_online' if api_client.config.client_side_validation && self.document.nil?
82
+ # verify the required parameter 'section_index' is set
83
+ raise ArgumentError, 'Missing the required parameter section_index when calling WordsApi.insert_section_online' if api_client.config.client_side_validation && self.section_index.nil?
84
+
85
+ # resource path
86
+ local_var_path = '/words/online/post/sections/{sectionIndex}'[7..-1]
87
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('SectionIndex') + '}', self.section_index.nil? ? '' : self.section_index.to_s)
88
+ local_var_path = local_var_path.sub('//', '/')
89
+
90
+ # query parameters
91
+ query_params = {}
92
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
93
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
94
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
95
+ query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
96
+ query_params[downcase_first_letter('RevisionAuthor')] = self.revision_author unless self.revision_author.nil?
97
+ query_params[downcase_first_letter('RevisionDateTime')] = self.revision_date_time unless self.revision_date_time.nil?
98
+
99
+ if query_params
100
+ query_params.each { |key, value| local_var_path = api_client.add_param_to_query(local_var_path, key, value) }
101
+ end
102
+
103
+ header_params = {}
104
+ # header parameters
105
+ # HTTP header 'Content-Type'
106
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
107
+ header_params['RequestId'] = requestId
108
+
109
+ if parentRequestId != nil
110
+ header_params['DependsOn'] = parentRequestId
111
+ end
112
+
113
+ # form parameters
114
+ form_params = []
115
+ files_content = []
116
+ if self.document.nil?
117
+ raise "Parameter Document is required."
118
+ end
119
+ unless self.document.nil?
120
+ form_params.push({:'Name' => 'document', :'Data' => self.document, :'MimeType' =>'application/octet-stream'})
121
+ end
122
+
123
+
124
+ # http body (model)
125
+ body = api_client.build_request_body_batch(header_params, form_params, files_content)
126
+ part = ""
127
+ part.concat("PUT".force_encoding('UTF-8'))
128
+ part.concat(" ".force_encoding('UTF-8'))
129
+ part.concat(local_var_path.force_encoding('UTF-8'))
130
+ part.concat(" \r\n".force_encoding('UTF-8'))
131
+
132
+ 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')) }
133
+ part.concat("\r\n".force_encoding('UTF-8'))
134
+ if body
135
+ if body.is_a?(Hash)
136
+ body.each do |key, value|
137
+ part.concat(value, "\r\n")
138
+ end
139
+ else
140
+ part.concat(body)
141
+ end
142
+ end
143
+ part
144
+ end
145
+
146
+ def create_http_request(api_client)
147
+ # verify the required parameter 'document' is set
148
+ raise ArgumentError, 'Missing the required parameter document when calling WordsApi.insert_section_online' if api_client.config.client_side_validation && self.document.nil?
149
+ # verify the required parameter 'section_index' is set
150
+ raise ArgumentError, 'Missing the required parameter section_index when calling WordsApi.insert_section_online' if api_client.config.client_side_validation && self.section_index.nil?
151
+
152
+ # resource path
153
+ local_var_path = '/words/online/post/sections/{sectionIndex}'[1..-1]
154
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('SectionIndex') + '}', self.section_index.nil? ? '' : self.section_index.to_s)
155
+ local_var_path = local_var_path.sub('//', '/')
156
+
157
+ # query parameters
158
+ query_params = {}
159
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
160
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
161
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
162
+ query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
163
+ query_params[downcase_first_letter('RevisionAuthor')] = self.revision_author unless self.revision_author.nil?
164
+ query_params[downcase_first_letter('RevisionDateTime')] = self.revision_date_time unless self.revision_date_time.nil?
165
+
166
+ # header parameters
167
+ header_params = {}
168
+ # HTTP header 'Content-Type'
169
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
170
+
171
+ # form parameters
172
+ form_params = []
173
+ files_content = []
174
+ if self.document.nil?
175
+ raise "Parameter Document is required."
176
+ end
177
+ unless self.document.nil?
178
+ form_params.push({:'Name' => 'document', :'Data' => self.document, :'MimeType' =>'application/octet-stream'})
179
+ end
180
+
181
+ body = api_client.build_request_body(header_params, form_params, files_content)
182
+ {
183
+ 'method': :PUT,
184
+ 'path': local_var_path,
185
+ 'header_params': header_params,
186
+ 'query_params': query_params,
187
+ 'body': body,
188
+ 'auth_names': ['JWT']
189
+ }
190
+ end
191
+
192
+ #
193
+ # Helper method to convert first letter to downcase
194
+ #
195
+ def downcase_first_letter(str)
196
+ str[0].downcase + str[1..-1]
197
+ end
198
+
199
+ # Get response type
200
+ def get_response_type
201
+ 'FILES_COLLECTION'
202
+ end
203
+ end
204
+ end
@@ -0,0 +1,203 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="insert_section_request.rb">
3
+ # Copyright (c) 2023 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 insert_section operation.
30
+ #
31
+ class InsertSectionRequest
32
+ # The filename of the input document.
33
+ attr_accessor :name
34
+
35
+ # The index to insert into.
36
+ attr_accessor :section_index
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 input document.
65
+ # @param section_index The index to insert into.
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:, section_index:, 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.section_index = section_index
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, requestId, parentRequestId = nil)
90
+ # verify the required parameter 'name' is set
91
+ raise ArgumentError, 'Missing the required parameter name when calling WordsApi.insert_section' if api_client.config.client_side_validation && self.name.nil?
92
+ # verify the required parameter 'section_index' is set
93
+ raise ArgumentError, 'Missing the required parameter section_index when calling WordsApi.insert_section' if api_client.config.client_side_validation && self.section_index.nil?
94
+
95
+ # resource path
96
+ local_var_path = '/words/{name}/sections/{sectionIndex}'[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('{' + downcase_first_letter('SectionIndex') + '}', self.section_index.nil? ? '' : self.section_index.to_s)
99
+ local_var_path = local_var_path.sub('//', '/')
100
+
101
+ # query parameters
102
+ query_params = {}
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'] = requestId
118
+
119
+ if parentRequestId != nil
120
+ header_params['DependsOn'] = parentRequestId
121
+ end
122
+
123
+ # form parameters
124
+ form_params = []
125
+ files_content = []
126
+
127
+ # http body (model)
128
+ body = api_client.build_request_body_batch(header_params, form_params, files_content)
129
+ part = ""
130
+ part.concat("POST".force_encoding('UTF-8'))
131
+ part.concat(" ".force_encoding('UTF-8'))
132
+ part.concat(local_var_path.force_encoding('UTF-8'))
133
+ part.concat(" \r\n".force_encoding('UTF-8'))
134
+
135
+ 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')) }
136
+ part.concat("\r\n".force_encoding('UTF-8'))
137
+ if body
138
+ if body.is_a?(Hash)
139
+ body.each do |key, value|
140
+ part.concat(value, "\r\n")
141
+ end
142
+ else
143
+ part.concat(body)
144
+ end
145
+ end
146
+ part
147
+ end
148
+
149
+ def create_http_request(api_client)
150
+ # verify the required parameter 'name' is set
151
+ raise ArgumentError, 'Missing the required parameter name when calling WordsApi.insert_section' if api_client.config.client_side_validation && self.name.nil?
152
+ # verify the required parameter 'section_index' is set
153
+ raise ArgumentError, 'Missing the required parameter section_index when calling WordsApi.insert_section' if api_client.config.client_side_validation && self.section_index.nil?
154
+
155
+ # resource path
156
+ local_var_path = '/words/{name}/sections/{sectionIndex}'[1..-1]
157
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
158
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('SectionIndex') + '}', self.section_index.nil? ? '' : self.section_index.to_s)
159
+ local_var_path = local_var_path.sub('//', '/')
160
+
161
+ # query parameters
162
+ query_params = {}
163
+ query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
164
+ query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
165
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
166
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
167
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
168
+ query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
169
+ query_params[downcase_first_letter('RevisionAuthor')] = self.revision_author unless self.revision_author.nil?
170
+ query_params[downcase_first_letter('RevisionDateTime')] = self.revision_date_time unless self.revision_date_time.nil?
171
+
172
+ # header parameters
173
+ header_params = {}
174
+ # HTTP header 'Content-Type'
175
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/xml', 'application/json'])
176
+
177
+ # form parameters
178
+ form_params = []
179
+ files_content = []
180
+ body = api_client.build_request_body(header_params, form_params, files_content)
181
+ {
182
+ 'method': :POST,
183
+ 'path': local_var_path,
184
+ 'header_params': header_params,
185
+ 'query_params': query_params,
186
+ 'body': body,
187
+ 'auth_names': ['JWT']
188
+ }
189
+ end
190
+
191
+ #
192
+ # Helper method to convert first letter to downcase
193
+ #
194
+ def downcase_first_letter(str)
195
+ str[0].downcase + str[1..-1]
196
+ end
197
+
198
+ # Get response type
199
+ def get_response_type
200
+ nil
201
+ end
202
+ end
203
+ end
@@ -80,12 +80,12 @@ module AsposeWordsCloud
80
80
  # Gets or sets a value indicating whether to use pretty formats output.
81
81
  attr_accessor :pretty_format
82
82
 
83
- # Gets the format of save.
84
- attr_accessor :save_format
85
-
86
83
  # Gets or sets a value indicating whether when true all images will be saved as WMF. This option might help to avoid WordPad warning messages.
87
84
  attr_accessor :save_images_as_wmf
88
85
 
86
+ # Gets the format of save.
87
+ attr_accessor :save_format
88
+
89
89
  class EnumAttributeValidator
90
90
  attr_reader :datatype
91
91
  attr_reader :allowable_values
@@ -127,8 +127,8 @@ module AsposeWordsCloud
127
127
  :'export_compact_size' => :'ExportCompactSize',
128
128
  :'export_images_for_old_readers' => :'ExportImagesForOldReaders',
129
129
  :'pretty_format' => :'PrettyFormat',
130
- :'save_format' => :'SaveFormat',
131
- :'save_images_as_wmf' => :'SaveImagesAsWmf'
130
+ :'save_images_as_wmf' => :'SaveImagesAsWmf',
131
+ :'save_format' => :'SaveFormat'
132
132
  }
133
133
  end
134
134
 
@@ -151,8 +151,8 @@ module AsposeWordsCloud
151
151
  :'export_compact_size' => :'BOOLEAN',
152
152
  :'export_images_for_old_readers' => :'BOOLEAN',
153
153
  :'pretty_format' => :'BOOLEAN',
154
- :'save_format' => :'String',
155
- :'save_images_as_wmf' => :'BOOLEAN'
154
+ :'save_images_as_wmf' => :'BOOLEAN',
155
+ :'save_format' => :'String'
156
156
  }
157
157
  end
158
158
 
@@ -335,8 +335,8 @@ module AsposeWordsCloud
335
335
  export_compact_size == other.export_compact_size &&
336
336
  export_images_for_old_readers == other.export_images_for_old_readers &&
337
337
  pretty_format == other.pretty_format &&
338
- save_format == other.save_format &&
339
- save_images_as_wmf == other.save_images_as_wmf
338
+ save_images_as_wmf == other.save_images_as_wmf &&
339
+ save_format == other.save_format
340
340
  end
341
341
 
342
342
  # @see the `==` method
@@ -348,7 +348,7 @@ module AsposeWordsCloud
348
348
  # Calculates hash code according to all attributes.
349
349
  # @return [Fixnum] Hash code
350
350
  def hash
351
- [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, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, export_compact_size, export_images_for_old_readers, pretty_format, save_format, save_images_as_wmf].hash
351
+ [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, update_created_time_property, update_fields, update_last_printed_property, update_last_saved_time_property, update_sdt_content, zip_output, export_compact_size, export_images_for_old_readers, pretty_format, save_images_as_wmf, save_format].hash
352
352
  end
353
353
 
354
354
  # Builds the object from hash
@@ -29,29 +29,29 @@ module AsposeWordsCloud
29
29
 
30
30
  # Result of saving.
31
31
  class SaveResult
32
- # Gets or sets the list of links to additional items (css, images etc).
33
- attr_accessor :additional_items
34
-
35
32
  # Gets or sets the link to destination document.
36
33
  attr_accessor :dest_document
37
34
 
38
35
  # Gets or sets the link to source document.
39
36
  attr_accessor :source_document
37
+
38
+ # Gets or sets the list of links to additional items (css, images etc).
39
+ attr_accessor :additional_items
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
41
41
  def self.attribute_map
42
42
  {
43
- :'additional_items' => :'AdditionalItems',
44
43
  :'dest_document' => :'DestDocument',
45
- :'source_document' => :'SourceDocument'
44
+ :'source_document' => :'SourceDocument',
45
+ :'additional_items' => :'AdditionalItems'
46
46
  }
47
47
  end
48
48
 
49
49
  # Attribute type mapping.
50
50
  def self.swagger_types
51
51
  {
52
- :'additional_items' => :'Array<FileLink>',
53
52
  :'dest_document' => :'FileLink',
54
- :'source_document' => :'FileLink'
53
+ :'source_document' => :'FileLink',
54
+ :'additional_items' => :'Array<FileLink>'
55
55
  }
56
56
  end
57
57
 
@@ -63,12 +63,6 @@ module AsposeWordsCloud
63
63
  # convert string to symbol for hash key
64
64
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
65
65
 
66
- if attributes.key?(:'AdditionalItems')
67
- if (value = attributes[:'AdditionalItems']).is_a?(Array)
68
- self.additional_items = value
69
- end
70
- end
71
-
72
66
  if attributes.key?(:'DestDocument')
73
67
  self.dest_document = attributes[:'DestDocument']
74
68
  end
@@ -76,6 +70,12 @@ module AsposeWordsCloud
76
70
  if attributes.key?(:'SourceDocument')
77
71
  self.source_document = attributes[:'SourceDocument']
78
72
  end
73
+
74
+ if attributes.key?(:'AdditionalItems')
75
+ if (value = attributes[:'AdditionalItems']).is_a?(Array)
76
+ self.additional_items = value
77
+ end
78
+ end
79
79
  end
80
80
 
81
81
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -96,9 +96,9 @@ module AsposeWordsCloud
96
96
  def ==(other)
97
97
  return true if self.equal?(other)
98
98
  self.class == other.class &&
99
- additional_items == other.additional_items &&
100
99
  dest_document == other.dest_document &&
101
- source_document == other.source_document
100
+ source_document == other.source_document &&
101
+ additional_items == other.additional_items
102
102
  end
103
103
 
104
104
  # @see the `==` method
@@ -110,7 +110,7 @@ module AsposeWordsCloud
110
110
  # Calculates hash code according to all attributes.
111
111
  # @return [Fixnum] Hash code
112
112
  def hash
113
- [additional_items, dest_document, source_document].hash
113
+ [dest_document, source_document, additional_items].hash
114
114
  end
115
115
 
116
116
  # Builds the object from hash
@@ -29,24 +29,24 @@ module AsposeWordsCloud
29
29
 
30
30
  # Result of search operation.
31
31
  class SearchResult
32
- # Gets or sets the link to result range end node.
33
- attr_accessor :range_end
34
-
35
32
  # Gets or sets the link to result range start node.
36
33
  attr_accessor :range_start
34
+
35
+ # Gets or sets the link to result range end node.
36
+ attr_accessor :range_end
37
37
  # Attribute mapping from ruby-style variable name to JSON key.
38
38
  def self.attribute_map
39
39
  {
40
- :'range_end' => :'RangeEnd',
41
- :'range_start' => :'RangeStart'
40
+ :'range_start' => :'RangeStart',
41
+ :'range_end' => :'RangeEnd'
42
42
  }
43
43
  end
44
44
 
45
45
  # Attribute type mapping.
46
46
  def self.swagger_types
47
47
  {
48
- :'range_end' => :'DocumentPosition',
49
- :'range_start' => :'DocumentPosition'
48
+ :'range_start' => :'DocumentPosition',
49
+ :'range_end' => :'DocumentPosition'
50
50
  }
51
51
  end
52
52
 
@@ -58,13 +58,13 @@ module AsposeWordsCloud
58
58
  # convert string to symbol for hash key
59
59
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
60
60
 
61
- if attributes.key?(:'RangeEnd')
62
- self.range_end = attributes[:'RangeEnd']
63
- end
64
-
65
61
  if attributes.key?(:'RangeStart')
66
62
  self.range_start = attributes[:'RangeStart']
67
63
  end
64
+
65
+ if attributes.key?(:'RangeEnd')
66
+ self.range_end = attributes[:'RangeEnd']
67
+ end
68
68
  end
69
69
 
70
70
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -85,8 +85,8 @@ module AsposeWordsCloud
85
85
  def ==(other)
86
86
  return true if self.equal?(other)
87
87
  self.class == other.class &&
88
- range_end == other.range_end &&
89
- range_start == other.range_start
88
+ range_start == other.range_start &&
89
+ range_end == other.range_end
90
90
  end
91
91
 
92
92
  # @see the `==` method
@@ -98,7 +98,7 @@ module AsposeWordsCloud
98
98
  # Calculates hash code according to all attributes.
99
99
  # @return [Fixnum] Hash code
100
100
  def hash
101
- [range_end, range_start].hash
101
+ [range_start, range_end].hash
102
102
  end
103
103
 
104
104
  # Builds the object from hash