aspose_words_cloud 23.1.0 → 23.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_words_cloud/api/words_api.rb +428 -0
  3. data/lib/aspose_words_cloud/models/requests/delete_structured_document_tag_online_request.rb +211 -0
  4. data/lib/aspose_words_cloud/models/requests/delete_structured_document_tag_request.rb +210 -0
  5. data/lib/aspose_words_cloud/models/requests/get_structured_document_tag_online_request.rb +190 -0
  6. data/lib/aspose_words_cloud/models/requests/get_structured_document_tag_request.rb +189 -0
  7. data/lib/aspose_words_cloud/models/requests/get_structured_document_tags_online_request.rb +179 -0
  8. data/lib/aspose_words_cloud/models/requests/get_structured_document_tags_request.rb +178 -0
  9. data/lib/aspose_words_cloud/models/requests/insert_structured_document_tag_online_request.rb +223 -0
  10. data/lib/aspose_words_cloud/models/requests/insert_structured_document_tag_request.rb +225 -0
  11. data/lib/aspose_words_cloud/models/requests/update_structured_document_tag_online_request.rb +234 -0
  12. data/lib/aspose_words_cloud/models/requests/update_structured_document_tag_request.rb +236 -0
  13. data/lib/aspose_words_cloud/models/responses/insert_structured_document_tag_online_response.rb +46 -0
  14. data/lib/aspose_words_cloud/models/responses/update_structured_document_tag_online_response.rb +46 -0
  15. data/lib/aspose_words_cloud/models/structured_document_tag.rb +564 -0
  16. data/lib/aspose_words_cloud/models/structured_document_tag_collection.rb +216 -0
  17. data/lib/aspose_words_cloud/models/structured_document_tag_insert.rb +564 -0
  18. data/lib/aspose_words_cloud/models/structured_document_tag_list_item.rb +214 -0
  19. data/lib/aspose_words_cloud/models/structured_document_tag_response.rb +214 -0
  20. data/lib/aspose_words_cloud/models/structured_document_tag_update.rb +564 -0
  21. data/lib/aspose_words_cloud/models/structured_document_tags_response.rb +214 -0
  22. data/lib/aspose_words_cloud/version.rb +1 -1
  23. data/lib/aspose_words_cloud.rb +17 -0
  24. metadata +21 -2
@@ -0,0 +1,223 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="insert_structured_document_tag_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_structured_document_tag_online operation.
30
+ #
31
+ class InsertStructuredDocumentTagOnlineRequest
32
+ # The document.
33
+ attr_accessor :document
34
+
35
+ # Structured document tag parameters.
36
+ attr_accessor :structured_document_tag
37
+
38
+ # The path to the node in the document tree.
39
+ attr_accessor :node_path
40
+
41
+ # Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
42
+ attr_accessor :load_encoding
43
+
44
+ # 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.
45
+ attr_accessor :password
46
+
47
+ # Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
48
+ attr_accessor :encrypted_password
49
+
50
+ # 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.
51
+ attr_accessor :dest_file_name
52
+
53
+ # 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.
54
+ attr_accessor :revision_author
55
+
56
+ # The date and time to use for revisions.
57
+ attr_accessor :revision_date_time
58
+
59
+ #
60
+ # Initializes a new instance.
61
+ # @param document The document.
62
+ # @param structured_document_tag Structured document tag parameters.
63
+ # @param node_path The path to the node in the document tree.
64
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
65
+ # @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.
66
+ # @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.
67
+ # @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.
68
+ # @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.
69
+ # @param revision_date_time The date and time to use for revisions.
70
+
71
+ def initialize(document:, structured_document_tag:, node_path: nil, load_encoding: nil, password: nil, encrypted_password: nil, dest_file_name: nil, revision_author: nil, revision_date_time: nil)
72
+ self.document = document
73
+ self.structured_document_tag = structured_document_tag
74
+ self.node_path = node_path
75
+ self.load_encoding = load_encoding
76
+ self.password = password
77
+ self.encrypted_password = encrypted_password
78
+ self.dest_file_name = dest_file_name
79
+ self.revision_author = revision_author
80
+ self.revision_date_time = revision_date_time
81
+ end
82
+
83
+ # Creating batch part from request
84
+ def to_batch_part(api_client, requestId, parentRequestId = nil)
85
+ # verify the required parameter 'document' is set
86
+ raise ArgumentError, 'Missing the required parameter document when calling WordsApi.insert_structured_document_tag_online' if api_client.config.client_side_validation && self.document.nil?
87
+ # verify the required parameter 'structured_document_tag' is set
88
+ raise ArgumentError, 'Missing the required parameter structured_document_tag when calling WordsApi.insert_structured_document_tag_online' if api_client.config.client_side_validation && self.structured_document_tag.nil?
89
+
90
+ # resource path
91
+ local_var_path = '/words/online/post/{nodePath}/sdt'[7..-1]
92
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('NodePath') + '}', self.node_path.nil? ? '' : self.node_path.to_s)
93
+ local_var_path = local_var_path.sub('//', '/')
94
+
95
+ # query parameters
96
+ query_params = {}
97
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
98
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
99
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
100
+ query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
101
+ query_params[downcase_first_letter('RevisionAuthor')] = self.revision_author unless self.revision_author.nil?
102
+ query_params[downcase_first_letter('RevisionDateTime')] = self.revision_date_time unless self.revision_date_time.nil?
103
+
104
+ if query_params
105
+ query_params.each { |key, value| local_var_path = api_client.add_param_to_query(local_var_path, key, value) }
106
+ end
107
+
108
+ header_params = {}
109
+ # header parameters
110
+ # HTTP header 'Content-Type'
111
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
112
+ header_params['RequestId'] = requestId
113
+
114
+ if parentRequestId != nil
115
+ header_params['DependsOn'] = parentRequestId
116
+ end
117
+
118
+ # form parameters
119
+ form_params = []
120
+ files_content = []
121
+ if self.document.nil?
122
+ raise "Parameter Document is required."
123
+ end
124
+ unless self.document.nil?
125
+ form_params.push({:'Name' => 'document', :'Data' => self.document, :'MimeType' =>'application/octet-stream'})
126
+ end
127
+
128
+ if self.structured_document_tag.nil?
129
+ raise "Parameter StructuredDocumentTag is required."
130
+ end
131
+ unless self.structured_document_tag.nil?
132
+ form_params.push({:'Name' => 'structuredDocumentTag', :'Data' => self.structured_document_tag.to_body.to_json, :'MimeType' =>'application/json'})
133
+ end
134
+
135
+
136
+ # http body (model)
137
+ body = api_client.build_request_body_batch(header_params, form_params, files_content)
138
+ part = ""
139
+ part.concat("PUT".force_encoding('UTF-8'))
140
+ part.concat(" ".force_encoding('UTF-8'))
141
+ part.concat(local_var_path.force_encoding('UTF-8'))
142
+ part.concat(" \r\n".force_encoding('UTF-8'))
143
+
144
+ 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')) }
145
+ part.concat("\r\n".force_encoding('UTF-8'))
146
+ if body
147
+ if body.is_a?(Hash)
148
+ body.each do |key, value|
149
+ part.concat(value, "\r\n")
150
+ end
151
+ else
152
+ part.concat(body)
153
+ end
154
+ end
155
+ part
156
+ end
157
+
158
+ def create_http_request(api_client)
159
+ # verify the required parameter 'document' is set
160
+ raise ArgumentError, 'Missing the required parameter document when calling WordsApi.insert_structured_document_tag_online' if api_client.config.client_side_validation && self.document.nil?
161
+ # verify the required parameter 'structured_document_tag' is set
162
+ raise ArgumentError, 'Missing the required parameter structured_document_tag when calling WordsApi.insert_structured_document_tag_online' if api_client.config.client_side_validation && self.structured_document_tag.nil?
163
+
164
+ # resource path
165
+ local_var_path = '/words/online/post/{nodePath}/sdt'[1..-1]
166
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('NodePath') + '}', self.node_path.nil? ? '' : self.node_path.to_s)
167
+ local_var_path = local_var_path.sub('//', '/')
168
+
169
+ # query parameters
170
+ query_params = {}
171
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
172
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
173
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
174
+ query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
175
+ query_params[downcase_first_letter('RevisionAuthor')] = self.revision_author unless self.revision_author.nil?
176
+ query_params[downcase_first_letter('RevisionDateTime')] = self.revision_date_time unless self.revision_date_time.nil?
177
+
178
+ # header parameters
179
+ header_params = {}
180
+ # HTTP header 'Content-Type'
181
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
182
+
183
+ # form parameters
184
+ form_params = []
185
+ files_content = []
186
+ if self.document.nil?
187
+ raise "Parameter Document is required."
188
+ end
189
+ unless self.document.nil?
190
+ form_params.push({:'Name' => 'document', :'Data' => self.document, :'MimeType' =>'application/octet-stream'})
191
+ end
192
+
193
+ if self.structured_document_tag.nil?
194
+ raise "Parameter StructuredDocumentTag is required."
195
+ end
196
+ unless self.structured_document_tag.nil?
197
+ form_params.push({:'Name' => 'structuredDocumentTag', :'Data' => self.structured_document_tag.to_body.to_json, :'MimeType' =>'application/json'})
198
+ end
199
+
200
+ body = api_client.build_request_body(header_params, form_params, files_content)
201
+ {
202
+ 'method': :PUT,
203
+ 'path': local_var_path,
204
+ 'header_params': header_params,
205
+ 'query_params': query_params,
206
+ 'body': body,
207
+ 'auth_names': ['JWT']
208
+ }
209
+ end
210
+
211
+ #
212
+ # Helper method to convert first letter to downcase
213
+ #
214
+ def downcase_first_letter(str)
215
+ str[0].downcase + str[1..-1]
216
+ end
217
+
218
+ # Get response type
219
+ def get_response_type
220
+ 'InsertStructuredDocumentTagOnlineResponse'
221
+ end
222
+ end
223
+ end
@@ -0,0 +1,225 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="insert_structured_document_tag_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_structured_document_tag operation.
30
+ #
31
+ class InsertStructuredDocumentTagRequest
32
+ # The filename of the input document.
33
+ attr_accessor :name
34
+
35
+ # Structured document tag parameters.
36
+ attr_accessor :structured_document_tag
37
+
38
+ # The path to the node in the document tree.
39
+ attr_accessor :node_path
40
+
41
+ # Original document folder.
42
+ attr_accessor :folder
43
+
44
+ # Original document storage.
45
+ attr_accessor :storage
46
+
47
+ # Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
48
+ attr_accessor :load_encoding
49
+
50
+ # 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.
51
+ attr_accessor :password
52
+
53
+ # Password of protected Word document. Use the parameter to pass an encrypted password for direct calls of API. See SDK code for encyption details.
54
+ attr_accessor :encrypted_password
55
+
56
+ # 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.
57
+ attr_accessor :dest_file_name
58
+
59
+ # 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.
60
+ attr_accessor :revision_author
61
+
62
+ # The date and time to use for revisions.
63
+ attr_accessor :revision_date_time
64
+
65
+ #
66
+ # Initializes a new instance.
67
+ # @param name The filename of the input document.
68
+ # @param structured_document_tag Structured document tag parameters.
69
+ # @param node_path The path to the node in the document tree.
70
+ # @param folder Original document folder.
71
+ # @param storage Original document storage.
72
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
73
+ # @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.
74
+ # @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.
75
+ # @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.
76
+ # @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.
77
+ # @param revision_date_time The date and time to use for revisions.
78
+
79
+ def initialize(name:, structured_document_tag:, node_path: nil, folder: nil, storage: nil, load_encoding: nil, password: nil, encrypted_password: nil, dest_file_name: nil, revision_author: nil, revision_date_time: nil)
80
+ self.name = name
81
+ self.structured_document_tag = structured_document_tag
82
+ self.node_path = node_path
83
+ self.folder = folder
84
+ self.storage = storage
85
+ self.load_encoding = load_encoding
86
+ self.password = password
87
+ self.encrypted_password = encrypted_password
88
+ self.dest_file_name = dest_file_name
89
+ self.revision_author = revision_author
90
+ self.revision_date_time = revision_date_time
91
+ end
92
+
93
+ # Creating batch part from request
94
+ def to_batch_part(api_client, requestId, parentRequestId = nil)
95
+ # verify the required parameter 'name' is set
96
+ raise ArgumentError, 'Missing the required parameter name when calling WordsApi.insert_structured_document_tag' if api_client.config.client_side_validation && self.name.nil?
97
+ # verify the required parameter 'structured_document_tag' is set
98
+ raise ArgumentError, 'Missing the required parameter structured_document_tag when calling WordsApi.insert_structured_document_tag' if api_client.config.client_side_validation && self.structured_document_tag.nil?
99
+
100
+ # resource path
101
+ local_var_path = '/words/{name}/{nodePath}/sdt'[7..-1]
102
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
103
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('NodePath') + '}', self.node_path.nil? ? '' : self.node_path.to_s)
104
+ local_var_path = local_var_path.sub('//', '/')
105
+
106
+ # query parameters
107
+ query_params = {}
108
+ query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
109
+ query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
110
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
111
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
112
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
113
+ query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
114
+ query_params[downcase_first_letter('RevisionAuthor')] = self.revision_author unless self.revision_author.nil?
115
+ query_params[downcase_first_letter('RevisionDateTime')] = self.revision_date_time unless self.revision_date_time.nil?
116
+
117
+ if query_params
118
+ query_params.each { |key, value| local_var_path = api_client.add_param_to_query(local_var_path, key, value) }
119
+ end
120
+
121
+ header_params = {}
122
+ # header parameters
123
+ # HTTP header 'Content-Type'
124
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/xml', 'application/json'])
125
+ header_params['RequestId'] = requestId
126
+
127
+ if parentRequestId != nil
128
+ header_params['DependsOn'] = parentRequestId
129
+ end
130
+
131
+ # form parameters
132
+ form_params = []
133
+ files_content = []
134
+ if self.structured_document_tag.nil?
135
+ raise "Parameter StructuredDocumentTag is required."
136
+ end
137
+ unless self.structured_document_tag.nil?
138
+ form_params.push({:'Name' => 'structuredDocumentTag', :'Data' => self.structured_document_tag.to_body.to_json, :'MimeType' =>'application/json'})
139
+ end
140
+
141
+
142
+ # http body (model)
143
+ body = api_client.build_request_body_batch(header_params, form_params, files_content)
144
+ part = ""
145
+ part.concat("POST".force_encoding('UTF-8'))
146
+ part.concat(" ".force_encoding('UTF-8'))
147
+ part.concat(local_var_path.force_encoding('UTF-8'))
148
+ part.concat(" \r\n".force_encoding('UTF-8'))
149
+
150
+ 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')) }
151
+ part.concat("\r\n".force_encoding('UTF-8'))
152
+ if body
153
+ if body.is_a?(Hash)
154
+ body.each do |key, value|
155
+ part.concat(value, "\r\n")
156
+ end
157
+ else
158
+ part.concat(body)
159
+ end
160
+ end
161
+ part
162
+ end
163
+
164
+ def create_http_request(api_client)
165
+ # verify the required parameter 'name' is set
166
+ raise ArgumentError, 'Missing the required parameter name when calling WordsApi.insert_structured_document_tag' if api_client.config.client_side_validation && self.name.nil?
167
+ # verify the required parameter 'structured_document_tag' is set
168
+ raise ArgumentError, 'Missing the required parameter structured_document_tag when calling WordsApi.insert_structured_document_tag' if api_client.config.client_side_validation && self.structured_document_tag.nil?
169
+
170
+ # resource path
171
+ local_var_path = '/words/{name}/{nodePath}/sdt'[1..-1]
172
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
173
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('NodePath') + '}', self.node_path.nil? ? '' : self.node_path.to_s)
174
+ local_var_path = local_var_path.sub('//', '/')
175
+
176
+ # query parameters
177
+ query_params = {}
178
+ query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
179
+ query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
180
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
181
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
182
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
183
+ query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
184
+ query_params[downcase_first_letter('RevisionAuthor')] = self.revision_author unless self.revision_author.nil?
185
+ query_params[downcase_first_letter('RevisionDateTime')] = self.revision_date_time unless self.revision_date_time.nil?
186
+
187
+ # header parameters
188
+ header_params = {}
189
+ # HTTP header 'Content-Type'
190
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/xml', 'application/json'])
191
+
192
+ # form parameters
193
+ form_params = []
194
+ files_content = []
195
+ if self.structured_document_tag.nil?
196
+ raise "Parameter StructuredDocumentTag is required."
197
+ end
198
+ unless self.structured_document_tag.nil?
199
+ form_params.push({:'Name' => 'structuredDocumentTag', :'Data' => self.structured_document_tag.to_body.to_json, :'MimeType' =>'application/json'})
200
+ end
201
+
202
+ body = api_client.build_request_body(header_params, form_params, files_content)
203
+ {
204
+ 'method': :POST,
205
+ 'path': local_var_path,
206
+ 'header_params': header_params,
207
+ 'query_params': query_params,
208
+ 'body': body,
209
+ 'auth_names': ['JWT']
210
+ }
211
+ end
212
+
213
+ #
214
+ # Helper method to convert first letter to downcase
215
+ #
216
+ def downcase_first_letter(str)
217
+ str[0].downcase + str[1..-1]
218
+ end
219
+
220
+ # Get response type
221
+ def get_response_type
222
+ 'StructuredDocumentTagResponse'
223
+ end
224
+ end
225
+ end