internetdata 2.8.6 → 2.8.8

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: 60cb6997f887f4ac598e856721bfc16b49d84059390ce32d1c1a13721cf3079a
4
- data.tar.gz: 129161d2e8eede6fc3aa00ee2daf764f3177dab897b7af0a79d7188241430cce
3
+ metadata.gz: 6157ddaca572a6fdbec4f07bb91cdcecd4d21bc888a8641e7961411f6e164ea5
4
+ data.tar.gz: 1fd6bb9d10a79748fb42f053950f3fd4dbe64aaae36b2c9d6c3ab88bf9981594
5
5
  SHA512:
6
- metadata.gz: 63b12de438f16533af87d36997d2a66a53b7e5b98330b6a4175c42c6ab481f27ed4bf742646674b51a5eae3567db6fcce25b267cf237bd019369577ebac9f476
7
- data.tar.gz: c9c6f3cef56834177ea1f5806ebadb0c31aa7ce40817c7e19b3e579f309b64fb68ffaa474f64c503ce8a11c59792e0bb4acf6e678cd4d3fa5f23e044907957d9
6
+ metadata.gz: 283bda9e8965585d5e110427a3fff75b2e85c437f5f11e2c0eb3fd956adf3d31b8cfb2561ba3c719d339f9e2c11605df54f8c49b67f341e3ba4a4ead8c38474c
7
+ data.tar.gz: 17ee516cbafe10ee08649833d59813c3e1f81c1650c950c99c17ac5bedfeaa18972d09c234eacdc1a26fb71a00301bfe686602146fda17c498362784bf397e92
data/README.md CHANGED
@@ -35,7 +35,7 @@ client.database.list.each do |database|
35
35
  end
36
36
  ```
37
37
 
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.
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
40
  ### What is inside a database
41
41
 
@@ -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.21
6
+ The version of the OpenAPI document: 2026.11.05
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -169,6 +169,7 @@ module InternetData
169
169
  # @param id [String] Database identifier (e.g. `vpn_ip_v1`, `resproxy_provider_v1`).
170
170
  # @param format [DatabaseFormat] Database file format.
171
171
  # @param [Hash] opts the optional parameters
172
+ # @option opts [String] :build One build of the database, by the name a `database.updated` webhook gives it, so the file is the one whose `sha256` the webhook carries. Without it, the build that is live.
172
173
  # @return [nil]
173
174
  def download_database_v2(id, format, opts = {})
174
175
  download_database_v2_with_http_info(id, format, opts)
@@ -180,6 +181,7 @@ module InternetData
180
181
  # @param id [String] Database identifier (e.g. `vpn_ip_v1`, `resproxy_provider_v1`).
181
182
  # @param format [DatabaseFormat] Database file format.
182
183
  # @param [Hash] opts the optional parameters
184
+ # @option opts [String] :build One build of the database, by the name a `database.updated` webhook gives it, so the file is the one whose `sha256` the webhook carries. Without it, the build that is live.
183
185
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
184
186
  def download_database_v2_with_http_info(id, format, opts = {})
185
187
  if @api_client.config.debugging
@@ -198,6 +200,11 @@ module InternetData
198
200
  if @api_client.config.client_side_validation && format.nil?
199
201
  fail ArgumentError, "Missing the required parameter 'format' when calling DatabaseV2Api.download_database_v2"
200
202
  end
203
+ pattern = Regexp.new(/^[0-9]{8}\.[a-z0-9]{6}$/)
204
+ if @api_client.config.client_side_validation && !opts[:'build'].nil? && opts[:'build'] !~ pattern
205
+ fail ArgumentError, "invalid value for 'opts[:\"build\"]' when calling DatabaseV2Api.download_database_v2, must conform to the pattern #{pattern}."
206
+ end
207
+
201
208
  # resource path
202
209
  local_var_path = '/api/v2/database/download'
203
210
 
@@ -205,6 +212,7 @@ module InternetData
205
212
  query_params = opts[:query_params] || {}
206
213
  query_params[:'id'] = id
207
214
  query_params[:'format'] = format
215
+ query_params[:'build'] = opts[:'build'] if !opts[:'build'].nil?
208
216
 
209
217
  # header parameters
210
218
  header_params = opts[:header_params] || {}
@@ -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.21
6
+ The version of the OpenAPI document: 2026.11.05
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.21
6
+ The version of the OpenAPI document: 2026.11.05
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.21
6
+ The version of the OpenAPI document: 2026.11.05
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.21
6
+ The version of the OpenAPI document: 2026.11.05
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -23,7 +23,7 @@ module InternetData
23
23
  # each one.
24
24
  #
25
25
  # A license is held against the family while a download names one version, so
26
- # the ids {#download}, {#download_bytes}, {#download_url}, {#checksums} and
26
+ # the IDs {#download}, {#download_bytes}, {#download_url}, {#checksums} and
27
27
  # {#metadata} take come from each family's `versions`, not from the family.
28
28
  #
29
29
  # This is the server's answer for this key, so a listing held from one key is
@@ -58,7 +58,7 @@ module InternetData
58
58
  when 401 then :unauthorized
59
59
  when 403 then :forbidden
60
60
  # Every other 4xx is a CLIENT error. Classifying on the RANGE rather than
61
- # on an enumerated list is what keeps a 404 from an unknown database id
61
+ # on an enumerated list is what keeps a 404 from an unknown database ID
62
62
  # falling through to the retryable server_error default and being retried
63
63
  # twice before it fails.
64
64
  when 400..499 then :bad_request
@@ -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.21
6
+ The version of the OpenAPI document: 2026.11.05
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.21
6
+ The version of the OpenAPI document: 2026.11.05
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -14,7 +14,7 @@ require 'date'
14
14
  require 'time'
15
15
 
16
16
  module InternetData
17
- # One database FAMILY, with your organization's license beside it. A license covers the family, while a download names a specific version, so the ids passed to `download` and `checksum` come from `versions`.
17
+ # One database FAMILY, with your organization's license beside it. A license covers the family, while a download names a specific version, so the IDs passed to `download` and `checksum` come from `versions`.
18
18
  class Database < ApiModelBase
19
19
  # The family, e.g. `vpn_ip`. What a license is held against.
20
20
  attr_accessor :base
@@ -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.21
6
+ The version of the OpenAPI document: 2026.11.05
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.21
6
+ The version of the OpenAPI document: 2026.11.05
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.21
6
+ The version of the OpenAPI document: 2026.11.05
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.21
6
+ The version of the OpenAPI document: 2026.11.05
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.21
6
+ The version of the OpenAPI document: 2026.11.05
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.21
6
+ The version of the OpenAPI document: 2026.11.05
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -15,14 +15,14 @@ require 'time'
15
15
 
16
16
  module InternetData
17
17
  class DatabaseVersion < ApiModelBase
18
- # The versioned id. Pass this to `download`, `checksum` and `metadata`.
18
+ # The versioned ID. Pass this to `download`, `checksum` and `metadata`.
19
19
  attr_accessor :id
20
20
 
21
21
  attr_accessor :version
22
22
 
23
23
  attr_accessor :summary
24
24
 
25
- # The formats this version is BUILT in. Asking for another is a 400, not a gap - the `_provider` catalogs are keyed by provider id, so no MMDB exists for them.
25
+ # The formats this version is BUILT in. Asking for another is a 400, not a gap - the `_provider` catalogs are keyed by provider ID, so no MMDB exists for them.
26
26
  attr_accessor :formats
27
27
 
28
28
  # The formats an evaluation sample is published in, if any.
@@ -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.21
6
+ The version of the OpenAPI document: 2026.11.05
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.21
6
+ The version of the OpenAPI document: 2026.11.05
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.21
6
+ The version of the OpenAPI document: 2026.11.05
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.21
6
+ The version of the OpenAPI document: 2026.11.05
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.21
6
+ The version of the OpenAPI document: 2026.11.05
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.21
6
+ The version of the OpenAPI document: 2026.11.05
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.21
6
+ The version of the OpenAPI document: 2026.11.05
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.21
6
+ The version of the OpenAPI document: 2026.11.05
7
7
  Contact: support@internetdata.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -5,7 +5,7 @@ module InternetData
5
5
  #
6
6
  # Only a 5xx, a transport failure and a 429 that carried `Retry-After` are
7
7
  # worth another attempt. Every other 4xx is a client error and fails on the
8
- # first try, so an unknown database id is not asked for three times.
8
+ # first try, so an unknown database ID is not asked for three times.
9
9
  module Retries
10
10
  BACKOFF_SECONDS = 0.25
11
11
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InternetData
4
- VERSION = '2.8.6'
4
+ VERSION = '2.8.8'
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.8.6
4
+ version: 2.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mslm Dev