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
@@ -0,0 +1,195 @@
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
+ # The registered domains whose home page redirects to this one, how many and the 10 most popular. Paid plans and the trial.
18
+ class DomainRedirects < ApiModelBase
19
+ # How many registered domains have a home page that redirects to this domain.
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::DomainRedirects` 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::DomainRedirects`. 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
+ else
84
+ self.domains = nil
85
+ end
86
+ end
87
+
88
+ # Show invalid properties with the reasons. Usually used together with valid?
89
+ # @return Array for valid properties with the reasons
90
+ def list_invalid_properties
91
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
92
+ invalid_properties = Array.new
93
+ if @total.nil?
94
+ invalid_properties.push('invalid value for "total", total cannot be nil.')
95
+ end
96
+
97
+ if @domains.nil?
98
+ invalid_properties.push('invalid value for "domains", domains cannot be nil.')
99
+ end
100
+
101
+ invalid_properties
102
+ end
103
+
104
+ # Check to see if the all the properties in the model are valid
105
+ # @return true if the model is valid
106
+ def valid?
107
+ warn '[DEPRECATED] the `valid?` method is obsolete'
108
+ return false if @total.nil?
109
+ return false if @domains.nil?
110
+ true
111
+ end
112
+
113
+ # Custom attribute writer method with validation
114
+ # @param [Object] total Value to be assigned
115
+ def total=(total)
116
+ if total.nil?
117
+ fail ArgumentError, 'total cannot be nil'
118
+ end
119
+
120
+ @total = total
121
+ end
122
+
123
+ # Custom attribute writer method with validation
124
+ # @param [Object] domains Value to be assigned
125
+ def domains=(domains)
126
+ if domains.nil?
127
+ fail ArgumentError, 'domains cannot be nil'
128
+ end
129
+
130
+ @domains = domains
131
+ end
132
+
133
+ # Checks equality by comparing each attribute.
134
+ # @param [Object] Object to be compared
135
+ def ==(o)
136
+ return true if self.equal?(o)
137
+ self.class == o.class &&
138
+ total == o.total &&
139
+ domains == o.domains
140
+ end
141
+
142
+ # @see the `==` method
143
+ # @param [Object] Object to be compared
144
+ def eql?(o)
145
+ self == o
146
+ end
147
+
148
+ # Calculates hash code according to all attributes.
149
+ # @return [Integer] Hash code
150
+ def hash
151
+ [total, domains].hash
152
+ end
153
+
154
+ # Builds the object from hash
155
+ # @param [Hash] attributes Model attributes in the form of hash
156
+ # @return [Object] Returns the model itself
157
+ def self.build_from_hash(attributes)
158
+ return nil unless attributes.is_a?(Hash)
159
+ attributes = attributes.transform_keys(&:to_sym)
160
+ transformed_hash = {}
161
+ openapi_types.each_pair do |key, type|
162
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
163
+ transformed_hash["#{key}"] = nil
164
+ elsif type =~ /\AArray<(.*)>/i
165
+ # check to ensure the input is an array given that the attribute
166
+ # is documented as an array but the input is not
167
+ if attributes[attribute_map[key]].is_a?(Array)
168
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
169
+ end
170
+ elsif !attributes[attribute_map[key]].nil?
171
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
172
+ end
173
+ end
174
+ new(transformed_hash)
175
+ end
176
+
177
+ # Returns the object in the form of hash
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_hash
180
+ hash = {}
181
+ self.class.attribute_map.each_pair do |attr, param|
182
+ value = self.send(attr)
183
+ if value.nil?
184
+ is_nullable = self.class.openapi_nullable.include?(attr)
185
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
186
+ end
187
+
188
+ hash[param] = _to_hash(value)
189
+ end
190
+ hash
191
+ end
192
+
193
+ end
194
+
195
+ end
@@ -0,0 +1,273 @@
1
+ =begin
2
+ #InternetData API
3
+
4
+ #The InternetData API: look up what every database InternetData publishes says about an IP address, an AS or a domain, download the databases your organization is licensed for, and manage the account behind them. See https://docs.internetdata.io for guides and https://github.com/internetdata for the official client libraries.
5
+
6
+ The version of the OpenAPI document: 2026.11.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
+ # What our crawl last read of the domain's own home page, every member empty where it holds none. Paid plans and the trial.
18
+ class DomainWeb < ApiModelBase
19
+ # The URL of the home page read.
20
+ attr_accessor :url
21
+
22
+ # An English page's title.
23
+ attr_accessor :title
24
+
25
+ # An English page's description.
26
+ attr_accessor :description
27
+
28
+ # The day it was last read.
29
+ attr_accessor :last_seen
30
+
31
+ attr_accessor :links
32
+
33
+ # Attribute mapping from ruby-style variable name to JSON key.
34
+ def self.attribute_map
35
+ {
36
+ :'url' => :'url',
37
+ :'title' => :'title',
38
+ :'description' => :'description',
39
+ :'last_seen' => :'last_seen',
40
+ :'links' => :'links'
41
+ }
42
+ end
43
+
44
+ # Returns attribute mapping this model knows about
45
+ def self.acceptable_attribute_map
46
+ attribute_map
47
+ end
48
+
49
+ # Returns all the JSON keys this model knows about
50
+ def self.acceptable_attributes
51
+ acceptable_attribute_map.values
52
+ end
53
+
54
+ # Attribute type mapping.
55
+ def self.openapi_types
56
+ {
57
+ :'url' => :'String',
58
+ :'title' => :'String',
59
+ :'description' => :'String',
60
+ :'last_seen' => :'String',
61
+ :'links' => :'DomainWebLinks'
62
+ }
63
+ end
64
+
65
+ # List of attributes with nullable: true
66
+ def self.openapi_nullable
67
+ Set.new([
68
+ ])
69
+ end
70
+
71
+ # Initializes the object
72
+ # @param [Hash] attributes Model attributes in the form of hash
73
+ def initialize(attributes = {})
74
+ if (!attributes.is_a?(Hash))
75
+ fail ArgumentError, "The input argument (attributes) must be a hash in `InternetData::DomainWeb` initialize method"
76
+ end
77
+
78
+ # check to see if the attribute exists and convert string to symbol for hash key
79
+ acceptable_attribute_map = self.class.acceptable_attribute_map
80
+ attributes = attributes.each_with_object({}) { |(k, v), h|
81
+ if (!acceptable_attribute_map.key?(k.to_sym))
82
+ fail ArgumentError, "`#{k}` is not a valid attribute in `InternetData::DomainWeb`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
83
+ end
84
+ h[k.to_sym] = v
85
+ }
86
+
87
+ if attributes.key?(:'url')
88
+ self.url = attributes[:'url']
89
+ else
90
+ self.url = nil
91
+ end
92
+
93
+ if attributes.key?(:'title')
94
+ self.title = attributes[:'title']
95
+ else
96
+ self.title = nil
97
+ end
98
+
99
+ if attributes.key?(:'description')
100
+ self.description = attributes[:'description']
101
+ else
102
+ self.description = nil
103
+ end
104
+
105
+ if attributes.key?(:'last_seen')
106
+ self.last_seen = attributes[:'last_seen']
107
+ else
108
+ self.last_seen = nil
109
+ end
110
+
111
+ if attributes.key?(:'links')
112
+ self.links = attributes[:'links']
113
+ else
114
+ self.links = nil
115
+ end
116
+ end
117
+
118
+ # Show invalid properties with the reasons. Usually used together with valid?
119
+ # @return Array for valid properties with the reasons
120
+ def list_invalid_properties
121
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
122
+ invalid_properties = Array.new
123
+ if @url.nil?
124
+ invalid_properties.push('invalid value for "url", url cannot be nil.')
125
+ end
126
+
127
+ if @title.nil?
128
+ invalid_properties.push('invalid value for "title", title cannot be nil.')
129
+ end
130
+
131
+ if @description.nil?
132
+ invalid_properties.push('invalid value for "description", description cannot be nil.')
133
+ end
134
+
135
+ if @last_seen.nil?
136
+ invalid_properties.push('invalid value for "last_seen", last_seen cannot be nil.')
137
+ end
138
+
139
+ if @links.nil?
140
+ invalid_properties.push('invalid value for "links", links cannot be nil.')
141
+ end
142
+
143
+ invalid_properties
144
+ end
145
+
146
+ # Check to see if the all the properties in the model are valid
147
+ # @return true if the model is valid
148
+ def valid?
149
+ warn '[DEPRECATED] the `valid?` method is obsolete'
150
+ return false if @url.nil?
151
+ return false if @title.nil?
152
+ return false if @description.nil?
153
+ return false if @last_seen.nil?
154
+ return false if @links.nil?
155
+ true
156
+ end
157
+
158
+ # Custom attribute writer method with validation
159
+ # @param [Object] url Value to be assigned
160
+ def url=(url)
161
+ if url.nil?
162
+ fail ArgumentError, 'url cannot be nil'
163
+ end
164
+
165
+ @url = url
166
+ end
167
+
168
+ # Custom attribute writer method with validation
169
+ # @param [Object] title Value to be assigned
170
+ def title=(title)
171
+ if title.nil?
172
+ fail ArgumentError, 'title cannot be nil'
173
+ end
174
+
175
+ @title = title
176
+ end
177
+
178
+ # Custom attribute writer method with validation
179
+ # @param [Object] description Value to be assigned
180
+ def description=(description)
181
+ if description.nil?
182
+ fail ArgumentError, 'description cannot be nil'
183
+ end
184
+
185
+ @description = description
186
+ end
187
+
188
+ # Custom attribute writer method with validation
189
+ # @param [Object] last_seen Value to be assigned
190
+ def last_seen=(last_seen)
191
+ if last_seen.nil?
192
+ fail ArgumentError, 'last_seen cannot be nil'
193
+ end
194
+
195
+ @last_seen = last_seen
196
+ end
197
+
198
+ # Custom attribute writer method with validation
199
+ # @param [Object] links Value to be assigned
200
+ def links=(links)
201
+ if links.nil?
202
+ fail ArgumentError, 'links cannot be nil'
203
+ end
204
+
205
+ @links = links
206
+ end
207
+
208
+ # Checks equality by comparing each attribute.
209
+ # @param [Object] Object to be compared
210
+ def ==(o)
211
+ return true if self.equal?(o)
212
+ self.class == o.class &&
213
+ url == o.url &&
214
+ title == o.title &&
215
+ description == o.description &&
216
+ last_seen == o.last_seen &&
217
+ links == o.links
218
+ end
219
+
220
+ # @see the `==` method
221
+ # @param [Object] Object to be compared
222
+ def eql?(o)
223
+ self == o
224
+ end
225
+
226
+ # Calculates hash code according to all attributes.
227
+ # @return [Integer] Hash code
228
+ def hash
229
+ [url, title, description, last_seen, links].hash
230
+ end
231
+
232
+ # Builds the object from hash
233
+ # @param [Hash] attributes Model attributes in the form of hash
234
+ # @return [Object] Returns the model itself
235
+ def self.build_from_hash(attributes)
236
+ return nil unless attributes.is_a?(Hash)
237
+ attributes = attributes.transform_keys(&:to_sym)
238
+ transformed_hash = {}
239
+ openapi_types.each_pair do |key, type|
240
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
241
+ transformed_hash["#{key}"] = nil
242
+ elsif type =~ /\AArray<(.*)>/i
243
+ # check to ensure the input is an array given that the attribute
244
+ # is documented as an array but the input is not
245
+ if attributes[attribute_map[key]].is_a?(Array)
246
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
247
+ end
248
+ elsif !attributes[attribute_map[key]].nil?
249
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
250
+ end
251
+ end
252
+ new(transformed_hash)
253
+ end
254
+
255
+ # Returns the object in the form of hash
256
+ # @return [Hash] Returns the object in the form of hash
257
+ def to_hash
258
+ hash = {}
259
+ self.class.attribute_map.each_pair do |attr, param|
260
+ value = self.send(attr)
261
+ if value.nil?
262
+ is_nullable = self.class.openapi_nullable.include?(attr)
263
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
264
+ end
265
+
266
+ hash[param] = _to_hash(value)
267
+ end
268
+ hash
269
+ end
270
+
271
+ end
272
+
273
+ end
@@ -0,0 +1,195 @@
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
+ # The external hosts the home page links to.
18
+ class DomainWebLinks < ApiModelBase
19
+ # How many external hosts the home page links to.
20
+ attr_accessor :total
21
+
22
+ # Up to 10 of them; `[]` when it links to none.
23
+ attr_accessor :hosts
24
+
25
+ # Attribute mapping from ruby-style variable name to JSON key.
26
+ def self.attribute_map
27
+ {
28
+ :'total' => :'total',
29
+ :'hosts' => :'hosts'
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
+ :'hosts' => :'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::DomainWebLinks` 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::DomainWebLinks`. 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?(:'hosts')
80
+ if (value = attributes[:'hosts']).is_a?(Array)
81
+ self.hosts = value
82
+ end
83
+ else
84
+ self.hosts = nil
85
+ end
86
+ end
87
+
88
+ # Show invalid properties with the reasons. Usually used together with valid?
89
+ # @return Array for valid properties with the reasons
90
+ def list_invalid_properties
91
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
92
+ invalid_properties = Array.new
93
+ if @total.nil?
94
+ invalid_properties.push('invalid value for "total", total cannot be nil.')
95
+ end
96
+
97
+ if @hosts.nil?
98
+ invalid_properties.push('invalid value for "hosts", hosts cannot be nil.')
99
+ end
100
+
101
+ invalid_properties
102
+ end
103
+
104
+ # Check to see if the all the properties in the model are valid
105
+ # @return true if the model is valid
106
+ def valid?
107
+ warn '[DEPRECATED] the `valid?` method is obsolete'
108
+ return false if @total.nil?
109
+ return false if @hosts.nil?
110
+ true
111
+ end
112
+
113
+ # Custom attribute writer method with validation
114
+ # @param [Object] total Value to be assigned
115
+ def total=(total)
116
+ if total.nil?
117
+ fail ArgumentError, 'total cannot be nil'
118
+ end
119
+
120
+ @total = total
121
+ end
122
+
123
+ # Custom attribute writer method with validation
124
+ # @param [Object] hosts Value to be assigned
125
+ def hosts=(hosts)
126
+ if hosts.nil?
127
+ fail ArgumentError, 'hosts cannot be nil'
128
+ end
129
+
130
+ @hosts = hosts
131
+ end
132
+
133
+ # Checks equality by comparing each attribute.
134
+ # @param [Object] Object to be compared
135
+ def ==(o)
136
+ return true if self.equal?(o)
137
+ self.class == o.class &&
138
+ total == o.total &&
139
+ hosts == o.hosts
140
+ end
141
+
142
+ # @see the `==` method
143
+ # @param [Object] Object to be compared
144
+ def eql?(o)
145
+ self == o
146
+ end
147
+
148
+ # Calculates hash code according to all attributes.
149
+ # @return [Integer] Hash code
150
+ def hash
151
+ [total, hosts].hash
152
+ end
153
+
154
+ # Builds the object from hash
155
+ # @param [Hash] attributes Model attributes in the form of hash
156
+ # @return [Object] Returns the model itself
157
+ def self.build_from_hash(attributes)
158
+ return nil unless attributes.is_a?(Hash)
159
+ attributes = attributes.transform_keys(&:to_sym)
160
+ transformed_hash = {}
161
+ openapi_types.each_pair do |key, type|
162
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
163
+ transformed_hash["#{key}"] = nil
164
+ elsif type =~ /\AArray<(.*)>/i
165
+ # check to ensure the input is an array given that the attribute
166
+ # is documented as an array but the input is not
167
+ if attributes[attribute_map[key]].is_a?(Array)
168
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
169
+ end
170
+ elsif !attributes[attribute_map[key]].nil?
171
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
172
+ end
173
+ end
174
+ new(transformed_hash)
175
+ end
176
+
177
+ # Returns the object in the form of hash
178
+ # @return [Hash] Returns the object in the form of hash
179
+ def to_hash
180
+ hash = {}
181
+ self.class.attribute_map.each_pair do |attr, param|
182
+ value = self.send(attr)
183
+ if value.nil?
184
+ is_nullable = self.class.openapi_nullable.include?(attr)
185
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
186
+ end
187
+
188
+ hash[param] = _to_hash(value)
189
+ end
190
+ hash
191
+ end
192
+
193
+ end
194
+
195
+ 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