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,189 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="get_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 get_structured_document_tag operation.
30
+ #
31
+ class GetStructuredDocumentTagRequest
32
+ # The filename of the input document.
33
+ attr_accessor :name
34
+
35
+ # Object index.
36
+ attr_accessor :index
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
+ #
57
+ # Initializes a new instance.
58
+ # @param name The filename of the input document.
59
+ # @param index Object index.
60
+ # @param node_path The path to the node in the document tree.
61
+ # @param folder Original document folder.
62
+ # @param storage Original document storage.
63
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
64
+ # @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.
65
+ # @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.
66
+
67
+ def initialize(name:, index:, node_path: nil, folder: nil, storage: nil, load_encoding: nil, password: nil, encrypted_password: nil)
68
+ self.name = name
69
+ self.index = index
70
+ self.node_path = node_path
71
+ self.folder = folder
72
+ self.storage = storage
73
+ self.load_encoding = load_encoding
74
+ self.password = password
75
+ self.encrypted_password = encrypted_password
76
+ end
77
+
78
+ # Creating batch part from request
79
+ def to_batch_part(api_client, requestId, parentRequestId = nil)
80
+ # verify the required parameter 'name' is set
81
+ raise ArgumentError, 'Missing the required parameter name when calling WordsApi.get_structured_document_tag' if api_client.config.client_side_validation && self.name.nil?
82
+ # verify the required parameter 'index' is set
83
+ raise ArgumentError, 'Missing the required parameter index when calling WordsApi.get_structured_document_tag' if api_client.config.client_side_validation && self.index.nil?
84
+
85
+ # resource path
86
+ local_var_path = '/words/{name}/{nodePath}/sdt/{index}'[7..-1]
87
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
88
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Index') + '}', self.index.nil? ? '' : self.index.to_s)
89
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('NodePath') + '}', self.node_path.nil? ? '' : self.node_path.to_s)
90
+ local_var_path = local_var_path.sub('//', '/')
91
+
92
+ # query parameters
93
+ query_params = {}
94
+ query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
95
+ query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
96
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
97
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
98
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
99
+
100
+ if query_params
101
+ query_params.each { |key, value| local_var_path = api_client.add_param_to_query(local_var_path, key, value) }
102
+ end
103
+
104
+ header_params = {}
105
+ header_params['RequestId'] = requestId
106
+
107
+ if parentRequestId != nil
108
+ header_params['DependsOn'] = parentRequestId
109
+ end
110
+
111
+ # form parameters
112
+ form_params = []
113
+ files_content = []
114
+
115
+ # http body (model)
116
+ body = api_client.build_request_body_batch(header_params, form_params, files_content)
117
+ part = ""
118
+ part.concat("GET".force_encoding('UTF-8'))
119
+ part.concat(" ".force_encoding('UTF-8'))
120
+ part.concat(local_var_path.force_encoding('UTF-8'))
121
+ part.concat(" \r\n".force_encoding('UTF-8'))
122
+
123
+ 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')) }
124
+ part.concat("\r\n".force_encoding('UTF-8'))
125
+ if body
126
+ if body.is_a?(Hash)
127
+ body.each do |key, value|
128
+ part.concat(value, "\r\n")
129
+ end
130
+ else
131
+ part.concat(body)
132
+ end
133
+ end
134
+ part
135
+ end
136
+
137
+ def create_http_request(api_client)
138
+ # verify the required parameter 'name' is set
139
+ raise ArgumentError, 'Missing the required parameter name when calling WordsApi.get_structured_document_tag' if api_client.config.client_side_validation && self.name.nil?
140
+ # verify the required parameter 'index' is set
141
+ raise ArgumentError, 'Missing the required parameter index when calling WordsApi.get_structured_document_tag' if api_client.config.client_side_validation && self.index.nil?
142
+
143
+ # resource path
144
+ local_var_path = '/words/{name}/{nodePath}/sdt/{index}'[1..-1]
145
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
146
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Index') + '}', self.index.nil? ? '' : self.index.to_s)
147
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('NodePath') + '}', self.node_path.nil? ? '' : self.node_path.to_s)
148
+ local_var_path = local_var_path.sub('//', '/')
149
+
150
+ # query parameters
151
+ query_params = {}
152
+ query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
153
+ query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
154
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
155
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
156
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
157
+
158
+ # header parameters
159
+ header_params = {}
160
+ # HTTP header 'Content-Type'
161
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/xml', 'application/json'])
162
+
163
+ # form parameters
164
+ form_params = []
165
+ files_content = []
166
+ body = api_client.build_request_body(header_params, form_params, files_content)
167
+ {
168
+ 'method': :GET,
169
+ 'path': local_var_path,
170
+ 'header_params': header_params,
171
+ 'query_params': query_params,
172
+ 'body': body,
173
+ 'auth_names': ['JWT']
174
+ }
175
+ end
176
+
177
+ #
178
+ # Helper method to convert first letter to downcase
179
+ #
180
+ def downcase_first_letter(str)
181
+ str[0].downcase + str[1..-1]
182
+ end
183
+
184
+ # Get response type
185
+ def get_response_type
186
+ 'StructuredDocumentTagResponse'
187
+ end
188
+ end
189
+ end
@@ -0,0 +1,179 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="get_structured_document_tags_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 get_structured_document_tags_online operation.
30
+ #
31
+ class GetStructuredDocumentTagsOnlineRequest
32
+ # The document.
33
+ attr_accessor :document
34
+
35
+ # The path to the node in the document tree.
36
+ attr_accessor :node_path
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
+ #
48
+ # Initializes a new instance.
49
+ # @param document The document.
50
+ # @param node_path The path to the node in the document tree.
51
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
52
+ # @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.
53
+ # @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.
54
+
55
+ def initialize(document:, node_path: nil, load_encoding: nil, password: nil, encrypted_password: nil)
56
+ self.document = document
57
+ self.node_path = node_path
58
+ self.load_encoding = load_encoding
59
+ self.password = password
60
+ self.encrypted_password = encrypted_password
61
+ end
62
+
63
+ # Creating batch part from request
64
+ def to_batch_part(api_client, requestId, parentRequestId = nil)
65
+ # verify the required parameter 'document' is set
66
+ raise ArgumentError, 'Missing the required parameter document when calling WordsApi.get_structured_document_tags_online' if api_client.config.client_side_validation && self.document.nil?
67
+
68
+ # resource path
69
+ local_var_path = '/words/online/get/{nodePath}/sdt'[7..-1]
70
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('NodePath') + '}', self.node_path.nil? ? '' : self.node_path.to_s)
71
+ local_var_path = local_var_path.sub('//', '/')
72
+
73
+ # query parameters
74
+ query_params = {}
75
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
76
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
77
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
78
+
79
+ if query_params
80
+ query_params.each { |key, value| local_var_path = api_client.add_param_to_query(local_var_path, key, value) }
81
+ end
82
+
83
+ header_params = {}
84
+ # header parameters
85
+ # HTTP header 'Content-Type'
86
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
87
+ header_params['RequestId'] = requestId
88
+
89
+ if parentRequestId != nil
90
+ header_params['DependsOn'] = parentRequestId
91
+ end
92
+
93
+ # form parameters
94
+ form_params = []
95
+ files_content = []
96
+ if self.document.nil?
97
+ raise "Parameter Document is required."
98
+ end
99
+ unless self.document.nil?
100
+ form_params.push({:'Name' => 'document', :'Data' => self.document, :'MimeType' =>'application/octet-stream'})
101
+ end
102
+
103
+
104
+ # http body (model)
105
+ body = api_client.build_request_body_batch(header_params, form_params, files_content)
106
+ part = ""
107
+ part.concat("PUT".force_encoding('UTF-8'))
108
+ part.concat(" ".force_encoding('UTF-8'))
109
+ part.concat(local_var_path.force_encoding('UTF-8'))
110
+ part.concat(" \r\n".force_encoding('UTF-8'))
111
+
112
+ 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')) }
113
+ part.concat("\r\n".force_encoding('UTF-8'))
114
+ if body
115
+ if body.is_a?(Hash)
116
+ body.each do |key, value|
117
+ part.concat(value, "\r\n")
118
+ end
119
+ else
120
+ part.concat(body)
121
+ end
122
+ end
123
+ part
124
+ end
125
+
126
+ def create_http_request(api_client)
127
+ # verify the required parameter 'document' is set
128
+ raise ArgumentError, 'Missing the required parameter document when calling WordsApi.get_structured_document_tags_online' if api_client.config.client_side_validation && self.document.nil?
129
+
130
+ # resource path
131
+ local_var_path = '/words/online/get/{nodePath}/sdt'[1..-1]
132
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('NodePath') + '}', self.node_path.nil? ? '' : self.node_path.to_s)
133
+ local_var_path = local_var_path.sub('//', '/')
134
+
135
+ # query parameters
136
+ query_params = {}
137
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
138
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
139
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
140
+
141
+ # header parameters
142
+ header_params = {}
143
+ # HTTP header 'Content-Type'
144
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
145
+
146
+ # form parameters
147
+ form_params = []
148
+ files_content = []
149
+ if self.document.nil?
150
+ raise "Parameter Document is required."
151
+ end
152
+ unless self.document.nil?
153
+ form_params.push({:'Name' => 'document', :'Data' => self.document, :'MimeType' =>'application/octet-stream'})
154
+ end
155
+
156
+ body = api_client.build_request_body(header_params, form_params, files_content)
157
+ {
158
+ 'method': :PUT,
159
+ 'path': local_var_path,
160
+ 'header_params': header_params,
161
+ 'query_params': query_params,
162
+ 'body': body,
163
+ 'auth_names': ['JWT']
164
+ }
165
+ end
166
+
167
+ #
168
+ # Helper method to convert first letter to downcase
169
+ #
170
+ def downcase_first_letter(str)
171
+ str[0].downcase + str[1..-1]
172
+ end
173
+
174
+ # Get response type
175
+ def get_response_type
176
+ 'StructuredDocumentTagsResponse'
177
+ end
178
+ end
179
+ end
@@ -0,0 +1,178 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="get_structured_document_tags_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 get_structured_document_tags operation.
30
+ #
31
+ class GetStructuredDocumentTagsRequest
32
+ # The filename of the input document.
33
+ attr_accessor :name
34
+
35
+ # The path to the node in the document tree.
36
+ attr_accessor :node_path
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
+ #
54
+ # Initializes a new instance.
55
+ # @param name The filename of the input document.
56
+ # @param node_path The path to the node in the document tree.
57
+ # @param folder Original document folder.
58
+ # @param storage Original document storage.
59
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
60
+ # @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.
61
+ # @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.
62
+
63
+ def initialize(name:, node_path: nil, folder: nil, storage: nil, load_encoding: nil, password: nil, encrypted_password: nil)
64
+ self.name = name
65
+ self.node_path = node_path
66
+ self.folder = folder
67
+ self.storage = storage
68
+ self.load_encoding = load_encoding
69
+ self.password = password
70
+ self.encrypted_password = encrypted_password
71
+ end
72
+
73
+ # Creating batch part from request
74
+ def to_batch_part(api_client, requestId, parentRequestId = nil)
75
+ # verify the required parameter 'name' is set
76
+ raise ArgumentError, 'Missing the required parameter name when calling WordsApi.get_structured_document_tags' if api_client.config.client_side_validation && self.name.nil?
77
+
78
+ # resource path
79
+ local_var_path = '/words/{name}/{nodePath}/sdt'[7..-1]
80
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
81
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('NodePath') + '}', self.node_path.nil? ? '' : self.node_path.to_s)
82
+ local_var_path = local_var_path.sub('//', '/')
83
+
84
+ # query parameters
85
+ query_params = {}
86
+ query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
87
+ query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
88
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
89
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
90
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
91
+
92
+ if query_params
93
+ query_params.each { |key, value| local_var_path = api_client.add_param_to_query(local_var_path, key, value) }
94
+ end
95
+
96
+ header_params = {}
97
+ header_params['RequestId'] = requestId
98
+
99
+ if parentRequestId != nil
100
+ header_params['DependsOn'] = parentRequestId
101
+ end
102
+
103
+ # form parameters
104
+ form_params = []
105
+ files_content = []
106
+
107
+ # http body (model)
108
+ body = api_client.build_request_body_batch(header_params, form_params, files_content)
109
+ part = ""
110
+ part.concat("GET".force_encoding('UTF-8'))
111
+ part.concat(" ".force_encoding('UTF-8'))
112
+ part.concat(local_var_path.force_encoding('UTF-8'))
113
+ part.concat(" \r\n".force_encoding('UTF-8'))
114
+
115
+ 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')) }
116
+ part.concat("\r\n".force_encoding('UTF-8'))
117
+ if body
118
+ if body.is_a?(Hash)
119
+ body.each do |key, value|
120
+ part.concat(value, "\r\n")
121
+ end
122
+ else
123
+ part.concat(body)
124
+ end
125
+ end
126
+ part
127
+ end
128
+
129
+ def create_http_request(api_client)
130
+ # verify the required parameter 'name' is set
131
+ raise ArgumentError, 'Missing the required parameter name when calling WordsApi.get_structured_document_tags' if api_client.config.client_side_validation && self.name.nil?
132
+
133
+ # resource path
134
+ local_var_path = '/words/{name}/{nodePath}/sdt'[1..-1]
135
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
136
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('NodePath') + '}', self.node_path.nil? ? '' : self.node_path.to_s)
137
+ local_var_path = local_var_path.sub('//', '/')
138
+
139
+ # query parameters
140
+ query_params = {}
141
+ query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
142
+ query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
143
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
144
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
145
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
146
+
147
+ # header parameters
148
+ header_params = {}
149
+ # HTTP header 'Content-Type'
150
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/xml', 'application/json'])
151
+
152
+ # form parameters
153
+ form_params = []
154
+ files_content = []
155
+ body = api_client.build_request_body(header_params, form_params, files_content)
156
+ {
157
+ 'method': :GET,
158
+ 'path': local_var_path,
159
+ 'header_params': header_params,
160
+ 'query_params': query_params,
161
+ 'body': body,
162
+ 'auth_names': ['JWT']
163
+ }
164
+ end
165
+
166
+ #
167
+ # Helper method to convert first letter to downcase
168
+ #
169
+ def downcase_first_letter(str)
170
+ str[0].downcase + str[1..-1]
171
+ end
172
+
173
+ # Get response type
174
+ def get_response_type
175
+ 'StructuredDocumentTagsResponse'
176
+ end
177
+ end
178
+ end