aspose_email_cloud 20.5.0 → 20.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (95) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose-email-cloud.rb +74 -0
  3. data/lib/aspose-email-cloud/api/email_api.rb +147 -0
  4. data/lib/aspose-email-cloud/models/ai_bcr_image_storage_file.rb +3 -3
  5. data/lib/aspose-email-cloud/models/ai_bcr_parse_storage_rq.rb +3 -3
  6. data/lib/aspose-email-cloud/models/append_email_base_request.rb +3 -3
  7. data/lib/aspose-email-cloud/models/append_email_model_rq.rb +3 -3
  8. data/lib/aspose-email-cloud/models/calendar_dto.rb +17 -4
  9. data/lib/aspose-email-cloud/models/contact_photo.rb +29 -5
  10. data/lib/aspose-email-cloud/models/daily_recurrence_pattern_dto.rb +296 -0
  11. data/lib/aspose-email-cloud/models/mapi_attachment_dto.rb +226 -0
  12. data/lib/aspose-email-cloud/models/mapi_binary_property_dto.rb +250 -0
  13. data/lib/aspose-email-cloud/models/mapi_boolean_property_dto.rb +255 -0
  14. data/lib/aspose-email-cloud/models/mapi_calendar_attendees_dto.rb +266 -0
  15. data/lib/aspose-email-cloud/models/mapi_calendar_daily_recurrence_pattern_dto.rb +464 -0
  16. data/lib/aspose-email-cloud/models/mapi_calendar_dto.rb +728 -0
  17. data/lib/aspose-email-cloud/models/mapi_calendar_event_recurrence_dto.rb +293 -0
  18. data/lib/aspose-email-cloud/models/mapi_calendar_exception_info_dto.rb +431 -0
  19. data/lib/aspose-email-cloud/models/mapi_calendar_recurrence_pattern_dto.rb +449 -0
  20. data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_dto.rb +228 -0
  21. data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_info_dto.rb +313 -0
  22. data/lib/aspose-email-cloud/models/mapi_calendar_time_zone_rule_dto.rb +362 -0
  23. data/lib/aspose-email-cloud/models/mapi_calendar_weekly_recurrence_pattern_dto.rb +464 -0
  24. data/lib/aspose-email-cloud/models/mapi_calendar_yearly_and_monthly_recurrence_pattern_dto.rb +500 -0
  25. data/lib/aspose-email-cloud/models/mapi_contact_dto.rb +569 -0
  26. data/lib/aspose-email-cloud/models/mapi_contact_electronic_address_dto.rb +283 -0
  27. data/lib/aspose-email-cloud/models/mapi_contact_electronic_address_property_set_dto.rb +327 -0
  28. data/lib/aspose-email-cloud/models/mapi_contact_event_property_set_dto.rb +236 -0
  29. data/lib/aspose-email-cloud/models/mapi_contact_name_property_set_dto.rb +335 -0
  30. data/lib/aspose-email-cloud/models/mapi_contact_other_property_set_dto.rb +319 -0
  31. data/lib/aspose-email-cloud/models/mapi_contact_personal_info_property_set_dto.rb +454 -0
  32. data/lib/aspose-email-cloud/models/mapi_contact_photo_dto.rb +255 -0
  33. data/lib/aspose-email-cloud/models/mapi_contact_physical_address_dto.rb +322 -0
  34. data/lib/aspose-email-cloud/models/mapi_contact_physical_address_property_set_dto.rb +239 -0
  35. data/lib/aspose-email-cloud/models/mapi_contact_professional_property_set_dto.rb +291 -0
  36. data/lib/aspose-email-cloud/models/mapi_contact_telephone_property_set_dto.rb +457 -0
  37. data/lib/aspose-email-cloud/models/mapi_date_time_property_dto.rb +255 -0
  38. data/lib/aspose-email-cloud/models/mapi_electronic_address_dto.rb +265 -0
  39. data/lib/aspose-email-cloud/models/mapi_file_as_property_dto.rb +255 -0
  40. data/lib/aspose-email-cloud/models/mapi_importance_property_dto.rb +255 -0
  41. data/lib/aspose-email-cloud/models/mapi_int_property_dto.rb +255 -0
  42. data/lib/aspose-email-cloud/models/mapi_known_property_descriptor.rb +237 -0
  43. data/lib/aspose-email-cloud/models/mapi_legacy_free_busy_property_dto.rb +255 -0
  44. data/lib/aspose-email-cloud/models/mapi_message_dto.rb +801 -0
  45. data/lib/aspose-email-cloud/models/mapi_message_item_base_dto.rb +452 -0
  46. data/lib/aspose-email-cloud/models/mapi_multi_int_property_dto.rb +252 -0
  47. data/lib/aspose-email-cloud/models/mapi_multi_string_property_dto.rb +252 -0
  48. data/lib/aspose-email-cloud/models/mapi_physical_address_index_property_dto.rb +255 -0
  49. data/lib/aspose-email-cloud/models/mapi_pid_lid_property_descriptor.rb +322 -0
  50. data/lib/aspose-email-cloud/models/mapi_pid_name_property_descriptor.rb +304 -0
  51. data/lib/aspose-email-cloud/models/mapi_pid_property_descriptor.rb +286 -0
  52. data/lib/aspose-email-cloud/models/mapi_pid_tag_property_descriptor.rb +322 -0
  53. data/lib/aspose-email-cloud/models/mapi_property_descriptor.rb +224 -0
  54. data/lib/aspose-email-cloud/models/mapi_property_dto.rb +237 -0
  55. data/lib/aspose-email-cloud/models/mapi_recipient_dto.rb +257 -0
  56. data/lib/aspose-email-cloud/models/mapi_response_type_property_dto.rb +255 -0
  57. data/lib/aspose-email-cloud/models/mapi_string_property_dto.rb +250 -0
  58. data/lib/aspose-email-cloud/models/monthly_recurrence_pattern_dto.rb +350 -0
  59. data/lib/aspose-email-cloud/models/recurrence_pattern_dto.rb +296 -0
  60. data/lib/aspose-email-cloud/models/requests/convert_calendar_model_to_mapi_model_request_data.rb +79 -0
  61. data/lib/aspose-email-cloud/models/requests/convert_contact_model_to_mapi_model_request_data.rb +79 -0
  62. data/lib/aspose-email-cloud/models/requests/convert_email_model_to_file_request_data.rb +2 -2
  63. data/lib/aspose-email-cloud/models/requests/convert_email_model_to_mapi_model_request_data.rb +79 -0
  64. data/lib/aspose-email-cloud/models/requests/convert_email_request_data.rb +2 -2
  65. data/lib/aspose-email-cloud/models/requests/convert_mapi_calendar_model_to_calendar_model_request_data.rb +79 -0
  66. data/lib/aspose-email-cloud/models/requests/convert_mapi_calendar_model_to_file_request_data.rb +89 -0
  67. data/lib/aspose-email-cloud/models/requests/convert_mapi_contact_model_to_contact_model_request_data.rb +79 -0
  68. data/lib/aspose-email-cloud/models/requests/convert_mapi_contact_model_to_file_request_data.rb +89 -0
  69. data/lib/aspose-email-cloud/models/requests/convert_mapi_message_model_to_email_model_request_data.rb +79 -0
  70. data/lib/aspose-email-cloud/models/requests/convert_mapi_message_model_to_file_request_data.rb +89 -0
  71. data/lib/aspose-email-cloud/models/requests/get_calendar_file_as_mapi_model_request_data.rb +80 -0
  72. data/lib/aspose-email-cloud/models/requests/get_contact_file_as_mapi_model_request_data.rb +90 -0
  73. data/lib/aspose-email-cloud/models/requests/get_email_as_file_request_data.rb +2 -2
  74. data/lib/aspose-email-cloud/models/requests/get_email_file_as_mapi_model_request_data.rb +90 -0
  75. data/lib/aspose-email-cloud/models/requests/get_email_model_list_request_data.rb +2 -2
  76. data/lib/aspose-email-cloud/models/requests/get_email_model_request_data.rb +2 -2
  77. data/lib/aspose-email-cloud/models/requests/get_mapi_calendar_model_request_data.rb +91 -0
  78. data/lib/aspose-email-cloud/models/requests/get_mapi_contact_model_request_data.rb +101 -0
  79. data/lib/aspose-email-cloud/models/requests/get_mapi_message_model_request_data.rb +101 -0
  80. data/lib/aspose-email-cloud/models/requests/save_calendar_model_request_data.rb +2 -2
  81. data/lib/aspose-email-cloud/models/requests/save_contact_model_request_data.rb +2 -2
  82. data/lib/aspose-email-cloud/models/requests/save_email_model_request_data.rb +4 -4
  83. data/lib/aspose-email-cloud/models/requests/save_mapi_calendar_model_request_data.rb +99 -0
  84. data/lib/aspose-email-cloud/models/requests/save_mapi_contact_model_request_data.rb +99 -0
  85. data/lib/aspose-email-cloud/models/requests/save_mapi_message_model_request_data.rb +99 -0
  86. data/lib/aspose-email-cloud/models/send_email_base_request.rb +3 -3
  87. data/lib/aspose-email-cloud/models/send_email_model_rq.rb +3 -3
  88. data/lib/aspose-email-cloud/models/storage_model_rq_of_mapi_calendar_dto.rb +225 -0
  89. data/lib/aspose-email-cloud/models/storage_model_rq_of_mapi_contact_dto.rb +225 -0
  90. data/lib/aspose-email-cloud/models/storage_model_rq_of_mapi_message_dto.rb +225 -0
  91. data/lib/aspose-email-cloud/models/task_regenerating_pattern_dto.rb +314 -0
  92. data/lib/aspose-email-cloud/models/weekly_recurrence_pattern_dto.rb +311 -0
  93. data/lib/aspose-email-cloud/models/yearly_recurrence_pattern_dto.rb +368 -0
  94. data/lib/aspose-email-cloud/version.rb +1 -1
  95. metadata +76 -2
@@ -32,7 +32,7 @@ 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
35
+ # Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
36
36
  # @return [String]
37
37
  attr_accessor :format
38
38
  # Path to folder in storage.
@@ -49,7 +49,7 @@ module AsposeEmailCloud
49
49
  attr_accessor :page_number
50
50
 
51
51
  # Get email list from storage folder.
52
- # @param [String] format Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
52
+ # @param [String] format Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
53
53
  # @param [String] folder Path to folder in storage.
54
54
  # @param [String] storage Storage name.
55
55
  # @param [Integer] items_per_page Count of items on page.
@@ -32,7 +32,7 @@ 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
35
+ # Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
36
36
  # @return [String]
37
37
  attr_accessor :format
38
38
  # Email document file name.
@@ -46,7 +46,7 @@ module AsposeEmailCloud
46
46
  attr_accessor :storage
47
47
 
48
48
  # Get email document.
49
- # @param [String] format Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
49
+ # @param [String] format Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
50
50
  # @param [String] name Email document file name.
51
51
  # @param [String] folder Path to folder in storage.
52
52
  # @param [String] storage Storage name.
@@ -0,0 +1,91 @@
1
+
2
+ # ----------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="get_mapi_calendar_model_request_data.rb">
4
+ # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
5
+ # </copyright>
6
+ # <summary>
7
+ # Permission is hereby granted, free of charge, to any person obtaining a
8
+ # copy of this software and associated documentation files (the "Software"),
9
+ # to deal in the Software without restriction, including without limitation
10
+ # the rights to use, copy, modify, merge, publish, distribute, sublicense,
11
+ # and/or sell copies of the Software, and to permit persons to whom the
12
+ # Software is furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in
15
+ # all copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23
+ # DEALINGS IN THE SOFTWARE.
24
+ # </summary>
25
+ # ----------------------------------------------------------------------------
26
+
27
+
28
+ require_relative './email_request'
29
+ require_relative './http_request'
30
+
31
+ module AsposeEmailCloud
32
+ # Request model for get_mapi_calendar_model operation.
33
+ class GetMapiCalendarModelRequestData < EmailRequest
34
+
35
+ # Calendar file name in storage
36
+ # @return [String]
37
+ attr_accessor :name
38
+ # Path to folder in storage
39
+ # @return [String]
40
+ attr_accessor :folder
41
+ # Storage name
42
+ # @return [String]
43
+ attr_accessor :storage
44
+
45
+ # Get MAPI calendar document.
46
+ # @param [String] name Calendar file name in storage
47
+ # @param [String] folder Path to folder in storage
48
+ # @param [String] storage Storage name
49
+ def initialize(name, folder = nil, storage = nil)
50
+ self.name = name if name
51
+ self.folder = folder if folder
52
+ self.storage = storage if storage
53
+ end
54
+
55
+ def to_http_info(api_client)
56
+ # verify the required parameter 'name' is set
57
+ if api_client.config.client_side_validation && self.name.nil?
58
+ raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_mapi_calendar_model"
59
+ end
60
+
61
+ # resource path
62
+ local_var_path = '/email/MapiCalendar/{name}'.sub('{' + 'name' + '}', self.name.to_s)
63
+
64
+ # query parameters
65
+ query_params = {}
66
+ query_params[:folder] = self.folder unless self.folder.nil?
67
+ query_params[:storage] = self.storage unless self.storage.nil?
68
+
69
+ # form parameters
70
+ form_params = {}
71
+
72
+ # http body (model)
73
+ post_body = nil
74
+ auth_names = ['JWT']
75
+
76
+ # header parameters
77
+ header_params = {}
78
+ # HTTP header 'Accept' (if needed)
79
+ header_params['Accept'] = select_header_accept(['application/json'])
80
+ # HTTP header 'Content-Type'
81
+ header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
82
+
83
+ AsposeEmailCloud::HttpRequest.new(local_var_path,
84
+ header_params,
85
+ query_params,
86
+ form_params,
87
+ post_body,
88
+ auth_names)
89
+ end
90
+ end
91
+ end
@@ -0,0 +1,101 @@
1
+
2
+ # ----------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="get_mapi_contact_model_request_data.rb">
4
+ # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
5
+ # </copyright>
6
+ # <summary>
7
+ # Permission is hereby granted, free of charge, to any person obtaining a
8
+ # copy of this software and associated documentation files (the "Software"),
9
+ # to deal in the Software without restriction, including without limitation
10
+ # the rights to use, copy, modify, merge, publish, distribute, sublicense,
11
+ # and/or sell copies of the Software, and to permit persons to whom the
12
+ # Software is furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in
15
+ # all copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23
+ # DEALINGS IN THE SOFTWARE.
24
+ # </summary>
25
+ # ----------------------------------------------------------------------------
26
+
27
+
28
+ require_relative './email_request'
29
+ require_relative './http_request'
30
+
31
+ module AsposeEmailCloud
32
+ # Request model for get_mapi_contact_model operation.
33
+ class GetMapiContactModelRequestData < EmailRequest
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
+
48
+ # Get MAPI contact document.
49
+ # @param [String] format Contact document format. Enum, available values: VCard, WebDav, Msg
50
+ # @param [String] name Contact document file name.
51
+ # @param [String] folder Path to folder in storage.
52
+ # @param [String] storage Storage name.
53
+ def initialize(format, name, folder = nil, storage = nil)
54
+ self.format = format if format
55
+ self.name = name if name
56
+ self.folder = folder if folder
57
+ self.storage = storage if storage
58
+ end
59
+
60
+ def to_http_info(api_client)
61
+ # verify the required parameter 'format' is set
62
+ if api_client.config.client_side_validation && self.format.nil?
63
+ raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.get_mapi_contact_model"
64
+ end
65
+
66
+ # verify the required parameter 'name' is set
67
+ if api_client.config.client_side_validation && self.name.nil?
68
+ raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_mapi_contact_model"
69
+ end
70
+
71
+ # resource path
72
+ local_var_path = '/email/MapiContact/{format}/{name}'.sub('{' + 'format' + '}', self.format.to_s).sub('{' + 'name' + '}', self.name.to_s)
73
+
74
+ # query parameters
75
+ query_params = {}
76
+ query_params[:folder] = self.folder unless self.folder.nil?
77
+ query_params[:storage] = self.storage unless self.storage.nil?
78
+
79
+ # form parameters
80
+ form_params = {}
81
+
82
+ # http body (model)
83
+ post_body = nil
84
+ auth_names = ['JWT']
85
+
86
+ # header parameters
87
+ header_params = {}
88
+ # HTTP header 'Accept' (if needed)
89
+ header_params['Accept'] = select_header_accept(['application/json'])
90
+ # HTTP header 'Content-Type'
91
+ header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
92
+
93
+ AsposeEmailCloud::HttpRequest.new(local_var_path,
94
+ header_params,
95
+ query_params,
96
+ form_params,
97
+ post_body,
98
+ auth_names)
99
+ end
100
+ end
101
+ end
@@ -0,0 +1,101 @@
1
+
2
+ # ----------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="get_mapi_message_model_request_data.rb">
4
+ # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
5
+ # </copyright>
6
+ # <summary>
7
+ # Permission is hereby granted, free of charge, to any person obtaining a
8
+ # copy of this software and associated documentation files (the "Software"),
9
+ # to deal in the Software without restriction, including without limitation
10
+ # the rights to use, copy, modify, merge, publish, distribute, sublicense,
11
+ # and/or sell copies of the Software, and to permit persons to whom the
12
+ # Software is furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in
15
+ # all copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23
+ # DEALINGS IN THE SOFTWARE.
24
+ # </summary>
25
+ # ----------------------------------------------------------------------------
26
+
27
+
28
+ require_relative './email_request'
29
+ require_relative './http_request'
30
+
31
+ module AsposeEmailCloud
32
+ # Request model for get_mapi_message_model operation.
33
+ class GetMapiMessageModelRequestData < EmailRequest
34
+
35
+ # Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
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
+
48
+ # Get MAPI message document.
49
+ # @param [String] format Email document format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
50
+ # @param [String] name Email document file name.
51
+ # @param [String] folder Path to folder in storage.
52
+ # @param [String] storage Storage name.
53
+ def initialize(format, name, folder = nil, storage = nil)
54
+ self.format = format if format
55
+ self.name = name if name
56
+ self.folder = folder if folder
57
+ self.storage = storage if storage
58
+ end
59
+
60
+ def to_http_info(api_client)
61
+ # verify the required parameter 'format' is set
62
+ if api_client.config.client_side_validation && self.format.nil?
63
+ raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.get_mapi_message_model"
64
+ end
65
+
66
+ # verify the required parameter 'name' is set
67
+ if api_client.config.client_side_validation && self.name.nil?
68
+ raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.get_mapi_message_model"
69
+ end
70
+
71
+ # resource path
72
+ local_var_path = '/email/MapiMessage/{format}/{name}'.sub('{' + 'format' + '}', self.format.to_s).sub('{' + 'name' + '}', self.name.to_s)
73
+
74
+ # query parameters
75
+ query_params = {}
76
+ query_params[:folder] = self.folder unless self.folder.nil?
77
+ query_params[:storage] = self.storage unless self.storage.nil?
78
+
79
+ # form parameters
80
+ form_params = {}
81
+
82
+ # http body (model)
83
+ post_body = nil
84
+ auth_names = ['JWT']
85
+
86
+ # header parameters
87
+ header_params = {}
88
+ # HTTP header 'Accept' (if needed)
89
+ header_params['Accept'] = select_header_accept(['application/json'])
90
+ # HTTP header 'Content-Type'
91
+ header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
92
+
93
+ AsposeEmailCloud::HttpRequest.new(local_var_path,
94
+ header_params,
95
+ query_params,
96
+ form_params,
97
+ post_body,
98
+ auth_names)
99
+ end
100
+ end
101
+ end
@@ -35,13 +35,13 @@ module AsposeEmailCloud
35
35
  # iCalendar file name in storage
36
36
  # @return [String]
37
37
  attr_accessor :name
38
- # Calendar properties update request
38
+ # Calendar update request
39
39
  # @return [StorageModelRqOfCalendarDto]
40
40
  attr_accessor :rq
41
41
 
42
42
  # Save iCalendar
43
43
  # @param [String] name iCalendar file name in storage
44
- # @param [StorageModelRqOfCalendarDto] rq Calendar properties update request
44
+ # @param [StorageModelRqOfCalendarDto] rq Calendar update request
45
45
  def initialize(name, rq)
46
46
  self.name = name if name
47
47
  self.rq = rq if rq
@@ -38,14 +38,14 @@ module AsposeEmailCloud
38
38
  # Contact document file name.
39
39
  # @return [String]
40
40
  attr_accessor :name
41
- # Create contact request.
41
+ # Create/Update contact request.
42
42
  # @return [StorageModelRqOfContactDto]
43
43
  attr_accessor :rq
44
44
 
45
45
  # Save contact.
46
46
  # @param [String] format Contact document format. Enum, available values: VCard, WebDav, Msg
47
47
  # @param [String] name Contact document file name.
48
- # @param [StorageModelRqOfContactDto] rq Create contact request.
48
+ # @param [StorageModelRqOfContactDto] rq Create/Update contact request.
49
49
  def initialize(format, name, rq)
50
50
  self.format = format if format
51
51
  self.name = name if name
@@ -32,20 +32,20 @@ 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
35
+ # File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
36
36
  # @return [String]
37
37
  attr_accessor :format
38
38
  # Email document file name in storage.
39
39
  # @return [String]
40
40
  attr_accessor :name
41
- # Calendar properties update request.
41
+ # Email document create/update request.
42
42
  # @return [StorageModelRqOfEmailDto]
43
43
  attr_accessor :rq
44
44
 
45
45
  # Save email document.
46
- # @param [String] format File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html
46
+ # @param [String] format File format. Enum, available values: Eml, Msg, MsgUnicode, Mhtml, Html, Tnef
47
47
  # @param [String] name Email document file name in storage.
48
- # @param [StorageModelRqOfEmailDto] rq Calendar properties update request.
48
+ # @param [StorageModelRqOfEmailDto] rq Email document create/update request.
49
49
  def initialize(format, name, rq)
50
50
  self.format = format if format
51
51
  self.name = name if name
@@ -0,0 +1,99 @@
1
+
2
+ # ----------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="save_mapi_calendar_model_request_data.rb">
4
+ # Copyright (c) 2018-2020 Aspose Pty Ltd. All rights reserved.
5
+ # </copyright>
6
+ # <summary>
7
+ # Permission is hereby granted, free of charge, to any person obtaining a
8
+ # copy of this software and associated documentation files (the "Software"),
9
+ # to deal in the Software without restriction, including without limitation
10
+ # the rights to use, copy, modify, merge, publish, distribute, sublicense,
11
+ # and/or sell copies of the Software, and to permit persons to whom the
12
+ # Software is furnished to do so, subject to the following conditions:
13
+ #
14
+ # The above copyright notice and this permission notice shall be included in
15
+ # all copies or substantial portions of the Software.
16
+ #
17
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
20
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
22
+ # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
23
+ # DEALINGS IN THE SOFTWARE.
24
+ # </summary>
25
+ # ----------------------------------------------------------------------------
26
+
27
+
28
+ require_relative './email_request'
29
+ require_relative './http_request'
30
+
31
+ module AsposeEmailCloud
32
+ # Request model for save_mapi_calendar_model operation.
33
+ class SaveMapiCalendarModelRequestData < EmailRequest
34
+
35
+ # Calendar file name in storage
36
+ # @return [String]
37
+ attr_accessor :name
38
+ # File format Enum, available values: Ics, Msg
39
+ # @return [String]
40
+ attr_accessor :format
41
+ # Calendar update request
42
+ # @return [StorageModelRqOfMapiCalendarDto]
43
+ attr_accessor :rq
44
+
45
+ # Save MAPI Calendar to storage.
46
+ # @param [String] name Calendar file name in storage
47
+ # @param [String] format File format Enum, available values: Ics, Msg
48
+ # @param [StorageModelRqOfMapiCalendarDto] rq Calendar update request
49
+ def initialize(name, format, rq)
50
+ self.name = name if name
51
+ self.format = format if format
52
+ self.rq = rq if rq
53
+ end
54
+
55
+ def to_http_info(api_client)
56
+ # verify the required parameter 'name' is set
57
+ if api_client.config.client_side_validation && self.name.nil?
58
+ raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.save_mapi_calendar_model"
59
+ end
60
+
61
+ # verify the required parameter 'format' is set
62
+ if api_client.config.client_side_validation && self.format.nil?
63
+ raise ArgumentError, "Missing the required parameter 'format' when calling EmailApi.save_mapi_calendar_model"
64
+ end
65
+
66
+ # verify the required parameter 'rq' is set
67
+ if api_client.config.client_side_validation && self.rq.nil?
68
+ raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.save_mapi_calendar_model"
69
+ end
70
+
71
+ # resource path
72
+ local_var_path = '/email/MapiCalendar/{format}/{name}'.sub('{' + 'name' + '}', self.name.to_s).sub('{' + 'format' + '}', self.format.to_s)
73
+
74
+ # query parameters
75
+ query_params = {}
76
+
77
+ # form parameters
78
+ form_params = {}
79
+
80
+ # http body (model)
81
+ post_body = api_client.object_to_http_body(self.rq)
82
+ auth_names = ['JWT']
83
+
84
+ # header parameters
85
+ header_params = {}
86
+ # HTTP header 'Accept' (if needed)
87
+ header_params['Accept'] = select_header_accept(['application/json'])
88
+ # HTTP header 'Content-Type'
89
+ header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
90
+
91
+ AsposeEmailCloud::HttpRequest.new(local_var_path,
92
+ header_params,
93
+ query_params,
94
+ form_params,
95
+ post_body,
96
+ auth_names)
97
+ end
98
+ end
99
+ end