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
@@ -32,7 +32,7 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for convert_email_model_to_file operation.
|
33
33
|
class ConvertEmailModelToFileRequestData < EmailRequest
|
34
34
|
|
35
|
-
# File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
35
|
+
# File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
36
36
|
# @return [String]
|
37
37
|
attr_accessor :destination_format
|
38
38
|
# Email model to convert
|
@@ -40,7 +40,7 @@ module AsposeEmailCloud
|
|
40
40
|
attr_accessor :email_dto
|
41
41
|
|
42
42
|
# Converts Email model to specified format and returns as file
|
43
|
-
# @param [String] destination_format File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
43
|
+
# @param [String] destination_format File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
44
44
|
# @param [EmailDto] email_dto Email model to convert
|
45
45
|
def initialize(destination_format, email_dto)
|
46
46
|
self.destination_format = destination_format if destination_format
|
@@ -0,0 +1,79 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="convert_email_model_to_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 convert_email_model_to_mapi_model operation.
|
33
|
+
class ConvertEmailModelToMapiModelRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Email model to convert
|
36
|
+
# @return [EmailDto]
|
37
|
+
attr_accessor :email_dto
|
38
|
+
|
39
|
+
# Converts EmailDto to MapiMessageDto.
|
40
|
+
# @param [EmailDto] email_dto Email model to convert
|
41
|
+
def initialize(email_dto)
|
42
|
+
self.email_dto = email_dto if email_dto
|
43
|
+
end
|
44
|
+
|
45
|
+
def to_http_info(api_client)
|
46
|
+
# verify the required parameter 'email_dto' is set
|
47
|
+
if api_client.config.client_side_validation && self.email_dto.nil?
|
48
|
+
raise ArgumentError, "Missing the required parameter 'email_dto' when calling EmailApi.convert_email_model_to_mapi_model"
|
49
|
+
end
|
50
|
+
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/email/model/model-as-mapi-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.email_dto)
|
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
|
@@ -32,7 +32,7 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for convert_email operation.
|
33
33
|
class ConvertEmailRequestData < EmailRequest
|
34
34
|
|
35
|
-
# File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
35
|
+
# File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
36
36
|
# @return [String]
|
37
37
|
attr_accessor :format
|
38
38
|
# File to convert
|
@@ -40,7 +40,7 @@ module AsposeEmailCloud
|
|
40
40
|
attr_accessor :file
|
41
41
|
|
42
42
|
# Converts email document to specified format and returns as file
|
43
|
-
# @param [String] format File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
43
|
+
# @param [String] format File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
44
44
|
# @param [File] file File to convert
|
45
45
|
def initialize(format, file)
|
46
46
|
self.format = format if format
|
@@ -0,0 +1,79 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="convert_mapi_calendar_model_to_calendar_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_calendar_model_to_calendar_model operation.
|
33
|
+
class ConvertMapiCalendarModelToCalendarModelRequestData < EmailRequest
|
34
|
+
|
35
|
+
# MAPI calendar model to convert
|
36
|
+
# @return [MapiCalendarDto]
|
37
|
+
attr_accessor :mapi_calendar_dto
|
38
|
+
|
39
|
+
# Converts MAPI calendar model to CalendarDto model
|
40
|
+
# @param [MapiCalendarDto] mapi_calendar_dto MAPI calendar model to convert
|
41
|
+
def initialize(mapi_calendar_dto)
|
42
|
+
self.mapi_calendar_dto = mapi_calendar_dto if mapi_calendar_dto
|
43
|
+
end
|
44
|
+
|
45
|
+
def to_http_info(api_client)
|
46
|
+
# verify the required parameter 'mapi_calendar_dto' is set
|
47
|
+
if api_client.config.client_side_validation && self.mapi_calendar_dto.nil?
|
48
|
+
raise ArgumentError, "Missing the required parameter 'mapi_calendar_dto' when calling EmailApi.convert_mapi_calendar_model_to_calendar_model"
|
49
|
+
end
|
50
|
+
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/email/MapiCalendar/model-as-calendar-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_calendar_dto)
|
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_calendar_model_to_file_request_data.rb
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="convert_mapi_calendar_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_calendar_model_to_file operation.
|
33
|
+
class ConvertMapiCalendarModelToFileRequestData < EmailRequest
|
34
|
+
|
35
|
+
# File format Enum, available values: Ics, Msg
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :destination_format
|
38
|
+
# MAPI calendar model to convert
|
39
|
+
# @return [MapiCalendarDto]
|
40
|
+
attr_accessor :mapi_calendar_dto
|
41
|
+
|
42
|
+
# Converts MAPI calendar model to specified format and returns as file
|
43
|
+
# @param [String] destination_format File format Enum, available values: Ics, Msg
|
44
|
+
# @param [MapiCalendarDto] mapi_calendar_dto MAPI calendar model to convert
|
45
|
+
def initialize(destination_format, mapi_calendar_dto)
|
46
|
+
self.destination_format = destination_format if destination_format
|
47
|
+
self.mapi_calendar_dto = mapi_calendar_dto if mapi_calendar_dto
|
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_calendar_model_to_file"
|
54
|
+
end
|
55
|
+
|
56
|
+
# verify the required parameter 'mapi_calendar_dto' is set
|
57
|
+
if api_client.config.client_side_validation && self.mapi_calendar_dto.nil?
|
58
|
+
raise ArgumentError, "Missing the required parameter 'mapi_calendar_dto' when calling EmailApi.convert_mapi_calendar_model_to_file"
|
59
|
+
end
|
60
|
+
|
61
|
+
# resource path
|
62
|
+
local_var_path = '/email/MapiCalendar/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_calendar_dto)
|
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,79 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="convert_mapi_contact_model_to_contact_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_contact_model_to_contact_model operation.
|
33
|
+
class ConvertMapiContactModelToContactModelRequestData < EmailRequest
|
34
|
+
|
35
|
+
# MAPI contact model to convert
|
36
|
+
# @return [MapiContactDto]
|
37
|
+
attr_accessor :mapi_contact_dto
|
38
|
+
|
39
|
+
# Converts MAPI contact model to ContactDto model
|
40
|
+
# @param [MapiContactDto] mapi_contact_dto MAPI contact model to convert
|
41
|
+
def initialize(mapi_contact_dto)
|
42
|
+
self.mapi_contact_dto = mapi_contact_dto if mapi_contact_dto
|
43
|
+
end
|
44
|
+
|
45
|
+
def to_http_info(api_client)
|
46
|
+
# verify the required parameter 'mapi_contact_dto' is set
|
47
|
+
if api_client.config.client_side_validation && self.mapi_contact_dto.nil?
|
48
|
+
raise ArgumentError, "Missing the required parameter 'mapi_contact_dto' when calling EmailApi.convert_mapi_contact_model_to_contact_model"
|
49
|
+
end
|
50
|
+
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/email/MapiContact/model-as-contact-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_contact_dto)
|
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_contact_model_to_file_request_data.rb
ADDED
@@ -0,0 +1,89 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="convert_mapi_contact_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_contact_model_to_file operation.
|
33
|
+
class ConvertMapiContactModelToFileRequestData < EmailRequest
|
34
|
+
|
35
|
+
# File format Enum, available values: VCard, WebDav, Msg
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :destination_format
|
38
|
+
# MAPI contact model to convert
|
39
|
+
# @return [MapiContactDto]
|
40
|
+
attr_accessor :mapi_contact_dto
|
41
|
+
|
42
|
+
# Converts MAPI contact model to specified format and returns as file
|
43
|
+
# @param [String] destination_format File format Enum, available values: VCard, WebDav, Msg
|
44
|
+
# @param [MapiContactDto] mapi_contact_dto MAPI contact model to convert
|
45
|
+
def initialize(destination_format, mapi_contact_dto)
|
46
|
+
self.destination_format = destination_format if destination_format
|
47
|
+
self.mapi_contact_dto = mapi_contact_dto if mapi_contact_dto
|
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_contact_model_to_file"
|
54
|
+
end
|
55
|
+
|
56
|
+
# verify the required parameter 'mapi_contact_dto' is set
|
57
|
+
if api_client.config.client_side_validation && self.mapi_contact_dto.nil?
|
58
|
+
raise ArgumentError, "Missing the required parameter 'mapi_contact_dto' when calling EmailApi.convert_mapi_contact_model_to_file"
|
59
|
+
end
|
60
|
+
|
61
|
+
# resource path
|
62
|
+
local_var_path = '/email/MapiContact/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_contact_dto)
|
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
|