cloudmersive-spam-detection-api-client 2.2.1 → 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.
- checksums.yaml +4 -4
- data/README.md +23 -11
- data/cloudmersive-spam-detection-api-client.gemspec +2 -2
- data/docs/SpamDetectionAdvancedFormField.md +9 -0
- data/docs/SpamDetectionAdvancedFormSubmissionRequest.md +11 -0
- data/docs/SpamDetectionAdvancedRequest.md +4 -0
- data/docs/SpamDetectionAdvancedResponse.md +6 -0
- data/docs/SpamDetectionApi.md +182 -8
- data/docs/SpamDetectionFormSubmissionAdvancedResponse.md +14 -0
- data/docs/SpamDetectionRequest.md +9 -0
- data/lib/cloudmersive-spam-detection-api-client/api/spam_detection_api.rb +171 -7
- data/lib/cloudmersive-spam-detection-api-client/api_client.rb +1 -1
- data/lib/cloudmersive-spam-detection-api-client/api_error.rb +1 -1
- data/lib/cloudmersive-spam-detection-api-client/configuration.rb +1 -1
- data/lib/cloudmersive-spam-detection-api-client/models/spam_detection_advanced_form_field.rb +196 -0
- data/lib/cloudmersive-spam-detection-api-client/models/spam_detection_advanced_form_submission_request.rb +218 -0
- data/lib/cloudmersive-spam-detection-api-client/models/spam_detection_advanced_request.rb +45 -5
- data/lib/cloudmersive-spam-detection-api-client/models/spam_detection_advanced_response.rb +65 -5
- data/lib/cloudmersive-spam-detection-api-client/models/spam_detection_form_submission_advanced_response.rb +246 -0
- data/lib/cloudmersive-spam-detection-api-client/models/spam_detection_request.rb +196 -0
- data/lib/cloudmersive-spam-detection-api-client/models/spam_detection_response.rb +1 -1
- data/lib/cloudmersive-spam-detection-api-client/version.rb +2 -2
- data/lib/cloudmersive-spam-detection-api-client.rb +5 -1
- data/spec/api/spam_detection_api_spec.rb +43 -4
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/spam_detection_advanced_form_field_spec.rb +47 -0
- data/spec/models/spam_detection_advanced_form_submission_request_spec.rb +59 -0
- data/spec/models/spam_detection_advanced_request_spec.rb +25 -1
- data/spec/models/spam_detection_advanced_response_spec.rb +37 -1
- data/spec/models/spam_detection_form_submission_advanced_response_spec.rb +77 -0
- data/spec/models/spam_detection_request_spec.rb +47 -0
- data/spec/models/spam_detection_response_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +15 -3
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#spamapi
|
|
3
3
|
|
|
4
|
-
#Easily and directly scan and block
|
|
4
|
+
#Easily and directly scan and block spam security threats in input.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -38,4 +38,28 @@ describe 'SpamDetectionAdvancedRequest' do
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
describe 'test attribute "model"' 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_unsolicited_sales"' 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_promotional_content"' 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 "allow_phishing"' 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
|
+
|
|
41
65
|
end
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#spamapi
|
|
3
3
|
|
|
4
|
-
#Easily and directly scan and block
|
|
4
|
+
#Easily and directly scan and block spam security threats in input.
|
|
5
5
|
|
|
6
6
|
OpenAPI spec version: v1
|
|
7
7
|
|
|
@@ -38,4 +38,40 @@ 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
|
+
|
|
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
|
+
|
|
41
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
|
|
@@ -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::SpamDetectionRequest
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'SpamDetectionRequest' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveSpamDetectionApiClient::SpamDetectionRequest.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of SpamDetectionRequest' do
|
|
31
|
+
it 'should create an instance of SpamDetectionRequest' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveSpamDetectionApiClient::SpamDetectionRequest)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "input_string"' 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 "model"' 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
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudmersive-spam-detection-api-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.
|
|
4
|
+
version: 2.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cloudmersive
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2025-
|
|
11
|
+
date: 2025-12-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -201,9 +201,13 @@ files:
|
|
|
201
201
|
- "./README.md"
|
|
202
202
|
- "./Rakefile"
|
|
203
203
|
- "./cloudmersive-spam-detection-api-client.gemspec"
|
|
204
|
+
- "./docs/SpamDetectionAdvancedFormField.md"
|
|
205
|
+
- "./docs/SpamDetectionAdvancedFormSubmissionRequest.md"
|
|
204
206
|
- "./docs/SpamDetectionAdvancedRequest.md"
|
|
205
207
|
- "./docs/SpamDetectionAdvancedResponse.md"
|
|
206
208
|
- "./docs/SpamDetectionApi.md"
|
|
209
|
+
- "./docs/SpamDetectionFormSubmissionAdvancedResponse.md"
|
|
210
|
+
- "./docs/SpamDetectionRequest.md"
|
|
207
211
|
- "./docs/SpamDetectionResponse.md"
|
|
208
212
|
- "./git_push.sh"
|
|
209
213
|
- "./lib/cloudmersive-spam-detection-api-client.rb"
|
|
@@ -211,18 +215,26 @@ files:
|
|
|
211
215
|
- "./lib/cloudmersive-spam-detection-api-client/api_client.rb"
|
|
212
216
|
- "./lib/cloudmersive-spam-detection-api-client/api_error.rb"
|
|
213
217
|
- "./lib/cloudmersive-spam-detection-api-client/configuration.rb"
|
|
218
|
+
- "./lib/cloudmersive-spam-detection-api-client/models/spam_detection_advanced_form_field.rb"
|
|
219
|
+
- "./lib/cloudmersive-spam-detection-api-client/models/spam_detection_advanced_form_submission_request.rb"
|
|
214
220
|
- "./lib/cloudmersive-spam-detection-api-client/models/spam_detection_advanced_request.rb"
|
|
215
221
|
- "./lib/cloudmersive-spam-detection-api-client/models/spam_detection_advanced_response.rb"
|
|
222
|
+
- "./lib/cloudmersive-spam-detection-api-client/models/spam_detection_form_submission_advanced_response.rb"
|
|
223
|
+
- "./lib/cloudmersive-spam-detection-api-client/models/spam_detection_request.rb"
|
|
216
224
|
- "./lib/cloudmersive-spam-detection-api-client/models/spam_detection_response.rb"
|
|
217
225
|
- "./lib/cloudmersive-spam-detection-api-client/version.rb"
|
|
218
226
|
- "./spec/api/spam_detection_api_spec.rb"
|
|
219
227
|
- "./spec/api_client_spec.rb"
|
|
220
228
|
- "./spec/configuration_spec.rb"
|
|
229
|
+
- "./spec/models/spam_detection_advanced_form_field_spec.rb"
|
|
230
|
+
- "./spec/models/spam_detection_advanced_form_submission_request_spec.rb"
|
|
221
231
|
- "./spec/models/spam_detection_advanced_request_spec.rb"
|
|
222
232
|
- "./spec/models/spam_detection_advanced_response_spec.rb"
|
|
233
|
+
- "./spec/models/spam_detection_form_submission_advanced_response_spec.rb"
|
|
234
|
+
- "./spec/models/spam_detection_request_spec.rb"
|
|
223
235
|
- "./spec/models/spam_detection_response_spec.rb"
|
|
224
236
|
- "./spec/spec_helper.rb"
|
|
225
|
-
homepage: https://
|
|
237
|
+
homepage: https://cloudmersive.com/spam-detection-api
|
|
226
238
|
licenses:
|
|
227
239
|
- Apache 2.0
|
|
228
240
|
metadata: {}
|