internetdata 2.12.0 → 2.14.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 +4 -2
- data/lib/internetdata/api/database_v2_api.rb +1 -1
- data/lib/internetdata/api_client.rb +1 -1
- data/lib/internetdata/api_error.rb +1 -1
- data/lib/internetdata/api_model_base.rb +1 -1
- data/lib/internetdata/asn_result.rb +68 -1
- data/lib/internetdata/configuration.rb +1 -1
- data/lib/internetdata/database_api.rb +3 -3
- data/lib/internetdata/domain_result.rb +12 -0
- data/lib/internetdata/models/abuse_contact.rb +1 -1
- data/lib/internetdata/models/asn.rb +1 -1
- data/lib/internetdata/models/asn_hosted_domains.rb +178 -0
- data/lib/internetdata/models/asn_lookup_response.rb +110 -5
- data/lib/internetdata/models/asn_prefix.rb +1 -1
- data/lib/internetdata/models/batch_lookup_error.rb +1 -1
- data/lib/internetdata/models/bit_torrent_detail.rb +1 -1
- data/lib/internetdata/models/carrier_detail.rb +1 -1
- data/lib/internetdata/models/class_detail.rb +1 -1
- data/lib/internetdata/models/client_registration.rb +1 -1
- data/lib/internetdata/models/company.rb +1 -1
- data/lib/internetdata/models/database.rb +2 -2
- data/lib/internetdata/models/database_checksums_response.rb +1 -1
- data/lib/internetdata/models/database_format.rb +1 -1
- data/lib/internetdata/models/database_list.rb +1 -1
- data/lib/internetdata/models/database_metadata.rb +1 -1
- data/lib/internetdata/models/database_metadata_column.rb +1 -1
- data/lib/internetdata/models/database_version.rb +2 -2
- data/lib/internetdata/models/db_checksums.rb +1 -1
- data/lib/internetdata/models/device_authorization.rb +1 -1
- data/lib/internetdata/models/disposable_detail.rb +1 -1
- data/lib/internetdata/models/dns_address_record.rb +1 -1
- data/lib/internetdata/models/dns_cname_record.rb +1 -1
- data/lib/internetdata/models/dns_mx_record.rb +1 -1
- data/lib/internetdata/models/dns_ns_record.rb +1 -1
- data/lib/internetdata/models/dns_resolver_detail.rb +1 -1
- data/lib/internetdata/models/domain_dns.rb +1 -1
- data/lib/internetdata/models/domain_ip_range.rb +1 -1
- data/lib/internetdata/models/domain_ip_ranges.rb +1 -1
- data/lib/internetdata/models/domain_lookup_response.rb +15 -5
- data/lib/internetdata/models/download.rb +3 -3
- data/lib/internetdata/models/download_list.rb +1 -1
- data/lib/internetdata/models/entitlement.rb +1 -1
- data/lib/internetdata/models/entitlement_apikey.rb +2 -2
- data/lib/internetdata/models/entitlement_plan.rb +31 -4
- data/lib/internetdata/models/entitlement_usage.rb +2 -2
- data/lib/internetdata/models/error_envelope.rb +1 -1
- data/lib/internetdata/models/hosted_domains.rb +1 -1
- data/lib/internetdata/models/location.rb +1 -1
- data/lib/internetdata/models/lookup_response.rb +15 -5
- data/lib/internetdata/models/oauth_metadata.rb +1 -1
- data/lib/internetdata/models/proxy_detail.rb +1 -1
- data/lib/internetdata/models/pubproxy_detail.rb +1 -1
- data/lib/internetdata/models/rwhois.rb +1 -1
- data/lib/internetdata/models/satellite_detail.rb +1 -1
- data/lib/internetdata/models/smtp_detail.rb +1 -1
- data/lib/internetdata/models/ssh_detail.rb +1 -1
- data/lib/internetdata/models/standing.rb +1 -1
- data/lib/internetdata/models/token_response.rb +1 -1
- data/lib/internetdata/models/web_detail.rb +1 -1
- data/lib/internetdata/models/whois.rb +1 -1
- data/lib/internetdata/result.rb +12 -0
- data/lib/internetdata/transport.rb +2 -1
- data/lib/internetdata/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f4970702debf09c79f00493d0ff6a59b21123adc8910c20b1e8eccf84a9426d9
|
|
4
|
+
data.tar.gz: d0129f3c6b45bf11580de092a24252bcdcb6ba6a7f945c14931fe290d801afbf
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a222b7919d2d2a74b6827647af4647d9855c146a8a7c8114c252a1ce1da549ddb1ef0327596ddbec43a0810990d04622107dd27a8ff8d29631158c8f0e9d0d1e
|
|
7
|
+
data.tar.gz: 01e77b6e521bd326582ccd65320d68671aa1219c87f5a907f86eca85f60f90cf26ed518bfecf70d7527f1192f97191422b4bfa6baa208b4955fd790a30a2f9d0
|
data/README.md
CHANGED
|
@@ -77,6 +77,7 @@ Same answer `lookup` would give for that address, and the same cost against your
|
|
|
77
77
|
```ruby
|
|
78
78
|
acct = client.my_entitlement
|
|
79
79
|
acct.plan.key # => "max"
|
|
80
|
+
acct.plan.name # => "Max", the name to show
|
|
80
81
|
acct.usage.requests # => 580
|
|
81
82
|
acct.usage.window_end # => when the allowance resets
|
|
82
83
|
```
|
|
@@ -252,7 +253,7 @@ end
|
|
|
252
253
|
|
|
253
254
|
`kind` is one of `:bad_request`, `:unauthorized`, `:forbidden`, `:rate_limited`, `:quota_exceeded`, `:server_error` or `:network`. A lookup's `message` is the API's own words; a database call's refusal also carries `rc`, the API's result code, such as `NOT_LICENSED` or `LICENSE_EXPIRED`.
|
|
254
255
|
|
|
255
|
-
Note that `:rate_limited` and `:quota_exceeded` both arrive as HTTP 429 and are not the same thing. A rate limit is when the API faces extreme traffic bursts and so retrying later works; but a
|
|
256
|
+
Note that `:rate_limited` and `:quota_exceeded` both arrive as HTTP 429 and are not the same thing. A rate limit is when the API faces extreme traffic bursts and so retrying later works; but a 429 without `Retry-After` is `:quota_exceeded`, which the library never retries. The API itself always sends `Retry-After` with a 429, so that one comes from something in between, such as a proxy; a paid key past its overage cap gets `cap_reached` instead. It waits the `Retry-After` the API sent, or its own backoff from 250 ms when that's past about 24.8 days.
|
|
256
257
|
|
|
257
258
|
### Sign in with OAuth (device flow)
|
|
258
259
|
|
|
@@ -301,13 +302,14 @@ Each redirect URI must be https on a public host name, or http on a loopback add
|
|
|
301
302
|
|
|
302
303
|
### Absent is not false
|
|
303
304
|
|
|
304
|
-
Unlimited leaves out the VPN, proxy, hosting and CDN flags and their detail, an address's city and the rest of its paid location, its Whois, RWHOIS and hosted domains, and the paid members inside each shared object, such as `abuse['phone']`. A free-plan key's answer carries `trial_expired`, true once its daily trial is spent. A field is present when your plan includes it and `nil` when it does not. `nil` means "not in your plan"; `false` means "we checked, and no".
|
|
305
|
+
Unlimited leaves out the VPN, proxy, hosting and CDN flags and their detail, an address's city and the rest of its paid location, its Whois, RWHOIS and hosted domains, and the paid members inside each shared object, such as `abuse['phone']`. A free-plan key's answer carries `trial_expired`, true once its daily trial is spent. A paid key's carries `cap_reached`, true once its organization's overage cap is reached, when the answer has Unlimited's fields and isn't billed. A field is present when your plan includes it and `nil` when it does not. `nil` means "not in your plan"; `false` means "we checked, and no".
|
|
305
306
|
|
|
306
307
|
```ruby
|
|
307
308
|
result.vpn? # false when absent, for when you only want the flag
|
|
308
309
|
result.included?(:is_vpn) # false on Unlimited: not in your plan
|
|
309
310
|
result.location.key?('city') # false on Unlimited
|
|
310
311
|
result.trial_expired == true # a free-plan key's daily trial is spent
|
|
312
|
+
result.cap_reached == true # a paid key is past its overage cap
|
|
311
313
|
```
|
|
312
314
|
|
|
313
315
|
## Other Libraries
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
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.17
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
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.17
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
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.17
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
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.17
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -7,7 +7,8 @@ module InternetData
|
|
|
7
7
|
# reads as `nil`, never as 0 or an empty string: Unlimited answers the AS's
|
|
8
8
|
# registration (`asn`, `name`, `country`, `registry`, `allocated`, `domain`),
|
|
9
9
|
# and paid plans and the trial add the rest. `whois` and `prefixes` are the
|
|
10
|
-
# wire values with their original string keys
|
|
10
|
+
# wire values with their original string keys, as are `hosted_domains` and
|
|
11
|
+
# the neighbor lists.
|
|
11
12
|
class AsnResult
|
|
12
13
|
include Answer
|
|
13
14
|
|
|
@@ -89,6 +90,60 @@ module InternetData
|
|
|
89
90
|
@raw['prefixes']
|
|
90
91
|
end
|
|
91
92
|
|
|
93
|
+
# Its rank in ASN Extended by customer cone, 1 the largest; 0 for an AS
|
|
94
|
+
# seen in no AS path. Paid plans and the trial.
|
|
95
|
+
def rank
|
|
96
|
+
@raw['rank']
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# Whether it is one of the transit-free networks at the top of the
|
|
100
|
+
# hierarchy. Paid plans and the trial.
|
|
101
|
+
def tier1
|
|
102
|
+
@raw['tier1']
|
|
103
|
+
end
|
|
104
|
+
|
|
105
|
+
# `tier1` with an absent member read as false.
|
|
106
|
+
def tier1?
|
|
107
|
+
@raw['tier1'] == true
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
# How many AS numbers it gets transit from. Paid plans and the trial.
|
|
111
|
+
def num_upstreams
|
|
112
|
+
@raw['num_upstreams']
|
|
113
|
+
end
|
|
114
|
+
|
|
115
|
+
# Those AS numbers, ascending, up to 20000. Paid plans and the trial.
|
|
116
|
+
def upstreams
|
|
117
|
+
@raw['upstreams']
|
|
118
|
+
end
|
|
119
|
+
|
|
120
|
+
# How many AS numbers it exchanges its own and its customers' routes with.
|
|
121
|
+
# Paid plans and the trial.
|
|
122
|
+
def num_peers
|
|
123
|
+
@raw['num_peers']
|
|
124
|
+
end
|
|
125
|
+
|
|
126
|
+
# Those AS numbers, ascending, up to 20000. Paid plans and the trial.
|
|
127
|
+
def peers
|
|
128
|
+
@raw['peers']
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# How many AS numbers it provides transit to. Paid plans and the trial.
|
|
132
|
+
def num_downstreams
|
|
133
|
+
@raw['num_downstreams']
|
|
134
|
+
end
|
|
135
|
+
|
|
136
|
+
# Those AS numbers, ascending, up to 20000. Paid plans and the trial.
|
|
137
|
+
def downstreams
|
|
138
|
+
@raw['downstreams']
|
|
139
|
+
end
|
|
140
|
+
|
|
141
|
+
# How many registered domains it hosts (`total`) and the 10 most popular
|
|
142
|
+
# (`domains`), with the wire's string keys. Paid plans and the trial.
|
|
143
|
+
def hosted_domains
|
|
144
|
+
@raw['hosted_domains']
|
|
145
|
+
end
|
|
146
|
+
|
|
92
147
|
# On answers to a key on the free plan only: false while its organization's
|
|
93
148
|
# daily trial lasts, true once the answer has Unlimited's; nil on any other.
|
|
94
149
|
def trial_expired
|
|
@@ -100,6 +155,18 @@ module InternetData
|
|
|
100
155
|
@raw['trial_expired'] == true
|
|
101
156
|
end
|
|
102
157
|
|
|
158
|
+
# On answers to a key on a paid plan only: false while the answer has every
|
|
159
|
+
# field, true once its organization's overage cap is reached and the answer
|
|
160
|
+
# has Unlimited's, which is not billed; nil on any other.
|
|
161
|
+
def cap_reached
|
|
162
|
+
@raw['cap_reached']
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
# `cap_reached` with an absent member read as false.
|
|
166
|
+
def cap_reached?
|
|
167
|
+
@raw['cap_reached'] == true
|
|
168
|
+
end
|
|
169
|
+
|
|
103
170
|
def inspect
|
|
104
171
|
"#<#{self.class} asn=#{asn.inspect} name=#{name.inspect}>"
|
|
105
172
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
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.17
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -69,9 +69,9 @@ module InternetData
|
|
|
69
69
|
#
|
|
70
70
|
# Presigned, so it carries no credential of yours and can be handed to
|
|
71
71
|
# anything that speaks HTTP. The URL is returned rather than the bytes so the
|
|
72
|
-
# caller decides how to transfer a file that routinely runs to gigabytes
|
|
73
|
-
# link
|
|
74
|
-
#
|
|
72
|
+
# caller decides how to transfer a file that routinely runs to gigabytes. The
|
|
73
|
+
# link only has to be valid when a transfer starts, so one already running
|
|
74
|
+
# isn't cut off when it lapses.
|
|
75
75
|
#
|
|
76
76
|
# @param build [String, nil] one build of the database, as a
|
|
77
77
|
# `database.updated` webhook names it (`20261105.0t53s5`), so the file is
|
|
@@ -117,6 +117,18 @@ module InternetData
|
|
|
117
117
|
@raw['trial_expired'] == true
|
|
118
118
|
end
|
|
119
119
|
|
|
120
|
+
# On answers to a key on a paid plan only: false while the answer has every
|
|
121
|
+
# field, true once its organization's overage cap is reached and the answer
|
|
122
|
+
# has Unlimited's, which is not billed; nil on any other.
|
|
123
|
+
def cap_reached
|
|
124
|
+
@raw['cap_reached']
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# `cap_reached` with an absent member read as false.
|
|
128
|
+
def cap_reached?
|
|
129
|
+
@raw['cap_reached'] == true
|
|
130
|
+
end
|
|
131
|
+
|
|
120
132
|
def inspect
|
|
121
133
|
"#<#{self.class} domain=#{domain.inspect} is_registered=#{is_registered.inspect}>"
|
|
122
134
|
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
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.17
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
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.17
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -0,0 +1,178 @@
|
|
|
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.17
|
|
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
|
+
# From ASN Hosted Domains: how many registered domains the AS hosts, and the 10 most popular. Its database lists up to 1,000 an AS. Paid plans and the trial.
|
|
18
|
+
class AsnHostedDomains < ApiModelBase
|
|
19
|
+
# How many registered domains resolve to an address the AS announces.
|
|
20
|
+
attr_accessor :total
|
|
21
|
+
|
|
22
|
+
# Up to 10 of them, the most popular first; `[]` when none does.
|
|
23
|
+
attr_accessor :domains
|
|
24
|
+
|
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
|
26
|
+
def self.attribute_map
|
|
27
|
+
{
|
|
28
|
+
:'total' => :'total',
|
|
29
|
+
:'domains' => :'domains'
|
|
30
|
+
}
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
# Returns attribute mapping this model knows about
|
|
34
|
+
def self.acceptable_attribute_map
|
|
35
|
+
attribute_map
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
# Returns all the JSON keys this model knows about
|
|
39
|
+
def self.acceptable_attributes
|
|
40
|
+
acceptable_attribute_map.values
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Attribute type mapping.
|
|
44
|
+
def self.openapi_types
|
|
45
|
+
{
|
|
46
|
+
:'total' => :'Integer',
|
|
47
|
+
:'domains' => :'Array<String>'
|
|
48
|
+
}
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# List of attributes with nullable: true
|
|
52
|
+
def self.openapi_nullable
|
|
53
|
+
Set.new([
|
|
54
|
+
])
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Initializes the object
|
|
58
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
59
|
+
def initialize(attributes = {})
|
|
60
|
+
if (!attributes.is_a?(Hash))
|
|
61
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `InternetData::AsnHostedDomains` initialize method"
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
|
65
|
+
acceptable_attribute_map = self.class.acceptable_attribute_map
|
|
66
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
|
67
|
+
if (!acceptable_attribute_map.key?(k.to_sym))
|
|
68
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `InternetData::AsnHostedDomains`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
|
|
69
|
+
end
|
|
70
|
+
h[k.to_sym] = v
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if attributes.key?(:'total')
|
|
74
|
+
self.total = attributes[:'total']
|
|
75
|
+
else
|
|
76
|
+
self.total = nil
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
if attributes.key?(:'domains')
|
|
80
|
+
if (value = attributes[:'domains']).is_a?(Array)
|
|
81
|
+
self.domains = value
|
|
82
|
+
end
|
|
83
|
+
end
|
|
84
|
+
end
|
|
85
|
+
|
|
86
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
|
87
|
+
# @return Array for valid properties with the reasons
|
|
88
|
+
def list_invalid_properties
|
|
89
|
+
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
90
|
+
invalid_properties = Array.new
|
|
91
|
+
if @total.nil?
|
|
92
|
+
invalid_properties.push('invalid value for "total", total cannot be nil.')
|
|
93
|
+
end
|
|
94
|
+
|
|
95
|
+
invalid_properties
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# Check to see if the all the properties in the model are valid
|
|
99
|
+
# @return true if the model is valid
|
|
100
|
+
def valid?
|
|
101
|
+
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
102
|
+
return false if @total.nil?
|
|
103
|
+
true
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
# Custom attribute writer method with validation
|
|
107
|
+
# @param [Object] total Value to be assigned
|
|
108
|
+
def total=(total)
|
|
109
|
+
if total.nil?
|
|
110
|
+
fail ArgumentError, 'total cannot be nil'
|
|
111
|
+
end
|
|
112
|
+
|
|
113
|
+
@total = total
|
|
114
|
+
end
|
|
115
|
+
|
|
116
|
+
# Checks equality by comparing each attribute.
|
|
117
|
+
# @param [Object] Object to be compared
|
|
118
|
+
def ==(o)
|
|
119
|
+
return true if self.equal?(o)
|
|
120
|
+
self.class == o.class &&
|
|
121
|
+
total == o.total &&
|
|
122
|
+
domains == o.domains
|
|
123
|
+
end
|
|
124
|
+
|
|
125
|
+
# @see the `==` method
|
|
126
|
+
# @param [Object] Object to be compared
|
|
127
|
+
def eql?(o)
|
|
128
|
+
self == o
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Calculates hash code according to all attributes.
|
|
132
|
+
# @return [Integer] Hash code
|
|
133
|
+
def hash
|
|
134
|
+
[total, domains].hash
|
|
135
|
+
end
|
|
136
|
+
|
|
137
|
+
# Builds the object from hash
|
|
138
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
|
139
|
+
# @return [Object] Returns the model itself
|
|
140
|
+
def self.build_from_hash(attributes)
|
|
141
|
+
return nil unless attributes.is_a?(Hash)
|
|
142
|
+
attributes = attributes.transform_keys(&:to_sym)
|
|
143
|
+
transformed_hash = {}
|
|
144
|
+
openapi_types.each_pair do |key, type|
|
|
145
|
+
if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
|
|
146
|
+
transformed_hash["#{key}"] = nil
|
|
147
|
+
elsif type =~ /\AArray<(.*)>/i
|
|
148
|
+
# check to ensure the input is an array given that the attribute
|
|
149
|
+
# is documented as an array but the input is not
|
|
150
|
+
if attributes[attribute_map[key]].is_a?(Array)
|
|
151
|
+
transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
|
|
152
|
+
end
|
|
153
|
+
elsif !attributes[attribute_map[key]].nil?
|
|
154
|
+
transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
|
|
155
|
+
end
|
|
156
|
+
end
|
|
157
|
+
new(transformed_hash)
|
|
158
|
+
end
|
|
159
|
+
|
|
160
|
+
# Returns the object in the form of hash
|
|
161
|
+
# @return [Hash] Returns the object in the form of hash
|
|
162
|
+
def to_hash
|
|
163
|
+
hash = {}
|
|
164
|
+
self.class.attribute_map.each_pair do |attr, param|
|
|
165
|
+
value = self.send(attr)
|
|
166
|
+
if value.nil?
|
|
167
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
|
168
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
|
169
|
+
end
|
|
170
|
+
|
|
171
|
+
hash[param] = _to_hash(value)
|
|
172
|
+
end
|
|
173
|
+
hash
|
|
174
|
+
end
|
|
175
|
+
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
end
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
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.17
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -61,9 +61,38 @@ module InternetData
|
|
|
61
61
|
# What it announces, IPv4 then IPv6, up to 20000 a family. Paid plans and the trial.
|
|
62
62
|
attr_accessor :prefixes
|
|
63
63
|
|
|
64
|
+
# Its rank in ASN Extended, by customer cone, 1 the largest; `0` for an AS seen in no AS path. Paid plans and the trial.
|
|
65
|
+
attr_accessor :rank
|
|
66
|
+
|
|
67
|
+
# Whether it is one of the transit-free networks at the top of the hierarchy, which get transit from no one and peer with each other. Paid plans and the trial.
|
|
68
|
+
attr_accessor :tier1
|
|
69
|
+
|
|
70
|
+
# How many AS numbers it gets transit from. Paid plans and the trial.
|
|
71
|
+
attr_accessor :num_upstreams
|
|
72
|
+
|
|
73
|
+
# Those AS numbers, ascending, up to 20000. Paid plans and the trial.
|
|
74
|
+
attr_accessor :upstreams
|
|
75
|
+
|
|
76
|
+
# How many AS numbers it exchanges its own and its customers' routes with. Paid plans and the trial.
|
|
77
|
+
attr_accessor :num_peers
|
|
78
|
+
|
|
79
|
+
# Those AS numbers, ascending, up to 20000. Paid plans and the trial.
|
|
80
|
+
attr_accessor :peers
|
|
81
|
+
|
|
82
|
+
# How many AS numbers it provides transit to. Paid plans and the trial.
|
|
83
|
+
attr_accessor :num_downstreams
|
|
84
|
+
|
|
85
|
+
# Those AS numbers, ascending, up to 20000. Paid plans and the trial.
|
|
86
|
+
attr_accessor :downstreams
|
|
87
|
+
|
|
88
|
+
attr_accessor :hosted_domains
|
|
89
|
+
|
|
64
90
|
# On every answer to a key on the free plan, and on no other: `false` while the day's trial of every field lasts, `true` once the answer has Unlimited's fields.
|
|
65
91
|
attr_accessor :trial_expired
|
|
66
92
|
|
|
93
|
+
# 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.
|
|
94
|
+
attr_accessor :cap_reached
|
|
95
|
+
|
|
67
96
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
68
97
|
def self.attribute_map
|
|
69
98
|
{
|
|
@@ -82,7 +111,17 @@ module InternetData
|
|
|
82
111
|
:'rpki_not_found' => :'rpki_not_found',
|
|
83
112
|
:'whois' => :'whois',
|
|
84
113
|
:'prefixes' => :'prefixes',
|
|
85
|
-
:'
|
|
114
|
+
:'rank' => :'rank',
|
|
115
|
+
:'tier1' => :'tier1',
|
|
116
|
+
:'num_upstreams' => :'num_upstreams',
|
|
117
|
+
:'upstreams' => :'upstreams',
|
|
118
|
+
:'num_peers' => :'num_peers',
|
|
119
|
+
:'peers' => :'peers',
|
|
120
|
+
:'num_downstreams' => :'num_downstreams',
|
|
121
|
+
:'downstreams' => :'downstreams',
|
|
122
|
+
:'hosted_domains' => :'hosted_domains',
|
|
123
|
+
:'trial_expired' => :'trial_expired',
|
|
124
|
+
:'cap_reached' => :'cap_reached'
|
|
86
125
|
}
|
|
87
126
|
end
|
|
88
127
|
|
|
@@ -114,7 +153,17 @@ module InternetData
|
|
|
114
153
|
:'rpki_not_found' => :'Integer',
|
|
115
154
|
:'whois' => :'Hash<String, String>',
|
|
116
155
|
:'prefixes' => :'Array<AsnPrefix>',
|
|
117
|
-
:'
|
|
156
|
+
:'rank' => :'Integer',
|
|
157
|
+
:'tier1' => :'Boolean',
|
|
158
|
+
:'num_upstreams' => :'Integer',
|
|
159
|
+
:'upstreams' => :'Array<Integer>',
|
|
160
|
+
:'num_peers' => :'Integer',
|
|
161
|
+
:'peers' => :'Array<Integer>',
|
|
162
|
+
:'num_downstreams' => :'Integer',
|
|
163
|
+
:'downstreams' => :'Array<Integer>',
|
|
164
|
+
:'hosted_domains' => :'AsnHostedDomains',
|
|
165
|
+
:'trial_expired' => :'Boolean',
|
|
166
|
+
:'cap_reached' => :'Boolean'
|
|
118
167
|
}
|
|
119
168
|
end
|
|
120
169
|
|
|
@@ -216,9 +265,55 @@ module InternetData
|
|
|
216
265
|
end
|
|
217
266
|
end
|
|
218
267
|
|
|
268
|
+
if attributes.key?(:'rank')
|
|
269
|
+
self.rank = attributes[:'rank']
|
|
270
|
+
end
|
|
271
|
+
|
|
272
|
+
if attributes.key?(:'tier1')
|
|
273
|
+
self.tier1 = attributes[:'tier1']
|
|
274
|
+
end
|
|
275
|
+
|
|
276
|
+
if attributes.key?(:'num_upstreams')
|
|
277
|
+
self.num_upstreams = attributes[:'num_upstreams']
|
|
278
|
+
end
|
|
279
|
+
|
|
280
|
+
if attributes.key?(:'upstreams')
|
|
281
|
+
if (value = attributes[:'upstreams']).is_a?(Array)
|
|
282
|
+
self.upstreams = value
|
|
283
|
+
end
|
|
284
|
+
end
|
|
285
|
+
|
|
286
|
+
if attributes.key?(:'num_peers')
|
|
287
|
+
self.num_peers = attributes[:'num_peers']
|
|
288
|
+
end
|
|
289
|
+
|
|
290
|
+
if attributes.key?(:'peers')
|
|
291
|
+
if (value = attributes[:'peers']).is_a?(Array)
|
|
292
|
+
self.peers = value
|
|
293
|
+
end
|
|
294
|
+
end
|
|
295
|
+
|
|
296
|
+
if attributes.key?(:'num_downstreams')
|
|
297
|
+
self.num_downstreams = attributes[:'num_downstreams']
|
|
298
|
+
end
|
|
299
|
+
|
|
300
|
+
if attributes.key?(:'downstreams')
|
|
301
|
+
if (value = attributes[:'downstreams']).is_a?(Array)
|
|
302
|
+
self.downstreams = value
|
|
303
|
+
end
|
|
304
|
+
end
|
|
305
|
+
|
|
306
|
+
if attributes.key?(:'hosted_domains')
|
|
307
|
+
self.hosted_domains = attributes[:'hosted_domains']
|
|
308
|
+
end
|
|
309
|
+
|
|
219
310
|
if attributes.key?(:'trial_expired')
|
|
220
311
|
self.trial_expired = attributes[:'trial_expired']
|
|
221
312
|
end
|
|
313
|
+
|
|
314
|
+
if attributes.key?(:'cap_reached')
|
|
315
|
+
self.cap_reached = attributes[:'cap_reached']
|
|
316
|
+
end
|
|
222
317
|
end
|
|
223
318
|
|
|
224
319
|
# Show invalid properties with the reasons. Usually used together with valid?
|
|
@@ -346,7 +441,17 @@ module InternetData
|
|
|
346
441
|
rpki_not_found == o.rpki_not_found &&
|
|
347
442
|
whois == o.whois &&
|
|
348
443
|
prefixes == o.prefixes &&
|
|
349
|
-
|
|
444
|
+
rank == o.rank &&
|
|
445
|
+
tier1 == o.tier1 &&
|
|
446
|
+
num_upstreams == o.num_upstreams &&
|
|
447
|
+
upstreams == o.upstreams &&
|
|
448
|
+
num_peers == o.num_peers &&
|
|
449
|
+
peers == o.peers &&
|
|
450
|
+
num_downstreams == o.num_downstreams &&
|
|
451
|
+
downstreams == o.downstreams &&
|
|
452
|
+
hosted_domains == o.hosted_domains &&
|
|
453
|
+
trial_expired == o.trial_expired &&
|
|
454
|
+
cap_reached == o.cap_reached
|
|
350
455
|
end
|
|
351
456
|
|
|
352
457
|
# @see the `==` method
|
|
@@ -358,7 +463,7 @@ module InternetData
|
|
|
358
463
|
# Calculates hash code according to all attributes.
|
|
359
464
|
# @return [Integer] Hash code
|
|
360
465
|
def hash
|
|
361
|
-
[asn, name, country, registry, allocated, domain, type, num_ips, num_prefixes4, num_prefixes6, rpki_valid, rpki_invalid, rpki_not_found, whois, prefixes, trial_expired].hash
|
|
466
|
+
[asn, name, country, registry, allocated, domain, type, num_ips, num_prefixes4, num_prefixes6, rpki_valid, rpki_invalid, rpki_not_found, whois, prefixes, rank, tier1, num_upstreams, upstreams, num_peers, peers, num_downstreams, downstreams, hosted_domains, trial_expired, cap_reached].hash
|
|
362
467
|
end
|
|
363
468
|
|
|
364
469
|
# Builds the object from hash
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
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.17
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
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.17
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
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.17
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
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.17
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
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.17
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
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.17
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
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.17
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|