groupdocs_viewer_cloud 18.11 → 19.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 +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
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
|
-
# <copyright company="Aspose Pty Ltd" file="
|
4
|
-
# Copyright (c) 2003-
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="project_management_options.rb">
|
4
|
+
# Copyright (c) 2003-2019 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -28,8 +28,8 @@
|
|
28
28
|
require 'date'
|
29
29
|
|
30
30
|
module GroupDocsViewerCloud
|
31
|
-
#
|
32
|
-
class
|
31
|
+
# Rendering options for Project file formats. Project file formats include files with extensions: .mpt, .mpp
|
32
|
+
class ProjectManagementOptions
|
33
33
|
|
34
34
|
# The size of the page. Supported values {Unknown|Letter|Ledger|A0|A1|A2|A3}: 1. Unknown - the default, unspecified page size. 2. Letter - the size of the Letter page in points is 792x612. 3. Ledger - the size of the Letter page in points is 1224x792. 4. A0 - the size of the A0 page in points is 3371x2384. 5. A1 - the size of the A1 page in points is 2384x1685. 6. A2 - the size of the A2 page in points is 1684x1190. 7. A3 - the size of the A3 page in points is 1190x842. 8. A4 - the size of the A4 page in points is 842x595.
|
35
35
|
attr_accessor :page_size
|
@@ -46,10 +46,10 @@ module GroupDocsViewerCloud
|
|
46
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
47
47
|
def self.attribute_map
|
48
48
|
{
|
49
|
-
:'page_size' => :'
|
50
|
-
:'time_unit' => :'
|
51
|
-
:'start_date' => :'
|
52
|
-
:'end_date' => :'
|
49
|
+
:'page_size' => :'PageSize',
|
50
|
+
:'time_unit' => :'TimeUnit',
|
51
|
+
:'start_date' => :'StartDate',
|
52
|
+
:'end_date' => :'EndDate'
|
53
53
|
}
|
54
54
|
end
|
55
55
|
|
@@ -71,20 +71,20 @@ module GroupDocsViewerCloud
|
|
71
71
|
# convert string to symbol for hash key
|
72
72
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
73
73
|
|
74
|
-
if attributes.key?(:'
|
75
|
-
self.page_size = attributes[:'
|
74
|
+
if attributes.key?(:'PageSize')
|
75
|
+
self.page_size = attributes[:'PageSize']
|
76
76
|
end
|
77
77
|
|
78
|
-
if attributes.key?(:'
|
79
|
-
self.time_unit = attributes[:'
|
78
|
+
if attributes.key?(:'TimeUnit')
|
79
|
+
self.time_unit = attributes[:'TimeUnit']
|
80
80
|
end
|
81
81
|
|
82
|
-
if attributes.key?(:'
|
83
|
-
self.start_date = attributes[:'
|
82
|
+
if attributes.key?(:'StartDate')
|
83
|
+
self.start_date = attributes[:'StartDate']
|
84
84
|
end
|
85
85
|
|
86
|
-
if attributes.key?(:'
|
87
|
-
self.end_date = attributes[:'
|
86
|
+
if attributes.key?(:'EndDate')
|
87
|
+
self.end_date = attributes[:'EndDate']
|
88
88
|
end
|
89
89
|
|
90
90
|
end
|
@@ -93,12 +93,22 @@ module GroupDocsViewerCloud
|
|
93
93
|
# @return Array for valid properies with the reasons
|
94
94
|
def list_invalid_properties
|
95
95
|
invalid_properties = []
|
96
|
+
if @start_date.nil?
|
97
|
+
invalid_properties.push("invalid value for 'start_date', start_date cannot be nil.")
|
98
|
+
end
|
99
|
+
|
100
|
+
if @end_date.nil?
|
101
|
+
invalid_properties.push("invalid value for 'end_date', end_date cannot be nil.")
|
102
|
+
end
|
103
|
+
|
96
104
|
return invalid_properties
|
97
105
|
end
|
98
106
|
|
99
107
|
# Check to see if the all the properties in the model are valid
|
100
108
|
# @return true if the model is valid
|
101
109
|
def valid?
|
110
|
+
return false if @start_date.nil?
|
111
|
+
return false if @end_date.nil?
|
102
112
|
return true
|
103
113
|
end
|
104
114
|
|
@@ -125,20 +135,28 @@ module GroupDocsViewerCloud
|
|
125
135
|
[page_size, time_unit, start_date, end_date].hash
|
126
136
|
end
|
127
137
|
|
138
|
+
# Downcases first letter.
|
139
|
+
# @return downcased string
|
140
|
+
def uncap(str)
|
141
|
+
str[0, 1].downcase + str[1..-1]
|
142
|
+
end
|
143
|
+
|
128
144
|
# Builds the object from hash
|
129
145
|
# @param [Hash] attributes Model attributes in the form of hash
|
130
146
|
# @return [Object] Returns the model itself
|
131
147
|
def build_from_hash(attributes)
|
132
148
|
return nil unless attributes.is_a?(Hash)
|
133
149
|
self.class.swagger_types.each_pair do |key, type|
|
150
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
151
|
+
value = attributes[pname]
|
134
152
|
if type =~ /\AArray<(.*)>/i
|
135
153
|
# 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
|
138
|
-
self.send("#{key}=",
|
154
|
+
# is documented as an array but the input is not
|
155
|
+
if value.is_a?(Array)
|
156
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
139
157
|
end
|
140
|
-
elsif !
|
141
|
-
self.send("#{key}=", _deserialize(type,
|
158
|
+
elsif !value.nil?
|
159
|
+
self.send("#{key}=", _deserialize(type, value))
|
142
160
|
end
|
143
161
|
# or else data not found in attributes(hash), not an issue as the data can be optional
|
144
162
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
#
|
2
2
|
# --------------------------------------------------------------------------------------------------------------------
|
3
3
|
# <copyright company="Aspose Pty Ltd" file="render_options.rb">
|
4
|
-
# Copyright (c) 2003-
|
4
|
+
# Copyright (c) 2003-2019 Aspose Pty Ltd
|
5
5
|
# </copyright>
|
6
6
|
# <summary>
|
7
7
|
# Permission is hereby granted, free of charge, to any person obtaining a copy
|
@@ -28,108 +28,68 @@
|
|
28
28
|
require 'date'
|
29
29
|
|
30
30
|
module GroupDocsViewerCloud
|
31
|
-
#
|
31
|
+
# Rendering options
|
32
32
|
class RenderOptions
|
33
33
|
|
34
|
-
#
|
35
|
-
attr_accessor :
|
34
|
+
# Page number from which rendering should be started
|
35
|
+
attr_accessor :start_page_number
|
36
|
+
|
37
|
+
# Count pages which should be rendered
|
38
|
+
attr_accessor :count_pages_to_render
|
36
39
|
|
37
|
-
#
|
38
|
-
attr_accessor :
|
40
|
+
# Default font name may be specified in following cases: - You want to generally specify the default font to fall back on, if particular font in the document cannot be found during rendering. - Your document uses fonts, that contain non-English characters and you want to make sure any missing font is replaced with one that has the same character set available.
|
41
|
+
attr_accessor :default_font_name
|
39
42
|
|
40
|
-
#
|
41
|
-
attr_accessor :
|
43
|
+
# Default encoding for the plain text files such as .csv, .txt and .eml files when encoding is not specified in header
|
44
|
+
attr_accessor :default_encoding
|
42
45
|
|
43
|
-
#
|
46
|
+
# When enabled comments will be rendered to the output.
|
44
47
|
attr_accessor :render_comments
|
45
48
|
|
46
|
-
#
|
49
|
+
# When enabled hidden pages, sheets or slides will be rendered to the output
|
47
50
|
attr_accessor :render_hidden_pages
|
48
51
|
|
49
|
-
#
|
50
|
-
attr_accessor :
|
51
|
-
|
52
|
-
# The name of the default font. Default font name may be specified in following cases: - You want to generally specify the default font to fall back on, if particular font in the document cannot be found during rendering. - Your document uses fonts, that contain non-English characters and you want to make sure any missing font is replaced with one that has the same character set available.
|
53
|
-
attr_accessor :default_font_name
|
54
|
-
|
55
|
-
# Allows to specify watermark.
|
56
|
-
attr_accessor :watermark
|
52
|
+
# Rendering options for Spreadsheet file formats. Spreadsheet file formats include files with extensions: .xls, .xlsx, .xlsm, .xlsb, .csv, .ods, .ots, .xltx, .xltm, .tsv
|
53
|
+
attr_accessor :spreadsheet_options
|
57
54
|
|
58
|
-
#
|
59
|
-
attr_accessor :cells_options
|
60
|
-
|
61
|
-
# The CAD documents rendering options.
|
55
|
+
# Rendering options for CAD file formats. CAD file formats include files with extensions: .dwg, .dxf, .dgn, .ifc, .stl
|
62
56
|
attr_accessor :cad_options
|
63
57
|
|
64
|
-
#
|
58
|
+
# Rendering options for Email file formats. Email file formats include files with extensions: .msg, .eml, .emlx, .ifc, .stl
|
65
59
|
attr_accessor :email_options
|
66
60
|
|
67
|
-
#
|
68
|
-
attr_accessor :
|
69
|
-
|
70
|
-
# The PDF documents rendering options.
|
71
|
-
attr_accessor :pdf_options
|
72
|
-
|
73
|
-
# The Presentation documents rendering options.
|
74
|
-
attr_accessor :slides_options
|
75
|
-
|
76
|
-
# The Microsoft Project documents rendering options.
|
77
|
-
attr_accessor :project_options
|
78
|
-
|
79
|
-
# The Outlook Data File document (PST/OST) rendering options.
|
80
|
-
attr_accessor :outlook_options
|
81
|
-
|
82
|
-
# Allows to specify document page number as starting page to render.
|
83
|
-
attr_accessor :start_page_number
|
84
|
-
|
85
|
-
# Allows to specify count of document pages to render.
|
86
|
-
attr_accessor :count_pages
|
61
|
+
# Rendering options for Project file formats. Project file formats include files with extensions: .mpt, .mpp
|
62
|
+
attr_accessor :project_management_options
|
87
63
|
|
88
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
89
65
|
def self.attribute_map
|
90
66
|
{
|
91
|
-
:'
|
92
|
-
:'
|
93
|
-
:'
|
94
|
-
:'
|
95
|
-
:'
|
96
|
-
:'
|
97
|
-
:'
|
98
|
-
:'
|
99
|
-
:'
|
100
|
-
:'
|
101
|
-
:'email_options' => :'emailOptions',
|
102
|
-
:'words_options' => :'wordsOptions',
|
103
|
-
:'pdf_options' => :'pdfOptions',
|
104
|
-
:'slides_options' => :'slidesOptions',
|
105
|
-
:'project_options' => :'projectOptions',
|
106
|
-
:'outlook_options' => :'outlookOptions',
|
107
|
-
:'start_page_number' => :'startPageNumber',
|
108
|
-
:'count_pages' => :'countPages'
|
67
|
+
:'start_page_number' => :'StartPageNumber',
|
68
|
+
:'count_pages_to_render' => :'CountPagesToRender',
|
69
|
+
:'default_font_name' => :'DefaultFontName',
|
70
|
+
:'default_encoding' => :'DefaultEncoding',
|
71
|
+
:'render_comments' => :'RenderComments',
|
72
|
+
:'render_hidden_pages' => :'RenderHiddenPages',
|
73
|
+
:'spreadsheet_options' => :'SpreadsheetOptions',
|
74
|
+
:'cad_options' => :'CadOptions',
|
75
|
+
:'email_options' => :'EmailOptions',
|
76
|
+
:'project_management_options' => :'ProjectManagementOptions'
|
109
77
|
}
|
110
78
|
end
|
111
79
|
|
112
80
|
# Attribute type mapping.
|
113
81
|
def self.swagger_types
|
114
82
|
{
|
115
|
-
:'
|
116
|
-
:'
|
117
|
-
:'
|
83
|
+
:'start_page_number' => :'Integer',
|
84
|
+
:'count_pages_to_render' => :'Integer',
|
85
|
+
:'default_font_name' => :'String',
|
86
|
+
:'default_encoding' => :'String',
|
118
87
|
:'render_comments' => :'BOOLEAN',
|
119
88
|
:'render_hidden_pages' => :'BOOLEAN',
|
120
|
-
:'
|
121
|
-
:'default_font_name' => :'String',
|
122
|
-
:'watermark' => :'Watermark',
|
123
|
-
:'cells_options' => :'CellsOptions',
|
89
|
+
:'spreadsheet_options' => :'SpreadsheetOptions',
|
124
90
|
:'cad_options' => :'CadOptions',
|
125
91
|
:'email_options' => :'EmailOptions',
|
126
|
-
:'
|
127
|
-
:'pdf_options' => :'PdfOptions',
|
128
|
-
:'slides_options' => :'SlidesOptions',
|
129
|
-
:'project_options' => :'ProjectOptions',
|
130
|
-
:'outlook_options' => :'OutlookOptions',
|
131
|
-
:'start_page_number' => :'Integer',
|
132
|
-
:'count_pages' => :'Integer'
|
92
|
+
:'project_management_options' => :'ProjectManagementOptions'
|
133
93
|
}
|
134
94
|
end
|
135
95
|
|
@@ -141,92 +101,78 @@ module GroupDocsViewerCloud
|
|
141
101
|
# convert string to symbol for hash key
|
142
102
|
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
143
103
|
|
144
|
-
if attributes.key?(:'
|
145
|
-
self.
|
104
|
+
if attributes.key?(:'StartPageNumber')
|
105
|
+
self.start_page_number = attributes[:'StartPageNumber']
|
146
106
|
end
|
147
107
|
|
148
|
-
if attributes.key?(:'
|
149
|
-
self.
|
108
|
+
if attributes.key?(:'CountPagesToRender')
|
109
|
+
self.count_pages_to_render = attributes[:'CountPagesToRender']
|
150
110
|
end
|
151
111
|
|
152
|
-
if attributes.key?(:'
|
153
|
-
self.
|
112
|
+
if attributes.key?(:'DefaultFontName')
|
113
|
+
self.default_font_name = attributes[:'DefaultFontName']
|
154
114
|
end
|
155
115
|
|
156
|
-
if attributes.key?(:'
|
157
|
-
self.
|
116
|
+
if attributes.key?(:'DefaultEncoding')
|
117
|
+
self.default_encoding = attributes[:'DefaultEncoding']
|
158
118
|
end
|
159
119
|
|
160
|
-
if attributes.key?(:'
|
161
|
-
self.
|
162
|
-
end
|
163
|
-
|
164
|
-
if attributes.key?(:'transforms')
|
165
|
-
if (value = attributes[:'transforms']).is_a?(Array)
|
166
|
-
self.transforms = value
|
167
|
-
end
|
120
|
+
if attributes.key?(:'RenderComments')
|
121
|
+
self.render_comments = attributes[:'RenderComments']
|
168
122
|
end
|
169
123
|
|
170
|
-
if attributes.key?(:'
|
171
|
-
self.
|
124
|
+
if attributes.key?(:'RenderHiddenPages')
|
125
|
+
self.render_hidden_pages = attributes[:'RenderHiddenPages']
|
172
126
|
end
|
173
127
|
|
174
|
-
if attributes.key?(:'
|
175
|
-
self.
|
128
|
+
if attributes.key?(:'SpreadsheetOptions')
|
129
|
+
self.spreadsheet_options = attributes[:'SpreadsheetOptions']
|
176
130
|
end
|
177
131
|
|
178
|
-
if attributes.key?(:'
|
179
|
-
self.
|
132
|
+
if attributes.key?(:'CadOptions')
|
133
|
+
self.cad_options = attributes[:'CadOptions']
|
180
134
|
end
|
181
135
|
|
182
|
-
if attributes.key?(:'
|
183
|
-
self.
|
136
|
+
if attributes.key?(:'EmailOptions')
|
137
|
+
self.email_options = attributes[:'EmailOptions']
|
184
138
|
end
|
185
139
|
|
186
|
-
if attributes.key?(:'
|
187
|
-
self.
|
140
|
+
if attributes.key?(:'ProjectManagementOptions')
|
141
|
+
self.project_management_options = attributes[:'ProjectManagementOptions']
|
188
142
|
end
|
189
143
|
|
190
|
-
|
191
|
-
self.words_options = attributes[:'wordsOptions']
|
192
|
-
end
|
193
|
-
|
194
|
-
if attributes.key?(:'pdfOptions')
|
195
|
-
self.pdf_options = attributes[:'pdfOptions']
|
196
|
-
end
|
197
|
-
|
198
|
-
if attributes.key?(:'slidesOptions')
|
199
|
-
self.slides_options = attributes[:'slidesOptions']
|
200
|
-
end
|
144
|
+
end
|
201
145
|
|
202
|
-
|
203
|
-
|
146
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
147
|
+
# @return Array for valid properies with the reasons
|
148
|
+
def list_invalid_properties
|
149
|
+
invalid_properties = []
|
150
|
+
if @start_page_number.nil?
|
151
|
+
invalid_properties.push("invalid value for 'start_page_number', start_page_number cannot be nil.")
|
204
152
|
end
|
205
153
|
|
206
|
-
if
|
207
|
-
|
154
|
+
if @count_pages_to_render.nil?
|
155
|
+
invalid_properties.push("invalid value for 'count_pages_to_render', count_pages_to_render cannot be nil.")
|
208
156
|
end
|
209
157
|
|
210
|
-
if
|
211
|
-
|
158
|
+
if @render_comments.nil?
|
159
|
+
invalid_properties.push("invalid value for 'render_comments', render_comments cannot be nil.")
|
212
160
|
end
|
213
161
|
|
214
|
-
if
|
215
|
-
|
162
|
+
if @render_hidden_pages.nil?
|
163
|
+
invalid_properties.push("invalid value for 'render_hidden_pages', render_hidden_pages cannot be nil.")
|
216
164
|
end
|
217
165
|
|
218
|
-
end
|
219
|
-
|
220
|
-
# Show invalid properties with the reasons. Usually used together with valid?
|
221
|
-
# @return Array for valid properies with the reasons
|
222
|
-
def list_invalid_properties
|
223
|
-
invalid_properties = []
|
224
166
|
return invalid_properties
|
225
167
|
end
|
226
168
|
|
227
169
|
# Check to see if the all the properties in the model are valid
|
228
170
|
# @return true if the model is valid
|
229
171
|
def valid?
|
172
|
+
return false if @start_page_number.nil?
|
173
|
+
return false if @count_pages_to_render.nil?
|
174
|
+
return false if @render_comments.nil?
|
175
|
+
return false if @render_hidden_pages.nil?
|
230
176
|
return true
|
231
177
|
end
|
232
178
|
|
@@ -235,24 +181,16 @@ module GroupDocsViewerCloud
|
|
235
181
|
def ==(other)
|
236
182
|
return true if self.equal?(other)
|
237
183
|
self.class == other.class &&
|
238
|
-
|
239
|
-
|
240
|
-
|
184
|
+
start_page_number == other.start_page_number &&
|
185
|
+
count_pages_to_render == other.count_pages_to_render &&
|
186
|
+
default_font_name == other.default_font_name &&
|
187
|
+
default_encoding == other.default_encoding &&
|
241
188
|
render_comments == other.render_comments &&
|
242
189
|
render_hidden_pages == other.render_hidden_pages &&
|
243
|
-
|
244
|
-
default_font_name == other.default_font_name &&
|
245
|
-
watermark == other.watermark &&
|
246
|
-
cells_options == other.cells_options &&
|
190
|
+
spreadsheet_options == other.spreadsheet_options &&
|
247
191
|
cad_options == other.cad_options &&
|
248
192
|
email_options == other.email_options &&
|
249
|
-
|
250
|
-
pdf_options == other.pdf_options &&
|
251
|
-
slides_options == other.slides_options &&
|
252
|
-
project_options == other.project_options &&
|
253
|
-
outlook_options == other.outlook_options &&
|
254
|
-
start_page_number == other.start_page_number &&
|
255
|
-
count_pages == other.count_pages
|
193
|
+
project_management_options == other.project_management_options
|
256
194
|
end
|
257
195
|
|
258
196
|
# @see the `==` method
|
@@ -264,7 +202,13 @@ module GroupDocsViewerCloud
|
|
264
202
|
# Calculates hash code according to all attributes.
|
265
203
|
# @return [Fixnum] Hash code
|
266
204
|
def hash
|
267
|
-
[
|
205
|
+
[start_page_number, count_pages_to_render, default_font_name, default_encoding, render_comments, render_hidden_pages, spreadsheet_options, cad_options, email_options, project_management_options].hash
|
206
|
+
end
|
207
|
+
|
208
|
+
# Downcases first letter.
|
209
|
+
# @return downcased string
|
210
|
+
def uncap(str)
|
211
|
+
str[0, 1].downcase + str[1..-1]
|
268
212
|
end
|
269
213
|
|
270
214
|
# Builds the object from hash
|
@@ -273,14 +217,16 @@ module GroupDocsViewerCloud
|
|
273
217
|
def build_from_hash(attributes)
|
274
218
|
return nil unless attributes.is_a?(Hash)
|
275
219
|
self.class.swagger_types.each_pair do |key, type|
|
220
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
221
|
+
value = attributes[pname]
|
276
222
|
if type =~ /\AArray<(.*)>/i
|
277
223
|
# check to ensure the input is an array given that the the attribute
|
278
|
-
# is documented as an array but the input is not
|
279
|
-
if
|
280
|
-
self.send("#{key}=",
|
224
|
+
# is documented as an array but the input is not
|
225
|
+
if value.is_a?(Array)
|
226
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
281
227
|
end
|
282
|
-
elsif !
|
283
|
-
self.send("#{key}=", _deserialize(type,
|
228
|
+
elsif !value.nil?
|
229
|
+
self.send("#{key}=", _deserialize(type, value))
|
284
230
|
end
|
285
231
|
# or else data not found in attributes(hash), not an issue as the data can be optional
|
286
232
|
end
|