internetdata 2.14.2 → 2.15.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 (71) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +5 -5
  3. data/lib/internetdata/api/database_v2_api.rb +5 -5
  4. data/lib/internetdata/api_client.rb +1 -1
  5. data/lib/internetdata/api_error.rb +1 -1
  6. data/lib/internetdata/api_model_base.rb +1 -1
  7. data/lib/internetdata/asn_result.rb +1 -1
  8. data/lib/internetdata/client.rb +2 -2
  9. data/lib/internetdata/configuration.rb +1 -1
  10. data/lib/internetdata/domain_result.rb +39 -2
  11. data/lib/internetdata/models/abuse_contact.rb +1 -1
  12. data/lib/internetdata/models/asn.rb +3 -3
  13. data/lib/internetdata/models/asn_hosted_domains.rb +1 -1
  14. data/lib/internetdata/models/asn_lookup_response.rb +2 -2
  15. data/lib/internetdata/models/asn_prefix.rb +1 -1
  16. data/lib/internetdata/models/batch_lookup_error.rb +1 -1
  17. data/lib/internetdata/models/bit_torrent_detail.rb +1 -1
  18. data/lib/internetdata/models/carrier_detail.rb +1 -1
  19. data/lib/internetdata/models/class_detail.rb +1 -1
  20. data/lib/internetdata/models/client_registration.rb +1 -1
  21. data/lib/internetdata/models/cohosted_domains.rb +222 -0
  22. data/lib/internetdata/models/company.rb +1 -1
  23. data/lib/internetdata/models/database.rb +1 -1
  24. data/lib/internetdata/models/database_checksums_response.rb +1 -1
  25. data/lib/internetdata/models/database_format.rb +1 -1
  26. data/lib/internetdata/models/database_list.rb +1 -1
  27. data/lib/internetdata/models/database_metadata.rb +1 -1
  28. data/lib/internetdata/models/database_metadata_column.rb +1 -1
  29. data/lib/internetdata/models/database_version.rb +1 -1
  30. data/lib/internetdata/models/db_checksums.rb +1 -1
  31. data/lib/internetdata/models/device_authorization.rb +1 -1
  32. data/lib/internetdata/models/disposable_detail.rb +1 -1
  33. data/lib/internetdata/models/dns_address_record.rb +1 -1
  34. data/lib/internetdata/models/dns_cname_record.rb +1 -1
  35. data/lib/internetdata/models/dns_mx_record.rb +1 -1
  36. data/lib/internetdata/models/dns_ns_record.rb +1 -1
  37. data/lib/internetdata/models/dns_resolver_detail.rb +1 -1
  38. data/lib/internetdata/models/domain_backlinks.rb +195 -0
  39. data/lib/internetdata/models/domain_dns.rb +1 -1
  40. data/lib/internetdata/models/domain_host.rb +193 -0
  41. data/lib/internetdata/models/domain_ip_range.rb +1 -1
  42. data/lib/internetdata/models/domain_ip_ranges.rb +1 -1
  43. data/lib/internetdata/models/domain_lookup_response.rb +51 -3
  44. data/lib/internetdata/models/domain_redirects.rb +195 -0
  45. data/lib/internetdata/models/domain_web.rb +273 -0
  46. data/lib/internetdata/models/domain_web_links.rb +195 -0
  47. data/lib/internetdata/models/download.rb +1 -1
  48. data/lib/internetdata/models/download_list.rb +1 -1
  49. data/lib/internetdata/models/entitlement.rb +1 -1
  50. data/lib/internetdata/models/entitlement_apikey.rb +1 -1
  51. data/lib/internetdata/models/entitlement_plan.rb +2 -2
  52. data/lib/internetdata/models/entitlement_usage.rb +1 -1
  53. data/lib/internetdata/models/error_envelope.rb +1 -1
  54. data/lib/internetdata/models/hosted_domains.rb +1 -1
  55. data/lib/internetdata/models/location.rb +1 -1
  56. data/lib/internetdata/models/lookup_response.rb +2 -2
  57. data/lib/internetdata/models/oauth_metadata.rb +1 -1
  58. data/lib/internetdata/models/proxy_detail.rb +1 -1
  59. data/lib/internetdata/models/pubproxy_detail.rb +1 -1
  60. data/lib/internetdata/models/rwhois.rb +1 -1
  61. data/lib/internetdata/models/satellite_detail.rb +1 -1
  62. data/lib/internetdata/models/smtp_detail.rb +1 -1
  63. data/lib/internetdata/models/ssh_detail.rb +1 -1
  64. data/lib/internetdata/models/standing.rb +1 -1
  65. data/lib/internetdata/models/token_response.rb +1 -1
  66. data/lib/internetdata/models/web_detail.rb +1 -1
  67. data/lib/internetdata/models/whois.rb +1 -1
  68. data/lib/internetdata/result.rb +2 -2
  69. data/lib/internetdata/transport.rb +6 -0
  70. data/lib/internetdata/version.rb +1 -1
  71. metadata +7 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea13c3d6065537652f90e6822f04fc01e280feddb4cbb29c800387a491933e0d
4
- data.tar.gz: baa7ad7ecf3543c5fa07e6a4de82c7d19099cb1d3a22dfa54bf6d49d5cf9ed0d
3
+ metadata.gz: 31e59c6791ff66337309a43f54bfcdeb9d4edbf18defffb3d0763b8121887c69
4
+ data.tar.gz: 830ce27a3740c60040f186edfab4a016074d69af4400f3c2a4ffaaf144923d5c
5
5
  SHA512:
6
- metadata.gz: fd2eb6fbbd752fb717994a6a1153106e29fba0c0adb6070d40752ba9b05d9059867c32a6a156b66f59cd30ecc993c3a71291f1ff3d9f035ad112d9157c17f372
7
- data.tar.gz: 8f0ec231513b532c6f09824a8f92937f4750d109711c0419ebeefed67b0cfc71af1dc5a31369626f50ed83f46f2fe8ae39776e87a7982f062b445afb5bca47ce
6
+ metadata.gz: 8730334359647443493f41b90370c45ae661ee63e54dc568a23a0fd45e48ecfe42acd1e10e2a464b770c97fe24e72b33fc9ac29f99f1a8d2867ac6cc99db623d
7
+ data.tar.gz: 9545aeb5a4d7f6942a4337a11f5f83b744cf1c442fa946d7e9389222e2f4244bc4f54c22a9f4b108600604a19ff95c534b4d6b6be59d4674be612fbf5a6c0691
data/README.md CHANGED
@@ -23,7 +23,7 @@ Requires Ruby 3.3 or newer, and libcurl at runtime, which the `curl` package bri
23
23
 
24
24
  ## Usage
25
25
 
26
- **No API key needed to start.** Unlimited, the free plan, answers an address's location, network, company, abuse contact and reverse DNS, and its Tor, relay, anycast, carrier, satellite, SSH, SMTP, web, DNS resolver and BitTorrent flags, with a key or without one, limited per address per minute.
26
+ **No API key needed to start.** Unlimited, the free plan, answers an address's location, network, company, abuse contact and reverse DNS, and its Tor, relay, anycast, carrier, satellite, SSH, SMTP, web, DNS resolver and BitTorrent flags, with no daily or monthly cap, with a key or without one.
27
27
 
28
28
  ```ruby
29
29
  require 'internetdata'
@@ -38,7 +38,7 @@ result.is_tor # => false
38
38
 
39
39
  ### With an API key
40
40
 
41
- Every paid plan answers every field: the VPN, proxy, hosting and CDN flags as well, the detail behind each flag, and an address's city, Whois, RWHOIS and hosted domains. A free account tries every field, 100 lookups a day. Create a key in the [console](https://app.internetdata.io), then pass it in:
41
+ Every paid plan answers every field: the VPN, proxy, hosting and CDN flags as well, the detail behind each flag, and an address's city, Whois, RWHOIS and hosted domains. A free account tries every field. Create a key in the [console](https://app.internetdata.io), then pass it in:
42
42
 
43
43
  ```ruby
44
44
  client = InternetData::Client.new(api_key: ENV['INTERNETDATA_API_KEY'])
@@ -82,7 +82,7 @@ acct.usage.requests # => 580
82
82
  acct.usage.window_end # => when the allowance resets
83
83
  ```
84
84
 
85
- Usage counts against the anniversary of your subscription on a paid plan, not the calendar month and not the billing period, and against the UTC day on the free plan; it is the same number a lookup is gated on. `hard_limit` is `nil` on an uncapped plan, which is not the same as zero.
85
+ Usage counts against the anniversary of your subscription on a paid plan, not the calendar month and not the billing period, and against its trial on the free plan; it is the same number a lookup is gated on. `hard_limit` is `nil` on an uncapped plan, which is not the same as zero.
86
86
 
87
87
  ### Batch lookup
88
88
 
@@ -302,13 +302,13 @@ Each redirect URI must be https on a public host name, or http on a loopback add
302
302
 
303
303
  ### Absent is not false
304
304
 
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
+ 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 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".
306
306
 
307
307
  ```ruby
308
308
  result.vpn? # false when absent, for when you only want the flag
309
309
  result.included?(:is_vpn) # false on Unlimited: not in your plan
310
310
  result.location.key?('city') # false on Unlimited
311
- result.trial_expired == true # a free-plan key's daily trial is spent
311
+ result.trial_expired == true # a free-plan key's trial is spent
312
312
  result.cap_reached == true # a paid key is past its overage cap
313
313
  ```
314
314
 
@@ -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.17
6
+ The version of the OpenAPI document: 2026.11.20
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -165,7 +165,7 @@ module InternetData
165
165
  end
166
166
 
167
167
  # Download
168
- # Answers `302`; the bytes come straight from object storage rather than through this API. Follow the redirect.
168
+ # Downloads one file of a database: the answer is a `302` to time-limited object storage, so follow the redirect. The bytes come straight from object storage rather than through this API.
169
169
  # @param id [String] Database identifier (e.g. `vpn_ip_v1`, `resproxy_provider_v1`).
170
170
  # @param format [DatabaseFormat] Database file format.
171
171
  # @param [Hash] opts the optional parameters
@@ -177,7 +177,7 @@ module InternetData
177
177
  end
178
178
 
179
179
  # Download
180
- # Answers `302`; the bytes come straight from object storage rather than through this API. Follow the redirect.
180
+ # Downloads one file of a database: the answer is a `302` to time-limited object storage, so follow the redirect. The bytes come straight from object storage rather than through this API.
181
181
  # @param id [String] Database identifier (e.g. `vpn_ip_v1`, `resproxy_provider_v1`).
182
182
  # @param format [DatabaseFormat] Database file format.
183
183
  # @param [Hash] opts the optional parameters
@@ -306,7 +306,7 @@ module InternetData
306
306
  end
307
307
 
308
308
  # History
309
- # Refusals are listed too: a denial is what answers \"it stopped working\", and its absence answers nothing.
309
+ # Lists your organization's recent database downloads, newest first, refused ones included, so a download that stopped working shows why.
310
310
  # @param [Hash] opts the optional parameters
311
311
  # @option opts [Integer] :limit How many attempts to return. Clamped to 200. (default to 50)
312
312
  # @return [DownloadList]
@@ -316,7 +316,7 @@ module InternetData
316
316
  end
317
317
 
318
318
  # History
319
- # Refusals are listed too: a denial is what answers \"it stopped working\", and its absence answers nothing.
319
+ # Lists your organization's recent database downloads, newest first, refused ones included, so a download that stopped working shows why.
320
320
  # @param [Hash] opts the optional parameters
321
321
  # @option opts [Integer] :limit How many attempts to return. Clamped to 200. (default to 50)
322
322
  # @return [Array<(DownloadList, Integer, Hash)>] DownloadList data, response status code and response headers
@@ -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.17
6
+ The version of the OpenAPI document: 2026.11.20
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.17
6
+ The version of the OpenAPI document: 2026.11.20
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.17
6
+ The version of the OpenAPI document: 2026.11.20
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -145,7 +145,7 @@ module InternetData
145
145
  end
146
146
 
147
147
  # On answers to a key on the free plan only: false while its organization's
148
- # daily trial lasts, true once the answer has Unlimited's; nil on any other.
148
+ # trial of every field lasts, true once the answer has Unlimited's; nil on any other.
149
149
  def trial_expired
150
150
  @raw['trial_expired']
151
151
  end
@@ -26,7 +26,7 @@ module InternetData
26
26
  # @param api_key [String, nil] without one a lookup is on Unlimited, the free
27
27
  # plan: an address's location, network, company, abuse contact, reverse
28
28
  # DNS and every flag but the paid ones, an AS's registration and a
29
- # domain's, limited per address per minute. A batch needs a key on a paid
29
+ # domain's, with no daily or monthly cap. A batch needs a key on a paid
30
30
  # plan, and the databases a key carrying the `db.download` scope. It is
31
31
  # trimmed, and a key of blanks alone is no key.
32
32
  # @param base_url [String] the API; {#oauth} signs in at its apex, `api.`
@@ -187,7 +187,7 @@ module InternetData
187
187
  #
188
188
  # Usage counts against the ALLOWANCE WINDOW - on a paid plan the
189
189
  # anniversary of the subscription, not the calendar month and not the
190
- # billing period, and on the free plan the UTC day - and it is the same
190
+ # billing period, and on the free plan its trial - and it is the same
191
191
  # number a lookup is gated on. It can lag by a few seconds, because
192
192
  # requests are counted in memory and flushed in aggregate.
193
193
  #
@@ -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.17
6
+ The version of the OpenAPI document: 2026.11.20
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -6,7 +6,9 @@ module InternetData
6
6
  # As with {Result}, an absent member is one your plan does not include, and
7
7
  # reads as `nil`, never as false: Unlimited answers whether the domain is
8
8
  # registered and which record types it has, and paid plans and the trial add
9
- # the records themselves, its organization's IP ranges and Disposable Domain.
9
+ # the records themselves, the network announcing each address, the other
10
+ # domains on its first IPv4 address, its organization's IP ranges, Disposable
11
+ # Domain, its home page and the domains redirecting or linking to it.
10
12
  # Each flag has the three readers {Result}'s have: `is_disposable`,
11
13
  # `disposable?` and `included?(:is_disposable)`.
12
14
  class DomainResult
@@ -94,6 +96,20 @@ module InternetData
94
96
  @raw['dns']
95
97
  end
96
98
 
99
+ # The network announcing each address in `dns.a` and then `dns.aaaa`, from
100
+ # IP ASN, as wire hashes (`result.hosting.first['asn']['name']`); `[]` where
101
+ # it resolves to none. Paid plans and the trial.
102
+ def hosting
103
+ @raw['hosting']
104
+ end
105
+
106
+ # From IP Hosted Domains, as a wire hash: the other registered domains on
107
+ # its first IPv4 address (`ip`), how many (`total`) and up to 10, the most
108
+ # popular first (`domains`). Paid plans and the trial.
109
+ def cohosted_domains
110
+ @raw['cohosted_domains']
111
+ end
112
+
97
113
  # Its organization's IP ranges, from Domain IP Ranges. Paid plans and the
98
114
  # trial.
99
115
  def ip_ranges
@@ -106,8 +122,29 @@ module InternetData
106
122
  @raw['disposable']
107
123
  end
108
124
 
125
+ # What our crawl last read of its home page, as a wire hash: `url`,
126
+ # `title`, `description`, `last_seen` and the external hosts it links to
127
+ # (`links`), each empty where it holds none. Paid plans and the trial.
128
+ def web
129
+ @raw['web']
130
+ end
131
+
132
+ # The registered domains whose home page redirects to it, as a wire hash:
133
+ # how many (`total`) and up to 10, the most popular first (`domains`). Paid
134
+ # plans and the trial.
135
+ def redirects
136
+ @raw['redirects']
137
+ end
138
+
139
+ # The registered domains whose home page links to it, as a wire hash: how
140
+ # many (`total`) and up to 10, the most popular first (`domains`). Paid
141
+ # plans and the trial.
142
+ def backlinks
143
+ @raw['backlinks']
144
+ end
145
+
109
146
  # On answers to a key on the free plan only: false while its organization's
110
- # daily trial lasts, true once the answer has Unlimited's; nil on any other.
147
+ # trial of every field lasts, true once the answer has Unlimited's; nil on any other.
111
148
  def trial_expired
112
149
  @raw['trial_expired']
113
150
  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.17
6
+ The version of the OpenAPI document: 2026.11.20
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.17
6
+ The version of the OpenAPI document: 2026.11.20
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -31,10 +31,10 @@ module InternetData
31
31
  # The announced prefix covering the address.
32
32
  attr_accessor :prefix
33
33
 
34
- # The country its registry assigned it to. Paid plans and the trial.
34
+ # The country its registry assigned it to.
35
35
  attr_accessor :country
36
36
 
37
- # The announcement's RPKI status. Paid plans and the trial.
37
+ # The announcement's RPKI status.
38
38
  attr_accessor :rpki_status
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
@@ -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.17
6
+ The version of the OpenAPI document: 2026.11.20
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.17
6
+ The version of the OpenAPI document: 2026.11.20
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -87,7 +87,7 @@ module InternetData
87
87
 
88
88
  attr_accessor :hosted_domains
89
89
 
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.
90
+ # 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 fields.
91
91
  attr_accessor :trial_expired
92
92
 
93
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.
@@ -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.17
6
+ The version of the OpenAPI document: 2026.11.20
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.17
6
+ The version of the OpenAPI document: 2026.11.20
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.17
6
+ The version of the OpenAPI document: 2026.11.20
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.17
6
+ The version of the OpenAPI document: 2026.11.20
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.17
6
+ The version of the OpenAPI document: 2026.11.20
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.17
6
+ The version of the OpenAPI document: 2026.11.20
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -0,0 +1,222 @@
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.20
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 IP Hosted Domains: the other registered domains on the domain's first IPv4 address, how many and the 10 most popular. Paid plans and the trial.
18
+ class CohostedDomains < ApiModelBase
19
+ # The domain's first IPv4 address, `''` where it has none.
20
+ attr_accessor :ip
21
+
22
+ # How many other registered domains resolve to it.
23
+ attr_accessor :total
24
+
25
+ # Up to 10 of them, the most popular first, the domain itself left out; `[]` when none does.
26
+ attr_accessor :domains
27
+
28
+ # Attribute mapping from ruby-style variable name to JSON key.
29
+ def self.attribute_map
30
+ {
31
+ :'ip' => :'ip',
32
+ :'total' => :'total',
33
+ :'domains' => :'domains'
34
+ }
35
+ end
36
+
37
+ # Returns attribute mapping this model knows about
38
+ def self.acceptable_attribute_map
39
+ attribute_map
40
+ end
41
+
42
+ # Returns all the JSON keys this model knows about
43
+ def self.acceptable_attributes
44
+ acceptable_attribute_map.values
45
+ end
46
+
47
+ # Attribute type mapping.
48
+ def self.openapi_types
49
+ {
50
+ :'ip' => :'String',
51
+ :'total' => :'Integer',
52
+ :'domains' => :'Array<String>'
53
+ }
54
+ end
55
+
56
+ # List of attributes with nullable: true
57
+ def self.openapi_nullable
58
+ Set.new([
59
+ ])
60
+ end
61
+
62
+ # Initializes the object
63
+ # @param [Hash] attributes Model attributes in the form of hash
64
+ def initialize(attributes = {})
65
+ if (!attributes.is_a?(Hash))
66
+ fail ArgumentError, "The input argument (attributes) must be a hash in `InternetData::CohostedDomains` initialize method"
67
+ end
68
+
69
+ # check to see if the attribute exists and convert string to symbol for hash key
70
+ acceptable_attribute_map = self.class.acceptable_attribute_map
71
+ attributes = attributes.each_with_object({}) { |(k, v), h|
72
+ if (!acceptable_attribute_map.key?(k.to_sym))
73
+ fail ArgumentError, "`#{k}` is not a valid attribute in `InternetData::CohostedDomains`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
74
+ end
75
+ h[k.to_sym] = v
76
+ }
77
+
78
+ if attributes.key?(:'ip')
79
+ self.ip = attributes[:'ip']
80
+ else
81
+ self.ip = nil
82
+ end
83
+
84
+ if attributes.key?(:'total')
85
+ self.total = attributes[:'total']
86
+ else
87
+ self.total = nil
88
+ end
89
+
90
+ if attributes.key?(:'domains')
91
+ if (value = attributes[:'domains']).is_a?(Array)
92
+ self.domains = value
93
+ end
94
+ else
95
+ self.domains = nil
96
+ end
97
+ end
98
+
99
+ # Show invalid properties with the reasons. Usually used together with valid?
100
+ # @return Array for valid properties with the reasons
101
+ def list_invalid_properties
102
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
103
+ invalid_properties = Array.new
104
+ if @ip.nil?
105
+ invalid_properties.push('invalid value for "ip", ip cannot be nil.')
106
+ end
107
+
108
+ if @total.nil?
109
+ invalid_properties.push('invalid value for "total", total cannot be nil.')
110
+ end
111
+
112
+ if @domains.nil?
113
+ invalid_properties.push('invalid value for "domains", domains cannot be nil.')
114
+ end
115
+
116
+ invalid_properties
117
+ end
118
+
119
+ # Check to see if the all the properties in the model are valid
120
+ # @return true if the model is valid
121
+ def valid?
122
+ warn '[DEPRECATED] the `valid?` method is obsolete'
123
+ return false if @ip.nil?
124
+ return false if @total.nil?
125
+ return false if @domains.nil?
126
+ true
127
+ end
128
+
129
+ # Custom attribute writer method with validation
130
+ # @param [Object] ip Value to be assigned
131
+ def ip=(ip)
132
+ if ip.nil?
133
+ fail ArgumentError, 'ip cannot be nil'
134
+ end
135
+
136
+ @ip = ip
137
+ end
138
+
139
+ # Custom attribute writer method with validation
140
+ # @param [Object] total Value to be assigned
141
+ def total=(total)
142
+ if total.nil?
143
+ fail ArgumentError, 'total cannot be nil'
144
+ end
145
+
146
+ @total = total
147
+ end
148
+
149
+ # Custom attribute writer method with validation
150
+ # @param [Object] domains Value to be assigned
151
+ def domains=(domains)
152
+ if domains.nil?
153
+ fail ArgumentError, 'domains cannot be nil'
154
+ end
155
+
156
+ @domains = domains
157
+ end
158
+
159
+ # Checks equality by comparing each attribute.
160
+ # @param [Object] Object to be compared
161
+ def ==(o)
162
+ return true if self.equal?(o)
163
+ self.class == o.class &&
164
+ ip == o.ip &&
165
+ total == o.total &&
166
+ domains == o.domains
167
+ end
168
+
169
+ # @see the `==` method
170
+ # @param [Object] Object to be compared
171
+ def eql?(o)
172
+ self == o
173
+ end
174
+
175
+ # Calculates hash code according to all attributes.
176
+ # @return [Integer] Hash code
177
+ def hash
178
+ [ip, total, domains].hash
179
+ end
180
+
181
+ # Builds the object from hash
182
+ # @param [Hash] attributes Model attributes in the form of hash
183
+ # @return [Object] Returns the model itself
184
+ def self.build_from_hash(attributes)
185
+ return nil unless attributes.is_a?(Hash)
186
+ attributes = attributes.transform_keys(&:to_sym)
187
+ transformed_hash = {}
188
+ openapi_types.each_pair do |key, type|
189
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
190
+ transformed_hash["#{key}"] = nil
191
+ elsif type =~ /\AArray<(.*)>/i
192
+ # check to ensure the input is an array given that the attribute
193
+ # is documented as an array but the input is not
194
+ if attributes[attribute_map[key]].is_a?(Array)
195
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
196
+ end
197
+ elsif !attributes[attribute_map[key]].nil?
198
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
199
+ end
200
+ end
201
+ new(transformed_hash)
202
+ end
203
+
204
+ # Returns the object in the form of hash
205
+ # @return [Hash] Returns the object in the form of hash
206
+ def to_hash
207
+ hash = {}
208
+ self.class.attribute_map.each_pair do |attr, param|
209
+ value = self.send(attr)
210
+ if value.nil?
211
+ is_nullable = self.class.openapi_nullable.include?(attr)
212
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
213
+ end
214
+
215
+ hash[param] = _to_hash(value)
216
+ end
217
+ hash
218
+ end
219
+
220
+ end
221
+
222
+ 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.17
6
+ The version of the OpenAPI document: 2026.11.20
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.17
6
+ The version of the OpenAPI document: 2026.11.20
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.17
6
+ The version of the OpenAPI document: 2026.11.20
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.17
6
+ The version of the OpenAPI document: 2026.11.20
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.17
6
+ The version of the OpenAPI document: 2026.11.20
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.17
6
+ The version of the OpenAPI document: 2026.11.20
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0