svix 1.25.0 → 1.26.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/api/authentication_api.rb +87 -0
- data/lib/svix/api/events_api.rb +3 -3
- data/lib/svix/api/message_api.rb +107 -107
- data/lib/svix/models/auth_token_out.rb +13 -1
- data/lib/svix/models/event_out.rb +18 -4
- data/lib/svix/models/{list_response_event_out.rb → event_stream_out.rb} +12 -18
- data/lib/svix/models/event_type_in.rb +38 -1
- data/lib/svix/models/event_type_out.rb +38 -1
- data/lib/svix/models/event_type_patch.rb +38 -1
- data/lib/svix/models/event_type_update.rb +38 -1
- data/lib/svix/models/{message_stream_out.rb → message_events_out.rb} +3 -3
- data/lib/svix/models/message_subscriber_auth_token_out.rb +10 -10
- data/lib/svix/version.rb +1 -1
- metadata +4 -5
- data/lib/svix/api/streams_api.rb +0 -185
@@ -21,6 +21,9 @@ module Svix
|
|
21
21
|
|
22
22
|
attr_accessor :feature_flag
|
23
23
|
|
24
|
+
# The event type group's name
|
25
|
+
attr_accessor :group_name
|
26
|
+
|
24
27
|
# The event type's name
|
25
28
|
attr_accessor :name
|
26
29
|
|
@@ -33,6 +36,7 @@ module Svix
|
|
33
36
|
:'archived' => :'archived',
|
34
37
|
:'description' => :'description',
|
35
38
|
:'feature_flag' => :'featureFlag',
|
39
|
+
:'group_name' => :'groupName',
|
36
40
|
:'name' => :'name',
|
37
41
|
:'schemas' => :'schemas'
|
38
42
|
}
|
@@ -49,6 +53,7 @@ module Svix
|
|
49
53
|
:'archived' => :'Boolean',
|
50
54
|
:'description' => :'String',
|
51
55
|
:'feature_flag' => :'String',
|
56
|
+
:'group_name' => :'String',
|
52
57
|
:'name' => :'String',
|
53
58
|
:'schemas' => :'Hash<String, Object>'
|
54
59
|
}
|
@@ -58,6 +63,7 @@ module Svix
|
|
58
63
|
def self.openapi_nullable
|
59
64
|
Set.new([
|
60
65
|
:'feature_flag',
|
66
|
+
:'group_name',
|
61
67
|
:'schemas'
|
62
68
|
])
|
63
69
|
end
|
@@ -91,6 +97,10 @@ module Svix
|
|
91
97
|
self.feature_flag = attributes[:'feature_flag']
|
92
98
|
end
|
93
99
|
|
100
|
+
if attributes.key?(:'group_name')
|
101
|
+
self.group_name = attributes[:'group_name']
|
102
|
+
end
|
103
|
+
|
94
104
|
if attributes.key?(:'name')
|
95
105
|
self.name = attributes[:'name']
|
96
106
|
end
|
@@ -119,6 +129,15 @@ module Svix
|
|
119
129
|
invalid_properties.push("invalid value for \"feature_flag\", must conform to the pattern #{pattern}.")
|
120
130
|
end
|
121
131
|
|
132
|
+
if !@group_name.nil? && @group_name.to_s.length > 256
|
133
|
+
invalid_properties.push('invalid value for "group_name", the character length must be smaller than or equal to 256.')
|
134
|
+
end
|
135
|
+
|
136
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
137
|
+
if !@group_name.nil? && @group_name !~ pattern
|
138
|
+
invalid_properties.push("invalid value for \"group_name\", must conform to the pattern #{pattern}.")
|
139
|
+
end
|
140
|
+
|
122
141
|
if @name.nil?
|
123
142
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
124
143
|
end
|
@@ -141,6 +160,8 @@ module Svix
|
|
141
160
|
return false if @description.nil?
|
142
161
|
return false if !@feature_flag.nil? && @feature_flag.to_s.length > 256
|
143
162
|
return false if !@feature_flag.nil? && @feature_flag !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
163
|
+
return false if !@group_name.nil? && @group_name.to_s.length > 256
|
164
|
+
return false if !@group_name.nil? && @group_name !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
144
165
|
return false if @name.nil?
|
145
166
|
return false if @name.to_s.length > 256
|
146
167
|
return false if @name !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
@@ -162,6 +183,21 @@ module Svix
|
|
162
183
|
@feature_flag = feature_flag
|
163
184
|
end
|
164
185
|
|
186
|
+
# Custom attribute writer method with validation
|
187
|
+
# @param [Object] group_name Value to be assigned
|
188
|
+
def group_name=(group_name)
|
189
|
+
if !group_name.nil? && group_name.to_s.length > 256
|
190
|
+
fail ArgumentError, 'invalid value for "group_name", the character length must be smaller than or equal to 256.'
|
191
|
+
end
|
192
|
+
|
193
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
194
|
+
if !group_name.nil? && group_name !~ pattern
|
195
|
+
fail ArgumentError, "invalid value for \"group_name\", must conform to the pattern #{pattern}."
|
196
|
+
end
|
197
|
+
|
198
|
+
@group_name = group_name
|
199
|
+
end
|
200
|
+
|
165
201
|
# Custom attribute writer method with validation
|
166
202
|
# @param [Object] name Value to be assigned
|
167
203
|
def name=(name)
|
@@ -189,6 +225,7 @@ module Svix
|
|
189
225
|
archived == o.archived &&
|
190
226
|
description == o.description &&
|
191
227
|
feature_flag == o.feature_flag &&
|
228
|
+
group_name == o.group_name &&
|
192
229
|
name == o.name &&
|
193
230
|
schemas == o.schemas
|
194
231
|
end
|
@@ -202,7 +239,7 @@ module Svix
|
|
202
239
|
# Calculates hash code according to all attributes.
|
203
240
|
# @return [Integer] Hash code
|
204
241
|
def hash
|
205
|
-
[archived, description, feature_flag, name, schemas].hash
|
242
|
+
[archived, description, feature_flag, group_name, name, schemas].hash
|
206
243
|
end
|
207
244
|
|
208
245
|
# Builds the object from hash
|
@@ -23,6 +23,9 @@ module Svix
|
|
23
23
|
|
24
24
|
attr_accessor :feature_flag
|
25
25
|
|
26
|
+
# The event type group's name
|
27
|
+
attr_accessor :group_name
|
28
|
+
|
26
29
|
# The event type's name
|
27
30
|
attr_accessor :name
|
28
31
|
|
@@ -38,6 +41,7 @@ module Svix
|
|
38
41
|
:'created_at' => :'createdAt',
|
39
42
|
:'description' => :'description',
|
40
43
|
:'feature_flag' => :'featureFlag',
|
44
|
+
:'group_name' => :'groupName',
|
41
45
|
:'name' => :'name',
|
42
46
|
:'schemas' => :'schemas',
|
43
47
|
:'updated_at' => :'updatedAt'
|
@@ -56,6 +60,7 @@ module Svix
|
|
56
60
|
:'created_at' => :'Time',
|
57
61
|
:'description' => :'String',
|
58
62
|
:'feature_flag' => :'String',
|
63
|
+
:'group_name' => :'String',
|
59
64
|
:'name' => :'String',
|
60
65
|
:'schemas' => :'Hash<String, Object>',
|
61
66
|
:'updated_at' => :'Time'
|
@@ -66,6 +71,7 @@ module Svix
|
|
66
71
|
def self.openapi_nullable
|
67
72
|
Set.new([
|
68
73
|
:'feature_flag',
|
74
|
+
:'group_name',
|
69
75
|
:'schemas',
|
70
76
|
])
|
71
77
|
end
|
@@ -103,6 +109,10 @@ module Svix
|
|
103
109
|
self.feature_flag = attributes[:'feature_flag']
|
104
110
|
end
|
105
111
|
|
112
|
+
if attributes.key?(:'group_name')
|
113
|
+
self.group_name = attributes[:'group_name']
|
114
|
+
end
|
115
|
+
|
106
116
|
if attributes.key?(:'name')
|
107
117
|
self.name = attributes[:'name']
|
108
118
|
end
|
@@ -139,6 +149,15 @@ module Svix
|
|
139
149
|
invalid_properties.push("invalid value for \"feature_flag\", must conform to the pattern #{pattern}.")
|
140
150
|
end
|
141
151
|
|
152
|
+
if !@group_name.nil? && @group_name.to_s.length > 256
|
153
|
+
invalid_properties.push('invalid value for "group_name", the character length must be smaller than or equal to 256.')
|
154
|
+
end
|
155
|
+
|
156
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
157
|
+
if !@group_name.nil? && @group_name !~ pattern
|
158
|
+
invalid_properties.push("invalid value for \"group_name\", must conform to the pattern #{pattern}.")
|
159
|
+
end
|
160
|
+
|
142
161
|
if @name.nil?
|
143
162
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
144
163
|
end
|
@@ -166,6 +185,8 @@ module Svix
|
|
166
185
|
return false if @description.nil?
|
167
186
|
return false if !@feature_flag.nil? && @feature_flag.to_s.length > 256
|
168
187
|
return false if !@feature_flag.nil? && @feature_flag !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
188
|
+
return false if !@group_name.nil? && @group_name.to_s.length > 256
|
189
|
+
return false if !@group_name.nil? && @group_name !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
169
190
|
return false if @name.nil?
|
170
191
|
return false if @name.to_s.length > 256
|
171
192
|
return false if @name !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
@@ -188,6 +209,21 @@ module Svix
|
|
188
209
|
@feature_flag = feature_flag
|
189
210
|
end
|
190
211
|
|
212
|
+
# Custom attribute writer method with validation
|
213
|
+
# @param [Object] group_name Value to be assigned
|
214
|
+
def group_name=(group_name)
|
215
|
+
if !group_name.nil? && group_name.to_s.length > 256
|
216
|
+
fail ArgumentError, 'invalid value for "group_name", the character length must be smaller than or equal to 256.'
|
217
|
+
end
|
218
|
+
|
219
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
220
|
+
if !group_name.nil? && group_name !~ pattern
|
221
|
+
fail ArgumentError, "invalid value for \"group_name\", must conform to the pattern #{pattern}."
|
222
|
+
end
|
223
|
+
|
224
|
+
@group_name = group_name
|
225
|
+
end
|
226
|
+
|
191
227
|
# Custom attribute writer method with validation
|
192
228
|
# @param [Object] name Value to be assigned
|
193
229
|
def name=(name)
|
@@ -216,6 +252,7 @@ module Svix
|
|
216
252
|
created_at == o.created_at &&
|
217
253
|
description == o.description &&
|
218
254
|
feature_flag == o.feature_flag &&
|
255
|
+
group_name == o.group_name &&
|
219
256
|
name == o.name &&
|
220
257
|
schemas == o.schemas &&
|
221
258
|
updated_at == o.updated_at
|
@@ -230,7 +267,7 @@ module Svix
|
|
230
267
|
# Calculates hash code according to all attributes.
|
231
268
|
# @return [Integer] Hash code
|
232
269
|
def hash
|
233
|
-
[archived, created_at, description, feature_flag, name, schemas, updated_at].hash
|
270
|
+
[archived, created_at, description, feature_flag, group_name, name, schemas, updated_at].hash
|
234
271
|
end
|
235
272
|
|
236
273
|
# Builds the object from hash
|
@@ -21,6 +21,9 @@ module Svix
|
|
21
21
|
|
22
22
|
attr_accessor :feature_flag
|
23
23
|
|
24
|
+
# The event type group's name
|
25
|
+
attr_accessor :group_name
|
26
|
+
|
24
27
|
attr_accessor :schemas
|
25
28
|
|
26
29
|
# Attribute mapping from ruby-style variable name to JSON key.
|
@@ -29,6 +32,7 @@ module Svix
|
|
29
32
|
:'archived' => :'archived',
|
30
33
|
:'description' => :'description',
|
31
34
|
:'feature_flag' => :'featureFlag',
|
35
|
+
:'group_name' => :'groupName',
|
32
36
|
:'schemas' => :'schemas'
|
33
37
|
}
|
34
38
|
end
|
@@ -44,6 +48,7 @@ module Svix
|
|
44
48
|
:'archived' => :'Boolean',
|
45
49
|
:'description' => :'String',
|
46
50
|
:'feature_flag' => :'String',
|
51
|
+
:'group_name' => :'String',
|
47
52
|
:'schemas' => :'Hash<String, Object>'
|
48
53
|
}
|
49
54
|
end
|
@@ -52,6 +57,7 @@ module Svix
|
|
52
57
|
def self.openapi_nullable
|
53
58
|
Set.new([
|
54
59
|
:'feature_flag',
|
60
|
+
:'group_name',
|
55
61
|
:'schemas'
|
56
62
|
])
|
57
63
|
end
|
@@ -83,6 +89,10 @@ module Svix
|
|
83
89
|
self.feature_flag = attributes[:'feature_flag']
|
84
90
|
end
|
85
91
|
|
92
|
+
if attributes.key?(:'group_name')
|
93
|
+
self.group_name = attributes[:'group_name']
|
94
|
+
end
|
95
|
+
|
86
96
|
if attributes.key?(:'schemas')
|
87
97
|
if (value = attributes[:'schemas']).is_a?(Hash)
|
88
98
|
self.schemas = value
|
@@ -103,6 +113,15 @@ module Svix
|
|
103
113
|
invalid_properties.push("invalid value for \"feature_flag\", must conform to the pattern #{pattern}.")
|
104
114
|
end
|
105
115
|
|
116
|
+
if !@group_name.nil? && @group_name.to_s.length > 256
|
117
|
+
invalid_properties.push('invalid value for "group_name", the character length must be smaller than or equal to 256.')
|
118
|
+
end
|
119
|
+
|
120
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
121
|
+
if !@group_name.nil? && @group_name !~ pattern
|
122
|
+
invalid_properties.push("invalid value for \"group_name\", must conform to the pattern #{pattern}.")
|
123
|
+
end
|
124
|
+
|
106
125
|
invalid_properties
|
107
126
|
end
|
108
127
|
|
@@ -111,6 +130,8 @@ module Svix
|
|
111
130
|
def valid?
|
112
131
|
return false if !@feature_flag.nil? && @feature_flag.to_s.length > 256
|
113
132
|
return false if !@feature_flag.nil? && @feature_flag !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
133
|
+
return false if !@group_name.nil? && @group_name.to_s.length > 256
|
134
|
+
return false if !@group_name.nil? && @group_name !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
114
135
|
true
|
115
136
|
end
|
116
137
|
|
@@ -129,6 +150,21 @@ module Svix
|
|
129
150
|
@feature_flag = feature_flag
|
130
151
|
end
|
131
152
|
|
153
|
+
# Custom attribute writer method with validation
|
154
|
+
# @param [Object] group_name Value to be assigned
|
155
|
+
def group_name=(group_name)
|
156
|
+
if !group_name.nil? && group_name.to_s.length > 256
|
157
|
+
fail ArgumentError, 'invalid value for "group_name", the character length must be smaller than or equal to 256.'
|
158
|
+
end
|
159
|
+
|
160
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
161
|
+
if !group_name.nil? && group_name !~ pattern
|
162
|
+
fail ArgumentError, "invalid value for \"group_name\", must conform to the pattern #{pattern}."
|
163
|
+
end
|
164
|
+
|
165
|
+
@group_name = group_name
|
166
|
+
end
|
167
|
+
|
132
168
|
# Checks equality by comparing each attribute.
|
133
169
|
# @param [Object] Object to be compared
|
134
170
|
def ==(o)
|
@@ -137,6 +173,7 @@ module Svix
|
|
137
173
|
archived == o.archived &&
|
138
174
|
description == o.description &&
|
139
175
|
feature_flag == o.feature_flag &&
|
176
|
+
group_name == o.group_name &&
|
140
177
|
schemas == o.schemas
|
141
178
|
end
|
142
179
|
|
@@ -149,7 +186,7 @@ module Svix
|
|
149
186
|
# Calculates hash code according to all attributes.
|
150
187
|
# @return [Integer] Hash code
|
151
188
|
def hash
|
152
|
-
[archived, description, feature_flag, schemas].hash
|
189
|
+
[archived, description, feature_flag, group_name, schemas].hash
|
153
190
|
end
|
154
191
|
|
155
192
|
# Builds the object from hash
|
@@ -21,6 +21,9 @@ module Svix
|
|
21
21
|
|
22
22
|
attr_accessor :feature_flag
|
23
23
|
|
24
|
+
# The event type group's name
|
25
|
+
attr_accessor :group_name
|
26
|
+
|
24
27
|
# The schema for the event type for a specific version as a JSON schema.
|
25
28
|
attr_accessor :schemas
|
26
29
|
|
@@ -30,6 +33,7 @@ module Svix
|
|
30
33
|
:'archived' => :'archived',
|
31
34
|
:'description' => :'description',
|
32
35
|
:'feature_flag' => :'featureFlag',
|
36
|
+
:'group_name' => :'groupName',
|
33
37
|
:'schemas' => :'schemas'
|
34
38
|
}
|
35
39
|
end
|
@@ -45,6 +49,7 @@ module Svix
|
|
45
49
|
:'archived' => :'Boolean',
|
46
50
|
:'description' => :'String',
|
47
51
|
:'feature_flag' => :'String',
|
52
|
+
:'group_name' => :'String',
|
48
53
|
:'schemas' => :'Hash<String, Object>'
|
49
54
|
}
|
50
55
|
end
|
@@ -53,6 +58,7 @@ module Svix
|
|
53
58
|
def self.openapi_nullable
|
54
59
|
Set.new([
|
55
60
|
:'feature_flag',
|
61
|
+
:'group_name',
|
56
62
|
:'schemas'
|
57
63
|
])
|
58
64
|
end
|
@@ -86,6 +92,10 @@ module Svix
|
|
86
92
|
self.feature_flag = attributes[:'feature_flag']
|
87
93
|
end
|
88
94
|
|
95
|
+
if attributes.key?(:'group_name')
|
96
|
+
self.group_name = attributes[:'group_name']
|
97
|
+
end
|
98
|
+
|
89
99
|
if attributes.key?(:'schemas')
|
90
100
|
if (value = attributes[:'schemas']).is_a?(Hash)
|
91
101
|
self.schemas = value
|
@@ -110,6 +120,15 @@ module Svix
|
|
110
120
|
invalid_properties.push("invalid value for \"feature_flag\", must conform to the pattern #{pattern}.")
|
111
121
|
end
|
112
122
|
|
123
|
+
if !@group_name.nil? && @group_name.to_s.length > 256
|
124
|
+
invalid_properties.push('invalid value for "group_name", the character length must be smaller than or equal to 256.')
|
125
|
+
end
|
126
|
+
|
127
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
128
|
+
if !@group_name.nil? && @group_name !~ pattern
|
129
|
+
invalid_properties.push("invalid value for \"group_name\", must conform to the pattern #{pattern}.")
|
130
|
+
end
|
131
|
+
|
113
132
|
invalid_properties
|
114
133
|
end
|
115
134
|
|
@@ -119,6 +138,8 @@ module Svix
|
|
119
138
|
return false if @description.nil?
|
120
139
|
return false if !@feature_flag.nil? && @feature_flag.to_s.length > 256
|
121
140
|
return false if !@feature_flag.nil? && @feature_flag !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
141
|
+
return false if !@group_name.nil? && @group_name.to_s.length > 256
|
142
|
+
return false if !@group_name.nil? && @group_name !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
122
143
|
true
|
123
144
|
end
|
124
145
|
|
@@ -137,6 +158,21 @@ module Svix
|
|
137
158
|
@feature_flag = feature_flag
|
138
159
|
end
|
139
160
|
|
161
|
+
# Custom attribute writer method with validation
|
162
|
+
# @param [Object] group_name Value to be assigned
|
163
|
+
def group_name=(group_name)
|
164
|
+
if !group_name.nil? && group_name.to_s.length > 256
|
165
|
+
fail ArgumentError, 'invalid value for "group_name", the character length must be smaller than or equal to 256.'
|
166
|
+
end
|
167
|
+
|
168
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
169
|
+
if !group_name.nil? && group_name !~ pattern
|
170
|
+
fail ArgumentError, "invalid value for \"group_name\", must conform to the pattern #{pattern}."
|
171
|
+
end
|
172
|
+
|
173
|
+
@group_name = group_name
|
174
|
+
end
|
175
|
+
|
140
176
|
# Checks equality by comparing each attribute.
|
141
177
|
# @param [Object] Object to be compared
|
142
178
|
def ==(o)
|
@@ -145,6 +181,7 @@ module Svix
|
|
145
181
|
archived == o.archived &&
|
146
182
|
description == o.description &&
|
147
183
|
feature_flag == o.feature_flag &&
|
184
|
+
group_name == o.group_name &&
|
148
185
|
schemas == o.schemas
|
149
186
|
end
|
150
187
|
|
@@ -157,7 +194,7 @@ module Svix
|
|
157
194
|
# Calculates hash code according to all attributes.
|
158
195
|
# @return [Integer] Hash code
|
159
196
|
def hash
|
160
|
-
[archived, description, feature_flag, schemas].hash
|
197
|
+
[archived, description, feature_flag, group_name, schemas].hash
|
161
198
|
end
|
162
199
|
|
163
200
|
# Builds the object from hash
|
@@ -14,7 +14,7 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module Svix
|
17
|
-
class
|
17
|
+
class MessageEventsOut
|
18
18
|
attr_accessor :data
|
19
19
|
|
20
20
|
attr_accessor :done
|
@@ -54,13 +54,13 @@ module Svix
|
|
54
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
55
55
|
def initialize(attributes = {})
|
56
56
|
if (!attributes.is_a?(Hash))
|
57
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::MessageEventsOut` initialize method"
|
58
58
|
end
|
59
59
|
|
60
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
61
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
62
62
|
if (!self.class.attribute_map.key?(k.to_sym))
|
63
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::MessageEventsOut`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
64
64
|
end
|
65
65
|
h[k.to_sym] = v
|
66
66
|
}
|
@@ -15,14 +15,14 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Svix
|
17
17
|
class MessageSubscriberAuthTokenOut
|
18
|
-
attr_accessor :
|
18
|
+
attr_accessor :bridge_token
|
19
19
|
|
20
20
|
attr_accessor :token
|
21
21
|
|
22
22
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
23
|
def self.attribute_map
|
24
24
|
{
|
25
|
-
:'
|
25
|
+
:'bridge_token' => :'bridgeToken',
|
26
26
|
:'token' => :'token'
|
27
27
|
}
|
28
28
|
end
|
@@ -35,7 +35,7 @@ module Svix
|
|
35
35
|
# Attribute type mapping.
|
36
36
|
def self.openapi_types
|
37
37
|
{
|
38
|
-
:'
|
38
|
+
:'bridge_token' => :'String',
|
39
39
|
:'token' => :'String'
|
40
40
|
}
|
41
41
|
end
|
@@ -61,8 +61,8 @@ module Svix
|
|
61
61
|
h[k.to_sym] = v
|
62
62
|
}
|
63
63
|
|
64
|
-
if attributes.key?(:'
|
65
|
-
self.
|
64
|
+
if attributes.key?(:'bridge_token')
|
65
|
+
self.bridge_token = attributes[:'bridge_token']
|
66
66
|
end
|
67
67
|
|
68
68
|
if attributes.key?(:'token')
|
@@ -74,8 +74,8 @@ module Svix
|
|
74
74
|
# @return Array for valid properties with the reasons
|
75
75
|
def list_invalid_properties
|
76
76
|
invalid_properties = Array.new
|
77
|
-
if @
|
78
|
-
invalid_properties.push('invalid value for "
|
77
|
+
if @bridge_token.nil?
|
78
|
+
invalid_properties.push('invalid value for "bridge_token", bridge_token cannot be nil.')
|
79
79
|
end
|
80
80
|
|
81
81
|
if @token.nil?
|
@@ -88,7 +88,7 @@ module Svix
|
|
88
88
|
# Check to see if the all the properties in the model are valid
|
89
89
|
# @return true if the model is valid
|
90
90
|
def valid?
|
91
|
-
return false if @
|
91
|
+
return false if @bridge_token.nil?
|
92
92
|
return false if @token.nil?
|
93
93
|
true
|
94
94
|
end
|
@@ -98,7 +98,7 @@ module Svix
|
|
98
98
|
def ==(o)
|
99
99
|
return true if self.equal?(o)
|
100
100
|
self.class == o.class &&
|
101
|
-
|
101
|
+
bridge_token == o.bridge_token &&
|
102
102
|
token == o.token
|
103
103
|
end
|
104
104
|
|
@@ -111,7 +111,7 @@ module Svix
|
|
111
111
|
# Calculates hash code according to all attributes.
|
112
112
|
# @return [Integer] Hash code
|
113
113
|
def hash
|
114
|
-
[
|
114
|
+
[bridge_token, token].hash
|
115
115
|
end
|
116
116
|
|
117
117
|
# 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.26.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-07-
|
11
|
+
date: 2024-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -85,7 +85,6 @@ files:
|
|
85
85
|
- lib/svix/api/message_api.rb
|
86
86
|
- lib/svix/api/message_attempt_api.rb
|
87
87
|
- lib/svix/api/statistics_api.rb
|
88
|
-
- lib/svix/api/streams_api.rb
|
89
88
|
- lib/svix/api/transformation_template_api.rb
|
90
89
|
- lib/svix/api_client.rb
|
91
90
|
- lib/svix/api_error.rb
|
@@ -158,6 +157,7 @@ files:
|
|
158
157
|
- lib/svix/models/event_example_in.rb
|
159
158
|
- lib/svix/models/event_in.rb
|
160
159
|
- lib/svix/models/event_out.rb
|
160
|
+
- lib/svix/models/event_stream_out.rb
|
161
161
|
- lib/svix/models/event_type_example_out.rb
|
162
162
|
- lib/svix/models/event_type_from_open_api.rb
|
163
163
|
- lib/svix/models/event_type_import_open_api_in.rb
|
@@ -187,7 +187,6 @@ files:
|
|
187
187
|
- lib/svix/models/list_response_background_task_out.rb
|
188
188
|
- lib/svix/models/list_response_endpoint_message_out.rb
|
189
189
|
- lib/svix/models/list_response_endpoint_out.rb
|
190
|
-
- lib/svix/models/list_response_event_out.rb
|
191
190
|
- lib/svix/models/list_response_event_type_out.rb
|
192
191
|
- lib/svix/models/list_response_integration_out.rb
|
193
192
|
- lib/svix/models/list_response_message_attempt_endpoint_out.rb
|
@@ -210,11 +209,11 @@ files:
|
|
210
209
|
- lib/svix/models/message_broadcast_in.rb
|
211
210
|
- lib/svix/models/message_broadcast_out.rb
|
212
211
|
- lib/svix/models/message_endpoint_out.rb
|
212
|
+
- lib/svix/models/message_events_out.rb
|
213
213
|
- lib/svix/models/message_in.rb
|
214
214
|
- lib/svix/models/message_out.rb
|
215
215
|
- lib/svix/models/message_raw_payload_out.rb
|
216
216
|
- lib/svix/models/message_status.rb
|
217
|
-
- lib/svix/models/message_stream_out.rb
|
218
217
|
- lib/svix/models/message_subscriber_auth_token_out.rb
|
219
218
|
- lib/svix/models/o_auth_payload_in.rb
|
220
219
|
- lib/svix/models/o_auth_payload_out.rb
|