aspose_words_cloud 24.8.0 → 24.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (28) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_words_cloud/api/words_api.rb +260 -0
  3. data/lib/aspose_words_cloud/models/azw3_save_options_data.rb +15 -1
  4. data/lib/aspose_words_cloud/models/digital_signature_details.rb +218 -0
  5. data/lib/aspose_words_cloud/models/epub_save_options_data.rb +15 -1
  6. data/lib/aspose_words_cloud/models/html_save_options_data.rb +15 -1
  7. data/lib/aspose_words_cloud/models/mhtml_save_options_data.rb +15 -1
  8. data/lib/aspose_words_cloud/models/open_xps_save_options_data.rb +14 -1
  9. data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +13 -1
  10. data/lib/aspose_words_cloud/models/requests/execute_mail_merge_online_request.rb +8 -1
  11. data/lib/aspose_words_cloud/models/requests/execute_mail_merge_request.rb +8 -1
  12. data/lib/aspose_words_cloud/models/requests/get_signatures_online_request.rb +179 -0
  13. data/lib/aspose_words_cloud/models/requests/get_signatures_request.rb +178 -0
  14. data/lib/aspose_words_cloud/models/requests/remove_all_signatures_online_request.rb +186 -0
  15. data/lib/aspose_words_cloud/models/requests/remove_all_signatures_request.rb +185 -0
  16. data/lib/aspose_words_cloud/models/requests/sign_document_online_request.rb +208 -0
  17. data/lib/aspose_words_cloud/models/requests/sign_document_request.rb +207 -0
  18. data/lib/aspose_words_cloud/models/responses/remove_all_signatures_online_response.rb +47 -0
  19. data/lib/aspose_words_cloud/models/responses/sign_document_online_response.rb +47 -0
  20. data/lib/aspose_words_cloud/models/sign_options.rb +254 -0
  21. data/lib/aspose_words_cloud/models/signature.rb +267 -0
  22. data/lib/aspose_words_cloud/models/signature_collection_response.rb +236 -0
  23. data/lib/aspose_words_cloud/models/xaml_flow_pack_save_options_data.rb +15 -1
  24. data/lib/aspose_words_cloud/models/xaml_flow_save_options_data.rb +15 -1
  25. data/lib/aspose_words_cloud/models/xps_save_options_data.rb +14 -1
  26. data/lib/aspose_words_cloud/version.rb +1 -1
  27. data/lib/aspose_words_cloud.rb +10 -0
  28. metadata +14 -2
@@ -0,0 +1,208 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="sign_document_online_request.rb">
3
+ # Copyright (c) 2024 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 sign_document_online operation.
30
+ #
31
+ class SignDocumentOnlineRequest
32
+ # The document.
33
+ attr_accessor :document
34
+
35
+ # certifate file path.
36
+ attr_accessor :certificate_path
37
+
38
+ # certificate password.
39
+ attr_accessor :certificate_password
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
+ # The value indicates whether OpenType support is on.
51
+ attr_accessor :open_type_support
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
+ #
57
+ # Initializes a new instance.
58
+ # @param document The document.
59
+ # @param certificate_path certifate file path.
60
+ # @param certificate_password certificate password.
61
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
62
+ # @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.
63
+ # @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.
64
+ # @param open_type_support The value indicates whether OpenType support is on.
65
+ # @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.
66
+
67
+ def initialize(document:, certificate_path:, certificate_password:, load_encoding: nil, password: nil, encrypted_password: nil, open_type_support: nil, dest_file_name: nil)
68
+ self.document = document
69
+ self.certificate_path = certificate_path
70
+ self.certificate_password = certificate_password
71
+ self.load_encoding = load_encoding
72
+ self.password = password
73
+ self.encrypted_password = encrypted_password
74
+ self.open_type_support = open_type_support
75
+ self.dest_file_name = dest_file_name
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.sign_document_online' if api_client.config.client_side_validation && self.document.nil?
82
+ # verify the required parameter 'certificate_path' is set
83
+ raise ArgumentError, 'Missing the required parameter certificate_path when calling WordsApi.sign_document_online' if api_client.config.client_side_validation && self.certificate_path.nil?
84
+ # verify the required parameter 'certificate_password' is set
85
+ raise ArgumentError, 'Missing the required parameter certificate_password when calling WordsApi.sign_document_online' if api_client.config.client_side_validation && self.certificate_password.nil?
86
+
87
+ # resource path
88
+ local_var_path = '/words/online/post/signatures'[7..-1]
89
+ local_var_path = local_var_path.sub('//', '/')
90
+
91
+ # query parameters
92
+ query_params = {}
93
+ query_params[downcase_first_letter('CertificatePath')] = self.certificate_path
94
+ query_params[downcase_first_letter('CertificatePassword')] = self.certificate_password
95
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
96
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
97
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
98
+ query_params[downcase_first_letter('OpenTypeSupport')] = self.open_type_support unless self.open_type_support.nil?
99
+ query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
100
+
101
+ if query_params
102
+ query_params.each { |key, value| local_var_path = api_client.add_param_to_query(local_var_path, key, value) }
103
+ end
104
+
105
+ header_params = {}
106
+ # header parameters
107
+ # HTTP header 'Content-Type'
108
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
109
+ header_params['RequestId'] = requestId
110
+
111
+ if parentRequestId != nil
112
+ header_params['DependsOn'] = parentRequestId
113
+ end
114
+
115
+ # form parameters
116
+ form_params = []
117
+ files_content = []
118
+ if self.document.nil?
119
+ raise "Parameter Document is required."
120
+ end
121
+ unless self.document.nil?
122
+ form_params.push({:'Name' => 'document', :'Data' => self.document, :'MimeType' =>'application/octet-stream'})
123
+ end
124
+
125
+
126
+ # http body (model)
127
+ body = api_client.build_request_body_batch(header_params, form_params, files_content)
128
+ part = ""
129
+ part.concat("PUT".force_encoding('UTF-8'))
130
+ part.concat(" ".force_encoding('UTF-8'))
131
+ part.concat(local_var_path.force_encoding('UTF-8'))
132
+ part.concat(" \r\n".force_encoding('UTF-8'))
133
+
134
+ 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')) }
135
+ part.concat("\r\n".force_encoding('UTF-8'))
136
+ if body
137
+ if body.is_a?(Hash)
138
+ body.each do |key, value|
139
+ part.concat(value, "\r\n")
140
+ end
141
+ else
142
+ part.concat(body)
143
+ end
144
+ end
145
+ part
146
+ end
147
+
148
+ def create_http_request(api_client)
149
+ # verify the required parameter 'document' is set
150
+ raise ArgumentError, 'Missing the required parameter document when calling WordsApi.sign_document_online' if api_client.config.client_side_validation && self.document.nil?
151
+ # verify the required parameter 'certificate_path' is set
152
+ raise ArgumentError, 'Missing the required parameter certificate_path when calling WordsApi.sign_document_online' if api_client.config.client_side_validation && self.certificate_path.nil?
153
+ # verify the required parameter 'certificate_password' is set
154
+ raise ArgumentError, 'Missing the required parameter certificate_password when calling WordsApi.sign_document_online' if api_client.config.client_side_validation && self.certificate_password.nil?
155
+
156
+ # resource path
157
+ local_var_path = '/words/online/post/signatures'[1..-1]
158
+ local_var_path = local_var_path.sub('//', '/')
159
+
160
+ # query parameters
161
+ query_params = {}
162
+ query_params[downcase_first_letter('CertificatePath')] = self.certificate_path
163
+ query_params[downcase_first_letter('CertificatePassword')] = self.certificate_password
164
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
165
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
166
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
167
+ query_params[downcase_first_letter('OpenTypeSupport')] = self.open_type_support unless self.open_type_support.nil?
168
+ query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
169
+
170
+ # header parameters
171
+ header_params = {}
172
+ # HTTP header 'Content-Type'
173
+ header_params['Content-Type'] = api_client.select_header_content_type(['multipart/form-data'])
174
+
175
+ # form parameters
176
+ form_params = []
177
+ files_content = []
178
+ if self.document.nil?
179
+ raise "Parameter Document is required."
180
+ end
181
+ unless self.document.nil?
182
+ form_params.push({:'Name' => 'document', :'Data' => self.document, :'MimeType' =>'application/octet-stream'})
183
+ end
184
+
185
+ body = api_client.build_request_body(header_params, form_params, files_content)
186
+ {
187
+ 'method': :PUT,
188
+ 'path': local_var_path,
189
+ 'header_params': header_params,
190
+ 'query_params': query_params,
191
+ 'body': body,
192
+ 'auth_names': ['JWT']
193
+ }
194
+ end
195
+
196
+ #
197
+ # Helper method to convert first letter to downcase
198
+ #
199
+ def downcase_first_letter(str)
200
+ str[0].downcase + str[1..-1]
201
+ end
202
+
203
+ # Get response type
204
+ def get_response_type
205
+ 'SignDocumentOnlineResponse'
206
+ end
207
+ end
208
+ end
@@ -0,0 +1,207 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="sign_document_request.rb">
3
+ # Copyright (c) 2024 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 sign_document operation.
30
+ #
31
+ class SignDocumentRequest
32
+ # Name of the document to sign.
33
+ attr_accessor :name
34
+
35
+ # certifate file path.
36
+ attr_accessor :certificate_path
37
+
38
+ # certificate password.
39
+ attr_accessor :certificate_password
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
+ # The value indicates whether OpenType support is on.
57
+ attr_accessor :open_type_support
58
+
59
+ # 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.
60
+ attr_accessor :dest_file_name
61
+
62
+ #
63
+ # Initializes a new instance.
64
+ # @param name Name of the document to sign.
65
+ # @param certificate_path certifate file path.
66
+ # @param certificate_password certificate password.
67
+ # @param folder Original document folder.
68
+ # @param storage Original document storage.
69
+ # @param load_encoding Encoding that will be used to load an HTML (or TXT) document if the encoding is not specified in HTML.
70
+ # @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.
71
+ # @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.
72
+ # @param open_type_support The value indicates whether OpenType support is on.
73
+ # @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.
74
+
75
+ def initialize(name:, certificate_path:, certificate_password:, folder: nil, storage: nil, load_encoding: nil, password: nil, encrypted_password: nil, open_type_support: nil, dest_file_name: nil)
76
+ self.name = name
77
+ self.certificate_path = certificate_path
78
+ self.certificate_password = certificate_password
79
+ self.folder = folder
80
+ self.storage = storage
81
+ self.load_encoding = load_encoding
82
+ self.password = password
83
+ self.encrypted_password = encrypted_password
84
+ self.open_type_support = open_type_support
85
+ self.dest_file_name = dest_file_name
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.sign_document' if api_client.config.client_side_validation && self.name.nil?
92
+ # verify the required parameter 'certificate_path' is set
93
+ raise ArgumentError, 'Missing the required parameter certificate_path when calling WordsApi.sign_document' if api_client.config.client_side_validation && self.certificate_path.nil?
94
+ # verify the required parameter 'certificate_password' is set
95
+ raise ArgumentError, 'Missing the required parameter certificate_password when calling WordsApi.sign_document' if api_client.config.client_side_validation && self.certificate_password.nil?
96
+
97
+ # resource path
98
+ local_var_path = '/words/{name}/signatures'[7..-1]
99
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
100
+ local_var_path = local_var_path.sub('//', '/')
101
+
102
+ # query parameters
103
+ query_params = {}
104
+ query_params[downcase_first_letter('CertificatePath')] = self.certificate_path
105
+ query_params[downcase_first_letter('CertificatePassword')] = self.certificate_password
106
+ query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
107
+ query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
108
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
109
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
110
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
111
+ query_params[downcase_first_letter('OpenTypeSupport')] = self.open_type_support unless self.open_type_support.nil?
112
+ query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
113
+
114
+ if query_params
115
+ query_params.each { |key, value| local_var_path = api_client.add_param_to_query(local_var_path, key, value) }
116
+ end
117
+
118
+ header_params = {}
119
+ header_params['RequestId'] = requestId
120
+
121
+ if parentRequestId != nil
122
+ header_params['DependsOn'] = parentRequestId
123
+ end
124
+
125
+ # form parameters
126
+ form_params = []
127
+ files_content = []
128
+
129
+ # http body (model)
130
+ body = api_client.build_request_body_batch(header_params, form_params, files_content)
131
+ part = ""
132
+ part.concat("POST".force_encoding('UTF-8'))
133
+ part.concat(" ".force_encoding('UTF-8'))
134
+ part.concat(local_var_path.force_encoding('UTF-8'))
135
+ part.concat(" \r\n".force_encoding('UTF-8'))
136
+
137
+ 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')) }
138
+ part.concat("\r\n".force_encoding('UTF-8'))
139
+ if body
140
+ if body.is_a?(Hash)
141
+ body.each do |key, value|
142
+ part.concat(value, "\r\n")
143
+ end
144
+ else
145
+ part.concat(body)
146
+ end
147
+ end
148
+ part
149
+ end
150
+
151
+ def create_http_request(api_client)
152
+ # verify the required parameter 'name' is set
153
+ raise ArgumentError, 'Missing the required parameter name when calling WordsApi.sign_document' if api_client.config.client_side_validation && self.name.nil?
154
+ # verify the required parameter 'certificate_path' is set
155
+ raise ArgumentError, 'Missing the required parameter certificate_path when calling WordsApi.sign_document' if api_client.config.client_side_validation && self.certificate_path.nil?
156
+ # verify the required parameter 'certificate_password' is set
157
+ raise ArgumentError, 'Missing the required parameter certificate_password when calling WordsApi.sign_document' if api_client.config.client_side_validation && self.certificate_password.nil?
158
+
159
+ # resource path
160
+ local_var_path = '/words/{name}/signatures'[1..-1]
161
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('Name') + '}', self.name.nil? ? '' : self.name.to_s)
162
+ local_var_path = local_var_path.sub('//', '/')
163
+
164
+ # query parameters
165
+ query_params = {}
166
+ query_params[downcase_first_letter('CertificatePath')] = self.certificate_path
167
+ query_params[downcase_first_letter('CertificatePassword')] = self.certificate_password
168
+ query_params[downcase_first_letter('Folder')] = self.folder unless self.folder.nil?
169
+ query_params[downcase_first_letter('Storage')] = self.storage unless self.storage.nil?
170
+ query_params[downcase_first_letter('LoadEncoding')] = self.load_encoding unless self.load_encoding.nil?
171
+ query_params[downcase_first_letter('Password')] = self.password unless self.password.nil?
172
+ query_params[downcase_first_letter('EncryptedPassword')] = self.encrypted_password unless self.encrypted_password.nil?
173
+ query_params[downcase_first_letter('OpenTypeSupport')] = self.open_type_support unless self.open_type_support.nil?
174
+ query_params[downcase_first_letter('DestFileName')] = self.dest_file_name unless self.dest_file_name.nil?
175
+
176
+ # header parameters
177
+ header_params = {}
178
+ # HTTP header 'Content-Type'
179
+ header_params['Content-Type'] = api_client.select_header_content_type(['application/xml', 'application/json'])
180
+
181
+ # form parameters
182
+ form_params = []
183
+ files_content = []
184
+ body = api_client.build_request_body(header_params, form_params, files_content)
185
+ {
186
+ 'method': :POST,
187
+ 'path': local_var_path,
188
+ 'header_params': header_params,
189
+ 'query_params': query_params,
190
+ 'body': body,
191
+ 'auth_names': ['JWT']
192
+ }
193
+ end
194
+
195
+ #
196
+ # Helper method to convert first letter to downcase
197
+ #
198
+ def downcase_first_letter(str)
199
+ str[0].downcase + str[1..-1]
200
+ end
201
+
202
+ # Get response type
203
+ def get_response_type
204
+ 'SignatureCollectionResponse'
205
+ end
206
+ end
207
+ end
@@ -0,0 +1,47 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="remove_all_signatures_online_response.rb">
3
+ # Copyright (c) 2024 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
+ # Response model for remove_all_signatures_online operation.
30
+ #
31
+ class RemoveAllSignaturesOnlineResponse
32
+ # The REST response with a document signature collection.
33
+ # This response is returned by the Service when handling any "https://api.aspose.cloud/v4.0/words/Test.doc/signatures" REST API requests.
34
+ attr_accessor :model
35
+
36
+ # The document after modification.
37
+ attr_accessor :document
38
+
39
+ #
40
+ # Initializes a new instance.
41
+ #
42
+ def initialize()
43
+ self.model = nil
44
+ self.document = nil
45
+ end
46
+ end
47
+ end
@@ -0,0 +1,47 @@
1
+ # ------------------------------------------------------------------------------------
2
+ # <copyright company="Aspose" file="sign_document_online_response.rb">
3
+ # Copyright (c) 2024 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
+ # Response model for sign_document_online operation.
30
+ #
31
+ class SignDocumentOnlineResponse
32
+ # The REST response with a document signature collection.
33
+ # This response is returned by the Service when handling any "https://api.aspose.cloud/v4.0/words/Test.doc/signatures" REST API requests.
34
+ attr_accessor :model
35
+
36
+ # The document after modification.
37
+ attr_accessor :document
38
+
39
+ #
40
+ # Initializes a new instance.
41
+ #
42
+ def initialize()
43
+ self.model = nil
44
+ self.document = nil
45
+ end
46
+ end
47
+ end