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 get_contact_list operation.
|
33
33
|
class GetContactListRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Contact document format. Enum, available values: VCard, WebDav, Msg
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :format
|
38
|
+
# Path to folder in storage
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :folder
|
41
|
+
# Storage name
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :storage
|
44
|
+
# Count of items on page
|
45
|
+
# @return [Integer]
|
46
|
+
attr_accessor :items_per_page
|
47
|
+
# Page number
|
48
|
+
# @return [Integer]
|
49
|
+
attr_accessor :page_number
|
50
|
+
|
35
51
|
# Get contact list from storage folder
|
36
52
|
# @param [String] format Contact document format. Enum, available values: VCard, WebDav, Msg
|
37
53
|
# @param [String] folder Path to folder in storage
|
@@ -39,28 +55,28 @@ module AsposeEmailCloud
|
|
39
55
|
# @param [Integer] items_per_page Count of items on page
|
40
56
|
# @param [Integer] page_number Page number
|
41
57
|
def initialize(format, folder = nil, storage = nil, items_per_page = nil, page_number = nil)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
58
|
+
self.format = format if format
|
59
|
+
self.folder = folder if folder
|
60
|
+
self.storage = storage if storage
|
61
|
+
self.items_per_page = items_per_page if items_per_page
|
62
|
+
self.page_number = page_number if page_number
|
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_list"
|
53
69
|
end
|
54
70
|
|
55
71
|
# resource path
|
56
|
-
local_var_path = '/email/Contact/{format}'.sub('{' + 'format' + '}',
|
72
|
+
local_var_path = '/email/Contact/{format}'.sub('{' + 'format' + '}', self.format.to_s)
|
57
73
|
|
58
74
|
# query parameters
|
59
75
|
query_params = {}
|
60
|
-
query_params[:folder] =
|
61
|
-
query_params[:storage] =
|
62
|
-
query_params[:itemsPerPage] =
|
63
|
-
query_params[:pageNumber] =
|
76
|
+
query_params[:folder] = self.folder unless self.folder.nil?
|
77
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
78
|
+
query_params[:itemsPerPage] = self.items_per_page unless self.items_per_page.nil?
|
79
|
+
query_params[:pageNumber] = self.page_number unless self.page_number.nil?
|
64
80
|
|
65
81
|
# form parameters
|
66
82
|
form_params = {}
|
@@ -32,6 +32,22 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_contact_model_list operation.
|
33
33
|
class GetContactModelListRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Contact document format. Enum, available values: VCard, WebDav, Msg
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :format
|
38
|
+
# Path to folder in storage.
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :folder
|
41
|
+
# Storage name.
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :storage
|
44
|
+
# Count of items on page.
|
45
|
+
# @return [Integer]
|
46
|
+
attr_accessor :items_per_page
|
47
|
+
# Page number.
|
48
|
+
# @return [Integer]
|
49
|
+
attr_accessor :page_number
|
50
|
+
|
35
51
|
# Get contact list from storage folder.
|
36
52
|
# @param [String] format Contact document format. Enum, available values: VCard, WebDav, Msg
|
37
53
|
# @param [String] folder Path to folder in storage.
|
@@ -39,28 +55,28 @@ module AsposeEmailCloud
|
|
39
55
|
# @param [Integer] items_per_page Count of items on page.
|
40
56
|
# @param [Integer] page_number Page number.
|
41
57
|
def initialize(format, folder = nil, storage = nil, items_per_page = nil, page_number = nil)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
58
|
+
self.format = format if format
|
59
|
+
self.folder = folder if folder
|
60
|
+
self.storage = storage if storage
|
61
|
+
self.items_per_page = items_per_page if items_per_page
|
62
|
+
self.page_number = page_number if page_number
|
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_model_list"
|
53
69
|
end
|
54
70
|
|
55
71
|
# resource path
|
56
|
-
local_var_path = '/email/ContactModel/{format}'.sub('{' + 'format' + '}',
|
72
|
+
local_var_path = '/email/ContactModel/{format}'.sub('{' + 'format' + '}', self.format.to_s)
|
57
73
|
|
58
74
|
# query parameters
|
59
75
|
query_params = {}
|
60
|
-
query_params[:folder] =
|
61
|
-
query_params[:storage] =
|
62
|
-
query_params[:itemsPerPage] =
|
63
|
-
query_params[:pageNumber] =
|
76
|
+
query_params[:folder] = self.folder unless self.folder.nil?
|
77
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
78
|
+
query_params[:itemsPerPage] = self.items_per_page unless self.items_per_page.nil?
|
79
|
+
query_params[:pageNumber] = self.page_number unless self.page_number.nil?
|
64
80
|
|
65
81
|
# form parameters
|
66
82
|
form_params = {}
|
@@ -32,36 +32,49 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_contact_model operation.
|
33
33
|
class GetContactModelRequestData < 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
|
+
# 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 contact document.
|
36
49
|
# @param [String] format Contact document format. Enum, available values: VCard, WebDav, Msg
|
37
50
|
# @param [String] name Contact document file name.
|
38
51
|
# @param [String] folder Path to folder in storage.
|
39
52
|
# @param [String] storage Storage name.
|
40
53
|
def initialize(format, name, folder = nil, storage = nil)
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
54
|
+
self.format = format if format
|
55
|
+
self.name = name if name
|
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 'format' is set
|
49
|
-
if api_client.config.client_side_validation &&
|
62
|
+
if api_client.config.client_side_validation && self.format.nil?
|
50
63
|
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.get_contact_model"
|
51
64
|
end
|
52
65
|
|
53
66
|
# verify the required parameter 'name' is set
|
54
|
-
if api_client.config.client_side_validation &&
|
67
|
+
if api_client.config.client_side_validation && self.name.nil?
|
55
68
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_contact_model"
|
56
69
|
end
|
57
70
|
|
58
71
|
# resource path
|
59
|
-
local_var_path = '/email/ContactModel/{format}/{name}'.sub('{' + 'format' + '}',
|
72
|
+
local_var_path = '/email/ContactModel/{format}/{name}'.sub('{' + 'format' + '}', self.format.to_s).sub('{' + 'name' + '}', self.name.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 = {}
|
@@ -32,36 +32,49 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_contact_properties operation.
|
33
33
|
class GetContactPropertiesRequestData < 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
|
+
# 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 contact document properties
|
36
49
|
# @param [String] format Contact document format. Enum, available values: VCard, WebDav, Msg
|
37
50
|
# @param [String] name Contact document file name
|
38
51
|
# @param [String] folder Path to folder in storage
|
39
52
|
# @param [String] storage Storage name
|
40
53
|
def initialize(format, name, folder = nil, storage = nil)
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
54
|
+
self.format = format if format
|
55
|
+
self.name = name if name
|
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 'format' is set
|
49
|
-
if api_client.config.client_side_validation &&
|
62
|
+
if api_client.config.client_side_validation && self.format.nil?
|
50
63
|
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.get_contact_properties"
|
51
64
|
end
|
52
65
|
|
53
66
|
# verify the required parameter 'name' is set
|
54
|
-
if api_client.config.client_side_validation &&
|
67
|
+
if api_client.config.client_side_validation && self.name.nil?
|
55
68
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_contact_properties"
|
56
69
|
end
|
57
70
|
|
58
71
|
# resource path
|
59
|
-
local_var_path = '/email/Contact/{format}/{name}/properties'.sub('{' + 'format' + '}',
|
72
|
+
local_var_path = '/email/Contact/{format}/{name}/properties'.sub('{' + 'format' + '}', self.format.to_s).sub('{' + 'name' + '}', self.name.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 = {}
|
@@ -32,10 +32,14 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_disc_usage operation.
|
33
33
|
class GetDiscUsageRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Storage name
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :storage_name
|
38
|
+
|
35
39
|
# Get disc usage
|
36
40
|
# @param [String] storage_name Storage name
|
37
41
|
def initialize(storage_name = nil)
|
38
|
-
|
42
|
+
self.storage_name = storage_name if storage_name
|
39
43
|
end
|
40
44
|
|
41
45
|
def to_http_info(api_client)
|
@@ -44,7 +48,7 @@ module AsposeEmailCloud
|
|
44
48
|
|
45
49
|
# query parameters
|
46
50
|
query_params = {}
|
47
|
-
query_params[:storageName] =
|
51
|
+
query_params[:storageName] = self.storage_name unless self.storage_name.nil?
|
48
52
|
|
49
53
|
# form parameters
|
50
54
|
form_params = {}
|
@@ -32,36 +32,49 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_email_as_file operation.
|
33
33
|
class GetEmailAsFileRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Email document file name
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :file_name
|
38
|
+
# File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :format
|
41
|
+
# Storage name
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :storage
|
44
|
+
# Path to folder in storage
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :folder
|
47
|
+
|
35
48
|
# Converts email document from storage to specified format and returns as file
|
36
49
|
# @param [String] file_name Email document file name
|
37
50
|
# @param [String] format File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
38
51
|
# @param [String] storage Storage name
|
39
52
|
# @param [String] folder Path to folder in storage
|
40
53
|
def initialize(file_name, format, storage = nil, folder = nil)
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
54
|
+
self.file_name = file_name if file_name
|
55
|
+
self.format = format if format
|
56
|
+
self.storage = storage if storage
|
57
|
+
self.folder = folder if folder
|
45
58
|
end
|
46
59
|
|
47
60
|
def to_http_info(api_client)
|
48
61
|
# verify the required parameter 'file_name' is set
|
49
|
-
if api_client.config.client_side_validation &&
|
62
|
+
if api_client.config.client_side_validation && self.file_name.nil?
|
50
63
|
raise ArgumentError, "Missing the required parameter 'file_name' when calling EmailApi.get_email_as_file"
|
51
64
|
end
|
52
65
|
|
53
66
|
# verify the required parameter 'format' is set
|
54
|
-
if api_client.config.client_side_validation &&
|
67
|
+
if api_client.config.client_side_validation && self.format.nil?
|
55
68
|
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.get_email_as_file"
|
56
69
|
end
|
57
70
|
|
58
71
|
# resource path
|
59
|
-
local_var_path = '/email/{fileName}/as-file/{format}'.sub('{' + 'fileName' + '}',
|
72
|
+
local_var_path = '/email/{fileName}/as-file/{format}'.sub('{' + 'fileName' + '}', self.file_name.to_s).sub('{' + 'format' + '}', self.format.to_s)
|
60
73
|
|
61
74
|
# query parameters
|
62
75
|
query_params = {}
|
63
|
-
query_params[:storage] =
|
64
|
-
query_params[:folder] =
|
76
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
77
|
+
query_params[:folder] = self.folder unless self.folder.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,36 +32,49 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_email_attachment operation.
|
33
33
|
class GetEmailAttachmentRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Attachment name
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :attachment
|
38
|
+
# Email document file name
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :file_name
|
41
|
+
# Storage name
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :storage
|
44
|
+
# Path to folder in storage
|
45
|
+
# @return [String]
|
46
|
+
attr_accessor :folder
|
47
|
+
|
35
48
|
# Get email attachment by name
|
36
49
|
# @param [String] attachment Attachment name
|
37
50
|
# @param [String] file_name Email document file name
|
38
51
|
# @param [String] storage Storage name
|
39
52
|
# @param [String] folder Path to folder in storage
|
40
53
|
def initialize(attachment, file_name, storage = nil, folder = nil)
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
54
|
+
self.attachment = attachment if attachment
|
55
|
+
self.file_name = file_name if file_name
|
56
|
+
self.storage = storage if storage
|
57
|
+
self.folder = folder if folder
|
45
58
|
end
|
46
59
|
|
47
60
|
def to_http_info(api_client)
|
48
61
|
# verify the required parameter 'attachment' is set
|
49
|
-
if api_client.config.client_side_validation &&
|
62
|
+
if api_client.config.client_side_validation && self.attachment.nil?
|
50
63
|
raise ArgumentError, "Missing the required parameter 'attachment' when calling EmailApi.get_email_attachment"
|
51
64
|
end
|
52
65
|
|
53
66
|
# verify the required parameter 'file_name' is set
|
54
|
-
if api_client.config.client_side_validation &&
|
67
|
+
if api_client.config.client_side_validation && self.file_name.nil?
|
55
68
|
raise ArgumentError, "Missing the required parameter 'file_name' when calling EmailApi.get_email_attachment"
|
56
69
|
end
|
57
70
|
|
58
71
|
# resource path
|
59
|
-
local_var_path = '/email/{fileName}/attachments/{attachment}'.sub('{' + 'attachment' + '}',
|
72
|
+
local_var_path = '/email/{fileName}/attachments/{attachment}'.sub('{' + 'attachment' + '}', self.attachment.to_s).sub('{' + 'fileName' + '}', self.file_name.to_s)
|
60
73
|
|
61
74
|
# query parameters
|
62
75
|
query_params = {}
|
63
|
-
query_params[:storage] =
|
64
|
-
query_params[:folder] =
|
76
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
77
|
+
query_params[:folder] = self.folder unless self.folder.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,6 +32,22 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for get_email_model_list operation.
|
33
33
|
class GetEmailModelListRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :format
|
38
|
+
# Path to folder in storage.
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :folder
|
41
|
+
# Storage name.
|
42
|
+
# @return [String]
|
43
|
+
attr_accessor :storage
|
44
|
+
# Count of items on page.
|
45
|
+
# @return [Integer]
|
46
|
+
attr_accessor :items_per_page
|
47
|
+
# Page number.
|
48
|
+
# @return [Integer]
|
49
|
+
attr_accessor :page_number
|
50
|
+
|
35
51
|
# Get email list from storage folder.
|
36
52
|
# @param [String] format Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
37
53
|
# @param [String] folder Path to folder in storage.
|
@@ -39,28 +55,28 @@ module AsposeEmailCloud
|
|
39
55
|
# @param [Integer] items_per_page Count of items on page.
|
40
56
|
# @param [Integer] page_number Page number.
|
41
57
|
def initialize(format, folder = nil, storage = nil, items_per_page = nil, page_number = nil)
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
58
|
+
self.format = format if format
|
59
|
+
self.folder = folder if folder
|
60
|
+
self.storage = storage if storage
|
61
|
+
self.items_per_page = items_per_page if items_per_page
|
62
|
+
self.page_number = page_number if page_number
|
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_email_model_list"
|
53
69
|
end
|
54
70
|
|
55
71
|
# resource path
|
56
|
-
local_var_path = '/email/model/{format}'.sub('{' + 'format' + '}',
|
72
|
+
local_var_path = '/email/model/{format}'.sub('{' + 'format' + '}', self.format.to_s)
|
57
73
|
|
58
74
|
# query parameters
|
59
75
|
query_params = {}
|
60
|
-
query_params[:folder] =
|
61
|
-
query_params[:storage] =
|
62
|
-
query_params[:itemsPerPage] =
|
63
|
-
query_params[:pageNumber] =
|
76
|
+
query_params[:folder] = self.folder unless self.folder.nil?
|
77
|
+
query_params[:storage] = self.storage unless self.storage.nil?
|
78
|
+
query_params[:itemsPerPage] = self.items_per_page unless self.items_per_page.nil?
|
79
|
+
query_params[:pageNumber] = self.page_number unless self.page_number.nil?
|
64
80
|
|
65
81
|
# form parameters
|
66
82
|
form_params = {}
|