aspose_email_cloud 19.12.0 → 20.1.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 +65 -0
- data/lib/aspose-email-cloud/api/email_api.rb +158 -1
- data/lib/aspose-email-cloud/models/ai_bcr_parse_ocr_data_rq.rb +230 -0
- data/lib/aspose-email-cloud/models/alternate_view.rb +279 -0
- data/lib/aspose-email-cloud/models/append_email_model_rq.rb +333 -0
- data/lib/aspose-email-cloud/models/associated_person.rb +241 -0
- data/lib/aspose-email-cloud/models/attachment.rb +321 -0
- data/lib/aspose-email-cloud/models/attachment_base.rb +251 -0
- data/lib/aspose-email-cloud/models/base_object.rb +86 -86
- data/lib/aspose-email-cloud/models/calendar_dto.rb +554 -0
- data/lib/aspose-email-cloud/models/calendar_dto_alternate_rq.rb +265 -0
- data/lib/aspose-email-cloud/models/calendar_dto_list.rb +212 -0
- data/lib/aspose-email-cloud/models/calendar_reminder.rb +315 -0
- data/lib/aspose-email-cloud/models/contact_dto.rb +696 -0
- data/lib/aspose-email-cloud/models/contact_dto_list.rb +212 -0
- data/lib/aspose-email-cloud/models/contact_photo.rb +228 -0
- data/lib/aspose-email-cloud/models/content_type.rb +264 -0
- data/lib/aspose-email-cloud/models/content_type_parameter.rb +223 -0
- data/lib/aspose-email-cloud/models/customer_event.rb +228 -0
- data/lib/aspose-email-cloud/models/email_address.rb +267 -0
- data/lib/aspose-email-cloud/models/email_dto.rb +678 -0
- data/lib/aspose-email-cloud/models/email_dto_list.rb +212 -0
- data/lib/aspose-email-cloud/models/enum_with_custom_of_associated_person_category.rb +227 -0
- data/lib/aspose-email-cloud/models/enum_with_custom_of_email_address_category.rb +227 -0
- data/lib/aspose-email-cloud/models/enum_with_custom_of_event_category.rb +227 -0
- data/lib/aspose-email-cloud/models/enum_with_custom_of_instant_messenger_category.rb +227 -0
- data/lib/aspose-email-cloud/models/enum_with_custom_of_phone_number_category.rb +227 -0
- data/lib/aspose-email-cloud/models/enum_with_custom_of_postal_address_category.rb +227 -0
- data/lib/aspose-email-cloud/models/enum_with_custom_of_url_category.rb +227 -0
- data/lib/aspose-email-cloud/models/hierarchical_object.rb +101 -101
- data/lib/aspose-email-cloud/models/indexed_hierarchical_object.rb +119 -119
- data/lib/aspose-email-cloud/models/indexed_primitive_object.rb +117 -117
- data/lib/aspose-email-cloud/models/instant_messenger_address.rb +241 -0
- data/lib/aspose-email-cloud/models/linked_resource.rb +264 -0
- data/lib/aspose-email-cloud/models/list_response_of_contact_dto.rb +211 -0
- data/lib/aspose-email-cloud/models/list_response_of_email_dto.rb +211 -0
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_calendar_dto.rb +211 -0
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_contact_dto.rb +211 -0
- data/lib/aspose-email-cloud/models/list_response_of_storage_model_of_email_dto.rb +211 -0
- data/lib/aspose-email-cloud/models/mail_address.rb +241 -0
- data/lib/aspose-email-cloud/models/phone_number.rb +241 -0
- data/lib/aspose-email-cloud/models/postal_address.rb +350 -0
- data/lib/aspose-email-cloud/models/primitive_object.rb +99 -99
- data/lib/aspose-email-cloud/models/reminder_attendee.rb +210 -0
- data/lib/aspose-email-cloud/models/reminder_trigger.rb +246 -0
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_model_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/append_email_model_message_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/convert_email_request_data.rb +83 -0
- data/lib/aspose-email-cloud/models/requests/fetch_email_model_request_data.rb +93 -0
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_as_alternate_request_data.rb +91 -0
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_list_request_data.rb +85 -0
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_request_data.rb +81 -0
- data/lib/aspose-email-cloud/models/requests/get_contact_model_list_request_data.rb +87 -0
- data/lib/aspose-email-cloud/models/requests/get_contact_model_request_data.rb +88 -0
- data/lib/aspose-email-cloud/models/requests/get_email_as_file_request_data.rb +88 -0
- data/lib/aspose-email-cloud/models/requests/get_email_model_list_request_data.rb +87 -0
- data/lib/aspose-email-cloud/models/requests/get_email_model_request_data.rb +88 -0
- data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +1 -1
- data/lib/aspose-email-cloud/models/requests/list_email_models_request_data.rb +105 -0
- data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +82 -0
- data/lib/aspose-email-cloud/models/requests/save_contact_model_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/save_email_model_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/send_email_model_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/send_email_model_rq.rb +273 -0
- data/lib/aspose-email-cloud/models/storage_model_of_calendar_dto.rb +222 -0
- data/lib/aspose-email-cloud/models/storage_model_of_contact_dto.rb +222 -0
- data/lib/aspose-email-cloud/models/storage_model_of_email_dto.rb +222 -0
- data/lib/aspose-email-cloud/models/storage_model_rq_of_calendar_dto.rb +222 -0
- data/lib/aspose-email-cloud/models/storage_model_rq_of_contact_dto.rb +222 -0
- data/lib/aspose-email-cloud/models/storage_model_rq_of_email_dto.rb +222 -0
- data/lib/aspose-email-cloud/models/url.rb +241 -0
- data/lib/aspose-email-cloud/models/value_response.rb +1 -1
- data/lib/aspose-email-cloud/version.rb +1 -1
- metadata +67 -2
@@ -0,0 +1,91 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="get_calendar_model_as_alternate_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
8
|
+
# copy of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
12
|
+
# Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in
|
15
|
+
# all copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
22
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
23
|
+
# DEALINGS IN THE SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# ----------------------------------------------------------------------------
|
26
|
+
|
27
|
+
|
28
|
+
require_relative './email_request'
|
29
|
+
require_relative './http_request'
|
30
|
+
|
31
|
+
module AsposeEmailCloud
|
32
|
+
# Request model for get_calendar_model_as_alternate operation.
|
33
|
+
class GetCalendarModelAsAlternateRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Get iCalendar from storage as AlternateView
|
36
|
+
# @param [String] name iCalendar file name in storage
|
37
|
+
# @param [String] calendar_action iCalendar method type Enum, available values: Create, Update, Cancel
|
38
|
+
# @param [String] sequence_id The sequence id
|
39
|
+
# @param [String] folder Path to folder in storage
|
40
|
+
# @param [String] storage Storage name
|
41
|
+
def initialize(name, calendar_action, sequence_id = nil, folder = nil, storage = nil)
|
42
|
+
@name = name if name
|
43
|
+
@calendar_action = calendar_action if calendar_action
|
44
|
+
@sequence_id = sequence_id if sequence_id
|
45
|
+
@folder = folder if folder
|
46
|
+
@storage = storage if storage
|
47
|
+
end
|
48
|
+
|
49
|
+
def to_http_info(api_client)
|
50
|
+
# verify the required parameter 'name' is set
|
51
|
+
if api_client.config.client_side_validation && @name.nil?
|
52
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_calendar_model_as_alternate"
|
53
|
+
end
|
54
|
+
|
55
|
+
# verify the required parameter 'calendar_action' is set
|
56
|
+
if api_client.config.client_side_validation && @calendar_action.nil?
|
57
|
+
raise ArgumentError, "Missing the required parameter 'calendar_action' when calling EmailApi.get_calendar_model_as_alternate"
|
58
|
+
end
|
59
|
+
|
60
|
+
# resource path
|
61
|
+
local_var_path = '/email/CalendarModel/{name}/as-alternate/{calendarAction}'.sub('{' + 'name' + '}', @name.to_s).sub('{' + 'calendarAction' + '}', @calendar_action.to_s)
|
62
|
+
|
63
|
+
# query parameters
|
64
|
+
query_params = {}
|
65
|
+
query_params[:sequenceId] = @sequence_id unless @sequence_id.nil?
|
66
|
+
query_params[:folder] = @folder unless @folder.nil?
|
67
|
+
query_params[:storage] = @storage unless @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,85 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="get_calendar_model_list_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
8
|
+
# copy of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
12
|
+
# Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in
|
15
|
+
# all copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
22
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
23
|
+
# DEALINGS IN THE SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# ----------------------------------------------------------------------------
|
26
|
+
|
27
|
+
|
28
|
+
require_relative './email_request'
|
29
|
+
require_relative './http_request'
|
30
|
+
|
31
|
+
module AsposeEmailCloud
|
32
|
+
# Request model for get_calendar_model_list operation.
|
33
|
+
class GetCalendarModelListRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Get iCalendar list from storage folder
|
36
|
+
# @param [String] folder Path to folder in storage
|
37
|
+
# @param [Integer] items_per_page Count of items on page
|
38
|
+
# @param [Integer] page_number Page number
|
39
|
+
# @param [String] storage Storage name
|
40
|
+
def initialize(folder, items_per_page = nil, page_number = nil, storage = nil)
|
41
|
+
@folder = folder if folder
|
42
|
+
@items_per_page = items_per_page if items_per_page
|
43
|
+
@page_number = page_number if page_number
|
44
|
+
@storage = storage if storage
|
45
|
+
end
|
46
|
+
|
47
|
+
def to_http_info(api_client)
|
48
|
+
# verify the required parameter 'folder' is set
|
49
|
+
if api_client.config.client_side_validation && @folder.nil?
|
50
|
+
raise ArgumentError, "Missing the required parameter 'folder' when calling EmailApi.get_calendar_model_list"
|
51
|
+
end
|
52
|
+
|
53
|
+
# resource path
|
54
|
+
local_var_path = '/email/CalendarModel'
|
55
|
+
|
56
|
+
# query parameters
|
57
|
+
query_params = {}
|
58
|
+
query_params[:folder] = @folder
|
59
|
+
query_params[:itemsPerPage] = @items_per_page unless @items_per_page.nil?
|
60
|
+
query_params[:pageNumber] = @page_number unless @page_number.nil?
|
61
|
+
query_params[:storage] = @storage unless @storage.nil?
|
62
|
+
|
63
|
+
# form parameters
|
64
|
+
form_params = {}
|
65
|
+
|
66
|
+
# http body (model)
|
67
|
+
post_body = nil
|
68
|
+
auth_names = ['JWT']
|
69
|
+
|
70
|
+
# header parameters
|
71
|
+
header_params = {}
|
72
|
+
# HTTP header 'Accept' (if needed)
|
73
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
74
|
+
# HTTP header 'Content-Type'
|
75
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
76
|
+
|
77
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
78
|
+
header_params,
|
79
|
+
query_params,
|
80
|
+
form_params,
|
81
|
+
post_body,
|
82
|
+
auth_names)
|
83
|
+
end
|
84
|
+
end
|
85
|
+
end
|
@@ -0,0 +1,81 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="get_calendar_model_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
8
|
+
# copy of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
12
|
+
# Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in
|
15
|
+
# all copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
22
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
23
|
+
# DEALINGS IN THE SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# ----------------------------------------------------------------------------
|
26
|
+
|
27
|
+
|
28
|
+
require_relative './email_request'
|
29
|
+
require_relative './http_request'
|
30
|
+
|
31
|
+
module AsposeEmailCloud
|
32
|
+
# Request model for get_calendar_model operation.
|
33
|
+
class GetCalendarModelRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Get calendar file
|
36
|
+
# @param [String] name iCalendar file name in storage
|
37
|
+
# @param [String] folder Path to folder in storage
|
38
|
+
# @param [String] storage Storage name
|
39
|
+
def initialize(name, folder = nil, storage = nil)
|
40
|
+
@name = name if name
|
41
|
+
@folder = folder if folder
|
42
|
+
@storage = storage if storage
|
43
|
+
end
|
44
|
+
|
45
|
+
def to_http_info(api_client)
|
46
|
+
# verify the required parameter 'name' is set
|
47
|
+
if api_client.config.client_side_validation && @name.nil?
|
48
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_calendar_model"
|
49
|
+
end
|
50
|
+
|
51
|
+
# resource path
|
52
|
+
local_var_path = '/email/CalendarModel/{name}'.sub('{' + 'name' + '}', @name.to_s)
|
53
|
+
|
54
|
+
# query parameters
|
55
|
+
query_params = {}
|
56
|
+
query_params[:folder] = @folder unless @folder.nil?
|
57
|
+
query_params[:storage] = @storage unless @storage.nil?
|
58
|
+
|
59
|
+
# form parameters
|
60
|
+
form_params = {}
|
61
|
+
|
62
|
+
# http body (model)
|
63
|
+
post_body = nil
|
64
|
+
auth_names = ['JWT']
|
65
|
+
|
66
|
+
# header parameters
|
67
|
+
header_params = {}
|
68
|
+
# HTTP header 'Accept' (if needed)
|
69
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
70
|
+
# HTTP header 'Content-Type'
|
71
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
72
|
+
|
73
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
74
|
+
header_params,
|
75
|
+
query_params,
|
76
|
+
form_params,
|
77
|
+
post_body,
|
78
|
+
auth_names)
|
79
|
+
end
|
80
|
+
end
|
81
|
+
end
|
@@ -0,0 +1,87 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="get_contact_model_list_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
8
|
+
# copy of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
12
|
+
# Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in
|
15
|
+
# all copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
22
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
23
|
+
# DEALINGS IN THE SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# ----------------------------------------------------------------------------
|
26
|
+
|
27
|
+
|
28
|
+
require_relative './email_request'
|
29
|
+
require_relative './http_request'
|
30
|
+
|
31
|
+
module AsposeEmailCloud
|
32
|
+
# Request model for get_contact_model_list operation.
|
33
|
+
class GetContactModelListRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Get contact list from storage folder.
|
36
|
+
# @param [String] format Contact document format. Enum, available values: VCard, WebDav, Msg
|
37
|
+
# @param [String] folder Path to folder in storage.
|
38
|
+
# @param [String] storage Storage name.
|
39
|
+
# @param [Integer] items_per_page Count of items on page.
|
40
|
+
# @param [Integer] page_number Page number.
|
41
|
+
def initialize(format, folder = nil, storage = nil, items_per_page = nil, page_number = nil)
|
42
|
+
@format = format if format
|
43
|
+
@folder = folder if folder
|
44
|
+
@storage = storage if storage
|
45
|
+
@items_per_page = items_per_page if items_per_page
|
46
|
+
@page_number = page_number if page_number
|
47
|
+
end
|
48
|
+
|
49
|
+
def to_http_info(api_client)
|
50
|
+
# verify the required parameter 'format' is set
|
51
|
+
if api_client.config.client_side_validation && @format.nil?
|
52
|
+
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.get_contact_model_list"
|
53
|
+
end
|
54
|
+
|
55
|
+
# resource path
|
56
|
+
local_var_path = '/email/ContactModel/{format}'.sub('{' + 'format' + '}', @format.to_s)
|
57
|
+
|
58
|
+
# query parameters
|
59
|
+
query_params = {}
|
60
|
+
query_params[:folder] = @folder unless @folder.nil?
|
61
|
+
query_params[:storage] = @storage unless @storage.nil?
|
62
|
+
query_params[:itemsPerPage] = @items_per_page unless @items_per_page.nil?
|
63
|
+
query_params[:pageNumber] = @page_number unless @page_number.nil?
|
64
|
+
|
65
|
+
# form parameters
|
66
|
+
form_params = {}
|
67
|
+
|
68
|
+
# http body (model)
|
69
|
+
post_body = nil
|
70
|
+
auth_names = ['JWT']
|
71
|
+
|
72
|
+
# header parameters
|
73
|
+
header_params = {}
|
74
|
+
# HTTP header 'Accept' (if needed)
|
75
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
76
|
+
# HTTP header 'Content-Type'
|
77
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
78
|
+
|
79
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
80
|
+
header_params,
|
81
|
+
query_params,
|
82
|
+
form_params,
|
83
|
+
post_body,
|
84
|
+
auth_names)
|
85
|
+
end
|
86
|
+
end
|
87
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="get_contact_model_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
8
|
+
# copy of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
12
|
+
# Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in
|
15
|
+
# all copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
22
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
23
|
+
# DEALINGS IN THE SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# ----------------------------------------------------------------------------
|
26
|
+
|
27
|
+
|
28
|
+
require_relative './email_request'
|
29
|
+
require_relative './http_request'
|
30
|
+
|
31
|
+
module AsposeEmailCloud
|
32
|
+
# Request model for get_contact_model operation.
|
33
|
+
class GetContactModelRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Get contact document.
|
36
|
+
# @param [String] format Contact document format. Enum, available values: VCard, WebDav, Msg
|
37
|
+
# @param [String] name Contact document file name.
|
38
|
+
# @param [String] folder Path to folder in storage.
|
39
|
+
# @param [String] storage Storage name.
|
40
|
+
def initialize(format, name, folder = nil, storage = nil)
|
41
|
+
@format = format if format
|
42
|
+
@name = name if name
|
43
|
+
@folder = folder if folder
|
44
|
+
@storage = storage if storage
|
45
|
+
end
|
46
|
+
|
47
|
+
def to_http_info(api_client)
|
48
|
+
# verify the required parameter 'format' is set
|
49
|
+
if api_client.config.client_side_validation && @format.nil?
|
50
|
+
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.get_contact_model"
|
51
|
+
end
|
52
|
+
|
53
|
+
# verify the required parameter 'name' is set
|
54
|
+
if api_client.config.client_side_validation && @name.nil?
|
55
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_contact_model"
|
56
|
+
end
|
57
|
+
|
58
|
+
# resource path
|
59
|
+
local_var_path = '/email/ContactModel/{format}/{name}'.sub('{' + 'format' + '}', @format.to_s).sub('{' + 'name' + '}', @name.to_s)
|
60
|
+
|
61
|
+
# query parameters
|
62
|
+
query_params = {}
|
63
|
+
query_params[:folder] = @folder unless @folder.nil?
|
64
|
+
query_params[:storage] = @storage unless @storage.nil?
|
65
|
+
|
66
|
+
# form parameters
|
67
|
+
form_params = {}
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = nil
|
71
|
+
auth_names = ['JWT']
|
72
|
+
|
73
|
+
# header parameters
|
74
|
+
header_params = {}
|
75
|
+
# HTTP header 'Accept' (if needed)
|
76
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
77
|
+
# HTTP header 'Content-Type'
|
78
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
79
|
+
|
80
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
81
|
+
header_params,
|
82
|
+
query_params,
|
83
|
+
form_params,
|
84
|
+
post_body,
|
85
|
+
auth_names)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|
@@ -0,0 +1,88 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="get_email_as_file_request_data.rb">
|
4
|
+
# Copyright (c) 2018-2019 Aspose Pty Ltd. All rights reserved.
|
5
|
+
# </copyright>
|
6
|
+
# <summary>
|
7
|
+
# Permission is hereby granted, free of charge, to any person obtaining a
|
8
|
+
# copy of this software and associated documentation files (the "Software"),
|
9
|
+
# to deal in the Software without restriction, including without limitation
|
10
|
+
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
11
|
+
# and/or sell copies of the Software, and to permit persons to whom the
|
12
|
+
# Software is furnished to do so, subject to the following conditions:
|
13
|
+
#
|
14
|
+
# The above copyright notice and this permission notice shall be included in
|
15
|
+
# all copies or substantial portions of the Software.
|
16
|
+
#
|
17
|
+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
22
|
+
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
23
|
+
# DEALINGS IN THE SOFTWARE.
|
24
|
+
# </summary>
|
25
|
+
# ----------------------------------------------------------------------------
|
26
|
+
|
27
|
+
|
28
|
+
require_relative './email_request'
|
29
|
+
require_relative './http_request'
|
30
|
+
|
31
|
+
module AsposeEmailCloud
|
32
|
+
# Request model for get_email_as_file operation.
|
33
|
+
class GetEmailAsFileRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Converts email document from storage to specified format and returns as file
|
36
|
+
# @param [String] file_name Email document file name
|
37
|
+
# @param [String] format File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
38
|
+
# @param [String] storage Storage name
|
39
|
+
# @param [String] folder Path to folder in storage
|
40
|
+
def initialize(file_name, format, storage = nil, folder = nil)
|
41
|
+
@file_name = file_name if file_name
|
42
|
+
@format = format if format
|
43
|
+
@storage = storage if storage
|
44
|
+
@folder = folder if folder
|
45
|
+
end
|
46
|
+
|
47
|
+
def to_http_info(api_client)
|
48
|
+
# verify the required parameter 'file_name' is set
|
49
|
+
if api_client.config.client_side_validation && @file_name.nil?
|
50
|
+
raise ArgumentError, "Missing the required parameter 'file_name' when calling EmailApi.get_email_as_file"
|
51
|
+
end
|
52
|
+
|
53
|
+
# verify the required parameter 'format' is set
|
54
|
+
if api_client.config.client_side_validation && @format.nil?
|
55
|
+
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.get_email_as_file"
|
56
|
+
end
|
57
|
+
|
58
|
+
# resource path
|
59
|
+
local_var_path = '/email/{fileName}/as-file/{format}'.sub('{' + 'fileName' + '}', @file_name.to_s).sub('{' + 'format' + '}', @format.to_s)
|
60
|
+
|
61
|
+
# query parameters
|
62
|
+
query_params = {}
|
63
|
+
query_params[:storage] = @storage unless @storage.nil?
|
64
|
+
query_params[:folder] = @folder unless @folder.nil?
|
65
|
+
|
66
|
+
# form parameters
|
67
|
+
form_params = {}
|
68
|
+
|
69
|
+
# http body (model)
|
70
|
+
post_body = nil
|
71
|
+
auth_names = ['JWT']
|
72
|
+
|
73
|
+
# header parameters
|
74
|
+
header_params = {}
|
75
|
+
# HTTP header 'Accept' (if needed)
|
76
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
77
|
+
# HTTP header 'Content-Type'
|
78
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
79
|
+
|
80
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
81
|
+
header_params,
|
82
|
+
query_params,
|
83
|
+
form_params,
|
84
|
+
post_body,
|
85
|
+
auth_names)
|
86
|
+
end
|
87
|
+
end
|
88
|
+
end
|