groupdocs_viewer_cloud 19.5 → 20.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/groupdocs_viewer_cloud.rb +19 -2
- data/lib/groupdocs_viewer_cloud/api/file_api.rb +7 -7
- data/lib/groupdocs_viewer_cloud/api/folder_api.rb +7 -7
- data/lib/groupdocs_viewer_cloud/api/info_api.rb +2 -2
- data/lib/groupdocs_viewer_cloud/api/storage_api.rb +5 -5
- data/lib/groupdocs_viewer_cloud/api/view_api.rb +3 -3
- data/lib/groupdocs_viewer_cloud/api_client.rb +1 -1
- data/lib/groupdocs_viewer_cloud/api_error.rb +7 -4
- data/lib/groupdocs_viewer_cloud/configuration.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/archive_options.rb +214 -0
- data/lib/groupdocs_viewer_cloud/models/archive_view_info.rb +216 -0
- data/lib/groupdocs_viewer_cloud/models/attachment_info.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/attachment_view.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/cad_options.rb +54 -5
- data/lib/groupdocs_viewer_cloud/models/cad_view_info.rb +228 -0
- data/lib/groupdocs_viewer_cloud/models/character.rb +274 -0
- data/lib/groupdocs_viewer_cloud/models/delete_view_options.rb +15 -5
- data/lib/groupdocs_viewer_cloud/models/disc_usage.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/email_options.rb +44 -2
- data/lib/groupdocs_viewer_cloud/models/error.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/error_details.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/field_label.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/file_info.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/file_version.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/file_versions.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/files_list.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/files_upload_result.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/format.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/formats_result.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/html_options.rb +131 -10
- data/lib/groupdocs_viewer_cloud/models/html_resource.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/image_options.rb +86 -7
- data/lib/groupdocs_viewer_cloud/models/info_result.rb +75 -5
- data/lib/groupdocs_viewer_cloud/models/layer.rb +229 -0
- data/lib/groupdocs_viewer_cloud/models/layout.rb +244 -0
- data/lib/groupdocs_viewer_cloud/models/{row.rb → line.rb} +60 -72
- data/lib/groupdocs_viewer_cloud/models/object_exist.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/outlook_options.rb +249 -0
- data/lib/groupdocs_viewer_cloud/models/outlook_view_info.rb +216 -0
- data/lib/groupdocs_viewer_cloud/models/page_info.rb +28 -13
- data/lib/groupdocs_viewer_cloud/models/page_rotation.rb +271 -0
- data/lib/groupdocs_viewer_cloud/models/page_view.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/pdf_document_options.rb +316 -0
- data/lib/groupdocs_viewer_cloud/models/pdf_options.rb +490 -0
- data/lib/groupdocs_viewer_cloud/models/pdf_view_info.rb +219 -0
- data/lib/groupdocs_viewer_cloud/models/project_management_options.rb +66 -3
- data/lib/groupdocs_viewer_cloud/models/project_management_view_info.rb +234 -0
- data/lib/groupdocs_viewer_cloud/models/render_options.rb +89 -10
- data/lib/groupdocs_viewer_cloud/models/resource.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/spreadsheet_options.rb +57 -5
- data/lib/groupdocs_viewer_cloud/models/storage_exist.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/storage_file.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/text_element.rb +274 -0
- data/lib/groupdocs_viewer_cloud/models/tile.rb +264 -0
- data/lib/groupdocs_viewer_cloud/models/view_options.rb +5 -5
- data/lib/groupdocs_viewer_cloud/models/view_result.rb +1 -1
- data/lib/groupdocs_viewer_cloud/models/watermark.rb +44 -2
- data/lib/groupdocs_viewer_cloud/models/word.rb +286 -0
- data/lib/groupdocs_viewer_cloud/models/word_processing_options.rb +219 -0
- data/lib/groupdocs_viewer_cloud/version.rb +2 -2
- metadata +20 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a32b47771222ecab409c3a1b61a1b34380d4318e
|
4
|
+
data.tar.gz: 9ce6c58d6d4b2d1a4fdd24e2fa61ca349eba28c8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3db9603eceacf9c9d886025cd19c1c44c060fba822380ca5e14a15436ecc890bd12c2d260716b4384436c414208f0b58d0c656d67dca77771f959810a4171c1
|
7
|
+
data.tar.gz: d64d30084d9491450fb21eda4d84a3c7c809906f281255959ae0bae8e28df5476deaedac9967e760e860498cfb0bb3e22b29cdec193cd1ceb9df6a9b13c9fec0
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ------------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="groupdocs_viewer_cloud.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -30,8 +30,11 @@ require_relative 'groupdocs_viewer_cloud/version'
|
|
30
30
|
require_relative 'groupdocs_viewer_cloud/configuration'
|
31
31
|
|
32
32
|
# Models
|
33
|
+
require_relative 'groupdocs_viewer_cloud/models/archive_options'
|
34
|
+
require_relative 'groupdocs_viewer_cloud/models/archive_view_info'
|
33
35
|
require_relative 'groupdocs_viewer_cloud/models/attachment_info'
|
34
36
|
require_relative 'groupdocs_viewer_cloud/models/cad_options'
|
37
|
+
require_relative 'groupdocs_viewer_cloud/models/cad_view_info'
|
35
38
|
require_relative 'groupdocs_viewer_cloud/models/delete_view_options'
|
36
39
|
require_relative 'groupdocs_viewer_cloud/models/disc_usage'
|
37
40
|
require_relative 'groupdocs_viewer_cloud/models/email_options'
|
@@ -45,24 +48,38 @@ require_relative 'groupdocs_viewer_cloud/models/files_upload_result'
|
|
45
48
|
require_relative 'groupdocs_viewer_cloud/models/format'
|
46
49
|
require_relative 'groupdocs_viewer_cloud/models/formats_result'
|
47
50
|
require_relative 'groupdocs_viewer_cloud/models/info_result'
|
51
|
+
require_relative 'groupdocs_viewer_cloud/models/layer'
|
52
|
+
require_relative 'groupdocs_viewer_cloud/models/layout'
|
48
53
|
require_relative 'groupdocs_viewer_cloud/models/object_exist'
|
54
|
+
require_relative 'groupdocs_viewer_cloud/models/outlook_options'
|
55
|
+
require_relative 'groupdocs_viewer_cloud/models/outlook_view_info'
|
49
56
|
require_relative 'groupdocs_viewer_cloud/models/page_info'
|
57
|
+
require_relative 'groupdocs_viewer_cloud/models/page_rotation'
|
58
|
+
require_relative 'groupdocs_viewer_cloud/models/pdf_document_options'
|
59
|
+
require_relative 'groupdocs_viewer_cloud/models/pdf_view_info'
|
50
60
|
require_relative 'groupdocs_viewer_cloud/models/project_management_options'
|
61
|
+
require_relative 'groupdocs_viewer_cloud/models/project_management_view_info'
|
51
62
|
require_relative 'groupdocs_viewer_cloud/models/render_options'
|
52
63
|
require_relative 'groupdocs_viewer_cloud/models/resource'
|
53
|
-
require_relative 'groupdocs_viewer_cloud/models/row'
|
54
64
|
require_relative 'groupdocs_viewer_cloud/models/spreadsheet_options'
|
55
65
|
require_relative 'groupdocs_viewer_cloud/models/storage_exist'
|
56
66
|
require_relative 'groupdocs_viewer_cloud/models/storage_file'
|
67
|
+
require_relative 'groupdocs_viewer_cloud/models/text_element'
|
68
|
+
require_relative 'groupdocs_viewer_cloud/models/tile'
|
57
69
|
require_relative 'groupdocs_viewer_cloud/models/view_options'
|
58
70
|
require_relative 'groupdocs_viewer_cloud/models/view_result'
|
59
71
|
require_relative 'groupdocs_viewer_cloud/models/watermark'
|
72
|
+
require_relative 'groupdocs_viewer_cloud/models/word_processing_options'
|
60
73
|
require_relative 'groupdocs_viewer_cloud/models/attachment_view'
|
74
|
+
require_relative 'groupdocs_viewer_cloud/models/character'
|
61
75
|
require_relative 'groupdocs_viewer_cloud/models/file_version'
|
62
76
|
require_relative 'groupdocs_viewer_cloud/models/html_options'
|
63
77
|
require_relative 'groupdocs_viewer_cloud/models/html_resource'
|
64
78
|
require_relative 'groupdocs_viewer_cloud/models/image_options'
|
79
|
+
require_relative 'groupdocs_viewer_cloud/models/line'
|
65
80
|
require_relative 'groupdocs_viewer_cloud/models/page_view'
|
81
|
+
require_relative 'groupdocs_viewer_cloud/models/pdf_options'
|
82
|
+
require_relative 'groupdocs_viewer_cloud/models/word'
|
66
83
|
|
67
84
|
# APIs
|
68
85
|
require_relative 'groupdocs_viewer_cloud/api/file_api'
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# -----------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="file.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -378,7 +378,7 @@ module GroupDocsViewerCloud
|
|
378
378
|
|
379
379
|
# http body (model)
|
380
380
|
post_body = nil
|
381
|
-
data, status_code, headers = @api_client.call_api(:
|
381
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
382
382
|
header_params: header_params,
|
383
383
|
query_params: query_params,
|
384
384
|
form_params: form_params,
|
@@ -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-2020 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-2020 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-2020 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-2020 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-2020 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-2020 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -174,7 +174,7 @@ module GroupDocsViewerCloud
|
|
174
174
|
|
175
175
|
# http body (model)
|
176
176
|
post_body = nil
|
177
|
-
data, status_code, headers = @api_client.call_api(:
|
177
|
+
data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
|
178
178
|
header_params: header_params,
|
179
179
|
query_params: query_params,
|
180
180
|
form_params: form_params,
|
@@ -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-2020 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-2020 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-2020 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-2020 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-2020 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-2020 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-2020 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="storage.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2020 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-2020 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-2020 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-2020 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-2020 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="view.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -224,7 +224,7 @@ end
|
|
224
224
|
#
|
225
225
|
# --------------------------------------------------------------------------------------------------------------------
|
226
226
|
# <copyright company="Aspose Pty Ltd" file="create_view_request.rb">
|
227
|
-
# Copyright (c) 2003-
|
227
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
228
228
|
# </copyright>
|
229
229
|
# <summary>
|
230
230
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -269,7 +269,7 @@ end
|
|
269
269
|
#
|
270
270
|
# --------------------------------------------------------------------------------------------------------------------
|
271
271
|
# <copyright company="Aspose Pty Ltd" file="delete_view_request.rb">
|
272
|
-
# Copyright (c) 2003-
|
272
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
273
273
|
# </copyright>
|
274
274
|
# <summary>
|
275
275
|
# 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-2020 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-2020 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -40,9 +40,12 @@ module GroupDocsViewerCloud
|
|
40
40
|
if arg.key?(:response_body) then
|
41
41
|
data = JSON.parse(arg[:response_body], :symbolize_names => true)
|
42
42
|
if !data.nil? && !data[:error].nil? then
|
43
|
-
|
44
|
-
|
45
|
-
|
43
|
+
error = data[:error]
|
44
|
+
if error.kind_of?(String) then
|
45
|
+
@message = error
|
46
|
+
else
|
47
|
+
@message = error[:message]
|
48
|
+
end
|
46
49
|
end
|
47
50
|
end
|
48
51
|
|
@@ -1,6 +1,6 @@
|
|
1
1
|
# ------------------------------------------------------------------------------------
|
2
2
|
# <copyright company="Aspose Pty Ltd" file="configuration.rb">
|
3
|
-
# Copyright (c) 2003-
|
3
|
+
# Copyright (c) 2003-2020 Aspose Pty Ltd
|
4
4
|
# </copyright>
|
5
5
|
# <summary>
|
6
6
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -0,0 +1,214 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="archive_options.rb">
|
4
|
+
# Copyright (c) 2003-2020 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 GroupDocsViewerCloud
|
31
|
+
# Provides options for rendering archive files
|
32
|
+
class ArchiveOptions
|
33
|
+
|
34
|
+
# The folder inside the archive to be rendered
|
35
|
+
attr_accessor :folder
|
36
|
+
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
+
def self.attribute_map
|
39
|
+
{
|
40
|
+
:'folder' => :'Folder'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# Attribute type mapping.
|
45
|
+
def self.swagger_types
|
46
|
+
{
|
47
|
+
:'folder' => :'String'
|
48
|
+
}
|
49
|
+
end
|
50
|
+
|
51
|
+
# Initializes the object
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
53
|
+
def initialize(attributes = {})
|
54
|
+
return unless attributes.is_a?(Hash)
|
55
|
+
|
56
|
+
# convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
58
|
+
|
59
|
+
if attributes.key?(:'Folder')
|
60
|
+
self.folder = attributes[:'Folder']
|
61
|
+
end
|
62
|
+
|
63
|
+
end
|
64
|
+
|
65
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
66
|
+
# @return Array for valid properies with the reasons
|
67
|
+
def list_invalid_properties
|
68
|
+
invalid_properties = []
|
69
|
+
return invalid_properties
|
70
|
+
end
|
71
|
+
|
72
|
+
# Check to see if the all the properties in the model are valid
|
73
|
+
# @return true if the model is valid
|
74
|
+
def valid?
|
75
|
+
return true
|
76
|
+
end
|
77
|
+
|
78
|
+
# Checks equality by comparing each attribute.
|
79
|
+
# @param [Object] Object to be compared
|
80
|
+
def ==(other)
|
81
|
+
return true if self.equal?(other)
|
82
|
+
self.class == other.class &&
|
83
|
+
folder == other.folder
|
84
|
+
end
|
85
|
+
|
86
|
+
# @see the `==` method
|
87
|
+
# @param [Object] Object to be compared
|
88
|
+
def eql?(other)
|
89
|
+
self == other
|
90
|
+
end
|
91
|
+
|
92
|
+
# Calculates hash code according to all attributes.
|
93
|
+
# @return [Fixnum] Hash code
|
94
|
+
def hash
|
95
|
+
[folder].hash
|
96
|
+
end
|
97
|
+
|
98
|
+
# Downcases first letter.
|
99
|
+
# @return downcased string
|
100
|
+
def uncap(str)
|
101
|
+
str[0, 1].downcase + str[1..-1]
|
102
|
+
end
|
103
|
+
|
104
|
+
# Builds the object from hash
|
105
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
106
|
+
# @return [Object] Returns the model itself
|
107
|
+
def build_from_hash(attributes)
|
108
|
+
return nil unless attributes.is_a?(Hash)
|
109
|
+
self.class.swagger_types.each_pair do |key, type|
|
110
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
111
|
+
value = attributes[pname]
|
112
|
+
if type =~ /\AArray<(.*)>/i
|
113
|
+
# check to ensure the input is an array given that the the attribute
|
114
|
+
# is documented as an array but the input is not
|
115
|
+
if value.is_a?(Array)
|
116
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
117
|
+
end
|
118
|
+
elsif !value.nil?
|
119
|
+
self.send("#{key}=", _deserialize(type, value))
|
120
|
+
end
|
121
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
122
|
+
end
|
123
|
+
|
124
|
+
self
|
125
|
+
end
|
126
|
+
|
127
|
+
# Deserializes the data based on type
|
128
|
+
# @param string type Data type
|
129
|
+
# @param string value Value to be deserialized
|
130
|
+
# @return [Object] Deserialized data
|
131
|
+
def _deserialize(type, value)
|
132
|
+
case type.to_sym
|
133
|
+
when :DateTime
|
134
|
+
Date.parse value
|
135
|
+
when :Date
|
136
|
+
Date.parse value
|
137
|
+
when :String
|
138
|
+
value.to_s
|
139
|
+
when :Integer
|
140
|
+
value.to_i
|
141
|
+
when :Float
|
142
|
+
value.to_f
|
143
|
+
when :BOOLEAN
|
144
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
145
|
+
true
|
146
|
+
else
|
147
|
+
false
|
148
|
+
end
|
149
|
+
when :Object
|
150
|
+
# generic object (usually a Hash), return directly
|
151
|
+
value
|
152
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
153
|
+
inner_type = Regexp.last_match[:inner_type]
|
154
|
+
value.map { |v| _deserialize(inner_type, v) }
|
155
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
156
|
+
k_type = Regexp.last_match[:k_type]
|
157
|
+
v_type = Regexp.last_match[:v_type]
|
158
|
+
{}.tap do |hash|
|
159
|
+
value.each do |k, v|
|
160
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
161
|
+
end
|
162
|
+
end
|
163
|
+
else
|
164
|
+
# model
|
165
|
+
temp_model = GroupDocsViewerCloud.const_get(type).new
|
166
|
+
temp_model.build_from_hash(value)
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
170
|
+
# Returns the string representation of the object
|
171
|
+
# @return [String] String presentation of the object
|
172
|
+
def to_s
|
173
|
+
to_hash.to_s
|
174
|
+
end
|
175
|
+
|
176
|
+
# to_body is an alias to to_hash (backward compatibility)
|
177
|
+
# @return [Hash] Returns the object in the form of hash
|
178
|
+
def to_body
|
179
|
+
to_hash
|
180
|
+
end
|
181
|
+
|
182
|
+
# Returns the object in the form of hash
|
183
|
+
# @return [Hash] Returns the object in the form of hash
|
184
|
+
def to_hash
|
185
|
+
hash = {}
|
186
|
+
self.class.attribute_map.each_pair do |attr, param|
|
187
|
+
value = self.send(attr)
|
188
|
+
next if value.nil?
|
189
|
+
hash[param] = _to_hash(value)
|
190
|
+
end
|
191
|
+
hash
|
192
|
+
end
|
193
|
+
|
194
|
+
# Outputs non-array value in the form of hash
|
195
|
+
# For object, use to_hash. Otherwise, just return the value
|
196
|
+
# @param [Object] value Any valid value
|
197
|
+
# @return [Hash] Returns the value in the form of hash
|
198
|
+
def _to_hash(value)
|
199
|
+
if value.is_a?(Array)
|
200
|
+
value.compact.map { |v| _to_hash(v) }
|
201
|
+
elsif value.is_a?(Hash)
|
202
|
+
{}.tap do |hash|
|
203
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
204
|
+
end
|
205
|
+
elsif value.respond_to? :to_hash
|
206
|
+
value.to_hash
|
207
|
+
else
|
208
|
+
value
|
209
|
+
end
|
210
|
+
end
|
211
|
+
|
212
|
+
end
|
213
|
+
|
214
|
+
end
|