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,15 +32,19 @@ module AsposeEmailCloud
32
32
  # Request model for ai_name_expand_parsed operation.
33
33
  class AiNameExpandParsedRequestData < EmailRequest
34
34
 
35
+ # Parsed name with options
36
+ # @return [AiNameParsedRq]
37
+ attr_accessor :rq
38
+
35
39
  # Expands a person&#39;s parsed name into a list of possible alternatives using options for expanding instructions
36
40
  # @param [AiNameParsedRq] rq Parsed name with options
37
41
  def initialize(rq)
38
- @rq = rq if rq
42
+ self.rq = rq if rq
39
43
  end
40
44
 
41
45
  def to_http_info(api_client)
42
46
  # verify the required parameter 'rq' is set
43
- if api_client.config.client_side_validation && @rq.nil?
47
+ if api_client.config.client_side_validation && self.rq.nil?
44
48
  raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_name_expand_parsed"
45
49
  end
46
50
 
@@ -54,7 +58,7 @@ module AsposeEmailCloud
54
58
  form_params = {}
55
59
 
56
60
  # http body (model)
57
- post_body = api_client.object_to_http_body(@rq)
61
+ post_body = api_client.object_to_http_body(self.rq)
58
62
  auth_names = ['JWT']
59
63
 
60
64
  # header parameters
@@ -32,6 +32,25 @@ module AsposeEmailCloud
32
32
  # Request model for ai_name_expand operation.
33
33
  class AiNameExpandRequestData < EmailRequest
34
34
 
35
+ # A name to format (required)
36
+ # @return [String]
37
+ attr_accessor :name
38
+ # An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \&quot;it\&quot; or \&quot;ita\&quot; for Italian)
39
+ # @return [String]
40
+ attr_accessor :language
41
+ # A geographic code such as an ISO-3166 two letter country code, for example \&quot;FR\&quot; for France
42
+ # @return [String]
43
+ attr_accessor :location
44
+ # A character encoding name
45
+ # @return [String]
46
+ attr_accessor :encoding
47
+ # A writing system code; starts with the ISO-15924 script name
48
+ # @return [String]
49
+ attr_accessor :script
50
+ # Name writing style. Enum, available values: Formal, Informal, Legal, Academic
51
+ # @return [String]
52
+ attr_accessor :style
53
+
35
54
  # Expands a person&#39;s name into a list of possible alternatives using options for expanding instructions
36
55
  # @param [String] name A name to format (required)
37
56
  # @param [String] language An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \&quot;it\&quot; or \&quot;ita\&quot; for Italian)
@@ -40,17 +59,17 @@ module AsposeEmailCloud
40
59
  # @param [String] script A writing system code; starts with the ISO-15924 script name
41
60
  # @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
42
61
  def initialize(name, language = nil, location = nil, encoding = nil, script = nil, style = nil)
43
- @name = name if name
44
- @language = language if language
45
- @location = location if location
46
- @encoding = encoding if encoding
47
- @script = script if script
48
- @style = style if style
62
+ self.name = name if name
63
+ self.language = language if language
64
+ self.location = location if location
65
+ self.encoding = encoding if encoding
66
+ self.script = script if script
67
+ self.style = style if style
49
68
  end
50
69
 
51
70
  def to_http_info(api_client)
52
71
  # verify the required parameter 'name' is set
53
- if api_client.config.client_side_validation && @name.nil?
72
+ if api_client.config.client_side_validation && self.name.nil?
54
73
  raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.ai_name_expand"
55
74
  end
56
75
 
@@ -59,12 +78,12 @@ module AsposeEmailCloud
59
78
 
60
79
  # query parameters
61
80
  query_params = {}
62
- query_params[:name] = @name
63
- query_params[:language] = @language unless @language.nil?
64
- query_params[:location] = @location unless @location.nil?
65
- query_params[:encoding] = @encoding unless @encoding.nil?
66
- query_params[:script] = @script unless @script.nil?
67
- query_params[:style] = @style unless @style.nil?
81
+ query_params[:name] = self.name
82
+ query_params[:language] = self.language unless self.language.nil?
83
+ query_params[:location] = self.location unless self.location.nil?
84
+ query_params[:encoding] = self.encoding unless self.encoding.nil?
85
+ query_params[:script] = self.script unless self.script.nil?
86
+ query_params[:style] = self.style unless self.style.nil?
68
87
 
69
88
  # form parameters
70
89
  form_params = {}
@@ -32,15 +32,19 @@ module AsposeEmailCloud
32
32
  # Request model for ai_name_format_parsed operation.
33
33
  class AiNameFormatParsedRequestData < EmailRequest
34
34
 
35
+ # Parsed name with options
36
+ # @return [AiNameParsedRq]
37
+ attr_accessor :rq
38
+
35
39
  # Formats a person&#39;s parsed name in correct case and name order using options for formatting instructions
36
40
  # @param [AiNameParsedRq] rq Parsed name with options
37
41
  def initialize(rq)
38
- @rq = rq if rq
42
+ self.rq = rq if rq
39
43
  end
40
44
 
41
45
  def to_http_info(api_client)
42
46
  # verify the required parameter 'rq' is set
43
- if api_client.config.client_side_validation && @rq.nil?
47
+ if api_client.config.client_side_validation && self.rq.nil?
44
48
  raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_name_format_parsed"
45
49
  end
46
50
 
@@ -54,7 +58,7 @@ module AsposeEmailCloud
54
58
  form_params = {}
55
59
 
56
60
  # http body (model)
57
- post_body = api_client.object_to_http_body(@rq)
61
+ post_body = api_client.object_to_http_body(self.rq)
58
62
  auth_names = ['JWT']
59
63
 
60
64
  # header parameters
@@ -32,6 +32,28 @@ module AsposeEmailCloud
32
32
  # Request model for ai_name_format operation.
33
33
  class AiNameFormatRequestData < EmailRequest
34
34
 
35
+ # A name to format (required)
36
+ # @return [String]
37
+ attr_accessor :name
38
+ # An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \&quot;it\&quot; or \&quot;ita\&quot; for Italian)
39
+ # @return [String]
40
+ attr_accessor :language
41
+ # A geographic code such as an ISO-3166 two letter country code, for example \&quot;FR\&quot; for France
42
+ # @return [String]
43
+ attr_accessor :location
44
+ # A character encoding name
45
+ # @return [String]
46
+ attr_accessor :encoding
47
+ # A writing system code; starts with the ISO-15924 script name
48
+ # @return [String]
49
+ attr_accessor :script
50
+ # 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;
51
+ # @return [String]
52
+ attr_accessor :format
53
+ # Name writing style. Enum, available values: Formal, Informal, Legal, Academic
54
+ # @return [String]
55
+ attr_accessor :style
56
+
35
57
  # Formats a person&#39;s name in correct case and name order using options for formatting instructions
36
58
  # @param [String] name A name to format (required)
37
59
  # @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)
@@ -41,18 +63,18 @@ module AsposeEmailCloud
41
63
  # @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
64
  # @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
43
65
  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
66
+ self.name = name if name
67
+ self.language = language if language
68
+ self.location = location if location
69
+ self.encoding = encoding if encoding
70
+ self.script = script if script
71
+ self.format = format if format
72
+ self.style = style if style
51
73
  end
52
74
 
53
75
  def to_http_info(api_client)
54
76
  # verify the required parameter 'name' is set
55
- if api_client.config.client_side_validation && @name.nil?
77
+ if api_client.config.client_side_validation && self.name.nil?
56
78
  raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.ai_name_format"
57
79
  end
58
80
 
@@ -61,13 +83,13 @@ module AsposeEmailCloud
61
83
 
62
84
  # query parameters
63
85
  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?
86
+ query_params[:name] = self.name
87
+ query_params[:language] = self.language unless self.language.nil?
88
+ query_params[:location] = self.location unless self.location.nil?
89
+ query_params[:encoding] = self.encoding unless self.encoding.nil?
90
+ query_params[:script] = self.script unless self.script.nil?
91
+ query_params[:format] = self.format unless self.format.nil?
92
+ query_params[:style] = self.style unless self.style.nil?
71
93
 
72
94
  # form parameters
73
95
  form_params = {}
@@ -32,15 +32,19 @@ module AsposeEmailCloud
32
32
  # Request model for ai_name_genderize_parsed operation.
33
33
  class AiNameGenderizeParsedRequestData < EmailRequest
34
34
 
35
+ # Gender detection request data
36
+ # @return [AiNameParsedRq]
37
+ attr_accessor :rq
38
+
35
39
  # Detect person&#39;s gender from parsed name
36
40
  # @param [AiNameParsedRq] rq Gender detection request data
37
41
  def initialize(rq)
38
- @rq = rq if rq
42
+ self.rq = rq if rq
39
43
  end
40
44
 
41
45
  def to_http_info(api_client)
42
46
  # verify the required parameter 'rq' is set
43
- if api_client.config.client_side_validation && @rq.nil?
47
+ if api_client.config.client_side_validation && self.rq.nil?
44
48
  raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_name_genderize_parsed"
45
49
  end
46
50
 
@@ -54,7 +58,7 @@ module AsposeEmailCloud
54
58
  form_params = {}
55
59
 
56
60
  # http body (model)
57
- post_body = api_client.object_to_http_body(@rq)
61
+ post_body = api_client.object_to_http_body(self.rq)
58
62
  auth_names = ['JWT']
59
63
 
60
64
  # header parameters
@@ -32,6 +32,25 @@ module AsposeEmailCloud
32
32
  # Request model for ai_name_genderize operation.
33
33
  class AiNameGenderizeRequestData < EmailRequest
34
34
 
35
+ # A name to parse (required)
36
+ # @return [String]
37
+ attr_accessor :name
38
+ # An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \&quot;it\&quot; or \&quot;ita\&quot; for Italian)
39
+ # @return [String]
40
+ attr_accessor :language
41
+ # A geographic code such as an ISO-3166 two letter country code, for example \&quot;FR\&quot; for France
42
+ # @return [String]
43
+ attr_accessor :location
44
+ # A character encoding name
45
+ # @return [String]
46
+ attr_accessor :encoding
47
+ # A writing system code; starts with the ISO-15924 script name
48
+ # @return [String]
49
+ attr_accessor :script
50
+ # Name writing style. Enum, available values: Formal, Informal, Legal, Academic
51
+ # @return [String]
52
+ attr_accessor :style
53
+
35
54
  # Detect person&#39;s gender from name string
36
55
  # @param [String] name A name to parse (required)
37
56
  # @param [String] language An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \&quot;it\&quot; or \&quot;ita\&quot; for Italian)
@@ -40,17 +59,17 @@ module AsposeEmailCloud
40
59
  # @param [String] script A writing system code; starts with the ISO-15924 script name
41
60
  # @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
42
61
  def initialize(name, language = nil, location = nil, encoding = nil, script = nil, style = nil)
43
- @name = name if name
44
- @language = language if language
45
- @location = location if location
46
- @encoding = encoding if encoding
47
- @script = script if script
48
- @style = style if style
62
+ self.name = name if name
63
+ self.language = language if language
64
+ self.location = location if location
65
+ self.encoding = encoding if encoding
66
+ self.script = script if script
67
+ self.style = style if style
49
68
  end
50
69
 
51
70
  def to_http_info(api_client)
52
71
  # verify the required parameter 'name' is set
53
- if api_client.config.client_side_validation && @name.nil?
72
+ if api_client.config.client_side_validation && self.name.nil?
54
73
  raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.ai_name_genderize"
55
74
  end
56
75
 
@@ -59,12 +78,12 @@ module AsposeEmailCloud
59
78
 
60
79
  # query parameters
61
80
  query_params = {}
62
- query_params[:name] = @name
63
- query_params[:language] = @language unless @language.nil?
64
- query_params[:location] = @location unless @location.nil?
65
- query_params[:encoding] = @encoding unless @encoding.nil?
66
- query_params[:script] = @script unless @script.nil?
67
- query_params[:style] = @style unless @style.nil?
81
+ query_params[:name] = self.name
82
+ query_params[:language] = self.language unless self.language.nil?
83
+ query_params[:location] = self.location unless self.location.nil?
84
+ query_params[:encoding] = self.encoding unless self.encoding.nil?
85
+ query_params[:script] = self.script unless self.script.nil?
86
+ query_params[:style] = self.style unless self.style.nil?
68
87
 
69
88
  # form parameters
70
89
  form_params = {}
@@ -32,15 +32,19 @@ module AsposeEmailCloud
32
32
  # Request model for ai_name_match_parsed operation.
33
33
  class AiNameMatchParsedRequestData < EmailRequest
34
34
 
35
+ # Parsed names to match
36
+ # @return [AiNameParsedMatchRq]
37
+ attr_accessor :rq
38
+
35
39
  # Compare people&#39;s parsed names and attributes. Uses options for comparing instructions
36
40
  # @param [AiNameParsedMatchRq] rq Parsed names to match
37
41
  def initialize(rq)
38
- @rq = rq if rq
42
+ self.rq = rq if rq
39
43
  end
40
44
 
41
45
  def to_http_info(api_client)
42
46
  # verify the required parameter 'rq' is set
43
- if api_client.config.client_side_validation && @rq.nil?
47
+ if api_client.config.client_side_validation && self.rq.nil?
44
48
  raise ArgumentError, "Missing the required parameter 'rq' when calling EmailApi.ai_name_match_parsed"
45
49
  end
46
50
 
@@ -54,7 +58,7 @@ module AsposeEmailCloud
54
58
  form_params = {}
55
59
 
56
60
  # http body (model)
57
- post_body = api_client.object_to_http_body(@rq)
61
+ post_body = api_client.object_to_http_body(self.rq)
58
62
  auth_names = ['JWT']
59
63
 
60
64
  # header parameters
@@ -32,6 +32,28 @@ module AsposeEmailCloud
32
32
  # Request model for ai_name_match operation.
33
33
  class AiNameMatchRequestData < EmailRequest
34
34
 
35
+ # A name to match (required)
36
+ # @return [String]
37
+ attr_accessor :name
38
+ # Another name to match (required)
39
+ # @return [String]
40
+ attr_accessor :other_name
41
+ # An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \&quot;it\&quot; or \&quot;ita\&quot; for Italian)
42
+ # @return [String]
43
+ attr_accessor :language
44
+ # A geographic code such as an ISO-3166 two letter country code, for example \&quot;FR\&quot; for France
45
+ # @return [String]
46
+ attr_accessor :location
47
+ # A character encoding name
48
+ # @return [String]
49
+ attr_accessor :encoding
50
+ # A writing system code; starts with the ISO-15924 script name
51
+ # @return [String]
52
+ attr_accessor :script
53
+ # Name writing style. Enum, available values: Formal, Informal, Legal, Academic
54
+ # @return [String]
55
+ attr_accessor :style
56
+
35
57
  # Compare people&#39;s names. Uses options for comparing instructions
36
58
  # @param [String] name A name to match (required)
37
59
  # @param [String] other_name Another name to match (required)
@@ -41,23 +63,23 @@ module AsposeEmailCloud
41
63
  # @param [String] script A writing system code; starts with the ISO-15924 script name
42
64
  # @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
43
65
  def initialize(name, other_name, language = nil, location = nil, encoding = nil, script = nil, style = nil)
44
- @name = name if name
45
- @other_name = other_name if other_name
46
- @language = language if language
47
- @location = location if location
48
- @encoding = encoding if encoding
49
- @script = script if script
50
- @style = style if style
66
+ self.name = name if name
67
+ self.other_name = other_name if other_name
68
+ self.language = language if language
69
+ self.location = location if location
70
+ self.encoding = encoding if encoding
71
+ self.script = script if script
72
+ self.style = style if style
51
73
  end
52
74
 
53
75
  def to_http_info(api_client)
54
76
  # verify the required parameter 'name' is set
55
- if api_client.config.client_side_validation && @name.nil?
77
+ if api_client.config.client_side_validation && self.name.nil?
56
78
  raise ArgumentError, "Missing the required parameter 'name' when calling EmailApi.ai_name_match"
57
79
  end
58
80
 
59
81
  # verify the required parameter 'other_name' is set
60
- if api_client.config.client_side_validation && @other_name.nil?
82
+ if api_client.config.client_side_validation && self.other_name.nil?
61
83
  raise ArgumentError, "Missing the required parameter 'other_name' when calling EmailApi.ai_name_match"
62
84
  end
63
85
 
@@ -66,13 +88,13 @@ module AsposeEmailCloud
66
88
 
67
89
  # query parameters
68
90
  query_params = {}
69
- query_params[:name] = @name
70
- query_params[:otherName] = @other_name
71
- query_params[:language] = @language unless @language.nil?
72
- query_params[:location] = @location unless @location.nil?
73
- query_params[:encoding] = @encoding unless @encoding.nil?
74
- query_params[:script] = @script unless @script.nil?
75
- query_params[:style] = @style unless @style.nil?
91
+ query_params[:name] = self.name
92
+ query_params[:otherName] = self.other_name
93
+ query_params[:language] = self.language unless self.language.nil?
94
+ query_params[:location] = self.location unless self.location.nil?
95
+ query_params[:encoding] = self.encoding unless self.encoding.nil?
96
+ query_params[:script] = self.script unless self.script.nil?
97
+ query_params[:style] = self.style unless self.style.nil?
76
98
 
77
99
  # form parameters
78
100
  form_params = {}
@@ -32,6 +32,25 @@ module AsposeEmailCloud
32
32
  # Request model for ai_name_parse_email_address operation.
33
33
  class AiNameParseEmailAddressRequestData < EmailRequest
34
34
 
35
+ # Email address to parse (required)
36
+ # @return [String]
37
+ attr_accessor :email_address
38
+ # An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \&quot;it\&quot; or \&quot;ita\&quot; for Italian)
39
+ # @return [String]
40
+ attr_accessor :language
41
+ # A geographic code such as an ISO-3166 two letter country code, for example \&quot;FR\&quot; for France
42
+ # @return [String]
43
+ attr_accessor :location
44
+ # A character encoding name
45
+ # @return [String]
46
+ attr_accessor :encoding
47
+ # A writing system code; starts with the ISO-15924 script name
48
+ # @return [String]
49
+ attr_accessor :script
50
+ # Name writing style. Enum, available values: Formal, Informal, Legal, Academic
51
+ # @return [String]
52
+ attr_accessor :style
53
+
35
54
  # Parse person&#39;s name out of an email address
36
55
  # @param [String] email_address Email address to parse (required)
37
56
  # @param [String] language An ISO-639 code of the language; either 639-1 or 639-3 (e.g. \&quot;it\&quot; or \&quot;ita\&quot; for Italian)
@@ -40,17 +59,17 @@ module AsposeEmailCloud
40
59
  # @param [String] script A writing system code; starts with the ISO-15924 script name
41
60
  # @param [String] style Name writing style. Enum, available values: Formal, Informal, Legal, Academic
42
61
  def initialize(email_address, language = nil, location = nil, encoding = nil, script = nil, style = nil)
43
- @email_address = email_address if email_address
44
- @language = language if language
45
- @location = location if location
46
- @encoding = encoding if encoding
47
- @script = script if script
48
- @style = style if style
62
+ self.email_address = email_address if email_address
63
+ self.language = language if language
64
+ self.location = location if location
65
+ self.encoding = encoding if encoding
66
+ self.script = script if script
67
+ self.style = style if style
49
68
  end
50
69
 
51
70
  def to_http_info(api_client)
52
71
  # verify the required parameter 'email_address' is set
53
- if api_client.config.client_side_validation && @email_address.nil?
72
+ if api_client.config.client_side_validation && self.email_address.nil?
54
73
  raise ArgumentError, "Missing the required parameter 'email_address' when calling EmailApi.ai_name_parse_email_address"
55
74
  end
56
75
 
@@ -59,12 +78,12 @@ module AsposeEmailCloud
59
78
 
60
79
  # query parameters
61
80
  query_params = {}
62
- query_params[:emailAddress] = @email_address
63
- query_params[:language] = @language unless @language.nil?
64
- query_params[:location] = @location unless @location.nil?
65
- query_params[:encoding] = @encoding unless @encoding.nil?
66
- query_params[:script] = @script unless @script.nil?
67
- query_params[:style] = @style unless @style.nil?
81
+ query_params[:emailAddress] = self.email_address
82
+ query_params[:language] = self.language unless self.language.nil?
83
+ query_params[:location] = self.location unless self.location.nil?
84
+ query_params[:encoding] = self.encoding unless self.encoding.nil?
85
+ query_params[:script] = self.script unless self.script.nil?
86
+ query_params[:style] = self.style unless self.style.nil?
68
87
 
69
88
  # form parameters
70
89
  form_params = {}