aspose_email_cloud 20.1.0 → 20.2.0
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/aspose-email-cloud.rb +10 -0
- data/lib/aspose-email-cloud/api/email_api.rb +24 -0
- data/lib/aspose-email-cloud/models/discover_email_config_oauth.rb +388 -0
- data/lib/aspose-email-cloud/models/discover_email_config_password.rb +301 -0
- data/lib/aspose-email-cloud/models/discover_email_config_rq.rb +265 -0
- data/lib/aspose-email-cloud/models/email_account_config.rb +320 -0
- data/lib/aspose-email-cloud/models/email_account_config_list.rb +212 -0
- data/lib/aspose-email-cloud/models/list_response_of_email_account_config.rb +211 -0
- data/lib/aspose-email-cloud/models/name_value_pair.rb +222 -0
- data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_model_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_complete_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_format_request_data.rb +37 -15
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_match_request_data.rb +38 -16
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/append_email_model_message_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/convert_email_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/copy_file_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/copy_folder_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +14 -7
- data/lib/aspose-email-cloud/models/requests/create_folder_request_data.rb +12 -5
- data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/delete_file_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/delete_folder_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/discover_email_config_oauth_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/discover_email_config_password_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/discover_email_config_request_data.rb +86 -0
- data/lib/aspose-email-cloud/models/requests/download_file_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/fetch_email_message_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/fetch_email_model_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +24 -11
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_as_alternate_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_list_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/get_calendar_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/get_contact_model_list_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/get_contact_model_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_disc_usage_request_data.rb +6 -2
- data/lib/aspose-email-cloud/models/requests/get_email_as_file_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/get_email_attachment_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/get_email_model_list_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/get_email_model_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_email_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/get_file_versions_request_data.rb +12 -5
- data/lib/aspose-email-cloud/models/requests/get_files_list_request_data.rb +12 -5
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +21 -8
- data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/list_email_folders_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +39 -17
- data/lib/aspose-email-cloud/models/requests/list_email_models_request_data.rb +39 -17
- data/lib/aspose-email-cloud/models/requests/move_file_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/move_folder_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/object_exists_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/save_contact_model_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/save_email_model_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/send_email_model_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/storage_exists_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/upload_file_request_data.rb +18 -8
- data/lib/aspose-email-cloud/version.rb +1 -1
- metadata +12 -2
|
@@ -32,15 +32,19 @@ module AsposeEmailCloud
|
|
|
32
32
|
# Request model for ai_name_expand_parsed operation.
|
|
33
33
|
class AiNameExpandParsedRequestData < EmailRequest
|
|
34
34
|
|
|
35
|
+
# Parsed name with options
|
|
36
|
+
# @return [AiNameParsedRq]
|
|
37
|
+
attr_accessor :rq
|
|
38
|
+
|
|
35
39
|
# Expands a person's parsed name into a list of possible alternatives using options for expanding instructions
|
|
36
40
|
# @param [AiNameParsedRq] rq Parsed name with options
|
|
37
41
|
def initialize(rq)
|
|
38
|
-
|
|
42
|
+
self.rq = rq if rq
|
|
39
43
|
end
|
|
40
44
|
|
|
41
45
|
def to_http_info(api_client)
|
|
42
46
|
# verify the required parameter 'rq' is set
|
|
43
|
-
if api_client.config.client_side_validation &&
|
|
47
|
+
if api_client.config.client_side_validation && self.rq.nil?
|
|
44
48
|
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_name_expand_parsed"
|
|
45
49
|
end
|
|
46
50
|
|
|
@@ -54,7 +58,7 @@ module AsposeEmailCloud
|
|
|
54
58
|
form_params = {}
|
|
55
59
|
|
|
56
60
|
# http body (model)
|
|
57
|
-
post_body = api_client.object_to_http_body(
|
|
61
|
+
post_body = api_client.object_to_http_body(self.rq)
|
|
58
62
|
auth_names = ['JWT']
|
|
59
63
|
|
|
60
64
|
# header parameters
|
|
@@ -32,6 +32,25 @@ module AsposeEmailCloud
|
|
|
32
32
|
# Request model for ai_name_expand operation.
|
|
33
33
|
class AiNameExpandRequestData < EmailRequest
|
|
34
34
|
|
|
35
|
+
# A name to format (required)
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :name
|
|
38
|
+
# An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :language
|
|
41
|
+
# A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :location
|
|
44
|
+
# A character encoding name
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :encoding
|
|
47
|
+
# A writing system code; starts with the ISO-15924 script name
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :script
|
|
50
|
+
# Name writing style. Enum, available values: Formal, Informal, Legal, Academic
|
|
51
|
+
# @return [String]
|
|
52
|
+
attr_accessor :style
|
|
53
|
+
|
|
35
54
|
# Expands a person's name into a list of possible alternatives using options for expanding instructions
|
|
36
55
|
# @param [String] name A name to format (required)
|
|
37
56
|
# @param [String] language An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)
|
|
@@ -40,17 +59,17 @@ module AsposeEmailCloud
|
|
|
40
59
|
# @param [String] script A writing system code; starts with the ISO-15924 script name
|
|
41
60
|
# @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
|
|
42
61
|
def initialize(name, language = nil, location = nil, encoding = nil, script = nil, style = nil)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
62
|
+
self.name = name if name
|
|
63
|
+
self.language = language if language
|
|
64
|
+
self.location = location if location
|
|
65
|
+
self.encoding = encoding if encoding
|
|
66
|
+
self.script = script if script
|
|
67
|
+
self.style = style if style
|
|
49
68
|
end
|
|
50
69
|
|
|
51
70
|
def to_http_info(api_client)
|
|
52
71
|
# verify the required parameter 'name' is set
|
|
53
|
-
if api_client.config.client_side_validation &&
|
|
72
|
+
if api_client.config.client_side_validation && self.name.nil?
|
|
54
73
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.ai_name_expand"
|
|
55
74
|
end
|
|
56
75
|
|
|
@@ -59,12 +78,12 @@ module AsposeEmailCloud
|
|
|
59
78
|
|
|
60
79
|
# query parameters
|
|
61
80
|
query_params = {}
|
|
62
|
-
query_params[:name] =
|
|
63
|
-
query_params[:language] =
|
|
64
|
-
query_params[:location] =
|
|
65
|
-
query_params[:encoding] =
|
|
66
|
-
query_params[:script] =
|
|
67
|
-
query_params[:style] =
|
|
81
|
+
query_params[:name] = self.name
|
|
82
|
+
query_params[:language] = self.language unless self.language.nil?
|
|
83
|
+
query_params[:location] = self.location unless self.location.nil?
|
|
84
|
+
query_params[:encoding] = self.encoding unless self.encoding.nil?
|
|
85
|
+
query_params[:script] = self.script unless self.script.nil?
|
|
86
|
+
query_params[:style] = self.style unless self.style.nil?
|
|
68
87
|
|
|
69
88
|
# form parameters
|
|
70
89
|
form_params = {}
|
|
@@ -32,15 +32,19 @@ module AsposeEmailCloud
|
|
|
32
32
|
# Request model for ai_name_format_parsed operation.
|
|
33
33
|
class AiNameFormatParsedRequestData < EmailRequest
|
|
34
34
|
|
|
35
|
+
# Parsed name with options
|
|
36
|
+
# @return [AiNameParsedRq]
|
|
37
|
+
attr_accessor :rq
|
|
38
|
+
|
|
35
39
|
# Formats a person's parsed name in correct case and name order using options for formatting instructions
|
|
36
40
|
# @param [AiNameParsedRq] rq Parsed name with options
|
|
37
41
|
def initialize(rq)
|
|
38
|
-
|
|
42
|
+
self.rq = rq if rq
|
|
39
43
|
end
|
|
40
44
|
|
|
41
45
|
def to_http_info(api_client)
|
|
42
46
|
# verify the required parameter 'rq' is set
|
|
43
|
-
if api_client.config.client_side_validation &&
|
|
47
|
+
if api_client.config.client_side_validation && self.rq.nil?
|
|
44
48
|
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_name_format_parsed"
|
|
45
49
|
end
|
|
46
50
|
|
|
@@ -54,7 +58,7 @@ module AsposeEmailCloud
|
|
|
54
58
|
form_params = {}
|
|
55
59
|
|
|
56
60
|
# http body (model)
|
|
57
|
-
post_body = api_client.object_to_http_body(
|
|
61
|
+
post_body = api_client.object_to_http_body(self.rq)
|
|
58
62
|
auth_names = ['JWT']
|
|
59
63
|
|
|
60
64
|
# header parameters
|
|
@@ -32,6 +32,28 @@ module AsposeEmailCloud
|
|
|
32
32
|
# Request model for ai_name_format operation.
|
|
33
33
|
class AiNameFormatRequestData < EmailRequest
|
|
34
34
|
|
|
35
|
+
# A name to format (required)
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :name
|
|
38
|
+
# An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :language
|
|
41
|
+
# A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :location
|
|
44
|
+
# A character encoding name
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :encoding
|
|
47
|
+
# A writing system code; starts with the ISO-15924 script name
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :script
|
|
50
|
+
# Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (= '%t%F%m%N%L%p') /format/FN+LN/ (= '%F%L') /format/title+FN+LN/ (= '%t%F%L') /format/FN+MN+LN/ (= '%F%M%N%L') /format/title+FN+MN+LN/ (= '%t%F%M%N%L') /format/FN+MI+LN/ (= '%F%m%N%L') /format/title+FN+MI+LN/ (= '%t%F%m%N%L') /format/LN/ (= '%L') /format/title+LN/ (= '%t%L') /format/LN+FN+MN/ (= '%L,%F%M%N') /format/LN+title+FN+MN/ (= '%L,%t%F%M%N') /format/LN+FN+MI/ (= '%L,%F%m%N') /format/LN+title+FN+MI/ (= '%L,%t%F%m%N') Custom format string - custom combination of characters and the next term placeholders: '%t' - Title (prefix) '%F' - First name '%f' - First initial '%M' - Middle name(s) '%m' - Middle initial(s) '%N' - Nickname '%L' - Last name '%l' - Last initial '%p' - Postfix If no value for format option was provided, its default value is '%t%F%m%N%L%p'
|
|
51
|
+
# @return [String]
|
|
52
|
+
attr_accessor :format
|
|
53
|
+
# Name writing style. Enum, available values: Formal, Informal, Legal, Academic
|
|
54
|
+
# @return [String]
|
|
55
|
+
attr_accessor :style
|
|
56
|
+
|
|
35
57
|
# Formats a person's name in correct case and name order using options for formatting instructions
|
|
36
58
|
# @param [String] name A name to format (required)
|
|
37
59
|
# @param [String] language An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)
|
|
@@ -41,18 +63,18 @@ module AsposeEmailCloud
|
|
|
41
63
|
# @param [String] format Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (= '%t%F%m%N%L%p') /format/FN+LN/ (= '%F%L') /format/title+FN+LN/ (= '%t%F%L') /format/FN+MN+LN/ (= '%F%M%N%L') /format/title+FN+MN+LN/ (= '%t%F%M%N%L') /format/FN+MI+LN/ (= '%F%m%N%L') /format/title+FN+MI+LN/ (= '%t%F%m%N%L') /format/LN/ (= '%L') /format/title+LN/ (= '%t%L') /format/LN+FN+MN/ (= '%L,%F%M%N') /format/LN+title+FN+MN/ (= '%L,%t%F%M%N') /format/LN+FN+MI/ (= '%L,%F%m%N') /format/LN+title+FN+MI/ (= '%L,%t%F%m%N') Custom format string - custom combination of characters and the next term placeholders: '%t' - Title (prefix) '%F' - First name '%f' - First initial '%M' - Middle name(s) '%m' - Middle initial(s) '%N' - Nickname '%L' - Last name '%l' - Last initial '%p' - Postfix If no value for format option was provided, its default value is '%t%F%m%N%L%p'
|
|
42
64
|
# @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
|
|
43
65
|
def initialize(name, language = nil, location = nil, encoding = nil, script = nil, format = nil, style = nil)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
66
|
+
self.name = name if name
|
|
67
|
+
self.language = language if language
|
|
68
|
+
self.location = location if location
|
|
69
|
+
self.encoding = encoding if encoding
|
|
70
|
+
self.script = script if script
|
|
71
|
+
self.format = format if format
|
|
72
|
+
self.style = style if style
|
|
51
73
|
end
|
|
52
74
|
|
|
53
75
|
def to_http_info(api_client)
|
|
54
76
|
# verify the required parameter 'name' is set
|
|
55
|
-
if api_client.config.client_side_validation &&
|
|
77
|
+
if api_client.config.client_side_validation && self.name.nil?
|
|
56
78
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.ai_name_format"
|
|
57
79
|
end
|
|
58
80
|
|
|
@@ -61,13 +83,13 @@ module AsposeEmailCloud
|
|
|
61
83
|
|
|
62
84
|
# query parameters
|
|
63
85
|
query_params = {}
|
|
64
|
-
query_params[:name] =
|
|
65
|
-
query_params[:language] =
|
|
66
|
-
query_params[:location] =
|
|
67
|
-
query_params[:encoding] =
|
|
68
|
-
query_params[:script] =
|
|
69
|
-
query_params[:format] =
|
|
70
|
-
query_params[:style] =
|
|
86
|
+
query_params[:name] = self.name
|
|
87
|
+
query_params[:language] = self.language unless self.language.nil?
|
|
88
|
+
query_params[:location] = self.location unless self.location.nil?
|
|
89
|
+
query_params[:encoding] = self.encoding unless self.encoding.nil?
|
|
90
|
+
query_params[:script] = self.script unless self.script.nil?
|
|
91
|
+
query_params[:format] = self.format unless self.format.nil?
|
|
92
|
+
query_params[:style] = self.style unless self.style.nil?
|
|
71
93
|
|
|
72
94
|
# form parameters
|
|
73
95
|
form_params = {}
|
|
@@ -32,15 +32,19 @@ module AsposeEmailCloud
|
|
|
32
32
|
# Request model for ai_name_genderize_parsed operation.
|
|
33
33
|
class AiNameGenderizeParsedRequestData < EmailRequest
|
|
34
34
|
|
|
35
|
+
# Gender detection request data
|
|
36
|
+
# @return [AiNameParsedRq]
|
|
37
|
+
attr_accessor :rq
|
|
38
|
+
|
|
35
39
|
# Detect person's gender from parsed name
|
|
36
40
|
# @param [AiNameParsedRq] rq Gender detection request data
|
|
37
41
|
def initialize(rq)
|
|
38
|
-
|
|
42
|
+
self.rq = rq if rq
|
|
39
43
|
end
|
|
40
44
|
|
|
41
45
|
def to_http_info(api_client)
|
|
42
46
|
# verify the required parameter 'rq' is set
|
|
43
|
-
if api_client.config.client_side_validation &&
|
|
47
|
+
if api_client.config.client_side_validation && self.rq.nil?
|
|
44
48
|
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_name_genderize_parsed"
|
|
45
49
|
end
|
|
46
50
|
|
|
@@ -54,7 +58,7 @@ module AsposeEmailCloud
|
|
|
54
58
|
form_params = {}
|
|
55
59
|
|
|
56
60
|
# http body (model)
|
|
57
|
-
post_body = api_client.object_to_http_body(
|
|
61
|
+
post_body = api_client.object_to_http_body(self.rq)
|
|
58
62
|
auth_names = ['JWT']
|
|
59
63
|
|
|
60
64
|
# header parameters
|
|
@@ -32,6 +32,25 @@ module AsposeEmailCloud
|
|
|
32
32
|
# Request model for ai_name_genderize operation.
|
|
33
33
|
class AiNameGenderizeRequestData < EmailRequest
|
|
34
34
|
|
|
35
|
+
# A name to parse (required)
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :name
|
|
38
|
+
# An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :language
|
|
41
|
+
# A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :location
|
|
44
|
+
# A character encoding name
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :encoding
|
|
47
|
+
# A writing system code; starts with the ISO-15924 script name
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :script
|
|
50
|
+
# Name writing style. Enum, available values: Formal, Informal, Legal, Academic
|
|
51
|
+
# @return [String]
|
|
52
|
+
attr_accessor :style
|
|
53
|
+
|
|
35
54
|
# Detect person's gender from name string
|
|
36
55
|
# @param [String] name A name to parse (required)
|
|
37
56
|
# @param [String] language An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)
|
|
@@ -40,17 +59,17 @@ module AsposeEmailCloud
|
|
|
40
59
|
# @param [String] script A writing system code; starts with the ISO-15924 script name
|
|
41
60
|
# @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
|
|
42
61
|
def initialize(name, language = nil, location = nil, encoding = nil, script = nil, style = nil)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
62
|
+
self.name = name if name
|
|
63
|
+
self.language = language if language
|
|
64
|
+
self.location = location if location
|
|
65
|
+
self.encoding = encoding if encoding
|
|
66
|
+
self.script = script if script
|
|
67
|
+
self.style = style if style
|
|
49
68
|
end
|
|
50
69
|
|
|
51
70
|
def to_http_info(api_client)
|
|
52
71
|
# verify the required parameter 'name' is set
|
|
53
|
-
if api_client.config.client_side_validation &&
|
|
72
|
+
if api_client.config.client_side_validation && self.name.nil?
|
|
54
73
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.ai_name_genderize"
|
|
55
74
|
end
|
|
56
75
|
|
|
@@ -59,12 +78,12 @@ module AsposeEmailCloud
|
|
|
59
78
|
|
|
60
79
|
# query parameters
|
|
61
80
|
query_params = {}
|
|
62
|
-
query_params[:name] =
|
|
63
|
-
query_params[:language] =
|
|
64
|
-
query_params[:location] =
|
|
65
|
-
query_params[:encoding] =
|
|
66
|
-
query_params[:script] =
|
|
67
|
-
query_params[:style] =
|
|
81
|
+
query_params[:name] = self.name
|
|
82
|
+
query_params[:language] = self.language unless self.language.nil?
|
|
83
|
+
query_params[:location] = self.location unless self.location.nil?
|
|
84
|
+
query_params[:encoding] = self.encoding unless self.encoding.nil?
|
|
85
|
+
query_params[:script] = self.script unless self.script.nil?
|
|
86
|
+
query_params[:style] = self.style unless self.style.nil?
|
|
68
87
|
|
|
69
88
|
# form parameters
|
|
70
89
|
form_params = {}
|
|
@@ -32,15 +32,19 @@ module AsposeEmailCloud
|
|
|
32
32
|
# Request model for ai_name_match_parsed operation.
|
|
33
33
|
class AiNameMatchParsedRequestData < EmailRequest
|
|
34
34
|
|
|
35
|
+
# Parsed names to match
|
|
36
|
+
# @return [AiNameParsedMatchRq]
|
|
37
|
+
attr_accessor :rq
|
|
38
|
+
|
|
35
39
|
# Compare people's parsed names and attributes. Uses options for comparing instructions
|
|
36
40
|
# @param [AiNameParsedMatchRq] rq Parsed names to match
|
|
37
41
|
def initialize(rq)
|
|
38
|
-
|
|
42
|
+
self.rq = rq if rq
|
|
39
43
|
end
|
|
40
44
|
|
|
41
45
|
def to_http_info(api_client)
|
|
42
46
|
# verify the required parameter 'rq' is set
|
|
43
|
-
if api_client.config.client_side_validation &&
|
|
47
|
+
if api_client.config.client_side_validation && self.rq.nil?
|
|
44
48
|
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_name_match_parsed"
|
|
45
49
|
end
|
|
46
50
|
|
|
@@ -54,7 +58,7 @@ module AsposeEmailCloud
|
|
|
54
58
|
form_params = {}
|
|
55
59
|
|
|
56
60
|
# http body (model)
|
|
57
|
-
post_body = api_client.object_to_http_body(
|
|
61
|
+
post_body = api_client.object_to_http_body(self.rq)
|
|
58
62
|
auth_names = ['JWT']
|
|
59
63
|
|
|
60
64
|
# header parameters
|
|
@@ -32,6 +32,28 @@ module AsposeEmailCloud
|
|
|
32
32
|
# Request model for ai_name_match operation.
|
|
33
33
|
class AiNameMatchRequestData < EmailRequest
|
|
34
34
|
|
|
35
|
+
# A name to match (required)
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :name
|
|
38
|
+
# Another name to match (required)
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :other_name
|
|
41
|
+
# An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :language
|
|
44
|
+
# A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :location
|
|
47
|
+
# A character encoding name
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :encoding
|
|
50
|
+
# A writing system code; starts with the ISO-15924 script name
|
|
51
|
+
# @return [String]
|
|
52
|
+
attr_accessor :script
|
|
53
|
+
# Name writing style. Enum, available values: Formal, Informal, Legal, Academic
|
|
54
|
+
# @return [String]
|
|
55
|
+
attr_accessor :style
|
|
56
|
+
|
|
35
57
|
# Compare people's names. Uses options for comparing instructions
|
|
36
58
|
# @param [String] name A name to match (required)
|
|
37
59
|
# @param [String] other_name Another name to match (required)
|
|
@@ -41,23 +63,23 @@ module AsposeEmailCloud
|
|
|
41
63
|
# @param [String] script A writing system code; starts with the ISO-15924 script name
|
|
42
64
|
# @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
|
|
43
65
|
def initialize(name, other_name, language = nil, location = nil, encoding = nil, script = nil, style = nil)
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
66
|
+
self.name = name if name
|
|
67
|
+
self.other_name = other_name if other_name
|
|
68
|
+
self.language = language if language
|
|
69
|
+
self.location = location if location
|
|
70
|
+
self.encoding = encoding if encoding
|
|
71
|
+
self.script = script if script
|
|
72
|
+
self.style = style if style
|
|
51
73
|
end
|
|
52
74
|
|
|
53
75
|
def to_http_info(api_client)
|
|
54
76
|
# verify the required parameter 'name' is set
|
|
55
|
-
if api_client.config.client_side_validation &&
|
|
77
|
+
if api_client.config.client_side_validation && self.name.nil?
|
|
56
78
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.ai_name_match"
|
|
57
79
|
end
|
|
58
80
|
|
|
59
81
|
# verify the required parameter 'other_name' is set
|
|
60
|
-
if api_client.config.client_side_validation &&
|
|
82
|
+
if api_client.config.client_side_validation && self.other_name.nil?
|
|
61
83
|
raise ArgumentError, "Missing the required parameter 'other_name' when calling EmailApi.ai_name_match"
|
|
62
84
|
end
|
|
63
85
|
|
|
@@ -66,13 +88,13 @@ module AsposeEmailCloud
|
|
|
66
88
|
|
|
67
89
|
# query parameters
|
|
68
90
|
query_params = {}
|
|
69
|
-
query_params[:name] =
|
|
70
|
-
query_params[:otherName] =
|
|
71
|
-
query_params[:language] =
|
|
72
|
-
query_params[:location] =
|
|
73
|
-
query_params[:encoding] =
|
|
74
|
-
query_params[:script] =
|
|
75
|
-
query_params[:style] =
|
|
91
|
+
query_params[:name] = self.name
|
|
92
|
+
query_params[:otherName] = self.other_name
|
|
93
|
+
query_params[:language] = self.language unless self.language.nil?
|
|
94
|
+
query_params[:location] = self.location unless self.location.nil?
|
|
95
|
+
query_params[:encoding] = self.encoding unless self.encoding.nil?
|
|
96
|
+
query_params[:script] = self.script unless self.script.nil?
|
|
97
|
+
query_params[:style] = self.style unless self.style.nil?
|
|
76
98
|
|
|
77
99
|
# form parameters
|
|
78
100
|
form_params = {}
|
|
@@ -32,6 +32,25 @@ module AsposeEmailCloud
|
|
|
32
32
|
# Request model for ai_name_parse_email_address operation.
|
|
33
33
|
class AiNameParseEmailAddressRequestData < EmailRequest
|
|
34
34
|
|
|
35
|
+
# Email address to parse (required)
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :email_address
|
|
38
|
+
# An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)
|
|
39
|
+
# @return [String]
|
|
40
|
+
attr_accessor :language
|
|
41
|
+
# A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France
|
|
42
|
+
# @return [String]
|
|
43
|
+
attr_accessor :location
|
|
44
|
+
# A character encoding name
|
|
45
|
+
# @return [String]
|
|
46
|
+
attr_accessor :encoding
|
|
47
|
+
# A writing system code; starts with the ISO-15924 script name
|
|
48
|
+
# @return [String]
|
|
49
|
+
attr_accessor :script
|
|
50
|
+
# Name writing style. Enum, available values: Formal, Informal, Legal, Academic
|
|
51
|
+
# @return [String]
|
|
52
|
+
attr_accessor :style
|
|
53
|
+
|
|
35
54
|
# Parse person's name out of an email address
|
|
36
55
|
# @param [String] email_address Email address to parse (required)
|
|
37
56
|
# @param [String] language An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)
|
|
@@ -40,17 +59,17 @@ module AsposeEmailCloud
|
|
|
40
59
|
# @param [String] script A writing system code; starts with the ISO-15924 script name
|
|
41
60
|
# @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
|
|
42
61
|
def initialize(email_address, language = nil, location = nil, encoding = nil, script = nil, style = nil)
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
62
|
+
self.email_address = email_address if email_address
|
|
63
|
+
self.language = language if language
|
|
64
|
+
self.location = location if location
|
|
65
|
+
self.encoding = encoding if encoding
|
|
66
|
+
self.script = script if script
|
|
67
|
+
self.style = style if style
|
|
49
68
|
end
|
|
50
69
|
|
|
51
70
|
def to_http_info(api_client)
|
|
52
71
|
# verify the required parameter 'email_address' is set
|
|
53
|
-
if api_client.config.client_side_validation &&
|
|
72
|
+
if api_client.config.client_side_validation && self.email_address.nil?
|
|
54
73
|
raise ArgumentError, "Missing the required parameter 'email_address' when calling EmailApi.ai_name_parse_email_address"
|
|
55
74
|
end
|
|
56
75
|
|
|
@@ -59,12 +78,12 @@ module AsposeEmailCloud
|
|
|
59
78
|
|
|
60
79
|
# query parameters
|
|
61
80
|
query_params = {}
|
|
62
|
-
query_params[:emailAddress] =
|
|
63
|
-
query_params[:language] =
|
|
64
|
-
query_params[:location] =
|
|
65
|
-
query_params[:encoding] =
|
|
66
|
-
query_params[:script] =
|
|
67
|
-
query_params[:style] =
|
|
81
|
+
query_params[:emailAddress] = self.email_address
|
|
82
|
+
query_params[:language] = self.language unless self.language.nil?
|
|
83
|
+
query_params[:location] = self.location unless self.location.nil?
|
|
84
|
+
query_params[:encoding] = self.encoding unless self.encoding.nil?
|
|
85
|
+
query_params[:script] = self.script unless self.script.nil?
|
|
86
|
+
query_params[:style] = self.style unless self.style.nil?
|
|
68
87
|
|
|
69
88
|
# form parameters
|
|
70
89
|
form_params = {}
|