cloudmersive-spam-detection-api-client 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -8
  3. data/cloudmersive-spam-detection-api-client.gemspec +1 -1
  4. data/docs/SpamDetectionAdvancedFormField.md +9 -0
  5. data/docs/SpamDetectionAdvancedFormSubmissionRequest.md +11 -0
  6. data/docs/SpamDetectionAdvancedResponse.md +2 -0
  7. data/docs/SpamDetectionApi.md +174 -0
  8. data/docs/SpamDetectionFormSubmissionAdvancedResponse.md +14 -0
  9. data/lib/cloudmersive-spam-detection-api-client/api/spam_detection_api.rb +165 -1
  10. data/lib/cloudmersive-spam-detection-api-client/api_client.rb +1 -1
  11. data/lib/cloudmersive-spam-detection-api-client/api_error.rb +1 -1
  12. data/lib/cloudmersive-spam-detection-api-client/configuration.rb +1 -1
  13. data/lib/cloudmersive-spam-detection-api-client/models/spam_detection_advanced_form_field.rb +196 -0
  14. data/lib/cloudmersive-spam-detection-api-client/models/spam_detection_advanced_form_submission_request.rb +218 -0
  15. data/lib/cloudmersive-spam-detection-api-client/models/spam_detection_advanced_request.rb +1 -1
  16. data/lib/cloudmersive-spam-detection-api-client/models/spam_detection_advanced_response.rb +25 -5
  17. data/lib/cloudmersive-spam-detection-api-client/models/spam_detection_form_submission_advanced_response.rb +246 -0
  18. data/lib/cloudmersive-spam-detection-api-client/models/spam_detection_request.rb +1 -1
  19. data/lib/cloudmersive-spam-detection-api-client/models/spam_detection_response.rb +1 -1
  20. data/lib/cloudmersive-spam-detection-api-client/version.rb +2 -2
  21. data/lib/cloudmersive-spam-detection-api-client.rb +4 -1
  22. data/spec/api/spam_detection_api_spec.rb +40 -1
  23. data/spec/api_client_spec.rb +1 -1
  24. data/spec/configuration_spec.rb +1 -1
  25. data/spec/models/spam_detection_advanced_form_field_spec.rb +47 -0
  26. data/spec/models/spam_detection_advanced_form_submission_request_spec.rb +59 -0
  27. data/spec/models/spam_detection_advanced_request_spec.rb +1 -1
  28. data/spec/models/spam_detection_advanced_response_spec.rb +13 -1
  29. data/spec/models/spam_detection_form_submission_advanced_response_spec.rb +77 -0
  30. data/spec/models/spam_detection_request_spec.rb +1 -1
  31. data/spec/models/spam_detection_response_spec.rb +1 -1
  32. data/spec/spec_helper.rb +1 -1
  33. metadata +11 -2
@@ -0,0 +1,246 @@
1
+ =begin
2
+ #spamapi
3
+
4
+ #Easily and directly scan and block spam security threats in input.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.14
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module CloudmersiveSpamDetectionApiClient
16
+ # Result of detecting spam using AI
17
+ class SpamDetectionFormSubmissionAdvancedResponse
18
+ # True if the result is not spam (clean), and false otherwise
19
+ attr_accessor :clean_result
20
+
21
+ # Overall spam risk level between 0.0 and 1.0
22
+ attr_accessor :spam_risk_level
23
+
24
+ # True if the input text contains spam, false otherwise
25
+ attr_accessor :contains_spam
26
+
27
+ # True if the input text contains unsolicited sales, false otherwise
28
+ attr_accessor :contains_unsolicited_sales
29
+
30
+ # True if the input text contains promotional content, false otherwise
31
+ attr_accessor :contains_promotional_content
32
+
33
+ # True if the input text contains a phishing attempt, false otherwise
34
+ attr_accessor :contains_phishing_attempt
35
+
36
+ # Rationale for why the conclusion was formed
37
+ attr_accessor :analysis_rationale
38
+
39
+ # Attribute mapping from ruby-style variable name to JSON key.
40
+ def self.attribute_map
41
+ {
42
+ :'clean_result' => :'CleanResult',
43
+ :'spam_risk_level' => :'SpamRiskLevel',
44
+ :'contains_spam' => :'ContainsSpam',
45
+ :'contains_unsolicited_sales' => :'ContainsUnsolicitedSales',
46
+ :'contains_promotional_content' => :'ContainsPromotionalContent',
47
+ :'contains_phishing_attempt' => :'ContainsPhishingAttempt',
48
+ :'analysis_rationale' => :'AnalysisRationale'
49
+ }
50
+ end
51
+
52
+ # Attribute type mapping.
53
+ def self.swagger_types
54
+ {
55
+ :'clean_result' => :'BOOLEAN',
56
+ :'spam_risk_level' => :'Float',
57
+ :'contains_spam' => :'BOOLEAN',
58
+ :'contains_unsolicited_sales' => :'BOOLEAN',
59
+ :'contains_promotional_content' => :'BOOLEAN',
60
+ :'contains_phishing_attempt' => :'BOOLEAN',
61
+ :'analysis_rationale' => :'String'
62
+ }
63
+ end
64
+
65
+ # Initializes the object
66
+ # @param [Hash] attributes Model attributes in the form of hash
67
+ def initialize(attributes = {})
68
+ return unless attributes.is_a?(Hash)
69
+
70
+ # convert string to symbol for hash key
71
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
72
+
73
+ if attributes.has_key?(:'CleanResult')
74
+ self.clean_result = attributes[:'CleanResult']
75
+ end
76
+
77
+ if attributes.has_key?(:'SpamRiskLevel')
78
+ self.spam_risk_level = attributes[:'SpamRiskLevel']
79
+ end
80
+
81
+ if attributes.has_key?(:'ContainsSpam')
82
+ self.contains_spam = attributes[:'ContainsSpam']
83
+ end
84
+
85
+ if attributes.has_key?(:'ContainsUnsolicitedSales')
86
+ self.contains_unsolicited_sales = attributes[:'ContainsUnsolicitedSales']
87
+ end
88
+
89
+ if attributes.has_key?(:'ContainsPromotionalContent')
90
+ self.contains_promotional_content = attributes[:'ContainsPromotionalContent']
91
+ end
92
+
93
+ if attributes.has_key?(:'ContainsPhishingAttempt')
94
+ self.contains_phishing_attempt = attributes[:'ContainsPhishingAttempt']
95
+ end
96
+
97
+ if attributes.has_key?(:'AnalysisRationale')
98
+ self.analysis_rationale = attributes[:'AnalysisRationale']
99
+ end
100
+ end
101
+
102
+ # Show invalid properties with the reasons. Usually used together with valid?
103
+ # @return Array for valid properties with the reasons
104
+ def list_invalid_properties
105
+ invalid_properties = Array.new
106
+ invalid_properties
107
+ end
108
+
109
+ # Check to see if the all the properties in the model are valid
110
+ # @return true if the model is valid
111
+ def valid?
112
+ true
113
+ end
114
+
115
+ # Checks equality by comparing each attribute.
116
+ # @param [Object] Object to be compared
117
+ def ==(o)
118
+ return true if self.equal?(o)
119
+ self.class == o.class &&
120
+ clean_result == o.clean_result &&
121
+ spam_risk_level == o.spam_risk_level &&
122
+ contains_spam == o.contains_spam &&
123
+ contains_unsolicited_sales == o.contains_unsolicited_sales &&
124
+ contains_promotional_content == o.contains_promotional_content &&
125
+ contains_phishing_attempt == o.contains_phishing_attempt &&
126
+ analysis_rationale == o.analysis_rationale
127
+ end
128
+
129
+ # @see the `==` method
130
+ # @param [Object] Object to be compared
131
+ def eql?(o)
132
+ self == o
133
+ end
134
+
135
+ # Calculates hash code according to all attributes.
136
+ # @return [Fixnum] Hash code
137
+ def hash
138
+ [clean_result, spam_risk_level, contains_spam, contains_unsolicited_sales, contains_promotional_content, contains_phishing_attempt, analysis_rationale].hash
139
+ end
140
+
141
+ # Builds the object from hash
142
+ # @param [Hash] attributes Model attributes in the form of hash
143
+ # @return [Object] Returns the model itself
144
+ def build_from_hash(attributes)
145
+ return nil unless attributes.is_a?(Hash)
146
+ self.class.swagger_types.each_pair do |key, type|
147
+ if type =~ /\AArray<(.*)>/i
148
+ # check to ensure the input is an array given that the attribute
149
+ # is documented as an array but the input is not
150
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
151
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
152
+ end
153
+ elsif !attributes[self.class.attribute_map[key]].nil?
154
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
155
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
156
+ end
157
+
158
+ self
159
+ end
160
+
161
+ # Deserializes the data based on type
162
+ # @param string type Data type
163
+ # @param string value Value to be deserialized
164
+ # @return [Object] Deserialized data
165
+ def _deserialize(type, value)
166
+ case type.to_sym
167
+ when :DateTime
168
+ DateTime.parse(value)
169
+ when :Date
170
+ Date.parse(value)
171
+ when :String
172
+ value.to_s
173
+ when :Integer
174
+ value.to_i
175
+ when :Float
176
+ value.to_f
177
+ when :BOOLEAN
178
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
179
+ true
180
+ else
181
+ false
182
+ end
183
+ when :Object
184
+ # generic object (usually a Hash), return directly
185
+ value
186
+ when /\AArray<(?<inner_type>.+)>\z/
187
+ inner_type = Regexp.last_match[:inner_type]
188
+ value.map { |v| _deserialize(inner_type, v) }
189
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
190
+ k_type = Regexp.last_match[:k_type]
191
+ v_type = Regexp.last_match[:v_type]
192
+ {}.tap do |hash|
193
+ value.each do |k, v|
194
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
195
+ end
196
+ end
197
+ else # model
198
+ temp_model = CloudmersiveSpamDetectionApiClient.const_get(type).new
199
+ temp_model.build_from_hash(value)
200
+ end
201
+ end
202
+
203
+ # Returns the string representation of the object
204
+ # @return [String] String presentation of the object
205
+ def to_s
206
+ to_hash.to_s
207
+ end
208
+
209
+ # to_body is an alias to to_hash (backward compatibility)
210
+ # @return [Hash] Returns the object in the form of hash
211
+ def to_body
212
+ to_hash
213
+ end
214
+
215
+ # Returns the object in the form of hash
216
+ # @return [Hash] Returns the object in the form of hash
217
+ def to_hash
218
+ hash = {}
219
+ self.class.attribute_map.each_pair do |attr, param|
220
+ value = self.send(attr)
221
+ next if value.nil?
222
+ hash[param] = _to_hash(value)
223
+ end
224
+ hash
225
+ end
226
+
227
+ # Outputs non-array value in the form of hash
228
+ # For object, use to_hash. Otherwise, just return the value
229
+ # @param [Object] value Any valid value
230
+ # @return [Hash] Returns the value in the form of hash
231
+ def _to_hash(value)
232
+ if value.is_a?(Array)
233
+ value.compact.map { |v| _to_hash(v) }
234
+ elsif value.is_a?(Hash)
235
+ {}.tap do |hash|
236
+ value.each { |k, v| hash[k] = _to_hash(v) }
237
+ end
238
+ elsif value.respond_to? :to_hash
239
+ value.to_hash
240
+ else
241
+ value
242
+ end
243
+ end
244
+
245
+ end
246
+ end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #spamapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block spam security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #spamapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block spam security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #spamapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block spam security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.4.14
11
11
  =end
12
12
 
13
13
  module CloudmersiveSpamDetectionApiClient
14
- VERSION = '2.3.0'
14
+ VERSION = '2.4.0'
15
15
  end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #spamapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block spam security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -17,8 +17,11 @@ require 'cloudmersive-spam-detection-api-client/version'
17
17
  require 'cloudmersive-spam-detection-api-client/configuration'
18
18
 
19
19
  # Models
20
+ require 'cloudmersive-spam-detection-api-client/models/spam_detection_advanced_form_field'
21
+ require 'cloudmersive-spam-detection-api-client/models/spam_detection_advanced_form_submission_request'
20
22
  require 'cloudmersive-spam-detection-api-client/models/spam_detection_advanced_request'
21
23
  require 'cloudmersive-spam-detection-api-client/models/spam_detection_advanced_response'
24
+ require 'cloudmersive-spam-detection-api-client/models/spam_detection_form_submission_advanced_response'
22
25
  require 'cloudmersive-spam-detection-api-client/models/spam_detection_request'
23
26
  require 'cloudmersive-spam-detection-api-client/models/spam_detection_response'
24
27
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #spamapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block spam security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -32,6 +32,45 @@ describe 'SpamDetectionApi' do
32
32
  end
33
33
  end
34
34
 
35
+ # unit tests for spam_detect_file_advanced_post
36
+ # Perform advanced AI spam detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep learnign to detect spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
37
+ # @param [Hash] opts the optional parameters
38
+ # @option opts [String] :model Optional: Specify which AI model to use. Possible choices are Normal and Advanced. Default is Advanced.
39
+ # @option opts [String] :preprocessing Optional: Specify which preprocessing to Use. Possible choices are None, Compatability and Auto. Default is Auto.
40
+ # @option opts [BOOLEAN] :allow_phishing True if phishing should be allowed, false otherwise
41
+ # @option opts [BOOLEAN] :allow_unsolicited_sales True if unsolicited sales should be allowed, false otherwise
42
+ # @option opts [BOOLEAN] :allow_promotional_content True if promotional content should be allowed, false otherwise
43
+ # @option opts [File] :input_file
44
+ # @return [SpamDetectionAdvancedResponse]
45
+ describe 'spam_detect_file_advanced_post test' do
46
+ it 'should work' do
47
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
48
+ end
49
+ end
50
+
51
+ # unit tests for spam_detect_file_post
52
+ # Perform AI spam detection and classification on an input image or document (PDF or DOCX). Analyzes input content as well as embedded URLs with AI deep learnign to detect spam, phishing and other unsafe content. Uses 100-125 API calls depending on model selected.
53
+ # @param [Hash] opts the optional parameters
54
+ # @option opts [String] :model Model to use; default setting is Advanced
55
+ # @option opts [File] :input_file
56
+ # @return [SpamDetectionResponse]
57
+ describe 'spam_detect_file_post test' do
58
+ it 'should work' do
59
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
60
+ end
61
+ end
62
+
63
+ # unit tests for spam_detect_form_submission_advanced_post
64
+ # Perform advanced AI spam detection and classification against a form submission. Analyzes form input content as well as embedded URLs with AI deep learnign to detect spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
65
+ # @param [Hash] opts the optional parameters
66
+ # @option opts [SpamDetectionAdvancedFormSubmissionRequest] :body Spam detection request
67
+ # @return [SpamDetectionFormSubmissionAdvancedResponse]
68
+ describe 'spam_detect_form_submission_advanced_post test' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
+ end
72
+ end
73
+
35
74
  # unit tests for spam_detect_text_string_advanced_post
36
75
  # Perform advanced AI spam detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep learnign to detect spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
37
76
  # @param [Hash] opts the optional parameters
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #spamapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block spam security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #spamapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block spam security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -0,0 +1,47 @@
1
+ =begin
2
+ #spamapi
3
+
4
+ #Easily and directly scan and block spam security threats in input.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveSpamDetectionApiClient::SpamDetectionAdvancedFormField
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'SpamDetectionAdvancedFormField' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveSpamDetectionApiClient::SpamDetectionAdvancedFormField.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of SpamDetectionAdvancedFormField' do
31
+ it 'should create an instance of SpamDetectionAdvancedFormField' do
32
+ expect(@instance).to be_instance_of(CloudmersiveSpamDetectionApiClient::SpamDetectionAdvancedFormField)
33
+ end
34
+ end
35
+ describe 'test attribute "field_title"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "field_value"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ end
@@ -0,0 +1,59 @@
1
+ =begin
2
+ #spamapi
3
+
4
+ #Easily and directly scan and block spam security threats in input.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveSpamDetectionApiClient::SpamDetectionAdvancedFormSubmissionRequest
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'SpamDetectionAdvancedFormSubmissionRequest' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveSpamDetectionApiClient::SpamDetectionAdvancedFormSubmissionRequest.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of SpamDetectionAdvancedFormSubmissionRequest' do
31
+ it 'should create an instance of SpamDetectionAdvancedFormSubmissionRequest' do
32
+ expect(@instance).to be_instance_of(CloudmersiveSpamDetectionApiClient::SpamDetectionAdvancedFormSubmissionRequest)
33
+ end
34
+ end
35
+ describe 'test attribute "input_form_fields"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "allow_unsolicited_sales"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "allow_promotional_content"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "allow_phishing"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #spamapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block spam security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #spamapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block spam security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -38,6 +38,12 @@ describe 'SpamDetectionAdvancedResponse' do
38
38
  end
39
39
  end
40
40
 
41
+ describe 'test attribute "spam_risk_level"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
41
47
  describe 'test attribute "contains_spam"' do
42
48
  it 'should work' do
43
49
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -62,4 +68,10 @@ describe 'SpamDetectionAdvancedResponse' do
62
68
  end
63
69
  end
64
70
 
71
+ describe 'test attribute "analysis_rationale"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
65
77
  end
@@ -0,0 +1,77 @@
1
+ =begin
2
+ #spamapi
3
+
4
+ #Easily and directly scan and block spam security threats in input.
5
+
6
+ OpenAPI spec version: v1
7
+
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+ Swagger Codegen version: 2.4.14
10
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for CloudmersiveSpamDetectionApiClient::SpamDetectionFormSubmissionAdvancedResponse
18
+ # Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
19
+ # Please update as you see appropriate
20
+ describe 'SpamDetectionFormSubmissionAdvancedResponse' do
21
+ before do
22
+ # run before each test
23
+ @instance = CloudmersiveSpamDetectionApiClient::SpamDetectionFormSubmissionAdvancedResponse.new
24
+ end
25
+
26
+ after do
27
+ # run after each test
28
+ end
29
+
30
+ describe 'test an instance of SpamDetectionFormSubmissionAdvancedResponse' do
31
+ it 'should create an instance of SpamDetectionFormSubmissionAdvancedResponse' do
32
+ expect(@instance).to be_instance_of(CloudmersiveSpamDetectionApiClient::SpamDetectionFormSubmissionAdvancedResponse)
33
+ end
34
+ end
35
+ describe 'test attribute "clean_result"' do
36
+ it 'should work' do
37
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
38
+ end
39
+ end
40
+
41
+ describe 'test attribute "spam_risk_level"' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ describe 'test attribute "contains_spam"' do
48
+ it 'should work' do
49
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
50
+ end
51
+ end
52
+
53
+ describe 'test attribute "contains_unsolicited_sales"' do
54
+ it 'should work' do
55
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
56
+ end
57
+ end
58
+
59
+ describe 'test attribute "contains_promotional_content"' do
60
+ it 'should work' do
61
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
62
+ end
63
+ end
64
+
65
+ describe 'test attribute "contains_phishing_attempt"' do
66
+ it 'should work' do
67
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
68
+ end
69
+ end
70
+
71
+ describe 'test attribute "analysis_rationale"' do
72
+ it 'should work' do
73
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
74
+ end
75
+ end
76
+
77
+ end
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #spamapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block spam security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #spamapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block spam security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7
 
data/spec/spec_helper.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  =begin
2
2
  #spamapi
3
3
 
4
- #Easily and directly scan and block phishing security threats.
4
+ #Easily and directly scan and block spam security threats in input.
5
5
 
6
6
  OpenAPI spec version: v1
7
7