cloudmersive-phishing-detection-api-client 2.2.2 → 2.2.4
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 +14 -9
- data/docs/PhishingDetectionAdvancedRequest.md +8 -1
- data/docs/PhishingDetectionAdvancedResponse.md +7 -1
- data/docs/PhishingDetectionApi.md +66 -12
- data/docs/PhishingDetectionTextStringRequest.md +10 -0
- data/docs/PhishingDetectionTextStringResponse.md +10 -0
- data/docs/PriorHistoryItem.md +15 -0
- data/docs/UnsafeUrlResult.md +12 -0
- data/lib/cloudmersive-phishing-detection-api-client/api/phishing_detection_api.rb +56 -8
- data/lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_request.rb +86 -14
- data/lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_response.rb +73 -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/prior_history_item.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 +4 -0
- data/spec/api/phishing_detection_api_spec.rb +15 -4
- data/spec/models/phishing_detection_advanced_request_spec.rb +45 -3
- data/spec/models/phishing_detection_advanced_response_spec.rb +37 -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/prior_history_item_spec.rb +83 -0
- data/spec/models/unsafe_url_result_spec.rb +65 -0
- metadata +14 -2
|
@@ -33,7 +33,7 @@ describe 'PhishingDetectionApi' do
|
|
|
33
33
|
end
|
|
34
34
|
|
|
35
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.
|
|
36
|
+
# Perform advanced AI phishing detection and classification against input email. Supports email input as a file (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP) or as an HTML body string. 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
37
|
# @param [Hash] opts the optional parameters
|
|
38
38
|
# @option opts [AdvancedEmailDetectionRequest] :body Phishing detection request
|
|
39
39
|
# @return [PhishingDetectionEmailAdvancedResponse]
|
|
@@ -44,7 +44,7 @@ describe 'PhishingDetectionApi' do
|
|
|
44
44
|
end
|
|
45
45
|
|
|
46
46
|
# unit tests for phishing_detect_file_advanced_post
|
|
47
|
-
# Perform advanced AI phishing detection and classification
|
|
47
|
+
# Perform advanced AI phishing detection and classification on an input image or document (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP). 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
48
|
# @param [Hash] opts the optional parameters
|
|
49
49
|
# @option opts [String] :model
|
|
50
50
|
# @option opts [String] :custom_policy_id
|
|
@@ -57,7 +57,7 @@ describe 'PhishingDetectionApi' do
|
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
# unit tests for phishing_detect_file_post
|
|
60
|
-
# Perform AI phishing detection and classification on an input image or document (PDF
|
|
60
|
+
# Perform AI phishing detection and classification on an input image or document (PDF, DOC, DOCX, XLS, XLSX, PPT, PPTX, HTML, EML, MSG, PNG, JPG, WEBP). Analyzes input content as well as embedded URLs with AI deep learning to detect phishing and other unsafe content. Uses 100-125 API calls depending on model selected.
|
|
61
61
|
# @param [Hash] opts the optional parameters
|
|
62
62
|
# @option opts [String] :model Model to use; default setting is Advanced
|
|
63
63
|
# @option opts [File] :input_file
|
|
@@ -69,7 +69,7 @@ describe 'PhishingDetectionApi' do
|
|
|
69
69
|
end
|
|
70
70
|
|
|
71
71
|
# unit tests for phishing_detect_text_string_advanced_post
|
|
72
|
-
# Perform advanced AI phishing detection and classification against input text string. Analyzes input content as well as embedded URLs with AI deep
|
|
72
|
+
# 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 spam, phishing and other unsafe content. Uses 25-100 API calls depending on model selected.
|
|
73
73
|
# @param [Hash] opts the optional parameters
|
|
74
74
|
# @option opts [PhishingDetectionAdvancedRequest] :body Phishing detection request
|
|
75
75
|
# @return [PhishingDetectionAdvancedResponse]
|
|
@@ -79,6 +79,17 @@ describe 'PhishingDetectionApi' do
|
|
|
79
79
|
end
|
|
80
80
|
end
|
|
81
81
|
|
|
82
|
+
# unit tests for phishing_detect_text_string_post
|
|
83
|
+
# Perform AI phishing detection against input text string. Returns a clean/not-clean result with confidence level and optional rationale.
|
|
84
|
+
# @param [Hash] opts the optional parameters
|
|
85
|
+
# @option opts [PhishingDetectionTextStringRequest] :body Phishing detection request
|
|
86
|
+
# @return [PhishingDetectionTextStringResponse]
|
|
87
|
+
describe 'phishing_detect_text_string_post test' do
|
|
88
|
+
it 'should work' do
|
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
90
|
+
end
|
|
91
|
+
end
|
|
92
|
+
|
|
82
93
|
# unit tests for phishing_detect_url_advanced_post
|
|
83
94
|
# Perform advanced AI phishing detection and classification against an input URL. Retrieves the URL content, checks for SSRF threats, and analyzes the page with AI deep learning to detect phishing and other unsafe content. Uses 100-125 API calls.
|
|
84
95
|
# @param [Hash] opts the optional parameters
|
|
@@ -38,25 +38,61 @@ describe 'PhishingDetectionAdvancedRequest' do
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
describe 'test attribute "text_type"' 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 "model"' do
|
|
42
48
|
it 'should work' do
|
|
43
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
50
|
end
|
|
45
51
|
end
|
|
46
52
|
|
|
47
|
-
describe 'test attribute "
|
|
53
|
+
describe 'test attribute "allow_unsolicited_sales"' do
|
|
48
54
|
it 'should work' do
|
|
49
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
50
56
|
end
|
|
51
57
|
end
|
|
52
58
|
|
|
53
|
-
describe 'test attribute "
|
|
59
|
+
describe 'test attribute "allow_promotional_content"' do
|
|
54
60
|
it 'should work' do
|
|
55
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
56
62
|
end
|
|
57
63
|
end
|
|
58
64
|
|
|
59
|
-
describe 'test attribute "
|
|
65
|
+
describe 'test attribute "allow_web_urls"' 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 "allow_phone_numbers"' 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 "allow_email_addresses"' 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
|
+
describe 'test attribute "provide_url_analysis"' do
|
|
84
|
+
it 'should work' do
|
|
85
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
86
|
+
end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
describe 'test attribute "custom_policy_id"' do
|
|
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 "provide_analysis_rationale"' do
|
|
60
96
|
it 'should work' do
|
|
61
97
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
62
98
|
end
|
|
@@ -98,4 +134,10 @@ describe 'PhishingDetectionAdvancedRequest' do
|
|
|
98
134
|
end
|
|
99
135
|
end
|
|
100
136
|
|
|
137
|
+
describe 'test attribute "prior_history"' do
|
|
138
|
+
it 'should work' do
|
|
139
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
140
|
+
end
|
|
141
|
+
end
|
|
142
|
+
|
|
101
143
|
end
|
|
@@ -38,7 +38,37 @@ describe 'PhishingDetectionAdvancedResponse' do
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
describe 'test attribute "
|
|
41
|
+
describe 'test attribute "contains_phishing"' 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_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 "contains_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 "contains_web_urls"' 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_phone_numbers"' 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_email_addresses"' do
|
|
42
72
|
it 'should work' do
|
|
43
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
44
74
|
end
|
|
@@ -56,4 +86,10 @@ describe 'PhishingDetectionAdvancedResponse' do
|
|
|
56
86
|
end
|
|
57
87
|
end
|
|
58
88
|
|
|
89
|
+
describe 'test attribute "unsafe_urls"' do
|
|
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
|
+
|
|
59
95
|
end
|
|
@@ -0,0 +1,53 @@
|
|
|
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::PhishingDetectionTextStringRequest
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'PhishingDetectionTextStringRequest' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersivePhishingDetectionApiClient::PhishingDetectionTextStringRequest.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of PhishingDetectionTextStringRequest' do
|
|
31
|
+
it 'should create an instance of PhishingDetectionTextStringRequest' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingDetectionTextStringRequest)
|
|
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
|
+
describe 'test attribute "provide_analysis_rationale"' 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
|
+
end
|
|
@@ -0,0 +1,53 @@
|
|
|
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::PhishingDetectionTextStringResponse
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'PhishingDetectionTextStringResponse' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersivePhishingDetectionApiClient::PhishingDetectionTextStringResponse.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of PhishingDetectionTextStringResponse' do
|
|
31
|
+
it 'should create an instance of PhishingDetectionTextStringResponse' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PhishingDetectionTextStringResponse)
|
|
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 "confidence_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 "analysis_rationale"' 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
|
+
end
|
|
@@ -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::PriorHistoryItem
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'PriorHistoryItem' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersivePhishingDetectionApiClient::PriorHistoryItem.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of PriorHistoryItem' do
|
|
31
|
+
it 'should create an instance of PriorHistoryItem' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersivePhishingDetectionApiClient::PriorHistoryItem)
|
|
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 "from_name"' 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 "to_name"' 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 "from_phone_number"' 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 "to_phone_number"' 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 "from_email_address"' 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 "to_email_address"' 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 "trusted_party"' 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.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cloudmersive
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-
|
|
11
|
+
date: 2026-03-03 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -209,7 +209,11 @@ files:
|
|
|
209
209
|
- "./docs/PhishingDetectionApi.md"
|
|
210
210
|
- "./docs/PhishingDetectionEmailAdvancedResponse.md"
|
|
211
211
|
- "./docs/PhishingDetectionResponse.md"
|
|
212
|
+
- "./docs/PhishingDetectionTextStringRequest.md"
|
|
213
|
+
- "./docs/PhishingDetectionTextStringResponse.md"
|
|
212
214
|
- "./docs/PhishingDetectionUrlAdvancedResponse.md"
|
|
215
|
+
- "./docs/PriorHistoryItem.md"
|
|
216
|
+
- "./docs/UnsafeUrlResult.md"
|
|
213
217
|
- "./git_push.sh"
|
|
214
218
|
- "./lib/cloudmersive-phishing-detection-api-client.rb"
|
|
215
219
|
- "./lib/cloudmersive-phishing-detection-api-client/api/phishing_detection_api.rb"
|
|
@@ -222,7 +226,11 @@ files:
|
|
|
222
226
|
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_advanced_response.rb"
|
|
223
227
|
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_email_advanced_response.rb"
|
|
224
228
|
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_response.rb"
|
|
229
|
+
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_text_string_request.rb"
|
|
230
|
+
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_text_string_response.rb"
|
|
225
231
|
- "./lib/cloudmersive-phishing-detection-api-client/models/phishing_detection_url_advanced_response.rb"
|
|
232
|
+
- "./lib/cloudmersive-phishing-detection-api-client/models/prior_history_item.rb"
|
|
233
|
+
- "./lib/cloudmersive-phishing-detection-api-client/models/unsafe_url_result.rb"
|
|
226
234
|
- "./lib/cloudmersive-phishing-detection-api-client/version.rb"
|
|
227
235
|
- "./spec/api/phishing_detection_api_spec.rb"
|
|
228
236
|
- "./spec/api_client_spec.rb"
|
|
@@ -233,7 +241,11 @@ files:
|
|
|
233
241
|
- "./spec/models/phishing_detection_advanced_response_spec.rb"
|
|
234
242
|
- "./spec/models/phishing_detection_email_advanced_response_spec.rb"
|
|
235
243
|
- "./spec/models/phishing_detection_response_spec.rb"
|
|
244
|
+
- "./spec/models/phishing_detection_text_string_request_spec.rb"
|
|
245
|
+
- "./spec/models/phishing_detection_text_string_response_spec.rb"
|
|
236
246
|
- "./spec/models/phishing_detection_url_advanced_response_spec.rb"
|
|
247
|
+
- "./spec/models/prior_history_item_spec.rb"
|
|
248
|
+
- "./spec/models/unsafe_url_result_spec.rb"
|
|
237
249
|
- "./spec/spec_helper.rb"
|
|
238
250
|
homepage: https://www.cloudmersive.com/phishing-api
|
|
239
251
|
licenses:
|