aspose_email_cloud 20.1.0 → 20.2.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 +10 -0
- data/lib/aspose-email-cloud/api/email_api.rb +24 -0
- data/lib/aspose-email-cloud/models/discover_email_config_oauth.rb +388 -0
- data/lib/aspose-email-cloud/models/discover_email_config_password.rb +301 -0
- data/lib/aspose-email-cloud/models/discover_email_config_rq.rb +265 -0
- data/lib/aspose-email-cloud/models/email_account_config.rb +320 -0
- data/lib/aspose-email-cloud/models/email_account_config_list.rb +212 -0
- data/lib/aspose-email-cloud/models/list_response_of_email_account_config.rb +211 -0
- data/lib/aspose-email-cloud/models/name_value_pair.rb +222 -0
- data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_model_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_complete_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_expand_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_format_request_data.rb +37 -15
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_genderize_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/ai_name_match_request_data.rb +38 -16
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/ai_name_parse_request_data.rb +32 -13
- data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/append_email_model_message_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/convert_email_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/copy_file_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/copy_folder_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +14 -7
- data/lib/aspose-email-cloud/models/requests/create_folder_request_data.rb +12 -5
- data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/delete_file_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/delete_folder_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/discover_email_config_oauth_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/discover_email_config_password_request_data.rb +79 -0
- data/lib/aspose-email-cloud/models/requests/discover_email_config_request_data.rb +86 -0
- data/lib/aspose-email-cloud/models/requests/download_file_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/fetch_email_message_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/fetch_email_model_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +24 -11
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_as_alternate_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_list_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_calendar_model_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/get_calendar_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/get_contact_model_list_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/get_contact_model_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_disc_usage_request_data.rb +6 -2
- data/lib/aspose-email-cloud/models/requests/get_email_as_file_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/get_email_attachment_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/get_email_model_list_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/get_email_model_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +22 -9
- data/lib/aspose-email-cloud/models/requests/get_email_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/get_file_versions_request_data.rb +12 -5
- data/lib/aspose-email-cloud/models/requests/get_files_list_request_data.rb +12 -5
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +21 -8
- data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/list_email_folders_request_data.rb +27 -11
- data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +39 -17
- data/lib/aspose-email-cloud/models/requests/list_email_models_request_data.rb +39 -17
- data/lib/aspose-email-cloud/models/requests/move_file_request_data.rb +28 -12
- data/lib/aspose-email-cloud/models/requests/move_folder_request_data.rb +23 -10
- data/lib/aspose-email-cloud/models/requests/object_exists_request_data.rb +17 -7
- data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/save_contact_model_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/save_email_model_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/send_email_model_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/storage_exists_request_data.rb +7 -3
- data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +18 -8
- data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +13 -6
- data/lib/aspose-email-cloud/models/requests/upload_file_request_data.rb +18 -8
- data/lib/aspose-email-cloud/version.rb +1 -1
- metadata +12 -2
@@ -32,15 +32,19 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for create_email_folder operation.
|
33
33
|
class CreateEmailFolderRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Create folder request
|
36
|
+
# @return [CreateFolderBaseRequest]
|
37
|
+
attr_accessor :request
|
38
|
+
|
35
39
|
# Create new folder in email account
|
36
40
|
# @param [CreateFolderBaseRequest] request Create folder request
|
37
41
|
def initialize(request)
|
38
|
-
|
42
|
+
self.request = request if request
|
39
43
|
end
|
40
44
|
|
41
45
|
def to_http_info(api_client)
|
42
46
|
# verify the required parameter 'request' is set
|
43
|
-
if api_client.config.client_side_validation &&
|
47
|
+
if api_client.config.client_side_validation && self.request.nil?
|
44
48
|
raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.create_email_folder"
|
45
49
|
end
|
46
50
|
|
@@ -54,7 +58,7 @@ module AsposeEmailCloud
|
|
54
58
|
form_params = {}
|
55
59
|
|
56
60
|
# http body (model)
|
57
|
-
post_body = api_client.object_to_http_body(
|
61
|
+
post_body = api_client.object_to_http_body(self.request)
|
58
62
|
auth_names = ['JWT']
|
59
63
|
|
60
64
|
# header parameters
|
@@ -32,27 +32,34 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for create_email operation.
|
33
33
|
class CreateEmailRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Email document file name in storage
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :file_name
|
38
|
+
# An email document and optional Storage info to specify where the file should be located
|
39
|
+
# @return [CreateEmailRequest]
|
40
|
+
attr_accessor :request
|
41
|
+
|
35
42
|
# Create an email document
|
36
43
|
# @param [String] file_name Email document file name in storage
|
37
|
-
# @param [CreateEmailRequest] request An email document and optional Storage info to specify where the file should be located
|
44
|
+
# @param [CreateEmailRequest] request An email document and optional Storage info to specify where the file should be located
|
38
45
|
def initialize(file_name, request)
|
39
|
-
|
40
|
-
|
46
|
+
self.file_name = file_name if file_name
|
47
|
+
self.request = request if request
|
41
48
|
end
|
42
49
|
|
43
50
|
def to_http_info(api_client)
|
44
51
|
# verify the required parameter 'file_name' is set
|
45
|
-
if api_client.config.client_side_validation &&
|
52
|
+
if api_client.config.client_side_validation && self.file_name.nil?
|
46
53
|
raise ArgumentError, "Missing the required parameter 'file_name' when calling EmailApi.create_email"
|
47
54
|
end
|
48
55
|
|
49
56
|
# verify the required parameter 'request' is set
|
50
|
-
if api_client.config.client_side_validation &&
|
57
|
+
if api_client.config.client_side_validation && self.request.nil?
|
51
58
|
raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.create_email"
|
52
59
|
end
|
53
60
|
|
54
61
|
# resource path
|
55
|
-
local_var_path = '/email/{fileName}'.sub('{' + 'fileName' + '}',
|
62
|
+
local_var_path = '/email/{fileName}'.sub('{' + 'fileName' + '}', self.file_name.to_s)
|
56
63
|
|
57
64
|
# query parameters
|
58
65
|
query_params = {}
|
@@ -61,7 +68,7 @@ module AsposeEmailCloud
|
|
61
68
|
form_params = {}
|
62
69
|
|
63
70
|
# http body (model)
|
64
|
-
post_body = api_client.object_to_http_body(
|
71
|
+
post_body = api_client.object_to_http_body(self.request)
|
65
72
|
auth_names = ['JWT']
|
66
73
|
|
67
74
|
# header parameters
|
@@ -32,26 +32,33 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for create_folder operation.
|
33
33
|
class CreateFolderRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Folder path to create e.g. 'folder_1/folder_2/'
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :path
|
38
|
+
# Storage name
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :storage_name
|
41
|
+
|
35
42
|
# Create the folder
|
36
43
|
# @param [String] path Folder path to create e.g. 'folder_1/folder_2/'
|
37
44
|
# @param [String] storage_name Storage name
|
38
45
|
def initialize(path, storage_name = nil)
|
39
|
-
|
40
|
-
|
46
|
+
self.path = path if path
|
47
|
+
self.storage_name = storage_name if storage_name
|
41
48
|
end
|
42
49
|
|
43
50
|
def to_http_info(api_client)
|
44
51
|
# verify the required parameter 'path' is set
|
45
|
-
if api_client.config.client_side_validation &&
|
52
|
+
if api_client.config.client_side_validation && self.path.nil?
|
46
53
|
raise ArgumentError, "Missing the required parameter 'path' when calling EmailApi.create_folder"
|
47
54
|
end
|
48
55
|
|
49
56
|
# resource path
|
50
|
-
local_var_path = '/email/storage/folder/{path}'.sub('{' + 'path' + '}',
|
57
|
+
local_var_path = '/email/storage/folder/{path}'.sub('{' + 'path' + '}', self.path.to_s)
|
51
58
|
|
52
59
|
# query parameters
|
53
60
|
query_params = {}
|
54
|
-
query_params[:storageName] =
|
61
|
+
query_params[:storageName] = self.storage_name unless self.storage_name.nil?
|
55
62
|
|
56
63
|
# form parameters
|
57
64
|
form_params = {}
|
@@ -32,27 +32,34 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for create_mapi operation.
|
33
33
|
class CreateMapiRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Document file name
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :name
|
38
|
+
# Create document request
|
39
|
+
# @return [HierarchicalObjectRequest]
|
40
|
+
attr_accessor :request
|
41
|
+
|
35
42
|
# Create new document
|
36
43
|
# @param [String] name Document file name
|
37
44
|
# @param [HierarchicalObjectRequest] request Create document request
|
38
45
|
def initialize(name, request)
|
39
|
-
|
40
|
-
|
46
|
+
self.name = name if name
|
47
|
+
self.request = request if request
|
41
48
|
end
|
42
49
|
|
43
50
|
def to_http_info(api_client)
|
44
51
|
# verify the required parameter 'name' is set
|
45
|
-
if api_client.config.client_side_validation &&
|
52
|
+
if api_client.config.client_side_validation && self.name.nil?
|
46
53
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.create_mapi"
|
47
54
|
end
|
48
55
|
|
49
56
|
# verify the required parameter 'request' is set
|
50
|
-
if api_client.config.client_side_validation &&
|
57
|
+
if api_client.config.client_side_validation && self.request.nil?
|
51
58
|
raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.create_mapi"
|
52
59
|
end
|
53
60
|
|
54
61
|
# resource path
|
55
|
-
local_var_path = '/email/Mapi/{name}'.sub('{' + 'name' + '}',
|
62
|
+
local_var_path = '/email/Mapi/{name}'.sub('{' + 'name' + '}', self.name.to_s)
|
56
63
|
|
57
64
|
# query parameters
|
58
65
|
query_params = {}
|
@@ -61,7 +68,7 @@ module AsposeEmailCloud
|
|
61
68
|
form_params = {}
|
62
69
|
|
63
70
|
# http body (model)
|
64
|
-
post_body = api_client.object_to_http_body(
|
71
|
+
post_body = api_client.object_to_http_body(self.request)
|
65
72
|
auth_names = ['JWT']
|
66
73
|
|
67
74
|
# header parameters
|
@@ -32,41 +32,54 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for delete_calendar_property operation.
|
33
33
|
class DeleteCalendarPropertyRequestData < EmailRequest
|
34
34
|
|
35
|
+
# iCalendar file name in storage
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :name
|
38
|
+
# Indexed property name
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :member_name
|
41
|
+
# Property index path
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :index
|
44
|
+
# Storage detail to specify iCalendar file location
|
45
|
+
# @return [StorageFolderLocation]
|
46
|
+
attr_accessor :request
|
47
|
+
|
35
48
|
# Deletes indexed property by index and name. To delete Reminder attachment, use path ReminderAttachment/{ReminderIndex}/{AttachmentIndex}
|
36
49
|
# @param [String] name iCalendar file name in storage
|
37
50
|
# @param [String] member_name Indexed property name
|
38
51
|
# @param [String] index Property index path
|
39
52
|
# @param [StorageFolderLocation] request Storage detail to specify iCalendar file location
|
40
53
|
def initialize(name, member_name, index, request)
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
54
|
+
self.name = name if name
|
55
|
+
self.member_name = member_name if member_name
|
56
|
+
self.index = index if index
|
57
|
+
self.request = request if request
|
45
58
|
end
|
46
59
|
|
47
60
|
def to_http_info(api_client)
|
48
61
|
# verify the required parameter 'name' is set
|
49
|
-
if api_client.config.client_side_validation &&
|
62
|
+
if api_client.config.client_side_validation && self.name.nil?
|
50
63
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.delete_calendar_property"
|
51
64
|
end
|
52
65
|
|
53
66
|
# verify the required parameter 'member_name' is set
|
54
|
-
if api_client.config.client_side_validation &&
|
67
|
+
if api_client.config.client_side_validation && self.member_name.nil?
|
55
68
|
raise ArgumentError, "Missing the required parameter 'member_name' when calling EmailApi.delete_calendar_property"
|
56
69
|
end
|
57
70
|
|
58
71
|
# verify the required parameter 'index' is set
|
59
|
-
if api_client.config.client_side_validation &&
|
72
|
+
if api_client.config.client_side_validation && self.index.nil?
|
60
73
|
raise ArgumentError, "Missing the required parameter 'index' when calling EmailApi.delete_calendar_property"
|
61
74
|
end
|
62
75
|
|
63
76
|
# verify the required parameter 'request' is set
|
64
|
-
if api_client.config.client_side_validation &&
|
77
|
+
if api_client.config.client_side_validation && self.request.nil?
|
65
78
|
raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.delete_calendar_property"
|
66
79
|
end
|
67
80
|
|
68
81
|
# resource path
|
69
|
-
local_var_path = '/email/Calendar/{name}/properties/{memberName}/{index}'.sub('{' + 'name' + '}',
|
82
|
+
local_var_path = '/email/Calendar/{name}/properties/{memberName}/{index}'.sub('{' + 'name' + '}', self.name.to_s).sub('{' + 'memberName' + '}', self.member_name.to_s).sub('{' + 'index' + '}', self.index.to_s)
|
70
83
|
|
71
84
|
# query parameters
|
72
85
|
query_params = {}
|
@@ -75,7 +88,7 @@ module AsposeEmailCloud
|
|
75
88
|
form_params = {}
|
76
89
|
|
77
90
|
# http body (model)
|
78
|
-
post_body = api_client.object_to_http_body(
|
91
|
+
post_body = api_client.object_to_http_body(self.request)
|
79
92
|
auth_names = ['JWT']
|
80
93
|
|
81
94
|
# header parameters
|
@@ -32,6 +32,22 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for delete_contact_property operation.
|
33
33
|
class DeleteContactPropertyRequestData < EmailRequest
|
34
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
|
+
# Indexed property name
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :member_name
|
44
|
+
# Property index
|
45
|
+
# @return [Integer]
|
46
|
+
attr_accessor :index
|
47
|
+
# Calendar document location in storage information
|
48
|
+
# @return [StorageFolderLocation]
|
49
|
+
attr_accessor :folder
|
50
|
+
|
35
51
|
# Delete property from indexed property list
|
36
52
|
# @param [String] format Contact document format Enum, available values: VCard, WebDav, Msg
|
37
53
|
# @param [String] name Contact document file name
|
@@ -39,41 +55,41 @@ module AsposeEmailCloud
|
|
39
55
|
# @param [Integer] index Property index
|
40
56
|
# @param [StorageFolderLocation] folder Calendar document location in storage information
|
41
57
|
def initialize(format, name, member_name, index, folder)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
58
|
+
self.format = format if format
|
59
|
+
self.name = name if name
|
60
|
+
self.member_name = member_name if member_name
|
61
|
+
self.index = index if index
|
62
|
+
self.folder = folder if folder
|
47
63
|
end
|
48
64
|
|
49
65
|
def to_http_info(api_client)
|
50
66
|
# verify the required parameter 'format' is set
|
51
|
-
if api_client.config.client_side_validation &&
|
67
|
+
if api_client.config.client_side_validation && self.format.nil?
|
52
68
|
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.delete_contact_property"
|
53
69
|
end
|
54
70
|
|
55
71
|
# verify the required parameter 'name' is set
|
56
|
-
if api_client.config.client_side_validation &&
|
72
|
+
if api_client.config.client_side_validation && self.name.nil?
|
57
73
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.delete_contact_property"
|
58
74
|
end
|
59
75
|
|
60
76
|
# verify the required parameter 'member_name' is set
|
61
|
-
if api_client.config.client_side_validation &&
|
77
|
+
if api_client.config.client_side_validation && self.member_name.nil?
|
62
78
|
raise ArgumentError, "Missing the required parameter 'member_name' when calling EmailApi.delete_contact_property"
|
63
79
|
end
|
64
80
|
|
65
81
|
# verify the required parameter 'index' is set
|
66
|
-
if api_client.config.client_side_validation &&
|
82
|
+
if api_client.config.client_side_validation && self.index.nil?
|
67
83
|
raise ArgumentError, "Missing the required parameter 'index' when calling EmailApi.delete_contact_property"
|
68
84
|
end
|
69
85
|
|
70
86
|
# verify the required parameter 'folder' is set
|
71
|
-
if api_client.config.client_side_validation &&
|
87
|
+
if api_client.config.client_side_validation && self.folder.nil?
|
72
88
|
raise ArgumentError, "Missing the required parameter 'folder' when calling EmailApi.delete_contact_property"
|
73
89
|
end
|
74
90
|
|
75
91
|
# resource path
|
76
|
-
local_var_path = '/email/Contact/{format}/{name}/properties/{memberName}/{index}'.sub('{' + 'format' + '}',
|
92
|
+
local_var_path = '/email/Contact/{format}/{name}/properties/{memberName}/{index}'.sub('{' + 'format' + '}', self.format.to_s).sub('{' + 'name' + '}', self.name.to_s).sub('{' + 'memberName' + '}', self.member_name.to_s).sub('{' + 'index' + '}', self.index.to_s)
|
77
93
|
|
78
94
|
# query parameters
|
79
95
|
query_params = {}
|
@@ -82,7 +98,7 @@ module AsposeEmailCloud
|
|
82
98
|
form_params = {}
|
83
99
|
|
84
100
|
# http body (model)
|
85
|
-
post_body = api_client.object_to_http_body(
|
101
|
+
post_body = api_client.object_to_http_body(self.folder)
|
86
102
|
auth_names = ['JWT']
|
87
103
|
|
88
104
|
# header parameters
|
@@ -32,15 +32,19 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for delete_email_folder operation.
|
33
33
|
class DeleteEmailFolderRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Delete folder request
|
36
|
+
# @return [DeleteFolderBaseRequest]
|
37
|
+
attr_accessor :request
|
38
|
+
|
35
39
|
# Delete a folder in email account
|
36
40
|
# @param [DeleteFolderBaseRequest] request Delete folder request
|
37
41
|
def initialize(request)
|
38
|
-
|
42
|
+
self.request = request if request
|
39
43
|
end
|
40
44
|
|
41
45
|
def to_http_info(api_client)
|
42
46
|
# verify the required parameter 'request' is set
|
43
|
-
if api_client.config.client_side_validation &&
|
47
|
+
if api_client.config.client_side_validation && self.request.nil?
|
44
48
|
raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.delete_email_folder"
|
45
49
|
end
|
46
50
|
|
@@ -54,7 +58,7 @@ module AsposeEmailCloud
|
|
54
58
|
form_params = {}
|
55
59
|
|
56
60
|
# http body (model)
|
57
|
-
post_body = api_client.object_to_http_body(
|
61
|
+
post_body = api_client.object_to_http_body(self.request)
|
58
62
|
auth_names = ['JWT']
|
59
63
|
|
60
64
|
# header parameters
|
@@ -32,15 +32,19 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for delete_email_message operation.
|
33
33
|
class DeleteEmailMessageRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Delete message request
|
36
|
+
# @return [DeleteMessageBaseRequest]
|
37
|
+
attr_accessor :request
|
38
|
+
|
35
39
|
# Delete message from email account by id
|
36
40
|
# @param [DeleteMessageBaseRequest] request Delete message request
|
37
41
|
def initialize(request)
|
38
|
-
|
42
|
+
self.request = request if request
|
39
43
|
end
|
40
44
|
|
41
45
|
def to_http_info(api_client)
|
42
46
|
# verify the required parameter 'request' is set
|
43
|
-
if api_client.config.client_side_validation &&
|
47
|
+
if api_client.config.client_side_validation && self.request.nil?
|
44
48
|
raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.delete_email_message"
|
45
49
|
end
|
46
50
|
|
@@ -54,7 +58,7 @@ module AsposeEmailCloud
|
|
54
58
|
form_params = {}
|
55
59
|
|
56
60
|
# http body (model)
|
57
|
-
post_body = api_client.object_to_http_body(
|
61
|
+
post_body = api_client.object_to_http_body(self.request)
|
58
62
|
auth_names = ['JWT']
|
59
63
|
|
60
64
|
# header parameters
|
@@ -32,29 +32,39 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for delete_file operation.
|
33
33
|
class DeleteFileRequestData < EmailRequest
|
34
34
|
|
35
|
+
# File path e.g. '/folder/file.ext'
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :path
|
38
|
+
# Storage name
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :storage_name
|
41
|
+
# File version ID to delete
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :version_id
|
44
|
+
|
35
45
|
# Delete file
|
36
46
|
# @param [String] path File path e.g. '/folder/file.ext'
|
37
47
|
# @param [String] storage_name Storage name
|
38
48
|
# @param [String] version_id File version ID to delete
|
39
49
|
def initialize(path, storage_name = nil, version_id = nil)
|
40
|
-
|
41
|
-
|
42
|
-
|
50
|
+
self.path = path if path
|
51
|
+
self.storage_name = storage_name if storage_name
|
52
|
+
self.version_id = version_id if version_id
|
43
53
|
end
|
44
54
|
|
45
55
|
def to_http_info(api_client)
|
46
56
|
# verify the required parameter 'path' is set
|
47
|
-
if api_client.config.client_side_validation &&
|
57
|
+
if api_client.config.client_side_validation && self.path.nil?
|
48
58
|
raise ArgumentError, "Missing the required parameter 'path' when calling EmailApi.delete_file"
|
49
59
|
end
|
50
60
|
|
51
61
|
# resource path
|
52
|
-
local_var_path = '/email/storage/file/{path}'.sub('{' + 'path' + '}',
|
62
|
+
local_var_path = '/email/storage/file/{path}'.sub('{' + 'path' + '}', self.path.to_s)
|
53
63
|
|
54
64
|
# query parameters
|
55
65
|
query_params = {}
|
56
|
-
query_params[:storageName] =
|
57
|
-
query_params[:versionId] =
|
66
|
+
query_params[:storageName] = self.storage_name unless self.storage_name.nil?
|
67
|
+
query_params[:versionId] = self.version_id unless self.version_id.nil?
|
58
68
|
|
59
69
|
# form parameters
|
60
70
|
form_params = {}
|
@@ -32,29 +32,39 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for delete_folder operation.
|
33
33
|
class DeleteFolderRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Folder path e.g. '/folder'
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :path
|
38
|
+
# Storage name
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :storage_name
|
41
|
+
# Enable to delete folders, subfolders and files
|
42
|
+
# @return [BOOLEAN]
|
43
|
+
attr_accessor :recursive
|
44
|
+
|
35
45
|
# Delete folder
|
36
46
|
# @param [String] path Folder path e.g. '/folder'
|
37
47
|
# @param [String] storage_name Storage name
|
38
48
|
# @param [BOOLEAN] recursive Enable to delete folders, subfolders and files
|
39
49
|
def initialize(path, storage_name = nil, recursive = nil)
|
40
|
-
|
41
|
-
|
42
|
-
|
50
|
+
self.path = path if path
|
51
|
+
self.storage_name = storage_name if storage_name
|
52
|
+
self.recursive = recursive if recursive
|
43
53
|
end
|
44
54
|
|
45
55
|
def to_http_info(api_client)
|
46
56
|
# verify the required parameter 'path' is set
|
47
|
-
if api_client.config.client_side_validation &&
|
57
|
+
if api_client.config.client_side_validation && self.path.nil?
|
48
58
|
raise ArgumentError, "Missing the required parameter 'path' when calling EmailApi.delete_folder"
|
49
59
|
end
|
50
60
|
|
51
61
|
# resource path
|
52
|
-
local_var_path = '/email/storage/folder/{path}'.sub('{' + 'path' + '}',
|
62
|
+
local_var_path = '/email/storage/folder/{path}'.sub('{' + 'path' + '}', self.path.to_s)
|
53
63
|
|
54
64
|
# query parameters
|
55
65
|
query_params = {}
|
56
|
-
query_params[:storageName] =
|
57
|
-
query_params[:recursive] =
|
66
|
+
query_params[:storageName] = self.storage_name unless self.storage_name.nil?
|
67
|
+
query_params[:recursive] = self.recursive unless self.recursive.nil?
|
58
68
|
|
59
69
|
# form parameters
|
60
70
|
form_params = {}
|