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
@@ -0,0 +1,91 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="ai_name_expand_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
8
|
+
# copy of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
12
|
+
# Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in
|
15
|
+
# all 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
|
22
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
23
|
+
# DEALINGS IN THE SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# ----------------------------------------------------------------------------
|
26
|
+
|
27
|
+
|
28
|
+
require_relative './email_request'
|
29
|
+
require_relative './http_request'
|
30
|
+
|
31
|
+
module AsposeEmailCloud
|
32
|
+
# Request model for ai_name_expand operation.
|
33
|
+
class AiNameExpandRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Expands a person's name into a list of possible alternatives using options for expanding instructions
|
36
|
+
# @param [String] name A name to format (required)
|
37
|
+
# @param [String] language An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)
|
38
|
+
# @param [String] location A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France
|
39
|
+
# @param [String] encoding A character encoding name
|
40
|
+
# @param [String] script A writing system code; starts with the ISO-15924 script name
|
41
|
+
# @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
|
42
|
+
def initialize(name, language = nil, location = nil, encoding = nil, script = nil, style = nil)
|
43
|
+
@name = name if name
|
44
|
+
@language = language if language
|
45
|
+
@location = location if location
|
46
|
+
@encoding = encoding if encoding
|
47
|
+
@script = script if script
|
48
|
+
@style = style if style
|
49
|
+
end
|
50
|
+
|
51
|
+
def to_http_info(api_client)
|
52
|
+
# verify the required parameter 'name' is set
|
53
|
+
if api_client.config.client_side_validation && @name.nil?
|
54
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.ai_name_expand"
|
55
|
+
end
|
56
|
+
|
57
|
+
# resource path
|
58
|
+
local_var_path = '/email/AiName/expand'
|
59
|
+
|
60
|
+
# query parameters
|
61
|
+
query_params = {}
|
62
|
+
query_params[:name] = @name
|
63
|
+
query_params[:language] = @language unless @language.nil?
|
64
|
+
query_params[:location] = @location unless @location.nil?
|
65
|
+
query_params[:encoding] = @encoding unless @encoding.nil?
|
66
|
+
query_params[:script] = @script unless @script.nil?
|
67
|
+
query_params[:style] = @style unless @style.nil?
|
68
|
+
|
69
|
+
# form parameters
|
70
|
+
form_params = {}
|
71
|
+
|
72
|
+
# http body (model)
|
73
|
+
post_body = nil
|
74
|
+
auth_names = ['JWT']
|
75
|
+
|
76
|
+
# header parameters
|
77
|
+
header_params = {}
|
78
|
+
# HTTP header 'Accept' (if needed)
|
79
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
80
|
+
# HTTP header 'Content-Type'
|
81
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
82
|
+
|
83
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
84
|
+
header_params,
|
85
|
+
query_params,
|
86
|
+
form_params,
|
87
|
+
post_body,
|
88
|
+
auth_names)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="ai_name_format_parsed_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
8
|
+
# copy of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
12
|
+
# Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in
|
15
|
+
# all 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
|
22
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
23
|
+
# DEALINGS IN THE SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# ----------------------------------------------------------------------------
|
26
|
+
|
27
|
+
|
28
|
+
require_relative './email_request'
|
29
|
+
require_relative './http_request'
|
30
|
+
|
31
|
+
module AsposeEmailCloud
|
32
|
+
# Request model for ai_name_format_parsed operation.
|
33
|
+
class AiNameFormatParsedRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Formats a person's parsed name in correct case and name order using options for formatting instructions
|
36
|
+
# @param [AiNameParsedRq] rq Parsed name with options
|
37
|
+
def initialize(rq)
|
38
|
+
@rq = rq if rq
|
39
|
+
end
|
40
|
+
|
41
|
+
def to_http_info(api_client)
|
42
|
+
# verify the required parameter 'rq' is set
|
43
|
+
if api_client.config.client_side_validation && @rq.nil?
|
44
|
+
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_name_format_parsed"
|
45
|
+
end
|
46
|
+
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/email/AiName/format-parsed'
|
49
|
+
|
50
|
+
# query parameters
|
51
|
+
query_params = {}
|
52
|
+
|
53
|
+
# form parameters
|
54
|
+
form_params = {}
|
55
|
+
|
56
|
+
# http body (model)
|
57
|
+
post_body = api_client.object_to_http_body(@rq)
|
58
|
+
auth_names = ['JWT']
|
59
|
+
|
60
|
+
# header parameters
|
61
|
+
header_params = {}
|
62
|
+
# HTTP header 'Accept' (if needed)
|
63
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
64
|
+
# HTTP header 'Content-Type'
|
65
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
66
|
+
|
67
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
68
|
+
header_params,
|
69
|
+
query_params,
|
70
|
+
form_params,
|
71
|
+
post_body,
|
72
|
+
auth_names)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,94 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="ai_name_format_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
8
|
+
# copy of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
12
|
+
# Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in
|
15
|
+
# all 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
|
22
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
23
|
+
# DEALINGS IN THE SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# ----------------------------------------------------------------------------
|
26
|
+
|
27
|
+
|
28
|
+
require_relative './email_request'
|
29
|
+
require_relative './http_request'
|
30
|
+
|
31
|
+
module AsposeEmailCloud
|
32
|
+
# Request model for ai_name_format operation.
|
33
|
+
class AiNameFormatRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Formats a person's name in correct case and name order using options for formatting instructions
|
36
|
+
# @param [String] name A name to format (required)
|
37
|
+
# @param [String] language An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)
|
38
|
+
# @param [String] location A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France
|
39
|
+
# @param [String] encoding A character encoding name
|
40
|
+
# @param [String] script A writing system code; starts with the ISO-15924 script name
|
41
|
+
# @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
|
+
# @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
|
43
|
+
def initialize(name, language = nil, location = nil, encoding = nil, script = nil, format = nil, style = nil)
|
44
|
+
@name = name if name
|
45
|
+
@language = language if language
|
46
|
+
@location = location if location
|
47
|
+
@encoding = encoding if encoding
|
48
|
+
@script = script if script
|
49
|
+
@format = format if format
|
50
|
+
@style = style if style
|
51
|
+
end
|
52
|
+
|
53
|
+
def to_http_info(api_client)
|
54
|
+
# verify the required parameter 'name' is set
|
55
|
+
if api_client.config.client_side_validation && @name.nil?
|
56
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.ai_name_format"
|
57
|
+
end
|
58
|
+
|
59
|
+
# resource path
|
60
|
+
local_var_path = '/email/AiName/format'
|
61
|
+
|
62
|
+
# query parameters
|
63
|
+
query_params = {}
|
64
|
+
query_params[:name] = @name
|
65
|
+
query_params[:language] = @language unless @language.nil?
|
66
|
+
query_params[:location] = @location unless @location.nil?
|
67
|
+
query_params[:encoding] = @encoding unless @encoding.nil?
|
68
|
+
query_params[:script] = @script unless @script.nil?
|
69
|
+
query_params[:format] = @format unless @format.nil?
|
70
|
+
query_params[:style] = @style unless @style.nil?
|
71
|
+
|
72
|
+
# form parameters
|
73
|
+
form_params = {}
|
74
|
+
|
75
|
+
# http body (model)
|
76
|
+
post_body = nil
|
77
|
+
auth_names = ['JWT']
|
78
|
+
|
79
|
+
# header parameters
|
80
|
+
header_params = {}
|
81
|
+
# HTTP header 'Accept' (if needed)
|
82
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
83
|
+
# HTTP header 'Content-Type'
|
84
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
85
|
+
|
86
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
87
|
+
header_params,
|
88
|
+
query_params,
|
89
|
+
form_params,
|
90
|
+
post_body,
|
91
|
+
auth_names)
|
92
|
+
end
|
93
|
+
end
|
94
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="ai_name_genderize_parsed_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
8
|
+
# copy of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
12
|
+
# Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in
|
15
|
+
# all 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
|
22
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
23
|
+
# DEALINGS IN THE SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# ----------------------------------------------------------------------------
|
26
|
+
|
27
|
+
|
28
|
+
require_relative './email_request'
|
29
|
+
require_relative './http_request'
|
30
|
+
|
31
|
+
module AsposeEmailCloud
|
32
|
+
# Request model for ai_name_genderize_parsed operation.
|
33
|
+
class AiNameGenderizeParsedRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Detect person's gender from parsed name
|
36
|
+
# @param [AiNameParsedRq] rq Gender detection request data
|
37
|
+
def initialize(rq)
|
38
|
+
@rq = rq if rq
|
39
|
+
end
|
40
|
+
|
41
|
+
def to_http_info(api_client)
|
42
|
+
# verify the required parameter 'rq' is set
|
43
|
+
if api_client.config.client_side_validation && @rq.nil?
|
44
|
+
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_name_genderize_parsed"
|
45
|
+
end
|
46
|
+
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/email/AiName/genderize-parsed'
|
49
|
+
|
50
|
+
# query parameters
|
51
|
+
query_params = {}
|
52
|
+
|
53
|
+
# form parameters
|
54
|
+
form_params = {}
|
55
|
+
|
56
|
+
# http body (model)
|
57
|
+
post_body = api_client.object_to_http_body(@rq)
|
58
|
+
auth_names = ['JWT']
|
59
|
+
|
60
|
+
# header parameters
|
61
|
+
header_params = {}
|
62
|
+
# HTTP header 'Accept' (if needed)
|
63
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
64
|
+
# HTTP header 'Content-Type'
|
65
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
66
|
+
|
67
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
68
|
+
header_params,
|
69
|
+
query_params,
|
70
|
+
form_params,
|
71
|
+
post_body,
|
72
|
+
auth_names)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,91 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="ai_name_genderize_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
8
|
+
# copy of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
12
|
+
# Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in
|
15
|
+
# all 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
|
22
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
23
|
+
# DEALINGS IN THE SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# ----------------------------------------------------------------------------
|
26
|
+
|
27
|
+
|
28
|
+
require_relative './email_request'
|
29
|
+
require_relative './http_request'
|
30
|
+
|
31
|
+
module AsposeEmailCloud
|
32
|
+
# Request model for ai_name_genderize operation.
|
33
|
+
class AiNameGenderizeRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Detect person's gender from name string
|
36
|
+
# @param [String] name A name to parse (required)
|
37
|
+
# @param [String] language An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)
|
38
|
+
# @param [String] location A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France
|
39
|
+
# @param [String] encoding A character encoding name
|
40
|
+
# @param [String] script A writing system code; starts with the ISO-15924 script name
|
41
|
+
# @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
|
42
|
+
def initialize(name, language = nil, location = nil, encoding = nil, script = nil, style = nil)
|
43
|
+
@name = name if name
|
44
|
+
@language = language if language
|
45
|
+
@location = location if location
|
46
|
+
@encoding = encoding if encoding
|
47
|
+
@script = script if script
|
48
|
+
@style = style if style
|
49
|
+
end
|
50
|
+
|
51
|
+
def to_http_info(api_client)
|
52
|
+
# verify the required parameter 'name' is set
|
53
|
+
if api_client.config.client_side_validation && @name.nil?
|
54
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.ai_name_genderize"
|
55
|
+
end
|
56
|
+
|
57
|
+
# resource path
|
58
|
+
local_var_path = '/email/AiName/genderize'
|
59
|
+
|
60
|
+
# query parameters
|
61
|
+
query_params = {}
|
62
|
+
query_params[:name] = @name
|
63
|
+
query_params[:language] = @language unless @language.nil?
|
64
|
+
query_params[:location] = @location unless @location.nil?
|
65
|
+
query_params[:encoding] = @encoding unless @encoding.nil?
|
66
|
+
query_params[:script] = @script unless @script.nil?
|
67
|
+
query_params[:style] = @style unless @style.nil?
|
68
|
+
|
69
|
+
# form parameters
|
70
|
+
form_params = {}
|
71
|
+
|
72
|
+
# http body (model)
|
73
|
+
post_body = nil
|
74
|
+
auth_names = ['JWT']
|
75
|
+
|
76
|
+
# header parameters
|
77
|
+
header_params = {}
|
78
|
+
# HTTP header 'Accept' (if needed)
|
79
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
80
|
+
# HTTP header 'Content-Type'
|
81
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
82
|
+
|
83
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
84
|
+
header_params,
|
85
|
+
query_params,
|
86
|
+
form_params,
|
87
|
+
post_body,
|
88
|
+
auth_names)
|
89
|
+
end
|
90
|
+
end
|
91
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="ai_name_match_parsed_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
8
|
+
# copy of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
12
|
+
# Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in
|
15
|
+
# all 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
|
22
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
23
|
+
# DEALINGS IN THE SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# ----------------------------------------------------------------------------
|
26
|
+
|
27
|
+
|
28
|
+
require_relative './email_request'
|
29
|
+
require_relative './http_request'
|
30
|
+
|
31
|
+
module AsposeEmailCloud
|
32
|
+
# Request model for ai_name_match_parsed operation.
|
33
|
+
class AiNameMatchParsedRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Compare people's parsed names and attributes. Uses options for comparing instructions
|
36
|
+
# @param [AiNameParsedMatchRq] rq Parsed names to match
|
37
|
+
def initialize(rq)
|
38
|
+
@rq = rq if rq
|
39
|
+
end
|
40
|
+
|
41
|
+
def to_http_info(api_client)
|
42
|
+
# verify the required parameter 'rq' is set
|
43
|
+
if api_client.config.client_side_validation && @rq.nil?
|
44
|
+
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_name_match_parsed"
|
45
|
+
end
|
46
|
+
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/email/AiName/match-parsed'
|
49
|
+
|
50
|
+
# query parameters
|
51
|
+
query_params = {}
|
52
|
+
|
53
|
+
# form parameters
|
54
|
+
form_params = {}
|
55
|
+
|
56
|
+
# http body (model)
|
57
|
+
post_body = api_client.object_to_http_body(@rq)
|
58
|
+
auth_names = ['JWT']
|
59
|
+
|
60
|
+
# header parameters
|
61
|
+
header_params = {}
|
62
|
+
# HTTP header 'Accept' (if needed)
|
63
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
64
|
+
# HTTP header 'Content-Type'
|
65
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
66
|
+
|
67
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
68
|
+
header_params,
|
69
|
+
query_params,
|
70
|
+
form_params,
|
71
|
+
post_body,
|
72
|
+
auth_names)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|