groupdocs_conversion_cloud 20.2 → 20.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_conversion_cloud.rb +2 -0
- data/lib/groupdocs_conversion_cloud/models/email_load_options.rb +31 -4
- data/lib/groupdocs_conversion_cloud/models/eml_load_options.rb +31 -4
- data/lib/groupdocs_conversion_cloud/models/emlx_load_options.rb +31 -4
- data/lib/groupdocs_conversion_cloud/models/field_label.rb +266 -0
- data/lib/groupdocs_conversion_cloud/models/html_convert_options.rb +16 -1
- data/lib/groupdocs_conversion_cloud/models/html_load_options.rb +219 -0
- data/lib/groupdocs_conversion_cloud/models/mht_load_options.rb +31 -4
- data/lib/groupdocs_conversion_cloud/models/msg_load_options.rb +31 -4
- data/lib/groupdocs_conversion_cloud/models/ost_load_options.rb +31 -4
- data/lib/groupdocs_conversion_cloud/models/pst_load_options.rb +31 -4
- data/lib/groupdocs_conversion_cloud/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c3c7c50f52bebe361a5287be6153e61839710e3
|
4
|
+
data.tar.gz: 4888443dd7af34e54f64e5b9a28904aa7148ecc5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 816e949bcb30c9f60aabb91070d7748652578a33a47b0b6bd69f755cc7befc7ae1516aef6c1a8524cb944e96620c725e43761b04dedf2180097c158a86516026
|
7
|
+
data.tar.gz: 24aa866899d059850ed444c643dc5a17f7052750bb92e02527e369fe1c711bc5f261765a9419779263a85b719bea44962a6219c867ffa193391173fbddf4f494
|
@@ -36,6 +36,7 @@ require_relative 'groupdocs_conversion_cloud/models/disc_usage'
|
|
36
36
|
require_relative 'groupdocs_conversion_cloud/models/document_metadata'
|
37
37
|
require_relative 'groupdocs_conversion_cloud/models/error'
|
38
38
|
require_relative 'groupdocs_conversion_cloud/models/error_details'
|
39
|
+
require_relative 'groupdocs_conversion_cloud/models/field_label'
|
39
40
|
require_relative 'groupdocs_conversion_cloud/models/file_versions'
|
40
41
|
require_relative 'groupdocs_conversion_cloud/models/files_list'
|
41
42
|
require_relative 'groupdocs_conversion_cloud/models/files_upload_result'
|
@@ -52,6 +53,7 @@ require_relative 'groupdocs_conversion_cloud/models/diagram_load_options'
|
|
52
53
|
require_relative 'groupdocs_conversion_cloud/models/email_load_options'
|
53
54
|
require_relative 'groupdocs_conversion_cloud/models/file_version'
|
54
55
|
require_relative 'groupdocs_conversion_cloud/models/html_convert_options'
|
56
|
+
require_relative 'groupdocs_conversion_cloud/models/html_load_options'
|
55
57
|
require_relative 'groupdocs_conversion_cloud/models/image_convert_options'
|
56
58
|
require_relative 'groupdocs_conversion_cloud/models/image_load_options'
|
57
59
|
require_relative 'groupdocs_conversion_cloud/models/one_load_options'
|
@@ -55,6 +55,12 @@ module GroupDocsConversionCloud
|
|
55
55
|
# Option to convert attachments in source email or not. Default: false.
|
56
56
|
attr_accessor :convert_attachments
|
57
57
|
|
58
|
+
# The mapping between email message field and field text representation
|
59
|
+
attr_accessor :field_labels
|
60
|
+
|
61
|
+
# Defines whether need to keep original date header string in mail message when saving or not (Default value is true)
|
62
|
+
attr_accessor :preserve_original_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 GroupDocsConversionCloud
|
|
65
71
|
:'display_cc_email_address' => :'DisplayCcEmailAddress',
|
66
72
|
:'display_bcc_email_address' => :'DisplayBccEmailAddress',
|
67
73
|
:'time_zone_offset' => :'TimeZoneOffset',
|
68
|
-
:'convert_attachments' => :'ConvertAttachments'
|
74
|
+
:'convert_attachments' => :'ConvertAttachments',
|
75
|
+
:'field_labels' => :'FieldLabels',
|
76
|
+
:'preserve_original_date' => :'PreserveOriginalDate'
|
69
77
|
}
|
70
78
|
end
|
71
79
|
|
@@ -79,7 +87,9 @@ module GroupDocsConversionCloud
|
|
79
87
|
:'display_cc_email_address' => :'BOOLEAN',
|
80
88
|
:'display_bcc_email_address' => :'BOOLEAN',
|
81
89
|
:'time_zone_offset' => :'String',
|
82
|
-
:'convert_attachments' => :'BOOLEAN'
|
90
|
+
:'convert_attachments' => :'BOOLEAN',
|
91
|
+
:'field_labels' => :'Array<FieldLabel>',
|
92
|
+
:'preserve_original_date' => :'BOOLEAN'
|
83
93
|
}
|
84
94
|
end
|
85
95
|
|
@@ -123,6 +133,16 @@ module GroupDocsConversionCloud
|
|
123
133
|
self.convert_attachments = attributes[:'ConvertAttachments']
|
124
134
|
end
|
125
135
|
|
136
|
+
if attributes.key?(:'FieldLabels')
|
137
|
+
if (value = attributes[:'FieldLabels']).is_a?(Array)
|
138
|
+
self.field_labels = value
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'PreserveOriginalDate')
|
143
|
+
self.preserve_original_date = attributes[:'PreserveOriginalDate']
|
144
|
+
end
|
145
|
+
|
126
146
|
end
|
127
147
|
|
128
148
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -157,6 +177,10 @@ module GroupDocsConversionCloud
|
|
157
177
|
invalid_properties.push("invalid value for 'convert_attachments', convert_attachments cannot be nil.")
|
158
178
|
end
|
159
179
|
|
180
|
+
if @preserve_original_date.nil?
|
181
|
+
invalid_properties.push("invalid value for 'preserve_original_date', preserve_original_date cannot be nil.")
|
182
|
+
end
|
183
|
+
|
160
184
|
return invalid_properties
|
161
185
|
end
|
162
186
|
|
@@ -170,6 +194,7 @@ module GroupDocsConversionCloud
|
|
170
194
|
return false if @display_cc_email_address.nil?
|
171
195
|
return false if @display_bcc_email_address.nil?
|
172
196
|
return false if @convert_attachments.nil?
|
197
|
+
return false if @preserve_original_date.nil?
|
173
198
|
return true
|
174
199
|
end
|
175
200
|
|
@@ -185,7 +210,9 @@ module GroupDocsConversionCloud
|
|
185
210
|
display_cc_email_address == other.display_cc_email_address &&
|
186
211
|
display_bcc_email_address == other.display_bcc_email_address &&
|
187
212
|
time_zone_offset == other.time_zone_offset &&
|
188
|
-
convert_attachments == other.convert_attachments
|
213
|
+
convert_attachments == other.convert_attachments &&
|
214
|
+
field_labels == other.field_labels &&
|
215
|
+
preserve_original_date == other.preserve_original_date
|
189
216
|
end
|
190
217
|
|
191
218
|
# @see the `==` method
|
@@ -197,7 +224,7 @@ module GroupDocsConversionCloud
|
|
197
224
|
# Calculates hash code according to all attributes.
|
198
225
|
# @return [Fixnum] Hash code
|
199
226
|
def hash
|
200
|
-
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments].hash
|
227
|
+
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments, field_labels, preserve_original_date].hash
|
201
228
|
end
|
202
229
|
|
203
230
|
# Downcases first letter.
|
@@ -55,6 +55,12 @@ module GroupDocsConversionCloud
|
|
55
55
|
# Option to convert attachments in source email or not. Default: false.
|
56
56
|
attr_accessor :convert_attachments
|
57
57
|
|
58
|
+
# The mapping between email message field and field text representation
|
59
|
+
attr_accessor :field_labels
|
60
|
+
|
61
|
+
# Defines whether need to keep original date header string in mail message when saving or not (Default value is true)
|
62
|
+
attr_accessor :preserve_original_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 GroupDocsConversionCloud
|
|
65
71
|
:'display_cc_email_address' => :'DisplayCcEmailAddress',
|
66
72
|
:'display_bcc_email_address' => :'DisplayBccEmailAddress',
|
67
73
|
:'time_zone_offset' => :'TimeZoneOffset',
|
68
|
-
:'convert_attachments' => :'ConvertAttachments'
|
74
|
+
:'convert_attachments' => :'ConvertAttachments',
|
75
|
+
:'field_labels' => :'FieldLabels',
|
76
|
+
:'preserve_original_date' => :'PreserveOriginalDate'
|
69
77
|
}
|
70
78
|
end
|
71
79
|
|
@@ -79,7 +87,9 @@ module GroupDocsConversionCloud
|
|
79
87
|
:'display_cc_email_address' => :'BOOLEAN',
|
80
88
|
:'display_bcc_email_address' => :'BOOLEAN',
|
81
89
|
:'time_zone_offset' => :'String',
|
82
|
-
:'convert_attachments' => :'BOOLEAN'
|
90
|
+
:'convert_attachments' => :'BOOLEAN',
|
91
|
+
:'field_labels' => :'Array<FieldLabel>',
|
92
|
+
:'preserve_original_date' => :'BOOLEAN'
|
83
93
|
}
|
84
94
|
end
|
85
95
|
|
@@ -123,6 +133,16 @@ module GroupDocsConversionCloud
|
|
123
133
|
self.convert_attachments = attributes[:'ConvertAttachments']
|
124
134
|
end
|
125
135
|
|
136
|
+
if attributes.key?(:'FieldLabels')
|
137
|
+
if (value = attributes[:'FieldLabels']).is_a?(Array)
|
138
|
+
self.field_labels = value
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'PreserveOriginalDate')
|
143
|
+
self.preserve_original_date = attributes[:'PreserveOriginalDate']
|
144
|
+
end
|
145
|
+
|
126
146
|
end
|
127
147
|
|
128
148
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -157,6 +177,10 @@ module GroupDocsConversionCloud
|
|
157
177
|
invalid_properties.push("invalid value for 'convert_attachments', convert_attachments cannot be nil.")
|
158
178
|
end
|
159
179
|
|
180
|
+
if @preserve_original_date.nil?
|
181
|
+
invalid_properties.push("invalid value for 'preserve_original_date', preserve_original_date cannot be nil.")
|
182
|
+
end
|
183
|
+
|
160
184
|
return invalid_properties
|
161
185
|
end
|
162
186
|
|
@@ -170,6 +194,7 @@ module GroupDocsConversionCloud
|
|
170
194
|
return false if @display_cc_email_address.nil?
|
171
195
|
return false if @display_bcc_email_address.nil?
|
172
196
|
return false if @convert_attachments.nil?
|
197
|
+
return false if @preserve_original_date.nil?
|
173
198
|
return true
|
174
199
|
end
|
175
200
|
|
@@ -185,7 +210,9 @@ module GroupDocsConversionCloud
|
|
185
210
|
display_cc_email_address == other.display_cc_email_address &&
|
186
211
|
display_bcc_email_address == other.display_bcc_email_address &&
|
187
212
|
time_zone_offset == other.time_zone_offset &&
|
188
|
-
convert_attachments == other.convert_attachments
|
213
|
+
convert_attachments == other.convert_attachments &&
|
214
|
+
field_labels == other.field_labels &&
|
215
|
+
preserve_original_date == other.preserve_original_date
|
189
216
|
end
|
190
217
|
|
191
218
|
# @see the `==` method
|
@@ -197,7 +224,7 @@ module GroupDocsConversionCloud
|
|
197
224
|
# Calculates hash code according to all attributes.
|
198
225
|
# @return [Fixnum] Hash code
|
199
226
|
def hash
|
200
|
-
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments].hash
|
227
|
+
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments, field_labels, preserve_original_date].hash
|
201
228
|
end
|
202
229
|
|
203
230
|
# Downcases first letter.
|
@@ -55,6 +55,12 @@ module GroupDocsConversionCloud
|
|
55
55
|
# Option to convert attachments in source email or not. Default: false.
|
56
56
|
attr_accessor :convert_attachments
|
57
57
|
|
58
|
+
# The mapping between email message field and field text representation
|
59
|
+
attr_accessor :field_labels
|
60
|
+
|
61
|
+
# Defines whether need to keep original date header string in mail message when saving or not (Default value is true)
|
62
|
+
attr_accessor :preserve_original_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 GroupDocsConversionCloud
|
|
65
71
|
:'display_cc_email_address' => :'DisplayCcEmailAddress',
|
66
72
|
:'display_bcc_email_address' => :'DisplayBccEmailAddress',
|
67
73
|
:'time_zone_offset' => :'TimeZoneOffset',
|
68
|
-
:'convert_attachments' => :'ConvertAttachments'
|
74
|
+
:'convert_attachments' => :'ConvertAttachments',
|
75
|
+
:'field_labels' => :'FieldLabels',
|
76
|
+
:'preserve_original_date' => :'PreserveOriginalDate'
|
69
77
|
}
|
70
78
|
end
|
71
79
|
|
@@ -79,7 +87,9 @@ module GroupDocsConversionCloud
|
|
79
87
|
:'display_cc_email_address' => :'BOOLEAN',
|
80
88
|
:'display_bcc_email_address' => :'BOOLEAN',
|
81
89
|
:'time_zone_offset' => :'String',
|
82
|
-
:'convert_attachments' => :'BOOLEAN'
|
90
|
+
:'convert_attachments' => :'BOOLEAN',
|
91
|
+
:'field_labels' => :'Array<FieldLabel>',
|
92
|
+
:'preserve_original_date' => :'BOOLEAN'
|
83
93
|
}
|
84
94
|
end
|
85
95
|
|
@@ -123,6 +133,16 @@ module GroupDocsConversionCloud
|
|
123
133
|
self.convert_attachments = attributes[:'ConvertAttachments']
|
124
134
|
end
|
125
135
|
|
136
|
+
if attributes.key?(:'FieldLabels')
|
137
|
+
if (value = attributes[:'FieldLabels']).is_a?(Array)
|
138
|
+
self.field_labels = value
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'PreserveOriginalDate')
|
143
|
+
self.preserve_original_date = attributes[:'PreserveOriginalDate']
|
144
|
+
end
|
145
|
+
|
126
146
|
end
|
127
147
|
|
128
148
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -157,6 +177,10 @@ module GroupDocsConversionCloud
|
|
157
177
|
invalid_properties.push("invalid value for 'convert_attachments', convert_attachments cannot be nil.")
|
158
178
|
end
|
159
179
|
|
180
|
+
if @preserve_original_date.nil?
|
181
|
+
invalid_properties.push("invalid value for 'preserve_original_date', preserve_original_date cannot be nil.")
|
182
|
+
end
|
183
|
+
|
160
184
|
return invalid_properties
|
161
185
|
end
|
162
186
|
|
@@ -170,6 +194,7 @@ module GroupDocsConversionCloud
|
|
170
194
|
return false if @display_cc_email_address.nil?
|
171
195
|
return false if @display_bcc_email_address.nil?
|
172
196
|
return false if @convert_attachments.nil?
|
197
|
+
return false if @preserve_original_date.nil?
|
173
198
|
return true
|
174
199
|
end
|
175
200
|
|
@@ -185,7 +210,9 @@ module GroupDocsConversionCloud
|
|
185
210
|
display_cc_email_address == other.display_cc_email_address &&
|
186
211
|
display_bcc_email_address == other.display_bcc_email_address &&
|
187
212
|
time_zone_offset == other.time_zone_offset &&
|
188
|
-
convert_attachments == other.convert_attachments
|
213
|
+
convert_attachments == other.convert_attachments &&
|
214
|
+
field_labels == other.field_labels &&
|
215
|
+
preserve_original_date == other.preserve_original_date
|
189
216
|
end
|
190
217
|
|
191
218
|
# @see the `==` method
|
@@ -197,7 +224,7 @@ module GroupDocsConversionCloud
|
|
197
224
|
# Calculates hash code according to all attributes.
|
198
225
|
# @return [Fixnum] Hash code
|
199
226
|
def hash
|
200
|
-
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments].hash
|
227
|
+
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments, field_labels, preserve_original_date].hash
|
201
228
|
end
|
202
229
|
|
203
230
|
# Downcases first letter.
|
@@ -0,0 +1,266 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="field_label.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 GroupDocsConversionCloud
|
31
|
+
# Represents field label
|
32
|
+
class FieldLabel
|
33
|
+
|
34
|
+
# The field name
|
35
|
+
attr_accessor :field
|
36
|
+
|
37
|
+
# The label e.g. \"Sender\"
|
38
|
+
attr_accessor :label
|
39
|
+
class EnumAttributeValidator
|
40
|
+
attr_reader :datatype
|
41
|
+
attr_reader :allowable_values
|
42
|
+
|
43
|
+
def initialize(datatype, allowable_values)
|
44
|
+
@allowable_values = allowable_values.map do |value|
|
45
|
+
case datatype.to_s
|
46
|
+
when /Integer/i
|
47
|
+
value.to_i
|
48
|
+
when /Float/i
|
49
|
+
value.to_f
|
50
|
+
else
|
51
|
+
value
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
def valid?(value)
|
57
|
+
!value || allowable_values.include?(value)
|
58
|
+
end
|
59
|
+
end
|
60
|
+
|
61
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
62
|
+
def self.attribute_map
|
63
|
+
{
|
64
|
+
:'field' => :'Field',
|
65
|
+
:'label' => :'Label'
|
66
|
+
}
|
67
|
+
end
|
68
|
+
|
69
|
+
# Attribute type mapping.
|
70
|
+
def self.swagger_types
|
71
|
+
{
|
72
|
+
:'field' => :'String',
|
73
|
+
:'label' => :'String'
|
74
|
+
}
|
75
|
+
end
|
76
|
+
|
77
|
+
# Initializes the object
|
78
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
79
|
+
def initialize(attributes = {})
|
80
|
+
return unless attributes.is_a?(Hash)
|
81
|
+
|
82
|
+
# convert string to symbol for hash key
|
83
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
84
|
+
|
85
|
+
if attributes.key?(:'Field')
|
86
|
+
self.field = attributes[:'Field']
|
87
|
+
end
|
88
|
+
|
89
|
+
if attributes.key?(:'Label')
|
90
|
+
self.label = attributes[:'Label']
|
91
|
+
end
|
92
|
+
|
93
|
+
end
|
94
|
+
|
95
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
96
|
+
# @return Array for valid properies with the reasons
|
97
|
+
def list_invalid_properties
|
98
|
+
invalid_properties = []
|
99
|
+
if @field.nil?
|
100
|
+
invalid_properties.push("invalid value for 'field', field cannot be nil.")
|
101
|
+
end
|
102
|
+
|
103
|
+
return invalid_properties
|
104
|
+
end
|
105
|
+
|
106
|
+
# Check to see if the all the properties in the model are valid
|
107
|
+
# @return true if the model is valid
|
108
|
+
def valid?
|
109
|
+
return false if @field.nil?
|
110
|
+
field_validator = EnumAttributeValidator.new('String', ["Start", "TabField", "Subject", "ShowTimeAs", "Sent", "RequiredAttendees", "RecurrencePattern", "Recurrence", "PageHeader", "Organizer", "Location", "Importance", "From", "End", "Bcc", "Attachments", "To"])
|
111
|
+
return false unless field_validator.valid?(@field)
|
112
|
+
return true
|
113
|
+
end
|
114
|
+
|
115
|
+
# Custom attribute writer method checking allowed values (enum).
|
116
|
+
# @param [Object] field Object to be assigned
|
117
|
+
def field=(field)
|
118
|
+
validator = EnumAttributeValidator.new('String', ["Start", "TabField", "Subject", "ShowTimeAs", "Sent", "RequiredAttendees", "RecurrencePattern", "Recurrence", "PageHeader", "Organizer", "Location", "Importance", "From", "End", "Bcc", "Attachments", "To"])
|
119
|
+
if field.to_i == 0
|
120
|
+
unless validator.valid?(field)
|
121
|
+
raise ArgumentError, "invalid value for 'field', must be one of #{validator.allowable_values}."
|
122
|
+
end
|
123
|
+
@field = field
|
124
|
+
else
|
125
|
+
@field = validator.allowable_values[field.to_i]
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
# Checks equality by comparing each attribute.
|
130
|
+
# @param [Object] Object to be compared
|
131
|
+
def ==(other)
|
132
|
+
return true if self.equal?(other)
|
133
|
+
self.class == other.class &&
|
134
|
+
field == other.field &&
|
135
|
+
label == other.label
|
136
|
+
end
|
137
|
+
|
138
|
+
# @see the `==` method
|
139
|
+
# @param [Object] Object to be compared
|
140
|
+
def eql?(other)
|
141
|
+
self == other
|
142
|
+
end
|
143
|
+
|
144
|
+
# Calculates hash code according to all attributes.
|
145
|
+
# @return [Fixnum] Hash code
|
146
|
+
def hash
|
147
|
+
[field, label].hash
|
148
|
+
end
|
149
|
+
|
150
|
+
# Downcases first letter.
|
151
|
+
# @return downcased string
|
152
|
+
def uncap(str)
|
153
|
+
str[0, 1].downcase + str[1..-1]
|
154
|
+
end
|
155
|
+
|
156
|
+
# Builds the object from hash
|
157
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
158
|
+
# @return [Object] Returns the model itself
|
159
|
+
def build_from_hash(attributes)
|
160
|
+
return nil unless attributes.is_a?(Hash)
|
161
|
+
self.class.swagger_types.each_pair do |key, type|
|
162
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
163
|
+
value = attributes[pname]
|
164
|
+
if type =~ /\AArray<(.*)>/i
|
165
|
+
# check to ensure the input is an array given that the the attribute
|
166
|
+
# is documented as an array but the input is not
|
167
|
+
if value.is_a?(Array)
|
168
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
169
|
+
end
|
170
|
+
elsif !value.nil?
|
171
|
+
self.send("#{key}=", _deserialize(type, value))
|
172
|
+
end
|
173
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
174
|
+
end
|
175
|
+
|
176
|
+
self
|
177
|
+
end
|
178
|
+
|
179
|
+
# Deserializes the data based on type
|
180
|
+
# @param string type Data type
|
181
|
+
# @param string value Value to be deserialized
|
182
|
+
# @return [Object] Deserialized data
|
183
|
+
def _deserialize(type, value)
|
184
|
+
case type.to_sym
|
185
|
+
when :DateTime
|
186
|
+
Date.parse value
|
187
|
+
when :Date
|
188
|
+
Date.parse value
|
189
|
+
when :String
|
190
|
+
value.to_s
|
191
|
+
when :Integer
|
192
|
+
value.to_i
|
193
|
+
when :Float
|
194
|
+
value.to_f
|
195
|
+
when :BOOLEAN
|
196
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
197
|
+
true
|
198
|
+
else
|
199
|
+
false
|
200
|
+
end
|
201
|
+
when :Object
|
202
|
+
# generic object (usually a Hash), return directly
|
203
|
+
value
|
204
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
205
|
+
inner_type = Regexp.last_match[:inner_type]
|
206
|
+
value.map { |v| _deserialize(inner_type, v) }
|
207
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
208
|
+
k_type = Regexp.last_match[:k_type]
|
209
|
+
v_type = Regexp.last_match[:v_type]
|
210
|
+
{}.tap do |hash|
|
211
|
+
value.each do |k, v|
|
212
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
213
|
+
end
|
214
|
+
end
|
215
|
+
else
|
216
|
+
# model
|
217
|
+
temp_model = GroupDocsConversionCloud.const_get(type).new
|
218
|
+
temp_model.build_from_hash(value)
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
# Returns the string representation of the object
|
223
|
+
# @return [String] String presentation of the object
|
224
|
+
def to_s
|
225
|
+
to_hash.to_s
|
226
|
+
end
|
227
|
+
|
228
|
+
# to_body is an alias to to_hash (backward compatibility)
|
229
|
+
# @return [Hash] Returns the object in the form of hash
|
230
|
+
def to_body
|
231
|
+
to_hash
|
232
|
+
end
|
233
|
+
|
234
|
+
# Returns the object in the form of hash
|
235
|
+
# @return [Hash] Returns the object in the form of hash
|
236
|
+
def to_hash
|
237
|
+
hash = {}
|
238
|
+
self.class.attribute_map.each_pair do |attr, param|
|
239
|
+
value = self.send(attr)
|
240
|
+
next if value.nil?
|
241
|
+
hash[param] = _to_hash(value)
|
242
|
+
end
|
243
|
+
hash
|
244
|
+
end
|
245
|
+
|
246
|
+
# Outputs non-array value in the form of hash
|
247
|
+
# For object, use to_hash. Otherwise, just return the value
|
248
|
+
# @param [Object] value Any valid value
|
249
|
+
# @return [Hash] Returns the value in the form of hash
|
250
|
+
def _to_hash(value)
|
251
|
+
if value.is_a?(Array)
|
252
|
+
value.compact.map { |v| _to_hash(v) }
|
253
|
+
elsif value.is_a?(Hash)
|
254
|
+
{}.tap do |hash|
|
255
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
256
|
+
end
|
257
|
+
elsif value.respond_to? :to_hash
|
258
|
+
value.to_hash
|
259
|
+
else
|
260
|
+
value
|
261
|
+
end
|
262
|
+
end
|
263
|
+
|
264
|
+
end
|
265
|
+
|
266
|
+
end
|
@@ -46,6 +46,9 @@ module GroupDocsConversionCloud
|
|
46
46
|
# If true fixed layout will be used e.g. absolutely positioned html elements Default: true
|
47
47
|
attr_accessor :fixed_layout
|
48
48
|
|
49
|
+
# Show page borders when converting to fixed layout. Default is True
|
50
|
+
attr_accessor :fixed_layout_show_borders
|
51
|
+
|
49
52
|
# Specifies the zoom level in percentage. Default is 100.
|
50
53
|
attr_accessor :zoom
|
51
54
|
|
@@ -60,6 +63,7 @@ module GroupDocsConversionCloud
|
|
60
63
|
:'pages' => :'Pages',
|
61
64
|
:'use_pdf' => :'UsePdf',
|
62
65
|
:'fixed_layout' => :'FixedLayout',
|
66
|
+
:'fixed_layout_show_borders' => :'FixedLayoutShowBorders',
|
63
67
|
:'zoom' => :'Zoom',
|
64
68
|
:'watermark_options' => :'WatermarkOptions'
|
65
69
|
}
|
@@ -73,6 +77,7 @@ module GroupDocsConversionCloud
|
|
73
77
|
:'pages' => :'Array<Integer>',
|
74
78
|
:'use_pdf' => :'BOOLEAN',
|
75
79
|
:'fixed_layout' => :'BOOLEAN',
|
80
|
+
:'fixed_layout_show_borders' => :'BOOLEAN',
|
76
81
|
:'zoom' => :'Integer',
|
77
82
|
:'watermark_options' => :'WatermarkOptions'
|
78
83
|
}
|
@@ -108,6 +113,10 @@ module GroupDocsConversionCloud
|
|
108
113
|
self.fixed_layout = attributes[:'FixedLayout']
|
109
114
|
end
|
110
115
|
|
116
|
+
if attributes.key?(:'FixedLayoutShowBorders')
|
117
|
+
self.fixed_layout_show_borders = attributes[:'FixedLayoutShowBorders']
|
118
|
+
end
|
119
|
+
|
111
120
|
if attributes.key?(:'Zoom')
|
112
121
|
self.zoom = attributes[:'Zoom']
|
113
122
|
end
|
@@ -138,6 +147,10 @@ module GroupDocsConversionCloud
|
|
138
147
|
invalid_properties.push("invalid value for 'fixed_layout', fixed_layout cannot be nil.")
|
139
148
|
end
|
140
149
|
|
150
|
+
if @fixed_layout_show_borders.nil?
|
151
|
+
invalid_properties.push("invalid value for 'fixed_layout_show_borders', fixed_layout_show_borders cannot be nil.")
|
152
|
+
end
|
153
|
+
|
141
154
|
if @zoom.nil?
|
142
155
|
invalid_properties.push("invalid value for 'zoom', zoom cannot be nil.")
|
143
156
|
end
|
@@ -152,6 +165,7 @@ module GroupDocsConversionCloud
|
|
152
165
|
return false if @pages_count.nil?
|
153
166
|
return false if @use_pdf.nil?
|
154
167
|
return false if @fixed_layout.nil?
|
168
|
+
return false if @fixed_layout_show_borders.nil?
|
155
169
|
return false if @zoom.nil?
|
156
170
|
return true
|
157
171
|
end
|
@@ -166,6 +180,7 @@ module GroupDocsConversionCloud
|
|
166
180
|
pages == other.pages &&
|
167
181
|
use_pdf == other.use_pdf &&
|
168
182
|
fixed_layout == other.fixed_layout &&
|
183
|
+
fixed_layout_show_borders == other.fixed_layout_show_borders &&
|
169
184
|
zoom == other.zoom &&
|
170
185
|
watermark_options == other.watermark_options
|
171
186
|
end
|
@@ -179,7 +194,7 @@ module GroupDocsConversionCloud
|
|
179
194
|
# Calculates hash code according to all attributes.
|
180
195
|
# @return [Fixnum] Hash code
|
181
196
|
def hash
|
182
|
-
[from_page, pages_count, pages, use_pdf, fixed_layout, zoom, watermark_options].hash
|
197
|
+
[from_page, pages_count, pages, use_pdf, fixed_layout, fixed_layout_show_borders, zoom, watermark_options].hash
|
183
198
|
end
|
184
199
|
|
185
200
|
# Downcases first letter.
|
@@ -0,0 +1,219 @@
|
|
1
|
+
#
|
2
|
+
# --------------------------------------------------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose Pty Ltd" file="html_load_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 GroupDocsConversionCloud
|
31
|
+
# Html document load options
|
32
|
+
class HtmlLoadOptions
|
33
|
+
|
34
|
+
# Enable or disable generation of page numbering in converted document. Default: false
|
35
|
+
attr_accessor :page_numbering
|
36
|
+
|
37
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
38
|
+
def self.attribute_map
|
39
|
+
{
|
40
|
+
:'page_numbering' => :'PageNumbering'
|
41
|
+
}
|
42
|
+
end
|
43
|
+
|
44
|
+
# Attribute type mapping.
|
45
|
+
def self.swagger_types
|
46
|
+
{
|
47
|
+
:'page_numbering' => :'BOOLEAN'
|
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?(:'PageNumbering')
|
60
|
+
self.page_numbering = attributes[:'PageNumbering']
|
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
|
+
if @page_numbering.nil?
|
70
|
+
invalid_properties.push("invalid value for 'page_numbering', page_numbering cannot be nil.")
|
71
|
+
end
|
72
|
+
|
73
|
+
return invalid_properties
|
74
|
+
end
|
75
|
+
|
76
|
+
# Check to see if the all the properties in the model are valid
|
77
|
+
# @return true if the model is valid
|
78
|
+
def valid?
|
79
|
+
return false if @page_numbering.nil?
|
80
|
+
return true
|
81
|
+
end
|
82
|
+
|
83
|
+
# Checks equality by comparing each attribute.
|
84
|
+
# @param [Object] Object to be compared
|
85
|
+
def ==(other)
|
86
|
+
return true if self.equal?(other)
|
87
|
+
self.class == other.class &&
|
88
|
+
page_numbering == other.page_numbering
|
89
|
+
end
|
90
|
+
|
91
|
+
# @see the `==` method
|
92
|
+
# @param [Object] Object to be compared
|
93
|
+
def eql?(other)
|
94
|
+
self == other
|
95
|
+
end
|
96
|
+
|
97
|
+
# Calculates hash code according to all attributes.
|
98
|
+
# @return [Fixnum] Hash code
|
99
|
+
def hash
|
100
|
+
[page_numbering].hash
|
101
|
+
end
|
102
|
+
|
103
|
+
# Downcases first letter.
|
104
|
+
# @return downcased string
|
105
|
+
def uncap(str)
|
106
|
+
str[0, 1].downcase + str[1..-1]
|
107
|
+
end
|
108
|
+
|
109
|
+
# Builds the object from hash
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
111
|
+
# @return [Object] Returns the model itself
|
112
|
+
def build_from_hash(attributes)
|
113
|
+
return nil unless attributes.is_a?(Hash)
|
114
|
+
self.class.swagger_types.each_pair do |key, type|
|
115
|
+
pname = uncap(self.class.attribute_map[key]).intern
|
116
|
+
value = attributes[pname]
|
117
|
+
if type =~ /\AArray<(.*)>/i
|
118
|
+
# check to ensure the input is an array given that the the attribute
|
119
|
+
# is documented as an array but the input is not
|
120
|
+
if value.is_a?(Array)
|
121
|
+
self.send("#{key}=", value.map { |v| _deserialize($1, v) })
|
122
|
+
end
|
123
|
+
elsif !value.nil?
|
124
|
+
self.send("#{key}=", _deserialize(type, value))
|
125
|
+
end
|
126
|
+
# or else data not found in attributes(hash), not an issue as the data can be optional
|
127
|
+
end
|
128
|
+
|
129
|
+
self
|
130
|
+
end
|
131
|
+
|
132
|
+
# Deserializes the data based on type
|
133
|
+
# @param string type Data type
|
134
|
+
# @param string value Value to be deserialized
|
135
|
+
# @return [Object] Deserialized data
|
136
|
+
def _deserialize(type, value)
|
137
|
+
case type.to_sym
|
138
|
+
when :DateTime
|
139
|
+
Date.parse value
|
140
|
+
when :Date
|
141
|
+
Date.parse value
|
142
|
+
when :String
|
143
|
+
value.to_s
|
144
|
+
when :Integer
|
145
|
+
value.to_i
|
146
|
+
when :Float
|
147
|
+
value.to_f
|
148
|
+
when :BOOLEAN
|
149
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
150
|
+
true
|
151
|
+
else
|
152
|
+
false
|
153
|
+
end
|
154
|
+
when :Object
|
155
|
+
# generic object (usually a Hash), return directly
|
156
|
+
value
|
157
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
158
|
+
inner_type = Regexp.last_match[:inner_type]
|
159
|
+
value.map { |v| _deserialize(inner_type, v) }
|
160
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
161
|
+
k_type = Regexp.last_match[:k_type]
|
162
|
+
v_type = Regexp.last_match[:v_type]
|
163
|
+
{}.tap do |hash|
|
164
|
+
value.each do |k, v|
|
165
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
else
|
169
|
+
# model
|
170
|
+
temp_model = GroupDocsConversionCloud.const_get(type).new
|
171
|
+
temp_model.build_from_hash(value)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# Returns the string representation of the object
|
176
|
+
# @return [String] String presentation of the object
|
177
|
+
def to_s
|
178
|
+
to_hash.to_s
|
179
|
+
end
|
180
|
+
|
181
|
+
# to_body is an alias to to_hash (backward compatibility)
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
183
|
+
def to_body
|
184
|
+
to_hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Returns the object in the form of hash
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_hash
|
190
|
+
hash = {}
|
191
|
+
self.class.attribute_map.each_pair do |attr, param|
|
192
|
+
value = self.send(attr)
|
193
|
+
next if value.nil?
|
194
|
+
hash[param] = _to_hash(value)
|
195
|
+
end
|
196
|
+
hash
|
197
|
+
end
|
198
|
+
|
199
|
+
# Outputs non-array value in the form of hash
|
200
|
+
# For object, use to_hash. Otherwise, just return the value
|
201
|
+
# @param [Object] value Any valid value
|
202
|
+
# @return [Hash] Returns the value in the form of hash
|
203
|
+
def _to_hash(value)
|
204
|
+
if value.is_a?(Array)
|
205
|
+
value.compact.map { |v| _to_hash(v) }
|
206
|
+
elsif value.is_a?(Hash)
|
207
|
+
{}.tap do |hash|
|
208
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
209
|
+
end
|
210
|
+
elsif value.respond_to? :to_hash
|
211
|
+
value.to_hash
|
212
|
+
else
|
213
|
+
value
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
end
|
218
|
+
|
219
|
+
end
|
@@ -55,6 +55,12 @@ module GroupDocsConversionCloud
|
|
55
55
|
# Option to convert attachments in source email or not. Default: false.
|
56
56
|
attr_accessor :convert_attachments
|
57
57
|
|
58
|
+
# The mapping between email message field and field text representation
|
59
|
+
attr_accessor :field_labels
|
60
|
+
|
61
|
+
# Defines whether need to keep original date header string in mail message when saving or not (Default value is true)
|
62
|
+
attr_accessor :preserve_original_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 GroupDocsConversionCloud
|
|
65
71
|
:'display_cc_email_address' => :'DisplayCcEmailAddress',
|
66
72
|
:'display_bcc_email_address' => :'DisplayBccEmailAddress',
|
67
73
|
:'time_zone_offset' => :'TimeZoneOffset',
|
68
|
-
:'convert_attachments' => :'ConvertAttachments'
|
74
|
+
:'convert_attachments' => :'ConvertAttachments',
|
75
|
+
:'field_labels' => :'FieldLabels',
|
76
|
+
:'preserve_original_date' => :'PreserveOriginalDate'
|
69
77
|
}
|
70
78
|
end
|
71
79
|
|
@@ -79,7 +87,9 @@ module GroupDocsConversionCloud
|
|
79
87
|
:'display_cc_email_address' => :'BOOLEAN',
|
80
88
|
:'display_bcc_email_address' => :'BOOLEAN',
|
81
89
|
:'time_zone_offset' => :'String',
|
82
|
-
:'convert_attachments' => :'BOOLEAN'
|
90
|
+
:'convert_attachments' => :'BOOLEAN',
|
91
|
+
:'field_labels' => :'Array<FieldLabel>',
|
92
|
+
:'preserve_original_date' => :'BOOLEAN'
|
83
93
|
}
|
84
94
|
end
|
85
95
|
|
@@ -123,6 +133,16 @@ module GroupDocsConversionCloud
|
|
123
133
|
self.convert_attachments = attributes[:'ConvertAttachments']
|
124
134
|
end
|
125
135
|
|
136
|
+
if attributes.key?(:'FieldLabels')
|
137
|
+
if (value = attributes[:'FieldLabels']).is_a?(Array)
|
138
|
+
self.field_labels = value
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'PreserveOriginalDate')
|
143
|
+
self.preserve_original_date = attributes[:'PreserveOriginalDate']
|
144
|
+
end
|
145
|
+
|
126
146
|
end
|
127
147
|
|
128
148
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -157,6 +177,10 @@ module GroupDocsConversionCloud
|
|
157
177
|
invalid_properties.push("invalid value for 'convert_attachments', convert_attachments cannot be nil.")
|
158
178
|
end
|
159
179
|
|
180
|
+
if @preserve_original_date.nil?
|
181
|
+
invalid_properties.push("invalid value for 'preserve_original_date', preserve_original_date cannot be nil.")
|
182
|
+
end
|
183
|
+
|
160
184
|
return invalid_properties
|
161
185
|
end
|
162
186
|
|
@@ -170,6 +194,7 @@ module GroupDocsConversionCloud
|
|
170
194
|
return false if @display_cc_email_address.nil?
|
171
195
|
return false if @display_bcc_email_address.nil?
|
172
196
|
return false if @convert_attachments.nil?
|
197
|
+
return false if @preserve_original_date.nil?
|
173
198
|
return true
|
174
199
|
end
|
175
200
|
|
@@ -185,7 +210,9 @@ module GroupDocsConversionCloud
|
|
185
210
|
display_cc_email_address == other.display_cc_email_address &&
|
186
211
|
display_bcc_email_address == other.display_bcc_email_address &&
|
187
212
|
time_zone_offset == other.time_zone_offset &&
|
188
|
-
convert_attachments == other.convert_attachments
|
213
|
+
convert_attachments == other.convert_attachments &&
|
214
|
+
field_labels == other.field_labels &&
|
215
|
+
preserve_original_date == other.preserve_original_date
|
189
216
|
end
|
190
217
|
|
191
218
|
# @see the `==` method
|
@@ -197,7 +224,7 @@ module GroupDocsConversionCloud
|
|
197
224
|
# Calculates hash code according to all attributes.
|
198
225
|
# @return [Fixnum] Hash code
|
199
226
|
def hash
|
200
|
-
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments].hash
|
227
|
+
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments, field_labels, preserve_original_date].hash
|
201
228
|
end
|
202
229
|
|
203
230
|
# Downcases first letter.
|
@@ -55,6 +55,12 @@ module GroupDocsConversionCloud
|
|
55
55
|
# Option to convert attachments in source email or not. Default: false.
|
56
56
|
attr_accessor :convert_attachments
|
57
57
|
|
58
|
+
# The mapping between email message field and field text representation
|
59
|
+
attr_accessor :field_labels
|
60
|
+
|
61
|
+
# Defines whether need to keep original date header string in mail message when saving or not (Default value is true)
|
62
|
+
attr_accessor :preserve_original_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 GroupDocsConversionCloud
|
|
65
71
|
:'display_cc_email_address' => :'DisplayCcEmailAddress',
|
66
72
|
:'display_bcc_email_address' => :'DisplayBccEmailAddress',
|
67
73
|
:'time_zone_offset' => :'TimeZoneOffset',
|
68
|
-
:'convert_attachments' => :'ConvertAttachments'
|
74
|
+
:'convert_attachments' => :'ConvertAttachments',
|
75
|
+
:'field_labels' => :'FieldLabels',
|
76
|
+
:'preserve_original_date' => :'PreserveOriginalDate'
|
69
77
|
}
|
70
78
|
end
|
71
79
|
|
@@ -79,7 +87,9 @@ module GroupDocsConversionCloud
|
|
79
87
|
:'display_cc_email_address' => :'BOOLEAN',
|
80
88
|
:'display_bcc_email_address' => :'BOOLEAN',
|
81
89
|
:'time_zone_offset' => :'String',
|
82
|
-
:'convert_attachments' => :'BOOLEAN'
|
90
|
+
:'convert_attachments' => :'BOOLEAN',
|
91
|
+
:'field_labels' => :'Array<FieldLabel>',
|
92
|
+
:'preserve_original_date' => :'BOOLEAN'
|
83
93
|
}
|
84
94
|
end
|
85
95
|
|
@@ -123,6 +133,16 @@ module GroupDocsConversionCloud
|
|
123
133
|
self.convert_attachments = attributes[:'ConvertAttachments']
|
124
134
|
end
|
125
135
|
|
136
|
+
if attributes.key?(:'FieldLabels')
|
137
|
+
if (value = attributes[:'FieldLabels']).is_a?(Array)
|
138
|
+
self.field_labels = value
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'PreserveOriginalDate')
|
143
|
+
self.preserve_original_date = attributes[:'PreserveOriginalDate']
|
144
|
+
end
|
145
|
+
|
126
146
|
end
|
127
147
|
|
128
148
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -157,6 +177,10 @@ module GroupDocsConversionCloud
|
|
157
177
|
invalid_properties.push("invalid value for 'convert_attachments', convert_attachments cannot be nil.")
|
158
178
|
end
|
159
179
|
|
180
|
+
if @preserve_original_date.nil?
|
181
|
+
invalid_properties.push("invalid value for 'preserve_original_date', preserve_original_date cannot be nil.")
|
182
|
+
end
|
183
|
+
|
160
184
|
return invalid_properties
|
161
185
|
end
|
162
186
|
|
@@ -170,6 +194,7 @@ module GroupDocsConversionCloud
|
|
170
194
|
return false if @display_cc_email_address.nil?
|
171
195
|
return false if @display_bcc_email_address.nil?
|
172
196
|
return false if @convert_attachments.nil?
|
197
|
+
return false if @preserve_original_date.nil?
|
173
198
|
return true
|
174
199
|
end
|
175
200
|
|
@@ -185,7 +210,9 @@ module GroupDocsConversionCloud
|
|
185
210
|
display_cc_email_address == other.display_cc_email_address &&
|
186
211
|
display_bcc_email_address == other.display_bcc_email_address &&
|
187
212
|
time_zone_offset == other.time_zone_offset &&
|
188
|
-
convert_attachments == other.convert_attachments
|
213
|
+
convert_attachments == other.convert_attachments &&
|
214
|
+
field_labels == other.field_labels &&
|
215
|
+
preserve_original_date == other.preserve_original_date
|
189
216
|
end
|
190
217
|
|
191
218
|
# @see the `==` method
|
@@ -197,7 +224,7 @@ module GroupDocsConversionCloud
|
|
197
224
|
# Calculates hash code according to all attributes.
|
198
225
|
# @return [Fixnum] Hash code
|
199
226
|
def hash
|
200
|
-
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments].hash
|
227
|
+
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments, field_labels, preserve_original_date].hash
|
201
228
|
end
|
202
229
|
|
203
230
|
# Downcases first letter.
|
@@ -55,6 +55,12 @@ module GroupDocsConversionCloud
|
|
55
55
|
# Option to convert attachments in source email or not. Default: false.
|
56
56
|
attr_accessor :convert_attachments
|
57
57
|
|
58
|
+
# The mapping between email message field and field text representation
|
59
|
+
attr_accessor :field_labels
|
60
|
+
|
61
|
+
# Defines whether need to keep original date header string in mail message when saving or not (Default value is true)
|
62
|
+
attr_accessor :preserve_original_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 GroupDocsConversionCloud
|
|
65
71
|
:'display_cc_email_address' => :'DisplayCcEmailAddress',
|
66
72
|
:'display_bcc_email_address' => :'DisplayBccEmailAddress',
|
67
73
|
:'time_zone_offset' => :'TimeZoneOffset',
|
68
|
-
:'convert_attachments' => :'ConvertAttachments'
|
74
|
+
:'convert_attachments' => :'ConvertAttachments',
|
75
|
+
:'field_labels' => :'FieldLabels',
|
76
|
+
:'preserve_original_date' => :'PreserveOriginalDate'
|
69
77
|
}
|
70
78
|
end
|
71
79
|
|
@@ -79,7 +87,9 @@ module GroupDocsConversionCloud
|
|
79
87
|
:'display_cc_email_address' => :'BOOLEAN',
|
80
88
|
:'display_bcc_email_address' => :'BOOLEAN',
|
81
89
|
:'time_zone_offset' => :'String',
|
82
|
-
:'convert_attachments' => :'BOOLEAN'
|
90
|
+
:'convert_attachments' => :'BOOLEAN',
|
91
|
+
:'field_labels' => :'Array<FieldLabel>',
|
92
|
+
:'preserve_original_date' => :'BOOLEAN'
|
83
93
|
}
|
84
94
|
end
|
85
95
|
|
@@ -123,6 +133,16 @@ module GroupDocsConversionCloud
|
|
123
133
|
self.convert_attachments = attributes[:'ConvertAttachments']
|
124
134
|
end
|
125
135
|
|
136
|
+
if attributes.key?(:'FieldLabels')
|
137
|
+
if (value = attributes[:'FieldLabels']).is_a?(Array)
|
138
|
+
self.field_labels = value
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'PreserveOriginalDate')
|
143
|
+
self.preserve_original_date = attributes[:'PreserveOriginalDate']
|
144
|
+
end
|
145
|
+
|
126
146
|
end
|
127
147
|
|
128
148
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -157,6 +177,10 @@ module GroupDocsConversionCloud
|
|
157
177
|
invalid_properties.push("invalid value for 'convert_attachments', convert_attachments cannot be nil.")
|
158
178
|
end
|
159
179
|
|
180
|
+
if @preserve_original_date.nil?
|
181
|
+
invalid_properties.push("invalid value for 'preserve_original_date', preserve_original_date cannot be nil.")
|
182
|
+
end
|
183
|
+
|
160
184
|
return invalid_properties
|
161
185
|
end
|
162
186
|
|
@@ -170,6 +194,7 @@ module GroupDocsConversionCloud
|
|
170
194
|
return false if @display_cc_email_address.nil?
|
171
195
|
return false if @display_bcc_email_address.nil?
|
172
196
|
return false if @convert_attachments.nil?
|
197
|
+
return false if @preserve_original_date.nil?
|
173
198
|
return true
|
174
199
|
end
|
175
200
|
|
@@ -185,7 +210,9 @@ module GroupDocsConversionCloud
|
|
185
210
|
display_cc_email_address == other.display_cc_email_address &&
|
186
211
|
display_bcc_email_address == other.display_bcc_email_address &&
|
187
212
|
time_zone_offset == other.time_zone_offset &&
|
188
|
-
convert_attachments == other.convert_attachments
|
213
|
+
convert_attachments == other.convert_attachments &&
|
214
|
+
field_labels == other.field_labels &&
|
215
|
+
preserve_original_date == other.preserve_original_date
|
189
216
|
end
|
190
217
|
|
191
218
|
# @see the `==` method
|
@@ -197,7 +224,7 @@ module GroupDocsConversionCloud
|
|
197
224
|
# Calculates hash code according to all attributes.
|
198
225
|
# @return [Fixnum] Hash code
|
199
226
|
def hash
|
200
|
-
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments].hash
|
227
|
+
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments, field_labels, preserve_original_date].hash
|
201
228
|
end
|
202
229
|
|
203
230
|
# Downcases first letter.
|
@@ -55,6 +55,12 @@ module GroupDocsConversionCloud
|
|
55
55
|
# Option to convert attachments in source email or not. Default: false.
|
56
56
|
attr_accessor :convert_attachments
|
57
57
|
|
58
|
+
# The mapping between email message field and field text representation
|
59
|
+
attr_accessor :field_labels
|
60
|
+
|
61
|
+
# Defines whether need to keep original date header string in mail message when saving or not (Default value is true)
|
62
|
+
attr_accessor :preserve_original_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 GroupDocsConversionCloud
|
|
65
71
|
:'display_cc_email_address' => :'DisplayCcEmailAddress',
|
66
72
|
:'display_bcc_email_address' => :'DisplayBccEmailAddress',
|
67
73
|
:'time_zone_offset' => :'TimeZoneOffset',
|
68
|
-
:'convert_attachments' => :'ConvertAttachments'
|
74
|
+
:'convert_attachments' => :'ConvertAttachments',
|
75
|
+
:'field_labels' => :'FieldLabels',
|
76
|
+
:'preserve_original_date' => :'PreserveOriginalDate'
|
69
77
|
}
|
70
78
|
end
|
71
79
|
|
@@ -79,7 +87,9 @@ module GroupDocsConversionCloud
|
|
79
87
|
:'display_cc_email_address' => :'BOOLEAN',
|
80
88
|
:'display_bcc_email_address' => :'BOOLEAN',
|
81
89
|
:'time_zone_offset' => :'String',
|
82
|
-
:'convert_attachments' => :'BOOLEAN'
|
90
|
+
:'convert_attachments' => :'BOOLEAN',
|
91
|
+
:'field_labels' => :'Array<FieldLabel>',
|
92
|
+
:'preserve_original_date' => :'BOOLEAN'
|
83
93
|
}
|
84
94
|
end
|
85
95
|
|
@@ -123,6 +133,16 @@ module GroupDocsConversionCloud
|
|
123
133
|
self.convert_attachments = attributes[:'ConvertAttachments']
|
124
134
|
end
|
125
135
|
|
136
|
+
if attributes.key?(:'FieldLabels')
|
137
|
+
if (value = attributes[:'FieldLabels']).is_a?(Array)
|
138
|
+
self.field_labels = value
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
if attributes.key?(:'PreserveOriginalDate')
|
143
|
+
self.preserve_original_date = attributes[:'PreserveOriginalDate']
|
144
|
+
end
|
145
|
+
|
126
146
|
end
|
127
147
|
|
128
148
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -157,6 +177,10 @@ module GroupDocsConversionCloud
|
|
157
177
|
invalid_properties.push("invalid value for 'convert_attachments', convert_attachments cannot be nil.")
|
158
178
|
end
|
159
179
|
|
180
|
+
if @preserve_original_date.nil?
|
181
|
+
invalid_properties.push("invalid value for 'preserve_original_date', preserve_original_date cannot be nil.")
|
182
|
+
end
|
183
|
+
|
160
184
|
return invalid_properties
|
161
185
|
end
|
162
186
|
|
@@ -170,6 +194,7 @@ module GroupDocsConversionCloud
|
|
170
194
|
return false if @display_cc_email_address.nil?
|
171
195
|
return false if @display_bcc_email_address.nil?
|
172
196
|
return false if @convert_attachments.nil?
|
197
|
+
return false if @preserve_original_date.nil?
|
173
198
|
return true
|
174
199
|
end
|
175
200
|
|
@@ -185,7 +210,9 @@ module GroupDocsConversionCloud
|
|
185
210
|
display_cc_email_address == other.display_cc_email_address &&
|
186
211
|
display_bcc_email_address == other.display_bcc_email_address &&
|
187
212
|
time_zone_offset == other.time_zone_offset &&
|
188
|
-
convert_attachments == other.convert_attachments
|
213
|
+
convert_attachments == other.convert_attachments &&
|
214
|
+
field_labels == other.field_labels &&
|
215
|
+
preserve_original_date == other.preserve_original_date
|
189
216
|
end
|
190
217
|
|
191
218
|
# @see the `==` method
|
@@ -197,7 +224,7 @@ module GroupDocsConversionCloud
|
|
197
224
|
# Calculates hash code according to all attributes.
|
198
225
|
# @return [Fixnum] Hash code
|
199
226
|
def hash
|
200
|
-
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments].hash
|
227
|
+
[display_header, display_from_email_address, display_email_address, display_to_email_address, display_cc_email_address, display_bcc_email_address, time_zone_offset, convert_attachments, field_labels, preserve_original_date].hash
|
201
228
|
end
|
202
229
|
|
203
230
|
# Downcases first letter.
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: groupdocs_conversion_cloud
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '20.
|
4
|
+
version: '20.3'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- GroupDocs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|
@@ -132,6 +132,7 @@ files:
|
|
132
132
|
- lib/groupdocs_conversion_cloud/models/epub_convert_options.rb
|
133
133
|
- lib/groupdocs_conversion_cloud/models/error.rb
|
134
134
|
- lib/groupdocs_conversion_cloud/models/error_details.rb
|
135
|
+
- lib/groupdocs_conversion_cloud/models/field_label.rb
|
135
136
|
- lib/groupdocs_conversion_cloud/models/file_version.rb
|
136
137
|
- lib/groupdocs_conversion_cloud/models/file_versions.rb
|
137
138
|
- lib/groupdocs_conversion_cloud/models/files_list.rb
|
@@ -139,6 +140,7 @@ files:
|
|
139
140
|
- lib/groupdocs_conversion_cloud/models/gif_convert_options.rb
|
140
141
|
- lib/groupdocs_conversion_cloud/models/gif_load_options.rb
|
141
142
|
- lib/groupdocs_conversion_cloud/models/html_convert_options.rb
|
143
|
+
- lib/groupdocs_conversion_cloud/models/html_load_options.rb
|
142
144
|
- lib/groupdocs_conversion_cloud/models/ico_convert_options.rb
|
143
145
|
- lib/groupdocs_conversion_cloud/models/ico_load_options.rb
|
144
146
|
- lib/groupdocs_conversion_cloud/models/ifc_load_options.rb
|