svix 1.80.0 → 1.81.0
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/connector.rb +73 -0
- data/lib/svix/models/connector_in.rb +4 -4
- data/lib/svix/models/connector_out.rb +4 -4
- data/lib/svix/models/connector_patch.rb +76 -0
- data/lib/svix/models/connector_update.rb +76 -0
- data/lib/svix/models/environment_out.rb +4 -6
- data/lib/svix/models/list_response_connector_out.rb +58 -0
- data/lib/svix/version.rb +1 -1
- data/lib/svix.rb +4 -0
- metadata +6 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 051160cba42acfdc5b30ef98c0ffaa5ec738ed1d6b8ddfdbc6b0448fb4411a04
|
|
4
|
+
data.tar.gz: 6fb0b8d98ad4717ee732e94a7f57cce8516dd18fd7d362093d2a417d1a8cb409
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: fdcb028e60226867537c3d3727c18e1e9a949da61b8fc372f21eb5d8d093e01a7425d0c06b1fbc83928ecb1aed9942647216ebd56e7ad76faad6366500c610af
|
|
7
|
+
data.tar.gz: 9a75010b1f2f37279d569da2f74f22560d1679430294888ead8389117738c83cc43a12d624c188edb6fc8e5844a2c81c6cf175845f746512621e3516578fadb5
|
data/Gemfile.lock
CHANGED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
|
|
4
|
+
require "net/http"
|
|
5
|
+
|
|
6
|
+
module Svix
|
|
7
|
+
class Connector
|
|
8
|
+
def initialize(client)
|
|
9
|
+
@client = client
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def list(options = {})
|
|
13
|
+
options = options.transform_keys(&:to_s)
|
|
14
|
+
res = @client.execute_request(
|
|
15
|
+
"GET",
|
|
16
|
+
"/api/v1/connector",
|
|
17
|
+
query_params: {
|
|
18
|
+
"limit" => options["limit"],
|
|
19
|
+
"iterator" => options["iterator"],
|
|
20
|
+
"order" => options["order"]
|
|
21
|
+
}
|
|
22
|
+
)
|
|
23
|
+
ListResponseConnectorOut.deserialize(res)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def create(connector_in, options = {})
|
|
27
|
+
options = options.transform_keys(&:to_s)
|
|
28
|
+
res = @client.execute_request(
|
|
29
|
+
"POST",
|
|
30
|
+
"/api/v1/connector",
|
|
31
|
+
headers: {
|
|
32
|
+
"idempotency-key" => options["idempotency-key"]
|
|
33
|
+
},
|
|
34
|
+
body: connector_in
|
|
35
|
+
)
|
|
36
|
+
ConnectorOut.deserialize(res)
|
|
37
|
+
end
|
|
38
|
+
|
|
39
|
+
def get(connector_id)
|
|
40
|
+
res = @client.execute_request(
|
|
41
|
+
"GET",
|
|
42
|
+
"/api/v1/connector/#{connector_id}"
|
|
43
|
+
)
|
|
44
|
+
ConnectorOut.deserialize(res)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def update(connector_id, connector_update)
|
|
48
|
+
res = @client.execute_request(
|
|
49
|
+
"PUT",
|
|
50
|
+
"/api/v1/connector/#{connector_id}",
|
|
51
|
+
body: connector_update
|
|
52
|
+
)
|
|
53
|
+
ConnectorOut.deserialize(res)
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def delete(connector_id)
|
|
57
|
+
@client.execute_request(
|
|
58
|
+
"DELETE",
|
|
59
|
+
"/api/v1/connector/#{connector_id}"
|
|
60
|
+
)
|
|
61
|
+
end
|
|
62
|
+
|
|
63
|
+
def patch(connector_id, connector_patch)
|
|
64
|
+
res = @client.execute_request(
|
|
65
|
+
"PATCH",
|
|
66
|
+
"/api/v1/connector/#{connector_id}",
|
|
67
|
+
body: connector_patch
|
|
68
|
+
)
|
|
69
|
+
ConnectorOut.deserialize(res)
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
end
|
|
73
|
+
end
|
|
@@ -4,9 +4,9 @@ require "json"
|
|
|
4
4
|
|
|
5
5
|
module Svix
|
|
6
6
|
class ConnectorIn
|
|
7
|
+
attr_accessor :allowed_event_types
|
|
7
8
|
attr_accessor :description
|
|
8
9
|
attr_accessor :feature_flags
|
|
9
|
-
attr_accessor :filter_types
|
|
10
10
|
attr_accessor :instructions
|
|
11
11
|
attr_accessor :kind
|
|
12
12
|
attr_accessor :logo
|
|
@@ -14,9 +14,9 @@ module Svix
|
|
|
14
14
|
attr_accessor :transformation
|
|
15
15
|
|
|
16
16
|
ALL_FIELD ||= [
|
|
17
|
+
"allowed_event_types",
|
|
17
18
|
"description",
|
|
18
19
|
"feature_flags",
|
|
19
|
-
"filter_types",
|
|
20
20
|
"instructions",
|
|
21
21
|
"kind",
|
|
22
22
|
"logo",
|
|
@@ -43,9 +43,9 @@ module Svix
|
|
|
43
43
|
def self.deserialize(attributes = {})
|
|
44
44
|
attributes = attributes.transform_keys(&:to_s)
|
|
45
45
|
attrs = Hash.new
|
|
46
|
+
attrs["allowed_event_types"] = attributes["allowedEventTypes"]
|
|
46
47
|
attrs["description"] = attributes["description"]
|
|
47
48
|
attrs["feature_flags"] = attributes["featureFlags"]
|
|
48
|
-
attrs["filter_types"] = attributes["filterTypes"]
|
|
49
49
|
attrs["instructions"] = attributes["instructions"]
|
|
50
50
|
attrs["kind"] = Svix::ConnectorKind.deserialize(attributes["kind"]) if attributes["kind"]
|
|
51
51
|
attrs["logo"] = attributes["logo"]
|
|
@@ -56,9 +56,9 @@ module Svix
|
|
|
56
56
|
|
|
57
57
|
def serialize
|
|
58
58
|
out = Hash.new
|
|
59
|
+
out["allowedEventTypes"] = Svix::serialize_primitive(@allowed_event_types) if @allowed_event_types
|
|
59
60
|
out["description"] = Svix::serialize_primitive(@description) if @description
|
|
60
61
|
out["featureFlags"] = Svix::serialize_primitive(@feature_flags) if @feature_flags
|
|
61
|
-
out["filterTypes"] = Svix::serialize_primitive(@filter_types) if @filter_types
|
|
62
62
|
out["instructions"] = Svix::serialize_primitive(@instructions) if @instructions
|
|
63
63
|
out["kind"] = Svix::serialize_schema_ref(@kind) if @kind
|
|
64
64
|
out["logo"] = Svix::serialize_primitive(@logo) if @logo
|
|
@@ -4,10 +4,10 @@ require "json"
|
|
|
4
4
|
|
|
5
5
|
module Svix
|
|
6
6
|
class ConnectorOut
|
|
7
|
+
attr_accessor :allowed_event_types
|
|
7
8
|
attr_accessor :created_at
|
|
8
9
|
attr_accessor :description
|
|
9
10
|
attr_accessor :feature_flags
|
|
10
|
-
attr_accessor :filter_types
|
|
11
11
|
# The Connector's ID.
|
|
12
12
|
attr_accessor :id
|
|
13
13
|
attr_accessor :instructions
|
|
@@ -20,10 +20,10 @@ module Svix
|
|
|
20
20
|
attr_accessor :updated_at
|
|
21
21
|
|
|
22
22
|
ALL_FIELD ||= [
|
|
23
|
+
"allowed_event_types",
|
|
23
24
|
"created_at",
|
|
24
25
|
"description",
|
|
25
26
|
"feature_flags",
|
|
26
|
-
"filter_types",
|
|
27
27
|
"id",
|
|
28
28
|
"instructions",
|
|
29
29
|
"kind",
|
|
@@ -53,10 +53,10 @@ module Svix
|
|
|
53
53
|
def self.deserialize(attributes = {})
|
|
54
54
|
attributes = attributes.transform_keys(&:to_s)
|
|
55
55
|
attrs = Hash.new
|
|
56
|
+
attrs["allowed_event_types"] = attributes["allowedEventTypes"]
|
|
56
57
|
attrs["created_at"] = DateTime.rfc3339(attributes["createdAt"]).to_time
|
|
57
58
|
attrs["description"] = attributes["description"]
|
|
58
59
|
attrs["feature_flags"] = attributes["featureFlags"]
|
|
59
|
-
attrs["filter_types"] = attributes["filterTypes"]
|
|
60
60
|
attrs["id"] = attributes["id"]
|
|
61
61
|
attrs["instructions"] = attributes["instructions"]
|
|
62
62
|
attrs["kind"] = Svix::ConnectorKind.deserialize(attributes["kind"])
|
|
@@ -70,10 +70,10 @@ module Svix
|
|
|
70
70
|
|
|
71
71
|
def serialize
|
|
72
72
|
out = Hash.new
|
|
73
|
+
out["allowedEventTypes"] = Svix::serialize_primitive(@allowed_event_types) if @allowed_event_types
|
|
73
74
|
out["createdAt"] = Svix::serialize_primitive(@created_at) if @created_at
|
|
74
75
|
out["description"] = Svix::serialize_primitive(@description) if @description
|
|
75
76
|
out["featureFlags"] = Svix::serialize_primitive(@feature_flags) if @feature_flags
|
|
76
|
-
out["filterTypes"] = Svix::serialize_primitive(@filter_types) if @filter_types
|
|
77
77
|
out["id"] = Svix::serialize_primitive(@id) if @id
|
|
78
78
|
out["instructions"] = Svix::serialize_primitive(@instructions) if @instructions
|
|
79
79
|
out["kind"] = Svix::serialize_schema_ref(@kind) if @kind
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class ConnectorPatch
|
|
7
|
+
attr_accessor :allowed_event_types
|
|
8
|
+
attr_accessor :description
|
|
9
|
+
attr_accessor :feature_flags
|
|
10
|
+
attr_accessor :instructions
|
|
11
|
+
attr_accessor :kind
|
|
12
|
+
attr_accessor :logo
|
|
13
|
+
attr_accessor :name
|
|
14
|
+
attr_accessor :transformation
|
|
15
|
+
|
|
16
|
+
ALL_FIELD ||= [
|
|
17
|
+
"allowed_event_types",
|
|
18
|
+
"description",
|
|
19
|
+
"feature_flags",
|
|
20
|
+
"instructions",
|
|
21
|
+
"kind",
|
|
22
|
+
"logo",
|
|
23
|
+
"name",
|
|
24
|
+
"transformation"
|
|
25
|
+
].freeze
|
|
26
|
+
private_constant :ALL_FIELD
|
|
27
|
+
|
|
28
|
+
def initialize(attributes = {})
|
|
29
|
+
unless attributes.is_a?(Hash)
|
|
30
|
+
fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::ConnectorPatch` new method")
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
attributes.each do |k, v|
|
|
34
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
35
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::ConnectorPatch")
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
instance_variable_set("@#{k}", v)
|
|
39
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def self.deserialize(attributes = {})
|
|
44
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
45
|
+
attrs = Hash.new
|
|
46
|
+
attrs["allowed_event_types"] = attributes["allowedEventTypes"]
|
|
47
|
+
attrs["description"] = attributes["description"]
|
|
48
|
+
attrs["feature_flags"] = attributes["featureFlags"]
|
|
49
|
+
attrs["instructions"] = attributes["instructions"]
|
|
50
|
+
attrs["kind"] = Svix::ConnectorKind.deserialize(attributes["kind"]) if attributes["kind"]
|
|
51
|
+
attrs["logo"] = attributes["logo"]
|
|
52
|
+
attrs["name"] = attributes["name"]
|
|
53
|
+
attrs["transformation"] = attributes["transformation"]
|
|
54
|
+
new(attrs)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def serialize
|
|
58
|
+
out = Hash.new
|
|
59
|
+
out["allowedEventTypes"] = Svix::serialize_primitive(@allowed_event_types) if @__allowed_event_types_is_defined
|
|
60
|
+
out["description"] = Svix::serialize_primitive(@description) if @description
|
|
61
|
+
out["featureFlags"] = Svix::serialize_primitive(@feature_flags) if @__feature_flags_is_defined
|
|
62
|
+
out["instructions"] = Svix::serialize_primitive(@instructions) if @instructions
|
|
63
|
+
out["kind"] = Svix::serialize_schema_ref(@kind) if @kind
|
|
64
|
+
out["logo"] = Svix::serialize_primitive(@logo) if @__logo_is_defined
|
|
65
|
+
out["name"] = Svix::serialize_primitive(@name) if @name
|
|
66
|
+
out["transformation"] = Svix::serialize_primitive(@transformation) if @transformation
|
|
67
|
+
out
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Serializes the object to a json string
|
|
71
|
+
# @return String
|
|
72
|
+
def to_json
|
|
73
|
+
JSON.dump(serialize)
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class ConnectorUpdate
|
|
7
|
+
attr_accessor :allowed_event_types
|
|
8
|
+
attr_accessor :description
|
|
9
|
+
attr_accessor :feature_flags
|
|
10
|
+
attr_accessor :instructions
|
|
11
|
+
attr_accessor :kind
|
|
12
|
+
attr_accessor :logo
|
|
13
|
+
attr_accessor :name
|
|
14
|
+
attr_accessor :transformation
|
|
15
|
+
|
|
16
|
+
ALL_FIELD ||= [
|
|
17
|
+
"allowed_event_types",
|
|
18
|
+
"description",
|
|
19
|
+
"feature_flags",
|
|
20
|
+
"instructions",
|
|
21
|
+
"kind",
|
|
22
|
+
"logo",
|
|
23
|
+
"name",
|
|
24
|
+
"transformation"
|
|
25
|
+
].freeze
|
|
26
|
+
private_constant :ALL_FIELD
|
|
27
|
+
|
|
28
|
+
def initialize(attributes = {})
|
|
29
|
+
unless attributes.is_a?(Hash)
|
|
30
|
+
fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::ConnectorUpdate` new method")
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
attributes.each do |k, v|
|
|
34
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
35
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::ConnectorUpdate")
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
instance_variable_set("@#{k}", v)
|
|
39
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
40
|
+
end
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def self.deserialize(attributes = {})
|
|
44
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
45
|
+
attrs = Hash.new
|
|
46
|
+
attrs["allowed_event_types"] = attributes["allowedEventTypes"]
|
|
47
|
+
attrs["description"] = attributes["description"]
|
|
48
|
+
attrs["feature_flags"] = attributes["featureFlags"]
|
|
49
|
+
attrs["instructions"] = attributes["instructions"]
|
|
50
|
+
attrs["kind"] = Svix::ConnectorKind.deserialize(attributes["kind"]) if attributes["kind"]
|
|
51
|
+
attrs["logo"] = attributes["logo"]
|
|
52
|
+
attrs["name"] = attributes["name"]
|
|
53
|
+
attrs["transformation"] = attributes["transformation"]
|
|
54
|
+
new(attrs)
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
def serialize
|
|
58
|
+
out = Hash.new
|
|
59
|
+
out["allowedEventTypes"] = Svix::serialize_primitive(@allowed_event_types) if @allowed_event_types
|
|
60
|
+
out["description"] = Svix::serialize_primitive(@description) if @description
|
|
61
|
+
out["featureFlags"] = Svix::serialize_primitive(@feature_flags) if @feature_flags
|
|
62
|
+
out["instructions"] = Svix::serialize_primitive(@instructions) if @instructions
|
|
63
|
+
out["kind"] = Svix::serialize_schema_ref(@kind) if @kind
|
|
64
|
+
out["logo"] = Svix::serialize_primitive(@logo) if @logo
|
|
65
|
+
out["name"] = Svix::serialize_primitive(@name) if @name
|
|
66
|
+
out["transformation"] = Svix::serialize_primitive(@transformation) if @transformation
|
|
67
|
+
out
|
|
68
|
+
end
|
|
69
|
+
|
|
70
|
+
# Serializes the object to a json string
|
|
71
|
+
# @return String
|
|
72
|
+
def to_json
|
|
73
|
+
JSON.dump(serialize)
|
|
74
|
+
end
|
|
75
|
+
end
|
|
76
|
+
end
|
|
@@ -4,13 +4,13 @@ require "json"
|
|
|
4
4
|
|
|
5
5
|
module Svix
|
|
6
6
|
class EnvironmentOut
|
|
7
|
+
attr_accessor :connectors
|
|
7
8
|
attr_accessor :created_at
|
|
8
9
|
attr_accessor :event_types
|
|
9
10
|
attr_accessor :settings
|
|
10
|
-
attr_accessor :transformation_templates
|
|
11
11
|
attr_accessor :version
|
|
12
12
|
|
|
13
|
-
ALL_FIELD ||= ["
|
|
13
|
+
ALL_FIELD ||= ["connectors", "created_at", "event_types", "settings", "version"].freeze
|
|
14
14
|
private_constant :ALL_FIELD
|
|
15
15
|
|
|
16
16
|
def initialize(attributes = {})
|
|
@@ -31,22 +31,20 @@ module Svix
|
|
|
31
31
|
def self.deserialize(attributes = {})
|
|
32
32
|
attributes = attributes.transform_keys(&:to_s)
|
|
33
33
|
attrs = Hash.new
|
|
34
|
+
attrs["connectors"] = attributes["connectors"].map { |v| Svix::ConnectorOut.deserialize(v) }
|
|
34
35
|
attrs["created_at"] = DateTime.rfc3339(attributes["createdAt"]).to_time
|
|
35
36
|
attrs["event_types"] = attributes["eventTypes"].map { |v| Svix::EventTypeOut.deserialize(v) }
|
|
36
37
|
attrs["settings"] = attributes["settings"]
|
|
37
|
-
attrs["transformation_templates"] = attributes["transformationTemplates"].map { |v|
|
|
38
|
-
Svix::ConnectorOut.deserialize(v)
|
|
39
|
-
}
|
|
40
38
|
attrs["version"] = attributes["version"]
|
|
41
39
|
new(attrs)
|
|
42
40
|
end
|
|
43
41
|
|
|
44
42
|
def serialize
|
|
45
43
|
out = Hash.new
|
|
44
|
+
out["connectors"] = @connectors.map { |v| v.serialize } if @connectors
|
|
46
45
|
out["createdAt"] = Svix::serialize_primitive(@created_at) if @created_at
|
|
47
46
|
out["eventTypes"] = @event_types.map { |v| v.serialize } if @event_types
|
|
48
47
|
out["settings"] = Svix::serialize_primitive(@settings) if @settings
|
|
49
|
-
out["transformationTemplates"] = @transformation_templates.map { |v| v.serialize } if @transformation_templates
|
|
50
48
|
out["version"] = Svix::serialize_primitive(@version) if @version
|
|
51
49
|
out
|
|
52
50
|
end
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class ListResponseConnectorOut
|
|
7
|
+
attr_accessor :data
|
|
8
|
+
attr_accessor :done
|
|
9
|
+
attr_accessor :iterator
|
|
10
|
+
attr_accessor :prev_iterator
|
|
11
|
+
|
|
12
|
+
ALL_FIELD ||= ["data", "done", "iterator", "prev_iterator"].freeze
|
|
13
|
+
private_constant :ALL_FIELD
|
|
14
|
+
|
|
15
|
+
def initialize(attributes = {})
|
|
16
|
+
unless attributes.is_a?(Hash)
|
|
17
|
+
fail(
|
|
18
|
+
ArgumentError,
|
|
19
|
+
"The input argument (attributes) must be a hash in `Svix::ListResponseConnectorOut` new method"
|
|
20
|
+
)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
attributes.each do |k, v|
|
|
24
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
25
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::ListResponseConnectorOut")
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
instance_variable_set("@#{k}", v)
|
|
29
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
30
|
+
end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def self.deserialize(attributes = {})
|
|
34
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
35
|
+
attrs = Hash.new
|
|
36
|
+
attrs["data"] = attributes["data"].map { |v| Svix::ConnectorOut.deserialize(v) }
|
|
37
|
+
attrs["done"] = attributes["done"]
|
|
38
|
+
attrs["iterator"] = attributes["iterator"]
|
|
39
|
+
attrs["prev_iterator"] = attributes["prevIterator"]
|
|
40
|
+
new(attrs)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
def serialize
|
|
44
|
+
out = Hash.new
|
|
45
|
+
out["data"] = @data.map { |v| v.serialize } if @data
|
|
46
|
+
out["done"] = Svix::serialize_primitive(@done) if @done
|
|
47
|
+
out["iterator"] = Svix::serialize_primitive(@iterator) if @iterator
|
|
48
|
+
out["prevIterator"] = Svix::serialize_primitive(@prev_iterator) if @prev_iterator
|
|
49
|
+
out
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
# Serializes the object to a json string
|
|
53
|
+
# @return String
|
|
54
|
+
def to_json
|
|
55
|
+
JSON.dump(serialize)
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
data/lib/svix/version.rb
CHANGED
data/lib/svix.rb
CHANGED
|
@@ -11,6 +11,7 @@ require "logger"
|
|
|
11
11
|
require "svix/api/application"
|
|
12
12
|
require "svix/api/authentication"
|
|
13
13
|
require "svix/api/background_task"
|
|
14
|
+
require "svix/api/connector"
|
|
14
15
|
require "svix/api/endpoint"
|
|
15
16
|
require "svix/api/environment"
|
|
16
17
|
require "svix/api/event_type"
|
|
@@ -60,6 +61,8 @@ require "svix/models/checkbook_config_out"
|
|
|
60
61
|
require "svix/models/connector_in"
|
|
61
62
|
require "svix/models/connector_kind"
|
|
62
63
|
require "svix/models/connector_out"
|
|
64
|
+
require "svix/models/connector_patch"
|
|
65
|
+
require "svix/models/connector_update"
|
|
63
66
|
require "svix/models/create_stream_events_in"
|
|
64
67
|
require "svix/models/create_stream_events_out"
|
|
65
68
|
require "svix/models/cron_config"
|
|
@@ -143,6 +146,7 @@ require "svix/models/integration_out"
|
|
|
143
146
|
require "svix/models/integration_update"
|
|
144
147
|
require "svix/models/list_response_application_out"
|
|
145
148
|
require "svix/models/list_response_background_task_out"
|
|
149
|
+
require "svix/models/list_response_connector_out"
|
|
146
150
|
require "svix/models/list_response_endpoint_message_out"
|
|
147
151
|
require "svix/models/list_response_endpoint_out"
|
|
148
152
|
require "svix/models/list_response_event_type_out"
|
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.
|
|
4
|
+
version: 1.81.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Svix
|
|
8
8
|
bindir: exe
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date: 2025-10-
|
|
10
|
+
date: 2025-10-28 00:00:00.000000000 Z
|
|
11
11
|
dependencies:
|
|
12
12
|
- !ruby/object:Gem::Dependency
|
|
13
13
|
name: rake
|
|
@@ -66,6 +66,7 @@ files:
|
|
|
66
66
|
- lib/svix/api/application.rb
|
|
67
67
|
- lib/svix/api/authentication.rb
|
|
68
68
|
- lib/svix/api/background_task.rb
|
|
69
|
+
- lib/svix/api/connector.rb
|
|
69
70
|
- lib/svix/api/endpoint.rb
|
|
70
71
|
- lib/svix/api/environment.rb
|
|
71
72
|
- lib/svix/api/event_type.rb
|
|
@@ -118,6 +119,8 @@ files:
|
|
|
118
119
|
- lib/svix/models/connector_in.rb
|
|
119
120
|
- lib/svix/models/connector_kind.rb
|
|
120
121
|
- lib/svix/models/connector_out.rb
|
|
122
|
+
- lib/svix/models/connector_patch.rb
|
|
123
|
+
- lib/svix/models/connector_update.rb
|
|
121
124
|
- lib/svix/models/create_stream_events_in.rb
|
|
122
125
|
- lib/svix/models/create_stream_events_out.rb
|
|
123
126
|
- lib/svix/models/cron_config.rb
|
|
@@ -201,6 +204,7 @@ files:
|
|
|
201
204
|
- lib/svix/models/integration_update.rb
|
|
202
205
|
- lib/svix/models/list_response_application_out.rb
|
|
203
206
|
- lib/svix/models/list_response_background_task_out.rb
|
|
207
|
+
- lib/svix/models/list_response_connector_out.rb
|
|
204
208
|
- lib/svix/models/list_response_endpoint_message_out.rb
|
|
205
209
|
- lib/svix/models/list_response_endpoint_out.rb
|
|
206
210
|
- lib/svix/models/list_response_event_type_out.rb
|