svix 1.70.0 → 1.70.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/svix/api/endpoint.rb +8 -0
- data/lib/svix/models/endpoint_transformation_in.rb +52 -0
- data/lib/svix/version.rb +1 -1
- data/lib/svix.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc5c5ebe27f3b6c5374e5fada390751d6d6dd6c891b419135c4883b7be06fe5b
|
4
|
+
data.tar.gz: b17b3aa5ce714143164a7413bee76a94b4138ef68d696049af2c9032cefa4d03
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f089fa61e6b58578ab082921ec3d5cbf113a5f5866f6d986197fc4e1a809ca08cc7f66bf39a0e15cbd69229475b6e471d368d957a33e66e8bfa03eddc4de23fe
|
7
|
+
data.tar.gz: 89b5ddc4c5cd72f6a80e36a3971c0e3c4bbdcbc1cc5bd76798cfb4797cda8cce254187dacd79d2cf51db2c15763c23e6fd957cda67479724aaac903ec65d175f
|
data/Gemfile.lock
CHANGED
data/lib/svix/api/endpoint.rb
CHANGED
@@ -181,5 +181,13 @@ module Svix
|
|
181
181
|
)
|
182
182
|
end
|
183
183
|
|
184
|
+
def transformation_partial_update(app_id, endpoint_id, endpoint_transformation_in)
|
185
|
+
@client.execute_request(
|
186
|
+
"PATCH",
|
187
|
+
"/api/v1/app/#{app_id}/endpoint/#{endpoint_id}/transformation",
|
188
|
+
body: endpoint_transformation_in
|
189
|
+
)
|
190
|
+
end
|
191
|
+
|
184
192
|
end
|
185
193
|
end
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# This file is @generated
|
3
|
+
require "json"
|
4
|
+
|
5
|
+
module Svix
|
6
|
+
class EndpointTransformationIn
|
7
|
+
attr_accessor :code
|
8
|
+
attr_accessor :enabled
|
9
|
+
|
10
|
+
ALL_FIELD ||= ["code", "enabled"].freeze
|
11
|
+
private_constant :ALL_FIELD
|
12
|
+
|
13
|
+
def initialize(attributes = {})
|
14
|
+
unless attributes.is_a?(Hash)
|
15
|
+
fail(
|
16
|
+
ArgumentError,
|
17
|
+
"The input argument (attributes) must be a hash in `Svix::EndpointTransformationIn` new method"
|
18
|
+
)
|
19
|
+
end
|
20
|
+
|
21
|
+
attributes.each do |k, v|
|
22
|
+
unless ALL_FIELD.include?(k.to_s)
|
23
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::EndpointTransformationIn")
|
24
|
+
end
|
25
|
+
|
26
|
+
instance_variable_set("@#{k}", v)
|
27
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def self.deserialize(attributes = {})
|
32
|
+
attributes = attributes.transform_keys(&:to_s)
|
33
|
+
attrs = Hash.new
|
34
|
+
attrs["code"] = attributes["code"]
|
35
|
+
attrs["enabled"] = attributes["enabled"]
|
36
|
+
new(attrs)
|
37
|
+
end
|
38
|
+
|
39
|
+
def serialize
|
40
|
+
out = Hash.new
|
41
|
+
out["code"] = Svix::serialize_primitive(@code) if @code
|
42
|
+
out["enabled"] = Svix::serialize_primitive(@enabled) if @enabled
|
43
|
+
out
|
44
|
+
end
|
45
|
+
|
46
|
+
# Serializes the object to a json string
|
47
|
+
# @return String
|
48
|
+
def to_json
|
49
|
+
JSON.dump(serialize)
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
data/lib/svix/version.rb
CHANGED
data/lib/svix.rb
CHANGED
@@ -75,6 +75,7 @@ require "svix/models/endpoint_patch"
|
|
75
75
|
require "svix/models/endpoint_secret_out"
|
76
76
|
require "svix/models/endpoint_secret_rotate_in"
|
77
77
|
require "svix/models/endpoint_stats"
|
78
|
+
require "svix/models/endpoint_transformation_in"
|
78
79
|
require "svix/models/endpoint_transformation_out"
|
79
80
|
require "svix/models/endpoint_transformation_patch"
|
80
81
|
require "svix/models/endpoint_update"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: svix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.70.
|
4
|
+
version: 1.70.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Svix
|
8
8
|
bindir: exe
|
9
9
|
cert_chain: []
|
10
|
-
date: 2025-08-
|
10
|
+
date: 2025-08-06 00:00:00.000000000 Z
|
11
11
|
dependencies:
|
12
12
|
- !ruby/object:Gem::Dependency
|
13
13
|
name: rake
|
@@ -133,6 +133,7 @@ files:
|
|
133
133
|
- lib/svix/models/endpoint_secret_out.rb
|
134
134
|
- lib/svix/models/endpoint_secret_rotate_in.rb
|
135
135
|
- lib/svix/models/endpoint_stats.rb
|
136
|
+
- lib/svix/models/endpoint_transformation_in.rb
|
136
137
|
- lib/svix/models/endpoint_transformation_out.rb
|
137
138
|
- lib/svix/models/endpoint_transformation_patch.rb
|
138
139
|
- lib/svix/models/endpoint_update.rb
|