aspose_email_cloud 19.11.0 → 19.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aspose-email-cloud.rb +43 -1
- data/lib/aspose-email-cloud/api/email_api.rb +221 -100
- data/lib/aspose-email-cloud/api_client.rb +4 -3
- data/lib/aspose-email-cloud/configuration.rb +4 -0
- data/lib/aspose-email-cloud/models/account_base_request.rb +123 -113
- data/lib/aspose-email-cloud/models/add_attachment_request.rb +86 -82
- data/lib/aspose-email-cloud/models/ai_bcr_base64_image.rb +228 -0
- data/lib/aspose-email-cloud/models/ai_bcr_base64_rq.rb +225 -0
- data/lib/aspose-email-cloud/models/ai_bcr_image.rb +215 -0
- data/lib/aspose-email-cloud/models/ai_bcr_image_storage_file.rb +228 -0
- data/lib/aspose-email-cloud/models/ai_bcr_ocr_data.rb +253 -0
- data/lib/aspose-email-cloud/models/ai_bcr_ocr_data_part.rb +297 -0
- data/lib/aspose-email-cloud/models/ai_bcr_options.rb +223 -0
- data/lib/aspose-email-cloud/models/ai_bcr_parse_storage_rq.rb +248 -0
- data/lib/aspose-email-cloud/models/ai_bcr_rq.rb +210 -0
- data/lib/aspose-email-cloud/models/ai_bcr_storage_image_rq.rb +230 -0
- data/lib/aspose-email-cloud/models/ai_name_component.rb +264 -0
- data/lib/aspose-email-cloud/models/ai_name_cultural_context.rb +267 -0
- data/lib/aspose-email-cloud/models/ai_name_extracted.rb +230 -0
- data/lib/aspose-email-cloud/models/ai_name_extracted_component.rb +228 -0
- data/lib/aspose-email-cloud/models/ai_name_formatted.rb +223 -0
- data/lib/aspose-email-cloud/models/ai_name_gender_hypothesis.rb +233 -0
- data/lib/aspose-email-cloud/models/ai_name_match_result.rb +230 -0
- data/lib/aspose-email-cloud/models/ai_name_mismatch.rb +246 -0
- data/lib/aspose-email-cloud/models/ai_name_parsed_match_rq.rb +263 -0
- data/lib/aspose-email-cloud/models/ai_name_parsed_rq.rb +243 -0
- data/lib/aspose-email-cloud/models/ai_name_weighted.rb +228 -0
- data/lib/aspose-email-cloud/models/ai_name_weighted_variants.rb +225 -0
- data/lib/aspose-email-cloud/models/append_email_account_base_request.rb +178 -163
- data/lib/aspose-email-cloud/models/append_email_base_request.rb +196 -179
- data/lib/aspose-email-cloud/models/append_email_mime_base_request.rb +215 -198
- data/lib/aspose-email-cloud/models/base_object.rb +9 -5
- data/lib/aspose-email-cloud/models/create_email_request.rb +91 -87
- data/lib/aspose-email-cloud/models/create_folder_base_request.rb +173 -160
- data/lib/aspose-email-cloud/models/delete_folder_base_request.rb +178 -165
- data/lib/aspose-email-cloud/models/delete_message_base_request.rb +178 -165
- data/lib/aspose-email-cloud/models/disc_usage.rb +96 -92
- data/lib/aspose-email-cloud/models/email_account_request.rb +257 -205
- data/lib/aspose-email-cloud/models/email_document.rb +93 -89
- data/lib/aspose-email-cloud/models/email_document_response.rb +73 -71
- data/lib/aspose-email-cloud/models/email_properties.rb +93 -88
- data/lib/aspose-email-cloud/models/email_property.rb +128 -119
- data/lib/aspose-email-cloud/models/email_property_response.rb +73 -71
- data/lib/aspose-email-cloud/models/error.rb +112 -104
- data/lib/aspose-email-cloud/models/error_details.rb +91 -87
- data/lib/aspose-email-cloud/models/file_version.rb +166 -152
- data/lib/aspose-email-cloud/models/file_versions.rb +75 -73
- data/lib/aspose-email-cloud/models/files_list.rb +75 -73
- data/lib/aspose-email-cloud/models/files_upload_result.rb +90 -86
- data/lib/aspose-email-cloud/models/hierarchical_object.rb +13 -7
- data/lib/aspose-email-cloud/models/hierarchical_object_request.rb +91 -87
- data/lib/aspose-email-cloud/models/hierarchical_object_response.rb +86 -82
- data/lib/aspose-email-cloud/models/indexed_hierarchical_object.rb +17 -9
- data/lib/aspose-email-cloud/models/indexed_primitive_object.rb +17 -9
- data/lib/aspose-email-cloud/models/link.rb +112 -104
- data/lib/aspose-email-cloud/models/list_response_of_ai_bcr_ocr_data.rb +211 -0
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_component.rb +211 -0
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_extracted.rb +211 -0
- data/lib/aspose-email-cloud/models/list_response_of_ai_name_gender_hypothesis.rb +211 -0
- data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object.rb +211 -0
- data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object_response.rb +74 -71
- data/lib/aspose-email-cloud/models/list_response_of_mail_server_folder.rb +74 -71
- data/lib/aspose-email-cloud/models/list_response_of_storage_file_location.rb +211 -0
- data/lib/aspose-email-cloud/models/list_response_of_string.rb +74 -71
- data/lib/aspose-email-cloud/models/mail_server_folder.rb +86 -82
- data/lib/aspose-email-cloud/models/mime_response.rb +73 -71
- data/lib/aspose-email-cloud/models/object_exist.rb +96 -92
- data/lib/aspose-email-cloud/models/primitive_object.rb +13 -7
- data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +6 -11
- data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_complete_request_data.rb +91 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_request_data.rb +91 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_format_request_data.rb +94 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_request_data.rb +91 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_match_request_data.rb +99 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb +91 -0
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_request_data.rb +91 -0
- data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/copy_file_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/copy_folder_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +5 -10
- data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/create_folder_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +7 -12
- data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/delete_file_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/delete_folder_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/download_file_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/fetch_email_message_request_data.rb +7 -7
- data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/get_calendar_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +7 -12
- data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +7 -12
- data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +6 -11
- data/lib/aspose-email-cloud/models/requests/get_disc_usage_request_data.rb +1 -1
- data/lib/aspose-email-cloud/models/requests/get_email_attachment_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/get_email_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/get_file_versions_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/get_files_list_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/list_email_folders_request_data.rb +7 -7
- data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +10 -10
- data/lib/aspose-email-cloud/models/requests/move_file_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/move_folder_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/object_exists_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +5 -5
- data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/storage_exists_request_data.rb +1 -1
- data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +5 -10
- data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/requests/upload_file_request_data.rb +3 -3
- data/lib/aspose-email-cloud/models/save_email_account_request.rb +294 -240
- data/lib/aspose-email-cloud/models/save_o_auth_email_account_request.rb +368 -310
- data/lib/aspose-email-cloud/models/send_email_base_request.rb +141 -130
- data/lib/aspose-email-cloud/models/send_email_mime_base_request.rb +160 -149
- data/lib/aspose-email-cloud/models/set_email_property_request.rb +91 -87
- data/lib/aspose-email-cloud/models/set_message_read_flag_account_base_request.rb +178 -165
- data/lib/aspose-email-cloud/models/storage_exist.rb +78 -76
- data/lib/aspose-email-cloud/models/storage_file.rb +135 -125
- data/lib/aspose-email-cloud/models/storage_file_location.rb +123 -117
- data/lib/aspose-email-cloud/models/storage_folder_location.rb +86 -82
- data/lib/aspose-email-cloud/models/value_response.rb +73 -71
- data/lib/aspose-email-cloud/version.rb +1 -1
- metadata +45 -3
- data/lib/aspose-email-cloud/models/contact_format.rb +0 -45
@@ -27,97 +27,101 @@
|
|
27
27
|
require 'date'
|
28
28
|
|
29
29
|
module AsposeEmailCloud
|
30
|
-
# Class for disc space information.
|
31
|
-
class DiscUsage
|
32
|
-
# Application used disc space.
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
if @
|
86
|
-
invalid_properties.push('invalid value for "
|
87
|
-
end
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
30
|
+
# Class for disc space information.
|
31
|
+
class DiscUsage
|
32
|
+
# Application used disc space.
|
33
|
+
# @return [Integer]
|
34
|
+
attr_accessor :used_size
|
35
|
+
|
36
|
+
# Total disc space.
|
37
|
+
# @return [Integer]
|
38
|
+
attr_accessor :total_size
|
39
|
+
|
40
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
41
|
+
def self.attribute_map
|
42
|
+
{
|
43
|
+
:'used_size' => :'usedSize',
|
44
|
+
:'total_size' => :'totalSize'
|
45
|
+
}
|
46
|
+
end
|
47
|
+
|
48
|
+
# Attribute type mapping.
|
49
|
+
def self.swagger_types
|
50
|
+
{
|
51
|
+
:'used_size' => :'Integer',
|
52
|
+
:'total_size' => :'Integer'
|
53
|
+
}
|
54
|
+
end
|
55
|
+
|
56
|
+
# Initializes the object
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
58
|
+
def initialize(attributes = {})
|
59
|
+
return unless attributes.is_a?(Hash)
|
60
|
+
|
61
|
+
# convert string to symbol for hash key
|
62
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
63
|
+
|
64
|
+
if attributes.has_key?(:'usedSize')
|
65
|
+
self.used_size = attributes[:'usedSize']
|
66
|
+
end
|
67
|
+
|
68
|
+
if attributes.has_key?(:'totalSize')
|
69
|
+
self.total_size = attributes[:'totalSize']
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
# Initializes the object
|
74
|
+
# @param [Integer] used_size Application used disc space.
|
75
|
+
# @param [Integer] total_size Total disc space.
|
76
|
+
def initialize(used_size=nil, total_size=nil)
|
77
|
+
self.used_size = used_size if used_size
|
78
|
+
self.total_size = total_size if total_size
|
79
|
+
end
|
80
|
+
|
81
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
82
|
+
# @return Array for valid properties with the reasons
|
83
|
+
def list_invalid_properties
|
84
|
+
invalid_properties = Array.new
|
85
|
+
if @used_size.nil?
|
86
|
+
invalid_properties.push('invalid value for "used_size", used_size cannot be nil.')
|
87
|
+
end
|
88
|
+
|
89
|
+
if @total_size.nil?
|
90
|
+
invalid_properties.push('invalid value for "total_size", total_size cannot be nil.')
|
91
|
+
end
|
92
|
+
|
93
|
+
invalid_properties
|
94
|
+
end
|
95
|
+
|
96
|
+
# Check to see if the all the properties in the model are valid
|
97
|
+
# @return true if the model is valid
|
98
|
+
def valid?
|
99
|
+
return false if @used_size.nil?
|
100
|
+
return false if @total_size.nil?
|
101
|
+
true
|
102
|
+
end
|
103
|
+
|
104
|
+
# Checks equality by comparing each attribute.
|
105
|
+
# @param [Object] Object to be compared
|
106
|
+
def ==(o)
|
107
|
+
return true if self.equal?(o)
|
108
|
+
self.class == o.class &&
|
109
|
+
used_size == o.used_size &&
|
110
|
+
total_size == o.total_size
|
111
|
+
end
|
112
|
+
|
113
|
+
# @see the `==` method
|
114
|
+
# @param [Object] Object to be compared
|
115
|
+
def eql?(o)
|
116
|
+
self == o
|
117
|
+
end
|
118
|
+
|
119
|
+
# Calculates hash code according to all attributes.
|
120
|
+
# @return [Fixnum] Hash code
|
121
|
+
def hash
|
122
|
+
[used_size, total_size].hash
|
123
|
+
end
|
124
|
+
|
121
125
|
# Builds the object from hash
|
122
126
|
# @param [Hash] attributes Model attributes in the form of hash
|
123
127
|
# @return [Object] Returns the model itself
|
@@ -224,6 +228,6 @@ module AsposeEmailCloud
|
|
224
228
|
value
|
225
229
|
end
|
226
230
|
end
|
227
|
-
|
231
|
+
|
228
232
|
end
|
229
233
|
end
|
@@ -27,210 +27,262 @@
|
|
27
27
|
require 'date'
|
28
28
|
|
29
29
|
module AsposeEmailCloud
|
30
|
-
# Email account settings request
|
31
|
-
class EmailAccountRequest
|
32
|
-
# Email account host
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
#
|
42
|
-
attr_accessor :
|
43
|
-
|
44
|
-
#
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
#
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
:'
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
#
|
128
|
-
# @
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
if
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
227
|
-
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
30
|
+
# Email account settings request
|
31
|
+
class EmailAccountRequest
|
32
|
+
# Email account host
|
33
|
+
# @return [String]
|
34
|
+
attr_accessor :host
|
35
|
+
|
36
|
+
# Email account port
|
37
|
+
# @return [Integer]
|
38
|
+
attr_accessor :port
|
39
|
+
|
40
|
+
# Email account login
|
41
|
+
# @return [String]
|
42
|
+
attr_accessor :login
|
43
|
+
|
44
|
+
# Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :security_options
|
47
|
+
|
48
|
+
# Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav
|
49
|
+
# @return [String]
|
50
|
+
attr_accessor :protocol_type
|
51
|
+
|
52
|
+
# Email account description
|
53
|
+
# @return [String]
|
54
|
+
attr_accessor :description
|
55
|
+
|
56
|
+
# A storage file location info to store email account
|
57
|
+
# @return [StorageFileLocation]
|
58
|
+
attr_accessor :storage_file
|
59
|
+
|
60
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
61
|
+
def self.attribute_map
|
62
|
+
{
|
63
|
+
:'host' => :'host',
|
64
|
+
:'port' => :'port',
|
65
|
+
:'login' => :'login',
|
66
|
+
:'security_options' => :'securityOptions',
|
67
|
+
:'protocol_type' => :'protocolType',
|
68
|
+
:'description' => :'description',
|
69
|
+
:'storage_file' => :'storageFile'
|
70
|
+
}
|
71
|
+
end
|
72
|
+
|
73
|
+
# Attribute type mapping.
|
74
|
+
def self.swagger_types
|
75
|
+
{
|
76
|
+
:'host' => :'String',
|
77
|
+
:'port' => :'Integer',
|
78
|
+
:'login' => :'String',
|
79
|
+
:'security_options' => :'String',
|
80
|
+
:'protocol_type' => :'String',
|
81
|
+
:'description' => :'String',
|
82
|
+
:'storage_file' => :'StorageFileLocation'
|
83
|
+
}
|
84
|
+
end
|
85
|
+
|
86
|
+
# Initializes the object
|
87
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
88
|
+
def initialize(attributes = {})
|
89
|
+
return unless attributes.is_a?(Hash)
|
90
|
+
|
91
|
+
# convert string to symbol for hash key
|
92
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
93
|
+
|
94
|
+
if attributes.has_key?(:'host')
|
95
|
+
self.host = attributes[:'host']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.has_key?(:'port')
|
99
|
+
self.port = attributes[:'port']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.has_key?(:'login')
|
103
|
+
self.login = attributes[:'login']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.has_key?(:'securityOptions')
|
107
|
+
self.security_options = attributes[:'securityOptions']
|
108
|
+
end
|
109
|
+
|
110
|
+
if attributes.has_key?(:'protocolType')
|
111
|
+
self.protocol_type = attributes[:'protocolType']
|
112
|
+
end
|
113
|
+
|
114
|
+
if attributes.has_key?(:'description')
|
115
|
+
self.description = attributes[:'description']
|
116
|
+
end
|
117
|
+
|
118
|
+
if attributes.has_key?(:'storageFile')
|
119
|
+
self.storage_file = attributes[:'storageFile']
|
120
|
+
end
|
121
|
+
end
|
122
|
+
|
123
|
+
# Initializes the object
|
124
|
+
# @param [String] host Email account host
|
125
|
+
# @param [Integer] port Email account port
|
126
|
+
# @param [String] login Email account login
|
127
|
+
# @param [String] security_options Enum, available values: None, SSLExplicit, SSLImplicit, SSLAuto, Auto
|
128
|
+
# @param [String] protocol_type Type of connection protocol. Enum, available values: IMAP, POP3, SMTP, EWS, WebDav
|
129
|
+
# @param [String] description Email account description
|
130
|
+
# @param [StorageFileLocation] storage_file A storage file location info to store email account
|
131
|
+
def initialize(host=nil, port=nil, login=nil, security_options=nil, protocol_type=nil, description=nil, storage_file=nil)
|
132
|
+
self.host = host if host
|
133
|
+
self.port = port if port
|
134
|
+
self.login = login if login
|
135
|
+
self.security_options = security_options if security_options
|
136
|
+
self.protocol_type = protocol_type if protocol_type
|
137
|
+
self.description = description if description
|
138
|
+
self.storage_file = storage_file if storage_file
|
139
|
+
end
|
140
|
+
|
141
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
142
|
+
# @return Array for valid properties with the reasons
|
143
|
+
def list_invalid_properties
|
144
|
+
invalid_properties = Array.new
|
145
|
+
if @host.nil?
|
146
|
+
invalid_properties.push('invalid value for "host", host cannot be nil.')
|
147
|
+
end
|
148
|
+
|
149
|
+
if @host.to_s.length < 1
|
150
|
+
invalid_properties.push('invalid value for "host", the character length must be great than or equal to 1.')
|
151
|
+
end
|
152
|
+
|
153
|
+
if @port.nil?
|
154
|
+
invalid_properties.push('invalid value for "port", port cannot be nil.')
|
155
|
+
end
|
156
|
+
|
157
|
+
if @login.nil?
|
158
|
+
invalid_properties.push('invalid value for "login", login cannot be nil.')
|
159
|
+
end
|
160
|
+
|
161
|
+
if @login.to_s.length < 1
|
162
|
+
invalid_properties.push('invalid value for "login", the character length must be great than or equal to 1.')
|
163
|
+
end
|
164
|
+
|
165
|
+
if @security_options.nil?
|
166
|
+
invalid_properties.push('invalid value for "security_options", security_options cannot be nil.')
|
167
|
+
end
|
168
|
+
|
169
|
+
if @security_options.to_s.length < 1
|
170
|
+
invalid_properties.push('invalid value for "security_options", the character length must be great than or equal to 1.')
|
171
|
+
end
|
172
|
+
|
173
|
+
if @protocol_type.nil?
|
174
|
+
invalid_properties.push('invalid value for "protocol_type", protocol_type cannot be nil.')
|
175
|
+
end
|
176
|
+
|
177
|
+
if @protocol_type.to_s.length < 1
|
178
|
+
invalid_properties.push('invalid value for "protocol_type", the character length must be great than or equal to 1.')
|
179
|
+
end
|
180
|
+
|
181
|
+
if @storage_file.nil?
|
182
|
+
invalid_properties.push('invalid value for "storage_file", storage_file cannot be nil.')
|
183
|
+
end
|
184
|
+
|
185
|
+
invalid_properties
|
186
|
+
end
|
187
|
+
|
188
|
+
# Check to see if the all the properties in the model are valid
|
189
|
+
# @return true if the model is valid
|
190
|
+
def valid?
|
191
|
+
return false if @host.nil?
|
192
|
+
return false if @host.to_s.length < 1
|
193
|
+
return false if @port.nil?
|
194
|
+
return false if @login.nil?
|
195
|
+
return false if @login.to_s.length < 1
|
196
|
+
return false if @security_options.nil?
|
197
|
+
return false if @security_options.to_s.length < 1
|
198
|
+
return false if @protocol_type.nil?
|
199
|
+
return false if @protocol_type.to_s.length < 1
|
200
|
+
return false if @storage_file.nil?
|
201
|
+
true
|
202
|
+
end
|
203
|
+
|
204
|
+
# Custom attribute writer method with validation
|
205
|
+
# @param [Object] host Value to be assigned
|
206
|
+
def host=(host)
|
207
|
+
if host.nil?
|
208
|
+
fail ArgumentError, 'host cannot be nil'
|
209
|
+
end
|
210
|
+
|
211
|
+
if host.to_s.length < 1
|
212
|
+
fail ArgumentError, 'invalid value for "host", the character length must be great than or equal to 1.'
|
213
|
+
end
|
214
|
+
|
215
|
+
@host = host
|
216
|
+
end
|
217
|
+
|
218
|
+
# Custom attribute writer method with validation
|
219
|
+
# @param [Object] login Value to be assigned
|
220
|
+
def login=(login)
|
221
|
+
if login.nil?
|
222
|
+
fail ArgumentError, 'login cannot be nil'
|
223
|
+
end
|
224
|
+
|
225
|
+
if login.to_s.length < 1
|
226
|
+
fail ArgumentError, 'invalid value for "login", the character length must be great than or equal to 1.'
|
227
|
+
end
|
228
|
+
|
229
|
+
@login = login
|
230
|
+
end
|
231
|
+
|
232
|
+
# Custom attribute writer method with validation
|
233
|
+
# @param [Object] security_options Value to be assigned
|
234
|
+
def security_options=(security_options)
|
235
|
+
if security_options.nil?
|
236
|
+
fail ArgumentError, 'security_options cannot be nil'
|
237
|
+
end
|
238
|
+
|
239
|
+
if security_options.to_s.length < 1
|
240
|
+
fail ArgumentError, 'invalid value for "security_options", the character length must be great than or equal to 1.'
|
241
|
+
end
|
242
|
+
|
243
|
+
@security_options = security_options
|
244
|
+
end
|
245
|
+
|
246
|
+
# Custom attribute writer method with validation
|
247
|
+
# @param [Object] protocol_type Value to be assigned
|
248
|
+
def protocol_type=(protocol_type)
|
249
|
+
if protocol_type.nil?
|
250
|
+
fail ArgumentError, 'protocol_type cannot be nil'
|
251
|
+
end
|
252
|
+
|
253
|
+
if protocol_type.to_s.length < 1
|
254
|
+
fail ArgumentError, 'invalid value for "protocol_type", the character length must be great than or equal to 1.'
|
255
|
+
end
|
256
|
+
|
257
|
+
@protocol_type = protocol_type
|
258
|
+
end
|
259
|
+
|
260
|
+
# Checks equality by comparing each attribute.
|
261
|
+
# @param [Object] Object to be compared
|
262
|
+
def ==(o)
|
263
|
+
return true if self.equal?(o)
|
264
|
+
self.class == o.class &&
|
265
|
+
host == o.host &&
|
266
|
+
port == o.port &&
|
267
|
+
login == o.login &&
|
268
|
+
security_options == o.security_options &&
|
269
|
+
protocol_type == o.protocol_type &&
|
270
|
+
description == o.description &&
|
271
|
+
storage_file == o.storage_file
|
272
|
+
end
|
273
|
+
|
274
|
+
# @see the `==` method
|
275
|
+
# @param [Object] Object to be compared
|
276
|
+
def eql?(o)
|
277
|
+
self == o
|
278
|
+
end
|
279
|
+
|
280
|
+
# Calculates hash code according to all attributes.
|
281
|
+
# @return [Fixnum] Hash code
|
282
|
+
def hash
|
283
|
+
[host, port, login, security_options, protocol_type, description, storage_file].hash
|
284
|
+
end
|
285
|
+
|
234
286
|
# Builds the object from hash
|
235
287
|
# @param [Hash] attributes Model attributes in the form of hash
|
236
288
|
# @return [Object] Returns the model itself
|
@@ -337,6 +389,6 @@ module AsposeEmailCloud
|
|
337
389
|
value
|
338
390
|
end
|
339
391
|
end
|
340
|
-
|
392
|
+
|
341
393
|
end
|
342
394
|
end
|