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 get_email_model_list operation.
|
33
33
|
class GetEmailModelListRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
35
|
+
# Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
36
36
|
# @return [String]
|
37
37
|
attr_accessor :format
|
38
38
|
# Path to folder in storage.
|
@@ -49,7 +49,7 @@ module AsposeEmailCloud
|
|
49
49
|
attr_accessor :page_number
|
50
50
|
|
51
51
|
# Get email list from storage folder.
|
52
|
-
# @param [String] format Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
52
|
+
# @param [String] format Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
53
53
|
# @param [String] folder Path to folder in storage.
|
54
54
|
# @param [String] storage Storage name.
|
55
55
|
# @param [Integer] items_per_page Count of items on page.
|
@@ -32,7 +32,7 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_email_model operation.
|
33
33
|
class GetEmailModelRequestData < EmailRequest
|
34
34
|
|
35
|
-
# Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
35
|
+
# Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
36
36
|
# @return [String]
|
37
37
|
attr_accessor :format
|
38
38
|
# Email document file name.
|
@@ -46,7 +46,7 @@ module AsposeEmailCloud
|
|
46
46
|
attr_accessor :storage
|
47
47
|
|
48
48
|
# Get email document.
|
49
|
-
# @param [String] format Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
49
|
+
# @param [String] format Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
50
50
|
# @param [String] name Email document file name.
|
51
51
|
# @param [String] folder Path to folder in storage.
|
52
52
|
# @param [String] storage Storage name.
|
@@ -0,0 +1,91 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="get_mapi_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 get_mapi_calendar_model operation.
|
33
|
+
class GetMapiCalendarModelRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Calendar file name in storage
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :name
|
38
|
+
# Path to folder in storage
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :folder
|
41
|
+
# Storage name
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :storage
|
44
|
+
|
45
|
+
# Get MAPI calendar document.
|
46
|
+
# @param [String] name Calendar file name in storage
|
47
|
+
# @param [String] folder Path to folder in storage
|
48
|
+
# @param [String] storage Storage name
|
49
|
+
def initialize(name, folder = nil, storage = nil)
|
50
|
+
self.name = name if name
|
51
|
+
self.folder = folder if folder
|
52
|
+
self.storage = storage if storage
|
53
|
+
end
|
54
|
+
|
55
|
+
def to_http_info(api_client)
|
56
|
+
# verify the required parameter 'name' is set
|
57
|
+
if api_client.config.client_side_validation && self.name.nil?
|
58
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_mapi_calendar_model"
|
59
|
+
end
|
60
|
+
|
61
|
+
# resource path
|
62
|
+
local_var_path = '/email/MapiCalendar/{name}'.sub('{' + 'name' + '}', self.name.to_s)
|
63
|
+
|
64
|
+
# query parameters
|
65
|
+
query_params = {}
|
66
|
+
query_params[:folder] = self.folder unless self.folder.nil?
|
67
|
+
query_params[:storage] = self.storage unless self.storage.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,101 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="get_mapi_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 get_mapi_contact_model operation.
|
33
|
+
class GetMapiContactModelRequestData < EmailRequest
|
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
|
+
# Path to folder in storage.
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :folder
|
44
|
+
# Storage name.
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :storage
|
47
|
+
|
48
|
+
# Get MAPI contact document.
|
49
|
+
# @param [String] format Contact document format. Enum, available values: VCard, WebDav, Msg
|
50
|
+
# @param [String] name Contact document file name.
|
51
|
+
# @param [String] folder Path to folder in storage.
|
52
|
+
# @param [String] storage Storage name.
|
53
|
+
def initialize(format, name, folder = nil, storage = nil)
|
54
|
+
self.format = format if format
|
55
|
+
self.name = name if name
|
56
|
+
self.folder = folder if folder
|
57
|
+
self.storage = storage if storage
|
58
|
+
end
|
59
|
+
|
60
|
+
def to_http_info(api_client)
|
61
|
+
# verify the required parameter 'format' is set
|
62
|
+
if api_client.config.client_side_validation && self.format.nil?
|
63
|
+
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.get_mapi_contact_model"
|
64
|
+
end
|
65
|
+
|
66
|
+
# verify the required parameter 'name' is set
|
67
|
+
if api_client.config.client_side_validation && self.name.nil?
|
68
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_mapi_contact_model"
|
69
|
+
end
|
70
|
+
|
71
|
+
# resource path
|
72
|
+
local_var_path = '/email/MapiContact/{format}/{name}'.sub('{' + 'format' + '}', self.format.to_s).sub('{' + 'name' + '}', self.name.to_s)
|
73
|
+
|
74
|
+
# query parameters
|
75
|
+
query_params = {}
|
76
|
+
query_params[:folder] = self.folder unless self.folder.nil?
|
77
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
78
|
+
|
79
|
+
# form parameters
|
80
|
+
form_params = {}
|
81
|
+
|
82
|
+
# http body (model)
|
83
|
+
post_body = nil
|
84
|
+
auth_names = ['JWT']
|
85
|
+
|
86
|
+
# header parameters
|
87
|
+
header_params = {}
|
88
|
+
# HTTP header 'Accept' (if needed)
|
89
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
90
|
+
# HTTP header 'Content-Type'
|
91
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
92
|
+
|
93
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
94
|
+
header_params,
|
95
|
+
query_params,
|
96
|
+
form_params,
|
97
|
+
post_body,
|
98
|
+
auth_names)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -0,0 +1,101 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="get_mapi_message_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_mapi_message_model operation.
|
33
|
+
class GetMapiMessageModelRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :format
|
38
|
+
# Email document file name.
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :name
|
41
|
+
# Path to folder in storage.
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :folder
|
44
|
+
# Storage name.
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :storage
|
47
|
+
|
48
|
+
# Get MAPI message document.
|
49
|
+
# @param [String] format Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
50
|
+
# @param [String] name Email document file name.
|
51
|
+
# @param [String] folder Path to folder in storage.
|
52
|
+
# @param [String] storage Storage name.
|
53
|
+
def initialize(format, name, folder = nil, storage = nil)
|
54
|
+
self.format = format if format
|
55
|
+
self.name = name if name
|
56
|
+
self.folder = folder if folder
|
57
|
+
self.storage = storage if storage
|
58
|
+
end
|
59
|
+
|
60
|
+
def to_http_info(api_client)
|
61
|
+
# verify the required parameter 'format' is set
|
62
|
+
if api_client.config.client_side_validation && self.format.nil?
|
63
|
+
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.get_mapi_message_model"
|
64
|
+
end
|
65
|
+
|
66
|
+
# verify the required parameter 'name' is set
|
67
|
+
if api_client.config.client_side_validation && self.name.nil?
|
68
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_mapi_message_model"
|
69
|
+
end
|
70
|
+
|
71
|
+
# resource path
|
72
|
+
local_var_path = '/email/MapiMessage/{format}/{name}'.sub('{' + 'format' + '}', self.format.to_s).sub('{' + 'name' + '}', self.name.to_s)
|
73
|
+
|
74
|
+
# query parameters
|
75
|
+
query_params = {}
|
76
|
+
query_params[:folder] = self.folder unless self.folder.nil?
|
77
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
78
|
+
|
79
|
+
# form parameters
|
80
|
+
form_params = {}
|
81
|
+
|
82
|
+
# http body (model)
|
83
|
+
post_body = nil
|
84
|
+
auth_names = ['JWT']
|
85
|
+
|
86
|
+
# header parameters
|
87
|
+
header_params = {}
|
88
|
+
# HTTP header 'Accept' (if needed)
|
89
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
90
|
+
# HTTP header 'Content-Type'
|
91
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
92
|
+
|
93
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
94
|
+
header_params,
|
95
|
+
query_params,
|
96
|
+
form_params,
|
97
|
+
post_body,
|
98
|
+
auth_names)
|
99
|
+
end
|
100
|
+
end
|
101
|
+
end
|
@@ -35,13 +35,13 @@ module AsposeEmailCloud
|
|
35
35
|
# iCalendar file name in storage
|
36
36
|
# @return [String]
|
37
37
|
attr_accessor :name
|
38
|
-
# Calendar
|
38
|
+
# Calendar update request
|
39
39
|
# @return [StorageModelRqOfCalendarDto]
|
40
40
|
attr_accessor :rq
|
41
41
|
|
42
42
|
# Save iCalendar
|
43
43
|
# @param [String] name iCalendar file name in storage
|
44
|
-
# @param [StorageModelRqOfCalendarDto] rq Calendar
|
44
|
+
# @param [StorageModelRqOfCalendarDto] rq Calendar update request
|
45
45
|
def initialize(name, rq)
|
46
46
|
self.name = name if name
|
47
47
|
self.rq = rq if rq
|
@@ -38,14 +38,14 @@ module AsposeEmailCloud
|
|
38
38
|
# Contact document file name.
|
39
39
|
# @return [String]
|
40
40
|
attr_accessor :name
|
41
|
-
# Create contact request.
|
41
|
+
# Create/Update contact request.
|
42
42
|
# @return [StorageModelRqOfContactDto]
|
43
43
|
attr_accessor :rq
|
44
44
|
|
45
45
|
# Save contact.
|
46
46
|
# @param [String] format Contact document format. Enum, available values: VCard, WebDav, Msg
|
47
47
|
# @param [String] name Contact document file name.
|
48
|
-
# @param [StorageModelRqOfContactDto] rq Create contact request.
|
48
|
+
# @param [StorageModelRqOfContactDto] rq Create/Update contact request.
|
49
49
|
def initialize(format, name, rq)
|
50
50
|
self.format = format if format
|
51
51
|
self.name = name if name
|
@@ -32,20 +32,20 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for save_email_model operation.
|
33
33
|
class SaveEmailModelRequestData < 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
|
# Email document file name in storage.
|
39
39
|
# @return [String]
|
40
40
|
attr_accessor :name
|
41
|
-
#
|
41
|
+
# Email document create/update request.
|
42
42
|
# @return [StorageModelRqOfEmailDto]
|
43
43
|
attr_accessor :rq
|
44
44
|
|
45
45
|
# Save email document.
|
46
|
-
# @param [String] format File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
46
|
+
# @param [String] format File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
|
47
47
|
# @param [String] name Email document file name in storage.
|
48
|
-
# @param [StorageModelRqOfEmailDto] rq
|
48
|
+
# @param [StorageModelRqOfEmailDto] rq Email document create/update request.
|
49
49
|
def initialize(format, name, rq)
|
50
50
|
self.format = format if format
|
51
51
|
self.name = name if name
|
@@ -0,0 +1,99 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="save_mapi_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 save_mapi_calendar_model operation.
|
33
|
+
class SaveMapiCalendarModelRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Calendar file name in storage
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :name
|
38
|
+
# File format Enum, available values: Ics, Msg
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :format
|
41
|
+
# Calendar update request
|
42
|
+
# @return [StorageModelRqOfMapiCalendarDto]
|
43
|
+
attr_accessor :rq
|
44
|
+
|
45
|
+
# Save MAPI Calendar to storage.
|
46
|
+
# @param [String] name Calendar file name in storage
|
47
|
+
# @param [String] format File format Enum, available values: Ics, Msg
|
48
|
+
# @param [StorageModelRqOfMapiCalendarDto] rq Calendar update request
|
49
|
+
def initialize(name, format, rq)
|
50
|
+
self.name = name if name
|
51
|
+
self.format = format if format
|
52
|
+
self.rq = rq if rq
|
53
|
+
end
|
54
|
+
|
55
|
+
def to_http_info(api_client)
|
56
|
+
# verify the required parameter 'name' is set
|
57
|
+
if api_client.config.client_side_validation && self.name.nil?
|
58
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.save_mapi_calendar_model"
|
59
|
+
end
|
60
|
+
|
61
|
+
# verify the required parameter 'format' is set
|
62
|
+
if api_client.config.client_side_validation && self.format.nil?
|
63
|
+
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.save_mapi_calendar_model"
|
64
|
+
end
|
65
|
+
|
66
|
+
# verify the required parameter 'rq' is set
|
67
|
+
if api_client.config.client_side_validation && self.rq.nil?
|
68
|
+
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.save_mapi_calendar_model"
|
69
|
+
end
|
70
|
+
|
71
|
+
# resource path
|
72
|
+
local_var_path = '/email/MapiCalendar/{format}/{name}'.sub('{' + 'name' + '}', self.name.to_s).sub('{' + 'format' + '}', self.format.to_s)
|
73
|
+
|
74
|
+
# query parameters
|
75
|
+
query_params = {}
|
76
|
+
|
77
|
+
# form parameters
|
78
|
+
form_params = {}
|
79
|
+
|
80
|
+
# http body (model)
|
81
|
+
post_body = api_client.object_to_http_body(self.rq)
|
82
|
+
auth_names = ['JWT']
|
83
|
+
|
84
|
+
# header parameters
|
85
|
+
header_params = {}
|
86
|
+
# HTTP header 'Accept' (if needed)
|
87
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
88
|
+
# HTTP header 'Content-Type'
|
89
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
90
|
+
|
91
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
92
|
+
header_params,
|
93
|
+
query_params,
|
94
|
+
form_params,
|
95
|
+
post_body,
|
96
|
+
auth_names)
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|