groupdocs_viewer_cloud 18.7 → 18.11
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 +1 -29
- data/lib/groupdocs_viewer_cloud/api_client.rb +1 -11
- data/lib/groupdocs_viewer_cloud/api_error.rb +3 -1
- data/lib/groupdocs_viewer_cloud/configuration.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/attachment.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/attachment_collection.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/attachment_info.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/cad_options.rb +3 -3
- data/lib/groupdocs_viewer_cloud/models/cells_options.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/document_info.rb +26 -6
- data/lib/groupdocs_viewer_cloud/models/document_info_options.rb +16 -6
- data/lib/groupdocs_viewer_cloud/models/email_options.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/field_label.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/file_response.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/font_collection.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/font_family.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/format.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/format_collection.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/html_attachment_page_collection.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/html_options.rb +28 -6
- data/lib/groupdocs_viewer_cloud/models/html_page.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/html_page_collection.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/image_attachment_page_collection.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/image_options.rb +13 -3
- data/lib/groupdocs_viewer_cloud/models/image_page.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/image_page_collection.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/outlook_options.rb +206 -0
- data/lib/groupdocs_viewer_cloud/models/page_info.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/page_info_collection.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/pdf_file_info.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/pdf_file_options.rb +16 -6
- data/lib/groupdocs_viewer_cloud/models/pdf_options.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/project_options.rb +26 -6
- data/lib/groupdocs_viewer_cloud/models/render_options.rb +13 -3
- data/lib/groupdocs_viewer_cloud/models/render_options_base.rb +16 -6
- data/lib/groupdocs_viewer_cloud/models/reorder_options.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/resource.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/resource_url.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/rotate_options.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/row_info.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/slides_options.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/tile.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/transform_options_base.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/watermark.rb +2 -2
- data/lib/groupdocs_viewer_cloud/models/words_options.rb +2 -2
- data/lib/groupdocs_viewer_cloud/version.rb +1 -1
- metadata +10 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: aae4096fd39ad986135f6ad61ea705f916ea0d1e
|
|
4
|
+
data.tar.gz: c8601a4a31d37a8d6958085782d11892704e1e18
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: edc404262f254191ad5af029e76d94892fdb384330d7a2eabef4f8e9da8a894d8e7b32e75aad446cddc15c958ecd8c805272a7410b51e263b1b64e867b9b7775
|
|
7
|
+
data.tar.gz: 81b7b536ea2e77f81631264f8c08d513e89f994ce9ea762dfe092e5043791c42bdb1e9157cab6f9a3bcb0f524f5088d9981efc9062f452338d2e9e33225ba4b6
|
|
@@ -45,6 +45,7 @@ require_relative 'groupdocs_viewer_cloud/models/format_collection'
|
|
|
45
45
|
require_relative 'groupdocs_viewer_cloud/models/html_attachment_page_collection'
|
|
46
46
|
require_relative 'groupdocs_viewer_cloud/models/html_page_collection'
|
|
47
47
|
require_relative 'groupdocs_viewer_cloud/models/image_attachment_page_collection'
|
|
48
|
+
require_relative 'groupdocs_viewer_cloud/models/outlook_options'
|
|
48
49
|
require_relative 'groupdocs_viewer_cloud/models/page_info'
|
|
49
50
|
require_relative 'groupdocs_viewer_cloud/models/page_info_collection'
|
|
50
51
|
require_relative 'groupdocs_viewer_cloud/models/pdf_options'
|
|
@@ -73,32 +74,3 @@ require_relative 'groupdocs_viewer_cloud/models/image_options'
|
|
|
73
74
|
|
|
74
75
|
# APIs
|
|
75
76
|
require_relative 'groupdocs_viewer_cloud/api/viewer_api'
|
|
76
|
-
|
|
77
|
-
module GroupDocsViewerCloud
|
|
78
|
-
# Main module
|
|
79
|
-
class << self
|
|
80
|
-
# Initialize SDK with API keys.
|
|
81
|
-
#
|
|
82
|
-
# app_sid = "xxx"
|
|
83
|
-
# app_key = "xxx"
|
|
84
|
-
#
|
|
85
|
-
# GroupDocsViewerCloud.from_keys(app_sid, app_key)
|
|
86
|
-
def from_keys(app_sid, app_key)
|
|
87
|
-
ViewerApi.from_keys(app_sid, app_key)
|
|
88
|
-
end
|
|
89
|
-
|
|
90
|
-
# Initialize SDK with Configuration.
|
|
91
|
-
#
|
|
92
|
-
# app_sid = "xxx"
|
|
93
|
-
# app_key = "xxx"
|
|
94
|
-
#
|
|
95
|
-
# config = GroupDocsViewerCloud::Configuration.new(app_sid, app_key)
|
|
96
|
-
# config.debugging = true
|
|
97
|
-
# config.temp_folder_path = "./temp"
|
|
98
|
-
#
|
|
99
|
-
# GroupDocsViewerCloud.from_config(config)
|
|
100
|
-
def from_config(config)
|
|
101
|
-
ViewerApi.from_config(config)
|
|
102
|
-
end
|
|
103
|
-
end
|
|
104
|
-
end
|
|
@@ -69,18 +69,8 @@ module GroupDocsViewerCloud
|
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
unless response.success?
|
|
72
|
-
|
|
73
|
-
# Errors from libcurl will be made visible here
|
|
74
|
-
raise ApiError.new(:code => 0,
|
|
75
|
-
:message => response.reason_phrase)
|
|
76
|
-
else
|
|
77
|
-
raise ApiError.new(:code => response.status,
|
|
78
|
-
:response_headers => response.headers,
|
|
79
|
-
:response_body => response.body),
|
|
80
|
-
response.reason_phrase
|
|
81
|
-
end
|
|
72
|
+
raise ApiError.new(:code => response.status, :response_body => response.body)
|
|
82
73
|
end
|
|
83
|
-
|
|
84
74
|
|
|
85
75
|
data = deserialize(response, opts[:return_type]) if opts[:return_type]
|
|
86
76
|
[data, response.status, response.headers]
|
|
@@ -39,7 +39,9 @@ module GroupDocsViewerCloud
|
|
|
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? && !data[:
|
|
42
|
+
if !data.nil? && !data[:error_description].nil? then
|
|
43
|
+
@message = data[:error_description]
|
|
44
|
+
elsif !data.nil? && !data[:error].nil? && !data[:error][:message].nil? then
|
|
43
45
|
@message = data[:error][:message]
|
|
44
46
|
end
|
|
45
47
|
end
|
|
@@ -34,7 +34,7 @@ module GroupDocsViewerCloud
|
|
|
34
34
|
# @return [String] Api base url
|
|
35
35
|
attr_accessor :api_base_url
|
|
36
36
|
|
|
37
|
-
# Api version, default is ''
|
|
37
|
+
# Api version, default is '/v1'
|
|
38
38
|
#
|
|
39
39
|
# @return [String] Api version
|
|
40
40
|
attr_accessor :api_version
|
|
@@ -80,7 +80,7 @@ module GroupDocsViewerCloud
|
|
|
80
80
|
# @param [app_key] Application private key (App Key)
|
|
81
81
|
# @return [Configuration] New instance of Configuration
|
|
82
82
|
def initialize(app_sid, app_key)
|
|
83
|
-
@api_base_url = "
|
|
83
|
+
@api_base_url = "http://api.groupdocs.cloud"
|
|
84
84
|
@api_version = '/v1'
|
|
85
85
|
@app_sid = app_sid
|
|
86
86
|
@app_key = app_key
|
|
@@ -133,9 +133,9 @@ module GroupDocsViewerCloud
|
|
|
133
133
|
def _deserialize(type, value)
|
|
134
134
|
case type.to_sym
|
|
135
135
|
when :DateTime
|
|
136
|
-
|
|
136
|
+
Date.parse value
|
|
137
137
|
when :Date
|
|
138
|
-
|
|
138
|
+
Date.parse value
|
|
139
139
|
when :String
|
|
140
140
|
value.to_s
|
|
141
141
|
when :Integer
|
|
@@ -145,9 +145,9 @@ module GroupDocsViewerCloud
|
|
|
145
145
|
def _deserialize(type, value)
|
|
146
146
|
case type.to_sym
|
|
147
147
|
when :DateTime
|
|
148
|
-
|
|
148
|
+
Date.parse value
|
|
149
149
|
when :Date
|
|
150
|
-
|
|
150
|
+
Date.parse value
|
|
151
151
|
when :String
|
|
152
152
|
value.to_s
|
|
153
153
|
when :Integer
|
|
@@ -143,9 +143,9 @@ module GroupDocsViewerCloud
|
|
|
143
143
|
def _deserialize(type, value)
|
|
144
144
|
case type.to_sym
|
|
145
145
|
when :DateTime
|
|
146
|
-
|
|
146
|
+
Date.parse value
|
|
147
147
|
when :Date
|
|
148
|
-
|
|
148
|
+
Date.parse value
|
|
149
149
|
when :String
|
|
150
150
|
value.to_s
|
|
151
151
|
when :Integer
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
require 'date'
|
|
29
29
|
|
|
30
30
|
module GroupDocsViewerCloud
|
|
31
|
-
# The CAD documents rendering options.
|
|
31
|
+
# The CAD documents rendering options. Rendering of CAD file formats is not supported at the moment.
|
|
32
32
|
class CadOptions
|
|
33
33
|
|
|
34
34
|
# The scale factor affects the size of an output document.
|
|
@@ -187,9 +187,9 @@ module GroupDocsViewerCloud
|
|
|
187
187
|
def _deserialize(type, value)
|
|
188
188
|
case type.to_sym
|
|
189
189
|
when :DateTime
|
|
190
|
-
|
|
190
|
+
Date.parse value
|
|
191
191
|
when :Date
|
|
192
|
-
|
|
192
|
+
Date.parse value
|
|
193
193
|
when :String
|
|
194
194
|
value.to_s
|
|
195
195
|
when :Integer
|
|
@@ -213,9 +213,9 @@ module GroupDocsViewerCloud
|
|
|
213
213
|
def _deserialize(type, value)
|
|
214
214
|
case type.to_sym
|
|
215
215
|
when :DateTime
|
|
216
|
-
|
|
216
|
+
Date.parse value
|
|
217
217
|
when :Date
|
|
218
|
-
|
|
218
|
+
Date.parse value
|
|
219
219
|
when :String
|
|
220
220
|
value.to_s
|
|
221
221
|
when :Integer
|
|
@@ -55,6 +55,12 @@ module GroupDocsViewerCloud
|
|
|
55
55
|
# The list of layers contained in a CAD document.
|
|
56
56
|
attr_accessor :layers
|
|
57
57
|
|
|
58
|
+
# For MS Project documents, The date time from which the project started.
|
|
59
|
+
attr_accessor :start_date
|
|
60
|
+
|
|
61
|
+
# For MS Project documents, the date time when the project is to be completed.
|
|
62
|
+
attr_accessor :end_date
|
|
63
|
+
|
|
58
64
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
59
65
|
def self.attribute_map
|
|
60
66
|
{
|
|
@@ -65,7 +71,9 @@ module GroupDocsViewerCloud
|
|
|
65
71
|
:'date_modified' => :'dateModified',
|
|
66
72
|
:'pages' => :'pages',
|
|
67
73
|
:'attachments' => :'attachments',
|
|
68
|
-
:'layers' => :'layers'
|
|
74
|
+
:'layers' => :'layers',
|
|
75
|
+
:'start_date' => :'startDate',
|
|
76
|
+
:'end_date' => :'endDate'
|
|
69
77
|
}
|
|
70
78
|
end
|
|
71
79
|
|
|
@@ -79,7 +87,9 @@ module GroupDocsViewerCloud
|
|
|
79
87
|
:'date_modified' => :'DateTime',
|
|
80
88
|
:'pages' => :'Array<PageInfo>',
|
|
81
89
|
:'attachments' => :'Array<AttachmentInfo>',
|
|
82
|
-
:'layers' => :'Array<String>'
|
|
90
|
+
:'layers' => :'Array<String>',
|
|
91
|
+
:'start_date' => :'DateTime',
|
|
92
|
+
:'end_date' => :'DateTime'
|
|
83
93
|
}
|
|
84
94
|
end
|
|
85
95
|
|
|
@@ -129,6 +139,14 @@ module GroupDocsViewerCloud
|
|
|
129
139
|
end
|
|
130
140
|
end
|
|
131
141
|
|
|
142
|
+
if attributes.key?(:'startDate')
|
|
143
|
+
self.start_date = attributes[:'startDate']
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if attributes.key?(:'endDate')
|
|
147
|
+
self.end_date = attributes[:'endDate']
|
|
148
|
+
end
|
|
149
|
+
|
|
132
150
|
end
|
|
133
151
|
|
|
134
152
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -156,7 +174,9 @@ module GroupDocsViewerCloud
|
|
|
156
174
|
date_modified == other.date_modified &&
|
|
157
175
|
pages == other.pages &&
|
|
158
176
|
attachments == other.attachments &&
|
|
159
|
-
layers == other.layers
|
|
177
|
+
layers == other.layers &&
|
|
178
|
+
start_date == other.start_date &&
|
|
179
|
+
end_date == other.end_date
|
|
160
180
|
end
|
|
161
181
|
|
|
162
182
|
# @see the `==` method
|
|
@@ -168,7 +188,7 @@ module GroupDocsViewerCloud
|
|
|
168
188
|
# Calculates hash code according to all attributes.
|
|
169
189
|
# @return [Fixnum] Hash code
|
|
170
190
|
def hash
|
|
171
|
-
[file_name, extension, file_format, size, date_modified, pages, attachments, layers].hash
|
|
191
|
+
[file_name, extension, file_format, size, date_modified, pages, attachments, layers, start_date, end_date].hash
|
|
172
192
|
end
|
|
173
193
|
|
|
174
194
|
# Builds the object from hash
|
|
@@ -199,9 +219,9 @@ module GroupDocsViewerCloud
|
|
|
199
219
|
def _deserialize(type, value)
|
|
200
220
|
case type.to_sym
|
|
201
221
|
when :DateTime
|
|
202
|
-
|
|
222
|
+
Date.parse value
|
|
203
223
|
when :Date
|
|
204
|
-
|
|
224
|
+
Date.parse value
|
|
205
225
|
when :String
|
|
206
226
|
value.to_s
|
|
207
227
|
when :Integer
|
|
@@ -76,6 +76,9 @@ module GroupDocsViewerCloud
|
|
|
76
76
|
# The Microsoft Project documents rendering options.
|
|
77
77
|
attr_accessor :project_options
|
|
78
78
|
|
|
79
|
+
# The Outlook Data File document (PST/OST) rendering options.
|
|
80
|
+
attr_accessor :outlook_options
|
|
81
|
+
|
|
79
82
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
80
83
|
def self.attribute_map
|
|
81
84
|
{
|
|
@@ -93,7 +96,8 @@ module GroupDocsViewerCloud
|
|
|
93
96
|
:'words_options' => :'wordsOptions',
|
|
94
97
|
:'pdf_options' => :'pdfOptions',
|
|
95
98
|
:'slides_options' => :'slidesOptions',
|
|
96
|
-
:'project_options' => :'projectOptions'
|
|
99
|
+
:'project_options' => :'projectOptions',
|
|
100
|
+
:'outlook_options' => :'outlookOptions'
|
|
97
101
|
}
|
|
98
102
|
end
|
|
99
103
|
|
|
@@ -114,7 +118,8 @@ module GroupDocsViewerCloud
|
|
|
114
118
|
:'words_options' => :'WordsOptions',
|
|
115
119
|
:'pdf_options' => :'PdfOptions',
|
|
116
120
|
:'slides_options' => :'SlidesOptions',
|
|
117
|
-
:'project_options' => :'ProjectOptions'
|
|
121
|
+
:'project_options' => :'ProjectOptions',
|
|
122
|
+
:'outlook_options' => :'OutlookOptions'
|
|
118
123
|
}
|
|
119
124
|
end
|
|
120
125
|
|
|
@@ -188,6 +193,10 @@ module GroupDocsViewerCloud
|
|
|
188
193
|
self.project_options = attributes[:'projectOptions']
|
|
189
194
|
end
|
|
190
195
|
|
|
196
|
+
if attributes.key?(:'outlookOptions')
|
|
197
|
+
self.outlook_options = attributes[:'outlookOptions']
|
|
198
|
+
end
|
|
199
|
+
|
|
191
200
|
end
|
|
192
201
|
|
|
193
202
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -222,7 +231,8 @@ module GroupDocsViewerCloud
|
|
|
222
231
|
words_options == other.words_options &&
|
|
223
232
|
pdf_options == other.pdf_options &&
|
|
224
233
|
slides_options == other.slides_options &&
|
|
225
|
-
project_options == other.project_options
|
|
234
|
+
project_options == other.project_options &&
|
|
235
|
+
outlook_options == other.outlook_options
|
|
226
236
|
end
|
|
227
237
|
|
|
228
238
|
# @see the `==` method
|
|
@@ -234,7 +244,7 @@ module GroupDocsViewerCloud
|
|
|
234
244
|
# Calculates hash code according to all attributes.
|
|
235
245
|
# @return [Fixnum] Hash code
|
|
236
246
|
def hash
|
|
237
|
-
[password, attachment_password, extract_text, render_comments, render_hidden_pages, transforms, default_font_name, watermark, cells_options, cad_options, email_options, words_options, pdf_options, slides_options, project_options].hash
|
|
247
|
+
[password, attachment_password, extract_text, render_comments, render_hidden_pages, transforms, default_font_name, watermark, cells_options, cad_options, email_options, words_options, pdf_options, slides_options, project_options, outlook_options].hash
|
|
238
248
|
end
|
|
239
249
|
|
|
240
250
|
# Builds the object from hash
|
|
@@ -265,9 +275,9 @@ module GroupDocsViewerCloud
|
|
|
265
275
|
def _deserialize(type, value)
|
|
266
276
|
case type.to_sym
|
|
267
277
|
when :DateTime
|
|
268
|
-
|
|
278
|
+
Date.parse value
|
|
269
279
|
when :Date
|
|
270
|
-
|
|
280
|
+
Date.parse value
|
|
271
281
|
when :String
|
|
272
282
|
value.to_s
|
|
273
283
|
when :Integer
|
|
@@ -145,9 +145,9 @@ module GroupDocsViewerCloud
|
|
|
145
145
|
def _deserialize(type, value)
|
|
146
146
|
case type.to_sym
|
|
147
147
|
when :DateTime
|
|
148
|
-
|
|
148
|
+
Date.parse value
|
|
149
149
|
when :Date
|
|
150
|
-
|
|
150
|
+
Date.parse value
|
|
151
151
|
when :String
|
|
152
152
|
value.to_s
|
|
153
153
|
when :Integer
|
|
@@ -133,9 +133,9 @@ module GroupDocsViewerCloud
|
|
|
133
133
|
def _deserialize(type, value)
|
|
134
134
|
case type.to_sym
|
|
135
135
|
when :DateTime
|
|
136
|
-
|
|
136
|
+
Date.parse value
|
|
137
137
|
when :Date
|
|
138
|
-
|
|
138
|
+
Date.parse value
|
|
139
139
|
when :String
|
|
140
140
|
value.to_s
|
|
141
141
|
when :Integer
|
|
@@ -113,9 +113,9 @@ module GroupDocsViewerCloud
|
|
|
113
113
|
def _deserialize(type, value)
|
|
114
114
|
case type.to_sym
|
|
115
115
|
when :DateTime
|
|
116
|
-
|
|
116
|
+
Date.parse value
|
|
117
117
|
when :Date
|
|
118
|
-
|
|
118
|
+
Date.parse value
|
|
119
119
|
when :String
|
|
120
120
|
value.to_s
|
|
121
121
|
when :Integer
|
|
@@ -125,9 +125,9 @@ module GroupDocsViewerCloud
|
|
|
125
125
|
def _deserialize(type, value)
|
|
126
126
|
case type.to_sym
|
|
127
127
|
when :DateTime
|
|
128
|
-
|
|
128
|
+
Date.parse value
|
|
129
129
|
when :Date
|
|
130
|
-
|
|
130
|
+
Date.parse value
|
|
131
131
|
when :String
|
|
132
132
|
value.to_s
|
|
133
133
|
when :Integer
|
|
@@ -123,9 +123,9 @@ module GroupDocsViewerCloud
|
|
|
123
123
|
def _deserialize(type, value)
|
|
124
124
|
case type.to_sym
|
|
125
125
|
when :DateTime
|
|
126
|
-
|
|
126
|
+
Date.parse value
|
|
127
127
|
when :Date
|
|
128
|
-
|
|
128
|
+
Date.parse value
|
|
129
129
|
when :String
|
|
130
130
|
value.to_s
|
|
131
131
|
when :Integer
|
|
@@ -133,9 +133,9 @@ module GroupDocsViewerCloud
|
|
|
133
133
|
def _deserialize(type, value)
|
|
134
134
|
case type.to_sym
|
|
135
135
|
when :DateTime
|
|
136
|
-
|
|
136
|
+
Date.parse value
|
|
137
137
|
when :Date
|
|
138
|
-
|
|
138
|
+
Date.parse value
|
|
139
139
|
when :String
|
|
140
140
|
value.to_s
|
|
141
141
|
when :Integer
|
|
@@ -125,9 +125,9 @@ module GroupDocsViewerCloud
|
|
|
125
125
|
def _deserialize(type, value)
|
|
126
126
|
case type.to_sym
|
|
127
127
|
when :DateTime
|
|
128
|
-
|
|
128
|
+
Date.parse value
|
|
129
129
|
when :Date
|
|
130
|
-
|
|
130
|
+
Date.parse value
|
|
131
131
|
when :String
|
|
132
132
|
value.to_s
|
|
133
133
|
when :Integer
|
|
@@ -155,9 +155,9 @@ module GroupDocsViewerCloud
|
|
|
155
155
|
def _deserialize(type, value)
|
|
156
156
|
case type.to_sym
|
|
157
157
|
when :DateTime
|
|
158
|
-
|
|
158
|
+
Date.parse value
|
|
159
159
|
when :Date
|
|
160
|
-
|
|
160
|
+
Date.parse value
|
|
161
161
|
when :String
|
|
162
162
|
value.to_s
|
|
163
163
|
when :Integer
|
|
@@ -76,6 +76,9 @@ module GroupDocsViewerCloud
|
|
|
76
76
|
# The Microsoft Project documents rendering options.
|
|
77
77
|
attr_accessor :project_options
|
|
78
78
|
|
|
79
|
+
# The Outlook Data File document (PST/OST) rendering options.
|
|
80
|
+
attr_accessor :outlook_options
|
|
81
|
+
|
|
79
82
|
# Allows to specify document page number as starting page to render.
|
|
80
83
|
attr_accessor :start_page_number
|
|
81
84
|
|
|
@@ -100,6 +103,9 @@ module GroupDocsViewerCloud
|
|
|
100
103
|
# Prevents adding fonts to the output HTML document.
|
|
101
104
|
attr_accessor :exclude_fonts
|
|
102
105
|
|
|
106
|
+
# The list of font names, that will be excluded from HTML.
|
|
107
|
+
attr_accessor :exclude_fonts_list
|
|
108
|
+
|
|
103
109
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
104
110
|
def self.attribute_map
|
|
105
111
|
{
|
|
@@ -118,6 +124,7 @@ module GroupDocsViewerCloud
|
|
|
118
124
|
:'pdf_options' => :'pdfOptions',
|
|
119
125
|
:'slides_options' => :'slidesOptions',
|
|
120
126
|
:'project_options' => :'projectOptions',
|
|
127
|
+
:'outlook_options' => :'outlookOptions',
|
|
121
128
|
:'start_page_number' => :'startPageNumber',
|
|
122
129
|
:'count_pages' => :'countPages',
|
|
123
130
|
:'resource_path' => :'resourcePath',
|
|
@@ -125,7 +132,8 @@ module GroupDocsViewerCloud
|
|
|
125
132
|
:'embed_resources' => :'embedResources',
|
|
126
133
|
:'enable_minification' => :'enableMinification',
|
|
127
134
|
:'enable_responsive_rendering' => :'enableResponsiveRendering',
|
|
128
|
-
:'exclude_fonts' => :'excludeFonts'
|
|
135
|
+
:'exclude_fonts' => :'excludeFonts',
|
|
136
|
+
:'exclude_fonts_list' => :'excludeFontsList'
|
|
129
137
|
}
|
|
130
138
|
end
|
|
131
139
|
|
|
@@ -147,6 +155,7 @@ module GroupDocsViewerCloud
|
|
|
147
155
|
:'pdf_options' => :'PdfOptions',
|
|
148
156
|
:'slides_options' => :'SlidesOptions',
|
|
149
157
|
:'project_options' => :'ProjectOptions',
|
|
158
|
+
:'outlook_options' => :'OutlookOptions',
|
|
150
159
|
:'start_page_number' => :'Integer',
|
|
151
160
|
:'count_pages' => :'Integer',
|
|
152
161
|
:'resource_path' => :'String',
|
|
@@ -154,7 +163,8 @@ module GroupDocsViewerCloud
|
|
|
154
163
|
:'embed_resources' => :'BOOLEAN',
|
|
155
164
|
:'enable_minification' => :'BOOLEAN',
|
|
156
165
|
:'enable_responsive_rendering' => :'BOOLEAN',
|
|
157
|
-
:'exclude_fonts' => :'BOOLEAN'
|
|
166
|
+
:'exclude_fonts' => :'BOOLEAN',
|
|
167
|
+
:'exclude_fonts_list' => :'Array<String>'
|
|
158
168
|
}
|
|
159
169
|
end
|
|
160
170
|
|
|
@@ -228,6 +238,10 @@ module GroupDocsViewerCloud
|
|
|
228
238
|
self.project_options = attributes[:'projectOptions']
|
|
229
239
|
end
|
|
230
240
|
|
|
241
|
+
if attributes.key?(:'outlookOptions')
|
|
242
|
+
self.outlook_options = attributes[:'outlookOptions']
|
|
243
|
+
end
|
|
244
|
+
|
|
231
245
|
if attributes.key?(:'startPageNumber')
|
|
232
246
|
self.start_page_number = attributes[:'startPageNumber']
|
|
233
247
|
end
|
|
@@ -260,6 +274,12 @@ module GroupDocsViewerCloud
|
|
|
260
274
|
self.exclude_fonts = attributes[:'excludeFonts']
|
|
261
275
|
end
|
|
262
276
|
|
|
277
|
+
if attributes.key?(:'excludeFontsList')
|
|
278
|
+
if (value = attributes[:'excludeFontsList']).is_a?(Array)
|
|
279
|
+
self.exclude_fonts_list = value
|
|
280
|
+
end
|
|
281
|
+
end
|
|
282
|
+
|
|
263
283
|
end
|
|
264
284
|
|
|
265
285
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -295,6 +315,7 @@ module GroupDocsViewerCloud
|
|
|
295
315
|
pdf_options == other.pdf_options &&
|
|
296
316
|
slides_options == other.slides_options &&
|
|
297
317
|
project_options == other.project_options &&
|
|
318
|
+
outlook_options == other.outlook_options &&
|
|
298
319
|
start_page_number == other.start_page_number &&
|
|
299
320
|
count_pages == other.count_pages &&
|
|
300
321
|
resource_path == other.resource_path &&
|
|
@@ -302,7 +323,8 @@ module GroupDocsViewerCloud
|
|
|
302
323
|
embed_resources == other.embed_resources &&
|
|
303
324
|
enable_minification == other.enable_minification &&
|
|
304
325
|
enable_responsive_rendering == other.enable_responsive_rendering &&
|
|
305
|
-
exclude_fonts == other.exclude_fonts
|
|
326
|
+
exclude_fonts == other.exclude_fonts &&
|
|
327
|
+
exclude_fonts_list == other.exclude_fonts_list
|
|
306
328
|
end
|
|
307
329
|
|
|
308
330
|
# @see the `==` method
|
|
@@ -314,7 +336,7 @@ module GroupDocsViewerCloud
|
|
|
314
336
|
# Calculates hash code according to all attributes.
|
|
315
337
|
# @return [Fixnum] Hash code
|
|
316
338
|
def hash
|
|
317
|
-
[password, attachment_password, extract_text, render_comments, render_hidden_pages, transforms, default_font_name, watermark, cells_options, cad_options, email_options, words_options, pdf_options, slides_options, project_options, start_page_number, count_pages, resource_path, ignore_resource_path_in_resources, embed_resources, enable_minification, enable_responsive_rendering, exclude_fonts].hash
|
|
339
|
+
[password, attachment_password, extract_text, render_comments, render_hidden_pages, transforms, default_font_name, watermark, cells_options, cad_options, email_options, words_options, pdf_options, slides_options, project_options, outlook_options, start_page_number, count_pages, resource_path, ignore_resource_path_in_resources, embed_resources, enable_minification, enable_responsive_rendering, exclude_fonts, exclude_fonts_list].hash
|
|
318
340
|
end
|
|
319
341
|
|
|
320
342
|
# Builds the object from hash
|
|
@@ -345,9 +367,9 @@ module GroupDocsViewerCloud
|
|
|
345
367
|
def _deserialize(type, value)
|
|
346
368
|
case type.to_sym
|
|
347
369
|
when :DateTime
|
|
348
|
-
|
|
370
|
+
Date.parse value
|
|
349
371
|
when :Date
|
|
350
|
-
|
|
372
|
+
Date.parse value
|
|
351
373
|
when :String
|
|
352
374
|
value.to_s
|
|
353
375
|
when :Integer
|