cloudmersive-validate-api-client 2.1.6 → 2.1.7
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 +10 -4
- data/docs/DomainApi.md +110 -0
- data/docs/PhishingCheckRequest.md +8 -0
- data/docs/PhishingCheckResponse.md +9 -0
- data/docs/UrlSafetyCheckRequestFull.md +8 -0
- data/docs/UrlSafetyCheckResponseFull.md +9 -0
- data/lib/cloudmersive-validate-api-client.rb +4 -0
- data/lib/cloudmersive-validate-api-client/api/domain_api.rb +108 -0
- data/lib/cloudmersive-validate-api-client/models/phishing_check_request.rb +186 -0
- data/lib/cloudmersive-validate-api-client/models/phishing_check_response.rb +196 -0
- data/lib/cloudmersive-validate-api-client/models/url_safety_check_request_full.rb +186 -0
- data/lib/cloudmersive-validate-api-client/models/url_safety_check_response_full.rb +196 -0
- data/lib/cloudmersive-validate-api-client/version.rb +1 -1
- data/spec/api/domain_api_spec.rb +24 -0
- data/spec/models/phishing_check_request_spec.rb +41 -0
- data/spec/models/phishing_check_response_spec.rb +47 -0
- data/spec/models/url_safety_check_request_full_spec.rb +41 -0
- data/spec/models/url_safety_check_response_full_spec.rb +47 -0
- metadata +14 -2
data/spec/api/domain_api_spec.rb
CHANGED
|
@@ -56,6 +56,18 @@ describe 'DomainApi' do
|
|
|
56
56
|
end
|
|
57
57
|
end
|
|
58
58
|
|
|
59
|
+
# unit tests for domain_phishing_check
|
|
60
|
+
# Check a URL for Phishing threats
|
|
61
|
+
# Checks if an input URL is at risk of being an Phishing (fake login page, or other page designed to collect information via social engineering) threat or attack.
|
|
62
|
+
# @param request Input URL request
|
|
63
|
+
# @param [Hash] opts the optional parameters
|
|
64
|
+
# @return [PhishingCheckResponse]
|
|
65
|
+
describe 'domain_phishing_check test' 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
|
+
|
|
59
71
|
# unit tests for domain_post
|
|
60
72
|
# Get WHOIS information for a domain
|
|
61
73
|
# Validate whether a domain name exists, and also return the full WHOIS record for that domain name. WHOIS records include all the registration details of the domain name, such as information about the domain's owners.
|
|
@@ -80,6 +92,18 @@ describe 'DomainApi' do
|
|
|
80
92
|
end
|
|
81
93
|
end
|
|
82
94
|
|
|
95
|
+
# unit tests for domain_safety_check
|
|
96
|
+
# Check a URL for safety threats
|
|
97
|
+
# Checks if an input URL is at risk of being a safety threat through malware, unwanted software, or social engineering threats.
|
|
98
|
+
# @param request Input URL request
|
|
99
|
+
# @param [Hash] opts the optional parameters
|
|
100
|
+
# @return [UrlSafetyCheckResponseFull]
|
|
101
|
+
describe 'domain_safety_check test' do
|
|
102
|
+
it 'should work' do
|
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
104
|
+
end
|
|
105
|
+
end
|
|
106
|
+
|
|
83
107
|
# unit tests for domain_ssrf_check
|
|
84
108
|
# Check a URL for SSRF threats
|
|
85
109
|
# Checks if an input URL is at risk of being an SSRF (Server-side request forgery) threat or attack.
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#validateapi
|
|
3
|
+
|
|
4
|
+
#The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
|
|
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 CloudmersiveValidateApiClient::PhishingCheckRequest
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'PhishingCheckRequest' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveValidateApiClient::PhishingCheckRequest.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of PhishingCheckRequest' do
|
|
31
|
+
it 'should create an instance of PhishingCheckRequest' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::PhishingCheckRequest)
|
|
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
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#validateapi
|
|
3
|
+
|
|
4
|
+
#The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
|
|
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 CloudmersiveValidateApiClient::PhishingCheckResponse
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'PhishingCheckResponse' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveValidateApiClient::PhishingCheckResponse.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of PhishingCheckResponse' do
|
|
31
|
+
it 'should create an instance of PhishingCheckResponse' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::PhishingCheckResponse)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "clean_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 "threat_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
|
+
|
|
47
|
+
end
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#validateapi
|
|
3
|
+
|
|
4
|
+
#The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
|
|
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 CloudmersiveValidateApiClient::UrlSafetyCheckRequestFull
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'UrlSafetyCheckRequestFull' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveValidateApiClient::UrlSafetyCheckRequestFull.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of UrlSafetyCheckRequestFull' do
|
|
31
|
+
it 'should create an instance of UrlSafetyCheckRequestFull' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::UrlSafetyCheckRequestFull)
|
|
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
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#validateapi
|
|
3
|
+
|
|
4
|
+
#The validation APIs help you validate data. Check if an E-mail address is real. Check if a domain is real. Check up on an IP address, and even where it is located. All this and much more is available in the validation API.
|
|
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 CloudmersiveValidateApiClient::UrlSafetyCheckResponseFull
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'UrlSafetyCheckResponseFull' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveValidateApiClient::UrlSafetyCheckResponseFull.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of UrlSafetyCheckResponseFull' do
|
|
31
|
+
it 'should create an instance of UrlSafetyCheckResponseFull' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::UrlSafetyCheckResponseFull)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "clean_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 "threat_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
|
+
|
|
47
|
+
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: cloudmersive-validate-api-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.1.
|
|
4
|
+
version: 2.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Cloudmersive
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2021-02-
|
|
11
|
+
date: 2021-02-22 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -243,6 +243,8 @@ files:
|
|
|
243
243
|
- "./docs/NormalizeAddressResponse.md"
|
|
244
244
|
- "./docs/ParseAddressRequest.md"
|
|
245
245
|
- "./docs/ParseAddressResponse.md"
|
|
246
|
+
- "./docs/PhishingCheckRequest.md"
|
|
247
|
+
- "./docs/PhishingCheckResponse.md"
|
|
246
248
|
- "./docs/PhoneNumberApi.md"
|
|
247
249
|
- "./docs/PhoneNumberValidateRequest.md"
|
|
248
250
|
- "./docs/PhoneNumberValidationResponse.md"
|
|
@@ -253,6 +255,8 @@ files:
|
|
|
253
255
|
- "./docs/TextInputApi.md"
|
|
254
256
|
- "./docs/Timezone.md"
|
|
255
257
|
- "./docs/TorNodeResponse.md"
|
|
258
|
+
- "./docs/UrlSafetyCheckRequestFull.md"
|
|
259
|
+
- "./docs/UrlSafetyCheckResponseFull.md"
|
|
256
260
|
- "./docs/UrlSsrfRequestBatch.md"
|
|
257
261
|
- "./docs/UrlSsrfRequestFull.md"
|
|
258
262
|
- "./docs/UrlSsrfResponseBatch.md"
|
|
@@ -333,6 +337,8 @@ files:
|
|
|
333
337
|
- "./lib/cloudmersive-validate-api-client/models/normalize_address_response.rb"
|
|
334
338
|
- "./lib/cloudmersive-validate-api-client/models/parse_address_request.rb"
|
|
335
339
|
- "./lib/cloudmersive-validate-api-client/models/parse_address_response.rb"
|
|
340
|
+
- "./lib/cloudmersive-validate-api-client/models/phishing_check_request.rb"
|
|
341
|
+
- "./lib/cloudmersive-validate-api-client/models/phishing_check_response.rb"
|
|
336
342
|
- "./lib/cloudmersive-validate-api-client/models/phone_number_validate_request.rb"
|
|
337
343
|
- "./lib/cloudmersive-validate-api-client/models/phone_number_validation_response.rb"
|
|
338
344
|
- "./lib/cloudmersive-validate-api-client/models/public_holiday_occurrence.rb"
|
|
@@ -341,6 +347,8 @@ files:
|
|
|
341
347
|
- "./lib/cloudmersive-validate-api-client/models/reverse_geocode_address_response.rb"
|
|
342
348
|
- "./lib/cloudmersive-validate-api-client/models/timezone.rb"
|
|
343
349
|
- "./lib/cloudmersive-validate-api-client/models/tor_node_response.rb"
|
|
350
|
+
- "./lib/cloudmersive-validate-api-client/models/url_safety_check_request_full.rb"
|
|
351
|
+
- "./lib/cloudmersive-validate-api-client/models/url_safety_check_response_full.rb"
|
|
344
352
|
- "./lib/cloudmersive-validate-api-client/models/url_ssrf_request_batch.rb"
|
|
345
353
|
- "./lib/cloudmersive-validate-api-client/models/url_ssrf_request_full.rb"
|
|
346
354
|
- "./lib/cloudmersive-validate-api-client/models/url_ssrf_response_batch.rb"
|
|
@@ -417,6 +425,8 @@ files:
|
|
|
417
425
|
- "./spec/models/normalize_address_response_spec.rb"
|
|
418
426
|
- "./spec/models/parse_address_request_spec.rb"
|
|
419
427
|
- "./spec/models/parse_address_response_spec.rb"
|
|
428
|
+
- "./spec/models/phishing_check_request_spec.rb"
|
|
429
|
+
- "./spec/models/phishing_check_response_spec.rb"
|
|
420
430
|
- "./spec/models/phone_number_validate_request_spec.rb"
|
|
421
431
|
- "./spec/models/phone_number_validation_response_spec.rb"
|
|
422
432
|
- "./spec/models/public_holiday_occurrence_spec.rb"
|
|
@@ -425,6 +435,8 @@ files:
|
|
|
425
435
|
- "./spec/models/reverse_geocode_address_response_spec.rb"
|
|
426
436
|
- "./spec/models/timezone_spec.rb"
|
|
427
437
|
- "./spec/models/tor_node_response_spec.rb"
|
|
438
|
+
- "./spec/models/url_safety_check_request_full_spec.rb"
|
|
439
|
+
- "./spec/models/url_safety_check_response_full_spec.rb"
|
|
428
440
|
- "./spec/models/url_ssrf_request_batch_spec.rb"
|
|
429
441
|
- "./spec/models/url_ssrf_request_full_spec.rb"
|
|
430
442
|
- "./spec/models/url_ssrf_response_batch_spec.rb"
|