groupdocs_merger_cloud 19.10

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +7 -0
  2. data/lib/groupdocs_merger_cloud.rb +72 -0
  3. data/lib/groupdocs_merger_cloud/api/document_api.rb +411 -0
  4. data/lib/groupdocs_merger_cloud/api/file_api.rb +729 -0
  5. data/lib/groupdocs_merger_cloud/api/folder_api.rb +694 -0
  6. data/lib/groupdocs_merger_cloud/api/info_api.rb +266 -0
  7. data/lib/groupdocs_merger_cloud/api/pages_api.rb +702 -0
  8. data/lib/groupdocs_merger_cloud/api/security_api.rb +528 -0
  9. data/lib/groupdocs_merger_cloud/api/storage_api.rb +541 -0
  10. data/lib/groupdocs_merger_cloud/api_client.rb +380 -0
  11. data/lib/groupdocs_merger_cloud/api_error.rb +58 -0
  12. data/lib/groupdocs_merger_cloud/configuration.rb +95 -0
  13. data/lib/groupdocs_merger_cloud/models/disc_usage.rb +234 -0
  14. data/lib/groupdocs_merger_cloud/models/document_result.rb +214 -0
  15. data/lib/groupdocs_merger_cloud/models/error.rb +244 -0
  16. data/lib/groupdocs_merger_cloud/models/error_details.rb +229 -0
  17. data/lib/groupdocs_merger_cloud/models/extract_options.rb +318 -0
  18. data/lib/groupdocs_merger_cloud/models/file_info.rb +244 -0
  19. data/lib/groupdocs_merger_cloud/models/file_version.rb +289 -0
  20. data/lib/groupdocs_merger_cloud/models/file_versions.rb +216 -0
  21. data/lib/groupdocs_merger_cloud/models/files_list.rb +216 -0
  22. data/lib/groupdocs_merger_cloud/models/files_upload_result.rb +228 -0
  23. data/lib/groupdocs_merger_cloud/models/format.rb +224 -0
  24. data/lib/groupdocs_merger_cloud/models/formats_result.rb +216 -0
  25. data/lib/groupdocs_merger_cloud/models/info_result.rb +251 -0
  26. data/lib/groupdocs_merger_cloud/models/join_item.rb +308 -0
  27. data/lib/groupdocs_merger_cloud/models/join_options.rb +226 -0
  28. data/lib/groupdocs_merger_cloud/models/move_options.rb +254 -0
  29. data/lib/groupdocs_merger_cloud/models/multi_document_result.rb +216 -0
  30. data/lib/groupdocs_merger_cloud/models/object_exist.rb +234 -0
  31. data/lib/groupdocs_merger_cloud/models/options.rb +224 -0
  32. data/lib/groupdocs_merger_cloud/models/orientation_options.rb +349 -0
  33. data/lib/groupdocs_merger_cloud/models/page_info.rb +264 -0
  34. data/lib/groupdocs_merger_cloud/models/page_options.rb +318 -0
  35. data/lib/groupdocs_merger_cloud/models/password_result.rb +219 -0
  36. data/lib/groupdocs_merger_cloud/models/preview_options.rb +379 -0
  37. data/lib/groupdocs_merger_cloud/models/remove_options.rb +318 -0
  38. data/lib/groupdocs_merger_cloud/models/rotate_options.rb +349 -0
  39. data/lib/groupdocs_merger_cloud/models/split_options.rb +349 -0
  40. data/lib/groupdocs_merger_cloud/models/storage_exist.rb +219 -0
  41. data/lib/groupdocs_merger_cloud/models/storage_file.rb +264 -0
  42. data/lib/groupdocs_merger_cloud/models/swap_options.rb +254 -0
  43. data/lib/groupdocs_merger_cloud/models/update_password_options.rb +234 -0
  44. data/lib/groupdocs_merger_cloud/version.rb +29 -0
  45. metadata +155 -0
@@ -0,0 +1,528 @@
1
+ # -----------------------------------------------------------------------------------
2
+ # <copyright company="Aspose Pty Ltd" file="security.rb">
3
+ # Copyright (c) 2003-2019 Aspose Pty Ltd
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
+ require 'uri'
27
+ require 'date'
28
+
29
+ module GroupDocsMergerCloud
30
+ #
31
+ # GroupDocs.Merger Cloud API
32
+ #
33
+ class SecurityApi
34
+ attr_accessor :config
35
+
36
+ #make SecurityApi.new private
37
+ private_class_method :new
38
+
39
+ # Initializes new instance of SecurityApi
40
+ #
41
+ # @param [config] Configuration
42
+ # @return [SecurityApi] New instance of SecurityApi
43
+ def initialize(config)
44
+ @config = config
45
+ @api_client = ApiClient.new(config)
46
+ @access_token = nil
47
+ end
48
+
49
+ # Initializes new instance of SecurityApi
50
+ #
51
+ # @param [app_sid] Application identifier (App SID)
52
+ # @param [app_key] Application private key (App Key)
53
+ # @return [SecurityApi] New instance of SecurityApi
54
+ def self.from_keys(app_sid, app_key)
55
+ config = Configuration.new(app_sid, app_key)
56
+ return new(config)
57
+ end
58
+
59
+ # Initializes new instance of SecurityApi
60
+ #
61
+ # @param [config] Configuration
62
+ # @return [SecurityApi] New instance of SecurityApi
63
+ def self.from_config(config)
64
+ return new(config)
65
+ end
66
+
67
+ # Add document password protection
68
+ #
69
+ # @param request add_password_request
70
+ # @return [DocumentResult]
71
+ def add_password(request)
72
+ data, _status_code, _headers = add_password_with_http_info(request)
73
+ data
74
+ end
75
+
76
+ # Add document password protection
77
+ #
78
+ # @param request add_password_request
79
+ # @return [Array<(DocumentResult, Fixnum, Hash)>]
80
+ # DocumentResult data, response status code and response headers
81
+ def add_password_with_http_info(request)
82
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? AddPasswordRequest
83
+
84
+ @api_client.config.logger.debug 'Calling API: SecurityApi.add_password ...' if @api_client.config.debugging
85
+ # verify the required parameter 'options' is set
86
+ raise ArgumentError, 'Missing the required parameter options when calling SecurityApi.add_password' if @api_client.config.client_side_validation && request.options.nil?
87
+ # resource path
88
+ local_var_path = '/merger/password'
89
+
90
+ # query parameters
91
+ query_params = {}
92
+
93
+ # header parameters
94
+ header_params = {}
95
+ # HTTP header 'Accept' (if needed)
96
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
97
+ # HTTP header 'Content-Type'
98
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
99
+
100
+ # form parameters
101
+ form_params = {}
102
+
103
+ # http body (model)
104
+ post_body = @api_client.object_to_http_body(request.options)
105
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
106
+ header_params: header_params,
107
+ query_params: query_params,
108
+ form_params: form_params,
109
+ body: post_body,
110
+ access_token: get_access_token,
111
+ return_type: 'DocumentResult')
112
+ if @api_client.config.debugging
113
+ @api_client.config.logger.debug "API called:
114
+ SecurityApi#add_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
115
+ end
116
+ [data, status_code, headers]
117
+ end
118
+
119
+ # Checks whether document is password protected
120
+ #
121
+ # @param request check_password_request
122
+ # @return [PasswordResult]
123
+ def check_password(request)
124
+ data, _status_code, _headers = check_password_with_http_info(request)
125
+ data
126
+ end
127
+
128
+ # Checks whether document is password protected
129
+ #
130
+ # @param request check_password_request
131
+ # @return [Array<(PasswordResult, Fixnum, Hash)>]
132
+ # PasswordResult data, response status code and response headers
133
+ def check_password_with_http_info(request)
134
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? CheckPasswordRequest
135
+
136
+ @api_client.config.logger.debug 'Calling API: SecurityApi.check_password ...' if @api_client.config.debugging
137
+ # verify the required parameter 'file_path' is set
138
+ raise ArgumentError, 'Missing the required parameter file_path when calling SecurityApi.check_password' if @api_client.config.client_side_validation && request.file_path.nil?
139
+ # resource path
140
+ local_var_path = '/merger/password'
141
+
142
+ # query parameters
143
+ query_params = {}
144
+ query_params[downcase_first_letter('filePath')] = request.file_path
145
+
146
+ if local_var_path.include? ('{' + downcase_first_letter('storageName') + '}')
147
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('storageName') + '}', request.storage_name.to_s)
148
+ else
149
+ query_params[downcase_first_letter('storageName')] = request.storage_name unless request.storage_name.nil?
150
+ end
151
+ if local_var_path.include? ('{' + downcase_first_letter('versionId') + '}')
152
+ local_var_path = local_var_path.sub('{' + downcase_first_letter('versionId') + '}', request.version_id.to_s)
153
+ else
154
+ query_params[downcase_first_letter('versionId')] = request.version_id unless request.version_id.nil?
155
+ end
156
+
157
+ # header parameters
158
+ header_params = {}
159
+ # HTTP header 'Accept' (if needed)
160
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
161
+ # HTTP header 'Content-Type'
162
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
163
+
164
+ # form parameters
165
+ form_params = {}
166
+
167
+ # http body (model)
168
+ post_body = nil
169
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
170
+ header_params: header_params,
171
+ query_params: query_params,
172
+ form_params: form_params,
173
+ body: post_body,
174
+ access_token: get_access_token,
175
+ return_type: 'PasswordResult')
176
+ if @api_client.config.debugging
177
+ @api_client.config.logger.debug "API called:
178
+ SecurityApi#check_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
179
+ end
180
+ [data, status_code, headers]
181
+ end
182
+
183
+ # Remove document password protection
184
+ #
185
+ # @param request remove_password_request
186
+ # @return [DocumentResult]
187
+ def remove_password(request)
188
+ data, _status_code, _headers = remove_password_with_http_info(request)
189
+ data
190
+ end
191
+
192
+ # Remove document password protection
193
+ #
194
+ # @param request remove_password_request
195
+ # @return [Array<(DocumentResult, Fixnum, Hash)>]
196
+ # DocumentResult data, response status code and response headers
197
+ def remove_password_with_http_info(request)
198
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? RemovePasswordRequest
199
+
200
+ @api_client.config.logger.debug 'Calling API: SecurityApi.remove_password ...' if @api_client.config.debugging
201
+ # verify the required parameter 'options' is set
202
+ raise ArgumentError, 'Missing the required parameter options when calling SecurityApi.remove_password' if @api_client.config.client_side_validation && request.options.nil?
203
+ # resource path
204
+ local_var_path = '/merger/password'
205
+
206
+ # query parameters
207
+ query_params = {}
208
+
209
+ # header parameters
210
+ header_params = {}
211
+ # HTTP header 'Accept' (if needed)
212
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
213
+ # HTTP header 'Content-Type'
214
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
215
+
216
+ # form parameters
217
+ form_params = {}
218
+
219
+ # http body (model)
220
+ post_body = @api_client.object_to_http_body(request.options)
221
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
222
+ header_params: header_params,
223
+ query_params: query_params,
224
+ form_params: form_params,
225
+ body: post_body,
226
+ access_token: get_access_token,
227
+ return_type: 'DocumentResult')
228
+ if @api_client.config.debugging
229
+ @api_client.config.logger.debug "API called:
230
+ SecurityApi#remove_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
231
+ end
232
+ [data, status_code, headers]
233
+ end
234
+
235
+ # Update document password
236
+ #
237
+ # @param request update_password_request
238
+ # @return [DocumentResult]
239
+ def update_password(request)
240
+ data, _status_code, _headers = update_password_with_http_info(request)
241
+ data
242
+ end
243
+
244
+ # Update document password
245
+ #
246
+ # @param request update_password_request
247
+ # @return [Array<(DocumentResult, Fixnum, Hash)>]
248
+ # DocumentResult data, response status code and response headers
249
+ def update_password_with_http_info(request)
250
+ raise ArgumentError, 'Incorrect request type' unless request.is_a? UpdatePasswordRequest
251
+
252
+ @api_client.config.logger.debug 'Calling API: SecurityApi.update_password ...' if @api_client.config.debugging
253
+ # verify the required parameter 'options' is set
254
+ raise ArgumentError, 'Missing the required parameter options when calling SecurityApi.update_password' if @api_client.config.client_side_validation && request.options.nil?
255
+ # resource path
256
+ local_var_path = '/merger/password'
257
+
258
+ # query parameters
259
+ query_params = {}
260
+
261
+ # header parameters
262
+ header_params = {}
263
+ # HTTP header 'Accept' (if needed)
264
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
265
+ # HTTP header 'Content-Type'
266
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
267
+
268
+ # form parameters
269
+ form_params = {}
270
+
271
+ # http body (model)
272
+ post_body = @api_client.object_to_http_body(request.options)
273
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
274
+ header_params: header_params,
275
+ query_params: query_params,
276
+ form_params: form_params,
277
+ body: post_body,
278
+ access_token: get_access_token,
279
+ return_type: 'DocumentResult')
280
+ if @api_client.config.debugging
281
+ @api_client.config.logger.debug "API called:
282
+ SecurityApi#update_password\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
283
+ end
284
+ [data, status_code, headers]
285
+ end
286
+
287
+ #
288
+ # Helper method to convert first letter to downcase
289
+ #
290
+ private def downcase_first_letter(str)
291
+ value = str[0].downcase + str[1..-1]
292
+ value
293
+ end
294
+
295
+ #
296
+ # Retrieves access token
297
+ #
298
+ private def get_access_token
299
+ if @access_token.nil? then
300
+ request_access_token
301
+ end
302
+
303
+ @access_token
304
+ end
305
+
306
+ #
307
+ # Gets a access token from server
308
+ #
309
+ private def request_access_token
310
+ auth_config = Configuration.new(@config.app_sid, @config.app_key)
311
+ auth_config.api_base_url = @config.api_base_url
312
+ auth_config.debugging = @config.debugging
313
+ auth_config.logger = @config.logger
314
+ auth_config.temp_folder_path = @config.temp_folder_path
315
+ auth_config.client_side_validation = @config.client_side_validation
316
+ auth_config.api_version = ''
317
+
318
+ auth_api_client = ApiClient.new(auth_config)
319
+
320
+ request_url = "/connect/token"
321
+ post_data = "grant_type=client_credentials&client_id=#{@config.app_sid}&client_secret=#{@config.app_key}"
322
+
323
+ data, _status_code, _header = auth_api_client.call_api(:POST, request_url, :body => post_data, :return_type => 'Object')
324
+
325
+ @access_token = data[:access_token]
326
+
327
+ expires_in_seconds = data[:expires_in].to_i - 5 * 60
328
+ expires_in_days = Rational(expires_in_seconds, 60 * 60 * 24)
329
+ @access_token_expires_at = DateTime.now + expires_in_days
330
+ end
331
+
332
+ # requires all files inside a directory from current dir
333
+ # @param _dir can be relative path like '/lib' or "../lib"
334
+ private def require_all(_dir)
335
+ Dir[File.expand_path(File.join(File.dirname(File.absolute_path(__FILE__)), _dir)) + "/*.rb"].each do |file|
336
+ require file
337
+ end
338
+ end
339
+ end
340
+ end
341
+ #
342
+ # --------------------------------------------------------------------------------------------------------------------
343
+ # <copyright company="Aspose Pty Ltd" file="add_password_request.rb">
344
+ # Copyright (c) 2003-2019 Aspose Pty Ltd
345
+ # </copyright>
346
+ # <summary>
347
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
348
+ # of this software and associated documentation files (the "Software"), to deal
349
+ # in the Software without restriction, including without limitation the rights
350
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
351
+ # copies of the Software, and to permit persons to whom the Software is
352
+ # furnished to do so, subject to the following conditions:
353
+ #
354
+ # The above copyright notice and this permission notice shall be included in all
355
+ # copies or substantial portions of the Software.
356
+ #
357
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
358
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
359
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
360
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
361
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
362
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
363
+ # SOFTWARE.
364
+ # </summary>
365
+ # --------------------------------------------------------------------------------------------------------------------
366
+ #
367
+
368
+ module GroupDocsMergerCloud
369
+
370
+ #
371
+ # Request model for add_password operation.
372
+ #
373
+ class AddPasswordRequest
374
+
375
+ # Options to specify document name and new password
376
+ attr_accessor :options
377
+
378
+ #
379
+ # Initializes a new instance.
380
+ # @param options Options to specify document name and new password
381
+ def initialize(options)
382
+ self.options = options
383
+ end
384
+ end
385
+ end
386
+ #
387
+ # --------------------------------------------------------------------------------------------------------------------
388
+ # <copyright company="Aspose Pty Ltd" file="check_password_request.rb">
389
+ # Copyright (c) 2003-2019 Aspose Pty Ltd
390
+ # </copyright>
391
+ # <summary>
392
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
393
+ # of this software and associated documentation files (the "Software"), to deal
394
+ # in the Software without restriction, including without limitation the rights
395
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
396
+ # copies of the Software, and to permit persons to whom the Software is
397
+ # furnished to do so, subject to the following conditions:
398
+ #
399
+ # The above copyright notice and this permission notice shall be included in all
400
+ # copies or substantial portions of the Software.
401
+ #
402
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
403
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
404
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
405
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
406
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
407
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
408
+ # SOFTWARE.
409
+ # </summary>
410
+ # --------------------------------------------------------------------------------------------------------------------
411
+ #
412
+
413
+ module GroupDocsMergerCloud
414
+
415
+ #
416
+ # Request model for check_password operation.
417
+ #
418
+ class CheckPasswordRequest
419
+
420
+ # File path
421
+ attr_accessor :file_path
422
+ # Storage name
423
+ attr_accessor :storage_name
424
+ # Version Id
425
+ attr_accessor :version_id
426
+
427
+ #
428
+ # Initializes a new instance.
429
+ # @param file_path File path
430
+ # @param storage_name Storage name
431
+ # @param version_id Version Id
432
+ def initialize(file_path, storage_name = nil, version_id = nil)
433
+ self.file_path = file_path
434
+ self.storage_name = storage_name
435
+ self.version_id = version_id
436
+ end
437
+ end
438
+ end
439
+ #
440
+ # --------------------------------------------------------------------------------------------------------------------
441
+ # <copyright company="Aspose Pty Ltd" file="remove_password_request.rb">
442
+ # Copyright (c) 2003-2019 Aspose Pty Ltd
443
+ # </copyright>
444
+ # <summary>
445
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
446
+ # of this software and associated documentation files (the "Software"), to deal
447
+ # in the Software without restriction, including without limitation the rights
448
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
449
+ # copies of the Software, and to permit persons to whom the Software is
450
+ # furnished to do so, subject to the following conditions:
451
+ #
452
+ # The above copyright notice and this permission notice shall be included in all
453
+ # copies or substantial portions of the Software.
454
+ #
455
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
456
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
457
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
458
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
459
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
460
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
461
+ # SOFTWARE.
462
+ # </summary>
463
+ # --------------------------------------------------------------------------------------------------------------------
464
+ #
465
+
466
+ module GroupDocsMergerCloud
467
+
468
+ #
469
+ # Request model for remove_password operation.
470
+ #
471
+ class RemovePasswordRequest
472
+
473
+ # Options to specify document name and current password
474
+ attr_accessor :options
475
+
476
+ #
477
+ # Initializes a new instance.
478
+ # @param options Options to specify document name and current password
479
+ def initialize(options)
480
+ self.options = options
481
+ end
482
+ end
483
+ end
484
+ #
485
+ # --------------------------------------------------------------------------------------------------------------------
486
+ # <copyright company="Aspose Pty Ltd" file="update_password_request.rb">
487
+ # Copyright (c) 2003-2019 Aspose Pty Ltd
488
+ # </copyright>
489
+ # <summary>
490
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
491
+ # of this software and associated documentation files (the "Software"), to deal
492
+ # in the Software without restriction, including without limitation the rights
493
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
494
+ # copies of the Software, and to permit persons to whom the Software is
495
+ # furnished to do so, subject to the following conditions:
496
+ #
497
+ # The above copyright notice and this permission notice shall be included in all
498
+ # copies or substantial portions of the Software.
499
+ #
500
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
501
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
502
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
503
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
504
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
505
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
506
+ # SOFTWARE.
507
+ # </summary>
508
+ # --------------------------------------------------------------------------------------------------------------------
509
+ #
510
+
511
+ module GroupDocsMergerCloud
512
+
513
+ #
514
+ # Request model for update_password operation.
515
+ #
516
+ class UpdatePasswordRequest
517
+
518
+ # Options to specify document name, current and new password
519
+ attr_accessor :options
520
+
521
+ #
522
+ # Initializes a new instance.
523
+ # @param options Options to specify document name, current and new password
524
+ def initialize(options)
525
+ self.options = options
526
+ end
527
+ end
528
+ end