internetdata 2.9.1 → 2.10.0
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 +146 -9
- data/lib/internetdata/api/database_v2_api.rb +2 -2
- data/lib/internetdata/api_client.rb +2 -2
- data/lib/internetdata/api_error.rb +2 -2
- data/lib/internetdata/api_model_base.rb +2 -2
- data/lib/internetdata/asn_result.rb +107 -0
- data/lib/internetdata/bogon.rb +87 -0
- data/lib/internetdata/bogons.rb +93 -0
- data/lib/internetdata/cache.rb +35 -0
- data/lib/internetdata/client.rb +388 -16
- data/lib/internetdata/configuration.rb +23 -2
- data/lib/internetdata/domain_result.rb +124 -0
- data/lib/internetdata/errors.rb +29 -6
- data/lib/internetdata/models/abuse_contact.rb +236 -0
- data/lib/internetdata/models/asn.rb +294 -0
- data/lib/internetdata/models/asn_lookup_response.rb +405 -0
- data/lib/internetdata/models/asn_prefix.rb +329 -0
- data/lib/internetdata/models/batch_lookup_error.rb +192 -0
- data/lib/internetdata/models/bit_torrent_detail.rb +410 -0
- data/lib/internetdata/models/carrier_detail.rb +273 -0
- data/lib/internetdata/models/class_detail.rb +246 -0
- data/lib/internetdata/models/client_registration.rb +2 -2
- data/lib/internetdata/models/company.rb +213 -0
- data/lib/internetdata/models/database.rb +2 -2
- data/lib/internetdata/models/database_checksums_response.rb +2 -2
- data/lib/internetdata/models/database_format.rb +2 -2
- data/lib/internetdata/models/database_list.rb +2 -2
- data/lib/internetdata/models/database_metadata.rb +2 -2
- data/lib/internetdata/models/database_metadata_column.rb +2 -2
- data/lib/internetdata/models/database_version.rb +2 -2
- data/lib/internetdata/models/db_checksums.rb +2 -2
- data/lib/internetdata/models/device_authorization.rb +2 -2
- data/lib/internetdata/models/disposable_detail.rb +248 -0
- data/lib/internetdata/models/dns_address_record.rb +192 -0
- data/lib/internetdata/models/dns_cname_record.rb +192 -0
- data/lib/internetdata/models/dns_mx_record.rb +219 -0
- data/lib/internetdata/models/dns_ns_record.rb +192 -0
- data/lib/internetdata/models/dns_resolver_detail.rb +300 -0
- data/lib/internetdata/models/domain_dns.rb +279 -0
- data/lib/internetdata/models/domain_ip_range.rb +219 -0
- data/lib/internetdata/models/domain_ip_ranges.rb +276 -0
- data/lib/internetdata/models/domain_lookup_response.rb +376 -0
- data/lib/internetdata/models/download.rb +2 -2
- data/lib/internetdata/models/download_list.rb +2 -2
- data/lib/internetdata/models/entitlement.rb +243 -0
- data/lib/internetdata/models/entitlement_apikey.rb +207 -0
- data/lib/internetdata/models/entitlement_plan.rb +216 -0
- data/lib/internetdata/models/entitlement_usage.rb +259 -0
- data/lib/internetdata/models/error_envelope.rb +2 -2
- data/lib/internetdata/models/hosted_domains.rb +166 -0
- data/lib/internetdata/models/location.rb +509 -0
- data/lib/internetdata/models/lookup_response.rb +897 -0
- data/lib/internetdata/models/oauth_metadata.rb +2 -2
- data/lib/internetdata/models/proxy_detail.rb +327 -0
- data/lib/internetdata/models/pubproxy_detail.rb +329 -0
- data/lib/internetdata/models/rwhois.rb +301 -0
- data/lib/internetdata/models/satellite_detail.rb +327 -0
- data/lib/internetdata/models/smtp_detail.rb +273 -0
- data/lib/internetdata/models/ssh_detail.rb +300 -0
- data/lib/internetdata/models/standing.rb +2 -2
- data/lib/internetdata/models/token_response.rb +2 -2
- data/lib/internetdata/models/web_detail.rb +516 -0
- data/lib/internetdata/models/whois.rb +382 -0
- data/lib/internetdata/oauth_api.rb +12 -5
- data/lib/internetdata/result.rb +431 -0
- data/lib/internetdata/transport.rb +215 -27
- data/lib/internetdata/version.rb +1 -1
- data/lib/internetdata.rb +17 -2
- metadata +58 -3
|
@@ -0,0 +1,273 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#InternetData API
|
|
3
|
+
|
|
4
|
+
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2026.11.13
|
|
7
|
+
Contact: support@internetdata.io
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module InternetData
|
|
17
|
+
class SmtpDetail < ApiModelBase
|
|
18
|
+
# The port the server answered on.
|
|
19
|
+
attr_accessor :port
|
|
20
|
+
|
|
21
|
+
# Its banner.
|
|
22
|
+
attr_accessor :banner
|
|
23
|
+
|
|
24
|
+
# A session was set up.
|
|
25
|
+
attr_accessor :session_ok
|
|
26
|
+
|
|
27
|
+
# The first day it answered.
|
|
28
|
+
attr_accessor :first_seen
|
|
29
|
+
|
|
30
|
+
# The last day it did.
|
|
31
|
+
attr_accessor :last_seen
|
|
32
|
+
|
|
33
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
34
|
+
def self.attribute_map
|
|
35
|
+
{
|
|
36
|
+
:'port' => :'port',
|
|
37
|
+
:'banner' => :'banner',
|
|
38
|
+
:'session_ok' => :'session_ok',
|
|
39
|
+
:'first_seen' => :'first_seen',
|
|
40
|
+
:'last_seen' => :'last_seen'
|
|
41
|
+
}
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Returns attribute mapping this model knows about
|
|
45
|
+
def self.acceptable_attribute_map
|
|
46
|
+
attribute_map
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Returns all the JSON keys this model knows about
|
|
50
|
+
def self.acceptable_attributes
|
|
51
|
+
acceptable_attribute_map.values
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Attribute type mapping.
|
|
55
|
+
def self.openapi_types
|
|
56
|
+
{
|
|
57
|
+
:'port' => :'Integer',
|
|
58
|
+
:'banner' => :'String',
|
|
59
|
+
:'session_ok' => :'Boolean',
|
|
60
|
+
:'first_seen' => :'String',
|
|
61
|
+
:'last_seen' => :'String'
|
|
62
|
+
}
|
|
63
|
+
end
|
|
64
|
+
|
|
65
|
+
# List of attributes with nullable: true
|
|
66
|
+
def self.openapi_nullable
|
|
67
|
+
Set.new([
|
|
68
|
+
])
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
# Initializes the object
|
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
73
|
+
def initialize(attributes = {})
|
|
74
|
+
if (!attributes.is_a?(Hash))
|
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `InternetData::SmtpDetail` initialize method"
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
79
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
80
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
81
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
82
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `InternetData::SmtpDetail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
83
|
+
end
|
|
84
|
+
h[k.to_sym] = v
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
if attributes.key?(:'port')
|
|
88
|
+
self.port = attributes[:'port']
|
|
89
|
+
else
|
|
90
|
+
self.port = nil
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
if attributes.key?(:'banner')
|
|
94
|
+
self.banner = attributes[:'banner']
|
|
95
|
+
else
|
|
96
|
+
self.banner = nil
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
if attributes.key?(:'session_ok')
|
|
100
|
+
self.session_ok = attributes[:'session_ok']
|
|
101
|
+
else
|
|
102
|
+
self.session_ok = nil
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
if attributes.key?(:'first_seen')
|
|
106
|
+
self.first_seen = attributes[:'first_seen']
|
|
107
|
+
else
|
|
108
|
+
self.first_seen = nil
|
|
109
|
+
end
|
|
110
|
+
|
|
111
|
+
if attributes.key?(:'last_seen')
|
|
112
|
+
self.last_seen = attributes[:'last_seen']
|
|
113
|
+
else
|
|
114
|
+
self.last_seen = nil
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
|
|
118
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
119
|
+
# @return Array for valid properties with the reasons
|
|
120
|
+
def list_invalid_properties
|
|
121
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
122
|
+
invalid_properties = Array.new
|
|
123
|
+
if @port.nil?
|
|
124
|
+
invalid_properties.push('invalid value for "port", port cannot be nil.')
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
if @banner.nil?
|
|
128
|
+
invalid_properties.push('invalid value for "banner", banner cannot be nil.')
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
if @session_ok.nil?
|
|
132
|
+
invalid_properties.push('invalid value for "session_ok", session_ok cannot be nil.')
|
|
133
|
+
end
|
|
134
|
+
|
|
135
|
+
if @first_seen.nil?
|
|
136
|
+
invalid_properties.push('invalid value for "first_seen", first_seen cannot be nil.')
|
|
137
|
+
end
|
|
138
|
+
|
|
139
|
+
if @last_seen.nil?
|
|
140
|
+
invalid_properties.push('invalid value for "last_seen", last_seen cannot be nil.')
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
invalid_properties
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
# Check to see if the all the properties in the model are valid
|
|
147
|
+
# @return true if the model is valid
|
|
148
|
+
def valid?
|
|
149
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
150
|
+
return false if @port.nil?
|
|
151
|
+
return false if @banner.nil?
|
|
152
|
+
return false if @session_ok.nil?
|
|
153
|
+
return false if @first_seen.nil?
|
|
154
|
+
return false if @last_seen.nil?
|
|
155
|
+
true
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
# Custom attribute writer method with validation
|
|
159
|
+
# @param [Object] port Value to be assigned
|
|
160
|
+
def port=(port)
|
|
161
|
+
if port.nil?
|
|
162
|
+
fail ArgumentError, 'port cannot be nil'
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
@port = port
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
# Custom attribute writer method with validation
|
|
169
|
+
# @param [Object] banner Value to be assigned
|
|
170
|
+
def banner=(banner)
|
|
171
|
+
if banner.nil?
|
|
172
|
+
fail ArgumentError, 'banner cannot be nil'
|
|
173
|
+
end
|
|
174
|
+
|
|
175
|
+
@banner = banner
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Custom attribute writer method with validation
|
|
179
|
+
# @param [Object] session_ok Value to be assigned
|
|
180
|
+
def session_ok=(session_ok)
|
|
181
|
+
if session_ok.nil?
|
|
182
|
+
fail ArgumentError, 'session_ok cannot be nil'
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
@session_ok = session_ok
|
|
186
|
+
end
|
|
187
|
+
|
|
188
|
+
# Custom attribute writer method with validation
|
|
189
|
+
# @param [Object] first_seen Value to be assigned
|
|
190
|
+
def first_seen=(first_seen)
|
|
191
|
+
if first_seen.nil?
|
|
192
|
+
fail ArgumentError, 'first_seen cannot be nil'
|
|
193
|
+
end
|
|
194
|
+
|
|
195
|
+
@first_seen = first_seen
|
|
196
|
+
end
|
|
197
|
+
|
|
198
|
+
# Custom attribute writer method with validation
|
|
199
|
+
# @param [Object] last_seen Value to be assigned
|
|
200
|
+
def last_seen=(last_seen)
|
|
201
|
+
if last_seen.nil?
|
|
202
|
+
fail ArgumentError, 'last_seen cannot be nil'
|
|
203
|
+
end
|
|
204
|
+
|
|
205
|
+
@last_seen = last_seen
|
|
206
|
+
end
|
|
207
|
+
|
|
208
|
+
# Checks equality by comparing each attribute.
|
|
209
|
+
# @param [Object] Object to be compared
|
|
210
|
+
def ==(o)
|
|
211
|
+
return true if self.equal?(o)
|
|
212
|
+
self.class == o.class &&
|
|
213
|
+
port == o.port &&
|
|
214
|
+
banner == o.banner &&
|
|
215
|
+
session_ok == o.session_ok &&
|
|
216
|
+
first_seen == o.first_seen &&
|
|
217
|
+
last_seen == o.last_seen
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# @see the `==` method
|
|
221
|
+
# @param [Object] Object to be compared
|
|
222
|
+
def eql?(o)
|
|
223
|
+
self == o
|
|
224
|
+
end
|
|
225
|
+
|
|
226
|
+
# Calculates hash code according to all attributes.
|
|
227
|
+
# @return [Integer] Hash code
|
|
228
|
+
def hash
|
|
229
|
+
[port, banner, session_ok, first_seen, last_seen].hash
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Builds the object from hash
|
|
233
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
234
|
+
# @return [Object] Returns the model itself
|
|
235
|
+
def self.build_from_hash(attributes)
|
|
236
|
+
return nil unless attributes.is_a?(Hash)
|
|
237
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
238
|
+
transformed_hash = {}
|
|
239
|
+
openapi_types.each_pair do |key, type|
|
|
240
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
241
|
+
transformed_hash["#{key}"] = nil
|
|
242
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
243
|
+
# check to ensure the input is an array given that the attribute
|
|
244
|
+
# is documented as an array but the input is not
|
|
245
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
246
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
247
|
+
end
|
|
248
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
249
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
250
|
+
end
|
|
251
|
+
end
|
|
252
|
+
new(transformed_hash)
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
# Returns the object in the form of hash
|
|
256
|
+
# @return [Hash] Returns the object in the form of hash
|
|
257
|
+
def to_hash
|
|
258
|
+
hash = {}
|
|
259
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
260
|
+
value = self.send(attr)
|
|
261
|
+
if value.nil?
|
|
262
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
263
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
264
|
+
end
|
|
265
|
+
|
|
266
|
+
hash[param] = _to_hash(value)
|
|
267
|
+
end
|
|
268
|
+
hash
|
|
269
|
+
end
|
|
270
|
+
|
|
271
|
+
end
|
|
272
|
+
|
|
273
|
+
end
|
|
@@ -0,0 +1,300 @@
|
|
|
1
|
+
=begin
|
|
2
|
+
#InternetData API
|
|
3
|
+
|
|
4
|
+
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 2026.11.13
|
|
7
|
+
Contact: support@internetdata.io
|
|
8
|
+
Generated by: https://openapi-generator.tech
|
|
9
|
+
Generator version: 7.25.0
|
|
10
|
+
|
|
11
|
+
=end
|
|
12
|
+
|
|
13
|
+
require 'date'
|
|
14
|
+
require 'time'
|
|
15
|
+
|
|
16
|
+
module InternetData
|
|
17
|
+
class SshDetail < ApiModelBase
|
|
18
|
+
# The port the server answered on.
|
|
19
|
+
attr_accessor :port
|
|
20
|
+
|
|
21
|
+
# Its banner.
|
|
22
|
+
attr_accessor :banner
|
|
23
|
+
|
|
24
|
+
# Its host key's fingerprint.
|
|
25
|
+
attr_accessor :host_key_fp
|
|
26
|
+
|
|
27
|
+
# A session was set up.
|
|
28
|
+
attr_accessor :session_ok
|
|
29
|
+
|
|
30
|
+
# The first day it answered.
|
|
31
|
+
attr_accessor :first_seen
|
|
32
|
+
|
|
33
|
+
# The last day it did.
|
|
34
|
+
attr_accessor :last_seen
|
|
35
|
+
|
|
36
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
37
|
+
def self.attribute_map
|
|
38
|
+
{
|
|
39
|
+
:'port' => :'port',
|
|
40
|
+
:'banner' => :'banner',
|
|
41
|
+
:'host_key_fp' => :'host_key_fp',
|
|
42
|
+
:'session_ok' => :'session_ok',
|
|
43
|
+
:'first_seen' => :'first_seen',
|
|
44
|
+
:'last_seen' => :'last_seen'
|
|
45
|
+
}
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Returns attribute mapping this model knows about
|
|
49
|
+
def self.acceptable_attribute_map
|
|
50
|
+
attribute_map
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# Returns all the JSON keys this model knows about
|
|
54
|
+
def self.acceptable_attributes
|
|
55
|
+
acceptable_attribute_map.values
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Attribute type mapping.
|
|
59
|
+
def self.openapi_types
|
|
60
|
+
{
|
|
61
|
+
:'port' => :'Integer',
|
|
62
|
+
:'banner' => :'String',
|
|
63
|
+
:'host_key_fp' => :'String',
|
|
64
|
+
:'session_ok' => :'Boolean',
|
|
65
|
+
:'first_seen' => :'String',
|
|
66
|
+
:'last_seen' => :'String'
|
|
67
|
+
}
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# List of attributes with nullable: true
|
|
71
|
+
def self.openapi_nullable
|
|
72
|
+
Set.new([
|
|
73
|
+
])
|
|
74
|
+
end
|
|
75
|
+
|
|
76
|
+
# Initializes the object
|
|
77
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
78
|
+
def initialize(attributes = {})
|
|
79
|
+
if (!attributes.is_a?(Hash))
|
|
80
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `InternetData::SshDetail` initialize method"
|
|
81
|
+
end
|
|
82
|
+
|
|
83
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
84
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
85
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
86
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
87
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `InternetData::SshDetail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
88
|
+
end
|
|
89
|
+
h[k.to_sym] = v
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
if attributes.key?(:'port')
|
|
93
|
+
self.port = attributes[:'port']
|
|
94
|
+
else
|
|
95
|
+
self.port = nil
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
if attributes.key?(:'banner')
|
|
99
|
+
self.banner = attributes[:'banner']
|
|
100
|
+
else
|
|
101
|
+
self.banner = nil
|
|
102
|
+
end
|
|
103
|
+
|
|
104
|
+
if attributes.key?(:'host_key_fp')
|
|
105
|
+
self.host_key_fp = attributes[:'host_key_fp']
|
|
106
|
+
else
|
|
107
|
+
self.host_key_fp = nil
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'session_ok')
|
|
111
|
+
self.session_ok = attributes[:'session_ok']
|
|
112
|
+
else
|
|
113
|
+
self.session_ok = nil
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
if attributes.key?(:'first_seen')
|
|
117
|
+
self.first_seen = attributes[:'first_seen']
|
|
118
|
+
else
|
|
119
|
+
self.first_seen = nil
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
if attributes.key?(:'last_seen')
|
|
123
|
+
self.last_seen = attributes[:'last_seen']
|
|
124
|
+
else
|
|
125
|
+
self.last_seen = nil
|
|
126
|
+
end
|
|
127
|
+
end
|
|
128
|
+
|
|
129
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
130
|
+
# @return Array for valid properties with the reasons
|
|
131
|
+
def list_invalid_properties
|
|
132
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
133
|
+
invalid_properties = Array.new
|
|
134
|
+
if @port.nil?
|
|
135
|
+
invalid_properties.push('invalid value for "port", port cannot be nil.')
|
|
136
|
+
end
|
|
137
|
+
|
|
138
|
+
if @banner.nil?
|
|
139
|
+
invalid_properties.push('invalid value for "banner", banner cannot be nil.')
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
if @host_key_fp.nil?
|
|
143
|
+
invalid_properties.push('invalid value for "host_key_fp", host_key_fp cannot be nil.')
|
|
144
|
+
end
|
|
145
|
+
|
|
146
|
+
if @session_ok.nil?
|
|
147
|
+
invalid_properties.push('invalid value for "session_ok", session_ok cannot be nil.')
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
if @first_seen.nil?
|
|
151
|
+
invalid_properties.push('invalid value for "first_seen", first_seen cannot be nil.')
|
|
152
|
+
end
|
|
153
|
+
|
|
154
|
+
if @last_seen.nil?
|
|
155
|
+
invalid_properties.push('invalid value for "last_seen", last_seen cannot be nil.')
|
|
156
|
+
end
|
|
157
|
+
|
|
158
|
+
invalid_properties
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
# Check to see if the all the properties in the model are valid
|
|
162
|
+
# @return true if the model is valid
|
|
163
|
+
def valid?
|
|
164
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
165
|
+
return false if @port.nil?
|
|
166
|
+
return false if @banner.nil?
|
|
167
|
+
return false if @host_key_fp.nil?
|
|
168
|
+
return false if @session_ok.nil?
|
|
169
|
+
return false if @first_seen.nil?
|
|
170
|
+
return false if @last_seen.nil?
|
|
171
|
+
true
|
|
172
|
+
end
|
|
173
|
+
|
|
174
|
+
# Custom attribute writer method with validation
|
|
175
|
+
# @param [Object] port Value to be assigned
|
|
176
|
+
def port=(port)
|
|
177
|
+
if port.nil?
|
|
178
|
+
fail ArgumentError, 'port cannot be nil'
|
|
179
|
+
end
|
|
180
|
+
|
|
181
|
+
@port = port
|
|
182
|
+
end
|
|
183
|
+
|
|
184
|
+
# Custom attribute writer method with validation
|
|
185
|
+
# @param [Object] banner Value to be assigned
|
|
186
|
+
def banner=(banner)
|
|
187
|
+
if banner.nil?
|
|
188
|
+
fail ArgumentError, 'banner cannot be nil'
|
|
189
|
+
end
|
|
190
|
+
|
|
191
|
+
@banner = banner
|
|
192
|
+
end
|
|
193
|
+
|
|
194
|
+
# Custom attribute writer method with validation
|
|
195
|
+
# @param [Object] host_key_fp Value to be assigned
|
|
196
|
+
def host_key_fp=(host_key_fp)
|
|
197
|
+
if host_key_fp.nil?
|
|
198
|
+
fail ArgumentError, 'host_key_fp cannot be nil'
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
@host_key_fp = host_key_fp
|
|
202
|
+
end
|
|
203
|
+
|
|
204
|
+
# Custom attribute writer method with validation
|
|
205
|
+
# @param [Object] session_ok Value to be assigned
|
|
206
|
+
def session_ok=(session_ok)
|
|
207
|
+
if session_ok.nil?
|
|
208
|
+
fail ArgumentError, 'session_ok cannot be nil'
|
|
209
|
+
end
|
|
210
|
+
|
|
211
|
+
@session_ok = session_ok
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# Custom attribute writer method with validation
|
|
215
|
+
# @param [Object] first_seen Value to be assigned
|
|
216
|
+
def first_seen=(first_seen)
|
|
217
|
+
if first_seen.nil?
|
|
218
|
+
fail ArgumentError, 'first_seen cannot be nil'
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
@first_seen = first_seen
|
|
222
|
+
end
|
|
223
|
+
|
|
224
|
+
# Custom attribute writer method with validation
|
|
225
|
+
# @param [Object] last_seen Value to be assigned
|
|
226
|
+
def last_seen=(last_seen)
|
|
227
|
+
if last_seen.nil?
|
|
228
|
+
fail ArgumentError, 'last_seen cannot be nil'
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
@last_seen = last_seen
|
|
232
|
+
end
|
|
233
|
+
|
|
234
|
+
# Checks equality by comparing each attribute.
|
|
235
|
+
# @param [Object] Object to be compared
|
|
236
|
+
def ==(o)
|
|
237
|
+
return true if self.equal?(o)
|
|
238
|
+
self.class == o.class &&
|
|
239
|
+
port == o.port &&
|
|
240
|
+
banner == o.banner &&
|
|
241
|
+
host_key_fp == o.host_key_fp &&
|
|
242
|
+
session_ok == o.session_ok &&
|
|
243
|
+
first_seen == o.first_seen &&
|
|
244
|
+
last_seen == o.last_seen
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
# @see the `==` method
|
|
248
|
+
# @param [Object] Object to be compared
|
|
249
|
+
def eql?(o)
|
|
250
|
+
self == o
|
|
251
|
+
end
|
|
252
|
+
|
|
253
|
+
# Calculates hash code according to all attributes.
|
|
254
|
+
# @return [Integer] Hash code
|
|
255
|
+
def hash
|
|
256
|
+
[port, banner, host_key_fp, session_ok, first_seen, last_seen].hash
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
# Builds the object from hash
|
|
260
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
261
|
+
# @return [Object] Returns the model itself
|
|
262
|
+
def self.build_from_hash(attributes)
|
|
263
|
+
return nil unless attributes.is_a?(Hash)
|
|
264
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
265
|
+
transformed_hash = {}
|
|
266
|
+
openapi_types.each_pair do |key, type|
|
|
267
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
268
|
+
transformed_hash["#{key}"] = nil
|
|
269
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
270
|
+
# check to ensure the input is an array given that the attribute
|
|
271
|
+
# is documented as an array but the input is not
|
|
272
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
273
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
274
|
+
end
|
|
275
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
276
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
277
|
+
end
|
|
278
|
+
end
|
|
279
|
+
new(transformed_hash)
|
|
280
|
+
end
|
|
281
|
+
|
|
282
|
+
# Returns the object in the form of hash
|
|
283
|
+
# @return [Hash] Returns the object in the form of hash
|
|
284
|
+
def to_hash
|
|
285
|
+
hash = {}
|
|
286
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
287
|
+
value = self.send(attr)
|
|
288
|
+
if value.nil?
|
|
289
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
290
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
291
|
+
end
|
|
292
|
+
|
|
293
|
+
hash[param] = _to_hash(value)
|
|
294
|
+
end
|
|
295
|
+
hash
|
|
296
|
+
end
|
|
297
|
+
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
end
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#InternetData API
|
|
3
3
|
|
|
4
|
-
#The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
4
|
+
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.13
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
=begin
|
|
2
2
|
#InternetData API
|
|
3
3
|
|
|
4
|
-
#The InternetData API: download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
4
|
+
#The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
|
|
5
5
|
|
|
6
|
-
The version of the OpenAPI document: 2026.11.
|
|
6
|
+
The version of the OpenAPI document: 2026.11.13
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|