internetdata 2.14.3 → 2.16.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 (72) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/lib/internetdata/api/database_v2_api.rb +1 -1
  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/cache.rb +3 -3
  8. data/lib/internetdata/configuration.rb +1 -1
  9. data/lib/internetdata/domain_result.rb +38 -1
  10. data/lib/internetdata/models/abuse_contact.rb +1 -1
  11. data/lib/internetdata/models/asn.rb +35 -1
  12. data/lib/internetdata/models/asn_hosted_domains.rb +1 -1
  13. data/lib/internetdata/models/asn_lookup_response.rb +1 -1
  14. data/lib/internetdata/models/asn_prefix.rb +1 -1
  15. data/lib/internetdata/models/batch_lookup_error.rb +1 -1
  16. data/lib/internetdata/models/bit_torrent_detail.rb +1 -1
  17. data/lib/internetdata/models/bot_detail.rb +242 -0
  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 +50 -2
  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 +1 -1
  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 +49 -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/user_agent_verdict.rb +243 -0
  67. data/lib/internetdata/models/web_detail.rb +1 -1
  68. data/lib/internetdata/models/whois.rb +1 -1
  69. data/lib/internetdata/result.rb +24 -4
  70. data/lib/internetdata/transport.rb +12 -3
  71. data/lib/internetdata/version.rb +1 -1
  72. metadata +9 -1
@@ -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.21
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.20
6
+ The version of the OpenAPI document: 2026.11.21
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.20
6
+ The version of the OpenAPI document: 2026.11.21
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.20
6
+ The version of the OpenAPI document: 2026.11.21
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.20
6
+ The version of the OpenAPI document: 2026.11.21
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.20
6
+ The version of the OpenAPI document: 2026.11.21
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.20
6
+ The version of the OpenAPI document: 2026.11.21
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.20
6
+ The version of the OpenAPI document: 2026.11.21
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.20
6
+ The version of the OpenAPI document: 2026.11.21
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.20
6
+ The version of the OpenAPI document: 2026.11.21
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.20
6
+ The version of the OpenAPI document: 2026.11.21
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.20
6
+ The version of the OpenAPI document: 2026.11.21
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.20
6
+ The version of the OpenAPI document: 2026.11.21
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.20
6
+ The version of the OpenAPI document: 2026.11.21
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.20
6
+ The version of the OpenAPI document: 2026.11.21
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.20
6
+ The version of the OpenAPI document: 2026.11.21
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.20
6
+ The version of the OpenAPI document: 2026.11.21
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -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.21
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 links to this one, how many and the 10 most popular. Paid plans and the trial.
18
+ class DomainBacklinks < ApiModelBase
19
+ # How many registered domains have a home page that links 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::DomainBacklinks` 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::DomainBacklinks`. 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
@@ -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.20
6
+ The version of the OpenAPI document: 2026.11.21
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0