groupdocs_merger_cloud 19.10 → 21.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/groupdocs_merger_cloud.rb +2 -1
- data/lib/groupdocs_merger_cloud/api/document_api.rb +101 -4
- data/lib/groupdocs_merger_cloud/api/file_api.rb +6 -6
- data/lib/groupdocs_merger_cloud/api/folder_api.rb +6 -6
- data/lib/groupdocs_merger_cloud/api/info_api.rb +2 -2
- data/lib/groupdocs_merger_cloud/api/pages_api.rb +7 -7
- data/lib/groupdocs_merger_cloud/api/security_api.rb +5 -5
- data/lib/groupdocs_merger_cloud/api/storage_api.rb +5 -5
- data/lib/groupdocs_merger_cloud/api_client.rb +1 -1
- data/lib/groupdocs_merger_cloud/api_error.rb +18 -5
- data/lib/groupdocs_merger_cloud/configuration.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/disc_usage.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/document_result.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/error.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/error_details.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/extract_options.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/file_info.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/file_version.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/file_versions.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/files_list.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/files_upload_result.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/format.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/formats_result.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/import_options.rb +236 -0
- data/lib/groupdocs_merger_cloud/models/info_result.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/join_item.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/join_options.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/move_options.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/multi_document_result.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/object_exist.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/options.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/orientation_options.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/page_info.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/page_options.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/password_result.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/preview_options.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/remove_options.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/rotate_options.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/split_options.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/storage_exist.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/storage_file.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/swap_options.rb +1 -1
- data/lib/groupdocs_merger_cloud/models/update_password_options.rb +1 -1
- data/lib/groupdocs_merger_cloud/version.rb +2 -2
- metadata +3 -16
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: dae92b02998dd9433908df4acfb74d1b3f3473b9
|
|
4
|
+
data.tar.gz: 7c56e1626e1399b2764f7982a485d1e90075c8cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 620278471927d1781420431744934d9f4d4cd78adfb71fb3fffacf400af3506dcb780657616e47ca8aa898483c9e9f3e9378b238dcbe36f991405d73a4d00fd5
|
|
7
|
+
data.tar.gz: 4dd1a5a89aeea53b084b0f7ecbbe9825a060676ae70ddc8104a858c115eb5002da8b25f7c2afc18d76575b1ca4bdffc8f23d896f5ec65676e1851dafeeb79283
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ------------------------------------------------------------------------------------
|
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="groupdocs_merger_cloud.rb">
|
|
3
|
-
# Copyright (c) 2003-
|
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
4
4
|
# </copyright>
|
|
5
5
|
# <summary>
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -51,6 +51,7 @@ require_relative 'groupdocs_merger_cloud/models/password_result'
|
|
|
51
51
|
require_relative 'groupdocs_merger_cloud/models/storage_exist'
|
|
52
52
|
require_relative 'groupdocs_merger_cloud/models/storage_file'
|
|
53
53
|
require_relative 'groupdocs_merger_cloud/models/file_version'
|
|
54
|
+
require_relative 'groupdocs_merger_cloud/models/import_options'
|
|
54
55
|
require_relative 'groupdocs_merger_cloud/models/move_options'
|
|
55
56
|
require_relative 'groupdocs_merger_cloud/models/page_options'
|
|
56
57
|
require_relative 'groupdocs_merger_cloud/models/swap_options'
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="document.rb">
|
|
3
|
-
# Copyright (c) 2003-
|
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
4
4
|
# </copyright>
|
|
5
5
|
# <summary>
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -64,6 +64,58 @@ module GroupDocsMergerCloud
|
|
|
64
64
|
return new(config)
|
|
65
65
|
end
|
|
66
66
|
|
|
67
|
+
# Import attachments into pdf document
|
|
68
|
+
#
|
|
69
|
+
# @param request import_request
|
|
70
|
+
# @return [DocumentResult]
|
|
71
|
+
def import(request)
|
|
72
|
+
data, _status_code, _headers = import_with_http_info(request)
|
|
73
|
+
data
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Import attachments into pdf document
|
|
77
|
+
#
|
|
78
|
+
# @param request import_request
|
|
79
|
+
# @return [Array<(DocumentResult, Fixnum, Hash)>]
|
|
80
|
+
# DocumentResult data, response status code and response headers
|
|
81
|
+
def import_with_http_info(request)
|
|
82
|
+
raise ArgumentError, 'Incorrect request type' unless request.is_a? ImportRequest
|
|
83
|
+
|
|
84
|
+
@api_client.config.logger.debug 'Calling API: DocumentApi.import ...' if @api_client.config.debugging
|
|
85
|
+
# verify the required parameter 'options' is set
|
|
86
|
+
raise ArgumentError, 'Missing the required parameter options when calling DocumentApi.import' if @api_client.config.client_side_validation && request.options.nil?
|
|
87
|
+
# resource path
|
|
88
|
+
local_var_path = '/merger/import'
|
|
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(:POST, 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
|
+
DocumentApi#import\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
|
115
|
+
end
|
|
116
|
+
[data, status_code, headers]
|
|
117
|
+
end
|
|
118
|
+
|
|
67
119
|
# Join multiple documents into one document
|
|
68
120
|
#
|
|
69
121
|
# @param request join_request
|
|
@@ -273,11 +325,56 @@ module GroupDocsMergerCloud
|
|
|
273
325
|
end
|
|
274
326
|
end
|
|
275
327
|
end
|
|
328
|
+
end
|
|
329
|
+
#
|
|
330
|
+
# --------------------------------------------------------------------------------------------------------------------
|
|
331
|
+
# <copyright company="Aspose Pty Ltd" file="import_request.rb">
|
|
332
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
333
|
+
# </copyright>
|
|
334
|
+
# <summary>
|
|
335
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
336
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
337
|
+
# in the Software without restriction, including without limitation the rights
|
|
338
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
339
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
340
|
+
# furnished to do so, subject to the following conditions:
|
|
341
|
+
#
|
|
342
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
343
|
+
# copies or substantial portions of the Software.
|
|
344
|
+
#
|
|
345
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
346
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
347
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
348
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
349
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
350
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
351
|
+
# SOFTWARE.
|
|
352
|
+
# </summary>
|
|
353
|
+
# --------------------------------------------------------------------------------------------------------------------
|
|
354
|
+
#
|
|
355
|
+
|
|
356
|
+
module GroupDocsMergerCloud
|
|
357
|
+
|
|
358
|
+
#
|
|
359
|
+
# Request model for import operation.
|
|
360
|
+
#
|
|
361
|
+
class ImportRequest
|
|
362
|
+
|
|
363
|
+
# Import options
|
|
364
|
+
attr_accessor :options
|
|
365
|
+
|
|
366
|
+
#
|
|
367
|
+
# Initializes a new instance.
|
|
368
|
+
# @param options Import options
|
|
369
|
+
def initialize(options)
|
|
370
|
+
self.options = options
|
|
371
|
+
end
|
|
372
|
+
end
|
|
276
373
|
end
|
|
277
374
|
#
|
|
278
375
|
# --------------------------------------------------------------------------------------------------------------------
|
|
279
376
|
# <copyright company="Aspose Pty Ltd" file="join_request.rb">
|
|
280
|
-
# Copyright (c) 2003-
|
|
377
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
281
378
|
# </copyright>
|
|
282
379
|
# <summary>
|
|
283
380
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -322,7 +419,7 @@ end
|
|
|
322
419
|
#
|
|
323
420
|
# --------------------------------------------------------------------------------------------------------------------
|
|
324
421
|
# <copyright company="Aspose Pty Ltd" file="preview_request.rb">
|
|
325
|
-
# Copyright (c) 2003-
|
|
422
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
326
423
|
# </copyright>
|
|
327
424
|
# <summary>
|
|
328
425
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -367,7 +464,7 @@ end
|
|
|
367
464
|
#
|
|
368
465
|
# --------------------------------------------------------------------------------------------------------------------
|
|
369
466
|
# <copyright company="Aspose Pty Ltd" file="split_request.rb">
|
|
370
|
-
# Copyright (c) 2003-
|
|
467
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
371
468
|
# </copyright>
|
|
372
469
|
# <summary>
|
|
373
470
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="file.rb">
|
|
3
|
-
# Copyright (c) 2003-
|
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
4
4
|
# </copyright>
|
|
5
5
|
# <summary>
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -449,7 +449,7 @@ end
|
|
|
449
449
|
#
|
|
450
450
|
# --------------------------------------------------------------------------------------------------------------------
|
|
451
451
|
# <copyright company="Aspose Pty Ltd" file="copy_file_request.rb">
|
|
452
|
-
# Copyright (c) 2003-
|
|
452
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
453
453
|
# </copyright>
|
|
454
454
|
# <summary>
|
|
455
455
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -510,7 +510,7 @@ end
|
|
|
510
510
|
#
|
|
511
511
|
# --------------------------------------------------------------------------------------------------------------------
|
|
512
512
|
# <copyright company="Aspose Pty Ltd" file="delete_file_request.rb">
|
|
513
|
-
# Copyright (c) 2003-
|
|
513
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
514
514
|
# </copyright>
|
|
515
515
|
# <summary>
|
|
516
516
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -563,7 +563,7 @@ end
|
|
|
563
563
|
#
|
|
564
564
|
# --------------------------------------------------------------------------------------------------------------------
|
|
565
565
|
# <copyright company="Aspose Pty Ltd" file="download_file_request.rb">
|
|
566
|
-
# Copyright (c) 2003-
|
|
566
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
567
567
|
# </copyright>
|
|
568
568
|
# <summary>
|
|
569
569
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -616,7 +616,7 @@ end
|
|
|
616
616
|
#
|
|
617
617
|
# --------------------------------------------------------------------------------------------------------------------
|
|
618
618
|
# <copyright company="Aspose Pty Ltd" file="move_file_request.rb">
|
|
619
|
-
# Copyright (c) 2003-
|
|
619
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
620
620
|
# </copyright>
|
|
621
621
|
# <summary>
|
|
622
622
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -677,7 +677,7 @@ end
|
|
|
677
677
|
#
|
|
678
678
|
# --------------------------------------------------------------------------------------------------------------------
|
|
679
679
|
# <copyright company="Aspose Pty Ltd" file="upload_file_request.rb">
|
|
680
|
-
# Copyright (c) 2003-
|
|
680
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
681
681
|
# </copyright>
|
|
682
682
|
# <summary>
|
|
683
683
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="folder.rb">
|
|
3
|
-
# Copyright (c) 2003-
|
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
4
4
|
# </copyright>
|
|
5
5
|
# <summary>
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -430,7 +430,7 @@ end
|
|
|
430
430
|
#
|
|
431
431
|
# --------------------------------------------------------------------------------------------------------------------
|
|
432
432
|
# <copyright company="Aspose Pty Ltd" file="copy_folder_request.rb">
|
|
433
|
-
# Copyright (c) 2003-
|
|
433
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
434
434
|
# </copyright>
|
|
435
435
|
# <summary>
|
|
436
436
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -487,7 +487,7 @@ end
|
|
|
487
487
|
#
|
|
488
488
|
# --------------------------------------------------------------------------------------------------------------------
|
|
489
489
|
# <copyright company="Aspose Pty Ltd" file="create_folder_request.rb">
|
|
490
|
-
# Copyright (c) 2003-
|
|
490
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
491
491
|
# </copyright>
|
|
492
492
|
# <summary>
|
|
493
493
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -536,7 +536,7 @@ end
|
|
|
536
536
|
#
|
|
537
537
|
# --------------------------------------------------------------------------------------------------------------------
|
|
538
538
|
# <copyright company="Aspose Pty Ltd" file="delete_folder_request.rb">
|
|
539
|
-
# Copyright (c) 2003-
|
|
539
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
540
540
|
# </copyright>
|
|
541
541
|
# <summary>
|
|
542
542
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -589,7 +589,7 @@ end
|
|
|
589
589
|
#
|
|
590
590
|
# --------------------------------------------------------------------------------------------------------------------
|
|
591
591
|
# <copyright company="Aspose Pty Ltd" file="get_files_list_request.rb">
|
|
592
|
-
# Copyright (c) 2003-
|
|
592
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
593
593
|
# </copyright>
|
|
594
594
|
# <summary>
|
|
595
595
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -638,7 +638,7 @@ end
|
|
|
638
638
|
#
|
|
639
639
|
# --------------------------------------------------------------------------------------------------------------------
|
|
640
640
|
# <copyright company="Aspose Pty Ltd" file="move_folder_request.rb">
|
|
641
|
-
# Copyright (c) 2003-
|
|
641
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
642
642
|
# </copyright>
|
|
643
643
|
# <summary>
|
|
644
644
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="info.rb">
|
|
3
|
-
# Copyright (c) 2003-
|
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
4
4
|
# </copyright>
|
|
5
5
|
# <summary>
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -222,7 +222,7 @@ end
|
|
|
222
222
|
#
|
|
223
223
|
# --------------------------------------------------------------------------------------------------------------------
|
|
224
224
|
# <copyright company="Aspose Pty Ltd" file="get_info_request.rb">
|
|
225
|
-
# Copyright (c) 2003-
|
|
225
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
226
226
|
# </copyright>
|
|
227
227
|
# <summary>
|
|
228
228
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="pages.rb">
|
|
3
|
-
# Copyright (c) 2003-
|
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
4
4
|
# </copyright>
|
|
5
5
|
# <summary>
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -433,7 +433,7 @@ end
|
|
|
433
433
|
#
|
|
434
434
|
# --------------------------------------------------------------------------------------------------------------------
|
|
435
435
|
# <copyright company="Aspose Pty Ltd" file="extract_request.rb">
|
|
436
|
-
# Copyright (c) 2003-
|
|
436
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
437
437
|
# </copyright>
|
|
438
438
|
# <summary>
|
|
439
439
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -478,7 +478,7 @@ end
|
|
|
478
478
|
#
|
|
479
479
|
# --------------------------------------------------------------------------------------------------------------------
|
|
480
480
|
# <copyright company="Aspose Pty Ltd" file="move_request.rb">
|
|
481
|
-
# Copyright (c) 2003-
|
|
481
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
482
482
|
# </copyright>
|
|
483
483
|
# <summary>
|
|
484
484
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -523,7 +523,7 @@ end
|
|
|
523
523
|
#
|
|
524
524
|
# --------------------------------------------------------------------------------------------------------------------
|
|
525
525
|
# <copyright company="Aspose Pty Ltd" file="orientation_request.rb">
|
|
526
|
-
# Copyright (c) 2003-
|
|
526
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
527
527
|
# </copyright>
|
|
528
528
|
# <summary>
|
|
529
529
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -568,7 +568,7 @@ end
|
|
|
568
568
|
#
|
|
569
569
|
# --------------------------------------------------------------------------------------------------------------------
|
|
570
570
|
# <copyright company="Aspose Pty Ltd" file="remove_request.rb">
|
|
571
|
-
# Copyright (c) 2003-
|
|
571
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
572
572
|
# </copyright>
|
|
573
573
|
# <summary>
|
|
574
574
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -613,7 +613,7 @@ end
|
|
|
613
613
|
#
|
|
614
614
|
# --------------------------------------------------------------------------------------------------------------------
|
|
615
615
|
# <copyright company="Aspose Pty Ltd" file="rotate_request.rb">
|
|
616
|
-
# Copyright (c) 2003-
|
|
616
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
617
617
|
# </copyright>
|
|
618
618
|
# <summary>
|
|
619
619
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -658,7 +658,7 @@ end
|
|
|
658
658
|
#
|
|
659
659
|
# --------------------------------------------------------------------------------------------------------------------
|
|
660
660
|
# <copyright company="Aspose Pty Ltd" file="swap_request.rb">
|
|
661
|
-
# Copyright (c) 2003-
|
|
661
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
662
662
|
# </copyright>
|
|
663
663
|
# <summary>
|
|
664
664
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="security.rb">
|
|
3
|
-
# Copyright (c) 2003-
|
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
4
4
|
# </copyright>
|
|
5
5
|
# <summary>
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -341,7 +341,7 @@ end
|
|
|
341
341
|
#
|
|
342
342
|
# --------------------------------------------------------------------------------------------------------------------
|
|
343
343
|
# <copyright company="Aspose Pty Ltd" file="add_password_request.rb">
|
|
344
|
-
# Copyright (c) 2003-
|
|
344
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
345
345
|
# </copyright>
|
|
346
346
|
# <summary>
|
|
347
347
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -386,7 +386,7 @@ end
|
|
|
386
386
|
#
|
|
387
387
|
# --------------------------------------------------------------------------------------------------------------------
|
|
388
388
|
# <copyright company="Aspose Pty Ltd" file="check_password_request.rb">
|
|
389
|
-
# Copyright (c) 2003-
|
|
389
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
390
390
|
# </copyright>
|
|
391
391
|
# <summary>
|
|
392
392
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -439,7 +439,7 @@ end
|
|
|
439
439
|
#
|
|
440
440
|
# --------------------------------------------------------------------------------------------------------------------
|
|
441
441
|
# <copyright company="Aspose Pty Ltd" file="remove_password_request.rb">
|
|
442
|
-
# Copyright (c) 2003-
|
|
442
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
443
443
|
# </copyright>
|
|
444
444
|
# <summary>
|
|
445
445
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -484,7 +484,7 @@ end
|
|
|
484
484
|
#
|
|
485
485
|
# --------------------------------------------------------------------------------------------------------------------
|
|
486
486
|
# <copyright company="Aspose Pty Ltd" file="update_password_request.rb">
|
|
487
|
-
# Copyright (c) 2003-
|
|
487
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
488
488
|
# </copyright>
|
|
489
489
|
# <summary>
|
|
490
490
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="storage.rb">
|
|
3
|
-
# Copyright (c) 2003-
|
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
4
4
|
# </copyright>
|
|
5
5
|
# <summary>
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -350,7 +350,7 @@ end
|
|
|
350
350
|
#
|
|
351
351
|
# --------------------------------------------------------------------------------------------------------------------
|
|
352
352
|
# <copyright company="Aspose Pty Ltd" file="get_disc_usage_request.rb">
|
|
353
|
-
# Copyright (c) 2003-
|
|
353
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
354
354
|
# </copyright>
|
|
355
355
|
# <summary>
|
|
356
356
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -395,7 +395,7 @@ end
|
|
|
395
395
|
#
|
|
396
396
|
# --------------------------------------------------------------------------------------------------------------------
|
|
397
397
|
# <copyright company="Aspose Pty Ltd" file="get_file_versions_request.rb">
|
|
398
|
-
# Copyright (c) 2003-
|
|
398
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
399
399
|
# </copyright>
|
|
400
400
|
# <summary>
|
|
401
401
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -444,7 +444,7 @@ end
|
|
|
444
444
|
#
|
|
445
445
|
# --------------------------------------------------------------------------------------------------------------------
|
|
446
446
|
# <copyright company="Aspose Pty Ltd" file="object_exists_request.rb">
|
|
447
|
-
# Copyright (c) 2003-
|
|
447
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
448
448
|
# </copyright>
|
|
449
449
|
# <summary>
|
|
450
450
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -497,7 +497,7 @@ end
|
|
|
497
497
|
#
|
|
498
498
|
# --------------------------------------------------------------------------------------------------------------------
|
|
499
499
|
# <copyright company="Aspose Pty Ltd" file="storage_exists_request.rb">
|
|
500
|
-
# Copyright (c) 2003-
|
|
500
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
501
501
|
# </copyright>
|
|
502
502
|
# <summary>
|
|
503
503
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="api_client.rb">
|
|
3
|
-
# Copyright (c) 2003-
|
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
4
4
|
# </copyright>
|
|
5
5
|
# <summary>
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="api_error.rb">
|
|
3
|
-
# Copyright (c) 2003-
|
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
4
4
|
# </copyright>
|
|
5
5
|
# <summary>
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -39,10 +39,23 @@ module GroupDocsMergerCloud
|
|
|
39
39
|
|
|
40
40
|
if arg.key?(:response_body) then
|
|
41
41
|
data = JSON.parse(arg[:response_body], :symbolize_names => true)
|
|
42
|
-
if !data.nil?
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
42
|
+
if !data.nil? then
|
|
43
|
+
if !data[:error].nil? then
|
|
44
|
+
error = data[:error]
|
|
45
|
+
if error.kind_of?(String) then
|
|
46
|
+
@message = error
|
|
47
|
+
else
|
|
48
|
+
@message = error[:message]
|
|
49
|
+
end
|
|
50
|
+
else
|
|
51
|
+
message = data[:message]
|
|
52
|
+
if !message.nil? && message.kind_of?(String) then
|
|
53
|
+
@message = message
|
|
54
|
+
@code = data[:code]
|
|
55
|
+
else
|
|
56
|
+
@message = data
|
|
57
|
+
end
|
|
58
|
+
end
|
|
46
59
|
end
|
|
47
60
|
end
|
|
48
61
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# ------------------------------------------------------------------------------------
|
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="configuration.rb">
|
|
3
|
-
# Copyright (c) 2003-
|
|
3
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
4
4
|
# </copyright>
|
|
5
5
|
# <summary>
|
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="disc_usage.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="document_result.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="error.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="error_details.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="extract_options.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="file_info.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="file_version.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="file_versions.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="files_list.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="files_upload_result.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="format.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="formats_result.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
#
|
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="import_options.rb">
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
|
+
# </copyright>
|
|
6
|
+
# <summary>
|
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8
|
+
# of this software and associated documentation files (the "Software"), to deal
|
|
9
|
+
# in the Software without restriction, including without limitation the rights
|
|
10
|
+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
11
|
+
# copies of the Software, and to permit persons to whom the Software is
|
|
12
|
+
# furnished to do so, subject to the following conditions:
|
|
13
|
+
#
|
|
14
|
+
# The above copyright notice and this permission notice shall be included in all
|
|
15
|
+
# copies or substantial portions of the Software.
|
|
16
|
+
#
|
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
22
|
+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
23
|
+
# SOFTWARE.
|
|
24
|
+
# </summary>
|
|
25
|
+
# --------------------------------------------------------------------------------------------------------------------
|
|
26
|
+
#
|
|
27
|
+
|
|
28
|
+
require 'date'
|
|
29
|
+
|
|
30
|
+
module GroupDocsMergerCloud
|
|
31
|
+
# Import API options
|
|
32
|
+
class ImportOptions
|
|
33
|
+
|
|
34
|
+
# File info
|
|
35
|
+
attr_accessor :file_info
|
|
36
|
+
|
|
37
|
+
# The output path.
|
|
38
|
+
attr_accessor :output_path
|
|
39
|
+
|
|
40
|
+
# List of files paths to import as attachments
|
|
41
|
+
attr_accessor :attachments
|
|
42
|
+
|
|
43
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
44
|
+
def self.attribute_map
|
|
45
|
+
{
|
|
46
|
+
:'file_info' => :'FileInfo',
|
|
47
|
+
:'output_path' => :'OutputPath',
|
|
48
|
+
:'attachments' => :'Attachments'
|
|
49
|
+
}
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Attribute type mapping.
|
|
53
|
+
def self.swagger_types
|
|
54
|
+
{
|
|
55
|
+
:'file_info' => :'FileInfo',
|
|
56
|
+
:'output_path' => :'String',
|
|
57
|
+
:'attachments' => :'Array<String>'
|
|
58
|
+
}
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
# Initializes the object
|
|
62
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
63
|
+
def initialize(attributes = {})
|
|
64
|
+
return unless attributes.is_a?(Hash)
|
|
65
|
+
|
|
66
|
+
# convert string to symbol for hash key
|
|
67
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
68
|
+
|
|
69
|
+
if attributes.key?(:'FileInfo')
|
|
70
|
+
self.file_info = attributes[:'FileInfo']
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'OutputPath')
|
|
74
|
+
self.output_path = attributes[:'OutputPath']
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
if attributes.key?(:'Attachments')
|
|
78
|
+
if (value = attributes[:'Attachments']).is_a?(Array)
|
|
79
|
+
self.attachments = value
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
86
|
+
# @return Array for valid properies with the reasons
|
|
87
|
+
def list_invalid_properties
|
|
88
|
+
invalid_properties = []
|
|
89
|
+
return invalid_properties
|
|
90
|
+
end
|
|
91
|
+
|
|
92
|
+
# Check to see if the all the properties in the model are valid
|
|
93
|
+
# @return true if the model is valid
|
|
94
|
+
def valid?
|
|
95
|
+
return true
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Checks equality by comparing each attribute.
|
|
99
|
+
# @param [Object] Object to be compared
|
|
100
|
+
def ==(other)
|
|
101
|
+
return true if self.equal?(other)
|
|
102
|
+
self.class == other.class &&
|
|
103
|
+
file_info == other.file_info &&
|
|
104
|
+
output_path == other.output_path &&
|
|
105
|
+
attachments == other.attachments
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
# @see the `==` method
|
|
109
|
+
# @param [Object] Object to be compared
|
|
110
|
+
def eql?(other)
|
|
111
|
+
self == other
|
|
112
|
+
end
|
|
113
|
+
|
|
114
|
+
# Calculates hash code according to all attributes.
|
|
115
|
+
# @return [Fixnum] Hash code
|
|
116
|
+
def hash
|
|
117
|
+
[file_info, output_path, attachments].hash
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# Downcases first letter.
|
|
121
|
+
# @return downcased string
|
|
122
|
+
def uncap(str)
|
|
123
|
+
str[0, 1].downcase + str[1..-1]
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Builds the object from hash
|
|
127
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
128
|
+
# @return [Object] Returns the model itself
|
|
129
|
+
def build_from_hash(attributes)
|
|
130
|
+
return nil unless attributes.is_a?(Hash)
|
|
131
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
132
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
|
133
|
+
value = attributes[pname]
|
|
134
|
+
if type =~ /\AArray<(.*)>/i
|
|
135
|
+
# check to ensure the input is an array given that the the attribute
|
|
136
|
+
# is documented as an array but the input is not
|
|
137
|
+
if value.is_a?(Array)
|
|
138
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
|
139
|
+
end
|
|
140
|
+
elsif !value.nil?
|
|
141
|
+
self.send("#{key}=", _deserialize(type, value))
|
|
142
|
+
end
|
|
143
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
self
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
# Deserializes the data based on type
|
|
150
|
+
# @param string type Data type
|
|
151
|
+
# @param string value Value to be deserialized
|
|
152
|
+
# @return [Object] Deserialized data
|
|
153
|
+
def _deserialize(type, value)
|
|
154
|
+
case type.to_sym
|
|
155
|
+
when :DateTime
|
|
156
|
+
Date.parse value
|
|
157
|
+
when :Date
|
|
158
|
+
Date.parse value
|
|
159
|
+
when :String
|
|
160
|
+
value.to_s
|
|
161
|
+
when :Integer
|
|
162
|
+
value.to_i
|
|
163
|
+
when :Float
|
|
164
|
+
value.to_f
|
|
165
|
+
when :BOOLEAN
|
|
166
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
167
|
+
true
|
|
168
|
+
else
|
|
169
|
+
false
|
|
170
|
+
end
|
|
171
|
+
when :Object
|
|
172
|
+
# generic object (usually a Hash), return directly
|
|
173
|
+
value
|
|
174
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
175
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
176
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
177
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
178
|
+
k_type = Regexp.last_match[:k_type]
|
|
179
|
+
v_type = Regexp.last_match[:v_type]
|
|
180
|
+
{}.tap do |hash|
|
|
181
|
+
value.each do |k, v|
|
|
182
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
183
|
+
end
|
|
184
|
+
end
|
|
185
|
+
else
|
|
186
|
+
# model
|
|
187
|
+
temp_model = GroupDocsMergerCloud.const_get(type).new
|
|
188
|
+
temp_model.build_from_hash(value)
|
|
189
|
+
end
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# Returns the string representation of the object
|
|
193
|
+
# @return [String] String presentation of the object
|
|
194
|
+
def to_s
|
|
195
|
+
to_hash.to_s
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
199
|
+
# @return [Hash] Returns the object in the form of hash
|
|
200
|
+
def to_body
|
|
201
|
+
to_hash
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Returns the object in the form of hash
|
|
205
|
+
# @return [Hash] Returns the object in the form of hash
|
|
206
|
+
def to_hash
|
|
207
|
+
hash = {}
|
|
208
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
209
|
+
value = self.send(attr)
|
|
210
|
+
next if value.nil?
|
|
211
|
+
hash[param] = _to_hash(value)
|
|
212
|
+
end
|
|
213
|
+
hash
|
|
214
|
+
end
|
|
215
|
+
|
|
216
|
+
# Outputs non-array value in the form of hash
|
|
217
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
218
|
+
# @param [Object] value Any valid value
|
|
219
|
+
# @return [Hash] Returns the value in the form of hash
|
|
220
|
+
def _to_hash(value)
|
|
221
|
+
if value.is_a?(Array)
|
|
222
|
+
value.compact.map { |v| _to_hash(v) }
|
|
223
|
+
elsif value.is_a?(Hash)
|
|
224
|
+
{}.tap do |hash|
|
|
225
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
226
|
+
end
|
|
227
|
+
elsif value.respond_to? :to_hash
|
|
228
|
+
value.to_hash
|
|
229
|
+
else
|
|
230
|
+
value
|
|
231
|
+
end
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
end
|
|
235
|
+
|
|
236
|
+
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="info_result.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="join_item.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="join_options.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="move_options.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="multi_document_result.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="object_exist.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="options.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="orientation_options.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="page_info.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="page_options.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="password_result.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="preview_options.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="remove_options.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="rotate_options.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="split_options.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="storage_exist.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="storage_file.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="swap_options.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="update_password_options.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#
|
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="version.rb">
|
|
4
|
-
# Copyright (c) 2003-
|
|
4
|
+
# Copyright (c) 2003-2021 Aspose Pty Ltd
|
|
5
5
|
# </copyright>
|
|
6
6
|
# <summary>
|
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
@@ -25,5 +25,5 @@
|
|
|
25
25
|
# --------------------------------------------------------------------------------------------------------------------
|
|
26
26
|
#
|
|
27
27
|
module GroupDocsMergerCloud
|
|
28
|
-
VERSION = "
|
|
28
|
+
VERSION = "21.6".freeze
|
|
29
29
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: groupdocs_merger_cloud
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: '
|
|
4
|
+
version: '21.6'
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- GroupDocs
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2021-06-02 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|
|
@@ -24,20 +24,6 @@ dependencies:
|
|
|
24
24
|
- - "~>"
|
|
25
25
|
- !ruby/object:Gem::Version
|
|
26
26
|
version: 0.14.0
|
|
27
|
-
- !ruby/object:Gem::Dependency
|
|
28
|
-
name: mimemagic
|
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
|
30
|
-
requirements:
|
|
31
|
-
- - "~>"
|
|
32
|
-
- !ruby/object:Gem::Version
|
|
33
|
-
version: 0.3.2
|
|
34
|
-
type: :runtime
|
|
35
|
-
prerelease: false
|
|
36
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
-
requirements:
|
|
38
|
-
- - "~>"
|
|
39
|
-
- !ruby/object:Gem::Version
|
|
40
|
-
version: 0.3.2
|
|
41
27
|
- !ruby/object:Gem::Dependency
|
|
42
28
|
name: addressable
|
|
43
29
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -107,6 +93,7 @@ files:
|
|
|
107
93
|
- lib/groupdocs_merger_cloud/models/files_upload_result.rb
|
|
108
94
|
- lib/groupdocs_merger_cloud/models/format.rb
|
|
109
95
|
- lib/groupdocs_merger_cloud/models/formats_result.rb
|
|
96
|
+
- lib/groupdocs_merger_cloud/models/import_options.rb
|
|
110
97
|
- lib/groupdocs_merger_cloud/models/info_result.rb
|
|
111
98
|
- lib/groupdocs_merger_cloud/models/join_item.rb
|
|
112
99
|
- lib/groupdocs_merger_cloud/models/join_options.rb
|