aspose_email_cloud 20.1.0 → 20.2.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 +10 -0
- data/lib/aspose-email-cloud/api/email_api.rb +24 -0
- data/lib/aspose-email-cloud/models/discover_email_config_oauth.rb +388 -0
- data/lib/aspose-email-cloud/models/discover_email_config_password.rb +301 -0
- data/lib/aspose-email-cloud/models/discover_email_config_rq.rb +265 -0
- data/lib/aspose-email-cloud/models/email_account_config.rb +320 -0
- data/lib/aspose-email-cloud/models/email_account_config_list.rb +212 -0
- data/lib/aspose-email-cloud/models/list_response_of_email_account_config.rb +211 -0
- data/lib/aspose-email-cloud/models/name_value_pair.rb +222 -0
- data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_model_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_complete_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_format_request_data.rb +37 -15
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_match_request_data.rb +38 -16
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/append_email_model_message_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/convert_email_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/copy_file_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/copy_folder_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +14 -7
- data/lib/aspose-email-cloud/models/requests/create_folder_request_data.rb +12 -5
- data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/delete_file_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/delete_folder_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/discover_email_config_oauth_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/discover_email_config_password_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/discover_email_config_request_data.rb +86 -0
- data/lib/aspose-email-cloud/models/requests/download_file_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/fetch_email_message_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/fetch_email_model_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +24 -11
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_as_alternate_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_list_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/get_calendar_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/get_contact_model_list_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/get_contact_model_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_disc_usage_request_data.rb +6 -2
- data/lib/aspose-email-cloud/models/requests/get_email_as_file_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/get_email_attachment_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/get_email_model_list_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/get_email_model_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_email_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/get_file_versions_request_data.rb +12 -5
- data/lib/aspose-email-cloud/models/requests/get_files_list_request_data.rb +12 -5
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +21 -8
- data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/list_email_folders_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +39 -17
- data/lib/aspose-email-cloud/models/requests/list_email_models_request_data.rb +39 -17
- data/lib/aspose-email-cloud/models/requests/move_file_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/move_folder_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/object_exists_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/save_contact_model_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/save_email_model_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/send_email_model_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/storage_exists_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/upload_file_request_data.rb +18 -8
- data/lib/aspose-email-cloud/version.rb +1 -1
- metadata +12 -2
@@ -32,41 +32,54 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for add_contact_attachment operation.
|
33
33
|
class AddContactAttachmentRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Contact document format Enum, available values: VCard, WebDav, Msg
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :format
|
38
|
+
# Contact document file name
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :name
|
41
|
+
# Attachment name
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :attachment
|
44
|
+
# Add attachment request
|
45
|
+
# @return [AddAttachmentRequest]
|
46
|
+
attr_accessor :request
|
47
|
+
|
35
48
|
# Add attachment to contact document
|
36
49
|
# @param [String] format Contact document format Enum, available values: VCard, WebDav, Msg
|
37
50
|
# @param [String] name Contact document file name
|
38
51
|
# @param [String] attachment Attachment name
|
39
52
|
# @param [AddAttachmentRequest] request Add attachment request
|
40
53
|
def initialize(format, name, attachment, request)
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
54
|
+
self.format = format if format
|
55
|
+
self.name = name if name
|
56
|
+
self.attachment = attachment if attachment
|
57
|
+
self.request = request if request
|
45
58
|
end
|
46
59
|
|
47
60
|
def to_http_info(api_client)
|
48
61
|
# verify the required parameter 'format' is set
|
49
|
-
if api_client.config.client_side_validation &&
|
62
|
+
if api_client.config.client_side_validation && self.format.nil?
|
50
63
|
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.add_contact_attachment"
|
51
64
|
end
|
52
65
|
|
53
66
|
# verify the required parameter 'name' is set
|
54
|
-
if api_client.config.client_side_validation &&
|
67
|
+
if api_client.config.client_side_validation && self.name.nil?
|
55
68
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.add_contact_attachment"
|
56
69
|
end
|
57
70
|
|
58
71
|
# verify the required parameter 'attachment' is set
|
59
|
-
if api_client.config.client_side_validation &&
|
72
|
+
if api_client.config.client_side_validation && self.attachment.nil?
|
60
73
|
raise ArgumentError, "Missing the required parameter 'attachment' when calling EmailApi.add_contact_attachment"
|
61
74
|
end
|
62
75
|
|
63
76
|
# verify the required parameter 'request' is set
|
64
|
-
if api_client.config.client_side_validation &&
|
77
|
+
if api_client.config.client_side_validation && self.request.nil?
|
65
78
|
raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.add_contact_attachment"
|
66
79
|
end
|
67
80
|
|
68
81
|
# resource path
|
69
|
-
local_var_path = '/email/Contact/{format}/{name}/attachments/{attachment}'.sub('{' + 'format' + '}',
|
82
|
+
local_var_path = '/email/Contact/{format}/{name}/attachments/{attachment}'.sub('{' + 'format' + '}', self.format.to_s).sub('{' + 'name' + '}', self.name.to_s).sub('{' + 'attachment' + '}', self.attachment.to_s)
|
70
83
|
|
71
84
|
# query parameters
|
72
85
|
query_params = {}
|
@@ -75,7 +88,7 @@ module AsposeEmailCloud
|
|
75
88
|
form_params = {}
|
76
89
|
|
77
90
|
# http body (model)
|
78
|
-
post_body = api_client.object_to_http_body(
|
91
|
+
post_body = api_client.object_to_http_body(self.request)
|
79
92
|
auth_names = ['JWT']
|
80
93
|
|
81
94
|
# header parameters
|
@@ -32,34 +32,44 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for add_email_attachment operation.
|
33
33
|
class AddEmailAttachmentRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Attachment file name
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :attachment_name
|
38
|
+
# Email document file name
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :file_name
|
41
|
+
# Storage info to specify location of email document and attachment files
|
42
|
+
# @return [AddAttachmentRequest]
|
43
|
+
attr_accessor :request
|
44
|
+
|
35
45
|
# Adds an attachment to Email document
|
36
46
|
# @param [String] attachment_name Attachment file name
|
37
47
|
# @param [String] file_name Email document file name
|
38
48
|
# @param [AddAttachmentRequest] request Storage info to specify location of email document and attachment files
|
39
49
|
def initialize(attachment_name, file_name, request)
|
40
|
-
|
41
|
-
|
42
|
-
|
50
|
+
self.attachment_name = attachment_name if attachment_name
|
51
|
+
self.file_name = file_name if file_name
|
52
|
+
self.request = request if request
|
43
53
|
end
|
44
54
|
|
45
55
|
def to_http_info(api_client)
|
46
56
|
# verify the required parameter 'attachment_name' is set
|
47
|
-
if api_client.config.client_side_validation &&
|
57
|
+
if api_client.config.client_side_validation && self.attachment_name.nil?
|
48
58
|
raise ArgumentError, "Missing the required parameter 'attachment_name' when calling EmailApi.add_email_attachment"
|
49
59
|
end
|
50
60
|
|
51
61
|
# verify the required parameter 'file_name' is set
|
52
|
-
if api_client.config.client_side_validation &&
|
62
|
+
if api_client.config.client_side_validation && self.file_name.nil?
|
53
63
|
raise ArgumentError, "Missing the required parameter 'file_name' when calling EmailApi.add_email_attachment"
|
54
64
|
end
|
55
65
|
|
56
66
|
# verify the required parameter 'request' is set
|
57
|
-
if api_client.config.client_side_validation &&
|
67
|
+
if api_client.config.client_side_validation && self.request.nil?
|
58
68
|
raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.add_email_attachment"
|
59
69
|
end
|
60
70
|
|
61
71
|
# resource path
|
62
|
-
local_var_path = '/email/{fileName}/attachments/{attachmentName}'.sub('{' + 'attachmentName' + '}',
|
72
|
+
local_var_path = '/email/{fileName}/attachments/{attachmentName}'.sub('{' + 'attachmentName' + '}', self.attachment_name.to_s).sub('{' + 'fileName' + '}', self.file_name.to_s)
|
63
73
|
|
64
74
|
# query parameters
|
65
75
|
query_params = {}
|
@@ -68,7 +78,7 @@ module AsposeEmailCloud
|
|
68
78
|
form_params = {}
|
69
79
|
|
70
80
|
# http body (model)
|
71
|
-
post_body = api_client.object_to_http_body(
|
81
|
+
post_body = api_client.object_to_http_body(self.request)
|
72
82
|
auth_names = ['JWT']
|
73
83
|
|
74
84
|
# header parameters
|
@@ -32,34 +32,44 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for add_mapi_attachment operation.
|
33
33
|
class AddMapiAttachmentRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Document file name
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :name
|
38
|
+
# Attachment file name
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :attachment
|
41
|
+
# Add attachment request
|
42
|
+
# @return [AddAttachmentRequest]
|
43
|
+
attr_accessor :request
|
44
|
+
|
35
45
|
# Add attachment to document
|
36
46
|
# @param [String] name Document file name
|
37
47
|
# @param [String] attachment Attachment file name
|
38
48
|
# @param [AddAttachmentRequest] request Add attachment request
|
39
49
|
def initialize(name, attachment, request)
|
40
|
-
|
41
|
-
|
42
|
-
|
50
|
+
self.name = name if name
|
51
|
+
self.attachment = attachment if attachment
|
52
|
+
self.request = request if request
|
43
53
|
end
|
44
54
|
|
45
55
|
def to_http_info(api_client)
|
46
56
|
# verify the required parameter 'name' is set
|
47
|
-
if api_client.config.client_side_validation &&
|
57
|
+
if api_client.config.client_side_validation && self.name.nil?
|
48
58
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.add_mapi_attachment"
|
49
59
|
end
|
50
60
|
|
51
61
|
# verify the required parameter 'attachment' is set
|
52
|
-
if api_client.config.client_side_validation &&
|
62
|
+
if api_client.config.client_side_validation && self.attachment.nil?
|
53
63
|
raise ArgumentError, "Missing the required parameter 'attachment' when calling EmailApi.add_mapi_attachment"
|
54
64
|
end
|
55
65
|
|
56
66
|
# verify the required parameter 'request' is set
|
57
|
-
if api_client.config.client_side_validation &&
|
67
|
+
if api_client.config.client_side_validation && self.request.nil?
|
58
68
|
raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.add_mapi_attachment"
|
59
69
|
end
|
60
70
|
|
61
71
|
# resource path
|
62
|
-
local_var_path = '/email/Mapi/{name}/attachments/{attachment}'.sub('{' + 'name' + '}',
|
72
|
+
local_var_path = '/email/Mapi/{name}/attachments/{attachment}'.sub('{' + 'name' + '}', self.name.to_s).sub('{' + 'attachment' + '}', self.attachment.to_s)
|
63
73
|
|
64
74
|
# query parameters
|
65
75
|
query_params = {}
|
@@ -68,7 +78,7 @@ module AsposeEmailCloud
|
|
68
78
|
form_params = {}
|
69
79
|
|
70
80
|
# http body (model)
|
71
|
-
post_body = api_client.object_to_http_body(
|
81
|
+
post_body = api_client.object_to_http_body(self.request)
|
72
82
|
auth_names = ['JWT']
|
73
83
|
|
74
84
|
# header parameters
|
@@ -32,15 +32,19 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for ai_bcr_ocr operation.
|
33
33
|
class AiBcrOcrRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Request with base64 images data
|
36
|
+
# @return [AiBcrBase64Rq]
|
37
|
+
attr_accessor :rq
|
38
|
+
|
35
39
|
# Ocr images
|
36
40
|
# @param [AiBcrBase64Rq] rq Request with base64 images data
|
37
41
|
def initialize(rq)
|
38
|
-
|
42
|
+
self.rq = rq if rq
|
39
43
|
end
|
40
44
|
|
41
45
|
def to_http_info(api_client)
|
42
46
|
# verify the required parameter 'rq' is set
|
43
|
-
if api_client.config.client_side_validation &&
|
47
|
+
if api_client.config.client_side_validation && self.rq.nil?
|
44
48
|
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_bcr_ocr"
|
45
49
|
end
|
46
50
|
|
@@ -54,7 +58,7 @@ module AsposeEmailCloud
|
|
54
58
|
form_params = {}
|
55
59
|
|
56
60
|
# http body (model)
|
57
|
-
post_body = api_client.object_to_http_body(
|
61
|
+
post_body = api_client.object_to_http_body(self.rq)
|
58
62
|
auth_names = ['JWT']
|
59
63
|
|
60
64
|
# header parameters
|
@@ -32,15 +32,19 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for ai_bcr_ocr_storage operation.
|
33
33
|
class AiBcrOcrStorageRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Request with images located on storage
|
36
|
+
# @return [AiBcrStorageImageRq]
|
37
|
+
attr_accessor :rq
|
38
|
+
|
35
39
|
# Ocr images from storage
|
36
40
|
# @param [AiBcrStorageImageRq] rq Request with images located on storage
|
37
41
|
def initialize(rq)
|
38
|
-
|
42
|
+
self.rq = rq if rq
|
39
43
|
end
|
40
44
|
|
41
45
|
def to_http_info(api_client)
|
42
46
|
# verify the required parameter 'rq' is set
|
43
|
-
if api_client.config.client_side_validation &&
|
47
|
+
if api_client.config.client_side_validation && self.rq.nil?
|
44
48
|
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_bcr_ocr_storage"
|
45
49
|
end
|
46
50
|
|
@@ -54,7 +58,7 @@ module AsposeEmailCloud
|
|
54
58
|
form_params = {}
|
55
59
|
|
56
60
|
# http body (model)
|
57
|
-
post_body = api_client.object_to_http_body(
|
61
|
+
post_body = api_client.object_to_http_body(self.rq)
|
58
62
|
auth_names = ['JWT']
|
59
63
|
|
60
64
|
# header parameters
|
@@ -32,15 +32,19 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for ai_bcr_parse_model operation.
|
33
33
|
class AiBcrParseModelRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Request with base64 images data
|
36
|
+
# @return [AiBcrBase64Rq]
|
37
|
+
attr_accessor :rq
|
38
|
+
|
35
39
|
# Parse images to vCard document models
|
36
40
|
# @param [AiBcrBase64Rq] rq Request with base64 images data
|
37
41
|
def initialize(rq)
|
38
|
-
|
42
|
+
self.rq = rq if rq
|
39
43
|
end
|
40
44
|
|
41
45
|
def to_http_info(api_client)
|
42
46
|
# verify the required parameter 'rq' is set
|
43
|
-
if api_client.config.client_side_validation &&
|
47
|
+
if api_client.config.client_side_validation && self.rq.nil?
|
44
48
|
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_bcr_parse_model"
|
45
49
|
end
|
46
50
|
|
@@ -54,7 +58,7 @@ module AsposeEmailCloud
|
|
54
58
|
form_params = {}
|
55
59
|
|
56
60
|
# http body (model)
|
57
|
-
post_body = api_client.object_to_http_body(
|
61
|
+
post_body = api_client.object_to_http_body(self.rq)
|
58
62
|
auth_names = ['JWT']
|
59
63
|
|
60
64
|
# header parameters
|
@@ -32,15 +32,19 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for ai_bcr_parse_ocr_data_model operation.
|
33
33
|
class AiBcrParseOcrDataModelRequestData < EmailRequest
|
34
34
|
|
35
|
+
#
|
36
|
+
# @return [AiBcrParseOcrDataRq]
|
37
|
+
attr_accessor :rq
|
38
|
+
|
35
39
|
# Parse OCR data to vCard document models
|
36
40
|
# @param [AiBcrParseOcrDataRq] rq
|
37
41
|
def initialize(rq)
|
38
|
-
|
42
|
+
self.rq = rq if rq
|
39
43
|
end
|
40
44
|
|
41
45
|
def to_http_info(api_client)
|
42
46
|
# verify the required parameter 'rq' is set
|
43
|
-
if api_client.config.client_side_validation &&
|
47
|
+
if api_client.config.client_side_validation && self.rq.nil?
|
44
48
|
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_bcr_parse_ocr_data_model"
|
45
49
|
end
|
46
50
|
|
@@ -54,7 +58,7 @@ module AsposeEmailCloud
|
|
54
58
|
form_params = {}
|
55
59
|
|
56
60
|
# http body (model)
|
57
|
-
post_body = api_client.object_to_http_body(
|
61
|
+
post_body = api_client.object_to_http_body(self.rq)
|
58
62
|
auth_names = ['JWT']
|
59
63
|
|
60
64
|
# header parameters
|
@@ -32,15 +32,19 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for ai_bcr_parse operation.
|
33
33
|
class AiBcrParseRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Request with base64 images data
|
36
|
+
# @return [AiBcrBase64Rq]
|
37
|
+
attr_accessor :rq
|
38
|
+
|
35
39
|
# Parse images to vCard properties
|
36
40
|
# @param [AiBcrBase64Rq] rq Request with base64 images data
|
37
41
|
def initialize(rq)
|
38
|
-
|
42
|
+
self.rq = rq if rq
|
39
43
|
end
|
40
44
|
|
41
45
|
def to_http_info(api_client)
|
42
46
|
# verify the required parameter 'rq' is set
|
43
|
-
if api_client.config.client_side_validation &&
|
47
|
+
if api_client.config.client_side_validation && self.rq.nil?
|
44
48
|
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_bcr_parse"
|
45
49
|
end
|
46
50
|
|
@@ -54,7 +58,7 @@ module AsposeEmailCloud
|
|
54
58
|
form_params = {}
|
55
59
|
|
56
60
|
# http body (model)
|
57
|
-
post_body = api_client.object_to_http_body(
|
61
|
+
post_body = api_client.object_to_http_body(self.rq)
|
58
62
|
auth_names = ['JWT']
|
59
63
|
|
60
64
|
# header parameters
|
@@ -32,15 +32,19 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for ai_bcr_parse_storage operation.
|
33
33
|
class AiBcrParseStorageRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Request with images located on storage
|
36
|
+
# @return [AiBcrParseStorageRq]
|
37
|
+
attr_accessor :rq
|
38
|
+
|
35
39
|
# Parse images from storage to vCard files
|
36
40
|
# @param [AiBcrParseStorageRq] rq Request with images located on storage
|
37
41
|
def initialize(rq)
|
38
|
-
|
42
|
+
self.rq = rq if rq
|
39
43
|
end
|
40
44
|
|
41
45
|
def to_http_info(api_client)
|
42
46
|
# verify the required parameter 'rq' is set
|
43
|
-
if api_client.config.client_side_validation &&
|
47
|
+
if api_client.config.client_side_validation && self.rq.nil?
|
44
48
|
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_bcr_parse_storage"
|
45
49
|
end
|
46
50
|
|
@@ -54,7 +58,7 @@ module AsposeEmailCloud
|
|
54
58
|
form_params = {}
|
55
59
|
|
56
60
|
# http body (model)
|
57
|
-
post_body = api_client.object_to_http_body(
|
61
|
+
post_body = api_client.object_to_http_body(self.rq)
|
58
62
|
auth_names = ['JWT']
|
59
63
|
|
60
64
|
# header parameters
|
@@ -32,6 +32,25 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for ai_name_complete operation.
|
33
33
|
class AiNameCompleteRequestData < EmailRequest
|
34
34
|
|
35
|
+
# A name to complete (required)
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :name
|
38
|
+
# An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :language
|
41
|
+
# A geographic code such as an ISO-3166 two letter country code, for example \"FR\" for France
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :location
|
44
|
+
# A character encoding name
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :encoding
|
47
|
+
# A writing system code; starts with the ISO-15924 script name
|
48
|
+
# @return [String]
|
49
|
+
attr_accessor :script
|
50
|
+
# Name writing style. Enum, available values: Formal, Informal, Legal, Academic
|
51
|
+
# @return [String]
|
52
|
+
attr_accessor :style
|
53
|
+
|
35
54
|
# The call proposes k most probable names for given starting characters
|
36
55
|
# @param [String] name A name to complete (required)
|
37
56
|
# @param [String] language An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \"it\" or \"ita\" for Italian)
|
@@ -40,17 +59,17 @@ module AsposeEmailCloud
|
|
40
59
|
# @param [String] script A writing system code; starts with the ISO-15924 script name
|
41
60
|
# @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
|
42
61
|
def initialize(name, language = nil, location = nil, encoding = nil, script = nil, style = nil)
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
62
|
+
self.name = name if name
|
63
|
+
self.language = language if language
|
64
|
+
self.location = location if location
|
65
|
+
self.encoding = encoding if encoding
|
66
|
+
self.script = script if script
|
67
|
+
self.style = style if style
|
49
68
|
end
|
50
69
|
|
51
70
|
def to_http_info(api_client)
|
52
71
|
# verify the required parameter 'name' is set
|
53
|
-
if api_client.config.client_side_validation &&
|
72
|
+
if api_client.config.client_side_validation && self.name.nil?
|
54
73
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.ai_name_complete"
|
55
74
|
end
|
56
75
|
|
@@ -59,12 +78,12 @@ module AsposeEmailCloud
|
|
59
78
|
|
60
79
|
# query parameters
|
61
80
|
query_params = {}
|
62
|
-
query_params[:name] =
|
63
|
-
query_params[:language] =
|
64
|
-
query_params[:location] =
|
65
|
-
query_params[:encoding] =
|
66
|
-
query_params[:script] =
|
67
|
-
query_params[:style] =
|
81
|
+
query_params[:name] = self.name
|
82
|
+
query_params[:language] = self.language unless self.language.nil?
|
83
|
+
query_params[:location] = self.location unless self.location.nil?
|
84
|
+
query_params[:encoding] = self.encoding unless self.encoding.nil?
|
85
|
+
query_params[:script] = self.script unless self.script.nil?
|
86
|
+
query_params[:style] = self.style unless self.style.nil?
|
68
87
|
|
69
88
|
# form parameters
|
70
89
|
form_params = {}
|