svix 1.76.0 → 1.77.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.
Files changed (63) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/lib/svix/api/authentication.rb +34 -0
  4. data/lib/svix/api/streaming.rb +46 -0
  5. data/lib/svix/api/streaming_event_type.rb +78 -0
  6. data/lib/svix/api/streaming_events.rb +40 -0
  7. data/lib/svix/api/streaming_sink.rb +103 -0
  8. data/lib/svix/api/streaming_stream.rb +73 -0
  9. data/lib/svix/models/amazon_s3_patch_config.rb +55 -0
  10. data/lib/svix/models/api_token_out.rb +62 -0
  11. data/lib/svix/models/azure_blob_storage_config.rb +55 -0
  12. data/lib/svix/models/azure_blob_storage_patch_config.rb +55 -0
  13. data/lib/svix/models/connector_in.rb +0 -9
  14. data/lib/svix/models/connector_kind.rb +2 -0
  15. data/lib/svix/models/connector_out.rb +0 -8
  16. data/lib/svix/models/create_stream_events_in.rb +52 -0
  17. data/lib/svix/models/create_stream_events_out.rb +46 -0
  18. data/lib/svix/models/empty_response.rb +43 -0
  19. data/lib/svix/models/endpoint_message_out.rb +4 -0
  20. data/lib/svix/models/event_in.rb +50 -0
  21. data/lib/svix/models/event_out.rb +53 -0
  22. data/lib/svix/models/event_stream_out.rb +52 -0
  23. data/lib/svix/models/google_cloud_storage_config.rb +56 -0
  24. data/lib/svix/models/google_cloud_storage_patch_config.rb +52 -0
  25. data/lib/svix/models/http_patch_config.rb +46 -0
  26. data/lib/svix/models/http_sink_headers_patch_in.rb +49 -0
  27. data/lib/svix/models/ingest_endpoint_disabled_event.rb +53 -0
  28. data/lib/svix/models/ingest_endpoint_disabled_event_data.rb +65 -0
  29. data/lib/svix/models/ingest_message_attempt_exhausted_event.rb +53 -0
  30. data/lib/svix/models/ingest_message_attempt_exhausted_event_data.rb +66 -0
  31. data/lib/svix/models/ingest_message_attempt_failing_event.rb +54 -0
  32. data/lib/svix/models/ingest_message_attempt_failing_event_data.rb +66 -0
  33. data/lib/svix/models/ingest_message_attempt_recovered_event.rb +53 -0
  34. data/lib/svix/models/ingest_message_attempt_recovered_event_data.rb +66 -0
  35. data/lib/svix/models/list_response_stream_event_type_out.rb +58 -0
  36. data/lib/svix/models/list_response_stream_out.rb +58 -0
  37. data/lib/svix/models/list_response_stream_sink_out.rb +58 -0
  38. data/lib/svix/models/message_in.rb +7 -0
  39. data/lib/svix/models/message_out.rb +4 -1
  40. data/lib/svix/models/otel_tracing_patch_config.rb +49 -0
  41. data/lib/svix/models/polling_endpoint_message_out.rb +4 -1
  42. data/lib/svix/models/rotate_poller_token_in.rb +55 -0
  43. data/lib/svix/models/s3_config.rb +55 -0
  44. data/lib/svix/models/sink_http_config.rb +52 -0
  45. data/lib/svix/models/sink_otel_v1_config.rb +49 -0
  46. data/lib/svix/models/sink_secret_out.rb +50 -0
  47. data/lib/svix/models/sink_status.rb +31 -0
  48. data/lib/svix/models/sink_status_in.rb +29 -0
  49. data/lib/svix/models/sink_transform_in.rb +46 -0
  50. data/lib/svix/models/sink_transformation_out.rb +52 -0
  51. data/lib/svix/models/stream_event_type_in.rb +59 -0
  52. data/lib/svix/models/stream_event_type_out.rb +65 -0
  53. data/lib/svix/models/stream_event_type_patch.rb +59 -0
  54. data/lib/svix/models/stream_in.rb +54 -0
  55. data/lib/svix/models/stream_out.rb +64 -0
  56. data/lib/svix/models/stream_patch.rb +54 -0
  57. data/lib/svix/models/stream_portal_access_in.rb +59 -0
  58. data/lib/svix/models/stream_sink_in.rb +153 -0
  59. data/lib/svix/models/stream_sink_out.rb +174 -0
  60. data/lib/svix/models/stream_sink_patch.rb +141 -0
  61. data/lib/svix/version.rb +1 -1
  62. data/lib/svix.rb +50 -0
  63. metadata +52 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0148235317e7356b99e74d270759d177187c07caec50d24926305a962bd79c07'
4
- data.tar.gz: 2346aebcc478937f00381a582662f142d87b8dbdb622dd644e15dc3ac29d7b6c
3
+ metadata.gz: 3eb66c82478ac852d11fe4b73805133befe9cfa6e0acbbf9e255cbc275c0047d
4
+ data.tar.gz: 866bf7e77e58dbb76d5df21afe1b756053f4014bba46c6c44cb0efa4581158bd
5
5
  SHA512:
6
- metadata.gz: c6c2a7e37c92e75a3346ef8eb029af6bfdb293d78c1f7f7d6ed5c6360b93d10044530545a7abc1bf153b680cde1817699538fa8d62c7f10b8cde8748878e1902
7
- data.tar.gz: 4e1c52373d1926792c6c1356bcd209bf29c97b85cf5c22addfddc0e951838e29740c7859ab048299597fce9bd446288e2192b3b9a51cf2256f0c187d01f75371
6
+ metadata.gz: 33faa28d934642209dc906cc37e1785f2b9384c88230019d4860b07e6a799798780faa58bc30c5fe685437be24f5d51dca136030ca18628e58136556c805f198
7
+ data.tar.gz: 1907d71eb96a046bfe7a6a0bc3908c6a13551229fe29321d152a8e0f65b308f5048e4fb227e4c1d61f914d280f44a1d2e803b9cf53b1202ff117130506310c3f
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- svix (1.76.0)
4
+ svix (1.77.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -19,7 +19,7 @@ GEM
19
19
  ostruct (0.6.1)
20
20
  public_suffix (6.0.1)
21
21
  rake (13.2.1)
22
- rexml (3.4.1)
22
+ rexml (3.4.2)
23
23
  rspec (3.13.0)
24
24
  rspec-core (~> 3.13.0)
25
25
  rspec-expectations (~> 3.13.0)
@@ -57,5 +57,39 @@ module Svix
57
57
  )
58
58
  end
59
59
 
60
+ def stream_portal_access(stream_id, stream_portal_access_in, options = {})
61
+ options = options.transform_keys(&:to_s)
62
+ res = @client.execute_request(
63
+ "POST",
64
+ "/api/v1/auth/stream-portal-access/#{stream_id}",
65
+ headers: {
66
+ "idempotency-key" => options["idempotency-key"]
67
+ },
68
+ body: stream_portal_access_in
69
+ )
70
+ AppPortalAccessOut.deserialize(res)
71
+ end
72
+
73
+ def get_stream_poller_token(stream_id, sink_id)
74
+ res = @client.execute_request(
75
+ "GET",
76
+ "/api/v1/auth/stream/#{stream_id}/sink/#{sink_id}/poller/token"
77
+ )
78
+ ApiTokenOut.deserialize(res)
79
+ end
80
+
81
+ def rotate_stream_poller_token(stream_id, sink_id, rotate_poller_token_in, options = {})
82
+ options = options.transform_keys(&:to_s)
83
+ res = @client.execute_request(
84
+ "POST",
85
+ "/api/v1/auth/stream/#{stream_id}/sink/#{sink_id}/poller/token/rotate",
86
+ headers: {
87
+ "idempotency-key" => options["idempotency-key"]
88
+ },
89
+ body: rotate_poller_token_in
90
+ )
91
+ ApiTokenOut.deserialize(res)
92
+ end
93
+
60
94
  end
61
95
  end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+ # This file is @generated
3
+
4
+ require "net/http"
5
+
6
+ module Svix
7
+ class Streaming
8
+ attr_accessor :event_type
9
+ attr_accessor :events
10
+ attr_accessor :sink
11
+ attr_accessor :stream
12
+ def initialize(client)
13
+ @client = client
14
+ @event_type = StreamingEventType.new(client)
15
+ @events = StreamingEvents.new(client)
16
+ @sink = StreamingSink.new(client)
17
+ @stream = StreamingStream.new(client)
18
+ end
19
+
20
+ def sink_headers_get(stream_id, sink_id)
21
+ res = @client.execute_request(
22
+ "GET",
23
+ "/api/v1/stream/#{stream_id}/sink/#{sink_id}/headers"
24
+ )
25
+ EndpointHeadersOut.deserialize(res)
26
+ end
27
+
28
+ def sink_headers_patch(stream_id, sink_id, http_sink_headers_patch_in)
29
+ res = @client.execute_request(
30
+ "PATCH",
31
+ "/api/v1/stream/#{stream_id}/sink/#{sink_id}/headers",
32
+ body: http_sink_headers_patch_in
33
+ )
34
+ EndpointHeadersOut.deserialize(res)
35
+ end
36
+
37
+ def sink_transformation_get(stream_id, sink_id)
38
+ res = @client.execute_request(
39
+ "GET",
40
+ "/api/v1/stream/#{stream_id}/sink/#{sink_id}/transformation"
41
+ )
42
+ SinkTransformationOut.deserialize(res)
43
+ end
44
+
45
+ end
46
+ end
@@ -0,0 +1,78 @@
1
+ # frozen_string_literal: true
2
+ # This file is @generated
3
+
4
+ require "net/http"
5
+
6
+ module Svix
7
+ class StreamingEventType
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/stream/event-type",
17
+ query_params: {
18
+ "limit" => options["limit"],
19
+ "iterator" => options["iterator"],
20
+ "order" => options["order"],
21
+ "include_archived" => options["include_archived"]
22
+ }
23
+ )
24
+ ListResponseStreamEventTypeOut.deserialize(res)
25
+ end
26
+
27
+ def create(stream_event_type_in, options = {})
28
+ options = options.transform_keys(&:to_s)
29
+ res = @client.execute_request(
30
+ "POST",
31
+ "/api/v1/stream/event-type",
32
+ headers: {
33
+ "idempotency-key" => options["idempotency-key"]
34
+ },
35
+ body: stream_event_type_in
36
+ )
37
+ StreamEventTypeOut.deserialize(res)
38
+ end
39
+
40
+ def get(name)
41
+ res = @client.execute_request(
42
+ "GET",
43
+ "/api/v1/stream/event-type/#{name}"
44
+ )
45
+ StreamEventTypeOut.deserialize(res)
46
+ end
47
+
48
+ def update(name, stream_event_type_in)
49
+ res = @client.execute_request(
50
+ "PUT",
51
+ "/api/v1/stream/event-type/#{name}",
52
+ body: stream_event_type_in
53
+ )
54
+ StreamEventTypeOut.deserialize(res)
55
+ end
56
+
57
+ def delete(name, options = {})
58
+ options = options.transform_keys(&:to_s)
59
+ @client.execute_request(
60
+ "DELETE",
61
+ "/api/v1/stream/event-type/#{name}",
62
+ query_params: {
63
+ "expunge" => options["expunge"]
64
+ }
65
+ )
66
+ end
67
+
68
+ def patch(name, stream_event_type_patch)
69
+ res = @client.execute_request(
70
+ "PATCH",
71
+ "/api/v1/stream/event-type/#{name}",
72
+ body: stream_event_type_patch
73
+ )
74
+ StreamEventTypeOut.deserialize(res)
75
+ end
76
+
77
+ end
78
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+ # This file is @generated
3
+
4
+ require "net/http"
5
+
6
+ module Svix
7
+ class StreamingEvents
8
+ def initialize(client)
9
+ @client = client
10
+ end
11
+
12
+ def create(stream_id, create_stream_events_in, options = {})
13
+ options = options.transform_keys(&:to_s)
14
+ res = @client.execute_request(
15
+ "POST",
16
+ "/api/v1/stream/#{stream_id}/events",
17
+ headers: {
18
+ "idempotency-key" => options["idempotency-key"]
19
+ },
20
+ body: create_stream_events_in
21
+ )
22
+ CreateStreamEventsOut.deserialize(res)
23
+ end
24
+
25
+ def get(stream_id, sink_id, options = {})
26
+ options = options.transform_keys(&:to_s)
27
+ res = @client.execute_request(
28
+ "GET",
29
+ "/api/v1/stream/#{stream_id}/sink/#{sink_id}/events",
30
+ query_params: {
31
+ "limit" => options["limit"],
32
+ "iterator" => options["iterator"],
33
+ "after" => options["after"]
34
+ }
35
+ )
36
+ EventStreamOut.deserialize(res)
37
+ end
38
+
39
+ end
40
+ end
@@ -0,0 +1,103 @@
1
+ # frozen_string_literal: true
2
+ # This file is @generated
3
+
4
+ require "net/http"
5
+
6
+ module Svix
7
+ class StreamingSink
8
+ def initialize(client)
9
+ @client = client
10
+ end
11
+
12
+ def list(stream_id, options = {})
13
+ options = options.transform_keys(&:to_s)
14
+ res = @client.execute_request(
15
+ "GET",
16
+ "/api/v1/stream/#{stream_id}/sink",
17
+ query_params: {
18
+ "limit" => options["limit"],
19
+ "iterator" => options["iterator"],
20
+ "order" => options["order"]
21
+ }
22
+ )
23
+ ListResponseStreamSinkOut.deserialize(res)
24
+ end
25
+
26
+ def create(stream_id, stream_sink_in, options = {})
27
+ options = options.transform_keys(&:to_s)
28
+ res = @client.execute_request(
29
+ "POST",
30
+ "/api/v1/stream/#{stream_id}/sink",
31
+ headers: {
32
+ "idempotency-key" => options["idempotency-key"]
33
+ },
34
+ body: stream_sink_in
35
+ )
36
+ StreamSinkOut.deserialize(res)
37
+ end
38
+
39
+ def get(stream_id, sink_id)
40
+ res = @client.execute_request(
41
+ "GET",
42
+ "/api/v1/stream/#{stream_id}/sink/#{sink_id}"
43
+ )
44
+ StreamSinkOut.deserialize(res)
45
+ end
46
+
47
+ def update(stream_id, sink_id, stream_sink_in)
48
+ res = @client.execute_request(
49
+ "PUT",
50
+ "/api/v1/stream/#{stream_id}/sink/#{sink_id}",
51
+ body: stream_sink_in
52
+ )
53
+ StreamSinkOut.deserialize(res)
54
+ end
55
+
56
+ def delete(stream_id, sink_id)
57
+ @client.execute_request(
58
+ "DELETE",
59
+ "/api/v1/stream/#{stream_id}/sink/#{sink_id}"
60
+ )
61
+ end
62
+
63
+ def patch(stream_id, sink_id, stream_sink_patch)
64
+ res = @client.execute_request(
65
+ "PATCH",
66
+ "/api/v1/stream/#{stream_id}/sink/#{sink_id}",
67
+ body: stream_sink_patch
68
+ )
69
+ StreamSinkOut.deserialize(res)
70
+ end
71
+
72
+ def get_secret(stream_id, sink_id)
73
+ res = @client.execute_request(
74
+ "GET",
75
+ "/api/v1/stream/#{stream_id}/sink/#{sink_id}/secret"
76
+ )
77
+ SinkSecretOut.deserialize(res)
78
+ end
79
+
80
+ def rotate_secret(stream_id, sink_id, endpoint_secret_rotate_in, options = {})
81
+ options = options.transform_keys(&:to_s)
82
+ res = @client.execute_request(
83
+ "POST",
84
+ "/api/v1/stream/#{stream_id}/sink/#{sink_id}/secret/rotate",
85
+ headers: {
86
+ "idempotency-key" => options["idempotency-key"]
87
+ },
88
+ body: endpoint_secret_rotate_in
89
+ )
90
+ EmptyResponse.deserialize(res)
91
+ end
92
+
93
+ def transformation_partial_update(stream_id, sink_id, sink_transform_in)
94
+ res = @client.execute_request(
95
+ "PATCH",
96
+ "/api/v1/stream/#{stream_id}/sink/#{sink_id}/transformation",
97
+ body: sink_transform_in
98
+ )
99
+ EmptyResponse.deserialize(res)
100
+ end
101
+
102
+ end
103
+ end
@@ -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 StreamingStream
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/stream",
17
+ query_params: {
18
+ "limit" => options["limit"],
19
+ "iterator" => options["iterator"],
20
+ "order" => options["order"]
21
+ }
22
+ )
23
+ ListResponseStreamOut.deserialize(res)
24
+ end
25
+
26
+ def create(stream_in, options = {})
27
+ options = options.transform_keys(&:to_s)
28
+ res = @client.execute_request(
29
+ "POST",
30
+ "/api/v1/stream",
31
+ headers: {
32
+ "idempotency-key" => options["idempotency-key"]
33
+ },
34
+ body: stream_in
35
+ )
36
+ StreamOut.deserialize(res)
37
+ end
38
+
39
+ def get(stream_id)
40
+ res = @client.execute_request(
41
+ "GET",
42
+ "/api/v1/stream/#{stream_id}"
43
+ )
44
+ StreamOut.deserialize(res)
45
+ end
46
+
47
+ def update(stream_id, stream_in)
48
+ res = @client.execute_request(
49
+ "PUT",
50
+ "/api/v1/stream/#{stream_id}",
51
+ body: stream_in
52
+ )
53
+ StreamOut.deserialize(res)
54
+ end
55
+
56
+ def delete(stream_id)
57
+ @client.execute_request(
58
+ "DELETE",
59
+ "/api/v1/stream/#{stream_id}"
60
+ )
61
+ end
62
+
63
+ def patch(stream_id, stream_patch)
64
+ res = @client.execute_request(
65
+ "PATCH",
66
+ "/api/v1/stream/#{stream_id}",
67
+ body: stream_patch
68
+ )
69
+ StreamOut.deserialize(res)
70
+ end
71
+
72
+ end
73
+ end
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+ # This file is @generated
3
+ require "json"
4
+
5
+ module Svix
6
+ class AmazonS3PatchConfig
7
+ attr_accessor :access_key_id
8
+ attr_accessor :bucket
9
+ attr_accessor :region
10
+ attr_accessor :secret_access_key
11
+
12
+ ALL_FIELD ||= ["access_key_id", "bucket", "region", "secret_access_key"].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::AmazonS3PatchConfig` 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::AmazonS3PatchConfig")
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["access_key_id"] = attributes["accessKeyId"]
34
+ attrs["bucket"] = attributes["bucket"]
35
+ attrs["region"] = attributes["region"]
36
+ attrs["secret_access_key"] = attributes["secretAccessKey"]
37
+ new(attrs)
38
+ end
39
+
40
+ def serialize
41
+ out = Hash.new
42
+ out["accessKeyId"] = Svix::serialize_primitive(@access_key_id) if @access_key_id
43
+ out["bucket"] = Svix::serialize_primitive(@bucket) if @bucket
44
+ out["region"] = Svix::serialize_primitive(@region) if @region
45
+ out["secretAccessKey"] = Svix::serialize_primitive(@secret_access_key) if @secret_access_key
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,62 @@
1
+ # frozen_string_literal: true
2
+ # This file is @generated
3
+ require "json"
4
+
5
+ module Svix
6
+ class ApiTokenOut
7
+ attr_accessor :created_at
8
+ attr_accessor :expires_at
9
+ # The GlobalApplicationToken's ID.
10
+ attr_accessor :id
11
+ attr_accessor :name
12
+ attr_accessor :scopes
13
+ attr_accessor :token
14
+
15
+ ALL_FIELD ||= ["created_at", "expires_at", "id", "name", "scopes", "token"].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::ApiTokenOut` 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::ApiTokenOut")
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["created_at"] = DateTime.rfc3339(attributes["createdAt"]).to_time
37
+ attrs["expires_at"] = DateTime.rfc3339(attributes["expiresAt"]).to_time if attributes["expiresAt"]
38
+ attrs["id"] = attributes["id"]
39
+ attrs["name"] = attributes["name"]
40
+ attrs["scopes"] = attributes["scopes"]
41
+ attrs["token"] = attributes["token"]
42
+ new(attrs)
43
+ end
44
+
45
+ def serialize
46
+ out = Hash.new
47
+ out["createdAt"] = Svix::serialize_primitive(@created_at) if @created_at
48
+ out["expiresAt"] = Svix::serialize_primitive(@expires_at) if @expires_at
49
+ out["id"] = Svix::serialize_primitive(@id) if @id
50
+ out["name"] = Svix::serialize_primitive(@name) if @name
51
+ out["scopes"] = Svix::serialize_primitive(@scopes) if @scopes
52
+ out["token"] = Svix::serialize_primitive(@token) if @token
53
+ out
54
+ end
55
+
56
+ # Serializes the object to a json string
57
+ # @return String
58
+ def to_json
59
+ JSON.dump(serialize)
60
+ end
61
+ end
62
+ end
@@ -0,0 +1,55 @@
1
+ # frozen_string_literal: true
2
+ # This file is @generated
3
+ require "json"
4
+
5
+ module Svix
6
+ class AzureBlobStorageConfig
7
+ attr_accessor :access_key
8
+ attr_accessor :account
9
+ attr_accessor :container
10
+
11
+ ALL_FIELD ||= ["access_key", "account", "container"].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::AzureBlobStorageConfig` 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::AzureBlobStorageConfig")
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["access_key"] = attributes["accessKey"]
36
+ attrs["account"] = attributes["account"]
37
+ attrs["container"] = attributes["container"]
38
+ new(attrs)
39
+ end
40
+
41
+ def serialize
42
+ out = Hash.new
43
+ out["accessKey"] = Svix::serialize_primitive(@access_key) if @access_key
44
+ out["account"] = Svix::serialize_primitive(@account) if @account
45
+ out["container"] = Svix::serialize_primitive(@container) if @container
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,55 @@
1
+ # frozen_string_literal: true
2
+ # This file is @generated
3
+ require "json"
4
+
5
+ module Svix
6
+ class AzureBlobStoragePatchConfig
7
+ attr_accessor :access_key
8
+ attr_accessor :account
9
+ attr_accessor :container
10
+
11
+ ALL_FIELD ||= ["access_key", "account", "container"].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::AzureBlobStoragePatchConfig` 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::AzureBlobStoragePatchConfig")
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["access_key"] = attributes["accessKey"]
36
+ attrs["account"] = attributes["account"]
37
+ attrs["container"] = attributes["container"]
38
+ new(attrs)
39
+ end
40
+
41
+ def serialize
42
+ out = Hash.new
43
+ out["accessKey"] = Svix::serialize_primitive(@access_key) if @access_key
44
+ out["account"] = Svix::serialize_primitive(@account) if @account
45
+ out["container"] = Svix::serialize_primitive(@container) if @container
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
@@ -5,12 +5,9 @@ require "json"
5
5
  module Svix
6
6
  class ConnectorIn
7
7
  attr_accessor :description
8
- # Deprecated - prefer featureFlags instead.
9
- attr_accessor :feature_flag
10
8
  attr_accessor :feature_flags
11
9
  attr_accessor :filter_types
12
10
  attr_accessor :instructions
13
- attr_accessor :instructions_link
14
11
  attr_accessor :kind
15
12
  attr_accessor :logo
16
13
  attr_accessor :name
@@ -18,11 +15,9 @@ module Svix
18
15
 
19
16
  ALL_FIELD ||= [
20
17
  "description",
21
- "feature_flag",
22
18
  "feature_flags",
23
19
  "filter_types",
24
20
  "instructions",
25
- "instructions_link",
26
21
  "kind",
27
22
  "logo",
28
23
  "name",
@@ -49,11 +44,9 @@ module Svix
49
44
  attributes = attributes.transform_keys(&:to_s)
50
45
  attrs = Hash.new
51
46
  attrs["description"] = attributes["description"]
52
- attrs["feature_flag"] = attributes["featureFlag"]
53
47
  attrs["feature_flags"] = attributes["featureFlags"]
54
48
  attrs["filter_types"] = attributes["filterTypes"]
55
49
  attrs["instructions"] = attributes["instructions"]
56
- attrs["instructions_link"] = attributes["instructionsLink"]
57
50
  attrs["kind"] = Svix::ConnectorKind.deserialize(attributes["kind"]) if attributes["kind"]
58
51
  attrs["logo"] = attributes["logo"]
59
52
  attrs["name"] = attributes["name"]
@@ -64,11 +57,9 @@ module Svix
64
57
  def serialize
65
58
  out = Hash.new
66
59
  out["description"] = Svix::serialize_primitive(@description) if @description
67
- out["featureFlag"] = Svix::serialize_primitive(@feature_flag) if @feature_flag
68
60
  out["featureFlags"] = Svix::serialize_primitive(@feature_flags) if @feature_flags
69
61
  out["filterTypes"] = Svix::serialize_primitive(@filter_types) if @filter_types
70
62
  out["instructions"] = Svix::serialize_primitive(@instructions) if @instructions
71
- out["instructionsLink"] = Svix::serialize_primitive(@instructions_link) if @instructions_link
72
63
  out["kind"] = Svix::serialize_schema_ref(@kind) if @kind
73
64
  out["logo"] = Svix::serialize_primitive(@logo) if @logo
74
65
  out["name"] = Svix::serialize_primitive(@name) if @name