internetdata 2.14.3 → 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.
@@ -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
@@ -390,6 +390,12 @@ module InternetData
390
390
  'DomainIpRanges' => %i[domain redirects_to total ipv4 ranges],
391
391
  'DomainIpRange' => %i[range name country],
392
392
  'DisposableDetail' => [],
393
+ 'DomainHost' => %i[ip asn],
394
+ 'CohostedDomains' => %i[ip total domains],
395
+ 'DomainWeb' => %i[url title description last_seen links],
396
+ 'DomainWebLinks' => %i[total hosts],
397
+ 'DomainRedirects' => %i[total domains],
398
+ 'DomainBacklinks' => %i[total domains],
393
399
  'BatchLookupError' => %i[status error],
394
400
  'Entitlement' => %i[org_id apikey plan usage],
395
401
  'EntitlementApikey' => %i[id expires allowed_cidrs],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InternetData
4
- VERSION = '2.14.3'
4
+ VERSION = '2.15.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: internetdata
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.14.3
4
+ version: 2.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mslm Dev
@@ -75,6 +75,7 @@ files:
75
75
  - lib/internetdata/models/carrier_detail.rb
76
76
  - lib/internetdata/models/class_detail.rb
77
77
  - lib/internetdata/models/client_registration.rb
78
+ - lib/internetdata/models/cohosted_domains.rb
78
79
  - lib/internetdata/models/company.rb
79
80
  - lib/internetdata/models/database.rb
80
81
  - lib/internetdata/models/database_checksums_response.rb
@@ -91,10 +92,15 @@ files:
91
92
  - lib/internetdata/models/dns_mx_record.rb
92
93
  - lib/internetdata/models/dns_ns_record.rb
93
94
  - lib/internetdata/models/dns_resolver_detail.rb
95
+ - lib/internetdata/models/domain_backlinks.rb
94
96
  - lib/internetdata/models/domain_dns.rb
97
+ - lib/internetdata/models/domain_host.rb
95
98
  - lib/internetdata/models/domain_ip_range.rb
96
99
  - lib/internetdata/models/domain_ip_ranges.rb
97
100
  - lib/internetdata/models/domain_lookup_response.rb
101
+ - lib/internetdata/models/domain_redirects.rb
102
+ - lib/internetdata/models/domain_web.rb
103
+ - lib/internetdata/models/domain_web_links.rb
98
104
  - lib/internetdata/models/download.rb
99
105
  - lib/internetdata/models/download_list.rb
100
106
  - lib/internetdata/models/entitlement.rb