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.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose-email-cloud.rb +10 -0
  3. data/lib/aspose-email-cloud/api/email_api.rb +24 -0
  4. data/lib/aspose-email-cloud/models/discover_email_config_oauth.rb +388 -0
  5. data/lib/aspose-email-cloud/models/discover_email_config_password.rb +301 -0
  6. data/lib/aspose-email-cloud/models/discover_email_config_rq.rb +265 -0
  7. data/lib/aspose-email-cloud/models/email_account_config.rb +320 -0
  8. data/lib/aspose-email-cloud/models/email_account_config_list.rb +212 -0
  9. data/lib/aspose-email-cloud/models/list_response_of_email_account_config.rb +211 -0
  10. data/lib/aspose-email-cloud/models/name_value_pair.rb +222 -0
  11. data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +18 -8
  12. data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +23 -10
  13. data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +18 -8
  14. data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +18 -8
  15. data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb +7 -3
  16. data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +7 -3
  17. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_model_request_data.rb +7 -3
  18. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_ocr_data_model_request_data.rb +7 -3
  19. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +7 -3
  20. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +7 -3
  21. data/lib/aspose-email-cloud/models/requests/ai_name_complete_request_data.rb +32 -13
  22. data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +7 -3
  23. data/lib/aspose-email-cloud/models/requests/ai_name_expand_request_data.rb +32 -13
  24. data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +7 -3
  25. data/lib/aspose-email-cloud/models/requests/ai_name_format_request_data.rb +37 -15
  26. data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +7 -3
  27. data/lib/aspose-email-cloud/models/requests/ai_name_genderize_request_data.rb +32 -13
  28. data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +7 -3
  29. data/lib/aspose-email-cloud/models/requests/ai_name_match_request_data.rb +38 -16
  30. data/lib/aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb +32 -13
  31. data/lib/aspose-email-cloud/models/requests/ai_name_parse_request_data.rb +32 -13
  32. data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +7 -3
  33. data/lib/aspose-email-cloud/models/requests/append_email_model_message_request_data.rb +7 -3
  34. data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +7 -3
  35. data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_alternate_request_data.rb +7 -3
  36. data/lib/aspose-email-cloud/models/requests/convert_email_request_data.rb +13 -6
  37. data/lib/aspose-email-cloud/models/requests/copy_file_request_data.rb +28 -12
  38. data/lib/aspose-email-cloud/models/requests/copy_folder_request_data.rb +23 -10
  39. data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +13 -6
  40. data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +18 -8
  41. data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +7 -3
  42. data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +14 -7
  43. data/lib/aspose-email-cloud/models/requests/create_folder_request_data.rb +12 -5
  44. data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +13 -6
  45. data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +23 -10
  46. data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +28 -12
  47. data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +7 -3
  48. data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +7 -3
  49. data/lib/aspose-email-cloud/models/requests/delete_file_request_data.rb +17 -7
  50. data/lib/aspose-email-cloud/models/requests/delete_folder_request_data.rb +17 -7
  51. data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +18 -8
  52. data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +13 -6
  53. data/lib/aspose-email-cloud/models/requests/discover_email_config_oauth_request_data.rb +79 -0
  54. data/lib/aspose-email-cloud/models/requests/discover_email_config_password_request_data.rb +79 -0
  55. data/lib/aspose-email-cloud/models/requests/discover_email_config_request_data.rb +86 -0
  56. data/lib/aspose-email-cloud/models/requests/download_file_request_data.rb +17 -7
  57. data/lib/aspose-email-cloud/models/requests/fetch_email_message_request_data.rb +28 -12
  58. data/lib/aspose-email-cloud/models/requests/fetch_email_model_request_data.rb +28 -12
  59. data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +23 -10
  60. data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +24 -11
  61. data/lib/aspose-email-cloud/models/requests/get_calendar_model_as_alternate_request_data.rb +27 -11
  62. data/lib/aspose-email-cloud/models/requests/get_calendar_model_list_request_data.rb +22 -9
  63. data/lib/aspose-email-cloud/models/requests/get_calendar_model_request_data.rb +17 -7
  64. data/lib/aspose-email-cloud/models/requests/get_calendar_request_data.rb +17 -7
  65. data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +28 -12
  66. data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +27 -11
  67. data/lib/aspose-email-cloud/models/requests/get_contact_model_list_request_data.rb +27 -11
  68. data/lib/aspose-email-cloud/models/requests/get_contact_model_request_data.rb +22 -9
  69. data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +22 -9
  70. data/lib/aspose-email-cloud/models/requests/get_disc_usage_request_data.rb +6 -2
  71. data/lib/aspose-email-cloud/models/requests/get_email_as_file_request_data.rb +23 -10
  72. data/lib/aspose-email-cloud/models/requests/get_email_attachment_request_data.rb +23 -10
  73. data/lib/aspose-email-cloud/models/requests/get_email_model_list_request_data.rb +27 -11
  74. data/lib/aspose-email-cloud/models/requests/get_email_model_request_data.rb +22 -9
  75. data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +22 -9
  76. data/lib/aspose-email-cloud/models/requests/get_email_request_data.rb +17 -7
  77. data/lib/aspose-email-cloud/models/requests/get_file_versions_request_data.rb +12 -5
  78. data/lib/aspose-email-cloud/models/requests/get_files_list_request_data.rb +12 -5
  79. data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +23 -10
  80. data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +17 -7
  81. data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +21 -8
  82. data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +17 -7
  83. data/lib/aspose-email-cloud/models/requests/list_email_folders_request_data.rb +27 -11
  84. data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +39 -17
  85. data/lib/aspose-email-cloud/models/requests/list_email_models_request_data.rb +39 -17
  86. data/lib/aspose-email-cloud/models/requests/move_file_request_data.rb +28 -12
  87. data/lib/aspose-email-cloud/models/requests/move_folder_request_data.rb +23 -10
  88. data/lib/aspose-email-cloud/models/requests/object_exists_request_data.rb +17 -7
  89. data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +13 -6
  90. data/lib/aspose-email-cloud/models/requests/save_contact_model_request_data.rb +18 -8
  91. data/lib/aspose-email-cloud/models/requests/save_email_model_request_data.rb +18 -8
  92. data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +7 -3
  93. data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +7 -3
  94. data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +7 -3
  95. data/lib/aspose-email-cloud/models/requests/send_email_model_request_data.rb +7 -3
  96. data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +7 -3
  97. data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +18 -8
  98. data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +7 -3
  99. data/lib/aspose-email-cloud/models/requests/storage_exists_request_data.rb +7 -3
  100. data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +13 -6
  101. data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +18 -8
  102. data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +13 -6
  103. data/lib/aspose-email-cloud/models/requests/upload_file_request_data.rb +18 -8
  104. data/lib/aspose-email-cloud/version.rb +1 -1
  105. metadata +12 -2
@@ -32,6 +32,25 @@ module AsposeEmailCloud
32
32
  # Request model for ai_name_parse operation.
33
33
  class AiNameParseRequestData < EmailRequest
34
34
 
35
+ # A name to parse (required)
36
+ # @return [String]
37
+ attr_accessor :name
38
+ # An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \&quot;it\&quot; or \&quot;ita\&quot; for Italian)
39
+ # @return [String]
40
+ attr_accessor :language
41
+ # A geographic code such as an ISO-3166 two letter country code, for example \&quot;FR\&quot; for France
42
+ # @return [String]
43
+ attr_accessor :location
44
+ # A character encoding name
45
+ # @return [String]
46
+ attr_accessor :encoding
47
+ # A writing system code; starts with the ISO-15924 script name
48
+ # @return [String]
49
+ attr_accessor :script
50
+ # Name writing style Enum, available values: Formal, Informal, Legal, Academic
51
+ # @return [String]
52
+ attr_accessor :style
53
+
35
54
  # Parse name to components
36
55
  # @param [String] name A name to parse (required)
37
56
  # @param [String] language An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \&quot;it\&quot; or \&quot;ita\&quot; for Italian)
@@ -40,17 +59,17 @@ module AsposeEmailCloud
40
59
  # @param [String] script A writing system code; starts with the ISO-15924 script name
41
60
  # @param [String] style Name writing style Enum, available values: Formal, Informal, Legal, Academic
42
61
  def initialize(name, language = nil, location = nil, encoding = nil, script = nil, style = nil)
43
- @name = name if name
44
- @language = language if language
45
- @location = location if location
46
- @encoding = encoding if encoding
47
- @script = script if script
48
- @style = style if style
62
+ self.name = name if name
63
+ self.language = language if language
64
+ self.location = location if location
65
+ self.encoding = encoding if encoding
66
+ self.script = script if script
67
+ self.style = style if style
49
68
  end
50
69
 
51
70
  def to_http_info(api_client)
52
71
  # verify the required parameter 'name' is set
53
- if api_client.config.client_side_validation && @name.nil?
72
+ if api_client.config.client_side_validation && self.name.nil?
54
73
  raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.ai_name_parse"
55
74
  end
56
75
 
@@ -59,12 +78,12 @@ module AsposeEmailCloud
59
78
 
60
79
  # query parameters
61
80
  query_params = {}
62
- query_params[:name] = @name
63
- query_params[:language] = @language unless @language.nil?
64
- query_params[:location] = @location unless @location.nil?
65
- query_params[:encoding] = @encoding unless @encoding.nil?
66
- query_params[:script] = @script unless @script.nil?
67
- query_params[:style] = @style unless @style.nil?
81
+ query_params[:name] = self.name
82
+ query_params[:language] = self.language unless self.language.nil?
83
+ query_params[:location] = self.location unless self.location.nil?
84
+ query_params[:encoding] = self.encoding unless self.encoding.nil?
85
+ query_params[:script] = self.script unless self.script.nil?
86
+ query_params[:style] = self.style unless self.style.nil?
68
87
 
69
88
  # form parameters
70
89
  form_params = {}
@@ -32,15 +32,19 @@ module AsposeEmailCloud
32
32
  # Request model for append_email_message operation.
33
33
  class AppendEmailMessageRequestData < EmailRequest
34
34
 
35
+ # Append email request
36
+ # @return [AppendEmailBaseRequest]
37
+ attr_accessor :request
38
+
35
39
  # Adds an email from *.eml file to specified folder in email account
36
40
  # @param [AppendEmailBaseRequest] request Append email request
37
41
  def initialize(request)
38
- @request = request if request
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 && @request.nil?
47
+ if api_client.config.client_side_validation && self.request.nil?
44
48
  raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.append_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(@request)
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 append_email_model_message operation.
33
33
  class AppendEmailModelMessageRequestData < EmailRequest
34
34
 
35
+ # Append email request
36
+ # @return [AppendEmailModelRq]
37
+ attr_accessor :rq
38
+
35
39
  # Adds an email from model to specified folder in email account
36
40
  # @param [AppendEmailModelRq] rq Append email request
37
41
  def initialize(rq)
38
- @rq = rq if rq
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 && @rq.nil?
47
+ if api_client.config.client_side_validation && self.rq.nil?
44
48
  raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.append_email_model_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(@rq)
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 append_mime_message operation.
33
33
  class AppendMimeMessageRequestData < EmailRequest
34
34
 
35
+ # Append email request
36
+ # @return [AppendEmailMimeBaseRequest]
37
+ attr_accessor :request
38
+
35
39
  # Adds an email from MIME to specified folder in email account
36
40
  # @param [AppendEmailMimeBaseRequest] request Append email request
37
41
  def initialize(request)
38
- @request = request if request
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 && @request.nil?
47
+ if api_client.config.client_side_validation && self.request.nil?
44
48
  raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.append_mime_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(@request)
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 convert_calendar_model_to_alternate operation.
33
33
  class ConvertCalendarModelToAlternateRequestData < EmailRequest
34
34
 
35
+ # iCalendar to AlternateView request
36
+ # @return [CalendarDtoAlternateRq]
37
+ attr_accessor :rq
38
+
35
39
  # Convert iCalendar to AlternateView
36
40
  # @param [CalendarDtoAlternateRq] rq iCalendar to AlternateView request
37
41
  def initialize(rq)
38
- @rq = rq if rq
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 && @rq.nil?
47
+ if api_client.config.client_side_validation && self.rq.nil?
44
48
  raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.convert_calendar_model_to_alternate"
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(@rq)
61
+ post_body = api_client.object_to_http_body(self.rq)
58
62
  auth_names = ['JWT']
59
63
 
60
64
  # header parameters
@@ -32,34 +32,41 @@ module AsposeEmailCloud
32
32
  # Request model for convert_email operation.
33
33
  class ConvertEmailRequestData < EmailRequest
34
34
 
35
+ # File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
36
+ # @return [String]
37
+ attr_accessor :format
38
+ # File to upload
39
+ # @return [File]
40
+ attr_accessor :file
41
+
35
42
  # Converts email document to specified format and returns as file
36
43
  # @param [String] format File format Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
37
44
  # @param [File] file File to upload
38
45
  def initialize(format, file)
39
- @format = format if format
40
- @file = file if file
46
+ self.format = format if format
47
+ self.file = file if file
41
48
  end
42
49
 
43
50
  def to_http_info(api_client)
44
51
  # verify the required parameter 'format' is set
45
- if api_client.config.client_side_validation && @format.nil?
52
+ if api_client.config.client_side_validation && self.format.nil?
46
53
  raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.convert_email"
47
54
  end
48
55
 
49
56
  # verify the required parameter 'file' is set
50
- if api_client.config.client_side_validation && @file.nil?
57
+ if api_client.config.client_side_validation && self.file.nil?
51
58
  raise ArgumentError, "Missing the required parameter 'file' when calling EmailApi.convert_email"
52
59
  end
53
60
 
54
61
  # resource path
55
- local_var_path = '/email/convert/{format}'.sub('{' + 'format' + '}', @format.to_s)
62
+ local_var_path = '/email/convert/{format}'.sub('{' + 'format' + '}', self.format.to_s)
56
63
 
57
64
  # query parameters
58
65
  query_params = {}
59
66
 
60
67
  # form parameters
61
68
  form_params = {}
62
- form_params['File'] = @file
69
+ form_params['File'] = self.file
63
70
 
64
71
  # http body (model)
65
72
  post_body = nil
@@ -32,6 +32,22 @@ module AsposeEmailCloud
32
32
  # Request model for copy_file operation.
33
33
  class CopyFileRequestData < EmailRequest
34
34
 
35
+ # Source file path e.g. &#39;/folder/file.ext&#39;
36
+ # @return [String]
37
+ attr_accessor :src_path
38
+ # Destination file path
39
+ # @return [String]
40
+ attr_accessor :dest_path
41
+ # Source storage name
42
+ # @return [String]
43
+ attr_accessor :src_storage_name
44
+ # Destination storage name
45
+ # @return [String]
46
+ attr_accessor :dest_storage_name
47
+ # File version ID to copy
48
+ # @return [String]
49
+ attr_accessor :version_id
50
+
35
51
  # Copy file
36
52
  # @param [String] src_path Source file path e.g. &#39;/folder/file.ext&#39;
37
53
  # @param [String] dest_path Destination file path
@@ -39,33 +55,33 @@ module AsposeEmailCloud
39
55
  # @param [String] dest_storage_name Destination storage name
40
56
  # @param [String] version_id File version ID to copy
41
57
  def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name = nil, version_id = nil)
42
- @src_path = src_path if src_path
43
- @dest_path = dest_path if dest_path
44
- @src_storage_name = src_storage_name if src_storage_name
45
- @dest_storage_name = dest_storage_name if dest_storage_name
46
- @version_id = version_id if version_id
58
+ self.src_path = src_path if src_path
59
+ self.dest_path = dest_path if dest_path
60
+ self.src_storage_name = src_storage_name if src_storage_name
61
+ self.dest_storage_name = dest_storage_name if dest_storage_name
62
+ self.version_id = version_id if version_id
47
63
  end
48
64
 
49
65
  def to_http_info(api_client)
50
66
  # verify the required parameter 'src_path' is set
51
- if api_client.config.client_side_validation && @src_path.nil?
67
+ if api_client.config.client_side_validation && self.src_path.nil?
52
68
  raise ArgumentError, "Missing the required parameter 'src_path' when calling EmailApi.copy_file"
53
69
  end
54
70
 
55
71
  # verify the required parameter 'dest_path' is set
56
- if api_client.config.client_side_validation && @dest_path.nil?
72
+ if api_client.config.client_side_validation && self.dest_path.nil?
57
73
  raise ArgumentError, "Missing the required parameter 'dest_path' when calling EmailApi.copy_file"
58
74
  end
59
75
 
60
76
  # resource path
61
- local_var_path = '/email/storage/file/copy/{srcPath}'.sub('{' + 'srcPath' + '}', @src_path.to_s)
77
+ local_var_path = '/email/storage/file/copy/{srcPath}'.sub('{' + 'srcPath' + '}', self.src_path.to_s)
62
78
 
63
79
  # query parameters
64
80
  query_params = {}
65
- query_params[:destPath] = @dest_path
66
- query_params[:srcStorageName] = @src_storage_name unless @src_storage_name.nil?
67
- query_params[:destStorageName] = @dest_storage_name unless @dest_storage_name.nil?
68
- query_params[:versionId] = @version_id unless @version_id.nil?
81
+ query_params[:destPath] = self.dest_path
82
+ query_params[:srcStorageName] = self.src_storage_name unless self.src_storage_name.nil?
83
+ query_params[:destStorageName] = self.dest_storage_name unless self.dest_storage_name.nil?
84
+ query_params[:versionId] = self.version_id unless self.version_id.nil?
69
85
 
70
86
  # form parameters
71
87
  form_params = {}
@@ -32,37 +32,50 @@ module AsposeEmailCloud
32
32
  # Request model for copy_folder operation.
33
33
  class CopyFolderRequestData < EmailRequest
34
34
 
35
+ # Source folder path e.g. &#39;/src&#39;
36
+ # @return [String]
37
+ attr_accessor :src_path
38
+ # Destination folder path e.g. &#39;/dst&#39;
39
+ # @return [String]
40
+ attr_accessor :dest_path
41
+ # Source storage name
42
+ # @return [String]
43
+ attr_accessor :src_storage_name
44
+ # Destination storage name
45
+ # @return [String]
46
+ attr_accessor :dest_storage_name
47
+
35
48
  # Copy folder
36
49
  # @param [String] src_path Source folder path e.g. &#39;/src&#39;
37
50
  # @param [String] dest_path Destination folder path e.g. &#39;/dst&#39;
38
51
  # @param [String] src_storage_name Source storage name
39
52
  # @param [String] dest_storage_name Destination storage name
40
53
  def initialize(src_path, dest_path, src_storage_name = nil, dest_storage_name = nil)
41
- @src_path = src_path if src_path
42
- @dest_path = dest_path if dest_path
43
- @src_storage_name = src_storage_name if src_storage_name
44
- @dest_storage_name = dest_storage_name if dest_storage_name
54
+ self.src_path = src_path if src_path
55
+ self.dest_path = dest_path if dest_path
56
+ self.src_storage_name = src_storage_name if src_storage_name
57
+ self.dest_storage_name = dest_storage_name if dest_storage_name
45
58
  end
46
59
 
47
60
  def to_http_info(api_client)
48
61
  # verify the required parameter 'src_path' is set
49
- if api_client.config.client_side_validation && @src_path.nil?
62
+ if api_client.config.client_side_validation && self.src_path.nil?
50
63
  raise ArgumentError, "Missing the required parameter 'src_path' when calling EmailApi.copy_folder"
51
64
  end
52
65
 
53
66
  # verify the required parameter 'dest_path' is set
54
- if api_client.config.client_side_validation && @dest_path.nil?
67
+ if api_client.config.client_side_validation && self.dest_path.nil?
55
68
  raise ArgumentError, "Missing the required parameter 'dest_path' when calling EmailApi.copy_folder"
56
69
  end
57
70
 
58
71
  # resource path
59
- local_var_path = '/email/storage/folder/copy/{srcPath}'.sub('{' + 'srcPath' + '}', @src_path.to_s)
72
+ local_var_path = '/email/storage/folder/copy/{srcPath}'.sub('{' + 'srcPath' + '}', self.src_path.to_s)
60
73
 
61
74
  # query parameters
62
75
  query_params = {}
63
- query_params[:destPath] = @dest_path
64
- query_params[:srcStorageName] = @src_storage_name unless @src_storage_name.nil?
65
- query_params[:destStorageName] = @dest_storage_name unless @dest_storage_name.nil?
76
+ query_params[:destPath] = self.dest_path
77
+ query_params[:srcStorageName] = self.src_storage_name unless self.src_storage_name.nil?
78
+ query_params[:destStorageName] = self.dest_storage_name unless self.dest_storage_name.nil?
66
79
 
67
80
  # form parameters
68
81
  form_params = {}
@@ -32,27 +32,34 @@ module AsposeEmailCloud
32
32
  # Request model for create_calendar operation.
33
33
  class CreateCalendarRequestData < EmailRequest
34
34
 
35
+ # Calendar file name in storage
36
+ # @return [String]
37
+ attr_accessor :name
38
+ #
39
+ # @return [HierarchicalObjectRequest]
40
+ attr_accessor :request
41
+
35
42
  # Create calendar file
36
43
  # @param [String] name Calendar file name in storage
37
44
  # @param [HierarchicalObjectRequest] request
38
45
  def initialize(name, request)
39
- @name = name if name
40
- @request = request if request
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 && @name.nil?
52
+ if api_client.config.client_side_validation && self.name.nil?
46
53
  raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.create_calendar"
47
54
  end
48
55
 
49
56
  # verify the required parameter 'request' is set
50
- if api_client.config.client_side_validation && @request.nil?
57
+ if api_client.config.client_side_validation && self.request.nil?
51
58
  raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.create_calendar"
52
59
  end
53
60
 
54
61
  # resource path
55
- local_var_path = '/email/Calendar/{name}'.sub('{' + 'name' + '}', @name.to_s)
62
+ local_var_path = '/email/Calendar/{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(@request)
71
+ post_body = api_client.object_to_http_body(self.request)
65
72
  auth_names = ['JWT']
66
73
 
67
74
  # header parameters
@@ -32,34 +32,44 @@ module AsposeEmailCloud
32
32
  # Request model for create_contact operation.
33
33
  class CreateContactRequestData < 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 [HierarchicalObjectRequest]
43
+ attr_accessor :request
44
+
35
45
  # Create contact document
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 [HierarchicalObjectRequest] request Create contact request
39
49
  def initialize(format, name, request)
40
- @format = format if format
41
- @name = name if name
42
- @request = request if request
50
+ self.format = format if format
51
+ self.name = name if 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 'format' is set
47
- if api_client.config.client_side_validation && @format.nil?
57
+ if api_client.config.client_side_validation && self.format.nil?
48
58
  raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.create_contact"
49
59
  end
50
60
 
51
61
  # verify the required parameter 'name' is set
52
- if api_client.config.client_side_validation && @name.nil?
62
+ if api_client.config.client_side_validation && self.name.nil?
53
63
  raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.create_contact"
54
64
  end
55
65
 
56
66
  # verify the required parameter 'request' is set
57
- if api_client.config.client_side_validation && @request.nil?
67
+ if api_client.config.client_side_validation && self.request.nil?
58
68
  raise ArgumentError, "Missing the required parameter 'request' when calling EmailApi.create_contact"
59
69
  end
60
70
 
61
71
  # resource path
62
- local_var_path = '/email/Contact/{format}/{name}'.sub('{' + 'format' + '}', @format.to_s).sub('{' + 'name' + '}', @name.to_s)
72
+ local_var_path = '/email/Contact/{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(@request)
81
+ post_body = api_client.object_to_http_body(self.request)
72
82
  auth_names = ['JWT']
73
83
 
74
84
  # header parameters