vpndetection 1.3.0 → 1.5.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: ac3ab63566525ffe3548718c280db04cb361d382e311fb05b707c006402a0d96
4
- data.tar.gz: 7720b3e6db751cff5a9109a5675938cf80d76dfd92f6934f70b7dd2a1120be1d
3
+ metadata.gz: 494df86ea7837d0bece886aebb52001bc564c17cf036f29d8f6b5af330409b18
4
+ data.tar.gz: 913cb9db19bae8a71710c2341d48a62b14b3ce15f798916b61fb0e42fe426088
5
5
  SHA512:
6
- metadata.gz: 8edcd1ca5b1f8d6744c0a30ba9ac37f1ebdc28afc81eba7c5947b803ad4981a3a7cb261711c2df5e351c0de745b08c91dfd8de10f69295ca9b65f8c9ecdd256a
7
- data.tar.gz: db5f5ea04869904bd62182c2f7b80e19079abf86899a1650eb8b8a0825025983816015704b558c9da381818eb6b6351de2cb453bdf02cc180392e4e40781c9c0
6
+ metadata.gz: 590641a2d6fe98764c4fab9b979ea631216aff00bed50ecee06c57d33cde1f1d92fb26fb848b04dd0bad9fca2047a95fe5bd88da9e286d2abed4a7acc972b768
7
+ data.tar.gz: 1feb98f56fbd86e20f99c4271bc5494c260dddaeee2de544e410f4a7d333c1846d7751bb6b0d4df978bb910cc1138e9330e5f475c37ef87a99a2b06669e5e84f
@@ -152,6 +152,8 @@ module VPNDetection
152
152
 
153
153
  if attributes.key?(:'summary')
154
154
  self.summary = attributes[:'summary']
155
+ else
156
+ self.summary = nil
155
157
  end
156
158
 
157
159
  if attributes.key?(:'license_type')
@@ -162,18 +164,26 @@ module VPNDetection
162
164
 
163
165
  if attributes.key?(:'starts')
164
166
  self.starts = attributes[:'starts']
167
+ else
168
+ self.starts = nil
165
169
  end
166
170
 
167
171
  if attributes.key?(:'expires')
168
172
  self.expires = attributes[:'expires']
173
+ else
174
+ self.expires = nil
169
175
  end
170
176
 
171
177
  if attributes.key?(:'renews_at')
172
178
  self.renews_at = attributes[:'renews_at']
179
+ else
180
+ self.renews_at = nil
173
181
  end
174
182
 
175
183
  if attributes.key?(:'notice_due_at')
176
184
  self.notice_due_at = attributes[:'notice_due_at']
185
+ else
186
+ self.notice_due_at = nil
177
187
  end
178
188
 
179
189
  if attributes.key?(:'in_term')
@@ -210,6 +220,10 @@ module VPNDetection
210
220
  invalid_properties.push('invalid value for "name", name cannot be nil.')
211
221
  end
212
222
 
223
+ if @summary.nil?
224
+ invalid_properties.push('invalid value for "summary", summary cannot be nil.')
225
+ end
226
+
213
227
  if @license_type.nil?
214
228
  invalid_properties.push('invalid value for "license_type", license_type cannot be nil.')
215
229
  end
@@ -235,6 +249,7 @@ module VPNDetection
235
249
  warn '[DEPRECATED] the `valid?` method is obsolete'
236
250
  return false if @base.nil?
237
251
  return false if @name.nil?
252
+ return false if @summary.nil?
238
253
  return false if @license_type.nil?
239
254
  license_type_validator = EnumAttributeValidator.new('String', ["evaluation", "standard", "redistribute"])
240
255
  return false unless license_type_validator.valid?(@license_type)
@@ -266,6 +281,16 @@ module VPNDetection
266
281
  @name = name
267
282
  end
268
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
+
269
294
  # Custom attribute writer method checking allowed values (enum).
270
295
  # @param [Object] license_type Object to be assigned
271
296
  def license_type=(license_type)
@@ -34,13 +34,13 @@ module VPNDetection
34
34
  # Whether the address belongs to a CDN. Starter and above.
35
35
  attr_accessor :is_cdn
36
36
 
37
- # Whether the address was seen in a residential proxy pool. Max only.
37
+ # Whether the address was seen in a residential proxy pool. Scale and above.
38
38
  attr_accessor :is_resproxy
39
39
 
40
- # Whether the address was seen in a datacenter proxy pool. Max only.
40
+ # Whether the address was seen in a datacenter proxy pool. Scale and above.
41
41
  attr_accessor :is_dcproxy
42
42
 
43
- # Whether the address was seen in a mobile proxy pool. Max only.
43
+ # Whether the address was seen in a mobile proxy pool. Scale and above.
44
44
  attr_accessor :is_mobproxy
45
45
 
46
46
  # Detail for `is_vpn`. Empty when `is_vpn` is false. Starter and above.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module VPNDetection
4
- VERSION = '1.3.0'
4
+ VERSION = '1.5.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.3.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mslm Dev