svix 1.17.0 → 1.19.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ba5fe6fcac362ef0933d96a1eb122bd48d4a07ff193107e3c5a70f03bdcebf1
4
- data.tar.gz: ccac8f3e9a811be6692d800df9c0fe054992e70dfe6327a56649597a45cb7584
3
+ metadata.gz: 2177d8eac5a8b187932cd57f3041216dca597b9a4c91c9fee4940fc53e56114f
4
+ data.tar.gz: 5294e841dcc659894679fbae6638db91069d495f835c54dacd5180317c84d8cd
5
5
  SHA512:
6
- metadata.gz: 9e740cdfd831ab44e09731bae416e8450da416629e481bff04c5dcc855afc4a84660adab5132cec16fb730b7318c205408c9b6a414bf68a33c4392bc365c5c18
7
- data.tar.gz: 2930ee347a911562920a8cc22c26be028cf43327c4f7393d33b486036eeb8a204bfba87b9c07507fbec5372e9796c59f245d3d5dea3450db133839b3178d1c9d
6
+ metadata.gz: e747a413f26349d81b49ff495a309eda7ce65c5b86d928d08db0ae4af299473f3cb2a90ec4445565797781f1882933069cd0cf704490dcd92bb83d5bbbd0483e
7
+ data.tar.gz: abbdfe65bc35980037395a704180ce184b4aac8200f195be0bfce165a15d6c7c3766f7e1324aa90688fe1b01a0be3814f49a173467a4c0a99634e9c75ad72357
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (1.17.0)
4
+ svix (1.19.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -15,12 +15,16 @@ require 'time'
15
15
 
16
16
  module Svix
17
17
  class AppPortalAccessIn
18
+ # How long the token will be valid for, in seconds. Valid values are between 1 hour and 7 days. The default is 7 days.
19
+ attr_accessor :expiry
20
+
18
21
  # The set of feature flags the created token will have access to.
19
22
  attr_accessor :feature_flags
20
23
 
21
24
  # Attribute mapping from ruby-style variable name to JSON key.
22
25
  def self.attribute_map
23
26
  {
27
+ :'expiry' => :'expiry',
24
28
  :'feature_flags' => :'featureFlags'
25
29
  }
26
30
  end
@@ -33,6 +37,7 @@ module Svix
33
37
  # Attribute type mapping.
34
38
  def self.openapi_types
35
39
  {
40
+ :'expiry' => :'Integer',
36
41
  :'feature_flags' => :'Array<String>'
37
42
  }
38
43
  end
@@ -40,6 +45,7 @@ module Svix
40
45
  # List of attributes with nullable: true
41
46
  def self.openapi_nullable
42
47
  Set.new([
48
+ :'expiry',
43
49
  ])
44
50
  end
45
51
 
@@ -58,6 +64,12 @@ module Svix
58
64
  h[k.to_sym] = v
59
65
  }
60
66
 
67
+ if attributes.key?(:'expiry')
68
+ self.expiry = attributes[:'expiry']
69
+ else
70
+ self.expiry = 604800
71
+ end
72
+
61
73
  if attributes.key?(:'feature_flags')
62
74
  if (value = attributes[:'feature_flags']).is_a?(Array)
63
75
  self.feature_flags = value
@@ -69,15 +81,39 @@ module Svix
69
81
  # @return Array for valid properties with the reasons
70
82
  def list_invalid_properties
71
83
  invalid_properties = Array.new
84
+ if !@expiry.nil? && @expiry > 604800
85
+ invalid_properties.push('invalid value for "expiry", must be smaller than or equal to 604800.')
86
+ end
87
+
88
+ if !@expiry.nil? && @expiry < 3600
89
+ invalid_properties.push('invalid value for "expiry", must be greater than or equal to 3600.')
90
+ end
91
+
72
92
  invalid_properties
73
93
  end
74
94
 
75
95
  # Check to see if the all the properties in the model are valid
76
96
  # @return true if the model is valid
77
97
  def valid?
98
+ return false if !@expiry.nil? && @expiry > 604800
99
+ return false if !@expiry.nil? && @expiry < 3600
78
100
  true
79
101
  end
80
102
 
103
+ # Custom attribute writer method with validation
104
+ # @param [Object] expiry Value to be assigned
105
+ def expiry=(expiry)
106
+ if !expiry.nil? && expiry > 604800
107
+ fail ArgumentError, 'invalid value for "expiry", must be smaller than or equal to 604800.'
108
+ end
109
+
110
+ if !expiry.nil? && expiry < 3600
111
+ fail ArgumentError, 'invalid value for "expiry", must be greater than or equal to 3600.'
112
+ end
113
+
114
+ @expiry = expiry
115
+ end
116
+
81
117
  # Custom attribute writer method with validation
82
118
  # @param [Object] feature_flags Value to be assigned
83
119
  def feature_flags=(feature_flags)
@@ -89,6 +125,7 @@ module Svix
89
125
  def ==(o)
90
126
  return true if self.equal?(o)
91
127
  self.class == o.class &&
128
+ expiry == o.expiry &&
92
129
  feature_flags == o.feature_flags
93
130
  end
94
131
 
@@ -101,7 +138,7 @@ module Svix
101
138
  # Calculates hash code according to all attributes.
102
139
  # @return [Integer] Hash code
103
140
  def hash
104
- [feature_flags].hash
141
+ [expiry, feature_flags].hash
105
142
  end
106
143
 
107
144
  # Builds the object from hash
data/lib/svix/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Svix
4
- VERSION = "1.17.0"
4
+ VERSION = "1.19.0"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svix
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.0
4
+ version: 1.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svix
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-02-06 00:00:00.000000000 Z
11
+ date: 2024-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus