aspose_email_cloud 19.11.0 → 19.12.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose-email-cloud.rb +43 -1
  3. data/lib/aspose-email-cloud/api/email_api.rb +221 -100
  4. data/lib/aspose-email-cloud/api_client.rb +4 -3
  5. data/lib/aspose-email-cloud/configuration.rb +4 -0
  6. data/lib/aspose-email-cloud/models/account_base_request.rb +123 -113
  7. data/lib/aspose-email-cloud/models/add_attachment_request.rb +86 -82
  8. data/lib/aspose-email-cloud/models/ai_bcr_base64_image.rb +228 -0
  9. data/lib/aspose-email-cloud/models/ai_bcr_base64_rq.rb +225 -0
  10. data/lib/aspose-email-cloud/models/ai_bcr_image.rb +215 -0
  11. data/lib/aspose-email-cloud/models/ai_bcr_image_storage_file.rb +228 -0
  12. data/lib/aspose-email-cloud/models/ai_bcr_ocr_data.rb +253 -0
  13. data/lib/aspose-email-cloud/models/ai_bcr_ocr_data_part.rb +297 -0
  14. data/lib/aspose-email-cloud/models/ai_bcr_options.rb +223 -0
  15. data/lib/aspose-email-cloud/models/ai_bcr_parse_storage_rq.rb +248 -0
  16. data/lib/aspose-email-cloud/models/ai_bcr_rq.rb +210 -0
  17. data/lib/aspose-email-cloud/models/ai_bcr_storage_image_rq.rb +230 -0
  18. data/lib/aspose-email-cloud/models/ai_name_component.rb +264 -0
  19. data/lib/aspose-email-cloud/models/ai_name_cultural_context.rb +267 -0
  20. data/lib/aspose-email-cloud/models/ai_name_extracted.rb +230 -0
  21. data/lib/aspose-email-cloud/models/ai_name_extracted_component.rb +228 -0
  22. data/lib/aspose-email-cloud/models/ai_name_formatted.rb +223 -0
  23. data/lib/aspose-email-cloud/models/ai_name_gender_hypothesis.rb +233 -0
  24. data/lib/aspose-email-cloud/models/ai_name_match_result.rb +230 -0
  25. data/lib/aspose-email-cloud/models/ai_name_mismatch.rb +246 -0
  26. data/lib/aspose-email-cloud/models/ai_name_parsed_match_rq.rb +263 -0
  27. data/lib/aspose-email-cloud/models/ai_name_parsed_rq.rb +243 -0
  28. data/lib/aspose-email-cloud/models/ai_name_weighted.rb +228 -0
  29. data/lib/aspose-email-cloud/models/ai_name_weighted_variants.rb +225 -0
  30. data/lib/aspose-email-cloud/models/append_email_account_base_request.rb +178 -163
  31. data/lib/aspose-email-cloud/models/append_email_base_request.rb +196 -179
  32. data/lib/aspose-email-cloud/models/append_email_mime_base_request.rb +215 -198
  33. data/lib/aspose-email-cloud/models/base_object.rb +9 -5
  34. data/lib/aspose-email-cloud/models/create_email_request.rb +91 -87
  35. data/lib/aspose-email-cloud/models/create_folder_base_request.rb +173 -160
  36. data/lib/aspose-email-cloud/models/delete_folder_base_request.rb +178 -165
  37. data/lib/aspose-email-cloud/models/delete_message_base_request.rb +178 -165
  38. data/lib/aspose-email-cloud/models/disc_usage.rb +96 -92
  39. data/lib/aspose-email-cloud/models/email_account_request.rb +257 -205
  40. data/lib/aspose-email-cloud/models/email_document.rb +93 -89
  41. data/lib/aspose-email-cloud/models/email_document_response.rb +73 -71
  42. data/lib/aspose-email-cloud/models/email_properties.rb +93 -88
  43. data/lib/aspose-email-cloud/models/email_property.rb +128 -119
  44. data/lib/aspose-email-cloud/models/email_property_response.rb +73 -71
  45. data/lib/aspose-email-cloud/models/error.rb +112 -104
  46. data/lib/aspose-email-cloud/models/error_details.rb +91 -87
  47. data/lib/aspose-email-cloud/models/file_version.rb +166 -152
  48. data/lib/aspose-email-cloud/models/file_versions.rb +75 -73
  49. data/lib/aspose-email-cloud/models/files_list.rb +75 -73
  50. data/lib/aspose-email-cloud/models/files_upload_result.rb +90 -86
  51. data/lib/aspose-email-cloud/models/hierarchical_object.rb +13 -7
  52. data/lib/aspose-email-cloud/models/hierarchical_object_request.rb +91 -87
  53. data/lib/aspose-email-cloud/models/hierarchical_object_response.rb +86 -82
  54. data/lib/aspose-email-cloud/models/indexed_hierarchical_object.rb +17 -9
  55. data/lib/aspose-email-cloud/models/indexed_primitive_object.rb +17 -9
  56. data/lib/aspose-email-cloud/models/link.rb +112 -104
  57. data/lib/aspose-email-cloud/models/list_response_of_ai_bcr_ocr_data.rb +211 -0
  58. data/lib/aspose-email-cloud/models/list_response_of_ai_name_component.rb +211 -0
  59. data/lib/aspose-email-cloud/models/list_response_of_ai_name_extracted.rb +211 -0
  60. data/lib/aspose-email-cloud/models/list_response_of_ai_name_gender_hypothesis.rb +211 -0
  61. data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object.rb +211 -0
  62. data/lib/aspose-email-cloud/models/list_response_of_hierarchical_object_response.rb +74 -71
  63. data/lib/aspose-email-cloud/models/list_response_of_mail_server_folder.rb +74 -71
  64. data/lib/aspose-email-cloud/models/list_response_of_storage_file_location.rb +211 -0
  65. data/lib/aspose-email-cloud/models/list_response_of_string.rb +74 -71
  66. data/lib/aspose-email-cloud/models/mail_server_folder.rb +86 -82
  67. data/lib/aspose-email-cloud/models/mime_response.rb +73 -71
  68. data/lib/aspose-email-cloud/models/object_exist.rb +96 -92
  69. data/lib/aspose-email-cloud/models/primitive_object.rb +13 -7
  70. data/lib/aspose-email-cloud/models/requests/add_calendar_attachment_request_data.rb +4 -4
  71. data/lib/aspose-email-cloud/models/requests/add_contact_attachment_request_data.rb +6 -11
  72. data/lib/aspose-email-cloud/models/requests/add_email_attachment_request_data.rb +4 -4
  73. data/lib/aspose-email-cloud/models/requests/add_mapi_attachment_request_data.rb +4 -4
  74. data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_request_data.rb +75 -0
  75. data/lib/aspose-email-cloud/models/requests/ai_bcr_ocr_storage_request_data.rb +75 -0
  76. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_request_data.rb +75 -0
  77. data/lib/aspose-email-cloud/models/requests/ai_bcr_parse_storage_request_data.rb +75 -0
  78. data/lib/aspose-email-cloud/models/requests/ai_name_complete_request_data.rb +91 -0
  79. data/lib/aspose-email-cloud/models/requests/ai_name_expand_parsed_request_data.rb +75 -0
  80. data/lib/aspose-email-cloud/models/requests/ai_name_expand_request_data.rb +91 -0
  81. data/lib/aspose-email-cloud/models/requests/ai_name_format_parsed_request_data.rb +75 -0
  82. data/lib/aspose-email-cloud/models/requests/ai_name_format_request_data.rb +94 -0
  83. data/lib/aspose-email-cloud/models/requests/ai_name_genderize_parsed_request_data.rb +75 -0
  84. data/lib/aspose-email-cloud/models/requests/ai_name_genderize_request_data.rb +91 -0
  85. data/lib/aspose-email-cloud/models/requests/ai_name_match_parsed_request_data.rb +75 -0
  86. data/lib/aspose-email-cloud/models/requests/ai_name_match_request_data.rb +99 -0
  87. data/lib/aspose-email-cloud/models/requests/ai_name_parse_email_address_request_data.rb +91 -0
  88. data/lib/aspose-email-cloud/models/requests/ai_name_parse_request_data.rb +91 -0
  89. data/lib/aspose-email-cloud/models/requests/append_email_message_request_data.rb +2 -2
  90. data/lib/aspose-email-cloud/models/requests/append_mime_message_request_data.rb +2 -2
  91. data/lib/aspose-email-cloud/models/requests/copy_file_request_data.rb +5 -5
  92. data/lib/aspose-email-cloud/models/requests/copy_folder_request_data.rb +4 -4
  93. data/lib/aspose-email-cloud/models/requests/create_calendar_request_data.rb +3 -3
  94. data/lib/aspose-email-cloud/models/requests/create_contact_request_data.rb +5 -10
  95. data/lib/aspose-email-cloud/models/requests/create_email_folder_request_data.rb +2 -2
  96. data/lib/aspose-email-cloud/models/requests/create_email_request_data.rb +3 -3
  97. data/lib/aspose-email-cloud/models/requests/create_folder_request_data.rb +2 -2
  98. data/lib/aspose-email-cloud/models/requests/create_mapi_request_data.rb +3 -3
  99. data/lib/aspose-email-cloud/models/requests/delete_calendar_property_request_data.rb +5 -5
  100. data/lib/aspose-email-cloud/models/requests/delete_contact_property_request_data.rb +7 -12
  101. data/lib/aspose-email-cloud/models/requests/delete_email_folder_request_data.rb +2 -2
  102. data/lib/aspose-email-cloud/models/requests/delete_email_message_request_data.rb +2 -2
  103. data/lib/aspose-email-cloud/models/requests/delete_file_request_data.rb +3 -3
  104. data/lib/aspose-email-cloud/models/requests/delete_folder_request_data.rb +3 -3
  105. data/lib/aspose-email-cloud/models/requests/delete_mapi_attachment_request_data.rb +4 -4
  106. data/lib/aspose-email-cloud/models/requests/delete_mapi_properties_request_data.rb +3 -3
  107. data/lib/aspose-email-cloud/models/requests/download_file_request_data.rb +3 -3
  108. data/lib/aspose-email-cloud/models/requests/fetch_email_message_request_data.rb +7 -7
  109. data/lib/aspose-email-cloud/models/requests/get_calendar_attachment_request_data.rb +5 -5
  110. data/lib/aspose-email-cloud/models/requests/get_calendar_list_request_data.rb +5 -5
  111. data/lib/aspose-email-cloud/models/requests/get_calendar_request_data.rb +4 -4
  112. data/lib/aspose-email-cloud/models/requests/get_contact_attachment_request_data.rb +7 -12
  113. data/lib/aspose-email-cloud/models/requests/get_contact_list_request_data.rb +7 -12
  114. data/lib/aspose-email-cloud/models/requests/get_contact_properties_request_data.rb +6 -11
  115. data/lib/aspose-email-cloud/models/requests/get_disc_usage_request_data.rb +1 -1
  116. data/lib/aspose-email-cloud/models/requests/get_email_attachment_request_data.rb +5 -5
  117. data/lib/aspose-email-cloud/models/requests/get_email_property_request_data.rb +5 -5
  118. data/lib/aspose-email-cloud/models/requests/get_email_request_data.rb +4 -4
  119. data/lib/aspose-email-cloud/models/requests/get_file_versions_request_data.rb +2 -2
  120. data/lib/aspose-email-cloud/models/requests/get_files_list_request_data.rb +2 -2
  121. data/lib/aspose-email-cloud/models/requests/get_mapi_attachment_request_data.rb +5 -5
  122. data/lib/aspose-email-cloud/models/requests/get_mapi_attachments_request_data.rb +4 -4
  123. data/lib/aspose-email-cloud/models/requests/get_mapi_list_request_data.rb +5 -5
  124. data/lib/aspose-email-cloud/models/requests/get_mapi_properties_request_data.rb +4 -4
  125. data/lib/aspose-email-cloud/models/requests/list_email_folders_request_data.rb +7 -7
  126. data/lib/aspose-email-cloud/models/requests/list_email_messages_request_data.rb +10 -10
  127. data/lib/aspose-email-cloud/models/requests/move_file_request_data.rb +5 -5
  128. data/lib/aspose-email-cloud/models/requests/move_folder_request_data.rb +4 -4
  129. data/lib/aspose-email-cloud/models/requests/object_exists_request_data.rb +3 -3
  130. data/lib/aspose-email-cloud/models/requests/save_mail_account_request_data.rb +2 -2
  131. data/lib/aspose-email-cloud/models/requests/save_mail_o_auth_account_request_data.rb +2 -2
  132. data/lib/aspose-email-cloud/models/requests/send_email_mime_request_data.rb +2 -2
  133. data/lib/aspose-email-cloud/models/requests/send_email_request_data.rb +2 -2
  134. data/lib/aspose-email-cloud/models/requests/set_email_property_request_data.rb +5 -5
  135. data/lib/aspose-email-cloud/models/requests/set_email_read_flag_request_data.rb +2 -2
  136. data/lib/aspose-email-cloud/models/requests/storage_exists_request_data.rb +1 -1
  137. data/lib/aspose-email-cloud/models/requests/update_calendar_properties_request_data.rb +3 -3
  138. data/lib/aspose-email-cloud/models/requests/update_contact_properties_request_data.rb +5 -10
  139. data/lib/aspose-email-cloud/models/requests/update_mapi_properties_request_data.rb +3 -3
  140. data/lib/aspose-email-cloud/models/requests/upload_file_request_data.rb +3 -3
  141. data/lib/aspose-email-cloud/models/save_email_account_request.rb +294 -240
  142. data/lib/aspose-email-cloud/models/save_o_auth_email_account_request.rb +368 -310
  143. data/lib/aspose-email-cloud/models/send_email_base_request.rb +141 -130
  144. data/lib/aspose-email-cloud/models/send_email_mime_base_request.rb +160 -149
  145. data/lib/aspose-email-cloud/models/set_email_property_request.rb +91 -87
  146. data/lib/aspose-email-cloud/models/set_message_read_flag_account_base_request.rb +178 -165
  147. data/lib/aspose-email-cloud/models/storage_exist.rb +78 -76
  148. data/lib/aspose-email-cloud/models/storage_file.rb +135 -125
  149. data/lib/aspose-email-cloud/models/storage_file_location.rb +123 -117
  150. data/lib/aspose-email-cloud/models/storage_folder_location.rb +86 -82
  151. data/lib/aspose-email-cloud/models/value_response.rb +73 -71
  152. data/lib/aspose-email-cloud/version.rb +1 -1
  153. metadata +45 -3
  154. data/lib/aspose-email-cloud/models/contact_format.rb +0 -45
@@ -0,0 +1,91 @@
1
+
2
+ # ----------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="ai_name_expand_request_data.rb">
4
+ # Copyright (c) 2018-2019 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 ai_name_expand operation.
33
+ class AiNameExpandRequestData < EmailRequest
34
+
35
+ # Expands a person&#39;s name into a list of possible alternatives using options for expanding instructions
36
+ # @param [String] name A name to format (required)
37
+ # @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)
38
+ # @param [String] location A geographic code such as an ISO-3166 two letter country code, for example \&quot;FR\&quot; for France
39
+ # @param [String] encoding A character encoding name
40
+ # @param [String] script A writing system code; starts with the ISO-15924 script name
41
+ # @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
42
+ 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
49
+ end
50
+
51
+ def to_http_info(api_client)
52
+ # verify the required parameter 'name' is set
53
+ if api_client.config.client_side_validation && @name.nil?
54
+ raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.ai_name_expand"
55
+ end
56
+
57
+ # resource path
58
+ local_var_path = '/email/AiName/expand'
59
+
60
+ # query parameters
61
+ 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?
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,75 @@
1
+
2
+ # ----------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="ai_name_format_parsed_request_data.rb">
4
+ # Copyright (c) 2018-2019 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 ai_name_format_parsed operation.
33
+ class AiNameFormatParsedRequestData < EmailRequest
34
+
35
+ # Formats a person&#39;s parsed name in correct case and name order using options for formatting instructions
36
+ # @param [AiNameParsedRq] rq Parsed name with options
37
+ def initialize(rq)
38
+ @rq = rq if rq
39
+ end
40
+
41
+ def to_http_info(api_client)
42
+ # verify the required parameter 'rq' is set
43
+ if api_client.config.client_side_validation && @rq.nil?
44
+ raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_name_format_parsed"
45
+ end
46
+
47
+ # resource path
48
+ local_var_path = '/email/AiName/format-parsed'
49
+
50
+ # query parameters
51
+ query_params = {}
52
+
53
+ # form parameters
54
+ form_params = {}
55
+
56
+ # http body (model)
57
+ post_body = api_client.object_to_http_body(@rq)
58
+ auth_names = ['JWT']
59
+
60
+ # header parameters
61
+ header_params = {}
62
+ # HTTP header 'Accept' (if needed)
63
+ header_params['Accept'] = select_header_accept(['application/json'])
64
+ # HTTP header 'Content-Type'
65
+ header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
66
+
67
+ AsposeEmailCloud::HttpRequest.new(local_var_path,
68
+ header_params,
69
+ query_params,
70
+ form_params,
71
+ post_body,
72
+ auth_names)
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,94 @@
1
+
2
+ # ----------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="ai_name_format_request_data.rb">
4
+ # Copyright (c) 2018-2019 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 ai_name_format operation.
33
+ class AiNameFormatRequestData < EmailRequest
34
+
35
+ # Formats a person&#39;s name in correct case and name order using options for formatting instructions
36
+ # @param [String] name A name to format (required)
37
+ # @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)
38
+ # @param [String] location A geographic code such as an ISO-3166 two letter country code, for example \&quot;FR\&quot; for France
39
+ # @param [String] encoding A character encoding name
40
+ # @param [String] script A writing system code; starts with the ISO-15924 script name
41
+ # @param [String] format Format of the name. Predefined format can be used by ID, or custom format can be specified. Predefined formats: /format/default/ (&#x3D; &#39;%t%F%m%N%L%p&#39;) /format/FN+LN/ (&#x3D; &#39;%F%L&#39;) /format/title+FN+LN/ (&#x3D; &#39;%t%F%L&#39;) /format/FN+MN+LN/ (&#x3D; &#39;%F%M%N%L&#39;) /format/title+FN+MN+LN/ (&#x3D; &#39;%t%F%M%N%L&#39;) /format/FN+MI+LN/ (&#x3D; &#39;%F%m%N%L&#39;) /format/title+FN+MI+LN/ (&#x3D; &#39;%t%F%m%N%L&#39;) /format/LN/ (&#x3D; &#39;%L&#39;) /format/title+LN/ (&#x3D; &#39;%t%L&#39;) /format/LN+FN+MN/ (&#x3D; &#39;%L,%F%M%N&#39;) /format/LN+title+FN+MN/ (&#x3D; &#39;%L,%t%F%M%N&#39;) /format/LN+FN+MI/ (&#x3D; &#39;%L,%F%m%N&#39;) /format/LN+title+FN+MI/ (&#x3D; &#39;%L,%t%F%m%N&#39;) Custom format string - custom combination of characters and the next term placeholders: &#39;%t&#39; - Title (prefix) &#39;%F&#39; - First name &#39;%f&#39; - First initial &#39;%M&#39; - Middle name(s) &#39;%m&#39; - Middle initial(s) &#39;%N&#39; - Nickname &#39;%L&#39; - Last name &#39;%l&#39; - Last initial &#39;%p&#39; - Postfix If no value for format option was provided, its default value is &#39;%t%F%m%N%L%p&#39;
42
+ # @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
43
+ def initialize(name, language = nil, location = nil, encoding = nil, script = nil, format = nil, style = nil)
44
+ @name = name if name
45
+ @language = language if language
46
+ @location = location if location
47
+ @encoding = encoding if encoding
48
+ @script = script if script
49
+ @format = format if format
50
+ @style = style if style
51
+ end
52
+
53
+ def to_http_info(api_client)
54
+ # verify the required parameter 'name' is set
55
+ if api_client.config.client_side_validation && @name.nil?
56
+ raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.ai_name_format"
57
+ end
58
+
59
+ # resource path
60
+ local_var_path = '/email/AiName/format'
61
+
62
+ # query parameters
63
+ query_params = {}
64
+ query_params[:name] = @name
65
+ query_params[:language] = @language unless @language.nil?
66
+ query_params[:location] = @location unless @location.nil?
67
+ query_params[:encoding] = @encoding unless @encoding.nil?
68
+ query_params[:script] = @script unless @script.nil?
69
+ query_params[:format] = @format unless @format.nil?
70
+ query_params[:style] = @style unless @style.nil?
71
+
72
+ # form parameters
73
+ form_params = {}
74
+
75
+ # http body (model)
76
+ post_body = nil
77
+ auth_names = ['JWT']
78
+
79
+ # header parameters
80
+ header_params = {}
81
+ # HTTP header 'Accept' (if needed)
82
+ header_params['Accept'] = select_header_accept(['application/json'])
83
+ # HTTP header 'Content-Type'
84
+ header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
85
+
86
+ AsposeEmailCloud::HttpRequest.new(local_var_path,
87
+ header_params,
88
+ query_params,
89
+ form_params,
90
+ post_body,
91
+ auth_names)
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,75 @@
1
+
2
+ # ----------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="ai_name_genderize_parsed_request_data.rb">
4
+ # Copyright (c) 2018-2019 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 ai_name_genderize_parsed operation.
33
+ class AiNameGenderizeParsedRequestData < EmailRequest
34
+
35
+ # Detect person&#39;s gender from parsed name
36
+ # @param [AiNameParsedRq] rq Gender detection request data
37
+ def initialize(rq)
38
+ @rq = rq if rq
39
+ end
40
+
41
+ def to_http_info(api_client)
42
+ # verify the required parameter 'rq' is set
43
+ if api_client.config.client_side_validation && @rq.nil?
44
+ raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_name_genderize_parsed"
45
+ end
46
+
47
+ # resource path
48
+ local_var_path = '/email/AiName/genderize-parsed'
49
+
50
+ # query parameters
51
+ query_params = {}
52
+
53
+ # form parameters
54
+ form_params = {}
55
+
56
+ # http body (model)
57
+ post_body = api_client.object_to_http_body(@rq)
58
+ auth_names = ['JWT']
59
+
60
+ # header parameters
61
+ header_params = {}
62
+ # HTTP header 'Accept' (if needed)
63
+ header_params['Accept'] = select_header_accept(['application/json'])
64
+ # HTTP header 'Content-Type'
65
+ header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
66
+
67
+ AsposeEmailCloud::HttpRequest.new(local_var_path,
68
+ header_params,
69
+ query_params,
70
+ form_params,
71
+ post_body,
72
+ auth_names)
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,91 @@
1
+
2
+ # ----------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="ai_name_genderize_request_data.rb">
4
+ # Copyright (c) 2018-2019 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 ai_name_genderize operation.
33
+ class AiNameGenderizeRequestData < EmailRequest
34
+
35
+ # Detect person&#39;s gender from name string
36
+ # @param [String] name A name to parse (required)
37
+ # @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)
38
+ # @param [String] location A geographic code such as an ISO-3166 two letter country code, for example \&quot;FR\&quot; for France
39
+ # @param [String] encoding A character encoding name
40
+ # @param [String] script A writing system code; starts with the ISO-15924 script name
41
+ # @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
42
+ 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
49
+ end
50
+
51
+ def to_http_info(api_client)
52
+ # verify the required parameter 'name' is set
53
+ if api_client.config.client_side_validation && @name.nil?
54
+ raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.ai_name_genderize"
55
+ end
56
+
57
+ # resource path
58
+ local_var_path = '/email/AiName/genderize'
59
+
60
+ # query parameters
61
+ 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?
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,75 @@
1
+
2
+ # ----------------------------------------------------------------------------
3
+ # <copyright company="Aspose" file="ai_name_match_parsed_request_data.rb">
4
+ # Copyright (c) 2018-2019 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 ai_name_match_parsed operation.
33
+ class AiNameMatchParsedRequestData < EmailRequest
34
+
35
+ # Compare people&#39;s parsed names and attributes. Uses options for comparing instructions
36
+ # @param [AiNameParsedMatchRq] rq Parsed names to match
37
+ def initialize(rq)
38
+ @rq = rq if rq
39
+ end
40
+
41
+ def to_http_info(api_client)
42
+ # verify the required parameter 'rq' is set
43
+ if api_client.config.client_side_validation && @rq.nil?
44
+ raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_name_match_parsed"
45
+ end
46
+
47
+ # resource path
48
+ local_var_path = '/email/AiName/match-parsed'
49
+
50
+ # query parameters
51
+ query_params = {}
52
+
53
+ # form parameters
54
+ form_params = {}
55
+
56
+ # http body (model)
57
+ post_body = api_client.object_to_http_body(@rq)
58
+ auth_names = ['JWT']
59
+
60
+ # header parameters
61
+ header_params = {}
62
+ # HTTP header 'Accept' (if needed)
63
+ header_params['Accept'] = select_header_accept(['application/json'])
64
+ # HTTP header 'Content-Type'
65
+ header_params['Content-Type'] = form_params.any? ? 'multipart/form-data' : select_header_content_type(['application/json'])
66
+
67
+ AsposeEmailCloud::HttpRequest.new(local_var_path,
68
+ header_params,
69
+ query_params,
70
+ form_params,
71
+ post_body,
72
+ auth_names)
73
+ end
74
+ end
75
+ end