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,34 +32,44 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for save_contact_model operation.
|
33
33
|
class SaveContactModelRequestData < 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
|
+
# Create contact request.
|
42
|
+
# @return [StorageModelRqOfContactDto]
|
43
|
+
attr_accessor :rq
|
44
|
+
|
35
45
|
# Save contact.
|
36
46
|
# @param [String] format Contact document format. Enum, available values: VCard, WebDav, Msg
|
37
47
|
# @param [String] name Contact document file name.
|
38
48
|
# @param [StorageModelRqOfContactDto] rq Create contact request.
|
39
49
|
def initialize(format, name, rq)
|
40
|
-
|
41
|
-
|
42
|
-
|
50
|
+
self.format = format if format
|
51
|
+
self.name = name if name
|
52
|
+
self.rq = rq if rq
|
43
53
|
end
|
44
54
|
|
45
55
|
def to_http_info(api_client)
|
46
56
|
# verify the required parameter 'format' is set
|
47
|
-
if api_client.config.client_side_validation &&
|
57
|
+
if api_client.config.client_side_validation && self.format.nil?
|
48
58
|
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.save_contact_model"
|
49
59
|
end
|
50
60
|
|
51
61
|
# verify the required parameter 'name' is set
|
52
|
-
if api_client.config.client_side_validation &&
|
62
|
+
if api_client.config.client_side_validation && self.name.nil?
|
53
63
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.save_contact_model"
|
54
64
|
end
|
55
65
|
|
56
66
|
# verify the required parameter 'rq' is set
|
57
|
-
if api_client.config.client_side_validation &&
|
67
|
+
if api_client.config.client_side_validation && self.rq.nil?
|
58
68
|
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.save_contact_model"
|
59
69
|
end
|
60
70
|
|
61
71
|
# resource path
|
62
|
-
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)
|
63
73
|
|
64
74
|
# query parameters
|
65
75
|
query_params = {}
|
@@ -68,7 +78,7 @@ module AsposeEmailCloud
|
|
68
78
|
form_params = {}
|
69
79
|
|
70
80
|
# http body (model)
|
71
|
-
post_body = api_client.object_to_http_body(
|
81
|
+
post_body = api_client.object_to_http_body(self.rq)
|
72
82
|
auth_names = ['JWT']
|
73
83
|
|
74
84
|
# header parameters
|
@@ -32,34 +32,44 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for save_email_model operation.
|
33
33
|
class SaveEmailModelRequestData < EmailRequest
|
34
34
|
|
35
|
+
# File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :format
|
38
|
+
# iCalendar file name in storage.
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :name
|
41
|
+
# Calendar properties update request.
|
42
|
+
# @return [StorageModelRqOfEmailDto]
|
43
|
+
attr_accessor :rq
|
44
|
+
|
35
45
|
# Save email document.
|
36
46
|
# @param [String] format File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
|
37
47
|
# @param [String] name iCalendar file name in storage.
|
38
48
|
# @param [StorageModelRqOfEmailDto] rq Calendar properties update request.
|
39
49
|
def initialize(format, name, rq)
|
40
|
-
|
41
|
-
|
42
|
-
|
50
|
+
self.format = format if format
|
51
|
+
self.name = name if name
|
52
|
+
self.rq = rq if rq
|
43
53
|
end
|
44
54
|
|
45
55
|
def to_http_info(api_client)
|
46
56
|
# verify the required parameter 'format' is set
|
47
|
-
if api_client.config.client_side_validation &&
|
57
|
+
if api_client.config.client_side_validation && self.format.nil?
|
48
58
|
raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.save_email_model"
|
49
59
|
end
|
50
60
|
|
51
61
|
# verify the required parameter 'name' is set
|
52
|
-
if api_client.config.client_side_validation &&
|
62
|
+
if api_client.config.client_side_validation && self.name.nil?
|
53
63
|
raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.save_email_model"
|
54
64
|
end
|
55
65
|
|
56
66
|
# verify the required parameter 'rq' is set
|
57
|
-
if api_client.config.client_side_validation &&
|
67
|
+
if api_client.config.client_side_validation && self.rq.nil?
|
58
68
|
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.save_email_model"
|
59
69
|
end
|
60
70
|
|
61
71
|
# resource path
|
62
|
-
local_var_path = '/email/model/{format}/{name}'.sub('{' + 'format' + '}',
|
72
|
+
local_var_path = '/email/model/{format}/{name}'.sub('{' + 'format' + '}', self.format.to_s).sub('{' + 'name' + '}', self.name.to_s)
|
63
73
|
|
64
74
|
# query parameters
|
65
75
|
query_params = {}
|
@@ -68,7 +78,7 @@ module AsposeEmailCloud
|
|
68
78
|
form_params = {}
|
69
79
|
|
70
80
|
# http body (model)
|
71
|
-
post_body = api_client.object_to_http_body(
|
81
|
+
post_body = api_client.object_to_http_body(self.rq)
|
72
82
|
auth_names = ['JWT']
|
73
83
|
|
74
84
|
# header parameters
|
@@ -32,15 +32,19 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for save_mail_account operation.
|
33
33
|
class SaveMailAccountRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Email account information
|
36
|
+
# @return [SaveEmailAccountRequest]
|
37
|
+
attr_accessor :request
|
38
|
+
|
35
39
|
# Create email account file (*.account) with login/password authentication
|
36
40
|
# @param [SaveEmailAccountRequest] request Email account information
|
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.save_mail_account"
|
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 save_mail_o_auth_account operation.
|
33
33
|
class SaveMailOAuthAccountRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Email account information
|
36
|
+
# @return [SaveOAuthEmailAccountRequest]
|
37
|
+
attr_accessor :request
|
38
|
+
|
35
39
|
# Create email account file (*.account) with OAuth
|
36
40
|
# @param [SaveOAuthEmailAccountRequest] request Email account information
|
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.save_mail_o_auth_account"
|
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 send_email_mime operation.
|
33
33
|
class SendEmailMimeRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Send email request
|
36
|
+
# @return [SendEmailMimeBaseRequest]
|
37
|
+
attr_accessor :request
|
38
|
+
|
35
39
|
# Send an email specified by MIME in request
|
36
40
|
# @param [SendEmailMimeBaseRequest] request Send email 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.send_email_mime"
|
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 send_email_model operation.
|
33
33
|
class SendEmailModelRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Send email request
|
36
|
+
# @return [SendEmailModelRq]
|
37
|
+
attr_accessor :rq
|
38
|
+
|
35
39
|
# Send an email specified by model in request
|
36
40
|
# @param [SendEmailModelRq] rq Send email request
|
37
41
|
def initialize(rq)
|
38
|
-
|
42
|
+
self.rq = rq if rq
|
39
43
|
end
|
40
44
|
|
41
45
|
def to_http_info(api_client)
|
42
46
|
# verify the required parameter 'rq' is set
|
43
|
-
if api_client.config.client_side_validation &&
|
47
|
+
if api_client.config.client_side_validation && self.rq.nil?
|
44
48
|
raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.send_email_model"
|
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.rq)
|
58
62
|
auth_names = ['JWT']
|
59
63
|
|
60
64
|
# header parameters
|
@@ -32,15 +32,19 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for send_email operation.
|
33
33
|
class SendEmailRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Send email request
|
36
|
+
# @return [SendEmailBaseRequest]
|
37
|
+
attr_accessor :request
|
38
|
+
|
35
39
|
# Send an email from *.eml file located on storage
|
36
40
|
# @param [SendEmailBaseRequest] request Send email 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.send_email"
|
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,34 +32,44 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for set_email_property operation.
|
33
33
|
class SetEmailPropertyRequestData < EmailRequest
|
34
34
|
|
35
|
+
# A property name that should be changed
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :property_name
|
38
|
+
# Email document file name
|
39
|
+
# @return [String]
|
40
|
+
attr_accessor :file_name
|
41
|
+
# A property that should be changed and optional Storage info to specify where the file located
|
42
|
+
# @return [SetEmailPropertyRequest]
|
43
|
+
attr_accessor :request
|
44
|
+
|
35
45
|
# Set email document property value
|
36
46
|
# @param [String] property_name A property name that should be changed
|
37
47
|
# @param [String] file_name Email document file name
|
38
48
|
# @param [SetEmailPropertyRequest] request A property that should be changed and optional Storage info to specify where the file located
|
39
49
|
def initialize(property_name, file_name, request)
|
40
|
-
|
41
|
-
|
42
|
-
|
50
|
+
self.property_name = property_name if property_name
|
51
|
+
self.file_name = file_name if file_name
|
52
|
+
self.request = request if request
|
43
53
|
end
|
44
54
|
|
45
55
|
def to_http_info(api_client)
|
46
56
|
# verify the required parameter 'property_name' is set
|
47
|
-
if api_client.config.client_side_validation &&
|
57
|
+
if api_client.config.client_side_validation && self.property_name.nil?
|
48
58
|
raise ArgumentError, "Missing the required parameter 'property_name' when calling EmailApi.set_email_property"
|
49
59
|
end
|
50
60
|
|
51
61
|
# verify the required parameter 'file_name' is set
|
52
|
-
if api_client.config.client_side_validation &&
|
62
|
+
if api_client.config.client_side_validation && self.file_name.nil?
|
53
63
|
raise ArgumentError, "Missing the required parameter 'file_name' when calling EmailApi.set_email_property"
|
54
64
|
end
|
55
65
|
|
56
66
|
# verify the required parameter 'request' is set
|
57
|
-
if api_client.config.client_side_validation &&
|
67
|
+
if api_client.config.client_side_validation && self.request.nil?
|
58
68
|
raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.set_email_property"
|
59
69
|
end
|
60
70
|
|
61
71
|
# resource path
|
62
|
-
local_var_path = '/email/{fileName}/properties/{propertyName}'.sub('{' + 'propertyName' + '}',
|
72
|
+
local_var_path = '/email/{fileName}/properties/{propertyName}'.sub('{' + 'propertyName' + '}', self.property_name.to_s).sub('{' + 'fileName' + '}', self.file_name.to_s)
|
63
73
|
|
64
74
|
# query parameters
|
65
75
|
query_params = {}
|
@@ -68,7 +78,7 @@ module AsposeEmailCloud
|
|
68
78
|
form_params = {}
|
69
79
|
|
70
80
|
# http body (model)
|
71
|
-
post_body = api_client.object_to_http_body(
|
81
|
+
post_body = api_client.object_to_http_body(self.request)
|
72
82
|
auth_names = ['JWT']
|
73
83
|
|
74
84
|
# header parameters
|
@@ -32,15 +32,19 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for set_email_read_flag operation.
|
33
33
|
class SetEmailReadFlagRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Message is read request
|
36
|
+
# @return [SetMessageReadFlagAccountBaseRequest]
|
37
|
+
attr_accessor :request
|
38
|
+
|
35
39
|
# Sets \"Message is read\" flag
|
36
40
|
# @param [SetMessageReadFlagAccountBaseRequest] request Message is read 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.set_email_read_flag"
|
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,20 +32,24 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for storage_exists operation.
|
33
33
|
class StorageExistsRequestData < EmailRequest
|
34
34
|
|
35
|
+
# Storage name
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :storage_name
|
38
|
+
|
35
39
|
# Check if storage exists
|
36
40
|
# @param [String] storage_name Storage name
|
37
41
|
def initialize(storage_name)
|
38
|
-
|
42
|
+
self.storage_name = storage_name if storage_name
|
39
43
|
end
|
40
44
|
|
41
45
|
def to_http_info(api_client)
|
42
46
|
# verify the required parameter 'storage_name' is set
|
43
|
-
if api_client.config.client_side_validation &&
|
47
|
+
if api_client.config.client_side_validation && self.storage_name.nil?
|
44
48
|
raise ArgumentError, "Missing the required parameter 'storage_name' when calling EmailApi.storage_exists"
|
45
49
|
end
|
46
50
|
|
47
51
|
# resource path
|
48
|
-
local_var_path = '/email/storage/{storageName}/exist'.sub('{' + 'storageName' + '}',
|
52
|
+
local_var_path = '/email/storage/{storageName}/exist'.sub('{' + 'storageName' + '}', self.storage_name.to_s)
|
49
53
|
|
50
54
|
# query parameters
|
51
55
|
query_params = {}
|
@@ -32,27 +32,34 @@ module AsposeEmailCloud
|
|
32
32
|
# Request model for update_calendar_properties operation.
|
33
33
|
class UpdateCalendarPropertiesRequestData < EmailRequest
|
34
34
|
|
35
|
+
# iCalendar file name in storage
|
36
|
+
# @return [String]
|
37
|
+
attr_accessor :name
|
38
|
+
# Calendar properties update request
|
39
|
+
# @return [HierarchicalObjectRequest]
|
40
|
+
attr_accessor :request
|
41
|
+
|
35
42
|
# Update calendar file properties
|
36
43
|
# @param [String] name iCalendar file name in storage
|
37
44
|
# @param [HierarchicalObjectRequest] request Calendar properties update 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.update_calendar_properties"
|
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.update_calendar_properties"
|
52
59
|
end
|
53
60
|
|
54
61
|
# resource path
|
55
|
-
local_var_path = '/email/Calendar/{name}/properties'.sub('{' + 'name' + '}',
|
62
|
+
local_var_path = '/email/Calendar/{name}/properties'.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
|