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,6 +32,22 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for fetch_email_model operation.
|
33
33
|
class FetchEmailModelRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Message identifier
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :message_id
|
38
|
+
# Email account
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :first_account
|
41
|
+
# Additional email account (should be specified for POP/IMAP accounts and should be SMTP account)
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :second_account
|
44
|
+
# Storage name where account file(s) located
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :storage
|
47
|
+
# Folder in storage where account file(s) located
|
48
|
+
# @return [String]
|
49
|
+
attr_accessor :storage_folder
|
50
|
+
|
35
51
|
# Fetch message model from email account
|
36
52
|
# @param [String] message_id Message identifier
|
37
53
|
# @param [String] first_account Email account
|
@@ -39,21 +55,21 @@ module AsposeEmailCloud
|
|
39
55
|
# @param [String] storage Storage name where account file(s) located
|
40
56
|
# @param [String] storage_folder Folder in storage where account file(s) located
|
41
57
|
def initialize(message_id, first_account, second_account = nil, storage = nil, storage_folder = nil)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
58
|
+
self.message_id = message_id if message_id
|
59
|
+
self.first_account = first_account if first_account
|
60
|
+
self.second_account = second_account if second_account
|
61
|
+
self.storage = storage if storage
|
62
|
+
self.storage_folder = storage_folder if storage_folder
|
47
63
|
end
|
48
64
|
|
49
65
|
def to_http_info(api_client)
|
50
66
|
# verify the required parameter 'message_id' is set
|
51
|
-
if api_client.config.client_side_validation &&
|
67
|
+
if api_client.config.client_side_validation && self.message_id.nil?
|
52
68
|
raise ArgumentError, "Missing the required parameter 'message_id' when calling EmailApi.fetch_email_model"
|
53
69
|
end
|
54
70
|
|
55
71
|
# verify the required parameter 'first_account' is set
|
56
|
-
if api_client.config.client_side_validation &&
|
72
|
+
if api_client.config.client_side_validation && self.first_account.nil?
|
57
73
|
raise ArgumentError, "Missing the required parameter 'first_account' when calling EmailApi.fetch_email_model"
|
58
74
|
end
|
59
75
|
|
@@ -62,11 +78,11 @@ module AsposeEmailCloud
|
|
62
78
|
|
63
79
|
# query parameters
|
64
80
|
query_params = {}
|
65
|
-
query_params[:messageId] =
|
66
|
-
query_params[:firstAccount] =
|
67
|
-
query_params[:secondAccount] =
|
68
|
-
query_params[:storage] =
|
69
|
-
query_params[:storageFolder] =
|
81
|
+
query_params[:messageId] = self.message_id
|
82
|
+
query_params[:firstAccount] = self.first_account
|
83
|
+
query_params[:secondAccount] = self.second_account unless self.second_account.nil?
|
84
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
85
|
+
query_params[:storageFolder] = self.storage_folder unless self.storage_folder.nil?
|
70
86
|
|
71
87
|
# form parameters
|
72
88
|
form_params = {}
|
@@ -32,36 +32,49 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_calendar_attachment operation.
|
33
33
|
class GetCalendarAttachmentRequestData < EmailRequest
|
34
34
|
|
35
|
+
# iCalendar document file name
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :name
|
38
|
+
# Attachment name or index
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :attachment
|
41
|
+
# Path to folder in storage
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :folder
|
44
|
+
# Storage name
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :storage
|
47
|
+
|
35
48
|
# Get iCalendar document attachment by name
|
36
49
|
# @param [String] name iCalendar document file name
|
37
50
|
# @param [String] attachment Attachment name or index
|
38
51
|
# @param [String] folder Path to folder in storage
|
39
52
|
# @param [String] storage Storage name
|
40
53
|
def initialize(name, attachment, folder = nil, storage = nil)
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
54
|
+
self.name = name if name
|
55
|
+
self.attachment = attachment if attachment
|
56
|
+
self.folder = folder if folder
|
57
|
+
self.storage = storage if storage
|
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.get_calendar_attachment"
|
51
64
|
end
|
52
65
|
|
53
66
|
# verify the required parameter 'attachment' is set
|
54
|
-
if api_client.config.client_side_validation &&
|
67
|
+
if api_client.config.client_side_validation && self.attachment.nil?
|
55
68
|
raise ArgumentError, "Missing the required parameter 'attachment' when calling EmailApi.get_calendar_attachment"
|
56
69
|
end
|
57
70
|
|
58
71
|
# resource path
|
59
|
-
local_var_path = '/email/Calendar/{name}/attachments/{attachment}'.sub('{' + 'name' + '}',
|
72
|
+
local_var_path = '/email/Calendar/{name}/attachments/{attachment}'.sub('{' + 'name' + '}', self.name.to_s).sub('{' + 'attachment' + '}', self.attachment.to_s)
|
60
73
|
|
61
74
|
# query parameters
|
62
75
|
query_params = {}
|
63
|
-
query_params[:folder] =
|
64
|
-
query_params[:storage] =
|
76
|
+
query_params[:folder] = self.folder unless self.folder.nil?
|
77
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
65
78
|
|
66
79
|
# form parameters
|
67
80
|
form_params = {}
|
@@ -73,7 +86,7 @@ module AsposeEmailCloud
|
|
73
86
|
# header parameters
|
74
87
|
header_params = {}
|
75
88
|
# HTTP header 'Accept' (if needed)
|
76
|
-
header_params['Accept'] = select_header_accept(['
|
89
|
+
header_params['Accept'] = select_header_accept(['multipart/form-data'])
|
77
90
|
# HTTP header 'Content-Type'
|
78
91
|
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
79
92
|
|
@@ -32,31 +32,44 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_calendar_list operation.
|
33
33
|
class GetCalendarListRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Path to folder in storage
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :folder
|
38
|
+
# Count of items on page
|
39
|
+
# @return [Integer]
|
40
|
+
attr_accessor :items_per_page
|
41
|
+
# Page number
|
42
|
+
# @return [Integer]
|
43
|
+
attr_accessor :page_number
|
44
|
+
# Storage name
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :storage
|
47
|
+
|
35
48
|
# Get iCalendar files list in folder on storage
|
36
49
|
# @param [String] folder Path to folder in storage
|
37
50
|
# @param [Integer] items_per_page Count of items on page
|
38
51
|
# @param [Integer] page_number Page number
|
39
52
|
# @param [String] storage Storage name
|
40
53
|
def initialize(folder, items_per_page, page_number, storage = nil)
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
54
|
+
self.folder = folder if folder
|
55
|
+
self.items_per_page = items_per_page if items_per_page
|
56
|
+
self.page_number = page_number if page_number
|
57
|
+
self.storage = storage if storage
|
45
58
|
end
|
46
59
|
|
47
60
|
def to_http_info(api_client)
|
48
61
|
# verify the required parameter 'folder' is set
|
49
|
-
if api_client.config.client_side_validation &&
|
62
|
+
if api_client.config.client_side_validation && self.folder.nil?
|
50
63
|
raise ArgumentError, "Missing the required parameter 'folder' when calling EmailApi.get_calendar_list"
|
51
64
|
end
|
52
65
|
|
53
66
|
# verify the required parameter 'items_per_page' is set
|
54
|
-
if api_client.config.client_side_validation &&
|
67
|
+
if api_client.config.client_side_validation && self.items_per_page.nil?
|
55
68
|
raise ArgumentError, "Missing the required parameter 'items_per_page' when calling EmailApi.get_calendar_list"
|
56
69
|
end
|
57
70
|
|
58
71
|
# verify the required parameter 'page_number' is set
|
59
|
-
if api_client.config.client_side_validation &&
|
72
|
+
if api_client.config.client_side_validation && self.page_number.nil?
|
60
73
|
raise ArgumentError, "Missing the required parameter 'page_number' when calling EmailApi.get_calendar_list"
|
61
74
|
end
|
62
75
|
|
@@ -65,10 +78,10 @@ module AsposeEmailCloud
|
|
65
78
|
|
66
79
|
# query parameters
|
67
80
|
query_params = {}
|
68
|
-
query_params[:folder] =
|
69
|
-
query_params[:itemsPerPage] =
|
70
|
-
query_params[:pageNumber] =
|
71
|
-
query_params[:storage] =
|
81
|
+
query_params[:folder] = self.folder
|
82
|
+
query_params[:itemsPerPage] = self.items_per_page
|
83
|
+
query_params[:pageNumber] = self.page_number
|
84
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
72
85
|
|
73
86
|
# form parameters
|
74
87
|
form_params = {}
|
@@ -32,6 +32,22 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_calendar_model_as_alternate operation.
|
33
33
|
class GetCalendarModelAsAlternateRequestData < EmailRequest
|
34
34
|
|
35
|
+
# iCalendar file name in storage
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :name
|
38
|
+
# iCalendar method type Enum, available values: Create, Update, Cancel
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :calendar_action
|
41
|
+
# The sequence id
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :sequence_id
|
44
|
+
# Path to folder in storage
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :folder
|
47
|
+
# Storage name
|
48
|
+
# @return [String]
|
49
|
+
attr_accessor :storage
|
50
|
+
|
35
51
|
# Get iCalendar from storage as AlternateView
|
36
52
|
# @param [String] name iCalendar file name in storage
|
37
53
|
# @param [String] calendar_action iCalendar method type Enum, available values: Create, Update, Cancel
|
@@ -39,32 +55,32 @@ module AsposeEmailCloud
|
|
39
55
|
# @param [String] folder Path to folder in storage
|
40
56
|
# @param [String] storage Storage name
|
41
57
|
def initialize(name, calendar_action, sequence_id = nil, folder = nil, storage = nil)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
58
|
+
self.name = name if name
|
59
|
+
self.calendar_action = calendar_action if calendar_action
|
60
|
+
self.sequence_id = sequence_id if sequence_id
|
61
|
+
self.folder = folder if folder
|
62
|
+
self.storage = storage if storage
|
47
63
|
end
|
48
64
|
|
49
65
|
def to_http_info(api_client)
|
50
66
|
# verify the required parameter 'name' is set
|
51
|
-
if api_client.config.client_side_validation &&
|
67
|
+
if api_client.config.client_side_validation && self.name.nil?
|
52
68
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_calendar_model_as_alternate"
|
53
69
|
end
|
54
70
|
|
55
71
|
# verify the required parameter 'calendar_action' is set
|
56
|
-
if api_client.config.client_side_validation &&
|
72
|
+
if api_client.config.client_side_validation && self.calendar_action.nil?
|
57
73
|
raise ArgumentError, "Missing the required parameter 'calendar_action' when calling EmailApi.get_calendar_model_as_alternate"
|
58
74
|
end
|
59
75
|
|
60
76
|
# resource path
|
61
|
-
local_var_path = '/email/CalendarModel/{name}/as-alternate/{calendarAction}'.sub('{' + 'name' + '}',
|
77
|
+
local_var_path = '/email/CalendarModel/{name}/as-alternate/{calendarAction}'.sub('{' + 'name' + '}', self.name.to_s).sub('{' + 'calendarAction' + '}', self.calendar_action.to_s)
|
62
78
|
|
63
79
|
# query parameters
|
64
80
|
query_params = {}
|
65
|
-
query_params[:sequenceId] =
|
66
|
-
query_params[:folder] =
|
67
|
-
query_params[:storage] =
|
81
|
+
query_params[:sequenceId] = self.sequence_id unless self.sequence_id.nil?
|
82
|
+
query_params[:folder] = self.folder unless self.folder.nil?
|
83
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
68
84
|
|
69
85
|
# form parameters
|
70
86
|
form_params = {}
|
@@ -32,21 +32,34 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_calendar_model_list operation.
|
33
33
|
class GetCalendarModelListRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Path to folder in storage
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :folder
|
38
|
+
# Count of items on page
|
39
|
+
# @return [Integer]
|
40
|
+
attr_accessor :items_per_page
|
41
|
+
# Page number
|
42
|
+
# @return [Integer]
|
43
|
+
attr_accessor :page_number
|
44
|
+
# Storage name
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :storage
|
47
|
+
|
35
48
|
# Get iCalendar list from storage folder
|
36
49
|
# @param [String] folder Path to folder in storage
|
37
50
|
# @param [Integer] items_per_page Count of items on page
|
38
51
|
# @param [Integer] page_number Page number
|
39
52
|
# @param [String] storage Storage name
|
40
53
|
def initialize(folder, items_per_page = nil, page_number = nil, storage = nil)
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
54
|
+
self.folder = folder if folder
|
55
|
+
self.items_per_page = items_per_page if items_per_page
|
56
|
+
self.page_number = page_number if page_number
|
57
|
+
self.storage = storage if storage
|
45
58
|
end
|
46
59
|
|
47
60
|
def to_http_info(api_client)
|
48
61
|
# verify the required parameter 'folder' is set
|
49
|
-
if api_client.config.client_side_validation &&
|
62
|
+
if api_client.config.client_side_validation && self.folder.nil?
|
50
63
|
raise ArgumentError, "Missing the required parameter 'folder' when calling EmailApi.get_calendar_model_list"
|
51
64
|
end
|
52
65
|
|
@@ -55,10 +68,10 @@ module AsposeEmailCloud
|
|
55
68
|
|
56
69
|
# query parameters
|
57
70
|
query_params = {}
|
58
|
-
query_params[:folder] =
|
59
|
-
query_params[:itemsPerPage] =
|
60
|
-
query_params[:pageNumber] =
|
61
|
-
query_params[:storage] =
|
71
|
+
query_params[:folder] = self.folder
|
72
|
+
query_params[:itemsPerPage] = self.items_per_page unless self.items_per_page.nil?
|
73
|
+
query_params[:pageNumber] = self.page_number unless self.page_number.nil?
|
74
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
62
75
|
|
63
76
|
# form parameters
|
64
77
|
form_params = {}
|
@@ -32,29 +32,39 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_calendar_model operation.
|
33
33
|
class GetCalendarModelRequestData < EmailRequest
|
34
34
|
|
35
|
+
# iCalendar file name in storage
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :name
|
38
|
+
# Path to folder in storage
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :folder
|
41
|
+
# Storage name
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :storage
|
44
|
+
|
35
45
|
# Get calendar file
|
36
46
|
# @param [String] name iCalendar file name in storage
|
37
47
|
# @param [String] folder Path to folder in storage
|
38
48
|
# @param [String] storage Storage name
|
39
49
|
def initialize(name, folder = nil, storage = nil)
|
40
|
-
|
41
|
-
|
42
|
-
|
50
|
+
self.name = name if name
|
51
|
+
self.folder = folder if folder
|
52
|
+
self.storage = storage if storage
|
43
53
|
end
|
44
54
|
|
45
55
|
def to_http_info(api_client)
|
46
56
|
# verify the required parameter 'name' is set
|
47
|
-
if api_client.config.client_side_validation &&
|
57
|
+
if api_client.config.client_side_validation && self.name.nil?
|
48
58
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_calendar_model"
|
49
59
|
end
|
50
60
|
|
51
61
|
# resource path
|
52
|
-
local_var_path = '/email/CalendarModel/{name}'.sub('{' + 'name' + '}',
|
62
|
+
local_var_path = '/email/CalendarModel/{name}'.sub('{' + 'name' + '}', self.name.to_s)
|
53
63
|
|
54
64
|
# query parameters
|
55
65
|
query_params = {}
|
56
|
-
query_params[:folder] =
|
57
|
-
query_params[:storage] =
|
66
|
+
query_params[:folder] = self.folder unless self.folder.nil?
|
67
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
58
68
|
|
59
69
|
# form parameters
|
60
70
|
form_params = {}
|
@@ -32,29 +32,39 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_calendar operation.
|
33
33
|
class GetCalendarRequestData < EmailRequest
|
34
34
|
|
35
|
+
# iCalendar file name in storage
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :name
|
38
|
+
# Path to folder in storage
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :folder
|
41
|
+
# Storage name
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :storage
|
44
|
+
|
35
45
|
# Get calendar file properties
|
36
46
|
# @param [String] name iCalendar file name in storage
|
37
47
|
# @param [String] folder Path to folder in storage
|
38
48
|
# @param [String] storage Storage name
|
39
49
|
def initialize(name, folder = nil, storage = nil)
|
40
|
-
|
41
|
-
|
42
|
-
|
50
|
+
self.name = name if name
|
51
|
+
self.folder = folder if folder
|
52
|
+
self.storage = storage if storage
|
43
53
|
end
|
44
54
|
|
45
55
|
def to_http_info(api_client)
|
46
56
|
# verify the required parameter 'name' is set
|
47
|
-
if api_client.config.client_side_validation &&
|
57
|
+
if api_client.config.client_side_validation && self.name.nil?
|
48
58
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_calendar"
|
49
59
|
end
|
50
60
|
|
51
61
|
# resource path
|
52
|
-
local_var_path = '/email/Calendar/{name}/properties'.sub('{' + 'name' + '}',
|
62
|
+
local_var_path = '/email/Calendar/{name}/properties'.sub('{' + 'name' + '}', self.name.to_s)
|
53
63
|
|
54
64
|
# query parameters
|
55
65
|
query_params = {}
|
56
|
-
query_params[:folder] =
|
57
|
-
query_params[:storage] =
|
66
|
+
query_params[:folder] = self.folder unless self.folder.nil?
|
67
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
58
68
|
|
59
69
|
# form parameters
|
60
70
|
form_params = {}
|
@@ -32,6 +32,22 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_contact_attachment operation.
|
33
33
|
class GetContactAttachmentRequestData < 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
|
+
# Attachment name or index
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :attachment
|
44
|
+
# Path to folder in storage
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :folder
|
47
|
+
# Storage name
|
48
|
+
# @return [String]
|
49
|
+
attr_accessor :storage
|
50
|
+
|
35
51
|
# Get attachment file by name
|
36
52
|
# @param [String] format Contact document format. Enum, available values: VCard, WebDav, Msg
|
37
53
|
# @param [String] name Contact document file name
|
@@ -39,36 +55,36 @@ module AsposeEmailCloud
|
|
39
55
|
# @param [String] folder Path to folder in storage
|
40
56
|
# @param [String] storage Storage name
|
41
57
|
def initialize(format, name, attachment, folder = nil, storage = nil)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
58
|
+
self.format = format if format
|
59
|
+
self.name = name if name
|
60
|
+
self.attachment = attachment if attachment
|
61
|
+
self.folder = folder if folder
|
62
|
+
self.storage = storage if storage
|
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.get_contact_attachment"
|
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.get_contact_attachment"
|
58
74
|
end
|
59
75
|
|
60
76
|
# verify the required parameter 'attachment' is set
|
61
|
-
if api_client.config.client_side_validation &&
|
77
|
+
if api_client.config.client_side_validation && self.attachment.nil?
|
62
78
|
raise ArgumentError, "Missing the required parameter 'attachment' when calling EmailApi.get_contact_attachment"
|
63
79
|
end
|
64
80
|
|
65
81
|
# resource path
|
66
|
-
local_var_path = '/email/Contact/{format}/{name}/attachments/{attachment}'.sub('{' + 'format' + '}',
|
82
|
+
local_var_path = '/email/Contact/{format}/{name}/attachments/{attachment}'.sub('{' + 'format' + '}', self.format.to_s).sub('{' + 'name' + '}', self.name.to_s).sub('{' + 'attachment' + '}', self.attachment.to_s)
|
67
83
|
|
68
84
|
# query parameters
|
69
85
|
query_params = {}
|
70
|
-
query_params[:folder] =
|
71
|
-
query_params[:storage] =
|
86
|
+
query_params[:folder] = self.folder unless self.folder.nil?
|
87
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
72
88
|
|
73
89
|
# form parameters
|
74
90
|
form_params = {}
|
@@ -80,7 +96,7 @@ module AsposeEmailCloud
|
|
80
96
|
# header parameters
|
81
97
|
header_params = {}
|
82
98
|
# HTTP header 'Accept' (if needed)
|
83
|
-
header_params['Accept'] = select_header_accept(['
|
99
|
+
header_params['Accept'] = select_header_accept(['multipart/form-data'])
|
84
100
|
# HTTP header 'Content-Type'
|
85
101
|
header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
|
86
102
|
|