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,99 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="ai_name_match_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 operation.
|
33
|
+
class AiNameMatchRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Compare people's names. Uses options for comparing instructions
|
36
|
+
# @param [String] name A name to match (required)
|
37
|
+
# @param [String] other_name Another name to match (required)
|
38
|
+
# @param [String] language An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)
|
39
|
+
# @param [String] location A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France
|
40
|
+
# @param [String] encoding A character encoding name
|
41
|
+
# @param [String] script A writing system code; starts with the ISO-15924 script name
|
42
|
+
# @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
|
43
|
+
def initialize(name, other_name, language = nil, location = nil, encoding = nil, script = nil, style = nil)
|
44
|
+
@name = name if name
|
45
|
+
@other_name = other_name if other_name
|
46
|
+
@language = language if language
|
47
|
+
@location = location if location
|
48
|
+
@encoding = encoding if encoding
|
49
|
+
@script = script if script
|
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_match"
|
57
|
+
end
|
58
|
+
|
59
|
+
# verify the required parameter 'other_name' is set
|
60
|
+
if api_client.config.client_side_validation && @other_name.nil?
|
61
|
+
raise ArgumentError, "Missing the required parameter 'other_name' when calling EmailApi.ai_name_match"
|
62
|
+
end
|
63
|
+
|
64
|
+
# resource path
|
65
|
+
local_var_path = '/email/AiName/match'
|
66
|
+
|
67
|
+
# query parameters
|
68
|
+
query_params = {}
|
69
|
+
query_params[:name] = @name
|
70
|
+
query_params[:otherName] = @other_name
|
71
|
+
query_params[:language] = @language unless @language.nil?
|
72
|
+
query_params[:location] = @location unless @location.nil?
|
73
|
+
query_params[:encoding] = @encoding unless @encoding.nil?
|
74
|
+
query_params[:script] = @script unless @script.nil?
|
75
|
+
query_params[:style] = @style unless @style.nil?
|
76
|
+
|
77
|
+
# form parameters
|
78
|
+
form_params = {}
|
79
|
+
|
80
|
+
# http body (model)
|
81
|
+
post_body = nil
|
82
|
+
auth_names = ['JWT']
|
83
|
+
|
84
|
+
# header parameters
|
85
|
+
header_params = {}
|
86
|
+
# HTTP header 'Accept' (if needed)
|
87
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
88
|
+
# HTTP header 'Content-Type'
|
89
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
90
|
+
|
91
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
92
|
+
header_params,
|
93
|
+
query_params,
|
94
|
+
form_params,
|
95
|
+
post_body,
|
96
|
+
auth_names)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
@@ -0,0 +1,91 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="ai_name_parse_email_address_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_parse_email_address operation.
|
33
|
+
class AiNameParseEmailAddressRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Parse person's name out of an email address
|
36
|
+
# @param [String] email_address Email address 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(email_address, language = nil, location = nil, encoding = nil, script = nil, style = nil)
|
43
|
+
@email_address = email_address if email_address
|
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 'email_address' is set
|
53
|
+
if api_client.config.client_side_validation && @email_address.nil?
|
54
|
+
raise ArgumentError, "Missing the required parameter 'email_address' when calling EmailApi.ai_name_parse_email_address"
|
55
|
+
end
|
56
|
+
|
57
|
+
# resource path
|
58
|
+
local_var_path = '/email/AiName/parse-email-address'
|
59
|
+
|
60
|
+
# query parameters
|
61
|
+
query_params = {}
|
62
|
+
query_params[:emailAddress] = @email_address
|
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,91 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="ai_name_parse_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_parse operation.
|
33
|
+
class AiNameParseRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Parse name to components
|
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_parse"
|
55
|
+
end
|
56
|
+
|
57
|
+
# resource path
|
58
|
+
local_var_path = '/email/AiName/parse'
|
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
|
@@ -32,10 +32,10 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for append_email_message operation.
|
33
33
|
class AppendEmailMessageRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Adds an email from *.eml file to specified folder in email account
|
35
|
+
# Adds an email from *.eml file to specified folder in email account
|
36
36
|
# @param [AppendEmailBaseRequest] request Append email request
|
37
37
|
def initialize(request)
|
38
|
-
@request = request
|
38
|
+
@request = request if request
|
39
39
|
end
|
40
40
|
|
41
41
|
def to_http_info(api_client)
|
@@ -32,10 +32,10 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for append_mime_message operation.
|
33
33
|
class AppendMimeMessageRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Adds an email from MIME to specified folder in email account
|
35
|
+
# Adds an email from MIME to specified folder in email account
|
36
36
|
# @param [AppendEmailMimeBaseRequest] request Append email request
|
37
37
|
def initialize(request)
|
38
|
-
@request = request
|
38
|
+
@request = request if request
|
39
39
|
end
|
40
40
|
|
41
41
|
def to_http_info(api_client)
|
@@ -39,11 +39,11 @@ module AsposeEmailCloud
|
|
39
39
|
# @param [String] dest_storage_name Destination storage name
|
40
40
|
# @param [String] version_id File version ID to copy
|
41
41
|
def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name = nil, version_id = nil)
|
42
|
-
@src_path = src_path
|
43
|
-
@dest_path = dest_path
|
44
|
-
@src_storage_name = src_storage_name
|
45
|
-
@dest_storage_name = dest_storage_name
|
46
|
-
@version_id = version_id
|
42
|
+
@src_path = src_path if src_path
|
43
|
+
@dest_path = dest_path if dest_path
|
44
|
+
@src_storage_name = src_storage_name if src_storage_name
|
45
|
+
@dest_storage_name = dest_storage_name if dest_storage_name
|
46
|
+
@version_id = version_id if version_id
|
47
47
|
end
|
48
48
|
|
49
49
|
def to_http_info(api_client)
|
@@ -38,10 +38,10 @@ module AsposeEmailCloud
|
|
38
38
|
# @param [String] src_storage_name Source storage name
|
39
39
|
# @param [String] dest_storage_name Destination storage name
|
40
40
|
def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name = nil)
|
41
|
-
@src_path = src_path
|
42
|
-
@dest_path = dest_path
|
43
|
-
@src_storage_name = src_storage_name
|
44
|
-
@dest_storage_name = dest_storage_name
|
41
|
+
@src_path = src_path if src_path
|
42
|
+
@dest_path = dest_path if dest_path
|
43
|
+
@src_storage_name = src_storage_name if src_storage_name
|
44
|
+
@dest_storage_name = dest_storage_name if dest_storage_name
|
45
45
|
end
|
46
46
|
|
47
47
|
def to_http_info(api_client)
|
@@ -32,12 +32,12 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for create_calendar operation.
|
33
33
|
class CreateCalendarRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Create calendar file
|
35
|
+
# Create calendar file
|
36
36
|
# @param [String] name Calendar file name in storage
|
37
37
|
# @param [HierarchicalObjectRequest] request
|
38
38
|
def initialize(name, request)
|
39
|
-
@name = name
|
40
|
-
@request = request
|
39
|
+
@name = name if name
|
40
|
+
@request = request if request
|
41
41
|
end
|
42
42
|
|
43
43
|
def to_http_info(api_client)
|
@@ -32,14 +32,14 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for create_contact operation.
|
33
33
|
class CreateContactRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Create contact document
|
36
|
-
# @param [String] format Contact document format
|
35
|
+
# Create contact document
|
36
|
+
# @param [String] format Contact document format Enum, available values: VCard, WebDav, Msg
|
37
37
|
# @param [String] name Contact document file name
|
38
38
|
# @param [HierarchicalObjectRequest] request Create contact request
|
39
39
|
def initialize(format, name, request)
|
40
|
-
@format = format
|
41
|
-
@name = name
|
42
|
-
@request = request
|
40
|
+
@format = format if format
|
41
|
+
@name = name if name
|
42
|
+
@request = request if request
|
43
43
|
end
|
44
44
|
|
45
45
|
def to_http_info(api_client)
|
@@ -48,11 +48,6 @@ module AsposeEmailCloud
|
|
48
48
|
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.create_contact"
|
49
49
|
end
|
50
50
|
|
51
|
-
# verify enum value
|
52
|
-
if api_client.config.client_side_validation && !['VCard', 'WebDav', 'Msg'].include?(@format)
|
53
|
-
raise ArgumentError, "invalid value for 'format', must be one of VCard, WebDav, Msg"
|
54
|
-
end
|
55
|
-
|
56
51
|
# verify the required parameter 'name' is set
|
57
52
|
if api_client.config.client_side_validation && @name.nil?
|
58
53
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.create_contact"
|
@@ -32,10 +32,10 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for create_email_folder operation.
|
33
33
|
class CreateEmailFolderRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Create new folder in email account
|
35
|
+
# Create new folder in email account
|
36
36
|
# @param [CreateFolderBaseRequest] request Create folder request
|
37
37
|
def initialize(request)
|
38
|
-
@request = request
|
38
|
+
@request = request if request
|
39
39
|
end
|
40
40
|
|
41
41
|
def to_http_info(api_client)
|
@@ -32,12 +32,12 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for create_email operation.
|
33
33
|
class CreateEmailRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Create an email document
|
35
|
+
# Create an email document
|
36
36
|
# @param [String] file_name Email document file name in storage
|
37
37
|
# @param [CreateEmailRequest] request An email document and optional Storage info to specify where the file should be located
|
38
38
|
def initialize(file_name, request)
|
39
|
-
@file_name = file_name
|
40
|
-
@request = request
|
39
|
+
@file_name = file_name if file_name
|
40
|
+
@request = request if request
|
41
41
|
end
|
42
42
|
|
43
43
|
def to_http_info(api_client)
|
@@ -36,8 +36,8 @@ module AsposeEmailCloud
|
|
36
36
|
# @param [String] path Folder path to create e.g. 'folder_1/folder_2/'
|
37
37
|
# @param [String] storage_name Storage name
|
38
38
|
def initialize(path, storage_name = nil)
|
39
|
-
@path = path
|
40
|
-
@storage_name = storage_name
|
39
|
+
@path = path if path
|
40
|
+
@storage_name = storage_name if storage_name
|
41
41
|
end
|
42
42
|
|
43
43
|
def to_http_info(api_client)
|
@@ -32,12 +32,12 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for create_mapi operation.
|
33
33
|
class CreateMapiRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Create new document
|
35
|
+
# Create new document
|
36
36
|
# @param [String] name Document file name
|
37
37
|
# @param [HierarchicalObjectRequest] request Create document request
|
38
38
|
def initialize(name, request)
|
39
|
-
@name = name
|
40
|
-
@request = request
|
39
|
+
@name = name if name
|
40
|
+
@request = request if request
|
41
41
|
end
|
42
42
|
|
43
43
|
def to_http_info(api_client)
|