internetdata 1.0.0 → 1.1.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5319d9c11ea38c2debe6a794a88675b15a1fa859b143aff8038494a6dcaed084
4
- data.tar.gz: 919e43190131f93f1e125883d02cbb9aed1d701444bd35becad968ee50104008
3
+ metadata.gz: 802ee4502db9318c455b79e793f909d223406a7fabc659e923b371abee9abab6
4
+ data.tar.gz: 4f7b32db250d94ba37d7074d30d1f3acef307fcd8ece9c9dfda04ebfc132688e
5
5
  SHA512:
6
- metadata.gz: aed277c219dfd96a398f53de465dd74cacc2c767e48d8cccb6fde98c6a2db3de69a89e1ea3652b1922fa247ac2b56c12d6c99a824011b941daf130f3df0d0ad6
7
- data.tar.gz: 6efaab8bd604991aaf06e6db95c18e7391d4f36a65adc41f1345a6ae53f26eca35a3af56dc1a354ead0ff68b9a15f654842b9be3cb3af569a06fa8a2d9f435a3
6
+ metadata.gz: 4905fee70e88b113fcd51d7e4e12ad398d2e1fc6b06ef200d3063ee75253e789b29afc15c3b671becf63126532bb629bb033ad56aad129442e472edc4785b78d
7
+ data.tar.gz: be2af4b6075462fe483f2c3e4d4a10e62acfb667ef9c64b6d4544d366a839abdbb090dfe0ceb955308b023b51e9793c2061a126ad0f42719e40fd0e93056c51b
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # [<img src="https://s3.internetdata.io/internetdata-public/brand/mark.svg" alt="InternetData" width="24"/>](https://internetdata.io/) InternetData Ruby Client Library
1
+ # [<img src="https://s3.internetdata.io/internetdata-public/brand/mark.svg" alt="InternetData" height="28"/>](https://internetdata.io/) InternetData Ruby Client Library
2
2
 
3
3
  [![gem](https://img.shields.io/gem/v/internetdata.svg)](https://rubygems.org/gems/internetdata)
4
4
  [![license](https://img.shields.io/github/license/internetdata/sdk-ruby.svg)](LICENSE)
@@ -37,8 +37,6 @@ end
37
37
 
38
38
  `list` returns one entry per database FAMILY, because a license is held against the family while a download names a specific version. `standing` is `licensed` if the family is yours today, `expired` if the term has ended, and `unlicensed` if it is published but has never been bought. `versions` carries the ids you pass everywhere else, oldest first, and the formats each one is actually built in.
39
39
 
40
- **This listing is not the same for every key.** A database commissioned for a single customer is absent from the catalog for every other organization, rather than being listed as unlicensed. So a listing is only ever an answer about the key that asked. This library never caches one, and you should not carry an answer from one key over to another or treat it as the published catalog.
41
-
42
40
  ### What is inside a database
43
41
 
44
42
  ```ruby
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API. Please see https://docs.internetdata.io/api for more details.
5
5
 
6
- The version of the OpenAPI document: 2026.09.04
6
+ The version of the OpenAPI document: 2026.09.05
7
7
  Contact: dev@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -19,7 +19,8 @@ module InternetData
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Checksums for one published file, to verify a download
22
+ # Checksums
23
+ # Checksums for one published file, so a download can be verified after it lands.
23
24
  # @param id [String] Database identifier (e.g. &#x60;vpn_ip_v1&#x60;, &#x60;resproxy_provider_v1&#x60;).
24
25
  # @param format [String] Database file format.
25
26
  # @param [Hash] opts the optional parameters
@@ -29,7 +30,8 @@ module InternetData
29
30
  data
30
31
  end
31
32
 
32
- # Checksums for one published file, to verify a download
33
+ # Checksums
34
+ # Checksums for one published file, so a download can be verified after it lands.
33
35
  # @param id [String] Database identifier (e.g. &#x60;vpn_ip_v1&#x60;, &#x60;resproxy_provider_v1&#x60;).
34
36
  # @param format [String] Database file format.
35
37
  # @param [Hash] opts the optional parameters
@@ -79,7 +81,7 @@ module InternetData
79
81
  return_type = opts[:debug_return_type] || 'DatabaseChecksumsResponse'
80
82
 
81
83
  # auth_names
82
- auth_names = opts[:debug_auth_names] || ['BearerAuth']
84
+ auth_names = opts[:debug_auth_names] || ['ApiKeyHeaderAuth', 'ApiKeyQueryAuth', 'BearerAuth']
83
85
 
84
86
  new_options = opts.merge(
85
87
  :operation => :"DatabaseV2Api.database_checksum_v2",
@@ -98,7 +100,7 @@ module InternetData
98
100
  return data, status_code, headers
99
101
  end
100
102
 
101
- # What is inside one database - schema, sample rows, row count, sizes
103
+ # Metadata
102
104
  # Poll this to decide whether today's build is worth fetching: it carries `updated` and `entries` without downloading anything. No `format` parameter - one document describes every format the database is built in.
103
105
  # @param id [String] Database identifier (e.g. &#x60;vpn_ip_v1&#x60;, &#x60;resproxy_provider_v1&#x60;).
104
106
  # @param [Hash] opts the optional parameters
@@ -108,7 +110,7 @@ module InternetData
108
110
  data
109
111
  end
110
112
 
111
- # What is inside one database - schema, sample rows, row count, sizes
113
+ # Metadata
112
114
  # Poll this to decide whether today&#39;s build is worth fetching: it carries &#x60;updated&#x60; and &#x60;entries&#x60; without downloading anything. No &#x60;format&#x60; parameter - one document describes every format the database is built in.
113
115
  # @param id [String] Database identifier (e.g. &#x60;vpn_ip_v1&#x60;, &#x60;resproxy_provider_v1&#x60;).
114
116
  # @param [Hash] opts the optional parameters
@@ -148,7 +150,7 @@ module InternetData
148
150
  return_type = opts[:debug_return_type] || 'DatabaseMetadata'
149
151
 
150
152
  # auth_names
151
- auth_names = opts[:debug_auth_names] || ['BearerAuth']
153
+ auth_names = opts[:debug_auth_names] || ['ApiKeyHeaderAuth', 'ApiKeyQueryAuth', 'BearerAuth']
152
154
 
153
155
  new_options = opts.merge(
154
156
  :operation => :"DatabaseV2Api.database_metadata_v2",
@@ -167,7 +169,7 @@ module InternetData
167
169
  return data, status_code, headers
168
170
  end
169
171
 
170
- # Redirect to a time-limited download URL for one database
172
+ # Download
171
173
  # Answers `302`; the bytes come straight from object storage rather than through this API. Follow the redirect.
172
174
  # @param id [String] Database identifier (e.g. &#x60;vpn_ip_v1&#x60;, &#x60;resproxy_provider_v1&#x60;).
173
175
  # @param format [String] Database file format.
@@ -178,7 +180,7 @@ module InternetData
178
180
  nil
179
181
  end
180
182
 
181
- # Redirect to a time-limited download URL for one database
183
+ # Download
182
184
  # Answers &#x60;302&#x60;; the bytes come straight from object storage rather than through this API. Follow the redirect.
183
185
  # @param id [String] Database identifier (e.g. &#x60;vpn_ip_v1&#x60;, &#x60;resproxy_provider_v1&#x60;).
184
186
  # @param format [String] Database file format.
@@ -229,7 +231,7 @@ module InternetData
229
231
  return_type = opts[:debug_return_type]
230
232
 
231
233
  # auth_names
232
- auth_names = opts[:debug_auth_names] || ['BearerAuth']
234
+ auth_names = opts[:debug_auth_names] || ['ApiKeyHeaderAuth', 'ApiKeyQueryAuth', 'BearerAuth']
233
235
 
234
236
  new_options = opts.merge(
235
237
  :operation => :"DatabaseV2Api.download_database_v2",
@@ -248,8 +250,8 @@ module InternetData
248
250
  return data, status_code, headers
249
251
  end
250
252
 
251
- # Every database your organization may see, and where each one stands
252
- # The whole published catalog, with your organization's licence beside each entry, so `standing` says whether a database is yours today (`licensed`), was (`expired`), or has never been bought (`unlicensed`). Databases commissioned for a single customer are not listed to anyone else.
253
+ # List
254
+ # The whole published catalog, with your organization's licence beside each entry, so `standing` says whether a database is yours today (`licensed`), was (`expired`), or has never been bought (`unlicensed`).
253
255
  # @param [Hash] opts the optional parameters
254
256
  # @return [DatabaseList]
255
257
  def list_databases(opts = {})
@@ -257,8 +259,8 @@ module InternetData
257
259
  data
258
260
  end
259
261
 
260
- # Every database your organization may see, and where each one stands
261
- # The whole published catalog, with your organization&#39;s licence beside each entry, so &#x60;standing&#x60; says whether a database is yours today (&#x60;licensed&#x60;), was (&#x60;expired&#x60;), or has never been bought (&#x60;unlicensed&#x60;). Databases commissioned for a single customer are not listed to anyone else.
262
+ # List
263
+ # The whole published catalog, with your organization&#39;s licence beside each entry, so &#x60;standing&#x60; says whether a database is yours today (&#x60;licensed&#x60;), was (&#x60;expired&#x60;), or has never been bought (&#x60;unlicensed&#x60;).
262
264
  # @param [Hash] opts the optional parameters
263
265
  # @return [Array<(DatabaseList, Integer, Hash)>] DatabaseList data, response status code and response headers
264
266
  def list_databases_with_http_info(opts = {})
@@ -286,7 +288,7 @@ module InternetData
286
288
  return_type = opts[:debug_return_type] || 'DatabaseList'
287
289
 
288
290
  # auth_names
289
- auth_names = opts[:debug_auth_names] || ['BearerAuth']
291
+ auth_names = opts[:debug_auth_names] || ['ApiKeyHeaderAuth', 'ApiKeyQueryAuth', 'BearerAuth']
290
292
 
291
293
  new_options = opts.merge(
292
294
  :operation => :"DatabaseV2Api.list_databases",
@@ -305,7 +307,7 @@ module InternetData
305
307
  return data, status_code, headers
306
308
  end
307
309
 
308
- # Your organization's recent download attempts, newest first
310
+ # History
309
311
  # Refusals are listed too: a denial is what answers \"it stopped working\", and its absence answers nothing.
310
312
  # @param [Hash] opts the optional parameters
311
313
  # @option opts [Integer] :limit How many attempts to return. Clamped to 200. (default to 50)
@@ -315,7 +317,7 @@ module InternetData
315
317
  data
316
318
  end
317
319
 
318
- # Your organization&#39;s recent download attempts, newest first
320
+ # History
319
321
  # Refusals are listed too: a denial is what answers \&quot;it stopped working\&quot;, and its absence answers nothing.
320
322
  # @param [Hash] opts the optional parameters
321
323
  # @option opts [Integer] :limit How many attempts to return. Clamped to 200. (default to 50)
@@ -354,7 +356,7 @@ module InternetData
354
356
  return_type = opts[:debug_return_type] || 'DownloadList'
355
357
 
356
358
  # auth_names
357
- auth_names = opts[:debug_auth_names] || ['BearerAuth']
359
+ auth_names = opts[:debug_auth_names] || ['ApiKeyHeaderAuth', 'ApiKeyQueryAuth', 'BearerAuth']
358
360
 
359
361
  new_options = opts.merge(
360
362
  :operation => :"DatabaseV2Api.list_downloads",
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API. Please see https://docs.internetdata.io/api for more details.
5
5
 
6
- The version of the OpenAPI document: 2026.09.04
6
+ The version of the OpenAPI document: 2026.09.05
7
7
  Contact: dev@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. Please see https://docs.internetdata.io/api for more details.
5
5
 
6
- The version of the OpenAPI document: 2026.09.04
6
+ The version of the OpenAPI document: 2026.09.05
7
7
  Contact: dev@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. Please see https://docs.internetdata.io/api for more details.
5
5
 
6
- The version of the OpenAPI document: 2026.09.04
6
+ The version of the OpenAPI document: 2026.09.05
7
7
  Contact: dev@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. Please see https://docs.internetdata.io/api for more details.
5
5
 
6
- The version of the OpenAPI document: 2026.09.04
6
+ The version of the OpenAPI document: 2026.09.05
7
7
  Contact: dev@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -258,6 +258,20 @@ module InternetData
258
258
  key: 'Authorization',
259
259
  value: "Bearer #{access_token_with_refresh}"
260
260
  },
261
+ 'ApiKeyHeaderAuth' =>
262
+ {
263
+ type: 'api_key',
264
+ in: 'header',
265
+ key: 'X-Api-Key',
266
+ value: api_key_with_prefix('X-Api-Key')
267
+ },
268
+ 'ApiKeyQueryAuth' =>
269
+ {
270
+ type: 'api_key',
271
+ in: 'query',
272
+ key: 'apikey',
273
+ value: api_key_with_prefix('apikey')
274
+ },
261
275
  }
262
276
  end
263
277
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API. Please see https://docs.internetdata.io/api for more details.
5
5
 
6
- The version of the OpenAPI document: 2026.09.04
6
+ The version of the OpenAPI document: 2026.09.05
7
7
  Contact: dev@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -28,7 +28,7 @@ module InternetData
28
28
  attr_accessor :standing
29
29
 
30
30
  # What your licence permits you to do with the data. Null when there is no licence.
31
- attr_accessor :redistribution
31
+ attr_accessor :license_type
32
32
 
33
33
  attr_accessor :starts
34
34
 
@@ -67,7 +67,7 @@ module InternetData
67
67
  :'name' => :'name',
68
68
  :'summary' => :'summary',
69
69
  :'standing' => :'standing',
70
- :'redistribution' => :'redistribution',
70
+ :'license_type' => :'license_type',
71
71
  :'starts' => :'starts',
72
72
  :'expires' => :'expires',
73
73
  :'versions' => :'versions'
@@ -91,7 +91,7 @@ module InternetData
91
91
  :'name' => :'String',
92
92
  :'summary' => :'String',
93
93
  :'standing' => :'String',
94
- :'redistribution' => :'String',
94
+ :'license_type' => :'String',
95
95
  :'starts' => :'Time',
96
96
  :'expires' => :'Time',
97
97
  :'versions' => :'Array<DatabaseVersion>'
@@ -101,7 +101,7 @@ module InternetData
101
101
  # List of attributes with nullable: true
102
102
  def self.openapi_nullable
103
103
  Set.new([
104
- :'redistribution',
104
+ :'license_type',
105
105
  :'starts',
106
106
  :'expires',
107
107
  ])
@@ -147,10 +147,10 @@ module InternetData
147
147
  self.standing = nil
148
148
  end
149
149
 
150
- if attributes.key?(:'redistribution')
151
- self.redistribution = attributes[:'redistribution']
150
+ if attributes.key?(:'license_type')
151
+ self.license_type = attributes[:'license_type']
152
152
  else
153
- self.redistribution = nil
153
+ self.license_type = nil
154
154
  end
155
155
 
156
156
  if attributes.key?(:'starts')
@@ -212,8 +212,8 @@ module InternetData
212
212
  return false if @standing.nil?
213
213
  standing_validator = EnumAttributeValidator.new('String', ["licensed", "expired", "unlicensed"])
214
214
  return false unless standing_validator.valid?(@standing)
215
- redistribution_validator = EnumAttributeValidator.new('String', ["evaluation", "internal", "redistribute"])
216
- return false unless redistribution_validator.valid?(@redistribution)
215
+ license_type_validator = EnumAttributeValidator.new('String', ["evaluation", "standard", "redistribute"])
216
+ return false unless license_type_validator.valid?(@license_type)
217
217
  return false if @versions.nil?
218
218
  true
219
219
  end
@@ -259,13 +259,13 @@ module InternetData
259
259
  end
260
260
 
261
261
  # Custom attribute writer method checking allowed values (enum).
262
- # @param [Object] redistribution Object to be assigned
263
- def redistribution=(redistribution)
264
- validator = EnumAttributeValidator.new('String', ["evaluation", "internal", "redistribute"])
265
- unless validator.valid?(redistribution)
266
- fail ArgumentError, "invalid value for \"redistribution\", must be one of #{validator.allowable_values}."
262
+ # @param [Object] license_type Object to be assigned
263
+ def license_type=(license_type)
264
+ validator = EnumAttributeValidator.new('String', ["evaluation", "standard", "redistribute"])
265
+ unless validator.valid?(license_type)
266
+ fail ArgumentError, "invalid value for \"license_type\", must be one of #{validator.allowable_values}."
267
267
  end
268
- @redistribution = redistribution
268
+ @license_type = license_type
269
269
  end
270
270
 
271
271
  # Custom attribute writer method with validation
@@ -287,7 +287,7 @@ module InternetData
287
287
  name == o.name &&
288
288
  summary == o.summary &&
289
289
  standing == o.standing &&
290
- redistribution == o.redistribution &&
290
+ license_type == o.license_type &&
291
291
  starts == o.starts &&
292
292
  expires == o.expires &&
293
293
  versions == o.versions
@@ -302,7 +302,7 @@ module InternetData
302
302
  # Calculates hash code according to all attributes.
303
303
  # @return [Integer] Hash code
304
304
  def hash
305
- [base, name, summary, standing, redistribution, starts, expires, versions].hash
305
+ [base, name, summary, standing, license_type, starts, expires, versions].hash
306
306
  end
307
307
 
308
308
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The InternetData API. Please see https://docs.internetdata.io/api for more details.
5
5
 
6
- The version of the OpenAPI document: 2026.09.04
6
+ The version of the OpenAPI document: 2026.09.05
7
7
  Contact: dev@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. Please see https://docs.internetdata.io/api for more details.
5
5
 
6
- The version of the OpenAPI document: 2026.09.04
6
+ The version of the OpenAPI document: 2026.09.05
7
7
  Contact: dev@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. Please see https://docs.internetdata.io/api for more details.
5
5
 
6
- The version of the OpenAPI document: 2026.09.04
6
+ The version of the OpenAPI document: 2026.09.05
7
7
  Contact: dev@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. Please see https://docs.internetdata.io/api for more details.
5
5
 
6
- The version of the OpenAPI document: 2026.09.04
6
+ The version of the OpenAPI document: 2026.09.05
7
7
  Contact: dev@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. Please see https://docs.internetdata.io/api for more details.
5
5
 
6
- The version of the OpenAPI document: 2026.09.04
6
+ The version of the OpenAPI document: 2026.09.05
7
7
  Contact: dev@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. Please see https://docs.internetdata.io/api for more details.
5
5
 
6
- The version of the OpenAPI document: 2026.09.04
6
+ The version of the OpenAPI document: 2026.09.05
7
7
  Contact: dev@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. Please see https://docs.internetdata.io/api for more details.
5
5
 
6
- The version of the OpenAPI document: 2026.09.04
6
+ The version of the OpenAPI document: 2026.09.05
7
7
  Contact: dev@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. Please see https://docs.internetdata.io/api for more details.
5
5
 
6
- The version of the OpenAPI document: 2026.09.04
6
+ The version of the OpenAPI document: 2026.09.05
7
7
  Contact: dev@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. Please see https://docs.internetdata.io/api for more details.
5
5
 
6
- The version of the OpenAPI document: 2026.09.04
6
+ The version of the OpenAPI document: 2026.09.05
7
7
  Contact: dev@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -21,10 +21,23 @@ module InternetData
21
21
  self.timeout = timeout
22
22
  end
23
23
 
24
+ # ONLY the bearer scheme, never `super`.
25
+ #
26
+ # The generated settings list every scheme the spec declares - including
27
+ # `?apikey=`, which is there for curl users - and Ruby's client applies
28
+ # ALL of them, so `super` put the key in the URL as well as the header,
29
+ # where it lands in every access log between here and the API. The sibling
30
+ # brand's transport has always narrowed it this way; this one did not, and
31
+ # its own test caught it.
24
32
  def auth_settings
25
33
  return {} if access_token.nil? || access_token.to_s.empty?
26
34
 
27
- super
35
+ {
36
+ 'BearerAuth' => {
37
+ type: 'bearer', in: 'header', key: 'Authorization',
38
+ value: "Bearer #{access_token}"
39
+ }
40
+ }
28
41
  end
29
42
  end
30
43
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InternetData
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.1'
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: 1.0.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mslm Dev