aspose_email_cloud 18.7.0 → 19.11.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 +145 -0
- data/lib/aspose-email-cloud/api/email_api.rb +577 -0
- data/{src/asposeemailcloud → lib/aspose-email-cloud}/api_client.rb +125 -133
- data/lib/aspose-email-cloud/api_error.rb +42 -0
- data/{src/asposeemailcloud → lib/aspose-email-cloud}/configuration.rb +56 -43
- data/lib/aspose-email-cloud/models/account_base_request.rb +250 -0
- data/lib/aspose-email-cloud/models/add_attachment_request.rb +219 -0
- data/lib/aspose-email-cloud/models/append_email_account_base_request.rb +300 -0
- data/lib/aspose-email-cloud/models/append_email_base_request.rb +316 -0
- data/lib/aspose-email-cloud/models/append_email_mime_base_request.rb +335 -0
- data/lib/aspose-email-cloud/models/base_object.rb +225 -0
- data/lib/aspose-email-cloud/models/contact_format.rb +45 -0
- data/lib/aspose-email-cloud/models/create_email_request.rb +224 -0
- data/lib/aspose-email-cloud/models/create_folder_base_request.rb +297 -0
- data/lib/aspose-email-cloud/models/delete_folder_base_request.rb +302 -0
- data/lib/aspose-email-cloud/models/delete_message_base_request.rb +302 -0
- data/lib/aspose-email-cloud/models/disc_usage.rb +229 -0
- data/lib/aspose-email-cloud/models/email_account_request.rb +342 -0
- data/lib/aspose-email-cloud/models/email_document.rb +226 -0
- data/{src/asposeemailcloud → lib/aspose-email-cloud}/models/email_document_response.rb +105 -109
- data/{src/asposeemailcloud → lib/aspose-email-cloud}/models/email_properties.rb +122 -97
- data/lib/aspose-email-cloud/models/email_property.rb +256 -0
- data/{src/asposeemailcloud → lib/aspose-email-cloud}/models/email_property_response.rb +105 -109
- data/lib/aspose-email-cloud/models/error.rb +241 -0
- data/lib/aspose-email-cloud/models/error_details.rb +224 -0
- data/lib/aspose-email-cloud/models/file_version.rb +289 -0
- data/lib/aspose-email-cloud/models/file_versions.rb +210 -0
- data/lib/aspose-email-cloud/models/files_list.rb +210 -0
- data/lib/aspose-email-cloud/models/files_upload_result.rb +223 -0
- data/lib/aspose-email-cloud/models/hierarchical_object.rb +238 -0
- data/lib/aspose-email-cloud/models/hierarchical_object_request.rb +224 -0
- data/lib/aspose-email-cloud/models/hierarchical_object_response.rb +219 -0
- data/lib/aspose-email-cloud/models/indexed_hierarchical_object.rb +254 -0
- data/lib/aspose-email-cloud/models/indexed_primitive_object.rb +252 -0
- data/{src/asposeemailcloud → lib/aspose-email-cloud}/models/link.rb +138 -116
- data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object_response.rb +208 -0
- data/{src/asposeemailcloud/models/email_document.rb → lib/aspose-email-cloud/models/list_response_of_mail_server_folder.rb} +105 -98
- data/{src/asposeemailcloud/models/list_folders_response.rb → lib/aspose-email-cloud/models/list_response_of_string.rb} +105 -111
- data/{src/asposeemailcloud → lib/aspose-email-cloud}/models/mail_server_folder.rb +116 -96
- data/{src/asposeemailcloud → lib/aspose-email-cloud}/models/mime_response.rb +105 -109
- data/lib/aspose-email-cloud/models/object_exist.rb +229 -0
- data/lib/aspose-email-cloud/models/primitive_object.rb +236 -0
- data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +101 -0
- data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/copy_file_request_data.rb +92 -0
- data/lib/aspose-email-cloud/models/requests/copy_folder_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +82 -0
- data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +94 -0
- data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +82 -0
- data/lib/aspose-email-cloud/models/requests/create_folder_request_data.rb +78 -0
- data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +82 -0
- data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +96 -0
- data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +108 -0
- data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/delete_file_request_data.rb +81 -0
- data/lib/aspose-email-cloud/models/requests/delete_folder_request_data.rb +81 -0
- data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +82 -0
- data/lib/aspose-email-cloud/models/requests/download_file_request_data.rb +81 -0
- data/lib/aspose-email-cloud/models/requests/email_request.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/fetch_email_message_request_data.rb +93 -0
- data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +88 -0
- data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +95 -0
- data/lib/aspose-email-cloud/models/requests/get_calendar_request_data.rb +81 -0
- data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +100 -0
- data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +92 -0
- data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +93 -0
- data/lib/aspose-email-cloud/models/requests/get_disc_usage_request_data.rb +71 -0
- data/lib/aspose-email-cloud/models/requests/get_email_attachment_request_data.rb +88 -0
- data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +88 -0
- data/lib/aspose-email-cloud/models/requests/get_email_request_data.rb +81 -0
- data/lib/aspose-email-cloud/models/requests/get_file_versions_request_data.rb +78 -0
- data/lib/aspose-email-cloud/models/requests/get_files_list_request_data.rb +78 -0
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +88 -0
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +81 -0
- data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +80 -0
- data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +81 -0
- data/lib/aspose-email-cloud/models/requests/http_request.rb +51 -0
- data/lib/aspose-email-cloud/models/requests/list_email_folders_request_data.rb +88 -0
- data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +105 -0
- data/lib/aspose-email-cloud/models/requests/move_file_request_data.rb +92 -0
- data/lib/aspose-email-cloud/models/requests/move_folder_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/object_exists_request_data.rb +81 -0
- data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +89 -0
- data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/storage_exists_request_data.rb +75 -0
- data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +82 -0
- data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +94 -0
- data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +82 -0
- data/lib/aspose-email-cloud/models/requests/upload_file_request_data.rb +87 -0
- data/lib/aspose-email-cloud/models/save_email_account_request.rb +377 -0
- data/lib/aspose-email-cloud/models/save_o_auth_email_account_request.rb +447 -0
- data/lib/aspose-email-cloud/models/send_email_base_request.rb +267 -0
- data/lib/aspose-email-cloud/models/send_email_mime_base_request.rb +286 -0
- data/lib/aspose-email-cloud/models/set_email_property_request.rb +224 -0
- data/lib/aspose-email-cloud/models/set_message_read_flag_account_base_request.rb +302 -0
- data/{src/asposeemailcloud/models/email_property.rb → lib/aspose-email-cloud/models/storage_exist.rb} +110 -96
- data/lib/aspose-email-cloud/models/storage_file.rb +262 -0
- data/lib/aspose-email-cloud/models/storage_file_location.rb +254 -0
- data/lib/aspose-email-cloud/models/storage_folder_location.rb +219 -0
- data/{src/asposeemailcloud/models/list_response.rb → lib/aspose-email-cloud/models/value_response.rb} +105 -111
- data/{src/asposeemailcloud → lib/aspose-email-cloud}/version.rb +4 -4
- metadata +128 -38
- data/src/asposeemailcloud.rb +0 -55
- data/src/asposeemailcloud/api/email_api.rb +0 -418
- data/src/asposeemailcloud/api/email_client_api.rb +0 -960
- data/src/asposeemailcloud/api_error.rb +0 -38
- data/src/asposeemailcloud/models/http_status_code.rb +0 -76
- data/src/asposeemailcloud/models/protocol_type.rb +0 -34
- data/src/asposeemailcloud/models/saa_spose_response.rb +0 -202
- data/src/asposeemailcloud/models/security_options.rb +0 -33
@@ -0,0 +1,78 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="create_folder_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 create_folder operation.
|
33
|
+
class CreateFolderRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Create the folder
|
36
|
+
# @param [String] path Folder path to create e.g. 'folder_1/folder_2/'
|
37
|
+
# @param [String] storage_name Storage name
|
38
|
+
def initialize(path, storage_name = nil)
|
39
|
+
@path = path
|
40
|
+
@storage_name = storage_name
|
41
|
+
end
|
42
|
+
|
43
|
+
def to_http_info(api_client)
|
44
|
+
# verify the required parameter 'path' is set
|
45
|
+
if api_client.config.client_side_validation && @path.nil?
|
46
|
+
raise ArgumentError, "Missing the required parameter 'path' when calling EmailApi.create_folder"
|
47
|
+
end
|
48
|
+
|
49
|
+
# resource path
|
50
|
+
local_var_path = '/email/storage/folder/{path}'.sub('{' + 'path' + '}', @path.to_s)
|
51
|
+
|
52
|
+
# query parameters
|
53
|
+
query_params = {}
|
54
|
+
query_params[:storageName] = @storage_name unless @storage_name.nil?
|
55
|
+
|
56
|
+
# form parameters
|
57
|
+
form_params = {}
|
58
|
+
|
59
|
+
# http body (model)
|
60
|
+
post_body = nil
|
61
|
+
auth_names = ['JWT']
|
62
|
+
|
63
|
+
# header parameters
|
64
|
+
header_params = {}
|
65
|
+
# HTTP header 'Accept' (if needed)
|
66
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
67
|
+
# HTTP header 'Content-Type'
|
68
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
69
|
+
|
70
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
71
|
+
header_params,
|
72
|
+
query_params,
|
73
|
+
form_params,
|
74
|
+
post_body,
|
75
|
+
auth_names)
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="create_mapi_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 create_mapi operation.
|
33
|
+
class CreateMapiRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Create new document
|
36
|
+
# @param [String] name Document file name
|
37
|
+
# @param [HierarchicalObjectRequest] request Create document request
|
38
|
+
def initialize(name, request)
|
39
|
+
@name = name
|
40
|
+
@request = request
|
41
|
+
end
|
42
|
+
|
43
|
+
def to_http_info(api_client)
|
44
|
+
# verify the required parameter 'name' is set
|
45
|
+
if api_client.config.client_side_validation && @name.nil?
|
46
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.create_mapi"
|
47
|
+
end
|
48
|
+
|
49
|
+
# verify the required parameter 'request' is set
|
50
|
+
if api_client.config.client_side_validation && @request.nil?
|
51
|
+
raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.create_mapi"
|
52
|
+
end
|
53
|
+
|
54
|
+
# resource path
|
55
|
+
local_var_path = '/email/Mapi/{name}'.sub('{' + 'name' + '}', @name.to_s)
|
56
|
+
|
57
|
+
# query parameters
|
58
|
+
query_params = {}
|
59
|
+
|
60
|
+
# form parameters
|
61
|
+
form_params = {}
|
62
|
+
|
63
|
+
# http body (model)
|
64
|
+
post_body = api_client.object_to_http_body(@request)
|
65
|
+
auth_names = ['JWT']
|
66
|
+
|
67
|
+
# header parameters
|
68
|
+
header_params = {}
|
69
|
+
# HTTP header 'Accept' (if needed)
|
70
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
71
|
+
# HTTP header 'Content-Type'
|
72
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
73
|
+
|
74
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
75
|
+
header_params,
|
76
|
+
query_params,
|
77
|
+
form_params,
|
78
|
+
post_body,
|
79
|
+
auth_names)
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
@@ -0,0 +1,96 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="delete_calendar_property_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 delete_calendar_property operation.
|
33
|
+
class DeleteCalendarPropertyRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Deletes indexed property by index and name. To delete Reminder attachment, use path ReminderAttachment/{ReminderIndex}/{AttachmentIndex}
|
36
|
+
# @param [String] name iCalendar file name in storage
|
37
|
+
# @param [String] member_name Indexed property name
|
38
|
+
# @param [String] index Property index path
|
39
|
+
# @param [StorageFolderLocation] request Storage detail to specify iCalendar file location
|
40
|
+
def initialize(name, member_name, index, request)
|
41
|
+
@name = name
|
42
|
+
@member_name = member_name
|
43
|
+
@index = index
|
44
|
+
@request = request
|
45
|
+
end
|
46
|
+
|
47
|
+
def to_http_info(api_client)
|
48
|
+
# verify the required parameter 'name' is set
|
49
|
+
if api_client.config.client_side_validation && @name.nil?
|
50
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.delete_calendar_property"
|
51
|
+
end
|
52
|
+
|
53
|
+
# verify the required parameter 'member_name' is set
|
54
|
+
if api_client.config.client_side_validation && @member_name.nil?
|
55
|
+
raise ArgumentError, "Missing the required parameter 'member_name' when calling EmailApi.delete_calendar_property"
|
56
|
+
end
|
57
|
+
|
58
|
+
# verify the required parameter 'index' is set
|
59
|
+
if api_client.config.client_side_validation && @index.nil?
|
60
|
+
raise ArgumentError, "Missing the required parameter 'index' when calling EmailApi.delete_calendar_property"
|
61
|
+
end
|
62
|
+
|
63
|
+
# verify the required parameter 'request' is set
|
64
|
+
if api_client.config.client_side_validation && @request.nil?
|
65
|
+
raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.delete_calendar_property"
|
66
|
+
end
|
67
|
+
|
68
|
+
# resource path
|
69
|
+
local_var_path = '/email/Calendar/{name}/properties/{memberName}/{index}'.sub('{' + 'name' + '}', @name.to_s).sub('{' + 'memberName' + '}', @member_name.to_s).sub('{' + 'index' + '}', @index.to_s)
|
70
|
+
|
71
|
+
# query parameters
|
72
|
+
query_params = {}
|
73
|
+
|
74
|
+
# form parameters
|
75
|
+
form_params = {}
|
76
|
+
|
77
|
+
# http body (model)
|
78
|
+
post_body = api_client.object_to_http_body(@request)
|
79
|
+
auth_names = ['JWT']
|
80
|
+
|
81
|
+
# header parameters
|
82
|
+
header_params = {}
|
83
|
+
# HTTP header 'Accept' (if needed)
|
84
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
85
|
+
# HTTP header 'Content-Type'
|
86
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
87
|
+
|
88
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
89
|
+
header_params,
|
90
|
+
query_params,
|
91
|
+
form_params,
|
92
|
+
post_body,
|
93
|
+
auth_names)
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
@@ -0,0 +1,108 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="delete_contact_property_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 delete_contact_property operation.
|
33
|
+
class DeleteContactPropertyRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Delete property from indexed property list
|
36
|
+
# @param [String] format Contact document format
|
37
|
+
# @param [String] name Contact document file name
|
38
|
+
# @param [String] member_name Indexed property name
|
39
|
+
# @param [Integer] index Property index
|
40
|
+
# @param [StorageFolderLocation] folder Calendar document location in storage information
|
41
|
+
def initialize(format, name, member_name, index, folder)
|
42
|
+
@format = format
|
43
|
+
@name = name
|
44
|
+
@member_name = member_name
|
45
|
+
@index = index
|
46
|
+
@folder = folder
|
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.delete_contact_property"
|
53
|
+
end
|
54
|
+
|
55
|
+
# verify enum value
|
56
|
+
if api_client.config.client_side_validation && !['VCard', 'WebDav', 'Msg'].include?(@format)
|
57
|
+
raise ArgumentError, "invalid value for 'format', must be one of VCard, WebDav, Msg"
|
58
|
+
end
|
59
|
+
|
60
|
+
# verify the required parameter 'name' is set
|
61
|
+
if api_client.config.client_side_validation && @name.nil?
|
62
|
+
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.delete_contact_property"
|
63
|
+
end
|
64
|
+
|
65
|
+
# verify the required parameter 'member_name' is set
|
66
|
+
if api_client.config.client_side_validation && @member_name.nil?
|
67
|
+
raise ArgumentError, "Missing the required parameter 'member_name' when calling EmailApi.delete_contact_property"
|
68
|
+
end
|
69
|
+
|
70
|
+
# verify the required parameter 'index' is set
|
71
|
+
if api_client.config.client_side_validation && @index.nil?
|
72
|
+
raise ArgumentError, "Missing the required parameter 'index' when calling EmailApi.delete_contact_property"
|
73
|
+
end
|
74
|
+
|
75
|
+
# verify the required parameter 'folder' is set
|
76
|
+
if api_client.config.client_side_validation && @folder.nil?
|
77
|
+
raise ArgumentError, "Missing the required parameter 'folder' when calling EmailApi.delete_contact_property"
|
78
|
+
end
|
79
|
+
|
80
|
+
# resource path
|
81
|
+
local_var_path = '/email/Contact/{format}/{name}/properties/{memberName}/{index}'.sub('{' + 'format' + '}', @format.to_s).sub('{' + 'name' + '}', @name.to_s).sub('{' + 'memberName' + '}', @member_name.to_s).sub('{' + 'index' + '}', @index.to_s)
|
82
|
+
|
83
|
+
# query parameters
|
84
|
+
query_params = {}
|
85
|
+
|
86
|
+
# form parameters
|
87
|
+
form_params = {}
|
88
|
+
|
89
|
+
# http body (model)
|
90
|
+
post_body = api_client.object_to_http_body(@folder)
|
91
|
+
auth_names = ['JWT']
|
92
|
+
|
93
|
+
# header parameters
|
94
|
+
header_params = {}
|
95
|
+
# HTTP header 'Accept' (if needed)
|
96
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
97
|
+
# HTTP header 'Content-Type'
|
98
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
99
|
+
|
100
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
101
|
+
header_params,
|
102
|
+
query_params,
|
103
|
+
form_params,
|
104
|
+
post_body,
|
105
|
+
auth_names)
|
106
|
+
end
|
107
|
+
end
|
108
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="delete_email_folder_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 delete_email_folder operation.
|
33
|
+
class DeleteEmailFolderRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Delete a folder in email account
|
36
|
+
# @param [DeleteFolderBaseRequest] request Delete folder request
|
37
|
+
def initialize(request)
|
38
|
+
@request = request
|
39
|
+
end
|
40
|
+
|
41
|
+
def to_http_info(api_client)
|
42
|
+
# verify the required parameter 'request' is set
|
43
|
+
if api_client.config.client_side_validation && @request.nil?
|
44
|
+
raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.delete_email_folder"
|
45
|
+
end
|
46
|
+
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/email/client/DeleteFolder'
|
49
|
+
|
50
|
+
# query parameters
|
51
|
+
query_params = {}
|
52
|
+
|
53
|
+
# form parameters
|
54
|
+
form_params = {}
|
55
|
+
|
56
|
+
# http body (model)
|
57
|
+
post_body = api_client.object_to_http_body(@request)
|
58
|
+
auth_names = ['JWT']
|
59
|
+
|
60
|
+
# header parameters
|
61
|
+
header_params = {}
|
62
|
+
# HTTP header 'Accept' (if needed)
|
63
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
64
|
+
# HTTP header 'Content-Type'
|
65
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
66
|
+
|
67
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
68
|
+
header_params,
|
69
|
+
query_params,
|
70
|
+
form_params,
|
71
|
+
post_body,
|
72
|
+
auth_names)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
|
2
|
+
# ----------------------------------------------------------------------------
|
3
|
+
# <copyright company="Aspose" file="delete_email_message_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 delete_email_message operation.
|
33
|
+
class DeleteEmailMessageRequestData < EmailRequest
|
34
|
+
|
35
|
+
# Delete message from email account by id
|
36
|
+
# @param [DeleteMessageBaseRequest] request Delete message request
|
37
|
+
def initialize(request)
|
38
|
+
@request = request
|
39
|
+
end
|
40
|
+
|
41
|
+
def to_http_info(api_client)
|
42
|
+
# verify the required parameter 'request' is set
|
43
|
+
if api_client.config.client_side_validation && @request.nil?
|
44
|
+
raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.delete_email_message"
|
45
|
+
end
|
46
|
+
|
47
|
+
# resource path
|
48
|
+
local_var_path = '/email/client/DeleteMessage'
|
49
|
+
|
50
|
+
# query parameters
|
51
|
+
query_params = {}
|
52
|
+
|
53
|
+
# form parameters
|
54
|
+
form_params = {}
|
55
|
+
|
56
|
+
# http body (model)
|
57
|
+
post_body = api_client.object_to_http_body(@request)
|
58
|
+
auth_names = ['JWT']
|
59
|
+
|
60
|
+
# header parameters
|
61
|
+
header_params = {}
|
62
|
+
# HTTP header 'Accept' (if needed)
|
63
|
+
header_params['Accept'] = select_header_accept(['application/json'])
|
64
|
+
# HTTP header 'Content-Type'
|
65
|
+
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
66
|
+
|
67
|
+
AsposeEmailCloud::HttpRequest.new(local_var_path,
|
68
|
+
header_params,
|
69
|
+
query_params,
|
70
|
+
form_params,
|
71
|
+
post_body,
|
72
|
+
auth_names)
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|