svix 0.66.0 → 0.68.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/application_api.rb +177 -0
- data/lib/svix/api/endpoint_api.rb +106 -0
- data/lib/svix/models/application_in.rb +13 -1
- data/lib/svix/models/application_out.rb +13 -1
- data/lib/svix/models/application_stats.rb +283 -0
- data/lib/svix/models/endpoint_in.rb +13 -1
- data/lib/svix/models/endpoint_out.rb +13 -1
- data/lib/svix/models/endpoint_update.rb +13 -1
- data/lib/svix/models/environment_settings_out.rb +15 -4
- data/lib/svix/models/list_response_application_stats.rb +249 -0
- data/lib/svix/models/message_endpoint_out.rb +13 -1
- data/lib/svix/models/replay_in.rb +223 -0
- data/lib/svix/models/settings_in.rb +27 -5
- data/lib/svix/models/settings_out.rb +27 -5
- data/lib/svix/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3026a0322d9b6d29d1ac85cf20184e042bdee90e44dad4676886b173afb94683
|
4
|
+
data.tar.gz: a2e979b32c763b39f7b79ca76d38c22ad683742847dda0607b36793c7b860f75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86ff45926502b9a691da702c0c01d1a4adf25c03bd0f927398411e1520794a26cf3347a17024a697284c108ac39cc0d0156a1cbb7884e327b686aea9d398caad
|
7
|
+
data.tar.gz: ec846c4182514970521221e907608569e21f71e78a7c46f6a912987e4c175827486dd67fa5325f3175bdc753f23c9f0416f1b87c78c8a20d5b48f5029fbe1f24
|
data/Gemfile.lock
CHANGED
@@ -169,6 +169,183 @@ module Svix
|
|
169
169
|
return data, status_code, headers
|
170
170
|
end
|
171
171
|
|
172
|
+
# Get App Stats
|
173
|
+
# Get basic statistics for the application
|
174
|
+
# @param app_id [String]
|
175
|
+
# @param since [Time]
|
176
|
+
# @param _until [Time]
|
177
|
+
# @param [Hash] opts the optional parameters
|
178
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
179
|
+
# @return [ApplicationStats]
|
180
|
+
def get_app_stats_api_v1_app_app_id_stats_get(app_id, since, _until, opts = {})
|
181
|
+
data, _status_code, _headers = get_app_stats_api_v1_app_app_id_stats_get_with_http_info(app_id, since, _until, opts)
|
182
|
+
data
|
183
|
+
end
|
184
|
+
|
185
|
+
# Get App Stats
|
186
|
+
# Get basic statistics for the application
|
187
|
+
# @param app_id [String]
|
188
|
+
# @param since [Time]
|
189
|
+
# @param _until [Time]
|
190
|
+
# @param [Hash] opts the optional parameters
|
191
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
192
|
+
# @return [Array<(ApplicationStats, Integer, Hash)>] ApplicationStats data, response status code and response headers
|
193
|
+
def get_app_stats_api_v1_app_app_id_stats_get_with_http_info(app_id, since, _until, opts = {})
|
194
|
+
if @api_client.config.debugging
|
195
|
+
@api_client.config.logger.debug 'Calling API: ApplicationApi.get_app_stats_api_v1_app_app_id_stats_get ...'
|
196
|
+
end
|
197
|
+
# verify the required parameter 'app_id' is set
|
198
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
199
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling ApplicationApi.get_app_stats_api_v1_app_app_id_stats_get"
|
200
|
+
end
|
201
|
+
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
202
|
+
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.get_app_stats_api_v1_app_app_id_stats_get, the character length must be smaller than or equal to 256.'
|
203
|
+
end
|
204
|
+
|
205
|
+
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
206
|
+
fail ArgumentError, 'invalid value for "app_id" when calling ApplicationApi.get_app_stats_api_v1_app_app_id_stats_get, the character length must be great than or equal to 1.'
|
207
|
+
end
|
208
|
+
|
209
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
210
|
+
if @api_client.config.client_side_validation && app_id !~ pattern
|
211
|
+
fail ArgumentError, "invalid value for 'app_id' when calling ApplicationApi.get_app_stats_api_v1_app_app_id_stats_get, must conform to the pattern #{pattern}."
|
212
|
+
end
|
213
|
+
|
214
|
+
# verify the required parameter 'since' is set
|
215
|
+
if @api_client.config.client_side_validation && since.nil?
|
216
|
+
fail ArgumentError, "Missing the required parameter 'since' when calling ApplicationApi.get_app_stats_api_v1_app_app_id_stats_get"
|
217
|
+
end
|
218
|
+
# verify the required parameter '_until' is set
|
219
|
+
if @api_client.config.client_side_validation && _until.nil?
|
220
|
+
fail ArgumentError, "Missing the required parameter '_until' when calling ApplicationApi.get_app_stats_api_v1_app_app_id_stats_get"
|
221
|
+
end
|
222
|
+
# resource path
|
223
|
+
local_var_path = '/api/v1/app/{app_id}/stats/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s))
|
224
|
+
|
225
|
+
# query parameters
|
226
|
+
query_params = opts[:query_params] || {}
|
227
|
+
query_params[:'since'] = since
|
228
|
+
query_params[:'until'] = _until
|
229
|
+
|
230
|
+
# header parameters
|
231
|
+
header_params = opts[:header_params] || {}
|
232
|
+
# HTTP header 'Accept' (if needed)
|
233
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
234
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
235
|
+
|
236
|
+
# form parameters
|
237
|
+
form_params = opts[:form_params] || {}
|
238
|
+
|
239
|
+
# http body (model)
|
240
|
+
post_body = opts[:debug_body]
|
241
|
+
|
242
|
+
# return_type
|
243
|
+
return_type = opts[:debug_return_type] || 'ApplicationStats'
|
244
|
+
|
245
|
+
# auth_names
|
246
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
247
|
+
|
248
|
+
new_options = opts.merge(
|
249
|
+
:operation => :"ApplicationApi.get_app_stats_api_v1_app_app_id_stats_get",
|
250
|
+
:header_params => header_params,
|
251
|
+
:query_params => query_params,
|
252
|
+
:form_params => form_params,
|
253
|
+
:body => post_body,
|
254
|
+
:auth_names => auth_names,
|
255
|
+
:return_type => return_type
|
256
|
+
)
|
257
|
+
|
258
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
259
|
+
if @api_client.config.debugging
|
260
|
+
@api_client.config.logger.debug "API called: ApplicationApi#get_app_stats_api_v1_app_app_id_stats_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
261
|
+
end
|
262
|
+
return data, status_code, headers
|
263
|
+
end
|
264
|
+
|
265
|
+
# Get App Usage Stats
|
266
|
+
# Get basic statistics for all applications.
|
267
|
+
# @param since [Time]
|
268
|
+
# @param _until [Time]
|
269
|
+
# @param [Hash] opts the optional parameters
|
270
|
+
# @option opts [Integer] :limit (default to 50)
|
271
|
+
# @option opts [String] :iterator
|
272
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
273
|
+
# @return [ListResponseApplicationStats]
|
274
|
+
def get_app_usage_stats_api_v1_app_stats_usage_get(since, _until, opts = {})
|
275
|
+
data, _status_code, _headers = get_app_usage_stats_api_v1_app_stats_usage_get_with_http_info(since, _until, opts)
|
276
|
+
data
|
277
|
+
end
|
278
|
+
|
279
|
+
# Get App Usage Stats
|
280
|
+
# Get basic statistics for all applications.
|
281
|
+
# @param since [Time]
|
282
|
+
# @param _until [Time]
|
283
|
+
# @param [Hash] opts the optional parameters
|
284
|
+
# @option opts [Integer] :limit
|
285
|
+
# @option opts [String] :iterator
|
286
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
287
|
+
# @return [Array<(ListResponseApplicationStats, Integer, Hash)>] ListResponseApplicationStats data, response status code and response headers
|
288
|
+
def get_app_usage_stats_api_v1_app_stats_usage_get_with_http_info(since, _until, opts = {})
|
289
|
+
if @api_client.config.debugging
|
290
|
+
@api_client.config.logger.debug 'Calling API: ApplicationApi.get_app_usage_stats_api_v1_app_stats_usage_get ...'
|
291
|
+
end
|
292
|
+
# verify the required parameter 'since' is set
|
293
|
+
if @api_client.config.client_side_validation && since.nil?
|
294
|
+
fail ArgumentError, "Missing the required parameter 'since' when calling ApplicationApi.get_app_usage_stats_api_v1_app_stats_usage_get"
|
295
|
+
end
|
296
|
+
# verify the required parameter '_until' is set
|
297
|
+
if @api_client.config.client_side_validation && _until.nil?
|
298
|
+
fail ArgumentError, "Missing the required parameter '_until' when calling ApplicationApi.get_app_usage_stats_api_v1_app_stats_usage_get"
|
299
|
+
end
|
300
|
+
if @api_client.config.client_side_validation && !opts[:'limit'].nil? && opts[:'limit'] > 250
|
301
|
+
fail ArgumentError, 'invalid value for "opts[:"limit"]" when calling ApplicationApi.get_app_usage_stats_api_v1_app_stats_usage_get, must be smaller than or equal to 250.'
|
302
|
+
end
|
303
|
+
|
304
|
+
# resource path
|
305
|
+
local_var_path = '/api/v1/app/stats/usage/'
|
306
|
+
|
307
|
+
# query parameters
|
308
|
+
query_params = opts[:query_params] || {}
|
309
|
+
query_params[:'since'] = since
|
310
|
+
query_params[:'until'] = _until
|
311
|
+
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
312
|
+
query_params[:'iterator'] = opts[:'iterator'] if !opts[:'iterator'].nil?
|
313
|
+
|
314
|
+
# header parameters
|
315
|
+
header_params = opts[:header_params] || {}
|
316
|
+
# HTTP header 'Accept' (if needed)
|
317
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
318
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
319
|
+
|
320
|
+
# form parameters
|
321
|
+
form_params = opts[:form_params] || {}
|
322
|
+
|
323
|
+
# http body (model)
|
324
|
+
post_body = opts[:debug_body]
|
325
|
+
|
326
|
+
# return_type
|
327
|
+
return_type = opts[:debug_return_type] || 'ListResponseApplicationStats'
|
328
|
+
|
329
|
+
# auth_names
|
330
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
331
|
+
|
332
|
+
new_options = opts.merge(
|
333
|
+
:operation => :"ApplicationApi.get_app_usage_stats_api_v1_app_stats_usage_get",
|
334
|
+
:header_params => header_params,
|
335
|
+
:query_params => query_params,
|
336
|
+
:form_params => form_params,
|
337
|
+
:body => post_body,
|
338
|
+
:auth_names => auth_names,
|
339
|
+
:return_type => return_type
|
340
|
+
)
|
341
|
+
|
342
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
343
|
+
if @api_client.config.debugging
|
344
|
+
@api_client.config.logger.debug "API called: ApplicationApi#get_app_usage_stats_api_v1_app_stats_usage_get\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
345
|
+
end
|
346
|
+
return data, status_code, headers
|
347
|
+
end
|
348
|
+
|
172
349
|
# Get Application
|
173
350
|
# Get an application.
|
174
351
|
# @param app_id [String]
|
@@ -995,6 +995,112 @@ module Svix
|
|
995
995
|
return data, status_code, headers
|
996
996
|
end
|
997
997
|
|
998
|
+
# Replay Missing Webhooks
|
999
|
+
# Replays messages to the endpoint. Only messages that were created after `since` will be sent. Messages that were previously sent to the endpoint are not resent.
|
1000
|
+
# @param app_id [String]
|
1001
|
+
# @param endpoint_id [String]
|
1002
|
+
# @param replay_in [ReplayIn]
|
1003
|
+
# @param [Hash] opts the optional parameters
|
1004
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
1005
|
+
# @return [Object]
|
1006
|
+
def replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post(app_id, endpoint_id, replay_in, opts = {})
|
1007
|
+
data, _status_code, _headers = replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post_with_http_info(app_id, endpoint_id, replay_in, opts)
|
1008
|
+
data
|
1009
|
+
end
|
1010
|
+
|
1011
|
+
# Replay Missing Webhooks
|
1012
|
+
# Replays messages to the endpoint. Only messages that were created after `since` will be sent. Messages that were previously sent to the endpoint are not resent.
|
1013
|
+
# @param app_id [String]
|
1014
|
+
# @param endpoint_id [String]
|
1015
|
+
# @param replay_in [ReplayIn]
|
1016
|
+
# @param [Hash] opts the optional parameters
|
1017
|
+
# @option opts [String] :idempotency_key The request's idempotency key
|
1018
|
+
# @return [Array<(Object, Integer, Hash)>] Object data, response status code and response headers
|
1019
|
+
def replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post_with_http_info(app_id, endpoint_id, replay_in, opts = {})
|
1020
|
+
if @api_client.config.debugging
|
1021
|
+
@api_client.config.logger.debug 'Calling API: EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post ...'
|
1022
|
+
end
|
1023
|
+
# verify the required parameter 'app_id' is set
|
1024
|
+
if @api_client.config.client_side_validation && app_id.nil?
|
1025
|
+
fail ArgumentError, "Missing the required parameter 'app_id' when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post"
|
1026
|
+
end
|
1027
|
+
if @api_client.config.client_side_validation && app_id.to_s.length > 256
|
1028
|
+
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post, the character length must be smaller than or equal to 256.'
|
1029
|
+
end
|
1030
|
+
|
1031
|
+
if @api_client.config.client_side_validation && app_id.to_s.length < 1
|
1032
|
+
fail ArgumentError, 'invalid value for "app_id" when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post, the character length must be great than or equal to 1.'
|
1033
|
+
end
|
1034
|
+
|
1035
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1036
|
+
if @api_client.config.client_side_validation && app_id !~ pattern
|
1037
|
+
fail ArgumentError, "invalid value for 'app_id' when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post, must conform to the pattern #{pattern}."
|
1038
|
+
end
|
1039
|
+
|
1040
|
+
# verify the required parameter 'endpoint_id' is set
|
1041
|
+
if @api_client.config.client_side_validation && endpoint_id.nil?
|
1042
|
+
fail ArgumentError, "Missing the required parameter 'endpoint_id' when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post"
|
1043
|
+
end
|
1044
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length > 256
|
1045
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post, the character length must be smaller than or equal to 256.'
|
1046
|
+
end
|
1047
|
+
|
1048
|
+
if @api_client.config.client_side_validation && endpoint_id.to_s.length < 1
|
1049
|
+
fail ArgumentError, 'invalid value for "endpoint_id" when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post, the character length must be great than or equal to 1.'
|
1050
|
+
end
|
1051
|
+
|
1052
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
1053
|
+
if @api_client.config.client_side_validation && endpoint_id !~ pattern
|
1054
|
+
fail ArgumentError, "invalid value for 'endpoint_id' when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post, must conform to the pattern #{pattern}."
|
1055
|
+
end
|
1056
|
+
|
1057
|
+
# verify the required parameter 'replay_in' is set
|
1058
|
+
if @api_client.config.client_side_validation && replay_in.nil?
|
1059
|
+
fail ArgumentError, "Missing the required parameter 'replay_in' when calling EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post"
|
1060
|
+
end
|
1061
|
+
# resource path
|
1062
|
+
local_var_path = '/api/v1/app/{app_id}/endpoint/{endpoint_id}/replay-missing/'.sub('{' + 'app_id' + '}', CGI.escape(app_id.to_s)).sub('{' + 'endpoint_id' + '}', CGI.escape(endpoint_id.to_s))
|
1063
|
+
|
1064
|
+
# query parameters
|
1065
|
+
query_params = opts[:query_params] || {}
|
1066
|
+
|
1067
|
+
# header parameters
|
1068
|
+
header_params = opts[:header_params] || {}
|
1069
|
+
# HTTP header 'Accept' (if needed)
|
1070
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1071
|
+
# HTTP header 'Content-Type'
|
1072
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
|
1073
|
+
header_params[:'idempotency-key'] = opts[:'idempotency_key'] if !opts[:'idempotency_key'].nil?
|
1074
|
+
|
1075
|
+
# form parameters
|
1076
|
+
form_params = opts[:form_params] || {}
|
1077
|
+
|
1078
|
+
# http body (model)
|
1079
|
+
post_body = opts[:debug_body] || @api_client.object_to_http_body(replay_in)
|
1080
|
+
|
1081
|
+
# return_type
|
1082
|
+
return_type = opts[:debug_return_type] || 'Object'
|
1083
|
+
|
1084
|
+
# auth_names
|
1085
|
+
auth_names = opts[:debug_auth_names] || ['HTTPBearer']
|
1086
|
+
|
1087
|
+
new_options = opts.merge(
|
1088
|
+
:operation => :"EndpointApi.replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post",
|
1089
|
+
:header_params => header_params,
|
1090
|
+
:query_params => query_params,
|
1091
|
+
:form_params => form_params,
|
1092
|
+
:body => post_body,
|
1093
|
+
:auth_names => auth_names,
|
1094
|
+
:return_type => return_type
|
1095
|
+
)
|
1096
|
+
|
1097
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1098
|
+
if @api_client.config.debugging
|
1099
|
+
@api_client.config.logger.debug "API called: EndpointApi#replay_missing_webhooks_api_v1_app_app_id_endpoint_endpoint_id_replay_missing_post\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1100
|
+
end
|
1101
|
+
return data, status_code, headers
|
1102
|
+
end
|
1103
|
+
|
998
1104
|
# Rotate Endpoint Secret
|
999
1105
|
# Rotates the endpoint's signing secret. The previous secret will be valid for the next 24 hours.
|
1000
1106
|
# @param endpoint_id [String]
|
@@ -15,6 +15,8 @@ require 'time'
|
|
15
15
|
|
16
16
|
module Svix
|
17
17
|
class ApplicationIn
|
18
|
+
attr_accessor :metadata
|
19
|
+
|
18
20
|
attr_accessor :name
|
19
21
|
|
20
22
|
attr_accessor :rate_limit
|
@@ -25,6 +27,7 @@ module Svix
|
|
25
27
|
# Attribute mapping from ruby-style variable name to JSON key.
|
26
28
|
def self.attribute_map
|
27
29
|
{
|
30
|
+
:'metadata' => :'metadata',
|
28
31
|
:'name' => :'name',
|
29
32
|
:'rate_limit' => :'rateLimit',
|
30
33
|
:'uid' => :'uid'
|
@@ -39,6 +42,7 @@ module Svix
|
|
39
42
|
# Attribute type mapping.
|
40
43
|
def self.openapi_types
|
41
44
|
{
|
45
|
+
:'metadata' => :'Hash<String, String>',
|
42
46
|
:'name' => :'String',
|
43
47
|
:'rate_limit' => :'Integer',
|
44
48
|
:'uid' => :'String'
|
@@ -48,6 +52,7 @@ module Svix
|
|
48
52
|
# List of attributes with nullable: true
|
49
53
|
def self.openapi_nullable
|
50
54
|
Set.new([
|
55
|
+
:'metadata',
|
51
56
|
:'rate_limit',
|
52
57
|
:'uid'
|
53
58
|
])
|
@@ -68,6 +73,12 @@ module Svix
|
|
68
73
|
h[k.to_sym] = v
|
69
74
|
}
|
70
75
|
|
76
|
+
if attributes.key?(:'metadata')
|
77
|
+
if (value = attributes[:'metadata']).is_a?(Hash)
|
78
|
+
self.metadata = value
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
71
82
|
if attributes.key?(:'name')
|
72
83
|
self.name = attributes[:'name']
|
73
84
|
end
|
@@ -139,6 +150,7 @@ module Svix
|
|
139
150
|
def ==(o)
|
140
151
|
return true if self.equal?(o)
|
141
152
|
self.class == o.class &&
|
153
|
+
metadata == o.metadata &&
|
142
154
|
name == o.name &&
|
143
155
|
rate_limit == o.rate_limit &&
|
144
156
|
uid == o.uid
|
@@ -153,7 +165,7 @@ module Svix
|
|
153
165
|
# Calculates hash code according to all attributes.
|
154
166
|
# @return [Integer] Hash code
|
155
167
|
def hash
|
156
|
-
[name, rate_limit, uid].hash
|
168
|
+
[metadata, name, rate_limit, uid].hash
|
157
169
|
end
|
158
170
|
|
159
171
|
# Builds the object from hash
|
@@ -19,6 +19,8 @@ module Svix
|
|
19
19
|
|
20
20
|
attr_accessor :id
|
21
21
|
|
22
|
+
attr_accessor :metadata
|
23
|
+
|
22
24
|
attr_accessor :name
|
23
25
|
|
24
26
|
attr_accessor :rate_limit
|
@@ -33,6 +35,7 @@ module Svix
|
|
33
35
|
{
|
34
36
|
:'created_at' => :'createdAt',
|
35
37
|
:'id' => :'id',
|
38
|
+
:'metadata' => :'metadata',
|
36
39
|
:'name' => :'name',
|
37
40
|
:'rate_limit' => :'rateLimit',
|
38
41
|
:'uid' => :'uid',
|
@@ -50,6 +53,7 @@ module Svix
|
|
50
53
|
{
|
51
54
|
:'created_at' => :'Time',
|
52
55
|
:'id' => :'String',
|
56
|
+
:'metadata' => :'Hash<String, String>',
|
53
57
|
:'name' => :'String',
|
54
58
|
:'rate_limit' => :'Integer',
|
55
59
|
:'uid' => :'String',
|
@@ -60,6 +64,7 @@ module Svix
|
|
60
64
|
# List of attributes with nullable: true
|
61
65
|
def self.openapi_nullable
|
62
66
|
Set.new([
|
67
|
+
:'metadata',
|
63
68
|
:'rate_limit',
|
64
69
|
:'uid',
|
65
70
|
])
|
@@ -88,6 +93,12 @@ module Svix
|
|
88
93
|
self.id = attributes[:'id']
|
89
94
|
end
|
90
95
|
|
96
|
+
if attributes.key?(:'metadata')
|
97
|
+
if (value = attributes[:'metadata']).is_a?(Hash)
|
98
|
+
self.metadata = value
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
91
102
|
if attributes.key?(:'name')
|
92
103
|
self.name = attributes[:'name']
|
93
104
|
end
|
@@ -180,6 +191,7 @@ module Svix
|
|
180
191
|
self.class == o.class &&
|
181
192
|
created_at == o.created_at &&
|
182
193
|
id == o.id &&
|
194
|
+
metadata == o.metadata &&
|
183
195
|
name == o.name &&
|
184
196
|
rate_limit == o.rate_limit &&
|
185
197
|
uid == o.uid &&
|
@@ -195,7 +207,7 @@ module Svix
|
|
195
207
|
# Calculates hash code according to all attributes.
|
196
208
|
# @return [Integer] Hash code
|
197
209
|
def hash
|
198
|
-
[created_at, id, name, rate_limit, uid, updated_at].hash
|
210
|
+
[created_at, id, metadata, name, rate_limit, uid, updated_at].hash
|
199
211
|
end
|
200
212
|
|
201
213
|
# Builds the object from hash
|