internetdata 2.5.1 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/internetdata/api/database_v2_api.rb +3 -3
- data/lib/internetdata/api_client.rb +1 -1
- data/lib/internetdata/api_error.rb +1 -1
- data/lib/internetdata/api_model_base.rb +1 -1
- data/lib/internetdata/configuration.rb +1 -1
- data/lib/internetdata/database_api.rb +2 -2
- data/lib/internetdata/errors.rb +5 -4
- data/lib/internetdata/models/database.rb +29 -2
- data/lib/internetdata/models/database_checksums_response.rb +1 -1
- data/lib/internetdata/models/database_format.rb +1 -1
- data/lib/internetdata/models/database_list.rb +1 -1
- data/lib/internetdata/models/database_metadata.rb +1 -1
- data/lib/internetdata/models/database_metadata_column.rb +1 -1
- data/lib/internetdata/models/database_version.rb +1 -1
- data/lib/internetdata/models/db_checksums.rb +1 -1
- data/lib/internetdata/models/device_authorization.rb +1 -1
- data/lib/internetdata/models/download.rb +29 -2
- data/lib/internetdata/models/download_list.rb +1 -1
- data/lib/internetdata/models/error_envelope.rb +1 -1
- data/lib/internetdata/models/oauth_metadata.rb +1 -1
- data/lib/internetdata/models/standing.rb +1 -1
- data/lib/internetdata/models/token_response.rb +1 -1
- data/lib/internetdata/transport.rb +18 -0
- data/lib/internetdata/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 24f8176ed46023d37f3d5ec87a687af367dfd05cc482ae55d3d7454748b207ab
|
|
4
|
+
data.tar.gz: 0032f2c94b9150af34cdf685d5cc58eaa58c8d909ac15a0896032ba425fb8b91
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f82b50a3998b18201cfa0964df7cfdb9caa00eaf0bd390d280ae10695cca33769e1a31a2a88b4c98a0db2ad29d0f4ae97d8be54caa89bf4df6417ae213dc2f0c
|
|
7
|
+
data.tar.gz: 35fc2eaab6d747a2511b11c1fefda87dcc329898fa7e206989cd9d940c2a180d055b29079287e9e3d51f4e001bfce70566e1f68a3c0eedbe0639cf11debba3d1
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -241,7 +241,7 @@ module InternetData
|
|
|
241
241
|
end
|
|
242
242
|
|
|
243
243
|
# List
|
|
244
|
-
# The whole published catalog, with your organization's license beside each entry, so `standing` says whether a database is yours today (`licensed`), was (`expired`), or has never been bought (`unlicensed`).
|
|
244
|
+
# The whole published catalog, with your organization's license beside each entry, so `standing` says whether a database is yours today (`licensed`), was (`expired`), or has never been bought (`unlicensed`). An `open` database downloads whatever its `standing`.
|
|
245
245
|
# @param [Hash] opts the optional parameters
|
|
246
246
|
# @return [DatabaseList]
|
|
247
247
|
def list_databases(opts = {})
|
|
@@ -250,7 +250,7 @@ module InternetData
|
|
|
250
250
|
end
|
|
251
251
|
|
|
252
252
|
# List
|
|
253
|
-
# The whole published catalog, with your organization's license beside each entry, so `standing` says whether a database is yours today (`licensed`), was (`expired`), or has never been bought (`unlicensed`).
|
|
253
|
+
# The whole published catalog, with your organization's license beside each entry, so `standing` says whether a database is yours today (`licensed`), was (`expired`), or has never been bought (`unlicensed`). An `open` database downloads whatever its `standing`.
|
|
254
254
|
# @param [Hash] opts the optional parameters
|
|
255
255
|
# @return [Array<(DatabaseList, Integer, Hash)>] DatabaseList data, response status code and response headers
|
|
256
256
|
def list_databases_with_http_info(opts = {})
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
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: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
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: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
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: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -193,8 +193,8 @@ module InternetData
|
|
|
193
193
|
end
|
|
194
194
|
|
|
195
195
|
def redirect_location(id, format, timeout)
|
|
196
|
-
@api.
|
|
197
|
-
raise Error.new(:server_error, 'expected a redirect to object storage')
|
|
196
|
+
_, status, = @api.download_database_v2_with_http_info(id, format, timeout: timeout)
|
|
197
|
+
raise Error.new(:server_error, 'expected a redirect to object storage', status: status)
|
|
198
198
|
rescue ApiError => e
|
|
199
199
|
raise unless e.code == 302
|
|
200
200
|
|
data/lib/internetdata/errors.rb
CHANGED
|
@@ -93,11 +93,12 @@ module InternetData
|
|
|
93
93
|
parsed['rc'].is_a?(String) && !parsed['rc'].empty? ? parsed['rc'] : nil
|
|
94
94
|
end
|
|
95
95
|
|
|
96
|
+
# Seconds as digits, or an HTTP date, and nothing else: `Float()` would also
|
|
97
|
+
# read `0x10`, `1_0` and `1e3` as a wait.
|
|
96
98
|
def self.parse_retry_after(value)
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
return seconds if seconds && seconds >= 0
|
|
99
|
+
value = value.to_s.strip
|
|
100
|
+
return nil if value.empty?
|
|
101
|
+
return Integer(value, 10) if value.match?(/\A\d+\z/)
|
|
101
102
|
|
|
102
103
|
# The header also permits an HTTP date.
|
|
103
104
|
when_at = Time.httpdate(value) rescue nil
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -26,6 +26,9 @@ module InternetData
|
|
|
26
26
|
|
|
27
27
|
attr_accessor :standing
|
|
28
28
|
|
|
29
|
+
# An Open database: any organization downloads it, and fetches its checksums, with no license, under CC BY-SA 4.0 (credit InternetData, https://internetdata.io, and share what you build from it under the same license). `standing` still reports your own license, which grants more where you hold one.
|
|
30
|
+
attr_accessor :open
|
|
31
|
+
|
|
29
32
|
# What your license permits you to do with the data. Null when there is no license, which is every family with standing `unlicensed`.
|
|
30
33
|
attr_accessor :license_type
|
|
31
34
|
|
|
@@ -72,6 +75,7 @@ module InternetData
|
|
|
72
75
|
:'name' => :'name',
|
|
73
76
|
:'summary' => :'summary',
|
|
74
77
|
:'standing' => :'standing',
|
|
78
|
+
:'open' => :'open',
|
|
75
79
|
:'license_type' => :'license_type',
|
|
76
80
|
:'starts' => :'starts',
|
|
77
81
|
:'expires' => :'expires',
|
|
@@ -98,6 +102,7 @@ module InternetData
|
|
|
98
102
|
:'name' => :'String',
|
|
99
103
|
:'summary' => :'String',
|
|
100
104
|
:'standing' => :'Standing',
|
|
105
|
+
:'open' => :'Boolean',
|
|
101
106
|
:'license_type' => :'String',
|
|
102
107
|
:'starts' => :'Time',
|
|
103
108
|
:'expires' => :'Time',
|
|
@@ -158,6 +163,12 @@ module InternetData
|
|
|
158
163
|
self.standing = nil
|
|
159
164
|
end
|
|
160
165
|
|
|
166
|
+
if attributes.key?(:'open')
|
|
167
|
+
self.open = attributes[:'open']
|
|
168
|
+
else
|
|
169
|
+
self.open = nil
|
|
170
|
+
end
|
|
171
|
+
|
|
161
172
|
if attributes.key?(:'license_type')
|
|
162
173
|
self.license_type = attributes[:'license_type']
|
|
163
174
|
else
|
|
@@ -218,6 +229,10 @@ module InternetData
|
|
|
218
229
|
invalid_properties.push('invalid value for "standing", standing cannot be nil.')
|
|
219
230
|
end
|
|
220
231
|
|
|
232
|
+
if @open.nil?
|
|
233
|
+
invalid_properties.push('invalid value for "open", open cannot be nil.')
|
|
234
|
+
end
|
|
235
|
+
|
|
221
236
|
if @versions.nil?
|
|
222
237
|
invalid_properties.push('invalid value for "versions", versions cannot be nil.')
|
|
223
238
|
end
|
|
@@ -233,6 +248,7 @@ module InternetData
|
|
|
233
248
|
return false if @name.nil?
|
|
234
249
|
return false if @summary.nil?
|
|
235
250
|
return false if @standing.nil?
|
|
251
|
+
return false if @open.nil?
|
|
236
252
|
license_type_validator = EnumAttributeValidator.new('String', ["evaluation", "standard", "redistribute"])
|
|
237
253
|
return false unless license_type_validator.valid?(@license_type)
|
|
238
254
|
return false if @versions.nil?
|
|
@@ -279,6 +295,16 @@ module InternetData
|
|
|
279
295
|
@standing = standing
|
|
280
296
|
end
|
|
281
297
|
|
|
298
|
+
# Custom attribute writer method with validation
|
|
299
|
+
# @param [Object] open Value to be assigned
|
|
300
|
+
def open=(open)
|
|
301
|
+
if open.nil?
|
|
302
|
+
fail ArgumentError, 'open cannot be nil'
|
|
303
|
+
end
|
|
304
|
+
|
|
305
|
+
@open = open
|
|
306
|
+
end
|
|
307
|
+
|
|
282
308
|
# Custom attribute writer method checking allowed values (enum).
|
|
283
309
|
# @param [Object] license_type Object to be assigned
|
|
284
310
|
def license_type=(license_type)
|
|
@@ -308,6 +334,7 @@ module InternetData
|
|
|
308
334
|
name == o.name &&
|
|
309
335
|
summary == o.summary &&
|
|
310
336
|
standing == o.standing &&
|
|
337
|
+
open == o.open &&
|
|
311
338
|
license_type == o.license_type &&
|
|
312
339
|
starts == o.starts &&
|
|
313
340
|
expires == o.expires &&
|
|
@@ -325,7 +352,7 @@ module InternetData
|
|
|
325
352
|
# Calculates hash code according to all attributes.
|
|
326
353
|
# @return [Integer] Hash code
|
|
327
354
|
def hash
|
|
328
|
-
[base, name, summary, standing, license_type, starts, expires, renews_at, notice_due_at, versions].hash
|
|
355
|
+
[base, name, summary, standing, open, license_type, starts, expires, renews_at, notice_due_at, versions].hash
|
|
329
356
|
end
|
|
330
357
|
|
|
331
358
|
# Builds the object from hash
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
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: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
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: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
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: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
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: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
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: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
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: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
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: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
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: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -25,6 +25,9 @@ module InternetData
|
|
|
25
25
|
# The evaluation sample rather than the database itself.
|
|
26
26
|
attr_accessor :sample
|
|
27
27
|
|
|
28
|
+
# Taken under the Open license rather than one of your licenses: an Open database downloaded while your organization held no license in term for it.
|
|
29
|
+
attr_accessor :open
|
|
30
|
+
|
|
28
31
|
# Object size at redirect time, NOT bytes delivered: the transfer is a presigned redirect straight to object storage, so we never observe how much of it was taken.
|
|
29
32
|
attr_accessor :bytes
|
|
30
33
|
|
|
@@ -68,6 +71,7 @@ module InternetData
|
|
|
68
71
|
:'format' => :'format',
|
|
69
72
|
:'outcome' => :'outcome',
|
|
70
73
|
:'sample' => :'sample',
|
|
74
|
+
:'open' => :'open',
|
|
71
75
|
:'bytes' => :'bytes',
|
|
72
76
|
:'http_status' => :'http_status',
|
|
73
77
|
:'apikey_id' => :'apikey_id',
|
|
@@ -94,6 +98,7 @@ module InternetData
|
|
|
94
98
|
:'format' => :'String',
|
|
95
99
|
:'outcome' => :'String',
|
|
96
100
|
:'sample' => :'Boolean',
|
|
101
|
+
:'open' => :'Boolean',
|
|
97
102
|
:'bytes' => :'Integer',
|
|
98
103
|
:'http_status' => :'Integer',
|
|
99
104
|
:'apikey_id' => :'String',
|
|
@@ -154,6 +159,12 @@ module InternetData
|
|
|
154
159
|
self.sample = nil
|
|
155
160
|
end
|
|
156
161
|
|
|
162
|
+
if attributes.key?(:'open')
|
|
163
|
+
self.open = attributes[:'open']
|
|
164
|
+
else
|
|
165
|
+
self.open = nil
|
|
166
|
+
end
|
|
167
|
+
|
|
157
168
|
if attributes.key?(:'bytes')
|
|
158
169
|
self.bytes = attributes[:'bytes']
|
|
159
170
|
else
|
|
@@ -212,6 +223,10 @@ module InternetData
|
|
|
212
223
|
invalid_properties.push('invalid value for "sample", sample cannot be nil.')
|
|
213
224
|
end
|
|
214
225
|
|
|
226
|
+
if @open.nil?
|
|
227
|
+
invalid_properties.push('invalid value for "open", open cannot be nil.')
|
|
228
|
+
end
|
|
229
|
+
|
|
215
230
|
if @created.nil?
|
|
216
231
|
invalid_properties.push('invalid value for "created", created cannot be nil.')
|
|
217
232
|
end
|
|
@@ -229,6 +244,7 @@ module InternetData
|
|
|
229
244
|
outcome_validator = EnumAttributeValidator.new('String', ["ok", "unauthorized", "denied", "expired", "unknown", "unavailable"])
|
|
230
245
|
return false unless outcome_validator.valid?(@outcome)
|
|
231
246
|
return false if @sample.nil?
|
|
247
|
+
return false if @open.nil?
|
|
232
248
|
return false if @created.nil?
|
|
233
249
|
true
|
|
234
250
|
end
|
|
@@ -273,6 +289,16 @@ module InternetData
|
|
|
273
289
|
@sample = sample
|
|
274
290
|
end
|
|
275
291
|
|
|
292
|
+
# Custom attribute writer method with validation
|
|
293
|
+
# @param [Object] open Value to be assigned
|
|
294
|
+
def open=(open)
|
|
295
|
+
if open.nil?
|
|
296
|
+
fail ArgumentError, 'open cannot be nil'
|
|
297
|
+
end
|
|
298
|
+
|
|
299
|
+
@open = open
|
|
300
|
+
end
|
|
301
|
+
|
|
276
302
|
# Custom attribute writer method with validation
|
|
277
303
|
# @param [Object] created Value to be assigned
|
|
278
304
|
def created=(created)
|
|
@@ -292,6 +318,7 @@ module InternetData
|
|
|
292
318
|
format == o.format &&
|
|
293
319
|
outcome == o.outcome &&
|
|
294
320
|
sample == o.sample &&
|
|
321
|
+
open == o.open &&
|
|
295
322
|
bytes == o.bytes &&
|
|
296
323
|
http_status == o.http_status &&
|
|
297
324
|
apikey_id == o.apikey_id &&
|
|
@@ -309,7 +336,7 @@ module InternetData
|
|
|
309
336
|
# Calculates hash code according to all attributes.
|
|
310
337
|
# @return [Integer] Hash code
|
|
311
338
|
def hash
|
|
312
|
-
[dataset_id, format, outcome, sample, bytes, http_status, apikey_id, client_ip, user_agent, created].hash
|
|
339
|
+
[dataset_id, format, outcome, sample, open, bytes, http_status, apikey_id, client_ip, user_agent, created].hash
|
|
313
340
|
end
|
|
314
341
|
|
|
315
342
|
# Builds the object from hash
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
#The InternetData API: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
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: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
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: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
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: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
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: 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.10.
|
|
6
|
+
The version of the OpenAPI document: 2026.10.08
|
|
7
7
|
Contact: support@internetdata.io
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
|
9
9
|
Generator version: 7.25.0
|
|
@@ -80,6 +80,24 @@ module InternetData
|
|
|
80
80
|
request
|
|
81
81
|
end
|
|
82
82
|
|
|
83
|
+
# A 2xx the generated client cannot read as the answer it promises is the
|
|
84
|
+
# server's fault, and a retryable :server_error, as it is on the OAuth calls:
|
|
85
|
+
# a proxy's HTML page, a cut-off or empty body, or an object missing a member
|
|
86
|
+
# the spec requires. The generated reader raised a RuntimeError, a
|
|
87
|
+
# JSON::ParserError or an ArgumentError for those, none of them retried, and
|
|
88
|
+
# handed an empty or non-object body back as nil, as if it were the answer.
|
|
89
|
+
def deserialize(response, return_type)
|
|
90
|
+
data = super
|
|
91
|
+
return data unless data.nil?
|
|
92
|
+
|
|
93
|
+
raise Error.new(:server_error, "the API answered with no #{return_type}", status: response.code)
|
|
94
|
+
rescue Error
|
|
95
|
+
raise
|
|
96
|
+
rescue StandardError => e
|
|
97
|
+
raise Error.new(:server_error, "could not read the answer as #{return_type}: #{e.message}",
|
|
98
|
+
status: response.code)
|
|
99
|
+
end
|
|
100
|
+
|
|
83
101
|
# A GET for the presigned link the download endpoint hands out.
|
|
84
102
|
#
|
|
85
103
|
# Built here rather than through {#build_request} so it carries NO
|
data/lib/internetdata/version.rb
CHANGED