Skip to content

Commit bf234f1

Browse files
committed
Updated sources
1 parent 3a4954c commit bf234f1

14 files changed

Lines changed: 724 additions & 34 deletions

Gemfile.lock

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
groupdocs_conversion_cloud (20.1)
4+
groupdocs_conversion_cloud (20.3)
55
addressable (~> 2.5.0, >= 2.5.0)
66
faraday (~> 0.14.0)
77
mimemagic (~> 0.3.2)
@@ -13,14 +13,13 @@ GEM
1313
public_suffix (>= 2.0.2, < 4.0)
1414
faraday (0.14.0)
1515
multipart-post (>= 1.2, < 3)
16-
mimemagic (0.3.3)
16+
mimemagic (0.3.4)
1717
minitest (5.11.3)
1818
multipart-post (2.1.1)
1919
public_suffix (3.1.1)
2020
rake (13.0.1)
2121

2222
PLATFORMS
23-
ruby
2423
x64-mingw32
2524

2625
DEPENDENCIES

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ gem install groupdocs_conversion_cloud
1212
To add dependency to your app copy following into your Gemfile and run `bundle install`:
1313

1414
```
15-
gem "groupdocs_conversion_cloud", "~> 20.2"
15+
gem "groupdocs_conversion_cloud", "~> 20.3"
1616
```
1717

1818
## Getting Started

lib/groupdocs_conversion_cloud.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
require_relative 'groupdocs_conversion_cloud/models/document_metadata'
3737
require_relative 'groupdocs_conversion_cloud/models/error'
3838
require_relative 'groupdocs_conversion_cloud/models/error_details'
39+
require_relative 'groupdocs_conversion_cloud/models/field_label'
3940
require_relative 'groupdocs_conversion_cloud/models/file_versions'
4041
require_relative 'groupdocs_conversion_cloud/models/files_list'
4142
require_relative 'groupdocs_conversion_cloud/models/files_upload_result'
@@ -52,6 +53,7 @@
5253
require_relative 'groupdocs_conversion_cloud/models/email_load_options'
5354
require_relative 'groupdocs_conversion_cloud/models/file_version'
5455
require_relative 'groupdocs_conversion_cloud/models/html_convert_options'
56+
require_relative 'groupdocs_conversion_cloud/models/html_load_options'
5557
require_relative 'groupdocs_conversion_cloud/models/image_convert_options'
5658
require_relative 'groupdocs_conversion_cloud/models/image_load_options'
5759
require_relative 'groupdocs_conversion_cloud/models/one_load_options'

lib/groupdocs_conversion_cloud/models/email_load_options.rb

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ class EmailLoadOptions
5555
# Option to convert attachments in source email or not. Default: false.
5656
attr_accessor :convert_attachments
5757

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+
5864
# Attribute mapping from ruby-style variable name to JSON key.
5965
def self.attribute_map
6066
{
@@ -65,7 +71,9 @@ def self.attribute_map
6571
:'display_cc_email_address' => :'DisplayCcEmailAddress',
6672
:'display_bcc_email_address' => :'DisplayBccEmailAddress',
6773
:'time_zone_offset' => :'TimeZoneOffset',
68-
:'convert_attachments' => :'ConvertAttachments'
74+
:'convert_attachments' => :'ConvertAttachments',
75+
:'field_labels' => :'FieldLabels',
76+
:'preserve_original_date' => :'PreserveOriginalDate'
6977
}
7078
end
7179

@@ -79,7 +87,9 @@ def self.swagger_types
7987
:'display_cc_email_address' => :'BOOLEAN',
8088
:'display_bcc_email_address' => :'BOOLEAN',
8189
:'time_zone_offset' => :'String',
82-
:'convert_attachments' => :'BOOLEAN'
90+
:'convert_attachments' => :'BOOLEAN',
91+
:'field_labels' => :'Array<FieldLabel>',
92+
:'preserve_original_date' => :'BOOLEAN'
8393
}
8494
end
8595

@@ -123,6 +133,16 @@ def initialize(attributes = {})
123133
self.convert_attachments = attributes[:'ConvertAttachments']
124134
end
125135

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+
126146
end
127147

128148
# Show invalid properties with the reasons. Usually used together with valid?
@@ -157,6 +177,10 @@ def list_invalid_properties
157177
invalid_properties.push("invalid value for 'convert_attachments', convert_attachments cannot be nil.")
158178
end
159179

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+
160184
return invalid_properties
161185
end
162186

@@ -170,6 +194,7 @@ def valid?
170194
return false if @display_cc_email_address.nil?
171195
return false if @display_bcc_email_address.nil?
172196
return false if @convert_attachments.nil?
197+
return false if @preserve_original_date.nil?
173198
return true
174199
end
175200

@@ -185,7 +210,9 @@ def ==(other)
185210
display_cc_email_address == other.display_cc_email_address &&
186211
display_bcc_email_address == other.display_bcc_email_address &&
187212
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
189216
end
190217

191218
# @see the `==` method
@@ -197,7 +224,7 @@ def eql?(other)
197224
# Calculates hash code according to all attributes.
198225
# @return [Fixnum] Hash code
199226
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
201228
end
202229

203230
# Downcases first letter.

lib/groupdocs_conversion_cloud/models/eml_load_options.rb

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ class EmlLoadOptions
5555
# Option to convert attachments in source email or not. Default: false.
5656
attr_accessor :convert_attachments
5757

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+
5864
# Attribute mapping from ruby-style variable name to JSON key.
5965
def self.attribute_map
6066
{
@@ -65,7 +71,9 @@ def self.attribute_map
6571
:'display_cc_email_address' => :'DisplayCcEmailAddress',
6672
:'display_bcc_email_address' => :'DisplayBccEmailAddress',
6773
:'time_zone_offset' => :'TimeZoneOffset',
68-
:'convert_attachments' => :'ConvertAttachments'
74+
:'convert_attachments' => :'ConvertAttachments',
75+
:'field_labels' => :'FieldLabels',
76+
:'preserve_original_date' => :'PreserveOriginalDate'
6977
}
7078
end
7179

@@ -79,7 +87,9 @@ def self.swagger_types
7987
:'display_cc_email_address' => :'BOOLEAN',
8088
:'display_bcc_email_address' => :'BOOLEAN',
8189
:'time_zone_offset' => :'String',
82-
:'convert_attachments' => :'BOOLEAN'
90+
:'convert_attachments' => :'BOOLEAN',
91+
:'field_labels' => :'Array<FieldLabel>',
92+
:'preserve_original_date' => :'BOOLEAN'
8393
}
8494
end
8595

@@ -123,6 +133,16 @@ def initialize(attributes = {})
123133
self.convert_attachments = attributes[:'ConvertAttachments']
124134
end
125135

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+
126146
end
127147

128148
# Show invalid properties with the reasons. Usually used together with valid?
@@ -157,6 +177,10 @@ def list_invalid_properties
157177
invalid_properties.push("invalid value for 'convert_attachments', convert_attachments cannot be nil.")
158178
end
159179

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+
160184
return invalid_properties
161185
end
162186

@@ -170,6 +194,7 @@ def valid?
170194
return false if @display_cc_email_address.nil?
171195
return false if @display_bcc_email_address.nil?
172196
return false if @convert_attachments.nil?
197+
return false if @preserve_original_date.nil?
173198
return true
174199
end
175200

@@ -185,7 +210,9 @@ def ==(other)
185210
display_cc_email_address == other.display_cc_email_address &&
186211
display_bcc_email_address == other.display_bcc_email_address &&
187212
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
189216
end
190217

191218
# @see the `==` method
@@ -197,7 +224,7 @@ def eql?(other)
197224
# Calculates hash code according to all attributes.
198225
# @return [Fixnum] Hash code
199226
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
201228
end
202229

203230
# Downcases first letter.

lib/groupdocs_conversion_cloud/models/emlx_load_options.rb

Lines changed: 31 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,12 @@ class EmlxLoadOptions
5555
# Option to convert attachments in source email or not. Default: false.
5656
attr_accessor :convert_attachments
5757

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+
5864
# Attribute mapping from ruby-style variable name to JSON key.
5965
def self.attribute_map
6066
{
@@ -65,7 +71,9 @@ def self.attribute_map
6571
:'display_cc_email_address' => :'DisplayCcEmailAddress',
6672
:'display_bcc_email_address' => :'DisplayBccEmailAddress',
6773
:'time_zone_offset' => :'TimeZoneOffset',
68-
:'convert_attachments' => :'ConvertAttachments'
74+
:'convert_attachments' => :'ConvertAttachments',
75+
:'field_labels' => :'FieldLabels',
76+
:'preserve_original_date' => :'PreserveOriginalDate'
6977
}
7078
end
7179

@@ -79,7 +87,9 @@ def self.swagger_types
7987
:'display_cc_email_address' => :'BOOLEAN',
8088
:'display_bcc_email_address' => :'BOOLEAN',
8189
:'time_zone_offset' => :'String',
82-
:'convert_attachments' => :'BOOLEAN'
90+
:'convert_attachments' => :'BOOLEAN',
91+
:'field_labels' => :'Array<FieldLabel>',
92+
:'preserve_original_date' => :'BOOLEAN'
8393
}
8494
end
8595

@@ -123,6 +133,16 @@ def initialize(attributes = {})
123133
self.convert_attachments = attributes[:'ConvertAttachments']
124134
end
125135

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+
126146
end
127147

128148
# Show invalid properties with the reasons. Usually used together with valid?
@@ -157,6 +177,10 @@ def list_invalid_properties
157177
invalid_properties.push("invalid value for 'convert_attachments', convert_attachments cannot be nil.")
158178
end
159179

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+
160184
return invalid_properties
161185
end
162186

@@ -170,6 +194,7 @@ def valid?
170194
return false if @display_cc_email_address.nil?
171195
return false if @display_bcc_email_address.nil?
172196
return false if @convert_attachments.nil?
197+
return false if @preserve_original_date.nil?
173198
return true
174199
end
175200

@@ -185,7 +210,9 @@ def ==(other)
185210
display_cc_email_address == other.display_cc_email_address &&
186211
display_bcc_email_address == other.display_bcc_email_address &&
187212
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
189216
end
190217

191218
# @see the `==` method
@@ -197,7 +224,7 @@ def eql?(other)
197224
# Calculates hash code according to all attributes.
198225
# @return [Fixnum] Hash code
199226
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
201228
end
202229

203230
# Downcases first letter.

0 commit comments

Comments
 (0)