vpndetection 1.2.1 → 1.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4f8fe80a3b44b1fde8d8038d392e1ca609ce7a31289f3d33835fe6dbe6fafa30
4
- data.tar.gz: 7b293d8378dca234dc0e15e09552e187d1fbb3ffc906f21973e2c87897017861
3
+ metadata.gz: 61370f27acc1d441f1702d4f3175db88e98ba99fb4939713a2f68c52483c6d26
4
+ data.tar.gz: da533a4067d406f96d5b0ecc930be9a76d9c2f410cf5a3c61a0d5ccb26e95a19
5
5
  SHA512:
6
- metadata.gz: 80137b7c1ed8995841d0951cd05941a8f5ba1cdf35aa16bca838cd410abf8ece75013be09370b7ad5e4f6a8080e2d7b276c769d119404d0795497a15ed153f28
7
- data.tar.gz: a05736116973d37476caa4150c58d2facd145b2f9a40d93868066a55b06d08d6455e6efd54e5c04abfb244bf8d0379dc684b4c44a62927af5cff746d0b798155
6
+ metadata.gz: c3cc5f5ef9def4e2e02218f198ec63f1f1d72ae39dc8128455689d7905755460d729842a64363c04e9547da738b0dbc0d24fcb3927d2fba782572ff6512a75bf
7
+ data.tar.gz: 0e5ef9c66651db04caf353862592b838804321c9d34f304ae219a97b77651b43c14400dd97038460a5f7ba360f86a517729532e44a4d1cdfa6916116d3f78baa
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -28,9 +28,15 @@ module VPNDetection
28
28
 
29
29
  attr_accessor :starts
30
30
 
31
- # Null when the license does not expire.
31
+ # A hard stop. Null when the license has no end date, which is the normal case for a rolling agreement, and when there is no license. A rolling license reports its turnover date in renews_at instead.
32
32
  attr_accessor :expires
33
33
 
34
+ # When a rolling license next renews. Null when the license has no defined term, when expires sets a hard stop instead, and when there is no license.
35
+ attr_accessor :renews_at
36
+
37
+ # The last day notice of non-renewal can be given for the term ending at renews_at. Null whenever renews_at is, and when the agreement records no notice period.
38
+ attr_accessor :notice_due_at
39
+
34
40
  # False when the license has lapsed; downloads are refused.
35
41
  attr_accessor :in_term
36
42
 
@@ -71,6 +77,8 @@ module VPNDetection
71
77
  :'license_type' => :'license_type',
72
78
  :'starts' => :'starts',
73
79
  :'expires' => :'expires',
80
+ :'renews_at' => :'renews_at',
81
+ :'notice_due_at' => :'notice_due_at',
74
82
  :'in_term' => :'in_term',
75
83
  :'standing' => :'standing',
76
84
  :'versions' => :'versions'
@@ -96,6 +104,8 @@ module VPNDetection
96
104
  :'license_type' => :'String',
97
105
  :'starts' => :'Time',
98
106
  :'expires' => :'Time',
107
+ :'renews_at' => :'Time',
108
+ :'notice_due_at' => :'Time',
99
109
  :'in_term' => :'Boolean',
100
110
  :'standing' => :'String',
101
111
  :'versions' => :'Array<LicensedVersion>'
@@ -107,6 +117,8 @@ module VPNDetection
107
117
  Set.new([
108
118
  :'starts',
109
119
  :'expires',
120
+ :'renews_at',
121
+ :'notice_due_at',
110
122
  ])
111
123
  end
112
124
 
@@ -140,6 +152,8 @@ module VPNDetection
140
152
 
141
153
  if attributes.key?(:'summary')
142
154
  self.summary = attributes[:'summary']
155
+ else
156
+ self.summary = nil
143
157
  end
144
158
 
145
159
  if attributes.key?(:'license_type')
@@ -150,10 +164,26 @@ module VPNDetection
150
164
 
151
165
  if attributes.key?(:'starts')
152
166
  self.starts = attributes[:'starts']
167
+ else
168
+ self.starts = nil
153
169
  end
154
170
 
155
171
  if attributes.key?(:'expires')
156
172
  self.expires = attributes[:'expires']
173
+ else
174
+ self.expires = nil
175
+ end
176
+
177
+ if attributes.key?(:'renews_at')
178
+ self.renews_at = attributes[:'renews_at']
179
+ else
180
+ self.renews_at = nil
181
+ end
182
+
183
+ if attributes.key?(:'notice_due_at')
184
+ self.notice_due_at = attributes[:'notice_due_at']
185
+ else
186
+ self.notice_due_at = nil
157
187
  end
158
188
 
159
189
  if attributes.key?(:'in_term')
@@ -190,6 +220,10 @@ module VPNDetection
190
220
  invalid_properties.push('invalid value for "name", name cannot be nil.')
191
221
  end
192
222
 
223
+ if @summary.nil?
224
+ invalid_properties.push('invalid value for "summary", summary cannot be nil.')
225
+ end
226
+
193
227
  if @license_type.nil?
194
228
  invalid_properties.push('invalid value for "license_type", license_type cannot be nil.')
195
229
  end
@@ -215,6 +249,7 @@ module VPNDetection
215
249
  warn '[DEPRECATED] the `valid?` method is obsolete'
216
250
  return false if @base.nil?
217
251
  return false if @name.nil?
252
+ return false if @summary.nil?
218
253
  return false if @license_type.nil?
219
254
  license_type_validator = EnumAttributeValidator.new('String', ["evaluation", "standard", "redistribute"])
220
255
  return false unless license_type_validator.valid?(@license_type)
@@ -246,6 +281,16 @@ module VPNDetection
246
281
  @name = name
247
282
  end
248
283
 
284
+ # Custom attribute writer method with validation
285
+ # @param [Object] summary Value to be assigned
286
+ def summary=(summary)
287
+ if summary.nil?
288
+ fail ArgumentError, 'summary cannot be nil'
289
+ end
290
+
291
+ @summary = summary
292
+ end
293
+
249
294
  # Custom attribute writer method checking allowed values (enum).
250
295
  # @param [Object] license_type Object to be assigned
251
296
  def license_type=(license_type)
@@ -297,6 +342,8 @@ module VPNDetection
297
342
  license_type == o.license_type &&
298
343
  starts == o.starts &&
299
344
  expires == o.expires &&
345
+ renews_at == o.renews_at &&
346
+ notice_due_at == o.notice_due_at &&
300
347
  in_term == o.in_term &&
301
348
  standing == o.standing &&
302
349
  versions == o.versions
@@ -311,7 +358,7 @@ module VPNDetection
311
358
  # Calculates hash code according to all attributes.
312
359
  # @return [Integer] Hash code
313
360
  def hash
314
- [base, name, summary, license_type, starts, expires, in_term, standing, versions].hash
361
+ [base, name, summary, license_type, starts, expires, renews_at, notice_due_at, in_term, standing, versions].hash
315
362
  end
316
363
 
317
364
  # Builds the object from hash
@@ -3,7 +3,7 @@
3
3
 
4
4
  #The VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.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 VPNDetection API: classify any IP address, and download the datasets behind the answers. See https://docs.vpndetection.io for guides and https://github.com/vpndetection-io for the official client libraries.
5
5
 
6
- The version of the OpenAPI document: 2026.09.05
6
+ The version of the OpenAPI document: 2026.09.09
7
7
  Contact: support@vpndetection.io
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.25.0
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VPNDetection
4
- VERSION = '1.2.1'
4
+ VERSION = '1.4.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vpndetection
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mslm Dev