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,36 +32,49 @@ module AsposeEmailCloud
32
32
  # Request model for get_email_model operation.
33
33
  class GetEmailModelRequestData < EmailRequest
34
34
 
35
+ # Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
36
+ # @return [String]
37
+ attr_accessor :format
38
+ # Email 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 email document.
36
49
  # @param [String] format Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
37
50
  # @param [String] name Email 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
- @format = format if format
42
- @name = name if name
43
- @folder = folder if folder
44
- @storage = storage if storage
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 && @format.nil?
62
+ if api_client.config.client_side_validation && self.format.nil?
50
63
  raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.get_email_model"
51
64
  end
52
65
 
53
66
  # verify the required parameter 'name' is set
54
- if api_client.config.client_side_validation && @name.nil?
67
+ if api_client.config.client_side_validation && self.name.nil?
55
68
  raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_email_model"
56
69
  end
57
70
 
58
71
  # resource path
59
- local_var_path = '/email/model/{format}/{name}'.sub('{' + 'format' + '}', @format.to_s).sub('{' + 'name' + '}', @name.to_s)
72
+ local_var_path = '/email/model/{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] = @folder unless @folder.nil?
64
- query_params[:storage] = @storage unless @storage.nil?
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_email_property operation.
33
33
  class GetEmailPropertyRequestData < EmailRequest
34
34
 
35
+ # A property name
36
+ # @return [String]
37
+ attr_accessor :property_name
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 an email document property by its name
36
49
  # @param [String] property_name A property 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(property_name, file_name, storage = nil, folder = nil)
41
- @property_name = property_name if property_name
42
- @file_name = file_name if file_name
43
- @storage = storage if storage
44
- @folder = folder if folder
54
+ self.property_name = property_name if property_name
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 'property_name' is set
49
- if api_client.config.client_side_validation && @property_name.nil?
62
+ if api_client.config.client_side_validation && self.property_name.nil?
50
63
  raise ArgumentError, "Missing the required parameter 'property_name' when calling EmailApi.get_email_property"
51
64
  end
52
65
 
53
66
  # verify the required parameter 'file_name' is set
54
- if api_client.config.client_side_validation && @file_name.nil?
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_property"
56
69
  end
57
70
 
58
71
  # resource path
59
- local_var_path = '/email/{fileName}/properties/{propertyName}'.sub('{' + 'propertyName' + '}', @property_name.to_s).sub('{' + 'fileName' + '}', @file_name.to_s)
72
+ local_var_path = '/email/{fileName}/properties/{propertyName}'.sub('{' + 'propertyName' + '}', self.property_name.to_s).sub('{' + 'fileName' + '}', self.file_name.to_s)
60
73
 
61
74
  # query parameters
62
75
  query_params = {}
63
- query_params[:storage] = @storage unless @storage.nil?
64
- query_params[:folder] = @folder unless @folder.nil?
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 = {}
@@ -32,29 +32,39 @@ module AsposeEmailCloud
32
32
  # Request model for get_email operation.
33
33
  class GetEmailRequestData < EmailRequest
34
34
 
35
+ # Email document file name in storage
36
+ # @return [String]
37
+ attr_accessor :file_name
38
+ # Storage name
39
+ # @return [String]
40
+ attr_accessor :storage
41
+ # Path to folder in storage
42
+ # @return [String]
43
+ attr_accessor :folder
44
+
35
45
  # Get email document
36
46
  # @param [String] file_name Email document file name in storage
37
47
  # @param [String] storage Storage name
38
48
  # @param [String] folder Path to folder in storage
39
49
  def initialize(file_name, storage = nil, folder = nil)
40
- @file_name = file_name if file_name
41
- @storage = storage if storage
42
- @folder = folder if folder
50
+ self.file_name = file_name if file_name
51
+ self.storage = storage if storage
52
+ self.folder = folder if folder
43
53
  end
44
54
 
45
55
  def to_http_info(api_client)
46
56
  # verify the required parameter 'file_name' is set
47
- if api_client.config.client_side_validation && @file_name.nil?
57
+ if api_client.config.client_side_validation && self.file_name.nil?
48
58
  raise ArgumentError, "Missing the required parameter 'file_name' when calling EmailApi.get_email"
49
59
  end
50
60
 
51
61
  # resource path
52
- local_var_path = '/email/{fileName}'.sub('{' + 'fileName' + '}', @file_name.to_s)
62
+ local_var_path = '/email/{fileName}'.sub('{' + 'fileName' + '}', self.file_name.to_s)
53
63
 
54
64
  # query parameters
55
65
  query_params = {}
56
- query_params[:storage] = @storage unless @storage.nil?
57
- query_params[:folder] = @folder unless @folder.nil?
66
+ query_params[:storage] = self.storage unless self.storage.nil?
67
+ query_params[:folder] = self.folder unless self.folder.nil?
58
68
 
59
69
  # form parameters
60
70
  form_params = {}
@@ -32,26 +32,33 @@ module AsposeEmailCloud
32
32
  # Request model for get_file_versions operation.
33
33
  class GetFileVersionsRequestData < EmailRequest
34
34
 
35
+ # File path e.g. &#39;/file.ext&#39;
36
+ # @return [String]
37
+ attr_accessor :path
38
+ # Storage name
39
+ # @return [String]
40
+ attr_accessor :storage_name
41
+
35
42
  # Get file versions
36
43
  # @param [String] path File path e.g. &#39;/file.ext&#39;
37
44
  # @param [String] storage_name Storage name
38
45
  def initialize(path, storage_name = nil)
39
- @path = path if path
40
- @storage_name = storage_name if storage_name
46
+ self.path = path if path
47
+ self.storage_name = storage_name if storage_name
41
48
  end
42
49
 
43
50
  def to_http_info(api_client)
44
51
  # verify the required parameter 'path' is set
45
- if api_client.config.client_side_validation && @path.nil?
52
+ if api_client.config.client_side_validation && self.path.nil?
46
53
  raise ArgumentError, "Missing the required parameter 'path' when calling EmailApi.get_file_versions"
47
54
  end
48
55
 
49
56
  # resource path
50
- local_var_path = '/email/storage/version/{path}'.sub('{' + 'path' + '}', @path.to_s)
57
+ local_var_path = '/email/storage/version/{path}'.sub('{' + 'path' + '}', self.path.to_s)
51
58
 
52
59
  # query parameters
53
60
  query_params = {}
54
- query_params[:storageName] = @storage_name unless @storage_name.nil?
61
+ query_params[:storageName] = self.storage_name unless self.storage_name.nil?
55
62
 
56
63
  # form parameters
57
64
  form_params = {}
@@ -32,26 +32,33 @@ module AsposeEmailCloud
32
32
  # Request model for get_files_list operation.
33
33
  class GetFilesListRequestData < EmailRequest
34
34
 
35
+ # Folder path e.g. &#39;/folder&#39;
36
+ # @return [String]
37
+ attr_accessor :path
38
+ # Storage name
39
+ # @return [String]
40
+ attr_accessor :storage_name
41
+
35
42
  # Get all files and folders within a folder
36
43
  # @param [String] path Folder path e.g. &#39;/folder&#39;
37
44
  # @param [String] storage_name Storage name
38
45
  def initialize(path, storage_name = nil)
39
- @path = path if path
40
- @storage_name = storage_name if storage_name
46
+ self.path = path if path
47
+ self.storage_name = storage_name if storage_name
41
48
  end
42
49
 
43
50
  def to_http_info(api_client)
44
51
  # verify the required parameter 'path' is set
45
- if api_client.config.client_side_validation && @path.nil?
52
+ if api_client.config.client_side_validation && self.path.nil?
46
53
  raise ArgumentError, "Missing the required parameter 'path' when calling EmailApi.get_files_list"
47
54
  end
48
55
 
49
56
  # resource path
50
- local_var_path = '/email/storage/folder/{path}'.sub('{' + 'path' + '}', @path.to_s)
57
+ local_var_path = '/email/storage/folder/{path}'.sub('{' + 'path' + '}', self.path.to_s)
51
58
 
52
59
  # query parameters
53
60
  query_params = {}
54
- query_params[:storageName] = @storage_name unless @storage_name.nil?
61
+ query_params[:storageName] = self.storage_name unless self.storage_name.nil?
55
62
 
56
63
  # form parameters
57
64
  form_params = {}
@@ -32,36 +32,49 @@ module AsposeEmailCloud
32
32
  # Request model for get_mapi_attachment operation.
33
33
  class GetMapiAttachmentRequestData < EmailRequest
34
34
 
35
+ # 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 document attachment as file stream
36
49
  # @param [String] name 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
- @name = name if name
42
- @attachment = attachment if attachment
43
- @folder = folder if folder
44
- @storage = storage if storage
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 && @name.nil?
62
+ if api_client.config.client_side_validation && self.name.nil?
50
63
  raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_mapi_attachment"
51
64
  end
52
65
 
53
66
  # verify the required parameter 'attachment' is set
54
- if api_client.config.client_side_validation && @attachment.nil?
67
+ if api_client.config.client_side_validation && self.attachment.nil?
55
68
  raise ArgumentError, "Missing the required parameter 'attachment' when calling EmailApi.get_mapi_attachment"
56
69
  end
57
70
 
58
71
  # resource path
59
- local_var_path = '/email/Mapi/{name}/attachments/{attachment}'.sub('{' + 'name' + '}', @name.to_s).sub('{' + 'attachment' + '}', @attachment.to_s)
72
+ local_var_path = '/email/Mapi/{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] = @folder unless @folder.nil?
64
- query_params[:storage] = @storage unless @storage.nil?
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(['application/json'])
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,29 +32,39 @@ module AsposeEmailCloud
32
32
  # Request model for get_mapi_attachments operation.
33
33
  class GetMapiAttachmentsRequestData < EmailRequest
34
34
 
35
+ # Document file name
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 document attachment list
36
46
  # @param [String] name Document file name
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
- @name = name if name
41
- @folder = folder if folder
42
- @storage = storage if storage
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 && @name.nil?
57
+ if api_client.config.client_side_validation && self.name.nil?
48
58
  raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_mapi_attachments"
49
59
  end
50
60
 
51
61
  # resource path
52
- local_var_path = '/email/Mapi/{name}/attachments'.sub('{' + 'name' + '}', @name.to_s)
62
+ local_var_path = '/email/Mapi/{name}/attachments'.sub('{' + 'name' + '}', self.name.to_s)
53
63
 
54
64
  # query parameters
55
65
  query_params = {}
56
- query_params[:folder] = @folder unless @folder.nil?
57
- query_params[:storage] = @storage unless @storage.nil?
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,16 +32,29 @@ module AsposeEmailCloud
32
32
  # Request model for get_mapi_list operation.
33
33
  class GetMapiListRequestData < EmailRequest
34
34
 
35
+ # Path to folder in storage
36
+ # @return [String]
37
+ attr_accessor :folder
38
+ # Storage name
39
+ # @return [String]
40
+ attr_accessor :storage
41
+ # Count of items on page
42
+ # @return [Integer]
43
+ attr_accessor :items_per_page
44
+ # Page number
45
+ # @return [Integer]
46
+ attr_accessor :page_number
47
+
35
48
  # Get document list from storage folder
36
49
  # @param [String] folder Path to folder in storage
37
50
  # @param [String] storage Storage name
38
51
  # @param [Integer] items_per_page Count of items on page
39
52
  # @param [Integer] page_number Page number
40
53
  def initialize(folder = nil, storage = nil, items_per_page = nil, page_number = nil)
41
- @folder = folder if folder
42
- @storage = storage if storage
43
- @items_per_page = items_per_page if items_per_page
44
- @page_number = page_number if page_number
54
+ self.folder = folder if folder
55
+ self.storage = storage if storage
56
+ self.items_per_page = items_per_page if items_per_page
57
+ self.page_number = page_number if page_number
45
58
  end
46
59
 
47
60
  def to_http_info(api_client)
@@ -50,10 +63,10 @@ module AsposeEmailCloud
50
63
 
51
64
  # query parameters
52
65
  query_params = {}
53
- query_params[:folder] = @folder unless @folder.nil?
54
- query_params[:storage] = @storage unless @storage.nil?
55
- query_params[:itemsPerPage] = @items_per_page unless @items_per_page.nil?
56
- query_params[:pageNumber] = @page_number unless @page_number.nil?
66
+ query_params[:folder] = self.folder unless self.folder.nil?
67
+ query_params[:storage] = self.storage unless self.storage.nil?
68
+ query_params[:itemsPerPage] = self.items_per_page unless self.items_per_page.nil?
69
+ query_params[:pageNumber] = self.page_number unless self.page_number.nil?
57
70
 
58
71
  # form parameters
59
72
  form_params = {}
@@ -32,29 +32,39 @@ module AsposeEmailCloud
32
32
  # Request model for get_mapi_properties operation.
33
33
  class GetMapiPropertiesRequestData < EmailRequest
34
34
 
35
+ # Document file name
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 document properties
36
46
  # @param [String] name Document file name
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
- @name = name if name
41
- @folder = folder if folder
42
- @storage = storage if storage
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 && @name.nil?
57
+ if api_client.config.client_side_validation && self.name.nil?
48
58
  raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_mapi_properties"
49
59
  end
50
60
 
51
61
  # resource path
52
- local_var_path = '/email/Mapi/{name}/properties'.sub('{' + 'name' + '}', @name.to_s)
62
+ local_var_path = '/email/Mapi/{name}/properties'.sub('{' + 'name' + '}', self.name.to_s)
53
63
 
54
64
  # query parameters
55
65
  query_params = {}
56
- query_params[:folder] = @folder unless @folder.nil?
57
- query_params[:storage] = @storage unless @storage.nil?
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 = {}