svix 1.17.0 → 1.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/svix/models/app_portal_access_in.rb +38 -1
- data/lib/svix/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3162bbec0eb4b6a476d8e23a9118439d0cfc1db357d73542e065c904f3d4da9b
|
4
|
+
data.tar.gz: 908d86e6e7411e8404015ec84610c54f2156f8efadf306b3dd923a8484f2f71a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 172b389fa8b4a9431aa08980415c9116a7a503225974ffb0427d3e20b2768a16b7ad3a5c2e46793f4ac98512f2cea1416f3cbcc9b4f7da25a3a3baf1e4dfe2a5
|
7
|
+
data.tar.gz: 4d547f641c04c9883e1f189b12b8e544e77111562fe4629e3e65c35dbe1d227850bdcb6f2ab19f51062d9af076c444cc662801db81a72f0b659ab7ad234e3fea
|
data/Gemfile.lock
CHANGED
@@ -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
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.
|
4
|
+
version: 1.18.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-
|
11
|
+
date: 2024-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|