svix 1.95.1 → 1.95.2
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/models/big_query_config.rb +57 -0
- data/lib/svix/models/big_query_patch_config.rb +55 -0
- data/lib/svix/models/clickhouse_config.rb +63 -0
- data/lib/svix/models/clickhouse_patch_config.rb +61 -0
- data/lib/svix/models/event_bridge_config.rb +60 -0
- data/lib/svix/models/event_bridge_patch_config.rb +61 -0
- data/lib/svix/models/google_cloud_pub_sub_config.rb +56 -0
- data/lib/svix/models/google_cloud_pub_sub_patch_config.rb +55 -0
- data/lib/svix/models/ingest_source_in.rb +5 -0
- data/lib/svix/models/ingest_source_out.rb +5 -0
- data/lib/svix/models/rabbit_mq_config.rb +50 -0
- data/lib/svix/models/rabbit_mq_patch_config.rb +49 -0
- data/lib/svix/models/redshift_config.rb +95 -0
- data/lib/svix/models/redshift_patch_config.rb +70 -0
- data/lib/svix/models/snowflake_config.rb +76 -0
- data/lib/svix/models/snowflake_patch_config.rb +70 -0
- data/lib/svix/models/sns_config.rb +59 -0
- data/lib/svix/models/sns_patch_config.rb +58 -0
- data/lib/svix/models/sqs_config.rb +59 -0
- data/lib/svix/models/sqs_patch_config.rb +58 -0
- data/lib/svix/models/stream_sink_in.rb +46 -1
- data/lib/svix/models/stream_sink_out.rb +46 -1
- data/lib/svix/models/stream_sink_patch.rb +46 -1
- data/lib/svix/models/tailscale_config.rb +53 -0
- data/lib/svix/models/tailscale_config_out.rb +43 -0
- data/lib/svix/svix_http_client.rb +17 -11
- data/lib/svix/version.rb +1 -1
- data/lib/svix.rb +20 -0
- metadata +22 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: ba42cf52556ad84a8c4f40e57772e52b7510a0381d697366fac2ae42949b20c8
|
|
4
|
+
data.tar.gz: dd9bfe9000eb04a5218519766255eae665abd6772864c164a3284acb411c2a0f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e388787df0fc78b3ee3a0a9307d7b8d6a8412f1cd740914f43c2985ef48a6bd7dd06e2623dfd2e40bec8936b3354933a9226447807ed6b485bd54f6188cb0cb2
|
|
7
|
+
data.tar.gz: e74e29b71b6563b5f655f65f38adc0c87ed334a3b11e95d1ef61c10065914f799f19fadd08d471807cda4e06f25881948d36600e6db579661d0bf01909b09be7
|
data/Gemfile.lock
CHANGED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
# Configuration for a Google Cloud BigQuery sink.
|
|
7
|
+
class BigQueryConfig
|
|
8
|
+
# Google Cloud Credentials JSON Object as a string.
|
|
9
|
+
attr_accessor :credentials
|
|
10
|
+
attr_accessor :dataset_id
|
|
11
|
+
attr_accessor :project_id
|
|
12
|
+
attr_accessor :table_id
|
|
13
|
+
|
|
14
|
+
ALL_FIELD ||= ["credentials", "dataset_id", "project_id", "table_id"].freeze
|
|
15
|
+
private_constant :ALL_FIELD
|
|
16
|
+
|
|
17
|
+
def initialize(attributes = {})
|
|
18
|
+
unless attributes.is_a?(Hash)
|
|
19
|
+
fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::BigQueryConfig` new method")
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
attributes.each do |k, v|
|
|
23
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
24
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::BigQueryConfig")
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
instance_variable_set("@#{k}", v)
|
|
28
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def self.deserialize(attributes = {})
|
|
33
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
34
|
+
attrs = Hash.new
|
|
35
|
+
attrs["credentials"] = attributes["credentials"]
|
|
36
|
+
attrs["dataset_id"] = attributes["datasetId"]
|
|
37
|
+
attrs["project_id"] = attributes["projectId"]
|
|
38
|
+
attrs["table_id"] = attributes["tableId"]
|
|
39
|
+
new(attrs)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def serialize
|
|
43
|
+
out = Hash.new
|
|
44
|
+
out["credentials"] = Svix::serialize_primitive(@credentials) if @credentials
|
|
45
|
+
out["datasetId"] = Svix::serialize_primitive(@dataset_id) if @dataset_id
|
|
46
|
+
out["projectId"] = Svix::serialize_primitive(@project_id) if @project_id
|
|
47
|
+
out["tableId"] = Svix::serialize_primitive(@table_id) if @table_id
|
|
48
|
+
out
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
# Serializes the object to a json string
|
|
52
|
+
# @return String
|
|
53
|
+
def to_json
|
|
54
|
+
JSON.dump(serialize)
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class BigQueryPatchConfig
|
|
7
|
+
attr_accessor :credentials
|
|
8
|
+
attr_accessor :dataset_id
|
|
9
|
+
attr_accessor :project_id
|
|
10
|
+
attr_accessor :table_id
|
|
11
|
+
|
|
12
|
+
ALL_FIELD ||= ["credentials", "dataset_id", "project_id", "table_id"].freeze
|
|
13
|
+
private_constant :ALL_FIELD
|
|
14
|
+
|
|
15
|
+
def initialize(attributes = {})
|
|
16
|
+
unless attributes.is_a?(Hash)
|
|
17
|
+
fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::BigQueryPatchConfig` new method")
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
attributes.each do |k, v|
|
|
21
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
22
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::BigQueryPatchConfig")
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
instance_variable_set("@#{k}", v)
|
|
26
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def self.deserialize(attributes = {})
|
|
31
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
32
|
+
attrs = Hash.new
|
|
33
|
+
attrs["credentials"] = attributes["credentials"]
|
|
34
|
+
attrs["dataset_id"] = attributes["datasetId"]
|
|
35
|
+
attrs["project_id"] = attributes["projectId"]
|
|
36
|
+
attrs["table_id"] = attributes["tableId"]
|
|
37
|
+
new(attrs)
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def serialize
|
|
41
|
+
out = Hash.new
|
|
42
|
+
out["credentials"] = Svix::serialize_primitive(@credentials) if @credentials
|
|
43
|
+
out["datasetId"] = Svix::serialize_primitive(@dataset_id) if @dataset_id
|
|
44
|
+
out["projectId"] = Svix::serialize_primitive(@project_id) if @project_id
|
|
45
|
+
out["tableId"] = Svix::serialize_primitive(@table_id) if @table_id
|
|
46
|
+
out
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Serializes the object to a json string
|
|
50
|
+
# @return String
|
|
51
|
+
def to_json
|
|
52
|
+
JSON.dump(serialize)
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class ClickhouseConfig
|
|
7
|
+
# The Clickhouse database to connect to
|
|
8
|
+
attr_accessor :database
|
|
9
|
+
# Password to access Clickhouse
|
|
10
|
+
attr_accessor :password
|
|
11
|
+
# The Clickhouse table to write to
|
|
12
|
+
attr_accessor :table_name
|
|
13
|
+
# The HTTP URL of the ClickHouse server (e.g. `https://my_clickhouse:8443`).
|
|
14
|
+
attr_accessor :url
|
|
15
|
+
# Username to access Clickhouse
|
|
16
|
+
attr_accessor :username
|
|
17
|
+
|
|
18
|
+
ALL_FIELD ||= ["database", "password", "table_name", "url", "username"].freeze
|
|
19
|
+
private_constant :ALL_FIELD
|
|
20
|
+
|
|
21
|
+
def initialize(attributes = {})
|
|
22
|
+
unless attributes.is_a?(Hash)
|
|
23
|
+
fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::ClickhouseConfig` new method")
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
attributes.each do |k, v|
|
|
27
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
28
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::ClickhouseConfig")
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
instance_variable_set("@#{k}", v)
|
|
32
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def self.deserialize(attributes = {})
|
|
37
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
38
|
+
attrs = Hash.new
|
|
39
|
+
attrs["database"] = attributes["database"]
|
|
40
|
+
attrs["password"] = attributes["password"]
|
|
41
|
+
attrs["table_name"] = attributes["tableName"]
|
|
42
|
+
attrs["url"] = attributes["url"]
|
|
43
|
+
attrs["username"] = attributes["username"]
|
|
44
|
+
new(attrs)
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
def serialize
|
|
48
|
+
out = Hash.new
|
|
49
|
+
out["database"] = Svix::serialize_primitive(@database) if @database
|
|
50
|
+
out["password"] = Svix::serialize_primitive(@password) if @password
|
|
51
|
+
out["tableName"] = Svix::serialize_primitive(@table_name) if @table_name
|
|
52
|
+
out["url"] = Svix::serialize_primitive(@url) if @url
|
|
53
|
+
out["username"] = Svix::serialize_primitive(@username) if @username
|
|
54
|
+
out
|
|
55
|
+
end
|
|
56
|
+
|
|
57
|
+
# Serializes the object to a json string
|
|
58
|
+
# @return String
|
|
59
|
+
def to_json
|
|
60
|
+
JSON.dump(serialize)
|
|
61
|
+
end
|
|
62
|
+
end
|
|
63
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class ClickhousePatchConfig
|
|
7
|
+
attr_accessor :database
|
|
8
|
+
attr_accessor :password
|
|
9
|
+
attr_accessor :table_name
|
|
10
|
+
attr_accessor :url
|
|
11
|
+
attr_accessor :username
|
|
12
|
+
|
|
13
|
+
ALL_FIELD ||= ["database", "password", "table_name", "url", "username"].freeze
|
|
14
|
+
private_constant :ALL_FIELD
|
|
15
|
+
|
|
16
|
+
def initialize(attributes = {})
|
|
17
|
+
unless attributes.is_a?(Hash)
|
|
18
|
+
fail(
|
|
19
|
+
ArgumentError,
|
|
20
|
+
"The input argument (attributes) must be a hash in `Svix::ClickhousePatchConfig` new method"
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
attributes.each do |k, v|
|
|
25
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
26
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::ClickhousePatchConfig")
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
instance_variable_set("@#{k}", v)
|
|
30
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def self.deserialize(attributes = {})
|
|
35
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
36
|
+
attrs = Hash.new
|
|
37
|
+
attrs["database"] = attributes["database"]
|
|
38
|
+
attrs["password"] = attributes["password"]
|
|
39
|
+
attrs["table_name"] = attributes["tableName"]
|
|
40
|
+
attrs["url"] = attributes["url"]
|
|
41
|
+
attrs["username"] = attributes["username"]
|
|
42
|
+
new(attrs)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def serialize
|
|
46
|
+
out = Hash.new
|
|
47
|
+
out["database"] = Svix::serialize_primitive(@database) if @database
|
|
48
|
+
out["password"] = Svix::serialize_primitive(@password) if @password
|
|
49
|
+
out["tableName"] = Svix::serialize_primitive(@table_name) if @table_name
|
|
50
|
+
out["url"] = Svix::serialize_primitive(@url) if @url
|
|
51
|
+
out["username"] = Svix::serialize_primitive(@username) if @username
|
|
52
|
+
out
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Serializes the object to a json string
|
|
56
|
+
# @return String
|
|
57
|
+
def to_json
|
|
58
|
+
JSON.dump(serialize)
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class EventBridgeConfig
|
|
7
|
+
attr_accessor :access_key_id
|
|
8
|
+
# Free-form string, with a maximum of 128 characters
|
|
9
|
+
attr_accessor :detail_type
|
|
10
|
+
# The name or ARN of the event bus to receive the event
|
|
11
|
+
attr_accessor :event_bus_name
|
|
12
|
+
attr_accessor :region
|
|
13
|
+
attr_accessor :secret_access_key
|
|
14
|
+
|
|
15
|
+
ALL_FIELD ||= ["access_key_id", "detail_type", "event_bus_name", "region", "secret_access_key"].freeze
|
|
16
|
+
private_constant :ALL_FIELD
|
|
17
|
+
|
|
18
|
+
def initialize(attributes = {})
|
|
19
|
+
unless attributes.is_a?(Hash)
|
|
20
|
+
fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::EventBridgeConfig` new method")
|
|
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::EventBridgeConfig")
|
|
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["access_key_id"] = attributes["accessKeyId"]
|
|
37
|
+
attrs["detail_type"] = attributes["detailType"]
|
|
38
|
+
attrs["event_bus_name"] = attributes["eventBusName"]
|
|
39
|
+
attrs["region"] = attributes["region"]
|
|
40
|
+
attrs["secret_access_key"] = attributes["secretAccessKey"]
|
|
41
|
+
new(attrs)
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def serialize
|
|
45
|
+
out = Hash.new
|
|
46
|
+
out["accessKeyId"] = Svix::serialize_primitive(@access_key_id) if @access_key_id
|
|
47
|
+
out["detailType"] = Svix::serialize_primitive(@detail_type) if @detail_type
|
|
48
|
+
out["eventBusName"] = Svix::serialize_primitive(@event_bus_name) if @event_bus_name
|
|
49
|
+
out["region"] = Svix::serialize_primitive(@region) if @region
|
|
50
|
+
out["secretAccessKey"] = Svix::serialize_primitive(@secret_access_key) if @secret_access_key
|
|
51
|
+
out
|
|
52
|
+
end
|
|
53
|
+
|
|
54
|
+
# Serializes the object to a json string
|
|
55
|
+
# @return String
|
|
56
|
+
def to_json
|
|
57
|
+
JSON.dump(serialize)
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
end
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class EventBridgePatchConfig
|
|
7
|
+
attr_accessor :access_key_id
|
|
8
|
+
attr_accessor :detail_type
|
|
9
|
+
attr_accessor :event_bus_name
|
|
10
|
+
attr_accessor :region
|
|
11
|
+
attr_accessor :secret_access_key
|
|
12
|
+
|
|
13
|
+
ALL_FIELD ||= ["access_key_id", "detail_type", "event_bus_name", "region", "secret_access_key"].freeze
|
|
14
|
+
private_constant :ALL_FIELD
|
|
15
|
+
|
|
16
|
+
def initialize(attributes = {})
|
|
17
|
+
unless attributes.is_a?(Hash)
|
|
18
|
+
fail(
|
|
19
|
+
ArgumentError,
|
|
20
|
+
"The input argument (attributes) must be a hash in `Svix::EventBridgePatchConfig` new method"
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
attributes.each do |k, v|
|
|
25
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
26
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::EventBridgePatchConfig")
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
instance_variable_set("@#{k}", v)
|
|
30
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def self.deserialize(attributes = {})
|
|
35
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
36
|
+
attrs = Hash.new
|
|
37
|
+
attrs["access_key_id"] = attributes["accessKeyId"]
|
|
38
|
+
attrs["detail_type"] = attributes["detailType"]
|
|
39
|
+
attrs["event_bus_name"] = attributes["eventBusName"]
|
|
40
|
+
attrs["region"] = attributes["region"]
|
|
41
|
+
attrs["secret_access_key"] = attributes["secretAccessKey"]
|
|
42
|
+
new(attrs)
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
def serialize
|
|
46
|
+
out = Hash.new
|
|
47
|
+
out["accessKeyId"] = Svix::serialize_primitive(@access_key_id) if @access_key_id
|
|
48
|
+
out["detailType"] = Svix::serialize_primitive(@detail_type) if @detail_type
|
|
49
|
+
out["eventBusName"] = Svix::serialize_primitive(@event_bus_name) if @event_bus_name
|
|
50
|
+
out["region"] = Svix::serialize_primitive(@region) if @region
|
|
51
|
+
out["secretAccessKey"] = Svix::serialize_primitive(@secret_access_key) if @secret_access_key
|
|
52
|
+
out
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Serializes the object to a json string
|
|
56
|
+
# @return String
|
|
57
|
+
def to_json
|
|
58
|
+
JSON.dump(serialize)
|
|
59
|
+
end
|
|
60
|
+
end
|
|
61
|
+
end
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class GoogleCloudPubSubConfig
|
|
7
|
+
# Google Cloud Credentials JSON Object as a string.
|
|
8
|
+
attr_accessor :credentials
|
|
9
|
+
attr_accessor :project_id
|
|
10
|
+
attr_accessor :topic_id
|
|
11
|
+
|
|
12
|
+
ALL_FIELD ||= ["credentials", "project_id", "topic_id"].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::GoogleCloudPubSubConfig` 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::GoogleCloudPubSubConfig")
|
|
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["credentials"] = attributes["credentials"]
|
|
37
|
+
attrs["project_id"] = attributes["projectId"]
|
|
38
|
+
attrs["topic_id"] = attributes["topicId"]
|
|
39
|
+
new(attrs)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
def serialize
|
|
43
|
+
out = Hash.new
|
|
44
|
+
out["credentials"] = Svix::serialize_primitive(@credentials) if @credentials
|
|
45
|
+
out["projectId"] = Svix::serialize_primitive(@project_id) if @project_id
|
|
46
|
+
out["topicId"] = Svix::serialize_primitive(@topic_id) if @topic_id
|
|
47
|
+
out
|
|
48
|
+
end
|
|
49
|
+
|
|
50
|
+
# Serializes the object to a json string
|
|
51
|
+
# @return String
|
|
52
|
+
def to_json
|
|
53
|
+
JSON.dump(serialize)
|
|
54
|
+
end
|
|
55
|
+
end
|
|
56
|
+
end
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class GoogleCloudPubSubPatchConfig
|
|
7
|
+
attr_accessor :credentials
|
|
8
|
+
attr_accessor :project_id
|
|
9
|
+
attr_accessor :topic_id
|
|
10
|
+
|
|
11
|
+
ALL_FIELD ||= ["credentials", "project_id", "topic_id"].freeze
|
|
12
|
+
private_constant :ALL_FIELD
|
|
13
|
+
|
|
14
|
+
def initialize(attributes = {})
|
|
15
|
+
unless attributes.is_a?(Hash)
|
|
16
|
+
fail(
|
|
17
|
+
ArgumentError,
|
|
18
|
+
"The input argument (attributes) must be a hash in `Svix::GoogleCloudPubSubPatchConfig` new method"
|
|
19
|
+
)
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
attributes.each do |k, v|
|
|
23
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
24
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::GoogleCloudPubSubPatchConfig")
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
instance_variable_set("@#{k}", v)
|
|
28
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
29
|
+
end
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def self.deserialize(attributes = {})
|
|
33
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
34
|
+
attrs = Hash.new
|
|
35
|
+
attrs["credentials"] = attributes["credentials"]
|
|
36
|
+
attrs["project_id"] = attributes["projectId"]
|
|
37
|
+
attrs["topic_id"] = attributes["topicId"]
|
|
38
|
+
new(attrs)
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
def serialize
|
|
42
|
+
out = Hash.new
|
|
43
|
+
out["credentials"] = Svix::serialize_primitive(@credentials) if @credentials
|
|
44
|
+
out["projectId"] = Svix::serialize_primitive(@project_id) if @project_id
|
|
45
|
+
out["topicId"] = Svix::serialize_primitive(@topic_id) if @topic_id
|
|
46
|
+
out
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
# Serializes the object to a json string
|
|
50
|
+
# @return String
|
|
51
|
+
def to_json
|
|
52
|
+
JSON.dump(serialize)
|
|
53
|
+
end
|
|
54
|
+
end
|
|
55
|
+
end
|
|
@@ -20,6 +20,7 @@ require_relative "./shopify_config"
|
|
|
20
20
|
require_relative "./slack_config"
|
|
21
21
|
require_relative "./stripe_config"
|
|
22
22
|
require_relative "./svix_config"
|
|
23
|
+
require_relative "./tailscale_config"
|
|
23
24
|
require_relative "./telnyx_config"
|
|
24
25
|
require_relative "./vapi_config"
|
|
25
26
|
require_relative "./veriff_config"
|
|
@@ -140,6 +141,9 @@ module Svix
|
|
|
140
141
|
class Zoom < ZoomConfig
|
|
141
142
|
end
|
|
142
143
|
|
|
144
|
+
class Tailscale < TailscaleConfig
|
|
145
|
+
end
|
|
146
|
+
|
|
143
147
|
class Telnyx < TelnyxConfig
|
|
144
148
|
end
|
|
145
149
|
|
|
@@ -205,6 +209,7 @@ module Svix
|
|
|
205
209
|
IngestSourceInConfig::Stych => "stych",
|
|
206
210
|
IngestSourceInConfig::Svix => "svix",
|
|
207
211
|
IngestSourceInConfig::Zoom => "zoom",
|
|
212
|
+
IngestSourceInConfig::Tailscale => "tailscale",
|
|
208
213
|
IngestSourceInConfig::Telnyx => "telnyx",
|
|
209
214
|
IngestSourceInConfig::Vapi => "vapi",
|
|
210
215
|
IngestSourceInConfig::OpenAi => "open-ai",
|
|
@@ -20,6 +20,7 @@ require_relative "./shopify_config_out"
|
|
|
20
20
|
require_relative "./slack_config_out"
|
|
21
21
|
require_relative "./stripe_config_out"
|
|
22
22
|
require_relative "./svix_config_out"
|
|
23
|
+
require_relative "./tailscale_config_out"
|
|
23
24
|
require_relative "./telnyx_config_out"
|
|
24
25
|
require_relative "./vapi_config_out"
|
|
25
26
|
require_relative "./veriff_config_out"
|
|
@@ -140,6 +141,9 @@ module Svix
|
|
|
140
141
|
class Zoom < ZoomConfigOut
|
|
141
142
|
end
|
|
142
143
|
|
|
144
|
+
class Tailscale < TailscaleConfigOut
|
|
145
|
+
end
|
|
146
|
+
|
|
143
147
|
class Telnyx < TelnyxConfigOut
|
|
144
148
|
end
|
|
145
149
|
|
|
@@ -210,6 +214,7 @@ module Svix
|
|
|
210
214
|
IngestSourceOutConfig::Stych => "stych",
|
|
211
215
|
IngestSourceOutConfig::Svix => "svix",
|
|
212
216
|
IngestSourceOutConfig::Zoom => "zoom",
|
|
217
|
+
IngestSourceOutConfig::Tailscale => "tailscale",
|
|
213
218
|
IngestSourceOutConfig::Telnyx => "telnyx",
|
|
214
219
|
IngestSourceOutConfig::Vapi => "vapi",
|
|
215
220
|
IngestSourceOutConfig::OpenAi => "open-ai",
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
# Configuration for a RabbitMq sink.
|
|
7
|
+
class RabbitMqConfig
|
|
8
|
+
attr_accessor :routing_key
|
|
9
|
+
attr_accessor :uri
|
|
10
|
+
|
|
11
|
+
ALL_FIELD ||= ["routing_key", "uri"].freeze
|
|
12
|
+
private_constant :ALL_FIELD
|
|
13
|
+
|
|
14
|
+
def initialize(attributes = {})
|
|
15
|
+
unless attributes.is_a?(Hash)
|
|
16
|
+
fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::RabbitMqConfig` new method")
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
attributes.each do |k, v|
|
|
20
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
21
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::RabbitMqConfig")
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
instance_variable_set("@#{k}", v)
|
|
25
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def self.deserialize(attributes = {})
|
|
30
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
31
|
+
attrs = Hash.new
|
|
32
|
+
attrs["routing_key"] = attributes["routingKey"]
|
|
33
|
+
attrs["uri"] = attributes["uri"]
|
|
34
|
+
new(attrs)
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
def serialize
|
|
38
|
+
out = Hash.new
|
|
39
|
+
out["routingKey"] = Svix::serialize_primitive(@routing_key) if @routing_key
|
|
40
|
+
out["uri"] = Svix::serialize_primitive(@uri) if @uri
|
|
41
|
+
out
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
# Serializes the object to a json string
|
|
45
|
+
# @return String
|
|
46
|
+
def to_json
|
|
47
|
+
JSON.dump(serialize)
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
# This file is @generated
|
|
3
|
+
require "json"
|
|
4
|
+
|
|
5
|
+
module Svix
|
|
6
|
+
class RabbitMqPatchConfig
|
|
7
|
+
attr_accessor :routing_key
|
|
8
|
+
attr_accessor :uri
|
|
9
|
+
|
|
10
|
+
ALL_FIELD ||= ["routing_key", "uri"].freeze
|
|
11
|
+
private_constant :ALL_FIELD
|
|
12
|
+
|
|
13
|
+
def initialize(attributes = {})
|
|
14
|
+
unless attributes.is_a?(Hash)
|
|
15
|
+
fail(ArgumentError, "The input argument (attributes) must be a hash in `Svix::RabbitMqPatchConfig` new method")
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
attributes.each do |k, v|
|
|
19
|
+
unless ALL_FIELD.include?(k.to_s)
|
|
20
|
+
fail(ArgumentError, "The field #{k} is not part of Svix::RabbitMqPatchConfig")
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
instance_variable_set("@#{k}", v)
|
|
24
|
+
instance_variable_set("@__#{k}_is_defined", true)
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def self.deserialize(attributes = {})
|
|
29
|
+
attributes = attributes.transform_keys(&:to_s)
|
|
30
|
+
attrs = Hash.new
|
|
31
|
+
attrs["routing_key"] = attributes["routingKey"]
|
|
32
|
+
attrs["uri"] = attributes["uri"]
|
|
33
|
+
new(attrs)
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def serialize
|
|
37
|
+
out = Hash.new
|
|
38
|
+
out["routingKey"] = Svix::serialize_primitive(@routing_key) if @routing_key
|
|
39
|
+
out["uri"] = Svix::serialize_primitive(@uri) if @uri
|
|
40
|
+
out
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
# Serializes the object to a json string
|
|
44
|
+
# @return String
|
|
45
|
+
def to_json
|
|
46
|
+
JSON.dump(serialize)
|
|
47
|
+
end
|
|
48
|
+
end
|
|
49
|
+
end
|