cloudmersive-phishing-detection-api-client 2.2.0 → 2.2.1
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 +19 -21
- data/cloudmersive-phishing-detection-api-client.gemspec +1 -1
- data/docs/AdvancedEmailDetectionRequest.md +14 -0
- data/docs/PhishingDetectionAdvancedRequest.md +9 -0
- data/docs/PhishingDetectionAdvancedResponse.md +10 -0
- data/docs/PhishingDetectionApi.md +228 -0
- data/docs/PhishingDetectionEmailAdvancedResponse.md +17 -0
- data/docs/PhishingDetectionResponse.md +8 -0
- data/lib/cloudmersive-phishing-detection-api-client/api/phishing_detection_api.rb +223 -0
- data/lib/cloudmersive-phishing-detection-api-client/api_client.rb +1 -1
- data/lib/cloudmersive-phishing-detection-api-client/api_error.rb +1 -1
- data/lib/cloudmersive-phishing-detection-api-client/configuration.rb +1 -1
- data/lib/cloudmersive-phishing-detection-api-client/models/{phishing_url_advanced_request.rb → advanced_email_detection_request.rb} +72 -46
- data/lib/cloudmersive-phishing-detection-api-client/models/{phishing_url_advanced_response_batch.rb → phishing_detection_advanced_request.rb} +18 -20
- data/lib/cloudmersive-phishing-detection-api-client/models/{phishing_url_response_batch.rb → phishing_detection_advanced_response.rb} +22 -14
- data/lib/cloudmersive-phishing-detection-api-client/models/{phishing_url_response.rb → phishing_detection_email_advanced_response.rb} +80 -40
- data/lib/cloudmersive-phishing-detection-api-client/models/{phishing_url_request.rb → phishing_detection_response.rb} +11 -16
- data/lib/cloudmersive-phishing-detection-api-client/version.rb +2 -2
- data/lib/cloudmersive-phishing-detection-api-client.rb +7 -10
- data/spec/api/phishing_detection_api_spec.rb +81 -0
- data/spec/api_client_spec.rb +1 -1
- data/spec/configuration_spec.rb +1 -1
- data/spec/models/{phishing_url_response_spec.rb → advanced_email_detection_request_spec.rb} +19 -13
- data/spec/models/{phishing_url_advanced_response_batch_spec.rb → phishing_detection_advanced_request_spec.rb} +9 -9
- data/spec/models/{phishing_url_advanced_request_spec.rb → phishing_detection_advanced_response_spec.rb} +10 -10
- data/spec/models/{phishing_url_advanced_response_spec.rb → phishing_detection_email_advanced_response_spec.rb} +16 -22
- data/spec/models/{phishing_url_request_spec.rb → phishing_detection_response_spec.rb} +8 -8
- data/spec/spec_helper.rb +1 -1
- metadata +20 -29
- data/docs/PhishingUrlAdvancedRequest.md +0 -10
- data/docs/PhishingUrlAdvancedRequestBatch.md +0 -10
- data/docs/PhishingUrlAdvancedResponse.md +0 -18
- data/docs/PhishingUrlAdvancedResponseBatch.md +0 -9
- data/docs/PhishingUrlApi.md +0 -120
- data/docs/PhishingUrlBatchApi.md +0 -120
- data/docs/PhishingUrlRequest.md +0 -8
- data/docs/PhishingUrlResponse.md +0 -13
- data/docs/PhishingUrlResponseBatch.md +0 -9
- data/lib/cloudmersive-phishing-detection-api-client/api/phishing_url_api.rb +0 -123
- data/lib/cloudmersive-phishing-detection-api-client/api/phishing_url_batch_api.rb +0 -123
- data/lib/cloudmersive-phishing-detection-api-client/models/phishing_url_advanced_request_batch.rb +0 -217
- data/lib/cloudmersive-phishing-detection-api-client/models/phishing_url_advanced_response.rb +0 -286
- data/spec/api/phishing_url_api_spec.rb +0 -59
- data/spec/api/phishing_url_batch_api_spec.rb +0 -59
- data/spec/models/phishing_url_advanced_request_batch_spec.rb +0 -53
- data/spec/models/phishing_url_response_batch_spec.rb +0 -47
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#phishingapi
|
3
3
|
|
4
|
-
#Easily and directly scan and block phishing security threats.
|
4
|
+
#Easily and directly scan and block phishing security threats in input.
|
5
5
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
@@ -17,17 +17,14 @@ require 'cloudmersive-phishing-detection-api-client/version'
|
|
17
17
|
require 'cloudmersive-phishing-detection-api-client/configuration'
|
18
18
|
|
19
19
|
# Models
|
20
|
-
require 'cloudmersive-phishing-detection-api-client/models/
|
21
|
-
require 'cloudmersive-phishing-detection-api-client/models/
|
22
|
-
require 'cloudmersive-phishing-detection-api-client/models/
|
23
|
-
require 'cloudmersive-phishing-detection-api-client/models/
|
24
|
-
require 'cloudmersive-phishing-detection-api-client/models/
|
25
|
-
require 'cloudmersive-phishing-detection-api-client/models/phishing_url_response'
|
26
|
-
require 'cloudmersive-phishing-detection-api-client/models/phishing_url_response_batch'
|
20
|
+
require 'cloudmersive-phishing-detection-api-client/models/advanced_email_detection_request'
|
21
|
+
require 'cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_request'
|
22
|
+
require 'cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_response'
|
23
|
+
require 'cloudmersive-phishing-detection-api-client/models/phishing_detection_email_advanced_response'
|
24
|
+
require 'cloudmersive-phishing-detection-api-client/models/phishing_detection_response'
|
27
25
|
|
28
26
|
# APIs
|
29
|
-
require 'cloudmersive-phishing-detection-api-client/api/
|
30
|
-
require 'cloudmersive-phishing-detection-api-client/api/phishing_url_batch_api'
|
27
|
+
require 'cloudmersive-phishing-detection-api-client/api/phishing_detection_api'
|
31
28
|
|
32
29
|
module CloudmersivePhishingDetectionApiClient
|
33
30
|
class << self
|
@@ -0,0 +1,81 @@
|
|
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
|
+
|
16
|
+
# Unit tests for CloudmersivePhishingDetectionApiClient::PhishingDetectionApi
|
17
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'PhishingDetectionApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@instance = CloudmersivePhishingDetectionApiClient::PhishingDetectionApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of PhishingDetectionApi' do
|
30
|
+
it 'should create an instance of PhishingDetectionApi' do
|
31
|
+
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingDetectionApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for phishing_detect_email_advanced_post
|
36
|
+
# Perform advanced AI phishing detection and classification against input email. Analyzes input email as well as embedded URLs with AI deep learning to detect phishing, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
|
37
|
+
# @param [Hash] opts the optional parameters
|
38
|
+
# @option opts [AdvancedEmailDetectionRequest] :body Phishing detection request
|
39
|
+
# @return [PhishingDetectionEmailAdvancedResponse]
|
40
|
+
describe 'phishing_detect_email_advanced_post test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for phishing_detect_file_advanced_post
|
47
|
+
# Perform advanced AI phishing detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep learning to detect phishing, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
|
48
|
+
# @param [Hash] opts the optional parameters
|
49
|
+
# @option opts [String] :model
|
50
|
+
# @option opts [File] :input_file
|
51
|
+
# @return [PhishingDetectionAdvancedResponse]
|
52
|
+
describe 'phishing_detect_file_advanced_post test' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for phishing_detect_file_post
|
59
|
+
# Perform AI phishing 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 phishing and other unsafe content. Uses 100-125 API calls depending on model selected.
|
60
|
+
# @param [Hash] opts the optional parameters
|
61
|
+
# @option opts [String] :model Model to use; default setting is Advanced
|
62
|
+
# @option opts [File] :input_file
|
63
|
+
# @return [PhishingDetectionResponse]
|
64
|
+
describe 'phishing_detect_file_post test' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# unit tests for phishing_detect_text_string_advanced_post
|
71
|
+
# Perform advanced AI phishing 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.
|
72
|
+
# @param [Hash] opts the optional parameters
|
73
|
+
# @option opts [PhishingDetectionAdvancedRequest] :body Phishing detection request
|
74
|
+
# @return [PhishingDetectionAdvancedResponse]
|
75
|
+
describe 'phishing_detect_text_string_advanced_post test' do
|
76
|
+
it 'should work' do
|
77
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
end
|
data/spec/api_client_spec.rb
CHANGED
data/spec/configuration_spec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#phishingapi
|
3
3
|
|
4
|
-
#Easily and directly scan and block phishing security threats.
|
4
|
+
#Easily and directly scan and block phishing security threats in input.
|
5
5
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
@@ -14,55 +14,61 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for CloudmersivePhishingDetectionApiClient::
|
17
|
+
# Unit tests for CloudmersivePhishingDetectionApiClient::AdvancedEmailDetectionRequest
|
18
18
|
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'AdvancedEmailDetectionRequest' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = CloudmersivePhishingDetectionApiClient::
|
23
|
+
@instance = CloudmersivePhishingDetectionApiClient::AdvancedEmailDetectionRequest.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::
|
30
|
+
describe 'test an instance of AdvancedEmailDetectionRequest' do
|
31
|
+
it 'should create an instance of AdvancedEmailDetectionRequest' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::AdvancedEmailDetectionRequest)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "from_email_address"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "to_email_address"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "subject"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "html_body"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "allow_low_reputation_senders"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
describe 'test attribute "
|
65
|
+
describe 'test attribute "allow_sanctioned"' 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 "input_email_file"' do
|
66
72
|
it 'should work' do
|
67
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
74
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#phishingapi
|
3
3
|
|
4
|
-
#Easily and directly scan and block phishing security threats.
|
4
|
+
#Easily and directly scan and block phishing security threats in input.
|
5
5
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
@@ -14,31 +14,31 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for CloudmersivePhishingDetectionApiClient::
|
17
|
+
# Unit tests for CloudmersivePhishingDetectionApiClient::PhishingDetectionAdvancedRequest
|
18
18
|
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'PhishingDetectionAdvancedRequest' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = CloudmersivePhishingDetectionApiClient::
|
23
|
+
@instance = CloudmersivePhishingDetectionApiClient::PhishingDetectionAdvancedRequest.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::
|
30
|
+
describe 'test an instance of PhishingDetectionAdvancedRequest' do
|
31
|
+
it 'should create an instance of PhishingDetectionAdvancedRequest' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingDetectionAdvancedRequest)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "input_string"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "model"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#phishingapi
|
3
3
|
|
4
|
-
#Easily and directly scan and block phishing security threats.
|
4
|
+
#Easily and directly scan and block phishing security threats in input.
|
5
5
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
@@ -14,37 +14,37 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for CloudmersivePhishingDetectionApiClient::
|
17
|
+
# Unit tests for CloudmersivePhishingDetectionApiClient::PhishingDetectionAdvancedResponse
|
18
18
|
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'PhishingDetectionAdvancedResponse' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = CloudmersivePhishingDetectionApiClient::
|
23
|
+
@instance = CloudmersivePhishingDetectionApiClient::PhishingDetectionAdvancedResponse.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::
|
30
|
+
describe 'test an instance of PhishingDetectionAdvancedResponse' do
|
31
|
+
it 'should create an instance of PhishingDetectionAdvancedResponse' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingDetectionAdvancedResponse)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "clean_result"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "phishing_risk_level"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "analysis_rationale"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#phishingapi
|
3
3
|
|
4
|
-
#Easily and directly scan and block phishing security threats.
|
4
|
+
#Easily and directly scan and block phishing security threats in input.
|
5
5
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
@@ -14,22 +14,22 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for CloudmersivePhishingDetectionApiClient::
|
17
|
+
# Unit tests for CloudmersivePhishingDetectionApiClient::PhishingDetectionEmailAdvancedResponse
|
18
18
|
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'PhishingDetectionEmailAdvancedResponse' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = CloudmersivePhishingDetectionApiClient::
|
23
|
+
@instance = CloudmersivePhishingDetectionApiClient::PhishingDetectionEmailAdvancedResponse.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::
|
30
|
+
describe 'test an instance of PhishingDetectionEmailAdvancedResponse' do
|
31
|
+
it 'should create an instance of PhishingDetectionEmailAdvancedResponse' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingDetectionEmailAdvancedResponse)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
describe 'test attribute "clean_result"' do
|
@@ -38,61 +38,55 @@ describe 'PhishingUrlAdvancedResponse' do
|
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "phishing_risk_level"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "spam_risk_level"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "contains_low_reputation_sender"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "contains_phishing"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
describe 'test attribute "
|
65
|
+
describe 'test attribute "contains_spam"' do
|
66
66
|
it 'should work' do
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "contains_unsolicited_sales"' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "contains_promotional_content"' do
|
78
78
|
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
-
describe 'test attribute "
|
83
|
+
describe 'test attribute "contains_phishing_attempt"' do
|
84
84
|
it 'should work' do
|
85
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
-
describe 'test attribute "
|
90
|
-
it 'should work' do
|
91
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
describe 'test attribute "input_url"' do
|
89
|
+
describe 'test attribute "analysis_rationale"' do
|
96
90
|
it 'should work' do
|
97
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
92
|
end
|
@@ -1,7 +1,7 @@
|
|
1
1
|
=begin
|
2
2
|
#phishingapi
|
3
3
|
|
4
|
-
#Easily and directly scan and block phishing security threats.
|
4
|
+
#Easily and directly scan and block phishing security threats in input.
|
5
5
|
|
6
6
|
OpenAPI spec version: v1
|
7
7
|
|
@@ -14,25 +14,25 @@ require 'spec_helper'
|
|
14
14
|
require 'json'
|
15
15
|
require 'date'
|
16
16
|
|
17
|
-
# Unit tests for CloudmersivePhishingDetectionApiClient::
|
17
|
+
# Unit tests for CloudmersivePhishingDetectionApiClient::PhishingDetectionResponse
|
18
18
|
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
19
19
|
# Please update as you see appropriate
|
20
|
-
describe '
|
20
|
+
describe 'PhishingDetectionResponse' do
|
21
21
|
before do
|
22
22
|
# run before each test
|
23
|
-
@instance = CloudmersivePhishingDetectionApiClient::
|
23
|
+
@instance = CloudmersivePhishingDetectionApiClient::PhishingDetectionResponse.new
|
24
24
|
end
|
25
25
|
|
26
26
|
after do
|
27
27
|
# run after each test
|
28
28
|
end
|
29
29
|
|
30
|
-
describe 'test an instance of
|
31
|
-
it 'should create an instance of
|
32
|
-
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::
|
30
|
+
describe 'test an instance of PhishingDetectionResponse' do
|
31
|
+
it 'should create an instance of PhishingDetectionResponse' do
|
32
|
+
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingDetectionResponse)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "clean_result"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
data/spec/spec_helper.rb
CHANGED
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.1
|
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: 2025-09-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -202,41 +202,32 @@ files:
|
|
202
202
|
- "./README.md"
|
203
203
|
- "./Rakefile"
|
204
204
|
- "./cloudmersive-phishing-detection-api-client.gemspec"
|
205
|
-
- "./docs/
|
206
|
-
- "./docs/
|
207
|
-
- "./docs/
|
208
|
-
- "./docs/
|
209
|
-
- "./docs/
|
210
|
-
- "./docs/
|
211
|
-
- "./docs/PhishingUrlRequest.md"
|
212
|
-
- "./docs/PhishingUrlResponse.md"
|
213
|
-
- "./docs/PhishingUrlResponseBatch.md"
|
205
|
+
- "./docs/AdvancedEmailDetectionRequest.md"
|
206
|
+
- "./docs/PhishingDetectionAdvancedRequest.md"
|
207
|
+
- "./docs/PhishingDetectionAdvancedResponse.md"
|
208
|
+
- "./docs/PhishingDetectionApi.md"
|
209
|
+
- "./docs/PhishingDetectionEmailAdvancedResponse.md"
|
210
|
+
- "./docs/PhishingDetectionResponse.md"
|
214
211
|
- "./git_push.sh"
|
215
212
|
- "./lib/cloudmersive-phishing-detection-api-client.rb"
|
216
|
-
- "./lib/cloudmersive-phishing-detection-api-client/api/
|
217
|
-
- "./lib/cloudmersive-phishing-detection-api-client/api/phishing_url_batch_api.rb"
|
213
|
+
- "./lib/cloudmersive-phishing-detection-api-client/api/phishing_detection_api.rb"
|
218
214
|
- "./lib/cloudmersive-phishing-detection-api-client/api_client.rb"
|
219
215
|
- "./lib/cloudmersive-phishing-detection-api-client/api_error.rb"
|
220
216
|
- "./lib/cloudmersive-phishing-detection-api-client/configuration.rb"
|
221
|
-
- "./lib/cloudmersive-phishing-detection-api-client/models/
|
222
|
-
- "./lib/cloudmersive-phishing-detection-api-client/models/
|
223
|
-
- "./lib/cloudmersive-phishing-detection-api-client/models/
|
224
|
-
- "./lib/cloudmersive-phishing-detection-api-client/models/
|
225
|
-
- "./lib/cloudmersive-phishing-detection-api-client/models/
|
226
|
-
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_url_response.rb"
|
227
|
-
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_url_response_batch.rb"
|
217
|
+
- "./lib/cloudmersive-phishing-detection-api-client/models/advanced_email_detection_request.rb"
|
218
|
+
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_request.rb"
|
219
|
+
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_response.rb"
|
220
|
+
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_email_advanced_response.rb"
|
221
|
+
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_response.rb"
|
228
222
|
- "./lib/cloudmersive-phishing-detection-api-client/version.rb"
|
229
|
-
- "./spec/api/
|
230
|
-
- "./spec/api/phishing_url_batch_api_spec.rb"
|
223
|
+
- "./spec/api/phishing_detection_api_spec.rb"
|
231
224
|
- "./spec/api_client_spec.rb"
|
232
225
|
- "./spec/configuration_spec.rb"
|
233
|
-
- "./spec/models/
|
234
|
-
- "./spec/models/
|
235
|
-
- "./spec/models/
|
236
|
-
- "./spec/models/
|
237
|
-
- "./spec/models/
|
238
|
-
- "./spec/models/phishing_url_response_batch_spec.rb"
|
239
|
-
- "./spec/models/phishing_url_response_spec.rb"
|
226
|
+
- "./spec/models/advanced_email_detection_request_spec.rb"
|
227
|
+
- "./spec/models/phishing_detection_advanced_request_spec.rb"
|
228
|
+
- "./spec/models/phishing_detection_advanced_response_spec.rb"
|
229
|
+
- "./spec/models/phishing_detection_email_advanced_response_spec.rb"
|
230
|
+
- "./spec/models/phishing_detection_response_spec.rb"
|
240
231
|
- "./spec/spec_helper.rb"
|
241
232
|
homepage: https://www.cloudmersive.com/phishing-api
|
242
233
|
licenses:
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedRequest
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**url** | **String** | Full url data to be evaluated |
|
7
|
-
**allow_list** | **Array<String>** | The caller may specify a collection of hosts or domains which are always considered safe.<br /> This is to allow internal sites to be marked as safe | [optional]
|
8
|
-
**block_list** | **Array<String>** | The caller may specify a collection of hosts or domains which are always considered unsafe.<br /> This is to allow internal sites to be marked as safe | [optional]
|
9
|
-
|
10
|
-
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedRequestBatch
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**urls** | **Array<String>** | Collection of all urls to check |
|
7
|
-
**allow_list** | **Array<String>** | The caller may specify a collection of hosts or domains which are always considered safe.<br /> This is to allow internal sites to be marked as safe | [optional]
|
8
|
-
**block_list** | **Array<String>** | The caller may specify a collection of hosts or domains which are always considered unsafe.<br /> This is to allow internal sites to be marked as safe | [optional]
|
9
|
-
|
10
|
-
|
@@ -1,18 +0,0 @@
|
|
1
|
-
# CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedResponse
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**clean_result** | **BOOLEAN** | Specifies if the url (or its host or domain) passed all the checks or not. | [optional]
|
7
|
-
**risk** | **Float** | Risk value from 0.0 - 1.0. Higher numbers are a higher risk <br />Anything below 0.3 should be considered safe. Anything above 0.7 should be considered a significant risk. <br /> A score of 1.0 indicates the url, host, or domain failed significant safety checks.<br /> If a url passes all the tests for the basic api, the risk will be 0.7. If a url passes all the tests for the advanced api, the risk will be 0.2. | [optional]
|
8
|
-
**contains_threat_url** | **BOOLEAN** | Specifies if the full url with query parameters and fragment is a phishing threat <br />The advanced api performs more checks on the full url. | [optional]
|
9
|
-
**contains_threat_host** | **BOOLEAN** | Specifies if the host of the url (i.e. ```mysite.hostingsite.com``` for a url of ```https://mysite.hostingsite.com/index.html```) is a phishing threat <br />The advanced api performs more checks on the host | [optional]
|
10
|
-
**contains_threat_domain** | **BOOLEAN** | Specifies if the registerable domain of the url (i.e. ```hostingsite.com``` for a url of ```https://mysite.hostingsite.com/index.html```) is a phishing threat <br />The advanced api performs more checks on the domain | [optional]
|
11
|
-
**contains_threat_ssrf** | **BOOLEAN** | The url that was provided or the destination url after redirection contains an SSRF threat | [optional]
|
12
|
-
**contains_threat_url_format** | **BOOLEAN** | The url that was provided or the destination url after redirection is an unsafe format | [optional]
|
13
|
-
**contains_threat_domain_quality** | **BOOLEAN** | The domain of the destination url is low quality. | [optional]
|
14
|
-
**contains_threat_domain_age** | **BOOLEAN** | The domain of the destination url has been registered too recently. | [optional]
|
15
|
-
**url_is_invalid_syntax** | **BOOLEAN** | Specifies if the url was malformed or not | [optional]
|
16
|
-
**input_url** | **String** | Input URL that was scanned | [optional]
|
17
|
-
|
18
|
-
|
@@ -1,9 +0,0 @@
|
|
1
|
-
# CloudmersivePhishingDetectionApiClient::PhishingUrlAdvancedResponseBatch
|
2
|
-
|
3
|
-
## Properties
|
4
|
-
Name | Type | Description | Notes
|
5
|
-
------------ | ------------- | ------------- | -------------
|
6
|
-
**clean_result** | **BOOLEAN** | Specifies if all the urls (or its hosts or domains) in this batch call passed all the checks or not. | [optional]
|
7
|
-
**url_responses** | [**Array<PhishingUrlAdvancedResponse>**](PhishingUrlAdvancedResponse.md) | Resulting URL validations | [optional]
|
8
|
-
|
9
|
-
|