vpndetection 5.17.1 → 5.18.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.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -7
  3. data/lib/vpndetection/api/account_wire_api.rb +2 -2
  4. data/lib/vpndetection/api/api_keys_wire_api.rb +2 -2
  5. data/lib/vpndetection/api/authorization_wire_api.rb +2 -2
  6. data/lib/vpndetection/api/database_wire_api.rb +2 -2
  7. data/lib/vpndetection/api/entitlement_wire_api.rb +2 -2
  8. data/lib/vpndetection/api/lookup_wire_api.rb +4 -4
  9. data/lib/vpndetection/api/organization_wire_api.rb +2 -2
  10. data/lib/vpndetection/api_client.rb +2 -2
  11. data/lib/vpndetection/api_error.rb +2 -2
  12. data/lib/vpndetection/api_model_base.rb +2 -2
  13. data/lib/vpndetection/bogon.rb +11 -2
  14. data/lib/vpndetection/cache.rb +31 -2
  15. data/lib/vpndetection/client.rb +4 -3
  16. data/lib/vpndetection/configuration.rb +2 -2
  17. data/lib/vpndetection/models/abuse_contact.rb +236 -0
  18. data/lib/vpndetection/models/account_create_apikey_request.rb +2 -2
  19. data/lib/vpndetection/models/account_created_apikey.rb +2 -2
  20. data/lib/vpndetection/models/account_org.rb +2 -2
  21. data/lib/vpndetection/models/account_org_ref.rb +2 -2
  22. data/lib/vpndetection/models/account_org_wrap.rb +2 -2
  23. data/lib/vpndetection/models/account_rc.rb +2 -2
  24. data/lib/vpndetection/models/account_revealed_apikey.rb +2 -2
  25. data/lib/vpndetection/models/account_user.rb +2 -2
  26. data/lib/vpndetection/models/apikey_detail.rb +2 -2
  27. data/lib/vpndetection/models/apikey_list.rb +2 -2
  28. data/lib/vpndetection/models/asn.rb +26 -6
  29. data/lib/vpndetection/models/batch_lookup_error.rb +2 -2
  30. data/lib/vpndetection/models/batch_lookup_request.rb +2 -2
  31. data/lib/vpndetection/models/batch_lookup_response.rb +2 -2
  32. data/lib/vpndetection/models/bit_torrent_detail.rb +241 -0
  33. data/lib/vpndetection/models/carrier_detail.rb +189 -0
  34. data/lib/vpndetection/models/class_detail.rb +2 -2
  35. data/lib/vpndetection/models/client_registration.rb +2 -2
  36. data/lib/vpndetection/models/client_registration_request.rb +2 -2
  37. data/lib/vpndetection/models/company.rb +213 -0
  38. data/lib/vpndetection/models/database.rb +2 -2
  39. data/lib/vpndetection/models/database_checksums_response.rb +2 -2
  40. data/lib/vpndetection/models/database_format.rb +2 -2
  41. data/lib/vpndetection/models/database_format_size.rb +2 -2
  42. data/lib/vpndetection/models/database_list.rb +2 -2
  43. data/lib/vpndetection/models/database_metadata.rb +2 -2
  44. data/lib/vpndetection/models/database_metadata_column.rb +2 -2
  45. data/lib/vpndetection/models/database_version.rb +2 -2
  46. data/lib/vpndetection/models/db_checksums.rb +2 -2
  47. data/lib/vpndetection/models/device_authorization.rb +2 -2
  48. data/lib/vpndetection/models/dns_resolver_detail.rb +199 -0
  49. data/lib/vpndetection/models/download.rb +2 -2
  50. data/lib/vpndetection/models/download_list.rb +2 -2
  51. data/lib/vpndetection/models/entitlement.rb +2 -2
  52. data/lib/vpndetection/models/entitlement_apikey.rb +2 -2
  53. data/lib/vpndetection/models/entitlement_error.rb +2 -2
  54. data/lib/vpndetection/models/entitlement_plan.rb +3 -3
  55. data/lib/vpndetection/models/entitlement_usage.rb +2 -2
  56. data/lib/vpndetection/models/error_envelope.rb +2 -2
  57. data/lib/vpndetection/models/identity.rb +2 -2
  58. data/lib/vpndetection/models/location.rb +107 -7
  59. data/lib/vpndetection/models/lookup_error.rb +2 -2
  60. data/lib/vpndetection/models/lookup_response.rb +185 -5
  61. data/lib/vpndetection/models/oauth_error.rb +2 -2
  62. data/lib/vpndetection/models/oauth_metadata.rb +2 -2
  63. data/lib/vpndetection/models/proxy_detail.rb +2 -2
  64. data/lib/vpndetection/models/pubproxy_detail.rb +2 -2
  65. data/lib/vpndetection/models/satellite_detail.rb +209 -0
  66. data/lib/vpndetection/models/smtp_detail.rb +189 -0
  67. data/lib/vpndetection/models/ssh_detail.rb +199 -0
  68. data/lib/vpndetection/models/standing.rb +2 -2
  69. data/lib/vpndetection/models/token_response.rb +2 -2
  70. data/lib/vpndetection/models/vpn_detail.rb +2 -2
  71. data/lib/vpndetection/models/web_detail.rb +517 -0
  72. data/lib/vpndetection/result.rb +182 -12
  73. data/lib/vpndetection/transport.rb +10 -0
  74. data/lib/vpndetection/version.rb +1 -1
  75. metadata +10 -1
@@ -0,0 +1,209 @@
1
+ =begin
2
+ #VPNDetection API
3
+
4
+ #The VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
+
6
+ The version of the OpenAPI document: 2026.11.20
7
+ Contact: support@vpndetection.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 VPNDetection
17
+ # The satellite operator whose space the address is, from our Satellite IP database. Every key is present when the object is populated; the object is `{}` when `is_satellite` is false.
18
+ class SatelliteDetail < ApiModelBase
19
+ # The operator's ID in Satellite IP Provider.
20
+ attr_accessor :provider
21
+
22
+ # The operator's name.
23
+ attr_accessor :provider_name
24
+
25
+ # The orbit: `leo`, `meo` or `geo`.
26
+ attr_accessor :orbit
27
+
28
+ # Who the space serves, such as consumer or maritime.
29
+ attr_accessor :segment
30
+
31
+ # ISO 3166 country code.
32
+ attr_accessor :country
33
+
34
+ # The AS the operator announces it from.
35
+ attr_accessor :asn
36
+
37
+ # `high`, `medium` or `low`.
38
+ attr_accessor :confidence
39
+
40
+ # Attribute mapping from ruby-style variable name to JSON key.
41
+ def self.attribute_map
42
+ {
43
+ :'provider' => :'provider',
44
+ :'provider_name' => :'provider_name',
45
+ :'orbit' => :'orbit',
46
+ :'segment' => :'segment',
47
+ :'country' => :'country',
48
+ :'asn' => :'asn',
49
+ :'confidence' => :'confidence'
50
+ }
51
+ end
52
+
53
+ # Returns attribute mapping this model knows about
54
+ def self.acceptable_attribute_map
55
+ attribute_map
56
+ end
57
+
58
+ # Returns all the JSON keys this model knows about
59
+ def self.acceptable_attributes
60
+ acceptable_attribute_map.values
61
+ end
62
+
63
+ # Attribute type mapping.
64
+ def self.openapi_types
65
+ {
66
+ :'provider' => :'String',
67
+ :'provider_name' => :'String',
68
+ :'orbit' => :'String',
69
+ :'segment' => :'String',
70
+ :'country' => :'String',
71
+ :'asn' => :'Integer',
72
+ :'confidence' => :'String'
73
+ }
74
+ end
75
+
76
+ # List of attributes with nullable: true
77
+ def self.openapi_nullable
78
+ Set.new([
79
+ ])
80
+ end
81
+
82
+ # Initializes the object
83
+ # @param [Hash] attributes Model attributes in the form of hash
84
+ def initialize(attributes = {})
85
+ if (!attributes.is_a?(Hash))
86
+ fail ArgumentError, "The input argument (attributes) must be a hash in `VPNDetection::SatelliteDetail` initialize method"
87
+ end
88
+
89
+ # check to see if the attribute exists and convert string to symbol for hash key
90
+ acceptable_attribute_map = self.class.acceptable_attribute_map
91
+ attributes = attributes.each_with_object({}) { |(k, v), h|
92
+ if (!acceptable_attribute_map.key?(k.to_sym))
93
+ fail ArgumentError, "`#{k}` is not a valid attribute in `VPNDetection::SatelliteDetail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
94
+ end
95
+ h[k.to_sym] = v
96
+ }
97
+
98
+ if attributes.key?(:'provider')
99
+ self.provider = attributes[:'provider']
100
+ end
101
+
102
+ if attributes.key?(:'provider_name')
103
+ self.provider_name = attributes[:'provider_name']
104
+ end
105
+
106
+ if attributes.key?(:'orbit')
107
+ self.orbit = attributes[:'orbit']
108
+ end
109
+
110
+ if attributes.key?(:'segment')
111
+ self.segment = attributes[:'segment']
112
+ end
113
+
114
+ if attributes.key?(:'country')
115
+ self.country = attributes[:'country']
116
+ end
117
+
118
+ if attributes.key?(:'asn')
119
+ self.asn = attributes[:'asn']
120
+ end
121
+
122
+ if attributes.key?(:'confidence')
123
+ self.confidence = attributes[:'confidence']
124
+ end
125
+ end
126
+
127
+ # Show invalid properties with the reasons. Usually used together with valid?
128
+ # @return Array for valid properties with the reasons
129
+ def list_invalid_properties
130
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
131
+ invalid_properties = Array.new
132
+ invalid_properties
133
+ end
134
+
135
+ # Check to see if the all the properties in the model are valid
136
+ # @return true if the model is valid
137
+ def valid?
138
+ warn '[DEPRECATED] the `valid?` method is obsolete'
139
+ true
140
+ end
141
+
142
+ # Checks equality by comparing each attribute.
143
+ # @param [Object] Object to be compared
144
+ def ==(o)
145
+ return true if self.equal?(o)
146
+ self.class == o.class &&
147
+ provider == o.provider &&
148
+ provider_name == o.provider_name &&
149
+ orbit == o.orbit &&
150
+ segment == o.segment &&
151
+ country == o.country &&
152
+ asn == o.asn &&
153
+ confidence == o.confidence
154
+ end
155
+
156
+ # @see the `==` method
157
+ # @param [Object] Object to be compared
158
+ def eql?(o)
159
+ self == o
160
+ end
161
+
162
+ # Calculates hash code according to all attributes.
163
+ # @return [Integer] Hash code
164
+ def hash
165
+ [provider, provider_name, orbit, segment, country, asn, confidence].hash
166
+ end
167
+
168
+ # Builds the object from hash
169
+ # @param [Hash] attributes Model attributes in the form of hash
170
+ # @return [Object] Returns the model itself
171
+ def self.build_from_hash(attributes)
172
+ return nil unless attributes.is_a?(Hash)
173
+ attributes = attributes.transform_keys(&:to_sym)
174
+ transformed_hash = {}
175
+ openapi_types.each_pair do |key, type|
176
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
177
+ transformed_hash["#{key}"] = nil
178
+ elsif type =~ /\AArray<(.*)>/i
179
+ # check to ensure the input is an array given that the attribute
180
+ # is documented as an array but the input is not
181
+ if attributes[attribute_map[key]].is_a?(Array)
182
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
183
+ end
184
+ elsif !attributes[attribute_map[key]].nil?
185
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
186
+ end
187
+ end
188
+ new(transformed_hash)
189
+ end
190
+
191
+ # Returns the object in the form of hash
192
+ # @return [Hash] Returns the object in the form of hash
193
+ def to_hash
194
+ hash = {}
195
+ self.class.attribute_map.each_pair do |attr, param|
196
+ value = self.send(attr)
197
+ if value.nil?
198
+ is_nullable = self.class.openapi_nullable.include?(attr)
199
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
200
+ end
201
+
202
+ hash[param] = _to_hash(value)
203
+ end
204
+ hash
205
+ end
206
+
207
+ end
208
+
209
+ end
@@ -0,0 +1,189 @@
1
+ =begin
2
+ #VPNDetection API
3
+
4
+ #The VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
+
6
+ The version of the OpenAPI document: 2026.11.20
7
+ Contact: support@vpndetection.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 VPNDetection
17
+ # The mail server that answered on the address, from our SMTP IP database. Every key is present when the object is populated; the object is `{}` when `is_smtp` is false.
18
+ class SmtpDetail < ApiModelBase
19
+ # The port the server answered on.
20
+ attr_accessor :port
21
+
22
+ # Its banner.
23
+ attr_accessor :banner
24
+
25
+ # A session was set up.
26
+ attr_accessor :session_ok
27
+
28
+ # The first day it answered.
29
+ attr_accessor :first_seen
30
+
31
+ # The last day it did.
32
+ attr_accessor :last_seen
33
+
34
+ # Attribute mapping from ruby-style variable name to JSON key.
35
+ def self.attribute_map
36
+ {
37
+ :'port' => :'port',
38
+ :'banner' => :'banner',
39
+ :'session_ok' => :'session_ok',
40
+ :'first_seen' => :'first_seen',
41
+ :'last_seen' => :'last_seen'
42
+ }
43
+ end
44
+
45
+ # Returns attribute mapping this model knows about
46
+ def self.acceptable_attribute_map
47
+ attribute_map
48
+ end
49
+
50
+ # Returns all the JSON keys this model knows about
51
+ def self.acceptable_attributes
52
+ acceptable_attribute_map.values
53
+ end
54
+
55
+ # Attribute type mapping.
56
+ def self.openapi_types
57
+ {
58
+ :'port' => :'Integer',
59
+ :'banner' => :'String',
60
+ :'session_ok' => :'Boolean',
61
+ :'first_seen' => :'String',
62
+ :'last_seen' => :'String'
63
+ }
64
+ end
65
+
66
+ # List of attributes with nullable: true
67
+ def self.openapi_nullable
68
+ Set.new([
69
+ ])
70
+ end
71
+
72
+ # Initializes the object
73
+ # @param [Hash] attributes Model attributes in the form of hash
74
+ def initialize(attributes = {})
75
+ if (!attributes.is_a?(Hash))
76
+ fail ArgumentError, "The input argument (attributes) must be a hash in `VPNDetection::SmtpDetail` initialize method"
77
+ end
78
+
79
+ # check to see if the attribute exists and convert string to symbol for hash key
80
+ acceptable_attribute_map = self.class.acceptable_attribute_map
81
+ attributes = attributes.each_with_object({}) { |(k, v), h|
82
+ if (!acceptable_attribute_map.key?(k.to_sym))
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `VPNDetection::SmtpDetail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
84
+ end
85
+ h[k.to_sym] = v
86
+ }
87
+
88
+ if attributes.key?(:'port')
89
+ self.port = attributes[:'port']
90
+ end
91
+
92
+ if attributes.key?(:'banner')
93
+ self.banner = attributes[:'banner']
94
+ end
95
+
96
+ if attributes.key?(:'session_ok')
97
+ self.session_ok = attributes[:'session_ok']
98
+ end
99
+
100
+ if attributes.key?(:'first_seen')
101
+ self.first_seen = attributes[:'first_seen']
102
+ end
103
+
104
+ if attributes.key?(:'last_seen')
105
+ self.last_seen = attributes[:'last_seen']
106
+ end
107
+ end
108
+
109
+ # Show invalid properties with the reasons. Usually used together with valid?
110
+ # @return Array for valid properties with the reasons
111
+ def list_invalid_properties
112
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
113
+ invalid_properties = Array.new
114
+ invalid_properties
115
+ end
116
+
117
+ # Check to see if the all the properties in the model are valid
118
+ # @return true if the model is valid
119
+ def valid?
120
+ warn '[DEPRECATED] the `valid?` method is obsolete'
121
+ true
122
+ end
123
+
124
+ # Checks equality by comparing each attribute.
125
+ # @param [Object] Object to be compared
126
+ def ==(o)
127
+ return true if self.equal?(o)
128
+ self.class == o.class &&
129
+ port == o.port &&
130
+ banner == o.banner &&
131
+ session_ok == o.session_ok &&
132
+ first_seen == o.first_seen &&
133
+ last_seen == o.last_seen
134
+ end
135
+
136
+ # @see the `==` method
137
+ # @param [Object] Object to be compared
138
+ def eql?(o)
139
+ self == o
140
+ end
141
+
142
+ # Calculates hash code according to all attributes.
143
+ # @return [Integer] Hash code
144
+ def hash
145
+ [port, banner, session_ok, first_seen, last_seen].hash
146
+ end
147
+
148
+ # Builds the object from hash
149
+ # @param [Hash] attributes Model attributes in the form of hash
150
+ # @return [Object] Returns the model itself
151
+ def self.build_from_hash(attributes)
152
+ return nil unless attributes.is_a?(Hash)
153
+ attributes = attributes.transform_keys(&:to_sym)
154
+ transformed_hash = {}
155
+ openapi_types.each_pair do |key, type|
156
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
157
+ transformed_hash["#{key}"] = nil
158
+ elsif type =~ /\AArray<(.*)>/i
159
+ # check to ensure the input is an array given that the attribute
160
+ # is documented as an array but the input is not
161
+ if attributes[attribute_map[key]].is_a?(Array)
162
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
163
+ end
164
+ elsif !attributes[attribute_map[key]].nil?
165
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
166
+ end
167
+ end
168
+ new(transformed_hash)
169
+ end
170
+
171
+ # Returns the object in the form of hash
172
+ # @return [Hash] Returns the object in the form of hash
173
+ def to_hash
174
+ hash = {}
175
+ self.class.attribute_map.each_pair do |attr, param|
176
+ value = self.send(attr)
177
+ if value.nil?
178
+ is_nullable = self.class.openapi_nullable.include?(attr)
179
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
180
+ end
181
+
182
+ hash[param] = _to_hash(value)
183
+ end
184
+ hash
185
+ end
186
+
187
+ end
188
+
189
+ end
@@ -0,0 +1,199 @@
1
+ =begin
2
+ #VPNDetection API
3
+
4
+ #The VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
+
6
+ The version of the OpenAPI document: 2026.11.20
7
+ Contact: support@vpndetection.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 VPNDetection
17
+ # The SSH server that answered on the address, from our SSH IP database. Every key is present when the object is populated; the object is `{}` when `is_ssh` is false.
18
+ class SshDetail < ApiModelBase
19
+ # The port the server answered on.
20
+ attr_accessor :port
21
+
22
+ # Its banner.
23
+ attr_accessor :banner
24
+
25
+ # Its host key's fingerprint.
26
+ attr_accessor :host_key_fp
27
+
28
+ # A session was set up.
29
+ attr_accessor :session_ok
30
+
31
+ # The first day it answered.
32
+ attr_accessor :first_seen
33
+
34
+ # The last day it did.
35
+ attr_accessor :last_seen
36
+
37
+ # Attribute mapping from ruby-style variable name to JSON key.
38
+ def self.attribute_map
39
+ {
40
+ :'port' => :'port',
41
+ :'banner' => :'banner',
42
+ :'host_key_fp' => :'host_key_fp',
43
+ :'session_ok' => :'session_ok',
44
+ :'first_seen' => :'first_seen',
45
+ :'last_seen' => :'last_seen'
46
+ }
47
+ end
48
+
49
+ # Returns attribute mapping this model knows about
50
+ def self.acceptable_attribute_map
51
+ attribute_map
52
+ end
53
+
54
+ # Returns all the JSON keys this model knows about
55
+ def self.acceptable_attributes
56
+ acceptable_attribute_map.values
57
+ end
58
+
59
+ # Attribute type mapping.
60
+ def self.openapi_types
61
+ {
62
+ :'port' => :'Integer',
63
+ :'banner' => :'String',
64
+ :'host_key_fp' => :'String',
65
+ :'session_ok' => :'Boolean',
66
+ :'first_seen' => :'String',
67
+ :'last_seen' => :'String'
68
+ }
69
+ end
70
+
71
+ # List of attributes with nullable: true
72
+ def self.openapi_nullable
73
+ Set.new([
74
+ ])
75
+ end
76
+
77
+ # Initializes the object
78
+ # @param [Hash] attributes Model attributes in the form of hash
79
+ def initialize(attributes = {})
80
+ if (!attributes.is_a?(Hash))
81
+ fail ArgumentError, "The input argument (attributes) must be a hash in `VPNDetection::SshDetail` initialize method"
82
+ end
83
+
84
+ # check to see if the attribute exists and convert string to symbol for hash key
85
+ acceptable_attribute_map = self.class.acceptable_attribute_map
86
+ attributes = attributes.each_with_object({}) { |(k, v), h|
87
+ if (!acceptable_attribute_map.key?(k.to_sym))
88
+ fail ArgumentError, "`#{k}` is not a valid attribute in `VPNDetection::SshDetail`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
89
+ end
90
+ h[k.to_sym] = v
91
+ }
92
+
93
+ if attributes.key?(:'port')
94
+ self.port = attributes[:'port']
95
+ end
96
+
97
+ if attributes.key?(:'banner')
98
+ self.banner = attributes[:'banner']
99
+ end
100
+
101
+ if attributes.key?(:'host_key_fp')
102
+ self.host_key_fp = attributes[:'host_key_fp']
103
+ end
104
+
105
+ if attributes.key?(:'session_ok')
106
+ self.session_ok = attributes[:'session_ok']
107
+ end
108
+
109
+ if attributes.key?(:'first_seen')
110
+ self.first_seen = attributes[:'first_seen']
111
+ end
112
+
113
+ if attributes.key?(:'last_seen')
114
+ self.last_seen = attributes[:'last_seen']
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
+ invalid_properties
124
+ end
125
+
126
+ # Check to see if the all the properties in the model are valid
127
+ # @return true if the model is valid
128
+ def valid?
129
+ warn '[DEPRECATED] the `valid?` method is obsolete'
130
+ true
131
+ end
132
+
133
+ # Checks equality by comparing each attribute.
134
+ # @param [Object] Object to be compared
135
+ def ==(o)
136
+ return true if self.equal?(o)
137
+ self.class == o.class &&
138
+ port == o.port &&
139
+ banner == o.banner &&
140
+ host_key_fp == o.host_key_fp &&
141
+ session_ok == o.session_ok &&
142
+ first_seen == o.first_seen &&
143
+ last_seen == o.last_seen
144
+ end
145
+
146
+ # @see the `==` method
147
+ # @param [Object] Object to be compared
148
+ def eql?(o)
149
+ self == o
150
+ end
151
+
152
+ # Calculates hash code according to all attributes.
153
+ # @return [Integer] Hash code
154
+ def hash
155
+ [port, banner, host_key_fp, session_ok, first_seen, last_seen].hash
156
+ end
157
+
158
+ # Builds the object from hash
159
+ # @param [Hash] attributes Model attributes in the form of hash
160
+ # @return [Object] Returns the model itself
161
+ def self.build_from_hash(attributes)
162
+ return nil unless attributes.is_a?(Hash)
163
+ attributes = attributes.transform_keys(&:to_sym)
164
+ transformed_hash = {}
165
+ openapi_types.each_pair do |key, type|
166
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
167
+ transformed_hash["#{key}"] = nil
168
+ elsif type =~ /\AArray<(.*)>/i
169
+ # check to ensure the input is an array given that the attribute
170
+ # is documented as an array but the input is not
171
+ if attributes[attribute_map[key]].is_a?(Array)
172
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
173
+ end
174
+ elsif !attributes[attribute_map[key]].nil?
175
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
176
+ end
177
+ end
178
+ new(transformed_hash)
179
+ end
180
+
181
+ # Returns the object in the form of hash
182
+ # @return [Hash] Returns the object in the form of hash
183
+ def to_hash
184
+ hash = {}
185
+ self.class.attribute_map.each_pair do |attr, param|
186
+ value = self.send(attr)
187
+ if value.nil?
188
+ is_nullable = self.class.openapi_nullable.include?(attr)
189
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
190
+ end
191
+
192
+ hash[param] = _to_hash(value)
193
+ end
194
+ hash
195
+ end
196
+
197
+ end
198
+
199
+ end
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #VPNDetection API
3
3
 
4
- #The VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them, 100 lookups a day. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
4
+ #The VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.18
6
+ The version of the OpenAPI document: 2026.11.20
7
7
  Contact: support@vpndetection.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
  #VPNDetection API
3
3
 
4
- #The VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them, 100 lookups a day. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
4
+ #The VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.18
6
+ The version of the OpenAPI document: 2026.11.20
7
7
  Contact: support@vpndetection.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
  #VPNDetection API
3
3
 
4
- #The VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them, 100 lookups a day. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
4
+ #The VPNDetection API: classify any IP address, and download the databases behind the answers. Lookups need no API key: Unlimited, the free plan, answers any address with no daily or monthly cap, with a key or without one. Every paid plan answers every field, and a free account tries them. Unlimited's answers may be used commercially, but not redistributed or used in a competing service (https://vpndetection.io/terms#no-key). See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.11.18
6
+ The version of the OpenAPI document: 2026.11.20
7
7
  Contact: support@vpndetection.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0