groupdocs_viewer_cloud 18.11 → 19.3
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_viewer_cloud.rb +27 -32
- data/lib/groupdocs_viewer_cloud/api/file_api.rb +729 -0
- data/lib/groupdocs_viewer_cloud/api/folder_api.rb +694 -0
- data/lib/groupdocs_viewer_cloud/api/storage_api.rb +541 -0
- data/lib/groupdocs_viewer_cloud/api/viewer_api.rb +232 -5069
- data/lib/groupdocs_viewer_cloud/api_client.rb +5 -5
- data/lib/groupdocs_viewer_cloud/api_error.rb +6 -6
- data/lib/groupdocs_viewer_cloud/configuration.rb +4 -4
- data/lib/groupdocs_viewer_cloud/models/attachment_info.rb +22 -34
- data/lib/groupdocs_viewer_cloud/models/{html_page.rb → attachment_view.rb} +39 -33
- data/lib/groupdocs_viewer_cloud/models/cad_options.rb +44 -65
- data/lib/groupdocs_viewer_cloud/models/{font_family.rb → delete_view_options.rb} +25 -17
- data/lib/groupdocs_viewer_cloud/models/{reorder_options.rb → disc_usage.rb} +42 -34
- data/lib/groupdocs_viewer_cloud/models/email_options.rb +23 -25
- data/lib/groupdocs_viewer_cloud/models/{image_page_collection.rb → error.rb} +46 -40
- data/lib/groupdocs_viewer_cloud/models/{outlook_options.rb → error_details.rb} +40 -17
- data/lib/groupdocs_viewer_cloud/models/field_label.rb +20 -12
- data/lib/groupdocs_viewer_cloud/models/{transform_options_base.rb → file_info.rb} +49 -21
- data/lib/groupdocs_viewer_cloud/models/{html_attachment_page_collection.rb → file_version.rb} +91 -40
- data/lib/groupdocs_viewer_cloud/models/{page_info_collection.rb → file_versions.rb} +26 -18
- data/lib/groupdocs_viewer_cloud/models/{font_collection.rb → files_list.rb} +26 -18
- data/lib/groupdocs_viewer_cloud/models/{image_page.rb → files_upload_result.rb} +36 -24
- data/lib/groupdocs_viewer_cloud/models/format.rb +30 -22
- data/lib/groupdocs_viewer_cloud/models/{format_collection.rb → formats_result.rb} +19 -11
- data/lib/groupdocs_viewer_cloud/models/html_options.rb +108 -209
- data/lib/groupdocs_viewer_cloud/models/html_resource.rb +234 -0
- data/lib/groupdocs_viewer_cloud/models/image_options.rb +129 -163
- data/lib/groupdocs_viewer_cloud/models/{attachment_collection.rb → info_result.rb} +32 -32
- data/lib/groupdocs_viewer_cloud/models/{rotate_options.rb → object_exist.rb} +42 -34
- data/lib/groupdocs_viewer_cloud/models/page_info.rb +48 -55
- data/lib/groupdocs_viewer_cloud/models/{pdf_file_info.rb → page_view.rb} +53 -38
- data/lib/groupdocs_viewer_cloud/models/{project_options.rb → project_management_options.rb} +39 -21
- data/lib/groupdocs_viewer_cloud/models/render_options.rb +92 -146
- data/lib/groupdocs_viewer_cloud/models/resource.rb +30 -22
- data/lib/groupdocs_viewer_cloud/models/{row_info.rb → row.rb} +65 -37
- data/lib/groupdocs_viewer_cloud/models/{cells_options.rb → spreadsheet_options.rb} +95 -67
- data/lib/groupdocs_viewer_cloud/models/{attachment.rb → storage_exist.rb} +30 -27
- data/lib/groupdocs_viewer_cloud/models/{image_attachment_page_collection.rb → storage_file.rb} +66 -40
- data/lib/groupdocs_viewer_cloud/models/{document_info.rb → view_options.rb} +99 -105
- data/lib/groupdocs_viewer_cloud/models/{html_page_collection.rb → view_result.rb} +43 -33
- data/lib/groupdocs_viewer_cloud/models/watermark.rb +35 -22
- data/lib/groupdocs_viewer_cloud/version.rb +2 -2
- metadata +27 -110
- data/lib/groupdocs_viewer_cloud/models/document_info_options.rb +0 -358
- data/lib/groupdocs_viewer_cloud/models/file_response.rb +0 -196
- data/lib/groupdocs_viewer_cloud/models/pdf_file_options.rb +0 -358
- data/lib/groupdocs_viewer_cloud/models/pdf_options.rb +0 -236
- data/lib/groupdocs_viewer_cloud/models/render_options_base.rb +0 -358
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_attachment_pages_cache_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pages_cache_from_content_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pages_cache_from_url_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pages_cache_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pdf_file_from_content_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pdf_file_from_url_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/html_create_pdf_file_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/html_delete_attachment_pages_cache_request.rb +0 -57
- data/lib/groupdocs_viewer_cloud/models/requests/html_delete_pages_cache_request.rb +0 -53
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_info_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_info_with_options_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_page_request.rb +0 -109
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_page_resource_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_pages_request.rb +0 -113
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachment_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_attachments_request.rb +0 -57
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_from_content_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_from_url_request.rb +0 -69
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_from_url_with_options_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_document_info_with_options_request.rb +0 -57
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_page_request.rb +0 -101
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_page_resource_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_pages_from_url_request.rb +0 -109
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_pages_request.rb +0 -105
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_pdf_file_from_url_request.rb +0 -77
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_pdf_file_request.rb +0 -73
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_zip_with_attachment_pages_request.rb +0 -113
- data/lib/groupdocs_viewer_cloud/models/requests/html_get_zip_with_pages_request.rb +0 -105
- data/lib/groupdocs_viewer_cloud/models/requests/html_transform_pages_request.rb +0 -57
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_attachment_pages_cache_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pages_cache_from_content_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pages_cache_from_url_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pages_cache_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pdf_file_from_content_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pdf_file_from_url_request.rb +0 -65
- data/lib/groupdocs_viewer_cloud/models/requests/image_create_pdf_file_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/image_delete_attachment_pages_cache_request.rb +0 -57
- data/lib/groupdocs_viewer_cloud/models/requests/image_delete_pages_cache_request.rb +0 -53
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_info_request.rb +0 -69
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_info_with_options_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_page_request.rb +0 -105
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_pages_request.rb +0 -109
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachment_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_attachments_request.rb +0 -57
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_from_content_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_from_url_request.rb +0 -73
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_from_url_with_options_request.rb +0 -61
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_request.rb +0 -69
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_document_info_with_options_request.rb +0 -57
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_page_request.rb +0 -97
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_pages_from_url_request.rb +0 -105
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_pages_request.rb +0 -101
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_pdf_file_from_url_request.rb +0 -77
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_pdf_file_request.rb +0 -73
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_zip_with_attachment_pages_request.rb +0 -109
- data/lib/groupdocs_viewer_cloud/models/requests/image_get_zip_with_pages_request.rb +0 -101
- data/lib/groupdocs_viewer_cloud/models/requests/image_transform_pages_request.rb +0 -57
- data/lib/groupdocs_viewer_cloud/models/resource_url.rb +0 -206
- data/lib/groupdocs_viewer_cloud/models/slides_options.rb +0 -206
- data/lib/groupdocs_viewer_cloud/models/tile.rb +0 -236
- data/lib/groupdocs_viewer_cloud/models/words_options.rb +0 -216
data/lib/groupdocs_viewer_cloud/models/requests/image_get_zip_with_attachment_pages_request.rb
DELETED
@@ -1,109 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# --------------------------------------------------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose Pty Ltd" file="image_get_zip_with_attachment_pages_request.rb">
|
4
|
-
# Copyright (c) 2003-2018 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
|
-
module GroupDocsViewerCloud
|
29
|
-
|
30
|
-
#
|
31
|
-
# Request model for image_get_zip_with_attachment_pages operation.
|
32
|
-
#
|
33
|
-
class ImageGetZipWithAttachmentPagesRequest
|
34
|
-
|
35
|
-
# The file name.
|
36
|
-
attr_accessor :file_name
|
37
|
-
# The attachment name.
|
38
|
-
attr_accessor :attachment_name
|
39
|
-
# The image format (jpg, png or bmp). Default value is png.
|
40
|
-
attr_accessor :format
|
41
|
-
# The image width.
|
42
|
-
attr_accessor :width
|
43
|
-
# The image height.
|
44
|
-
attr_accessor :height
|
45
|
-
# The image quality for jpg format. Default value is 90.
|
46
|
-
attr_accessor :quality
|
47
|
-
# The starting document page number to render.
|
48
|
-
attr_accessor :start_page_number
|
49
|
-
# The count of document pages to render.
|
50
|
-
attr_accessor :count_pages
|
51
|
-
# Allows to render document comments.
|
52
|
-
attr_accessor :render_comments
|
53
|
-
# Enables rendering of document hidden pages, sheets or slides.
|
54
|
-
attr_accessor :render_hidden_pages
|
55
|
-
# The document password.
|
56
|
-
attr_accessor :password
|
57
|
-
# The attachment password.
|
58
|
-
attr_accessor :attachment_password
|
59
|
-
# When this options is set to true text contained in document will be extracted and returned along with other information.
|
60
|
-
attr_accessor :extract_text
|
61
|
-
# The name of the default font.
|
62
|
-
attr_accessor :default_font_name
|
63
|
-
# The folder with custom fonts in storage.
|
64
|
-
attr_accessor :fonts_folder
|
65
|
-
# The folder which contains specified file in storage.
|
66
|
-
attr_accessor :folder
|
67
|
-
# The file storage which have to be used.
|
68
|
-
attr_accessor :storage
|
69
|
-
|
70
|
-
#
|
71
|
-
# Initializes a new instance.
|
72
|
-
# @param file_name The file name.
|
73
|
-
# @param attachment_name The attachment name.
|
74
|
-
# @param format The image format (jpg, png or bmp). Default value is png.
|
75
|
-
# @param width The image width.
|
76
|
-
# @param height The image height.
|
77
|
-
# @param quality The image quality for jpg format. Default value is 90.
|
78
|
-
# @param start_page_number The starting document page number to render.
|
79
|
-
# @param count_pages The count of document pages to render.
|
80
|
-
# @param render_comments Allows to render document comments.
|
81
|
-
# @param render_hidden_pages Enables rendering of document hidden pages, sheets or slides.
|
82
|
-
# @param password The document password.
|
83
|
-
# @param attachment_password The attachment password.
|
84
|
-
# @param extract_text When this options is set to true text contained in document will be extracted and returned along with other information.
|
85
|
-
# @param default_font_name The name of the default font.
|
86
|
-
# @param fonts_folder The folder with custom fonts in storage.
|
87
|
-
# @param folder The folder which contains specified file in storage.
|
88
|
-
# @param storage The file storage which have to be used.
|
89
|
-
def initialize(file_name, attachment_name, format = nil, width = nil, height = nil, quality = nil, start_page_number = nil, count_pages = nil, render_comments = nil, render_hidden_pages = nil, password = nil, attachment_password = nil, extract_text = nil, default_font_name = nil, fonts_folder = nil, folder = nil, storage = nil)
|
90
|
-
self.file_name = file_name
|
91
|
-
self.attachment_name = attachment_name
|
92
|
-
self.format = format
|
93
|
-
self.width = width
|
94
|
-
self.height = height
|
95
|
-
self.quality = quality
|
96
|
-
self.start_page_number = start_page_number
|
97
|
-
self.count_pages = count_pages
|
98
|
-
self.render_comments = render_comments
|
99
|
-
self.render_hidden_pages = render_hidden_pages
|
100
|
-
self.password = password
|
101
|
-
self.attachment_password = attachment_password
|
102
|
-
self.extract_text = extract_text
|
103
|
-
self.default_font_name = default_font_name
|
104
|
-
self.fonts_folder = fonts_folder
|
105
|
-
self.folder = folder
|
106
|
-
self.storage = storage
|
107
|
-
end
|
108
|
-
end
|
109
|
-
end
|
@@ -1,101 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# --------------------------------------------------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose Pty Ltd" file="image_get_zip_with_pages_request.rb">
|
4
|
-
# Copyright (c) 2003-2018 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
|
-
module GroupDocsViewerCloud
|
29
|
-
|
30
|
-
#
|
31
|
-
# Request model for image_get_zip_with_pages operation.
|
32
|
-
#
|
33
|
-
class ImageGetZipWithPagesRequest
|
34
|
-
|
35
|
-
# The file name.
|
36
|
-
attr_accessor :file_name
|
37
|
-
# The image format (jpg, png or bmp). Default value is png.
|
38
|
-
attr_accessor :format
|
39
|
-
# The image width.
|
40
|
-
attr_accessor :width
|
41
|
-
# The image height.
|
42
|
-
attr_accessor :height
|
43
|
-
# The image quality for jpg format. Default value is 90.
|
44
|
-
attr_accessor :quality
|
45
|
-
# The starting document page number to render.
|
46
|
-
attr_accessor :start_page_number
|
47
|
-
# The count of document pages to render.
|
48
|
-
attr_accessor :count_pages
|
49
|
-
# The document password.
|
50
|
-
attr_accessor :password
|
51
|
-
# When this options is set to true text contained in document will be extracted and returned along with other information.
|
52
|
-
attr_accessor :extract_text
|
53
|
-
# Allows to render document comments.
|
54
|
-
attr_accessor :render_comments
|
55
|
-
# Enables rendering of document hidden pages, sheets or slides.
|
56
|
-
attr_accessor :render_hidden_pages
|
57
|
-
# The name of the default font.
|
58
|
-
attr_accessor :default_font_name
|
59
|
-
# The folder with custom fonts in storage.
|
60
|
-
attr_accessor :fonts_folder
|
61
|
-
# The folder which contains specified file in storage.
|
62
|
-
attr_accessor :folder
|
63
|
-
# The file storage which have to be used.
|
64
|
-
attr_accessor :storage
|
65
|
-
|
66
|
-
#
|
67
|
-
# Initializes a new instance.
|
68
|
-
# @param file_name The file name.
|
69
|
-
# @param format The image format (jpg, png or bmp). Default value is png.
|
70
|
-
# @param width The image width.
|
71
|
-
# @param height The image height.
|
72
|
-
# @param quality The image quality for jpg format. Default value is 90.
|
73
|
-
# @param start_page_number The starting document page number to render.
|
74
|
-
# @param count_pages The count of document pages to render.
|
75
|
-
# @param password The document password.
|
76
|
-
# @param extract_text When this options is set to true text contained in document will be extracted and returned along with other information.
|
77
|
-
# @param render_comments Allows to render document comments.
|
78
|
-
# @param render_hidden_pages Enables rendering of document hidden pages, sheets or slides.
|
79
|
-
# @param default_font_name The name of the default font.
|
80
|
-
# @param fonts_folder The folder with custom fonts in storage.
|
81
|
-
# @param folder The folder which contains specified file in storage.
|
82
|
-
# @param storage The file storage which have to be used.
|
83
|
-
def initialize(file_name, format = nil, width = nil, height = nil, quality = nil, start_page_number = nil, count_pages = nil, password = nil, extract_text = nil, render_comments = nil, render_hidden_pages = nil, default_font_name = nil, fonts_folder = nil, folder = nil, storage = nil)
|
84
|
-
self.file_name = file_name
|
85
|
-
self.format = format
|
86
|
-
self.width = width
|
87
|
-
self.height = height
|
88
|
-
self.quality = quality
|
89
|
-
self.start_page_number = start_page_number
|
90
|
-
self.count_pages = count_pages
|
91
|
-
self.password = password
|
92
|
-
self.extract_text = extract_text
|
93
|
-
self.render_comments = render_comments
|
94
|
-
self.render_hidden_pages = render_hidden_pages
|
95
|
-
self.default_font_name = default_font_name
|
96
|
-
self.fonts_folder = fonts_folder
|
97
|
-
self.folder = folder
|
98
|
-
self.storage = storage
|
99
|
-
end
|
100
|
-
end
|
101
|
-
end
|
@@ -1,57 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# --------------------------------------------------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose Pty Ltd" file="image_transform_pages_request.rb">
|
4
|
-
# Copyright (c) 2003-2018 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
|
-
module GroupDocsViewerCloud
|
29
|
-
|
30
|
-
#
|
31
|
-
# Request model for image_transform_pages operation.
|
32
|
-
#
|
33
|
-
class ImageTransformPagesRequest
|
34
|
-
|
35
|
-
# The file name.
|
36
|
-
attr_accessor :file_name
|
37
|
-
# The transformation options.
|
38
|
-
attr_accessor :transform_options
|
39
|
-
# The folder which contains specified file in storage.
|
40
|
-
attr_accessor :folder
|
41
|
-
# The file storage which have to be used.
|
42
|
-
attr_accessor :storage
|
43
|
-
|
44
|
-
#
|
45
|
-
# Initializes a new instance.
|
46
|
-
# @param file_name The file name.
|
47
|
-
# @param transform_options The transformation options.
|
48
|
-
# @param folder The folder which contains specified file in storage.
|
49
|
-
# @param storage The file storage which have to be used.
|
50
|
-
def initialize(file_name, transform_options = nil, folder = nil, storage = nil)
|
51
|
-
self.file_name = file_name
|
52
|
-
self.transform_options = transform_options
|
53
|
-
self.folder = folder
|
54
|
-
self.storage = storage
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
@@ -1,206 +0,0 @@
|
|
1
|
-
#
|
2
|
-
# --------------------------------------------------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose Pty Ltd" file="resource_url.rb">
|
4
|
-
# Copyright (c) 2003-2018 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
|
-
# Reference to resource.
|
32
|
-
class ResourceUrl
|
33
|
-
|
34
|
-
# ULR to retrieve resource.
|
35
|
-
attr_accessor :url
|
36
|
-
|
37
|
-
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
-
def self.attribute_map
|
39
|
-
{
|
40
|
-
:'url' => :'url'
|
41
|
-
}
|
42
|
-
end
|
43
|
-
|
44
|
-
# Attribute type mapping.
|
45
|
-
def self.swagger_types
|
46
|
-
{
|
47
|
-
:'url' => :'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?(:'url')
|
60
|
-
self.url = attributes[:'url']
|
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
|
-
url == other.url
|
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
|
-
[url].hash
|
96
|
-
end
|
97
|
-
|
98
|
-
# Builds the object from hash
|
99
|
-
# @param [Hash] attributes Model attributes in the form of hash
|
100
|
-
# @return [Object] Returns the model itself
|
101
|
-
def build_from_hash(attributes)
|
102
|
-
return nil unless attributes.is_a?(Hash)
|
103
|
-
self.class.swagger_types.each_pair do |key, type|
|
104
|
-
if type =~ /\AArray<(.*)>/i
|
105
|
-
# check to ensure the input is an array given that the the attribute
|
106
|
-
# is documented as an array but the input is not
|
107
|
-
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
108
|
-
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
109
|
-
end
|
110
|
-
elsif !attributes[self.class.attribute_map[key]].nil?
|
111
|
-
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
112
|
-
end
|
113
|
-
# or else data not found in attributes(hash), not an issue as the data can be optional
|
114
|
-
end
|
115
|
-
|
116
|
-
self
|
117
|
-
end
|
118
|
-
|
119
|
-
# Deserializes the data based on type
|
120
|
-
# @param string type Data type
|
121
|
-
# @param string value Value to be deserialized
|
122
|
-
# @return [Object] Deserialized data
|
123
|
-
def _deserialize(type, value)
|
124
|
-
case type.to_sym
|
125
|
-
when :DateTime
|
126
|
-
Date.parse value
|
127
|
-
when :Date
|
128
|
-
Date.parse value
|
129
|
-
when :String
|
130
|
-
value.to_s
|
131
|
-
when :Integer
|
132
|
-
value.to_i
|
133
|
-
when :Float
|
134
|
-
value.to_f
|
135
|
-
when :BOOLEAN
|
136
|
-
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
137
|
-
true
|
138
|
-
else
|
139
|
-
false
|
140
|
-
end
|
141
|
-
when :Object
|
142
|
-
# generic object (usually a Hash), return directly
|
143
|
-
value
|
144
|
-
when /\AArray<(?<inner_type>.+)>\z/
|
145
|
-
inner_type = Regexp.last_match[:inner_type]
|
146
|
-
value.map { |v| _deserialize(inner_type, v) }
|
147
|
-
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
148
|
-
k_type = Regexp.last_match[:k_type]
|
149
|
-
v_type = Regexp.last_match[:v_type]
|
150
|
-
{}.tap do |hash|
|
151
|
-
value.each do |k, v|
|
152
|
-
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
153
|
-
end
|
154
|
-
end
|
155
|
-
else
|
156
|
-
# model
|
157
|
-
temp_model = GroupDocsViewerCloud.const_get(type).new
|
158
|
-
temp_model.build_from_hash(value)
|
159
|
-
end
|
160
|
-
end
|
161
|
-
|
162
|
-
# Returns the string representation of the object
|
163
|
-
# @return [String] String presentation of the object
|
164
|
-
def to_s
|
165
|
-
to_hash.to_s
|
166
|
-
end
|
167
|
-
|
168
|
-
# to_body is an alias to to_hash (backward compatibility)
|
169
|
-
# @return [Hash] Returns the object in the form of hash
|
170
|
-
def to_body
|
171
|
-
to_hash
|
172
|
-
end
|
173
|
-
|
174
|
-
# Returns the object in the form of hash
|
175
|
-
# @return [Hash] Returns the object in the form of hash
|
176
|
-
def to_hash
|
177
|
-
hash = {}
|
178
|
-
self.class.attribute_map.each_pair do |attr, param|
|
179
|
-
value = self.send(attr)
|
180
|
-
next if value.nil?
|
181
|
-
hash[param] = _to_hash(value)
|
182
|
-
end
|
183
|
-
hash
|
184
|
-
end
|
185
|
-
|
186
|
-
# Outputs non-array value in the form of hash
|
187
|
-
# For object, use to_hash. Otherwise, just return the value
|
188
|
-
# @param [Object] value Any valid value
|
189
|
-
# @return [Hash] Returns the value in the form of hash
|
190
|
-
def _to_hash(value)
|
191
|
-
if value.is_a?(Array)
|
192
|
-
value.compact.map { |v| _to_hash(v) }
|
193
|
-
elsif value.is_a?(Hash)
|
194
|
-
{}.tap do |hash|
|
195
|
-
value.each { |k, v| hash[k] = _to_hash(v) }
|
196
|
-
end
|
197
|
-
elsif value.respond_to? :to_hash
|
198
|
-
value.to_hash
|
199
|
-
else
|
200
|
-
value
|
201
|
-
end
|
202
|
-
end
|
203
|
-
|
204
|
-
end
|
205
|
-
|
206
|
-
end
|