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
@@ -32,14 +32,14 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for add_email_attachment operation.
|
33
33
|
class AddEmailAttachmentRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Adds an attachment to Email document
|
35
|
+
# Adds an attachment to Email document
|
36
36
|
# @param [String] attachment_name Attachment file name
|
37
37
|
# @param [String] file_name Email document file name
|
38
38
|
# @param [AddAttachmentRequest] request Storage info to specify location of email document and attachment files
|
39
39
|
def initialize(attachment_name, file_name, request)
|
40
|
-
@attachment_name = attachment_name
|
41
|
-
@file_name = file_name
|
42
|
-
@request = request
|
40
|
+
@attachment_name = attachment_name if attachment_name
|
41
|
+
@file_name = file_name if file_name
|
42
|
+
@request = request if request
|
43
43
|
end
|
44
44
|
|
45
45
|
def to_http_info(api_client)
|
@@ -32,14 +32,14 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for add_mapi_attachment operation.
|
33
33
|
class AddMapiAttachmentRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Add attachment to document
|
35
|
+
# Add attachment to document
|
36
36
|
# @param [String] name Document file name
|
37
37
|
# @param [String] attachment Attachment file name
|
38
38
|
# @param [AddAttachmentRequest] request Add attachment request
|
39
39
|
def initialize(name, attachment, request)
|
40
|
-
@name = name
|
41
|
-
@attachment = attachment
|
42
|
-
@request = request
|
40
|
+
@name = name if name
|
41
|
+
@attachment = attachment if attachment
|
42
|
+
@request = request if request
|
43
43
|
end
|
44
44
|
|
45
45
|
def to_http_info(api_client)
|
@@ -0,0 +1,75 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="ai_bcr_ocr_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_bcr_ocr operation.
|
33
|
+
class AiBcrOcrRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Ocr images
|
36
|
+
# @param [AiBcrBase64Rq] rq Request with base64 images 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_bcr_ocr"
|
45
|
+
end
|
46
|
+
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/email/AiBcr/ocr'
|
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,75 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="ai_bcr_ocr_storage_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_bcr_ocr_storage operation.
|
33
|
+
class AiBcrOcrStorageRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Ocr images from storage
|
36
|
+
# @param [AiBcrStorageImageRq] rq Request with images located on storage
|
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_bcr_ocr_storage"
|
45
|
+
end
|
46
|
+
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/email/AiBcr/ocr-storage'
|
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,75 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="ai_bcr_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_bcr_parse operation.
|
33
|
+
class AiBcrParseRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Parse images to vCard properties
|
36
|
+
# @param [AiBcrBase64Rq] rq Request with base64 images 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_bcr_parse"
|
45
|
+
end
|
46
|
+
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/email/AiBcr/parse'
|
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,75 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="ai_bcr_parse_storage_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_bcr_parse_storage operation.
|
33
|
+
class AiBcrParseStorageRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Parse images from storage to vCard files
|
36
|
+
# @param [AiBcrParseStorageRq] rq Request with images located on storage
|
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_bcr_parse_storage"
|
45
|
+
end
|
46
|
+
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/email/AiBcr/parse-storage'
|
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_complete_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_complete operation.
|
33
|
+
class AiNameCompleteRequestData < EmailRequest
|
34
|
+
|
35
|
+
# The call proposes k most probable names for given starting characters
|
36
|
+
# @param [String] name A name to complete (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_complete"
|
55
|
+
end
|
56
|
+
|
57
|
+
# resource path
|
58
|
+
local_var_path = '/email/AiName/complete'
|
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_expand_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_expand_parsed operation.
|
33
|
+
class AiNameExpandParsedRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Expands a person's parsed name into a list of possible alternatives using options for expanding 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_expand_parsed"
|
45
|
+
end
|
46
|
+
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/email/AiName/expand-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
|