svix 1.11.0 → 1.12.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: eaab1c4418f3c0a4f3f7c63f1fe116c9bc4b60c020838830f360ad363613f568
4
- data.tar.gz: a5397eba7cbd51dd78806a3b4a2526cd063ba6d833a7708274eebb0c2ee7b378
3
+ metadata.gz: df2e94d4adaec38f37616f40314823276193d0c96e707918ea87e336fdcaeb6f
4
+ data.tar.gz: 3b16c0a7a30a1a29218bf6b95486c4238f41e9f9d6e07f95298349d82187e5ea
5
5
  SHA512:
6
- metadata.gz: ecef7b2e766d99655203c24950eae35b831654ede0a2f01c6eaf97c1c179d5c396259b3b6001520f96c20757087aa1f8fc1f7450e4812b7e154990966e20680e
7
- data.tar.gz: 650c74bb8413282a8a21153bd8a7ec6917174a216df442950c1c68f97505ef91dec7df63d0244dd5e236737538510e378cac418ab62c3eaa3a031f2a8c69d6f1
6
+ metadata.gz: 7a3402f9d8a1ad4389f021a67600926a438b54ff96ab2348fd7b098d65cc279562459ba9e5011851cf62cdc696c3533951c16189806a2f49a13c4e17e2e59519
7
+ data.tar.gz: e0059c8db62ec58ebc37950cbe41c73a7dfaad0c0f6f159253161e5722a55750526dac0a470e67a94926e7d65af400df6d445007f2975c6e94af72f6e296b2da
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (1.11.0)
4
+ svix (1.12.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -17,6 +17,8 @@ module Svix
17
17
  class TemplateIn
18
18
  attr_accessor :description
19
19
 
20
+ attr_accessor :feature_flag
21
+
20
22
  attr_accessor :filter_types
21
23
 
22
24
  attr_accessor :instructions
@@ -33,6 +35,7 @@ module Svix
33
35
  def self.attribute_map
34
36
  {
35
37
  :'description' => :'description',
38
+ :'feature_flag' => :'featureFlag',
36
39
  :'filter_types' => :'filterTypes',
37
40
  :'instructions' => :'instructions',
38
41
  :'instructions_link' => :'instructionsLink',
@@ -51,6 +54,7 @@ module Svix
51
54
  def self.openapi_types
52
55
  {
53
56
  :'description' => :'String',
57
+ :'feature_flag' => :'String',
54
58
  :'filter_types' => :'Array<String>',
55
59
  :'instructions' => :'String',
56
60
  :'instructions_link' => :'String',
@@ -63,6 +67,7 @@ module Svix
63
67
  # List of attributes with nullable: true
64
68
  def self.openapi_nullable
65
69
  Set.new([
70
+ :'feature_flag',
66
71
  :'filter_types',
67
72
  :'instructions_link',
68
73
  ])
@@ -89,6 +94,10 @@ module Svix
89
94
  self.description = ''
90
95
  end
91
96
 
97
+ if attributes.key?(:'feature_flag')
98
+ self.feature_flag = attributes[:'feature_flag']
99
+ end
100
+
92
101
  if attributes.key?(:'filter_types')
93
102
  if (value = attributes[:'filter_types']).is_a?(Array)
94
103
  self.filter_types = value
@@ -124,6 +133,15 @@ module Svix
124
133
  # @return Array for valid properties with the reasons
125
134
  def list_invalid_properties
126
135
  invalid_properties = Array.new
136
+ if !@feature_flag.nil? && @feature_flag.to_s.length > 256
137
+ invalid_properties.push('invalid value for "feature_flag", the character length must be smaller than or equal to 256.')
138
+ end
139
+
140
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
141
+ if !@feature_flag.nil? && @feature_flag !~ pattern
142
+ invalid_properties.push("invalid value for \"feature_flag\", must conform to the pattern #{pattern}.")
143
+ end
144
+
127
145
  if !@filter_types.nil? && @filter_types.length < 1
128
146
  invalid_properties.push('invalid value for "filter_types", number of items must be greater than or equal to 1.')
129
147
  end
@@ -154,6 +172,8 @@ module Svix
154
172
  # Check to see if the all the properties in the model are valid
155
173
  # @return true if the model is valid
156
174
  def valid?
175
+ return false if !@feature_flag.nil? && @feature_flag.to_s.length > 256
176
+ return false if !@feature_flag.nil? && @feature_flag !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
157
177
  return false if !@filter_types.nil? && @filter_types.length < 1
158
178
  return false if @logo.nil?
159
179
  return false if @name.nil?
@@ -163,6 +183,21 @@ module Svix
163
183
  true
164
184
  end
165
185
 
186
+ # Custom attribute writer method with validation
187
+ # @param [Object] feature_flag Value to be assigned
188
+ def feature_flag=(feature_flag)
189
+ if !feature_flag.nil? && feature_flag.to_s.length > 256
190
+ fail ArgumentError, 'invalid value for "feature_flag", the character length must be smaller than or equal to 256.'
191
+ end
192
+
193
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
194
+ if !feature_flag.nil? && feature_flag !~ pattern
195
+ fail ArgumentError, "invalid value for \"feature_flag\", must conform to the pattern #{pattern}."
196
+ end
197
+
198
+ @feature_flag = feature_flag
199
+ end
200
+
166
201
  # Custom attribute writer method with validation
167
202
  # @param [Object] filter_types Value to be assigned
168
203
  def filter_types=(filter_types)
@@ -197,6 +232,7 @@ module Svix
197
232
  return true if self.equal?(o)
198
233
  self.class == o.class &&
199
234
  description == o.description &&
235
+ feature_flag == o.feature_flag &&
200
236
  filter_types == o.filter_types &&
201
237
  instructions == o.instructions &&
202
238
  instructions_link == o.instructions_link &&
@@ -214,7 +250,7 @@ module Svix
214
250
  # Calculates hash code according to all attributes.
215
251
  # @return [Integer] Hash code
216
252
  def hash
217
- [description, filter_types, instructions, instructions_link, logo, name, transformation].hash
253
+ [description, feature_flag, filter_types, instructions, instructions_link, logo, name, transformation].hash
218
254
  end
219
255
 
220
256
  # Builds the object from hash
@@ -19,6 +19,8 @@ module Svix
19
19
 
20
20
  attr_accessor :description
21
21
 
22
+ attr_accessor :feature_flag
23
+
22
24
  attr_accessor :filter_types
23
25
 
24
26
  attr_accessor :id
@@ -44,6 +46,7 @@ module Svix
44
46
  {
45
47
  :'created_at' => :'createdAt',
46
48
  :'description' => :'description',
49
+ :'feature_flag' => :'featureFlag',
47
50
  :'filter_types' => :'filterTypes',
48
51
  :'id' => :'id',
49
52
  :'instructions' => :'instructions',
@@ -67,6 +70,7 @@ module Svix
67
70
  {
68
71
  :'created_at' => :'Time',
69
72
  :'description' => :'String',
73
+ :'feature_flag' => :'String',
70
74
  :'filter_types' => :'Array<String>',
71
75
  :'id' => :'String',
72
76
  :'instructions' => :'String',
@@ -83,6 +87,7 @@ module Svix
83
87
  # List of attributes with nullable: true
84
88
  def self.openapi_nullable
85
89
  Set.new([
90
+ :'feature_flag',
86
91
  :'filter_types',
87
92
  :'instructions_link',
88
93
  ])
@@ -111,6 +116,10 @@ module Svix
111
116
  self.description = attributes[:'description']
112
117
  end
113
118
 
119
+ if attributes.key?(:'feature_flag')
120
+ self.feature_flag = attributes[:'feature_flag']
121
+ end
122
+
114
123
  if attributes.key?(:'filter_types')
115
124
  if (value = attributes[:'filter_types']).is_a?(Array)
116
125
  self.filter_types = value
@@ -166,6 +175,15 @@ module Svix
166
175
  invalid_properties.push('invalid value for "description", description cannot be nil.')
167
176
  end
168
177
 
178
+ if !@feature_flag.nil? && @feature_flag.to_s.length > 256
179
+ invalid_properties.push('invalid value for "feature_flag", the character length must be smaller than or equal to 256.')
180
+ end
181
+
182
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
183
+ if !@feature_flag.nil? && @feature_flag !~ pattern
184
+ invalid_properties.push("invalid value for \"feature_flag\", must conform to the pattern #{pattern}.")
185
+ end
186
+
169
187
  if !@filter_types.nil? && @filter_types.length < 1
170
188
  invalid_properties.push('invalid value for "filter_types", number of items must be greater than or equal to 1.')
171
189
  end
@@ -210,6 +228,8 @@ module Svix
210
228
  def valid?
211
229
  return false if @created_at.nil?
212
230
  return false if @description.nil?
231
+ return false if !@feature_flag.nil? && @feature_flag.to_s.length > 256
232
+ return false if !@feature_flag.nil? && @feature_flag !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
213
233
  return false if !@filter_types.nil? && @filter_types.length < 1
214
234
  return false if @id.nil?
215
235
  return false if @instructions.nil?
@@ -222,6 +242,21 @@ module Svix
222
242
  true
223
243
  end
224
244
 
245
+ # Custom attribute writer method with validation
246
+ # @param [Object] feature_flag Value to be assigned
247
+ def feature_flag=(feature_flag)
248
+ if !feature_flag.nil? && feature_flag.to_s.length > 256
249
+ fail ArgumentError, 'invalid value for "feature_flag", the character length must be smaller than or equal to 256.'
250
+ end
251
+
252
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
253
+ if !feature_flag.nil? && feature_flag !~ pattern
254
+ fail ArgumentError, "invalid value for \"feature_flag\", must conform to the pattern #{pattern}."
255
+ end
256
+
257
+ @feature_flag = feature_flag
258
+ end
259
+
225
260
  # Custom attribute writer method with validation
226
261
  # @param [Object] filter_types Value to be assigned
227
262
  def filter_types=(filter_types)
@@ -239,6 +274,7 @@ module Svix
239
274
  self.class == o.class &&
240
275
  created_at == o.created_at &&
241
276
  description == o.description &&
277
+ feature_flag == o.feature_flag &&
242
278
  filter_types == o.filter_types &&
243
279
  id == o.id &&
244
280
  instructions == o.instructions &&
@@ -260,7 +296,7 @@ module Svix
260
296
  # Calculates hash code according to all attributes.
261
297
  # @return [Integer] Hash code
262
298
  def hash
263
- [created_at, description, filter_types, id, instructions, instructions_link, kind, logo, name, org_id, transformation, updated_at].hash
299
+ [created_at, description, feature_flag, filter_types, id, instructions, instructions_link, kind, logo, name, org_id, transformation, updated_at].hash
264
300
  end
265
301
 
266
302
  # Builds the object from hash
@@ -17,6 +17,8 @@ module Svix
17
17
  class TemplatePatch
18
18
  attr_accessor :description
19
19
 
20
+ attr_accessor :feature_flag
21
+
20
22
  attr_accessor :filter_types
21
23
 
22
24
  attr_accessor :instructions
@@ -33,6 +35,7 @@ module Svix
33
35
  def self.attribute_map
34
36
  {
35
37
  :'description' => :'description',
38
+ :'feature_flag' => :'featureFlag',
36
39
  :'filter_types' => :'filterTypes',
37
40
  :'instructions' => :'instructions',
38
41
  :'instructions_link' => :'instructionsLink',
@@ -51,6 +54,7 @@ module Svix
51
54
  def self.openapi_types
52
55
  {
53
56
  :'description' => :'String',
57
+ :'feature_flag' => :'String',
54
58
  :'filter_types' => :'Array<String>',
55
59
  :'instructions' => :'String',
56
60
  :'instructions_link' => :'String',
@@ -63,6 +67,7 @@ module Svix
63
67
  # List of attributes with nullable: true
64
68
  def self.openapi_nullable
65
69
  Set.new([
70
+ :'feature_flag',
66
71
  :'filter_types',
67
72
  :'instructions_link',
68
73
  ])
@@ -87,6 +92,10 @@ module Svix
87
92
  self.description = attributes[:'description']
88
93
  end
89
94
 
95
+ if attributes.key?(:'feature_flag')
96
+ self.feature_flag = attributes[:'feature_flag']
97
+ end
98
+
90
99
  if attributes.key?(:'filter_types')
91
100
  if (value = attributes[:'filter_types']).is_a?(Array)
92
101
  self.filter_types = value
@@ -118,6 +127,15 @@ module Svix
118
127
  # @return Array for valid properties with the reasons
119
128
  def list_invalid_properties
120
129
  invalid_properties = Array.new
130
+ if !@feature_flag.nil? && @feature_flag.to_s.length > 256
131
+ invalid_properties.push('invalid value for "feature_flag", the character length must be smaller than or equal to 256.')
132
+ end
133
+
134
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
135
+ if !@feature_flag.nil? && @feature_flag !~ pattern
136
+ invalid_properties.push("invalid value for \"feature_flag\", must conform to the pattern #{pattern}.")
137
+ end
138
+
121
139
  if !@filter_types.nil? && @filter_types.length < 1
122
140
  invalid_properties.push('invalid value for "filter_types", number of items must be greater than or equal to 1.')
123
141
  end
@@ -136,12 +154,29 @@ module Svix
136
154
  # Check to see if the all the properties in the model are valid
137
155
  # @return true if the model is valid
138
156
  def valid?
157
+ return false if !@feature_flag.nil? && @feature_flag.to_s.length > 256
158
+ return false if !@feature_flag.nil? && @feature_flag !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
139
159
  return false if !@filter_types.nil? && @filter_types.length < 1
140
160
  return false if !@transformation.nil? && @transformation.to_s.length > 51200
141
161
  return false if !@transformation.nil? && @transformation.to_s.length < 10
142
162
  true
143
163
  end
144
164
 
165
+ # Custom attribute writer method with validation
166
+ # @param [Object] feature_flag Value to be assigned
167
+ def feature_flag=(feature_flag)
168
+ if !feature_flag.nil? && feature_flag.to_s.length > 256
169
+ fail ArgumentError, 'invalid value for "feature_flag", the character length must be smaller than or equal to 256.'
170
+ end
171
+
172
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
173
+ if !feature_flag.nil? && feature_flag !~ pattern
174
+ fail ArgumentError, "invalid value for \"feature_flag\", must conform to the pattern #{pattern}."
175
+ end
176
+
177
+ @feature_flag = feature_flag
178
+ end
179
+
145
180
  # Custom attribute writer method with validation
146
181
  # @param [Object] filter_types Value to be assigned
147
182
  def filter_types=(filter_types)
@@ -172,6 +207,7 @@ module Svix
172
207
  return true if self.equal?(o)
173
208
  self.class == o.class &&
174
209
  description == o.description &&
210
+ feature_flag == o.feature_flag &&
175
211
  filter_types == o.filter_types &&
176
212
  instructions == o.instructions &&
177
213
  instructions_link == o.instructions_link &&
@@ -189,7 +225,7 @@ module Svix
189
225
  # Calculates hash code according to all attributes.
190
226
  # @return [Integer] Hash code
191
227
  def hash
192
- [description, filter_types, instructions, instructions_link, logo, name, transformation].hash
228
+ [description, feature_flag, filter_types, instructions, instructions_link, logo, name, transformation].hash
193
229
  end
194
230
 
195
231
  # Builds the object from hash
@@ -17,6 +17,8 @@ module Svix
17
17
  class TemplateUpdate
18
18
  attr_accessor :description
19
19
 
20
+ attr_accessor :feature_flag
21
+
20
22
  attr_accessor :filter_types
21
23
 
22
24
  attr_accessor :instructions
@@ -33,6 +35,7 @@ module Svix
33
35
  def self.attribute_map
34
36
  {
35
37
  :'description' => :'description',
38
+ :'feature_flag' => :'featureFlag',
36
39
  :'filter_types' => :'filterTypes',
37
40
  :'instructions' => :'instructions',
38
41
  :'instructions_link' => :'instructionsLink',
@@ -51,6 +54,7 @@ module Svix
51
54
  def self.openapi_types
52
55
  {
53
56
  :'description' => :'String',
57
+ :'feature_flag' => :'String',
54
58
  :'filter_types' => :'Array<String>',
55
59
  :'instructions' => :'String',
56
60
  :'instructions_link' => :'String',
@@ -63,6 +67,7 @@ module Svix
63
67
  # List of attributes with nullable: true
64
68
  def self.openapi_nullable
65
69
  Set.new([
70
+ :'feature_flag',
66
71
  :'filter_types',
67
72
  :'instructions_link',
68
73
  ])
@@ -89,6 +94,10 @@ module Svix
89
94
  self.description = ''
90
95
  end
91
96
 
97
+ if attributes.key?(:'feature_flag')
98
+ self.feature_flag = attributes[:'feature_flag']
99
+ end
100
+
92
101
  if attributes.key?(:'filter_types')
93
102
  if (value = attributes[:'filter_types']).is_a?(Array)
94
103
  self.filter_types = value
@@ -124,6 +133,15 @@ module Svix
124
133
  # @return Array for valid properties with the reasons
125
134
  def list_invalid_properties
126
135
  invalid_properties = Array.new
136
+ if !@feature_flag.nil? && @feature_flag.to_s.length > 256
137
+ invalid_properties.push('invalid value for "feature_flag", the character length must be smaller than or equal to 256.')
138
+ end
139
+
140
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
141
+ if !@feature_flag.nil? && @feature_flag !~ pattern
142
+ invalid_properties.push("invalid value for \"feature_flag\", must conform to the pattern #{pattern}.")
143
+ end
144
+
127
145
  if !@filter_types.nil? && @filter_types.length < 1
128
146
  invalid_properties.push('invalid value for "filter_types", number of items must be greater than or equal to 1.')
129
147
  end
@@ -150,6 +168,8 @@ module Svix
150
168
  # Check to see if the all the properties in the model are valid
151
169
  # @return true if the model is valid
152
170
  def valid?
171
+ return false if !@feature_flag.nil? && @feature_flag.to_s.length > 256
172
+ return false if !@feature_flag.nil? && @feature_flag !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
153
173
  return false if !@filter_types.nil? && @filter_types.length < 1
154
174
  return false if @logo.nil?
155
175
  return false if @transformation.nil?
@@ -158,6 +178,21 @@ module Svix
158
178
  true
159
179
  end
160
180
 
181
+ # Custom attribute writer method with validation
182
+ # @param [Object] feature_flag Value to be assigned
183
+ def feature_flag=(feature_flag)
184
+ if !feature_flag.nil? && feature_flag.to_s.length > 256
185
+ fail ArgumentError, 'invalid value for "feature_flag", the character length must be smaller than or equal to 256.'
186
+ end
187
+
188
+ pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
189
+ if !feature_flag.nil? && feature_flag !~ pattern
190
+ fail ArgumentError, "invalid value for \"feature_flag\", must conform to the pattern #{pattern}."
191
+ end
192
+
193
+ @feature_flag = feature_flag
194
+ end
195
+
161
196
  # Custom attribute writer method with validation
162
197
  # @param [Object] filter_types Value to be assigned
163
198
  def filter_types=(filter_types)
@@ -192,6 +227,7 @@ module Svix
192
227
  return true if self.equal?(o)
193
228
  self.class == o.class &&
194
229
  description == o.description &&
230
+ feature_flag == o.feature_flag &&
195
231
  filter_types == o.filter_types &&
196
232
  instructions == o.instructions &&
197
233
  instructions_link == o.instructions_link &&
@@ -209,7 +245,7 @@ module Svix
209
245
  # Calculates hash code according to all attributes.
210
246
  # @return [Integer] Hash code
211
247
  def hash
212
- [description, filter_types, instructions, instructions_link, logo, name, transformation].hash
248
+ [description, feature_flag, filter_types, instructions, instructions_link, logo, name, transformation].hash
213
249
  end
214
250
 
215
251
  # 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.11.0"
4
+ VERSION = "1.12.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.11.0
4
+ version: 1.12.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Svix
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-09-04 00:00:00.000000000 Z
11
+ date: 2023-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus