cloudmersive-phishing-detection-api-client 2.2.1 → 2.2.3
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 +11 -4
- data/docs/AdvancedEmailDetectionRequest.md +2 -1
- data/docs/AdvancedUrlDetectionRequest.md +9 -0
- data/docs/PhishingDetectionAdvancedRequest.md +15 -0
- data/docs/PhishingDetectionAdvancedResponse.md +8 -1
- data/docs/PhishingDetectionApi.md +110 -0
- data/docs/PhishingDetectionTextStringRequest.md +10 -0
- data/docs/PhishingDetectionTextStringResponse.md +10 -0
- data/docs/PhishingDetectionUrlAdvancedResponse.md +15 -0
- data/docs/UnsafeUrlResult.md +12 -0
- data/lib/cloudmersive-phishing-detection-api-client/api/phishing_detection_api.rb +99 -0
- data/lib/cloudmersive-phishing-detection-api-client/models/advanced_email_detection_request.rb +12 -1
- data/lib/cloudmersive-phishing-detection-api-client/models/advanced_url_detection_request.rb +196 -0
- data/lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_request.rb +154 -4
- data/lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_response.rb +83 -11
- data/lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_text_string_request.rb +206 -0
- data/lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_text_string_response.rb +206 -0
- data/lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_url_advanced_response.rb +256 -0
- data/lib/cloudmersive-phishing-detection-api-client/models/unsafe_url_result.rb +226 -0
- data/lib/cloudmersive-phishing-detection-api-client/version.rb +1 -1
- data/lib/cloudmersive-phishing-detection-api-client.rb +5 -0
- data/spec/api/phishing_detection_api_spec.rb +23 -0
- data/spec/models/advanced_email_detection_request_spec.rb +6 -0
- data/spec/models/advanced_url_detection_request_spec.rb +47 -0
- data/spec/models/phishing_detection_advanced_request_spec.rb +90 -0
- data/spec/models/phishing_detection_advanced_response_spec.rb +43 -1
- data/spec/models/phishing_detection_text_string_request_spec.rb +53 -0
- data/spec/models/phishing_detection_text_string_response_spec.rb +53 -0
- data/spec/models/phishing_detection_url_advanced_response_spec.rb +83 -0
- data/spec/models/unsafe_url_result_spec.rb +65 -0
- metadata +17 -2
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#phishingapi
|
|
3
|
+
|
|
4
|
+
#Easily and directly scan and block phishing 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 CloudmersivePhishingDetectionApiClient::PhishingDetectionUrlAdvancedResponse
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'PhishingDetectionUrlAdvancedResponse' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersivePhishingDetectionApiClient::PhishingDetectionUrlAdvancedResponse.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of PhishingDetectionUrlAdvancedResponse' do
|
|
31
|
+
it 'should create an instance of PhishingDetectionUrlAdvancedResponse' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingDetectionUrlAdvancedResponse)
|
|
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 "phishing_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 "is_ssrf_threat"' 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_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
|
+
describe 'test attribute "contains_unsolicited_sales"' 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_promotional_content"' 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 "contains_phishing_attempt"' 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
|
+
describe 'test attribute "analysis_rationale"' do
|
|
78
|
+
it 'should work' do
|
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
80
|
+
end
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
end
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#phishingapi
|
|
3
|
+
|
|
4
|
+
#Easily and directly scan and block phishing 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 CloudmersivePhishingDetectionApiClient::UnsafeUrlResult
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'UnsafeUrlResult' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersivePhishingDetectionApiClient::UnsafeUrlResult.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of UnsafeUrlResult' do
|
|
31
|
+
it 'should create an instance of UnsafeUrlResult' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::UnsafeUrlResult)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "url"' 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 "clean_result"' 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 "is_ssrf_threat"' 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_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
|
+
describe 'test attribute "contains_phishing_attempt"' 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
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudmersive-phishing-detection-api-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cloudmersive
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2026-02-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -203,11 +203,16 @@ files:
|
|
|
203
203
|
- "./Rakefile"
|
|
204
204
|
- "./cloudmersive-phishing-detection-api-client.gemspec"
|
|
205
205
|
- "./docs/AdvancedEmailDetectionRequest.md"
|
|
206
|
+
- "./docs/AdvancedUrlDetectionRequest.md"
|
|
206
207
|
- "./docs/PhishingDetectionAdvancedRequest.md"
|
|
207
208
|
- "./docs/PhishingDetectionAdvancedResponse.md"
|
|
208
209
|
- "./docs/PhishingDetectionApi.md"
|
|
209
210
|
- "./docs/PhishingDetectionEmailAdvancedResponse.md"
|
|
210
211
|
- "./docs/PhishingDetectionResponse.md"
|
|
212
|
+
- "./docs/PhishingDetectionTextStringRequest.md"
|
|
213
|
+
- "./docs/PhishingDetectionTextStringResponse.md"
|
|
214
|
+
- "./docs/PhishingDetectionUrlAdvancedResponse.md"
|
|
215
|
+
- "./docs/UnsafeUrlResult.md"
|
|
211
216
|
- "./git_push.sh"
|
|
212
217
|
- "./lib/cloudmersive-phishing-detection-api-client.rb"
|
|
213
218
|
- "./lib/cloudmersive-phishing-detection-api-client/api/phishing_detection_api.rb"
|
|
@@ -215,19 +220,29 @@ files:
|
|
|
215
220
|
- "./lib/cloudmersive-phishing-detection-api-client/api_error.rb"
|
|
216
221
|
- "./lib/cloudmersive-phishing-detection-api-client/configuration.rb"
|
|
217
222
|
- "./lib/cloudmersive-phishing-detection-api-client/models/advanced_email_detection_request.rb"
|
|
223
|
+
- "./lib/cloudmersive-phishing-detection-api-client/models/advanced_url_detection_request.rb"
|
|
218
224
|
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_request.rb"
|
|
219
225
|
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_response.rb"
|
|
220
226
|
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_email_advanced_response.rb"
|
|
221
227
|
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_response.rb"
|
|
228
|
+
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_text_string_request.rb"
|
|
229
|
+
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_text_string_response.rb"
|
|
230
|
+
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_url_advanced_response.rb"
|
|
231
|
+
- "./lib/cloudmersive-phishing-detection-api-client/models/unsafe_url_result.rb"
|
|
222
232
|
- "./lib/cloudmersive-phishing-detection-api-client/version.rb"
|
|
223
233
|
- "./spec/api/phishing_detection_api_spec.rb"
|
|
224
234
|
- "./spec/api_client_spec.rb"
|
|
225
235
|
- "./spec/configuration_spec.rb"
|
|
226
236
|
- "./spec/models/advanced_email_detection_request_spec.rb"
|
|
237
|
+
- "./spec/models/advanced_url_detection_request_spec.rb"
|
|
227
238
|
- "./spec/models/phishing_detection_advanced_request_spec.rb"
|
|
228
239
|
- "./spec/models/phishing_detection_advanced_response_spec.rb"
|
|
229
240
|
- "./spec/models/phishing_detection_email_advanced_response_spec.rb"
|
|
230
241
|
- "./spec/models/phishing_detection_response_spec.rb"
|
|
242
|
+
- "./spec/models/phishing_detection_text_string_request_spec.rb"
|
|
243
|
+
- "./spec/models/phishing_detection_text_string_response_spec.rb"
|
|
244
|
+
- "./spec/models/phishing_detection_url_advanced_response_spec.rb"
|
|
245
|
+
- "./spec/models/unsafe_url_result_spec.rb"
|
|
231
246
|
- "./spec/spec_helper.rb"
|
|
232
247
|
homepage: https://www.cloudmersive.com/phishing-api
|
|
233
248
|
licenses:
|