cloudmersive-validate-api-client 2.2.2 → 2.2.5
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 +12 -5
- data/docs/DomainApi.md +59 -4
- data/docs/EmailLead.md +8 -0
- data/docs/HtmlSsrfDetectionResult.md +9 -0
- data/docs/LeadEnrichmentApi.md +53 -0
- data/docs/TextInputApi.md +55 -0
- data/docs/UrlHtmlSsrfRequestFull.md +8 -0
- data/docs/UrlHtmlSsrfResponseFull.md +9 -0
- data/lib/cloudmersive-validate-api-client/api/domain_api.rb +58 -4
- data/lib/cloudmersive-validate-api-client/api/lead_enrichment_api.rb +52 -0
- data/lib/cloudmersive-validate-api-client/api/text_input_api.rb +54 -0
- data/lib/cloudmersive-validate-api-client/models/email_lead.rb +184 -0
- data/lib/cloudmersive-validate-api-client/models/html_ssrf_detection_result.rb +196 -0
- data/lib/cloudmersive-validate-api-client/models/url_html_ssrf_request_full.rb +186 -0
- data/lib/cloudmersive-validate-api-client/models/url_html_ssrf_response_full.rb +196 -0
- data/lib/cloudmersive-validate-api-client/version.rb +1 -1
- data/lib/cloudmersive-validate-api-client.rb +4 -0
- data/spec/api/domain_api_spec.rb +14 -2
- data/spec/api/lead_enrichment_api_spec.rb +11 -0
- data/spec/api/text_input_api_spec.rb +12 -0
- data/spec/models/email_lead_spec.rb +41 -0
- data/spec/models/html_ssrf_detection_result_spec.rb +47 -0
- data/spec/models/url_html_ssrf_request_full_spec.rb +41 -0
- data/spec/models/url_html_ssrf_response_full_spec.rb +47 -0
- metadata +14 -2
|
@@ -0,0 +1,196 @@
|
|
|
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 'date'
|
|
14
|
+
|
|
15
|
+
module CloudmersiveValidateApiClient
|
|
16
|
+
# Result of checking a URL for HTML-embedded SSRF threats
|
|
17
|
+
class UrlHtmlSsrfResponseFull
|
|
18
|
+
# True if the URL is clean, false if it is at risk of containing an SSRF threat or attack
|
|
19
|
+
attr_accessor :clean_url
|
|
20
|
+
|
|
21
|
+
# HTTP response code from the URL
|
|
22
|
+
attr_accessor :http_response_code
|
|
23
|
+
|
|
24
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
25
|
+
def self.attribute_map
|
|
26
|
+
{
|
|
27
|
+
:'clean_url' => :'CleanURL',
|
|
28
|
+
:'http_response_code' => :'HttpResponseCode'
|
|
29
|
+
}
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
# Attribute type mapping.
|
|
33
|
+
def self.swagger_types
|
|
34
|
+
{
|
|
35
|
+
:'clean_url' => :'BOOLEAN',
|
|
36
|
+
:'http_response_code' => :'Integer'
|
|
37
|
+
}
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
# Initializes the object
|
|
41
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
42
|
+
def initialize(attributes = {})
|
|
43
|
+
return unless attributes.is_a?(Hash)
|
|
44
|
+
|
|
45
|
+
# convert string to symbol for hash key
|
|
46
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
|
47
|
+
|
|
48
|
+
if attributes.has_key?(:'CleanURL')
|
|
49
|
+
self.clean_url = attributes[:'CleanURL']
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
if attributes.has_key?(:'HttpResponseCode')
|
|
53
|
+
self.http_response_code = attributes[:'HttpResponseCode']
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
58
|
+
# @return Array for valid properties with the reasons
|
|
59
|
+
def list_invalid_properties
|
|
60
|
+
invalid_properties = Array.new
|
|
61
|
+
invalid_properties
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# Check to see if the all the properties in the model are valid
|
|
65
|
+
# @return true if the model is valid
|
|
66
|
+
def valid?
|
|
67
|
+
true
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Checks equality by comparing each attribute.
|
|
71
|
+
# @param [Object] Object to be compared
|
|
72
|
+
def ==(o)
|
|
73
|
+
return true if self.equal?(o)
|
|
74
|
+
self.class == o.class &&
|
|
75
|
+
clean_url == o.clean_url &&
|
|
76
|
+
http_response_code == o.http_response_code
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
# @see the `==` method
|
|
80
|
+
# @param [Object] Object to be compared
|
|
81
|
+
def eql?(o)
|
|
82
|
+
self == o
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
# Calculates hash code according to all attributes.
|
|
86
|
+
# @return [Fixnum] Hash code
|
|
87
|
+
def hash
|
|
88
|
+
[clean_url, http_response_code].hash
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Builds the object from hash
|
|
92
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
93
|
+
# @return [Object] Returns the model itself
|
|
94
|
+
def build_from_hash(attributes)
|
|
95
|
+
return nil unless attributes.is_a?(Hash)
|
|
96
|
+
self.class.swagger_types.each_pair do |key, type|
|
|
97
|
+
if type =~ /\AArray<(.*)>/i
|
|
98
|
+
# check to ensure the input is an array given that the attribute
|
|
99
|
+
# is documented as an array but the input is not
|
|
100
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
|
101
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
|
102
|
+
end
|
|
103
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
|
104
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
|
105
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
self
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
# Deserializes the data based on type
|
|
112
|
+
# @param string type Data type
|
|
113
|
+
# @param string value Value to be deserialized
|
|
114
|
+
# @return [Object] Deserialized data
|
|
115
|
+
def _deserialize(type, value)
|
|
116
|
+
case type.to_sym
|
|
117
|
+
when :DateTime
|
|
118
|
+
DateTime.parse(value)
|
|
119
|
+
when :Date
|
|
120
|
+
Date.parse(value)
|
|
121
|
+
when :String
|
|
122
|
+
value.to_s
|
|
123
|
+
when :Integer
|
|
124
|
+
value.to_i
|
|
125
|
+
when :Float
|
|
126
|
+
value.to_f
|
|
127
|
+
when :BOOLEAN
|
|
128
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
|
129
|
+
true
|
|
130
|
+
else
|
|
131
|
+
false
|
|
132
|
+
end
|
|
133
|
+
when :Object
|
|
134
|
+
# generic object (usually a Hash), return directly
|
|
135
|
+
value
|
|
136
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
|
137
|
+
inner_type = Regexp.last_match[:inner_type]
|
|
138
|
+
value.map { |v| _deserialize(inner_type, v) }
|
|
139
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
|
140
|
+
k_type = Regexp.last_match[:k_type]
|
|
141
|
+
v_type = Regexp.last_match[:v_type]
|
|
142
|
+
{}.tap do |hash|
|
|
143
|
+
value.each do |k, v|
|
|
144
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
|
145
|
+
end
|
|
146
|
+
end
|
|
147
|
+
else # model
|
|
148
|
+
temp_model = CloudmersiveValidateApiClient.const_get(type).new
|
|
149
|
+
temp_model.build_from_hash(value)
|
|
150
|
+
end
|
|
151
|
+
end
|
|
152
|
+
|
|
153
|
+
# Returns the string representation of the object
|
|
154
|
+
# @return [String] String presentation of the object
|
|
155
|
+
def to_s
|
|
156
|
+
to_hash.to_s
|
|
157
|
+
end
|
|
158
|
+
|
|
159
|
+
# to_body is an alias to to_hash (backward compatibility)
|
|
160
|
+
# @return [Hash] Returns the object in the form of hash
|
|
161
|
+
def to_body
|
|
162
|
+
to_hash
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# Returns the object in the form of hash
|
|
166
|
+
# @return [Hash] Returns the object in the form of hash
|
|
167
|
+
def to_hash
|
|
168
|
+
hash = {}
|
|
169
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
170
|
+
value = self.send(attr)
|
|
171
|
+
next if value.nil?
|
|
172
|
+
hash[param] = _to_hash(value)
|
|
173
|
+
end
|
|
174
|
+
hash
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Outputs non-array value in the form of hash
|
|
178
|
+
# For object, use to_hash. Otherwise, just return the value
|
|
179
|
+
# @param [Object] value Any valid value
|
|
180
|
+
# @return [Hash] Returns the value in the form of hash
|
|
181
|
+
def _to_hash(value)
|
|
182
|
+
if value.is_a?(Array)
|
|
183
|
+
value.compact.map { |v| _to_hash(v) }
|
|
184
|
+
elsif value.is_a?(Hash)
|
|
185
|
+
{}.tap do |hash|
|
|
186
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
|
187
|
+
end
|
|
188
|
+
elsif value.respond_to? :to_hash
|
|
189
|
+
value.to_hash
|
|
190
|
+
else
|
|
191
|
+
value
|
|
192
|
+
end
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
end
|
|
196
|
+
end
|
|
@@ -28,6 +28,7 @@ require 'cloudmersive-validate-api-client/models/date_time_now_result'
|
|
|
28
28
|
require 'cloudmersive-validate-api-client/models/date_time_standardized_parse_request'
|
|
29
29
|
require 'cloudmersive-validate-api-client/models/date_time_standardized_parse_response'
|
|
30
30
|
require 'cloudmersive-validate-api-client/models/domain_quality_response'
|
|
31
|
+
require 'cloudmersive-validate-api-client/models/email_lead'
|
|
31
32
|
require 'cloudmersive-validate-api-client/models/first_name_validation_request'
|
|
32
33
|
require 'cloudmersive-validate-api-client/models/first_name_validation_response'
|
|
33
34
|
require 'cloudmersive-validate-api-client/models/full_email_validation_response'
|
|
@@ -40,6 +41,7 @@ require 'cloudmersive-validate-api-client/models/get_gender_response'
|
|
|
40
41
|
require 'cloudmersive-validate-api-client/models/get_public_holidays_request'
|
|
41
42
|
require 'cloudmersive-validate-api-client/models/get_timezones_request'
|
|
42
43
|
require 'cloudmersive-validate-api-client/models/get_timezones_response'
|
|
44
|
+
require 'cloudmersive-validate-api-client/models/html_ssrf_detection_result'
|
|
43
45
|
require 'cloudmersive-validate-api-client/models/ip_intelligence_response'
|
|
44
46
|
require 'cloudmersive-validate-api-client/models/ip_reverse_dns_lookup_response'
|
|
45
47
|
require 'cloudmersive-validate-api-client/models/ip_threat_response'
|
|
@@ -65,6 +67,8 @@ require 'cloudmersive-validate-api-client/models/sql_injection_check_request_ite
|
|
|
65
67
|
require 'cloudmersive-validate-api-client/models/sql_injection_detection_result'
|
|
66
68
|
require 'cloudmersive-validate-api-client/models/timezone'
|
|
67
69
|
require 'cloudmersive-validate-api-client/models/tor_node_response'
|
|
70
|
+
require 'cloudmersive-validate-api-client/models/url_html_ssrf_request_full'
|
|
71
|
+
require 'cloudmersive-validate-api-client/models/url_html_ssrf_response_full'
|
|
68
72
|
require 'cloudmersive-validate-api-client/models/url_safety_check_request_full'
|
|
69
73
|
require 'cloudmersive-validate-api-client/models/url_safety_check_response_full'
|
|
70
74
|
require 'cloudmersive-validate-api-client/models/url_ssrf_request_batch'
|
data/spec/api/domain_api_spec.rb
CHANGED
|
@@ -57,8 +57,8 @@ describe 'DomainApi' do
|
|
|
57
57
|
end
|
|
58
58
|
|
|
59
59
|
# unit tests for domain_is_admin_path
|
|
60
|
-
# Check if path is a high-risk server administration path
|
|
61
|
-
# Check if the input URL or relative path is a server Administration Path, and therefore a risk for remote access.
|
|
60
|
+
# Check if path is a high-risk or vulnerable server administration path
|
|
61
|
+
# Check if the input URL or relative path is a server Administration Path, and therefore a risk or vulnerability for remote access.
|
|
62
62
|
# @param value URL or relative path to check, e.g. \"/admin/login\". The input is a string so be sure to enclose it in double-quotes.
|
|
63
63
|
# @param [Hash] opts the optional parameters
|
|
64
64
|
# @return [IsAdminPathResponse]
|
|
@@ -152,6 +152,18 @@ describe 'DomainApi' do
|
|
|
152
152
|
end
|
|
153
153
|
end
|
|
154
154
|
|
|
155
|
+
# unit tests for domain_url_html_ssrf_check
|
|
156
|
+
# Check a URL for HTML embedded SSRF threats
|
|
157
|
+
# Checks if an input URL HTML is at risk of containing one or more embedded SSRF (Server-side request forgery) threats or attacks.
|
|
158
|
+
# @param request Input URL request
|
|
159
|
+
# @param [Hash] opts the optional parameters
|
|
160
|
+
# @return [UrlHtmlSsrfResponseFull]
|
|
161
|
+
describe 'domain_url_html_ssrf_check test' do
|
|
162
|
+
it 'should work' do
|
|
163
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
164
|
+
end
|
|
165
|
+
end
|
|
166
|
+
|
|
155
167
|
# unit tests for domain_url_syntax_only
|
|
156
168
|
# Validate a URL syntactically
|
|
157
169
|
# Validate whether a URL is syntactically valid (does not check endpoint for validity). Accepts various types of input and produces a well-formed URL as output.
|
|
@@ -43,4 +43,15 @@ describe 'LeadEnrichmentApi' do
|
|
|
43
43
|
end
|
|
44
44
|
end
|
|
45
45
|
|
|
46
|
+
# unit tests for lead_enrichment_get_company_information
|
|
47
|
+
# Get company information from email address
|
|
48
|
+
# @param request Input email address lead
|
|
49
|
+
# @param [Hash] opts the optional parameters
|
|
50
|
+
# @return [LeadEnrichmentResponse]
|
|
51
|
+
describe 'lead_enrichment_get_company_information test' do
|
|
52
|
+
it 'should work' do
|
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
|
|
46
57
|
end
|
|
@@ -32,6 +32,18 @@ describe 'TextInputApi' do
|
|
|
32
32
|
end
|
|
33
33
|
end
|
|
34
34
|
|
|
35
|
+
# unit tests for text_input_check_html_ssrf
|
|
36
|
+
# Protect html input from Server-side Request Forgery (SSRF) attacks
|
|
37
|
+
# Detects SSRF (Server-side request forgery) attacks and unsafe URL attacks from HTML text input, where attackers can attempt to access unsafe local or network paths in the server environment by injecting them into HTML.
|
|
38
|
+
# @param value User-facing HTML input.
|
|
39
|
+
# @param [Hash] opts the optional parameters
|
|
40
|
+
# @return [HtmlSsrfDetectionResult]
|
|
41
|
+
describe 'text_input_check_html_ssrf test' 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
|
+
|
|
35
47
|
# unit tests for text_input_check_sql_injection
|
|
36
48
|
# Check text input for SQL Injection (SQLI) attacks
|
|
37
49
|
# Detects SQL Injection (SQLI) attacks from text input.
|
|
@@ -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::EmailLead
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'EmailLead' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveValidateApiClient::EmailLead.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of EmailLead' do
|
|
31
|
+
it 'should create an instance of EmailLead' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::EmailLead)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "email_address"' 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::HtmlSsrfDetectionResult
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'HtmlSsrfDetectionResult' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveValidateApiClient::HtmlSsrfDetectionResult.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of HtmlSsrfDetectionResult' do
|
|
31
|
+
it 'should create an instance of HtmlSsrfDetectionResult' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::HtmlSsrfDetectionResult)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
describe 'test attribute "successful"' 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 "contained_threats"' 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::UrlHtmlSsrfRequestFull
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'UrlHtmlSsrfRequestFull' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveValidateApiClient::UrlHtmlSsrfRequestFull.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of UrlHtmlSsrfRequestFull' do
|
|
31
|
+
it 'should create an instance of UrlHtmlSsrfRequestFull' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::UrlHtmlSsrfRequestFull)
|
|
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::UrlHtmlSsrfResponseFull
|
|
18
|
+
# Automatically generated by swagger-codegen (github.com/swagger-api/swagger-codegen)
|
|
19
|
+
# Please update as you see appropriate
|
|
20
|
+
describe 'UrlHtmlSsrfResponseFull' do
|
|
21
|
+
before do
|
|
22
|
+
# run before each test
|
|
23
|
+
@instance = CloudmersiveValidateApiClient::UrlHtmlSsrfResponseFull.new
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
after do
|
|
27
|
+
# run after each test
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
describe 'test an instance of UrlHtmlSsrfResponseFull' do
|
|
31
|
+
it 'should create an instance of UrlHtmlSsrfResponseFull' do
|
|
32
|
+
expect(@instance).to be_instance_of(CloudmersiveValidateApiClient::UrlHtmlSsrfResponseFull)
|
|
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 "http_response_code"' 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.2.
|
|
4
|
+
version: 2.2.5
|
|
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: 2022-05-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: typhoeus
|
|
@@ -218,6 +218,7 @@ files:
|
|
|
218
218
|
- "./docs/DomainApi.md"
|
|
219
219
|
- "./docs/DomainQualityResponse.md"
|
|
220
220
|
- "./docs/EmailApi.md"
|
|
221
|
+
- "./docs/EmailLead.md"
|
|
221
222
|
- "./docs/FirstNameValidationRequest.md"
|
|
222
223
|
- "./docs/FirstNameValidationResponse.md"
|
|
223
224
|
- "./docs/FullEmailValidationResponse.md"
|
|
@@ -230,6 +231,7 @@ files:
|
|
|
230
231
|
- "./docs/GetPublicHolidaysRequest.md"
|
|
231
232
|
- "./docs/GetTimezonesRequest.md"
|
|
232
233
|
- "./docs/GetTimezonesResponse.md"
|
|
234
|
+
- "./docs/HtmlSsrfDetectionResult.md"
|
|
233
235
|
- "./docs/IPAddressApi.md"
|
|
234
236
|
- "./docs/IPIntelligenceResponse.md"
|
|
235
237
|
- "./docs/IPReverseDNSLookupResponse.md"
|
|
@@ -260,6 +262,8 @@ files:
|
|
|
260
262
|
- "./docs/TextInputApi.md"
|
|
261
263
|
- "./docs/Timezone.md"
|
|
262
264
|
- "./docs/TorNodeResponse.md"
|
|
265
|
+
- "./docs/UrlHtmlSsrfRequestFull.md"
|
|
266
|
+
- "./docs/UrlHtmlSsrfResponseFull.md"
|
|
263
267
|
- "./docs/UrlSafetyCheckRequestFull.md"
|
|
264
268
|
- "./docs/UrlSafetyCheckResponseFull.md"
|
|
265
269
|
- "./docs/UrlSsrfRequestBatch.md"
|
|
@@ -324,6 +328,7 @@ files:
|
|
|
324
328
|
- "./lib/cloudmersive-validate-api-client/models/date_time_standardized_parse_request.rb"
|
|
325
329
|
- "./lib/cloudmersive-validate-api-client/models/date_time_standardized_parse_response.rb"
|
|
326
330
|
- "./lib/cloudmersive-validate-api-client/models/domain_quality_response.rb"
|
|
331
|
+
- "./lib/cloudmersive-validate-api-client/models/email_lead.rb"
|
|
327
332
|
- "./lib/cloudmersive-validate-api-client/models/first_name_validation_request.rb"
|
|
328
333
|
- "./lib/cloudmersive-validate-api-client/models/first_name_validation_response.rb"
|
|
329
334
|
- "./lib/cloudmersive-validate-api-client/models/full_email_validation_response.rb"
|
|
@@ -336,6 +341,7 @@ files:
|
|
|
336
341
|
- "./lib/cloudmersive-validate-api-client/models/get_public_holidays_request.rb"
|
|
337
342
|
- "./lib/cloudmersive-validate-api-client/models/get_timezones_request.rb"
|
|
338
343
|
- "./lib/cloudmersive-validate-api-client/models/get_timezones_response.rb"
|
|
344
|
+
- "./lib/cloudmersive-validate-api-client/models/html_ssrf_detection_result.rb"
|
|
339
345
|
- "./lib/cloudmersive-validate-api-client/models/ip_intelligence_response.rb"
|
|
340
346
|
- "./lib/cloudmersive-validate-api-client/models/ip_reverse_dns_lookup_response.rb"
|
|
341
347
|
- "./lib/cloudmersive-validate-api-client/models/ip_threat_response.rb"
|
|
@@ -361,6 +367,8 @@ files:
|
|
|
361
367
|
- "./lib/cloudmersive-validate-api-client/models/sql_injection_detection_result.rb"
|
|
362
368
|
- "./lib/cloudmersive-validate-api-client/models/timezone.rb"
|
|
363
369
|
- "./lib/cloudmersive-validate-api-client/models/tor_node_response.rb"
|
|
370
|
+
- "./lib/cloudmersive-validate-api-client/models/url_html_ssrf_request_full.rb"
|
|
371
|
+
- "./lib/cloudmersive-validate-api-client/models/url_html_ssrf_response_full.rb"
|
|
364
372
|
- "./lib/cloudmersive-validate-api-client/models/url_safety_check_request_full.rb"
|
|
365
373
|
- "./lib/cloudmersive-validate-api-client/models/url_safety_check_response_full.rb"
|
|
366
374
|
- "./lib/cloudmersive-validate-api-client/models/url_ssrf_request_batch.rb"
|
|
@@ -421,6 +429,7 @@ files:
|
|
|
421
429
|
- "./spec/models/date_time_standardized_parse_request_spec.rb"
|
|
422
430
|
- "./spec/models/date_time_standardized_parse_response_spec.rb"
|
|
423
431
|
- "./spec/models/domain_quality_response_spec.rb"
|
|
432
|
+
- "./spec/models/email_lead_spec.rb"
|
|
424
433
|
- "./spec/models/first_name_validation_request_spec.rb"
|
|
425
434
|
- "./spec/models/first_name_validation_response_spec.rb"
|
|
426
435
|
- "./spec/models/full_email_validation_response_spec.rb"
|
|
@@ -433,6 +442,7 @@ files:
|
|
|
433
442
|
- "./spec/models/get_public_holidays_request_spec.rb"
|
|
434
443
|
- "./spec/models/get_timezones_request_spec.rb"
|
|
435
444
|
- "./spec/models/get_timezones_response_spec.rb"
|
|
445
|
+
- "./spec/models/html_ssrf_detection_result_spec.rb"
|
|
436
446
|
- "./spec/models/ip_intelligence_response_spec.rb"
|
|
437
447
|
- "./spec/models/ip_reverse_dns_lookup_response_spec.rb"
|
|
438
448
|
- "./spec/models/ip_threat_response_spec.rb"
|
|
@@ -458,6 +468,8 @@ files:
|
|
|
458
468
|
- "./spec/models/sql_injection_detection_result_spec.rb"
|
|
459
469
|
- "./spec/models/timezone_spec.rb"
|
|
460
470
|
- "./spec/models/tor_node_response_spec.rb"
|
|
471
|
+
- "./spec/models/url_html_ssrf_request_full_spec.rb"
|
|
472
|
+
- "./spec/models/url_html_ssrf_response_full_spec.rb"
|
|
461
473
|
- "./spec/models/url_safety_check_request_full_spec.rb"
|
|
462
474
|
- "./spec/models/url_safety_check_response_full_spec.rb"
|
|
463
475
|
- "./spec/models/url_ssrf_request_batch_spec.rb"
|