aspose_email_cloud 20.5.0 → 20.7.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 +74 -0
- data/lib/aspose-email-cloud/api/email_api.rb +147 -0
- data/lib/aspose-email-cloud/models/ai_bcr_image_storage_file.rb +3 -3
- data/lib/aspose-email-cloud/models/ai_bcr_parse_storage_rq.rb +3 -3
- data/lib/aspose-email-cloud/models/append_email_base_request.rb +3 -3
- data/lib/aspose-email-cloud/models/append_email_model_rq.rb +3 -3
- data/lib/aspose-email-cloud/models/calendar_dto.rb +17 -4
- data/lib/aspose-email-cloud/models/contact_photo.rb +29 -5
- data/lib/aspose-email-cloud/models/daily_recurrence_pattern_dto.rb +296 -0
- data/lib/aspose-email-cloud/models/mapi_attachment_dto.rb +226 -0
- data/lib/aspose-email-cloud/models/mapi_binary_property_dto.rb +250 -0
- data/lib/aspose-email-cloud/models/mapi_boolean_property_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_attendees_dto.rb +266 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_daily_recurrence_pattern_dto.rb +464 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_dto.rb +728 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_event_recurrence_dto.rb +293 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_exception_info_dto.rb +431 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_recurrence_pattern_dto.rb +449 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_dto.rb +228 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_info_dto.rb +313 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_rule_dto.rb +362 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_weekly_recurrence_pattern_dto.rb +464 -0
- data/lib/aspose-email-cloud/models/mapi_calendar_yearly_and_monthly_recurrence_pattern_dto.rb +500 -0
- data/lib/aspose-email-cloud/models/mapi_contact_dto.rb +569 -0
- data/lib/aspose-email-cloud/models/mapi_contact_electronic_address_dto.rb +283 -0
- data/lib/aspose-email-cloud/models/mapi_contact_electronic_address_property_set_dto.rb +327 -0
- data/lib/aspose-email-cloud/models/mapi_contact_event_property_set_dto.rb +236 -0
- data/lib/aspose-email-cloud/models/mapi_contact_name_property_set_dto.rb +335 -0
- data/lib/aspose-email-cloud/models/mapi_contact_other_property_set_dto.rb +319 -0
- data/lib/aspose-email-cloud/models/mapi_contact_personal_info_property_set_dto.rb +454 -0
- data/lib/aspose-email-cloud/models/mapi_contact_photo_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_contact_physical_address_dto.rb +322 -0
- data/lib/aspose-email-cloud/models/mapi_contact_physical_address_property_set_dto.rb +239 -0
- data/lib/aspose-email-cloud/models/mapi_contact_professional_property_set_dto.rb +291 -0
- data/lib/aspose-email-cloud/models/mapi_contact_telephone_property_set_dto.rb +457 -0
- data/lib/aspose-email-cloud/models/mapi_date_time_property_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_electronic_address_dto.rb +265 -0
- data/lib/aspose-email-cloud/models/mapi_file_as_property_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_importance_property_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_int_property_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_known_property_descriptor.rb +237 -0
- data/lib/aspose-email-cloud/models/mapi_legacy_free_busy_property_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_message_dto.rb +801 -0
- data/lib/aspose-email-cloud/models/mapi_message_item_base_dto.rb +452 -0
- data/lib/aspose-email-cloud/models/mapi_multi_int_property_dto.rb +252 -0
- data/lib/aspose-email-cloud/models/mapi_multi_string_property_dto.rb +252 -0
- data/lib/aspose-email-cloud/models/mapi_physical_address_index_property_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_pid_lid_property_descriptor.rb +322 -0
- data/lib/aspose-email-cloud/models/mapi_pid_name_property_descriptor.rb +304 -0
- data/lib/aspose-email-cloud/models/mapi_pid_property_descriptor.rb +286 -0
- data/lib/aspose-email-cloud/models/mapi_pid_tag_property_descriptor.rb +322 -0
- data/lib/aspose-email-cloud/models/mapi_property_descriptor.rb +224 -0
- data/lib/aspose-email-cloud/models/mapi_property_dto.rb +237 -0
- data/lib/aspose-email-cloud/models/mapi_recipient_dto.rb +257 -0
- data/lib/aspose-email-cloud/models/mapi_response_type_property_dto.rb +255 -0
- data/lib/aspose-email-cloud/models/mapi_string_property_dto.rb +250 -0
- data/lib/aspose-email-cloud/models/monthly_recurrence_pattern_dto.rb +350 -0
- data/lib/aspose-email-cloud/models/recurrence_pattern_dto.rb +296 -0
- data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_mapi_model_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/convert_contact_model_to_mapi_model_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/convert_email_model_to_file_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/convert_email_model_to_mapi_model_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/convert_email_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/convert_mapi_calendar_model_to_calendar_model_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/convert_mapi_calendar_model_to_file_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/convert_mapi_contact_model_to_contact_model_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/convert_mapi_contact_model_to_file_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/convert_mapi_message_model_to_email_model_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/convert_mapi_message_model_to_file_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/get_calendar_file_as_mapi_model_request_data.rb +80 -0
- data/lib/aspose-email-cloud/models/requests/get_contact_file_as_mapi_model_request_data.rb +90 -0
- data/lib/aspose-email-cloud/models/requests/get_email_as_file_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/get_email_file_as_mapi_model_request_data.rb +90 -0
- data/lib/aspose-email-cloud/models/requests/get_email_model_list_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/get_email_model_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/get_mapi_calendar_model_request_data.rb +91 -0
- data/lib/aspose-email-cloud/models/requests/get_mapi_contact_model_request_data.rb +101 -0
- data/lib/aspose-email-cloud/models/requests/get_mapi_message_model_request_data.rb +101 -0
- data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/save_contact_model_request_data.rb +2 -2
- data/lib/aspose-email-cloud/models/requests/save_email_model_request_data.rb +4 -4
- data/lib/aspose-email-cloud/models/requests/save_mapi_calendar_model_request_data.rb +99 -0
- data/lib/aspose-email-cloud/models/requests/save_mapi_contact_model_request_data.rb +99 -0
- data/lib/aspose-email-cloud/models/requests/save_mapi_message_model_request_data.rb +99 -0
- data/lib/aspose-email-cloud/models/send_email_base_request.rb +3 -3
- data/lib/aspose-email-cloud/models/send_email_model_rq.rb +3 -3
- data/lib/aspose-email-cloud/models/storage_model_rq_of_mapi_calendar_dto.rb +225 -0
- data/lib/aspose-email-cloud/models/storage_model_rq_of_mapi_contact_dto.rb +225 -0
- data/lib/aspose-email-cloud/models/storage_model_rq_of_mapi_message_dto.rb +225 -0
- data/lib/aspose-email-cloud/models/task_regenerating_pattern_dto.rb +314 -0
- data/lib/aspose-email-cloud/models/weekly_recurrence_pattern_dto.rb +311 -0
- data/lib/aspose-email-cloud/models/yearly_recurrence_pattern_dto.rb +368 -0
- data/lib/aspose-email-cloud/version.rb +1 -1
- metadata +76 -2
@@ -0,0 +1,79 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="convert_mapi_message_model_to_email_model_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2020 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 convert_mapi_message_model_to_email_model operation.
|
33
|
+
class ConvertMapiMessageModelToEmailModelRequestData < EmailRequest
|
34
|
+
|
35
|
+
# MAPI message model to convert
|
36
|
+
# @return [MapiMessageDto]
|
37
|
+
attr_accessor :mapi_message
|
38
|
+
|
39
|
+
# Converts MAPI message model to EmailDto model
|
40
|
+
# @param [MapiMessageDto] mapi_message MAPI message model to convert
|
41
|
+
def initialize(mapi_message)
|
42
|
+
self.mapi_message = mapi_message if mapi_message
|
43
|
+
end
|
44
|
+
|
45
|
+
def to_http_info(api_client)
|
46
|
+
# verify the required parameter 'mapi_message' is set
|
47
|
+
if api_client.config.client_side_validation && self.mapi_message.nil?
|
48
|
+
raise ArgumentError, "Missing the required parameter 'mapi_message' when calling EmailApi.convert_mapi_message_model_to_email_model"
|
49
|
+
end
|
50
|
+
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/email/MapiMessage/model-as-email-model'
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = {}
|
56
|
+
|
57
|
+
# form parameters
|
58
|
+
form_params = {}
|
59
|
+
|
60
|
+
# http body (model)
|
61
|
+
post_body = api_client.object_to_http_body(self.mapi_message)
|
62
|
+
auth_names = ['JWT']
|
63
|
+
|
64
|
+
# header parameters
|
65
|
+
header_params = {}
|
66
|
+
# HTTP header 'Accept' (if needed)
|
67
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
68
|
+
# HTTP header 'Content-Type'
|
69
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
70
|
+
|
71
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
72
|
+
header_params,
|
73
|
+
query_params,
|
74
|
+
form_params,
|
75
|
+
post_body,
|
76
|
+
auth_names)
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
data/lib/aspose-email-cloud/models/requests/convert_mapi_message_model_to_file_request_data.rb
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="convert_mapi_message_model_to_file_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2020 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 convert_mapi_message_model_to_file operation.
|
33
|
+
class ConvertMapiMessageModelToFileRequestData < EmailRequest
|
34
|
+
|
35
|
+
# File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :destination_format
|
38
|
+
# MAPI message model to convert
|
39
|
+
# @return [MapiMessageDto]
|
40
|
+
attr_accessor :mapi_message
|
41
|
+
|
42
|
+
# Converts MAPI message model to specified format and returns as file
|
43
|
+
# @param [String] destination_format File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
44
|
+
# @param [MapiMessageDto] mapi_message MAPI message model to convert
|
45
|
+
def initialize(destination_format, mapi_message)
|
46
|
+
self.destination_format = destination_format if destination_format
|
47
|
+
self.mapi_message = mapi_message if mapi_message
|
48
|
+
end
|
49
|
+
|
50
|
+
def to_http_info(api_client)
|
51
|
+
# verify the required parameter 'destination_format' is set
|
52
|
+
if api_client.config.client_side_validation && self.destination_format.nil?
|
53
|
+
raise ArgumentError, "Missing the required parameter 'destination_format' when calling EmailApi.convert_mapi_message_model_to_file"
|
54
|
+
end
|
55
|
+
|
56
|
+
# verify the required parameter 'mapi_message' is set
|
57
|
+
if api_client.config.client_side_validation && self.mapi_message.nil?
|
58
|
+
raise ArgumentError, "Missing the required parameter 'mapi_message' when calling EmailApi.convert_mapi_message_model_to_file"
|
59
|
+
end
|
60
|
+
|
61
|
+
# resource path
|
62
|
+
local_var_path = '/email/MapiMessage/model-as-file/{destinationFormat}'.sub('{' + 'destinationFormat' + '}', self.destination_format.to_s)
|
63
|
+
|
64
|
+
# query parameters
|
65
|
+
query_params = {}
|
66
|
+
|
67
|
+
# form parameters
|
68
|
+
form_params = {}
|
69
|
+
|
70
|
+
# http body (model)
|
71
|
+
post_body = api_client.object_to_http_body(self.mapi_message)
|
72
|
+
auth_names = ['JWT']
|
73
|
+
|
74
|
+
# header parameters
|
75
|
+
header_params = {}
|
76
|
+
# HTTP header 'Accept' (if needed)
|
77
|
+
header_params['Accept'] = select_header_accept(['multipart/form-data'])
|
78
|
+
# HTTP header 'Content-Type'
|
79
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
80
|
+
|
81
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
82
|
+
header_params,
|
83
|
+
query_params,
|
84
|
+
form_params,
|
85
|
+
post_body,
|
86
|
+
auth_names)
|
87
|
+
end
|
88
|
+
end
|
89
|
+
end
|
@@ -0,0 +1,80 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="get_calendar_file_as_mapi_model_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2020 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 get_calendar_file_as_mapi_model operation.
|
33
|
+
class GetCalendarFileAsMapiModelRequestData < EmailRequest
|
34
|
+
|
35
|
+
# File to convert
|
36
|
+
# @return [File]
|
37
|
+
attr_accessor :file
|
38
|
+
|
39
|
+
# Converts calendar file to a MAPI model representation
|
40
|
+
# @param [File] file File to convert
|
41
|
+
def initialize(file)
|
42
|
+
self.file = file if file
|
43
|
+
end
|
44
|
+
|
45
|
+
def to_http_info(api_client)
|
46
|
+
# verify the required parameter 'file' is set
|
47
|
+
if api_client.config.client_side_validation && self.file.nil?
|
48
|
+
raise ArgumentError, "Missing the required parameter 'file' when calling EmailApi.get_calendar_file_as_mapi_model"
|
49
|
+
end
|
50
|
+
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/email/MapiCalendar/file-as-model'
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = {}
|
56
|
+
|
57
|
+
# form parameters
|
58
|
+
form_params = {}
|
59
|
+
form_params['File'] = self.file
|
60
|
+
|
61
|
+
# http body (model)
|
62
|
+
post_body = nil
|
63
|
+
auth_names = ['JWT']
|
64
|
+
|
65
|
+
# header parameters
|
66
|
+
header_params = {}
|
67
|
+
# HTTP header 'Accept' (if needed)
|
68
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
69
|
+
# HTTP header 'Content-Type'
|
70
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['multipart/form-data'])
|
71
|
+
|
72
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
73
|
+
header_params,
|
74
|
+
query_params,
|
75
|
+
form_params,
|
76
|
+
post_body,
|
77
|
+
auth_names)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="get_contact_file_as_mapi_model_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2020 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 get_contact_file_as_mapi_model operation.
|
33
|
+
class GetContactFileAsMapiModelRequestData < EmailRequest
|
34
|
+
|
35
|
+
# File format Enum, available values: VCard, WebDav, Msg
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :file_format
|
38
|
+
# File to convert
|
39
|
+
# @return [File]
|
40
|
+
attr_accessor :file
|
41
|
+
|
42
|
+
# Converts contact file to a MAPI model representation
|
43
|
+
# @param [String] file_format File format Enum, available values: VCard, WebDav, Msg
|
44
|
+
# @param [File] file File to convert
|
45
|
+
def initialize(file_format, file)
|
46
|
+
self.file_format = file_format if file_format
|
47
|
+
self.file = file if file
|
48
|
+
end
|
49
|
+
|
50
|
+
def to_http_info(api_client)
|
51
|
+
# verify the required parameter 'file_format' is set
|
52
|
+
if api_client.config.client_side_validation && self.file_format.nil?
|
53
|
+
raise ArgumentError, "Missing the required parameter 'file_format' when calling EmailApi.get_contact_file_as_mapi_model"
|
54
|
+
end
|
55
|
+
|
56
|
+
# verify the required parameter 'file' is set
|
57
|
+
if api_client.config.client_side_validation && self.file.nil?
|
58
|
+
raise ArgumentError, "Missing the required parameter 'file' when calling EmailApi.get_contact_file_as_mapi_model"
|
59
|
+
end
|
60
|
+
|
61
|
+
# resource path
|
62
|
+
local_var_path = '/email/MapiContact/{fileFormat}/file-as-model'.sub('{' + 'fileFormat' + '}', self.file_format.to_s)
|
63
|
+
|
64
|
+
# query parameters
|
65
|
+
query_params = {}
|
66
|
+
|
67
|
+
# form parameters
|
68
|
+
form_params = {}
|
69
|
+
form_params['File'] = self.file
|
70
|
+
|
71
|
+
# http body (model)
|
72
|
+
post_body = nil
|
73
|
+
auth_names = ['JWT']
|
74
|
+
|
75
|
+
# header parameters
|
76
|
+
header_params = {}
|
77
|
+
# HTTP header 'Accept' (if needed)
|
78
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
79
|
+
# HTTP header 'Content-Type'
|
80
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['multipart/form-data'])
|
81
|
+
|
82
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
83
|
+
header_params,
|
84
|
+
query_params,
|
85
|
+
form_params,
|
86
|
+
post_body,
|
87
|
+
auth_names)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|
@@ -35,7 +35,7 @@ module AsposeEmailCloud
|
|
35
35
|
# Email document file name
|
36
36
|
# @return [String]
|
37
37
|
attr_accessor :file_name
|
38
|
-
# File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
38
|
+
# File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
39
39
|
# @return [String]
|
40
40
|
attr_accessor :format
|
41
41
|
# Storage name
|
@@ -47,7 +47,7 @@ module AsposeEmailCloud
|
|
47
47
|
|
48
48
|
# Converts email document from storage to specified format and returns as file
|
49
49
|
# @param [String] file_name Email document file name
|
50
|
-
# @param [String] format File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
50
|
+
# @param [String] format File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
51
51
|
# @param [String] storage Storage name
|
52
52
|
# @param [String] folder Path to folder in storage
|
53
53
|
def initialize(file_name, format, storage = nil, folder = nil)
|
@@ -0,0 +1,90 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="get_email_file_as_mapi_model_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2020 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 get_email_file_as_mapi_model operation.
|
33
|
+
class GetEmailFileAsMapiModelRequestData < EmailRequest
|
34
|
+
|
35
|
+
# File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :file_format
|
38
|
+
# File to convert
|
39
|
+
# @return [File]
|
40
|
+
attr_accessor :file
|
41
|
+
|
42
|
+
# Converts email file to a MAPI model representation
|
43
|
+
# @param [String] file_format File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
44
|
+
# @param [File] file File to convert
|
45
|
+
def initialize(file_format, file)
|
46
|
+
self.file_format = file_format if file_format
|
47
|
+
self.file = file if file
|
48
|
+
end
|
49
|
+
|
50
|
+
def to_http_info(api_client)
|
51
|
+
# verify the required parameter 'file_format' is set
|
52
|
+
if api_client.config.client_side_validation && self.file_format.nil?
|
53
|
+
raise ArgumentError, "Missing the required parameter 'file_format' when calling EmailApi.get_email_file_as_mapi_model"
|
54
|
+
end
|
55
|
+
|
56
|
+
# verify the required parameter 'file' is set
|
57
|
+
if api_client.config.client_side_validation && self.file.nil?
|
58
|
+
raise ArgumentError, "Missing the required parameter 'file' when calling EmailApi.get_email_file_as_mapi_model"
|
59
|
+
end
|
60
|
+
|
61
|
+
# resource path
|
62
|
+
local_var_path = '/email/MapiMessage/{fileFormat}/file-as-model'.sub('{' + 'fileFormat' + '}', self.file_format.to_s)
|
63
|
+
|
64
|
+
# query parameters
|
65
|
+
query_params = {}
|
66
|
+
|
67
|
+
# form parameters
|
68
|
+
form_params = {}
|
69
|
+
form_params['File'] = self.file
|
70
|
+
|
71
|
+
# http body (model)
|
72
|
+
post_body = nil
|
73
|
+
auth_names = ['JWT']
|
74
|
+
|
75
|
+
# header parameters
|
76
|
+
header_params = {}
|
77
|
+
# HTTP header 'Accept' (if needed)
|
78
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
79
|
+
# HTTP header 'Content-Type'
|
80
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['multipart/form-data'])
|
81
|
+
|
82
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
83
|
+
header_params,
|
84
|
+
query_params,
|
85
|
+
form_params,
|
86
|
+
post_body,
|
87
|
+
auth_names)
|
88
|
+
end
|
89
|
+
end
|
90
|
+
end
|