vpndetection 5.17.1 → 5.18.1
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 +9 -7
- data/lib/vpndetection/api/account_wire_api.rb +2 -2
- data/lib/vpndetection/api/api_keys_wire_api.rb +2 -2
- data/lib/vpndetection/api/authorization_wire_api.rb +2 -2
- data/lib/vpndetection/api/database_wire_api.rb +2 -2
- data/lib/vpndetection/api/entitlement_wire_api.rb +2 -2
- data/lib/vpndetection/api/lookup_wire_api.rb +4 -4
- data/lib/vpndetection/api/organization_wire_api.rb +2 -2
- data/lib/vpndetection/api_client.rb +2 -2
- data/lib/vpndetection/api_error.rb +2 -2
- data/lib/vpndetection/api_model_base.rb +2 -2
- data/lib/vpndetection/bogon.rb +11 -2
- data/lib/vpndetection/cache.rb +31 -2
- data/lib/vpndetection/client.rb +4 -3
- data/lib/vpndetection/configuration.rb +3 -3
- data/lib/vpndetection/models/abuse_contact.rb +236 -0
- data/lib/vpndetection/models/account_create_apikey_request.rb +2 -2
- data/lib/vpndetection/models/account_created_apikey.rb +2 -2
- data/lib/vpndetection/models/account_org.rb +2 -2
- data/lib/vpndetection/models/account_org_ref.rb +2 -2
- data/lib/vpndetection/models/account_org_wrap.rb +2 -2
- data/lib/vpndetection/models/account_rc.rb +2 -2
- data/lib/vpndetection/models/account_revealed_apikey.rb +2 -2
- data/lib/vpndetection/models/account_user.rb +2 -2
- data/lib/vpndetection/models/apikey_detail.rb +2 -2
- data/lib/vpndetection/models/apikey_list.rb +2 -2
- data/lib/vpndetection/models/asn.rb +26 -6
- data/lib/vpndetection/models/batch_lookup_error.rb +2 -2
- data/lib/vpndetection/models/batch_lookup_request.rb +2 -2
- data/lib/vpndetection/models/batch_lookup_response.rb +2 -2
- data/lib/vpndetection/models/bit_torrent_detail.rb +241 -0
- data/lib/vpndetection/models/carrier_detail.rb +189 -0
- data/lib/vpndetection/models/class_detail.rb +2 -2
- data/lib/vpndetection/models/client_registration.rb +2 -2
- data/lib/vpndetection/models/client_registration_request.rb +2 -2
- data/lib/vpndetection/models/company.rb +213 -0
- data/lib/vpndetection/models/database.rb +2 -2
- data/lib/vpndetection/models/database_checksums_response.rb +2 -2
- data/lib/vpndetection/models/database_format.rb +2 -2
- data/lib/vpndetection/models/database_format_size.rb +2 -2
- data/lib/vpndetection/models/database_list.rb +2 -2
- data/lib/vpndetection/models/database_metadata.rb +2 -2
- data/lib/vpndetection/models/database_metadata_column.rb +2 -2
- data/lib/vpndetection/models/database_version.rb +2 -2
- data/lib/vpndetection/models/db_checksums.rb +2 -2
- data/lib/vpndetection/models/device_authorization.rb +2 -2
- data/lib/vpndetection/models/dns_resolver_detail.rb +199 -0
- data/lib/vpndetection/models/download.rb +2 -2
- data/lib/vpndetection/models/download_list.rb +2 -2
- data/lib/vpndetection/models/entitlement.rb +2 -2
- data/lib/vpndetection/models/entitlement_apikey.rb +2 -2
- data/lib/vpndetection/models/entitlement_error.rb +2 -2
- data/lib/vpndetection/models/entitlement_plan.rb +3 -3
- data/lib/vpndetection/models/entitlement_usage.rb +2 -2
- data/lib/vpndetection/models/error_envelope.rb +2 -2
- data/lib/vpndetection/models/identity.rb +2 -2
- data/lib/vpndetection/models/location.rb +107 -7
- data/lib/vpndetection/models/lookup_error.rb +2 -2
- data/lib/vpndetection/models/lookup_response.rb +185 -5
- data/lib/vpndetection/models/oauth_error.rb +2 -2
- data/lib/vpndetection/models/oauth_metadata.rb +2 -2
- data/lib/vpndetection/models/proxy_detail.rb +2 -2
- data/lib/vpndetection/models/pubproxy_detail.rb +2 -2
- data/lib/vpndetection/models/satellite_detail.rb +209 -0
- data/lib/vpndetection/models/smtp_detail.rb +189 -0
- data/lib/vpndetection/models/ssh_detail.rb +199 -0
- data/lib/vpndetection/models/standing.rb +2 -2
- data/lib/vpndetection/models/token_response.rb +2 -2
- data/lib/vpndetection/models/vpn_detail.rb +2 -2
- data/lib/vpndetection/models/web_detail.rb +517 -0
- data/lib/vpndetection/result.rb +182 -12
- data/lib/vpndetection/transport.rb +10 -0
- data/lib/vpndetection/version.rb +1 -1
- metadata +10 -1
|
@@ -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
|
|
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.
|
|
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
|
|
@@ -15,7 +15,7 @@ require 'time'
|
|
|
15
15
|
|
|
16
16
|
module VPNDetection
|
|
17
17
|
class EntitlementPlan < ApiModelBase
|
|
18
|
-
# The plan the organization is on, as an identifier that is never renamed or reused: `free` for the free plan, or a paid plan's key. Compare against it and show `name`. On `free`, usage counts the
|
|
18
|
+
# The plan the organization is on, as an identifier that is never renamed or reused: `free` for the free plan, or a paid plan's key. Compare against it and show `name`. On `free`, usage counts its trial, the lookups answered with every field.
|
|
19
19
|
attr_accessor :key
|
|
20
20
|
|
|
21
21
|
# The plan's name, as the site and console show it: `Unlimited` for the free plan. Show this rather than a name built from `key`: a plan's name can change, and its key never does.
|
|
@@ -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
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module VPNDetection
|
|
17
|
-
# Where the address is
|
|
17
|
+
# Where the address is: the fields of our IP Country database on every answer, with or without a key, and our IP Geolocation database's finer ones on a paid plan. Each field your plan includes is present whenever the object is, so an address in no country, or a private one, answers empty strings and zeros.
|
|
18
18
|
class Location < ApiModelBase
|
|
19
19
|
# Continent code: AF, AN (Antarctica), AS, EU, NA, OC or SA.
|
|
20
20
|
attr_accessor :continent
|
|
@@ -46,6 +46,36 @@ module VPNDetection
|
|
|
46
46
|
# The Unicode code points of the flag emoji.
|
|
47
47
|
attr_accessor :flag_unicode
|
|
48
48
|
|
|
49
|
+
# Region (state or province). Paid plans.
|
|
50
|
+
attr_accessor :region
|
|
51
|
+
|
|
52
|
+
# ISO 3166-2 region code. Paid plans.
|
|
53
|
+
attr_accessor :region_code
|
|
54
|
+
|
|
55
|
+
# City. Paid plans.
|
|
56
|
+
attr_accessor :city
|
|
57
|
+
|
|
58
|
+
# Postal code. Paid plans.
|
|
59
|
+
attr_accessor :postal_code
|
|
60
|
+
|
|
61
|
+
# Latitude of the city. Paid plans.
|
|
62
|
+
attr_accessor :latitude
|
|
63
|
+
|
|
64
|
+
# Longitude of the city. Paid plans.
|
|
65
|
+
attr_accessor :longitude
|
|
66
|
+
|
|
67
|
+
# Radius in km holding the true location with 67% confidence; 20000 for an address announced everywhere, as an anycast one is. Paid plans.
|
|
68
|
+
attr_accessor :accuracy_radius
|
|
69
|
+
|
|
70
|
+
# GeoNames ID of the city. Paid plans.
|
|
71
|
+
attr_accessor :geoname_id
|
|
72
|
+
|
|
73
|
+
# US TV market (DMA) code, empty outside the US. Paid plans.
|
|
74
|
+
attr_accessor :dma_code
|
|
75
|
+
|
|
76
|
+
# The day the range's location last changed. Paid plans.
|
|
77
|
+
attr_accessor :last_changed
|
|
78
|
+
|
|
49
79
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
50
80
|
def self.attribute_map
|
|
51
81
|
{
|
|
@@ -58,7 +88,17 @@ module VPNDetection
|
|
|
58
88
|
:'currency_name' => :'currency_name',
|
|
59
89
|
:'currency_symbol' => :'currency_symbol',
|
|
60
90
|
:'flag_emoji' => :'flag_emoji',
|
|
61
|
-
:'flag_unicode' => :'flag_unicode'
|
|
91
|
+
:'flag_unicode' => :'flag_unicode',
|
|
92
|
+
:'region' => :'region',
|
|
93
|
+
:'region_code' => :'region_code',
|
|
94
|
+
:'city' => :'city',
|
|
95
|
+
:'postal_code' => :'postal_code',
|
|
96
|
+
:'latitude' => :'latitude',
|
|
97
|
+
:'longitude' => :'longitude',
|
|
98
|
+
:'accuracy_radius' => :'accuracy_radius',
|
|
99
|
+
:'geoname_id' => :'geoname_id',
|
|
100
|
+
:'dma_code' => :'dma_code',
|
|
101
|
+
:'last_changed' => :'last_changed'
|
|
62
102
|
}
|
|
63
103
|
end
|
|
64
104
|
|
|
@@ -84,7 +124,17 @@ module VPNDetection
|
|
|
84
124
|
:'currency_name' => :'String',
|
|
85
125
|
:'currency_symbol' => :'String',
|
|
86
126
|
:'flag_emoji' => :'String',
|
|
87
|
-
:'flag_unicode' => :'String'
|
|
127
|
+
:'flag_unicode' => :'String',
|
|
128
|
+
:'region' => :'String',
|
|
129
|
+
:'region_code' => :'String',
|
|
130
|
+
:'city' => :'String',
|
|
131
|
+
:'postal_code' => :'String',
|
|
132
|
+
:'latitude' => :'Float',
|
|
133
|
+
:'longitude' => :'Float',
|
|
134
|
+
:'accuracy_radius' => :'Integer',
|
|
135
|
+
:'geoname_id' => :'String',
|
|
136
|
+
:'dma_code' => :'String',
|
|
137
|
+
:'last_changed' => :'String'
|
|
88
138
|
}
|
|
89
139
|
end
|
|
90
140
|
|
|
@@ -169,6 +219,46 @@ module VPNDetection
|
|
|
169
219
|
else
|
|
170
220
|
self.flag_unicode = nil
|
|
171
221
|
end
|
|
222
|
+
|
|
223
|
+
if attributes.key?(:'region')
|
|
224
|
+
self.region = attributes[:'region']
|
|
225
|
+
end
|
|
226
|
+
|
|
227
|
+
if attributes.key?(:'region_code')
|
|
228
|
+
self.region_code = attributes[:'region_code']
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
if attributes.key?(:'city')
|
|
232
|
+
self.city = attributes[:'city']
|
|
233
|
+
end
|
|
234
|
+
|
|
235
|
+
if attributes.key?(:'postal_code')
|
|
236
|
+
self.postal_code = attributes[:'postal_code']
|
|
237
|
+
end
|
|
238
|
+
|
|
239
|
+
if attributes.key?(:'latitude')
|
|
240
|
+
self.latitude = attributes[:'latitude']
|
|
241
|
+
end
|
|
242
|
+
|
|
243
|
+
if attributes.key?(:'longitude')
|
|
244
|
+
self.longitude = attributes[:'longitude']
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
if attributes.key?(:'accuracy_radius')
|
|
248
|
+
self.accuracy_radius = attributes[:'accuracy_radius']
|
|
249
|
+
end
|
|
250
|
+
|
|
251
|
+
if attributes.key?(:'geoname_id')
|
|
252
|
+
self.geoname_id = attributes[:'geoname_id']
|
|
253
|
+
end
|
|
254
|
+
|
|
255
|
+
if attributes.key?(:'dma_code')
|
|
256
|
+
self.dma_code = attributes[:'dma_code']
|
|
257
|
+
end
|
|
258
|
+
|
|
259
|
+
if attributes.key?(:'last_changed')
|
|
260
|
+
self.last_changed = attributes[:'last_changed']
|
|
261
|
+
end
|
|
172
262
|
end
|
|
173
263
|
|
|
174
264
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -350,7 +440,17 @@ module VPNDetection
|
|
|
350
440
|
currency_name == o.currency_name &&
|
|
351
441
|
currency_symbol == o.currency_symbol &&
|
|
352
442
|
flag_emoji == o.flag_emoji &&
|
|
353
|
-
flag_unicode == o.flag_unicode
|
|
443
|
+
flag_unicode == o.flag_unicode &&
|
|
444
|
+
region == o.region &&
|
|
445
|
+
region_code == o.region_code &&
|
|
446
|
+
city == o.city &&
|
|
447
|
+
postal_code == o.postal_code &&
|
|
448
|
+
latitude == o.latitude &&
|
|
449
|
+
longitude == o.longitude &&
|
|
450
|
+
accuracy_radius == o.accuracy_radius &&
|
|
451
|
+
geoname_id == o.geoname_id &&
|
|
452
|
+
dma_code == o.dma_code &&
|
|
453
|
+
last_changed == o.last_changed
|
|
354
454
|
end
|
|
355
455
|
|
|
356
456
|
# @see the `==` method
|
|
@@ -362,7 +462,7 @@ module VPNDetection
|
|
|
362
462
|
# Calculates hash code according to all attributes.
|
|
363
463
|
# @return [Integer] Hash code
|
|
364
464
|
def hash
|
|
365
|
-
[continent, continent_name, country, country_name, timezone, currency_code, currency_name, currency_symbol, flag_emoji, flag_unicode].hash
|
|
465
|
+
[continent, continent_name, country, country_name, timezone, currency_code, currency_name, currency_symbol, flag_emoji, flag_unicode, region, region_code, city, postal_code, latitude, longitude, accuracy_radius, geoname_id, dma_code, last_changed].hash
|
|
366
466
|
end
|
|
367
467
|
|
|
368
468
|
# Builds the object from hash
|
|
@@ -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
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
@@ -14,7 +14,7 @@ require 'date'
|
|
|
14
14
|
require 'time'
|
|
15
15
|
|
|
16
16
|
module VPNDetection
|
|
17
|
-
# The union of every tier's answer. Every answer carries `ip`, `is_bogon`, `is_vpn`, the Tor and relay members, `location` and `asn`, with or without a key; each remaining field is present when your tier includes it, and absent otherwise. A client that must work across plans should treat an absent flag as unknown rather than as `false`.
|
|
17
|
+
# The union of every tier's answer. Every answer carries `ip`, `is_bogon`, `is_vpn`, the Tor and relay members, `is_anycast`, `hostname`, `location` and `asn`, with or without a key; each remaining field is present when your tier includes it, and absent otherwise. A client that must work across plans should treat an absent flag as unknown rather than as `false`.
|
|
18
18
|
class LookupResponse < ApiModelBase
|
|
19
19
|
# The address that was looked up, normalized.
|
|
20
20
|
attr_accessor :ip
|
|
@@ -49,6 +49,30 @@ module VPNDetection
|
|
|
49
49
|
# Whether a public proxy, one anyone can connect through, listens on the address or sends its traffic out from it. Paid plans.
|
|
50
50
|
attr_accessor :is_pubproxy
|
|
51
51
|
|
|
52
|
+
# Whether the address is announced from many places at once, as a public DNS resolver's or a CDN's edge is. Every answer, with or without a key.
|
|
53
|
+
attr_accessor :is_anycast
|
|
54
|
+
|
|
55
|
+
# Whether the address is a mobile carrier's, where many phones can share one address. Paid plans.
|
|
56
|
+
attr_accessor :is_carrier
|
|
57
|
+
|
|
58
|
+
# Whether the address is a satellite operator's. Paid plans.
|
|
59
|
+
attr_accessor :is_satellite
|
|
60
|
+
|
|
61
|
+
# Whether an SSH server answered on the address. Paid plans.
|
|
62
|
+
attr_accessor :is_ssh
|
|
63
|
+
|
|
64
|
+
# Whether a mail server answered on the address. Paid plans.
|
|
65
|
+
attr_accessor :is_smtp
|
|
66
|
+
|
|
67
|
+
# Whether a web server answered on the address, on port 80 or 443. Paid plans.
|
|
68
|
+
attr_accessor :is_web
|
|
69
|
+
|
|
70
|
+
# Whether an open DNS resolver answered on the address. Paid plans.
|
|
71
|
+
attr_accessor :is_dns_resolver
|
|
72
|
+
|
|
73
|
+
# Whether a BitTorrent client was seen on the address in the last 90 days. Paid plans.
|
|
74
|
+
attr_accessor :is_bittorrent
|
|
75
|
+
|
|
52
76
|
# Detail for `is_vpn`. Empty when `is_vpn` is false. Paid plans.
|
|
53
77
|
attr_accessor :vpn
|
|
54
78
|
|
|
@@ -76,11 +100,39 @@ module VPNDetection
|
|
|
76
100
|
# Detail for `is_pubproxy`. Empty when false. Paid plans.
|
|
77
101
|
attr_accessor :pubproxy
|
|
78
102
|
|
|
103
|
+
# Detail for `is_carrier`. Empty when false. Paid plans.
|
|
104
|
+
attr_accessor :carrier
|
|
105
|
+
|
|
106
|
+
# Detail for `is_satellite`. Empty when false. Paid plans.
|
|
107
|
+
attr_accessor :satellite
|
|
108
|
+
|
|
109
|
+
# Detail for `is_ssh`. Empty when false. Paid plans.
|
|
110
|
+
attr_accessor :ssh
|
|
111
|
+
|
|
112
|
+
# Detail for `is_smtp`. Empty when false. Paid plans.
|
|
113
|
+
attr_accessor :smtp
|
|
114
|
+
|
|
115
|
+
# Detail for `is_web`: a row per port that answered, lowest first, and `[]` when false. Paid plans.
|
|
116
|
+
attr_accessor :web
|
|
117
|
+
|
|
118
|
+
# Detail for `is_dns_resolver`. Empty when false. Paid plans.
|
|
119
|
+
attr_accessor :dns_resolver
|
|
120
|
+
|
|
121
|
+
# Detail for `is_bittorrent`. Empty when false. Paid plans.
|
|
122
|
+
attr_accessor :bittorrent
|
|
123
|
+
|
|
79
124
|
attr_accessor :location
|
|
80
125
|
|
|
81
126
|
attr_accessor :asn
|
|
82
127
|
|
|
83
|
-
|
|
128
|
+
attr_accessor :company
|
|
129
|
+
|
|
130
|
+
# The name the address's reverse DNS (PTR) record points to, from our IP RDNS database; an empty string when it has none. Every answer, with or without a key.
|
|
131
|
+
attr_accessor :hostname
|
|
132
|
+
|
|
133
|
+
attr_accessor :abuse
|
|
134
|
+
|
|
135
|
+
# On every answer to a key on the free plan, and on no other: `false` while its organization's trial of every field lasts, `true` once the answer has Unlimited's.
|
|
84
136
|
attr_accessor :trial_expired
|
|
85
137
|
|
|
86
138
|
# On every answer to a key on a paid plan, and on no other: `false` while the answer has every field, `true` once its organization's overage cap is reached and the answer has Unlimited's. Lookups answered past the cap are not billed; raising or removing the cap in Billing turns it `false` again.
|
|
@@ -100,6 +152,14 @@ module VPNDetection
|
|
|
100
152
|
:'is_dcproxy' => :'is_dcproxy',
|
|
101
153
|
:'is_mobproxy' => :'is_mobproxy',
|
|
102
154
|
:'is_pubproxy' => :'is_pubproxy',
|
|
155
|
+
:'is_anycast' => :'is_anycast',
|
|
156
|
+
:'is_carrier' => :'is_carrier',
|
|
157
|
+
:'is_satellite' => :'is_satellite',
|
|
158
|
+
:'is_ssh' => :'is_ssh',
|
|
159
|
+
:'is_smtp' => :'is_smtp',
|
|
160
|
+
:'is_web' => :'is_web',
|
|
161
|
+
:'is_dns_resolver' => :'is_dns_resolver',
|
|
162
|
+
:'is_bittorrent' => :'is_bittorrent',
|
|
103
163
|
:'vpn' => :'vpn',
|
|
104
164
|
:'hosting' => :'hosting',
|
|
105
165
|
:'relay' => :'relay',
|
|
@@ -109,8 +169,18 @@ module VPNDetection
|
|
|
109
169
|
:'dcproxy' => :'dcproxy',
|
|
110
170
|
:'mobproxy' => :'mobproxy',
|
|
111
171
|
:'pubproxy' => :'pubproxy',
|
|
172
|
+
:'carrier' => :'carrier',
|
|
173
|
+
:'satellite' => :'satellite',
|
|
174
|
+
:'ssh' => :'ssh',
|
|
175
|
+
:'smtp' => :'smtp',
|
|
176
|
+
:'web' => :'web',
|
|
177
|
+
:'dns_resolver' => :'dns_resolver',
|
|
178
|
+
:'bittorrent' => :'bittorrent',
|
|
112
179
|
:'location' => :'location',
|
|
113
180
|
:'asn' => :'asn',
|
|
181
|
+
:'company' => :'company',
|
|
182
|
+
:'hostname' => :'hostname',
|
|
183
|
+
:'abuse' => :'abuse',
|
|
114
184
|
:'trial_expired' => :'trial_expired',
|
|
115
185
|
:'cap_reached' => :'cap_reached'
|
|
116
186
|
}
|
|
@@ -140,6 +210,14 @@ module VPNDetection
|
|
|
140
210
|
:'is_dcproxy' => :'Boolean',
|
|
141
211
|
:'is_mobproxy' => :'Boolean',
|
|
142
212
|
:'is_pubproxy' => :'Boolean',
|
|
213
|
+
:'is_anycast' => :'Boolean',
|
|
214
|
+
:'is_carrier' => :'Boolean',
|
|
215
|
+
:'is_satellite' => :'Boolean',
|
|
216
|
+
:'is_ssh' => :'Boolean',
|
|
217
|
+
:'is_smtp' => :'Boolean',
|
|
218
|
+
:'is_web' => :'Boolean',
|
|
219
|
+
:'is_dns_resolver' => :'Boolean',
|
|
220
|
+
:'is_bittorrent' => :'Boolean',
|
|
143
221
|
:'vpn' => :'VpnDetail',
|
|
144
222
|
:'hosting' => :'ClassDetail',
|
|
145
223
|
:'relay' => :'ClassDetail',
|
|
@@ -149,8 +227,18 @@ module VPNDetection
|
|
|
149
227
|
:'dcproxy' => :'ProxyDetail',
|
|
150
228
|
:'mobproxy' => :'ProxyDetail',
|
|
151
229
|
:'pubproxy' => :'PubproxyDetail',
|
|
230
|
+
:'carrier' => :'CarrierDetail',
|
|
231
|
+
:'satellite' => :'SatelliteDetail',
|
|
232
|
+
:'ssh' => :'SshDetail',
|
|
233
|
+
:'smtp' => :'SmtpDetail',
|
|
234
|
+
:'web' => :'Array<WebDetail>',
|
|
235
|
+
:'dns_resolver' => :'DnsResolverDetail',
|
|
236
|
+
:'bittorrent' => :'BitTorrentDetail',
|
|
152
237
|
:'location' => :'Location',
|
|
153
238
|
:'asn' => :'Asn',
|
|
239
|
+
:'company' => :'Company',
|
|
240
|
+
:'hostname' => :'String',
|
|
241
|
+
:'abuse' => :'AbuseContact',
|
|
154
242
|
:'trial_expired' => :'Boolean',
|
|
155
243
|
:'cap_reached' => :'Boolean'
|
|
156
244
|
}
|
|
@@ -226,6 +314,38 @@ module VPNDetection
|
|
|
226
314
|
self.is_pubproxy = attributes[:'is_pubproxy']
|
|
227
315
|
end
|
|
228
316
|
|
|
317
|
+
if attributes.key?(:'is_anycast')
|
|
318
|
+
self.is_anycast = attributes[:'is_anycast']
|
|
319
|
+
end
|
|
320
|
+
|
|
321
|
+
if attributes.key?(:'is_carrier')
|
|
322
|
+
self.is_carrier = attributes[:'is_carrier']
|
|
323
|
+
end
|
|
324
|
+
|
|
325
|
+
if attributes.key?(:'is_satellite')
|
|
326
|
+
self.is_satellite = attributes[:'is_satellite']
|
|
327
|
+
end
|
|
328
|
+
|
|
329
|
+
if attributes.key?(:'is_ssh')
|
|
330
|
+
self.is_ssh = attributes[:'is_ssh']
|
|
331
|
+
end
|
|
332
|
+
|
|
333
|
+
if attributes.key?(:'is_smtp')
|
|
334
|
+
self.is_smtp = attributes[:'is_smtp']
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
if attributes.key?(:'is_web')
|
|
338
|
+
self.is_web = attributes[:'is_web']
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
if attributes.key?(:'is_dns_resolver')
|
|
342
|
+
self.is_dns_resolver = attributes[:'is_dns_resolver']
|
|
343
|
+
end
|
|
344
|
+
|
|
345
|
+
if attributes.key?(:'is_bittorrent')
|
|
346
|
+
self.is_bittorrent = attributes[:'is_bittorrent']
|
|
347
|
+
end
|
|
348
|
+
|
|
229
349
|
if attributes.key?(:'vpn')
|
|
230
350
|
self.vpn = attributes[:'vpn']
|
|
231
351
|
end
|
|
@@ -262,6 +382,36 @@ module VPNDetection
|
|
|
262
382
|
self.pubproxy = attributes[:'pubproxy']
|
|
263
383
|
end
|
|
264
384
|
|
|
385
|
+
if attributes.key?(:'carrier')
|
|
386
|
+
self.carrier = attributes[:'carrier']
|
|
387
|
+
end
|
|
388
|
+
|
|
389
|
+
if attributes.key?(:'satellite')
|
|
390
|
+
self.satellite = attributes[:'satellite']
|
|
391
|
+
end
|
|
392
|
+
|
|
393
|
+
if attributes.key?(:'ssh')
|
|
394
|
+
self.ssh = attributes[:'ssh']
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
if attributes.key?(:'smtp')
|
|
398
|
+
self.smtp = attributes[:'smtp']
|
|
399
|
+
end
|
|
400
|
+
|
|
401
|
+
if attributes.key?(:'web')
|
|
402
|
+
if (value = attributes[:'web']).is_a?(Array)
|
|
403
|
+
self.web = value
|
|
404
|
+
end
|
|
405
|
+
end
|
|
406
|
+
|
|
407
|
+
if attributes.key?(:'dns_resolver')
|
|
408
|
+
self.dns_resolver = attributes[:'dns_resolver']
|
|
409
|
+
end
|
|
410
|
+
|
|
411
|
+
if attributes.key?(:'bittorrent')
|
|
412
|
+
self.bittorrent = attributes[:'bittorrent']
|
|
413
|
+
end
|
|
414
|
+
|
|
265
415
|
if attributes.key?(:'location')
|
|
266
416
|
self.location = attributes[:'location']
|
|
267
417
|
end
|
|
@@ -270,6 +420,18 @@ module VPNDetection
|
|
|
270
420
|
self.asn = attributes[:'asn']
|
|
271
421
|
end
|
|
272
422
|
|
|
423
|
+
if attributes.key?(:'company')
|
|
424
|
+
self.company = attributes[:'company']
|
|
425
|
+
end
|
|
426
|
+
|
|
427
|
+
if attributes.key?(:'hostname')
|
|
428
|
+
self.hostname = attributes[:'hostname']
|
|
429
|
+
end
|
|
430
|
+
|
|
431
|
+
if attributes.key?(:'abuse')
|
|
432
|
+
self.abuse = attributes[:'abuse']
|
|
433
|
+
end
|
|
434
|
+
|
|
273
435
|
if attributes.key?(:'trial_expired')
|
|
274
436
|
self.trial_expired = attributes[:'trial_expired']
|
|
275
437
|
end
|
|
@@ -340,6 +502,14 @@ module VPNDetection
|
|
|
340
502
|
is_dcproxy == o.is_dcproxy &&
|
|
341
503
|
is_mobproxy == o.is_mobproxy &&
|
|
342
504
|
is_pubproxy == o.is_pubproxy &&
|
|
505
|
+
is_anycast == o.is_anycast &&
|
|
506
|
+
is_carrier == o.is_carrier &&
|
|
507
|
+
is_satellite == o.is_satellite &&
|
|
508
|
+
is_ssh == o.is_ssh &&
|
|
509
|
+
is_smtp == o.is_smtp &&
|
|
510
|
+
is_web == o.is_web &&
|
|
511
|
+
is_dns_resolver == o.is_dns_resolver &&
|
|
512
|
+
is_bittorrent == o.is_bittorrent &&
|
|
343
513
|
vpn == o.vpn &&
|
|
344
514
|
hosting == o.hosting &&
|
|
345
515
|
relay == o.relay &&
|
|
@@ -349,8 +519,18 @@ module VPNDetection
|
|
|
349
519
|
dcproxy == o.dcproxy &&
|
|
350
520
|
mobproxy == o.mobproxy &&
|
|
351
521
|
pubproxy == o.pubproxy &&
|
|
522
|
+
carrier == o.carrier &&
|
|
523
|
+
satellite == o.satellite &&
|
|
524
|
+
ssh == o.ssh &&
|
|
525
|
+
smtp == o.smtp &&
|
|
526
|
+
web == o.web &&
|
|
527
|
+
dns_resolver == o.dns_resolver &&
|
|
528
|
+
bittorrent == o.bittorrent &&
|
|
352
529
|
location == o.location &&
|
|
353
530
|
asn == o.asn &&
|
|
531
|
+
company == o.company &&
|
|
532
|
+
hostname == o.hostname &&
|
|
533
|
+
abuse == o.abuse &&
|
|
354
534
|
trial_expired == o.trial_expired &&
|
|
355
535
|
cap_reached == o.cap_reached
|
|
356
536
|
end
|
|
@@ -364,7 +544,7 @@ module VPNDetection
|
|
|
364
544
|
# Calculates hash code according to all attributes.
|
|
365
545
|
# @return [Integer] Hash code
|
|
366
546
|
def hash
|
|
367
|
-
[ip, is_bogon, is_vpn, is_hosting, is_relay, is_tor, is_cdn, is_resproxy, is_dcproxy, is_mobproxy, is_pubproxy, vpn, hosting, relay, tor, cdn, resproxy, dcproxy, mobproxy, pubproxy, location, asn, trial_expired, cap_reached].hash
|
|
547
|
+
[ip, is_bogon, is_vpn, is_hosting, is_relay, is_tor, is_cdn, is_resproxy, is_dcproxy, is_mobproxy, is_pubproxy, is_anycast, is_carrier, is_satellite, is_ssh, is_smtp, is_web, is_dns_resolver, is_bittorrent, vpn, hosting, relay, tor, cdn, resproxy, dcproxy, mobproxy, pubproxy, carrier, satellite, ssh, smtp, web, dns_resolver, bittorrent, location, asn, company, hostname, abuse, trial_expired, cap_reached].hash
|
|
368
548
|
end
|
|
369
549
|
|
|
370
550
|
# Builds the object from hash
|
|
@@ -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
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
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
|