svix 1.10.0 → 1.12.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/application_api.rb +20 -20
- data/lib/svix/api/authentication_api.rb +2 -2
- data/lib/svix/api/background_tasks_api.rb +12 -12
- data/lib/svix/api/broadcast_api.rb +2 -2
- data/lib/svix/api/endpoint_api.rb +12 -12
- data/lib/svix/api/environment_api.rb +2 -2
- data/lib/svix/api/environment_settings_api.rb +2 -2
- data/lib/svix/api/event_type_api.rb +82 -14
- data/lib/svix/api/health_api.rb +2 -2
- data/lib/svix/api/integration_api.rb +6 -6
- data/lib/svix/api/message_api.rb +115 -20
- data/lib/svix/api/message_attempt_api.rb +94 -94
- data/lib/svix/api/statistics_api.rb +10 -10
- data/lib/svix/api/transformation_template_api.rb +8 -8
- data/lib/svix/api_client.rb +2 -2
- data/lib/svix/api_error.rb +2 -2
- data/lib/svix/configuration.rb +10 -6
- data/lib/svix/event_type_api.rb +4 -0
- data/lib/svix/models/app_portal_access_in.rb +2 -2
- data/lib/svix/models/app_portal_access_out.rb +2 -2
- data/lib/svix/models/app_usage_stats_in.rb +2 -2
- data/lib/svix/models/app_usage_stats_out.rb +2 -2
- data/lib/svix/models/application_in.rb +2 -2
- data/lib/svix/models/application_out.rb +2 -2
- data/lib/svix/models/application_patch.rb +2 -2
- data/lib/svix/models/application_stats.rb +2 -2
- data/lib/svix/models/application_token_expire_in.rb +2 -2
- data/lib/svix/models/attempt_statistics_data.rb +2 -2
- data/lib/svix/models/attempt_statistics_response.rb +2 -2
- data/lib/svix/models/background_task_out.rb +2 -2
- data/lib/svix/models/background_task_status.rb +2 -2
- data/lib/svix/models/background_task_type.rb +2 -2
- data/lib/svix/models/border_radius_config.rb +2 -2
- data/lib/svix/models/border_radius_enum.rb +2 -2
- data/lib/svix/models/custom_color_palette.rb +2 -2
- data/lib/svix/models/custom_theme_override.rb +2 -2
- data/lib/svix/models/dashboard_access_out.rb +2 -2
- data/lib/svix/models/endpoint_created_event.rb +2 -2
- data/lib/svix/models/endpoint_created_event_data.rb +2 -2
- data/lib/svix/models/endpoint_deleted_event.rb +2 -2
- data/lib/svix/models/endpoint_deleted_event_data.rb +2 -2
- data/lib/svix/models/endpoint_disabled_event.rb +2 -2
- data/lib/svix/models/endpoint_disabled_event_data.rb +2 -2
- data/lib/svix/models/endpoint_headers_in.rb +2 -2
- data/lib/svix/models/endpoint_headers_out.rb +2 -2
- data/lib/svix/models/endpoint_headers_patch_in.rb +2 -2
- data/lib/svix/models/endpoint_in.rb +2 -2
- data/lib/svix/models/endpoint_message_out.rb +2 -2
- data/lib/svix/models/endpoint_out.rb +2 -2
- data/lib/svix/models/endpoint_patch.rb +2 -2
- data/lib/svix/models/endpoint_secret_out.rb +2 -2
- data/lib/svix/models/endpoint_secret_rotate_in.rb +2 -2
- data/lib/svix/models/endpoint_stats.rb +2 -2
- data/lib/svix/models/endpoint_transformation_in.rb +2 -2
- data/lib/svix/models/endpoint_transformation_out.rb +2 -2
- data/lib/svix/models/endpoint_transformation_simulate_in.rb +2 -2
- data/lib/svix/models/endpoint_transformation_simulate_out.rb +2 -2
- data/lib/svix/models/endpoint_update.rb +2 -2
- data/lib/svix/models/endpoint_updated_event.rb +2 -2
- data/lib/svix/models/endpoint_updated_event_data.rb +2 -2
- data/lib/svix/models/environment_in.rb +2 -2
- data/lib/svix/models/environment_out.rb +2 -2
- data/lib/svix/models/environment_settings_out.rb +2 -2
- data/lib/svix/models/event_example_in.rb +2 -2
- data/lib/svix/models/event_type_example_out.rb +2 -2
- data/lib/svix/models/event_type_import_open_api_in.rb +225 -0
- data/lib/svix/models/event_type_import_open_api_out.rb +223 -0
- data/lib/svix/models/event_type_import_open_api_out_data.rb +225 -0
- data/lib/svix/models/event_type_in.rb +2 -2
- data/lib/svix/models/event_type_out.rb +2 -2
- data/lib/svix/models/event_type_patch.rb +2 -2
- data/lib/svix/models/event_type_schema_in.rb +2 -2
- data/lib/svix/models/event_type_update.rb +2 -2
- data/lib/svix/models/font_size_config.rb +2 -2
- data/lib/svix/models/http_error_out.rb +2 -2
- data/lib/svix/models/http_validation_error.rb +2 -2
- data/lib/svix/models/integration_in.rb +2 -2
- data/lib/svix/models/integration_key_out.rb +2 -2
- data/lib/svix/models/integration_out.rb +2 -2
- data/lib/svix/models/integration_update.rb +2 -2
- data/lib/svix/models/list_response_application_out.rb +2 -2
- data/lib/svix/models/list_response_application_stats.rb +2 -2
- data/lib/svix/models/list_response_background_task_out.rb +2 -2
- data/lib/svix/models/list_response_endpoint_message_out.rb +2 -2
- data/lib/svix/models/list_response_endpoint_out.rb +2 -2
- data/lib/svix/models/list_response_event_type_out.rb +2 -2
- data/lib/svix/models/list_response_integration_out.rb +2 -2
- data/lib/svix/models/list_response_message_attempt_endpoint_out.rb +2 -2
- data/lib/svix/models/list_response_message_attempt_out.rb +2 -2
- data/lib/svix/models/list_response_message_endpoint_out.rb +2 -2
- data/lib/svix/models/list_response_message_out.rb +2 -2
- data/lib/svix/models/list_response_template_out.rb +2 -2
- data/lib/svix/models/message_attempt_endpoint_out.rb +2 -2
- data/lib/svix/models/message_attempt_exhausted_event.rb +2 -2
- data/lib/svix/models/message_attempt_exhausted_event_data.rb +2 -2
- data/lib/svix/models/message_attempt_failed_data.rb +2 -2
- data/lib/svix/models/message_attempt_failing_event.rb +2 -2
- data/lib/svix/models/message_attempt_failing_event_data.rb +2 -2
- data/lib/svix/models/message_attempt_headers_out.rb +2 -2
- data/lib/svix/models/message_attempt_out.rb +2 -2
- data/lib/svix/models/message_attempt_recovered_event.rb +2 -2
- data/lib/svix/models/message_attempt_recovered_event_data.rb +2 -2
- data/lib/svix/models/message_attempt_trigger_type.rb +2 -2
- data/lib/svix/models/message_broadcast_in.rb +2 -2
- data/lib/svix/models/message_broadcast_out.rb +2 -2
- data/lib/svix/models/message_endpoint_out.rb +2 -2
- data/lib/svix/models/message_in.rb +2 -2
- data/lib/svix/models/message_out.rb +2 -2
- data/lib/svix/models/message_raw_payload_out.rb +223 -0
- data/lib/svix/models/message_status.rb +2 -2
- data/lib/svix/models/one_time_token_in.rb +2 -2
- data/lib/svix/models/one_time_token_out.rb +2 -2
- data/lib/svix/models/ordering.rb +2 -2
- data/lib/svix/models/recover_in.rb +2 -2
- data/lib/svix/models/recover_out.rb +2 -2
- data/lib/svix/models/replay_in.rb +2 -2
- data/lib/svix/models/replay_out.rb +2 -2
- data/lib/svix/models/settings_in.rb +2 -2
- data/lib/svix/models/settings_out.rb +2 -2
- data/lib/svix/models/statistics_period.rb +2 -2
- data/lib/svix/models/status_code_class.rb +2 -2
- data/lib/svix/models/template_in.rb +39 -3
- data/lib/svix/models/template_out.rb +39 -3
- data/lib/svix/models/template_patch.rb +39 -3
- data/lib/svix/models/template_update.rb +39 -3
- data/lib/svix/models/transformation_http_method.rb +2 -2
- data/lib/svix/models/transformation_simulate_in.rb +2 -2
- data/lib/svix/models/transformation_simulate_out.rb +2 -2
- data/lib/svix/models/transformation_template_kind.rb +2 -2
- data/lib/svix/models/validation_error.rb +3 -3
- data/lib/svix/version.rb +1 -1
- data/lib/svix.rb +3 -0
- metadata +6 -2
@@ -0,0 +1,223 @@
|
|
1
|
+
=begin
|
2
|
+
#Svix API
|
3
|
+
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
|
+
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
7
|
+
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.2.0
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module Svix
|
17
|
+
class MessageRawPayloadOut
|
18
|
+
attr_accessor :payload
|
19
|
+
|
20
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
21
|
+
def self.attribute_map
|
22
|
+
{
|
23
|
+
:'payload' => :'payload'
|
24
|
+
}
|
25
|
+
end
|
26
|
+
|
27
|
+
# Returns all the JSON keys this model knows about
|
28
|
+
def self.acceptable_attributes
|
29
|
+
attribute_map.values
|
30
|
+
end
|
31
|
+
|
32
|
+
# Attribute type mapping.
|
33
|
+
def self.openapi_types
|
34
|
+
{
|
35
|
+
:'payload' => :'String'
|
36
|
+
}
|
37
|
+
end
|
38
|
+
|
39
|
+
# List of attributes with nullable: true
|
40
|
+
def self.openapi_nullable
|
41
|
+
Set.new([
|
42
|
+
])
|
43
|
+
end
|
44
|
+
|
45
|
+
# Initializes the object
|
46
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
47
|
+
def initialize(attributes = {})
|
48
|
+
if (!attributes.is_a?(Hash))
|
49
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `Svix::MessageRawPayloadOut` initialize method"
|
50
|
+
end
|
51
|
+
|
52
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
53
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `Svix::MessageRawPayloadOut`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
|
+
end
|
57
|
+
h[k.to_sym] = v
|
58
|
+
}
|
59
|
+
|
60
|
+
if attributes.key?(:'payload')
|
61
|
+
self.payload = attributes[:'payload']
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
66
|
+
# @return Array for valid properties with the reasons
|
67
|
+
def list_invalid_properties
|
68
|
+
invalid_properties = Array.new
|
69
|
+
if @payload.nil?
|
70
|
+
invalid_properties.push('invalid value for "payload", payload cannot be nil.')
|
71
|
+
end
|
72
|
+
|
73
|
+
invalid_properties
|
74
|
+
end
|
75
|
+
|
76
|
+
# Check to see if the all the properties in the model are valid
|
77
|
+
# @return true if the model is valid
|
78
|
+
def valid?
|
79
|
+
return false if @payload.nil?
|
80
|
+
true
|
81
|
+
end
|
82
|
+
|
83
|
+
# Checks equality by comparing each attribute.
|
84
|
+
# @param [Object] Object to be compared
|
85
|
+
def ==(o)
|
86
|
+
return true if self.equal?(o)
|
87
|
+
self.class == o.class &&
|
88
|
+
payload == o.payload
|
89
|
+
end
|
90
|
+
|
91
|
+
# @see the `==` method
|
92
|
+
# @param [Object] Object to be compared
|
93
|
+
def eql?(o)
|
94
|
+
self == o
|
95
|
+
end
|
96
|
+
|
97
|
+
# Calculates hash code according to all attributes.
|
98
|
+
# @return [Integer] Hash code
|
99
|
+
def hash
|
100
|
+
[payload].hash
|
101
|
+
end
|
102
|
+
|
103
|
+
# Builds the object from hash
|
104
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
105
|
+
# @return [Object] Returns the model itself
|
106
|
+
def self.build_from_hash(attributes)
|
107
|
+
new.build_from_hash(attributes)
|
108
|
+
end
|
109
|
+
|
110
|
+
# Builds the object from hash
|
111
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
112
|
+
# @return [Object] Returns the model itself
|
113
|
+
def build_from_hash(attributes)
|
114
|
+
return nil unless attributes.is_a?(Hash)
|
115
|
+
self.class.openapi_types.each_pair do |key, type|
|
116
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
117
|
+
self.send("#{key}=", nil)
|
118
|
+
elsif type =~ /\AArray<(.*)>/i
|
119
|
+
# check to ensure the input is an array given that the attribute
|
120
|
+
# is documented as an array but the input is not
|
121
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
122
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
123
|
+
end
|
124
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
125
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
126
|
+
end
|
127
|
+
end
|
128
|
+
|
129
|
+
self
|
130
|
+
end
|
131
|
+
|
132
|
+
# Deserializes the data based on type
|
133
|
+
# @param string type Data type
|
134
|
+
# @param string value Value to be deserialized
|
135
|
+
# @return [Object] Deserialized data
|
136
|
+
def _deserialize(type, value)
|
137
|
+
case type.to_sym
|
138
|
+
when :Time
|
139
|
+
Time.parse(value)
|
140
|
+
when :Date
|
141
|
+
Date.parse(value)
|
142
|
+
when :String
|
143
|
+
value.to_s
|
144
|
+
when :Integer
|
145
|
+
value.to_i
|
146
|
+
when :Float
|
147
|
+
value.to_f
|
148
|
+
when :Boolean
|
149
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
150
|
+
true
|
151
|
+
else
|
152
|
+
false
|
153
|
+
end
|
154
|
+
when :Object
|
155
|
+
# generic object (usually a Hash), return directly
|
156
|
+
value
|
157
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
158
|
+
inner_type = Regexp.last_match[:inner_type]
|
159
|
+
value.map { |v| _deserialize(inner_type, v) }
|
160
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
161
|
+
k_type = Regexp.last_match[:k_type]
|
162
|
+
v_type = Regexp.last_match[:v_type]
|
163
|
+
{}.tap do |hash|
|
164
|
+
value.each do |k, v|
|
165
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
166
|
+
end
|
167
|
+
end
|
168
|
+
else # model
|
169
|
+
# models (e.g. Pet) or oneOf
|
170
|
+
klass = Svix.const_get(type)
|
171
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# Returns the string representation of the object
|
176
|
+
# @return [String] String presentation of the object
|
177
|
+
def to_s
|
178
|
+
to_hash.to_s
|
179
|
+
end
|
180
|
+
|
181
|
+
# to_body is an alias to to_hash (backward compatibility)
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
183
|
+
def to_body
|
184
|
+
to_hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Returns the object in the form of hash
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_hash
|
190
|
+
hash = {}
|
191
|
+
self.class.attribute_map.each_pair do |attr, param|
|
192
|
+
value = self.send(attr)
|
193
|
+
if value.nil?
|
194
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
195
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
196
|
+
end
|
197
|
+
|
198
|
+
hash[param] = _to_hash(value)
|
199
|
+
end
|
200
|
+
hash
|
201
|
+
end
|
202
|
+
|
203
|
+
# Outputs non-array value in the form of hash
|
204
|
+
# For object, use to_hash. Otherwise, just return the value
|
205
|
+
# @param [Object] value Any valid value
|
206
|
+
# @return [Hash] Returns the value in the form of hash
|
207
|
+
def _to_hash(value)
|
208
|
+
if value.is_a?(Array)
|
209
|
+
value.compact.map { |v| _to_hash(v) }
|
210
|
+
elsif value.is_a?(Hash)
|
211
|
+
{}.tap do |hash|
|
212
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
213
|
+
end
|
214
|
+
elsif value.respond_to? :to_hash
|
215
|
+
value.to_hash
|
216
|
+
else
|
217
|
+
value
|
218
|
+
end
|
219
|
+
end
|
220
|
+
|
221
|
+
end
|
222
|
+
|
223
|
+
end
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Svix API
|
3
3
|
|
4
|
-
#
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.0
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Svix API
|
3
3
|
|
4
|
-
#
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.0
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Svix API
|
3
3
|
|
4
|
-
#
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.0
|
data/lib/svix/models/ordering.rb
CHANGED
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Svix API
|
3
3
|
|
4
|
-
#
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.0
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Svix API
|
3
3
|
|
4
|
-
#
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.0
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Svix API
|
3
3
|
|
4
|
-
#
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.0
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Svix API
|
3
3
|
|
4
|
-
#
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.0
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Svix API
|
3
3
|
|
4
|
-
#
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.0
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Svix API
|
3
3
|
|
4
|
-
#
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.0
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Svix API
|
3
3
|
|
4
|
-
#
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.0
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Svix API
|
3
3
|
|
4
|
-
#
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.0
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Svix API
|
3
3
|
|
4
|
-
#
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.0
|
@@ -1,9 +1,9 @@
|
|
1
1
|
=begin
|
2
2
|
#Svix API
|
3
3
|
|
4
|
-
#
|
4
|
+
#No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 1.
|
6
|
+
The version of the OpenAPI document: 1.1.1
|
7
7
|
|
8
8
|
Generated by: https://openapi-generator.tech
|
9
9
|
OpenAPI Generator version: 5.2.0
|
@@ -17,6 +17,8 @@ module Svix
|
|
17
17
|
class TemplateIn
|
18
18
|
attr_accessor :description
|
19
19
|
|
20
|
+
attr_accessor :feature_flag
|
21
|
+
|
20
22
|
attr_accessor :filter_types
|
21
23
|
|
22
24
|
attr_accessor :instructions
|
@@ -33,6 +35,7 @@ module Svix
|
|
33
35
|
def self.attribute_map
|
34
36
|
{
|
35
37
|
:'description' => :'description',
|
38
|
+
:'feature_flag' => :'featureFlag',
|
36
39
|
:'filter_types' => :'filterTypes',
|
37
40
|
:'instructions' => :'instructions',
|
38
41
|
:'instructions_link' => :'instructionsLink',
|
@@ -51,6 +54,7 @@ module Svix
|
|
51
54
|
def self.openapi_types
|
52
55
|
{
|
53
56
|
:'description' => :'String',
|
57
|
+
:'feature_flag' => :'String',
|
54
58
|
:'filter_types' => :'Array<String>',
|
55
59
|
:'instructions' => :'String',
|
56
60
|
:'instructions_link' => :'String',
|
@@ -63,6 +67,7 @@ module Svix
|
|
63
67
|
# List of attributes with nullable: true
|
64
68
|
def self.openapi_nullable
|
65
69
|
Set.new([
|
70
|
+
:'feature_flag',
|
66
71
|
:'filter_types',
|
67
72
|
:'instructions_link',
|
68
73
|
])
|
@@ -89,6 +94,10 @@ module Svix
|
|
89
94
|
self.description = ''
|
90
95
|
end
|
91
96
|
|
97
|
+
if attributes.key?(:'feature_flag')
|
98
|
+
self.feature_flag = attributes[:'feature_flag']
|
99
|
+
end
|
100
|
+
|
92
101
|
if attributes.key?(:'filter_types')
|
93
102
|
if (value = attributes[:'filter_types']).is_a?(Array)
|
94
103
|
self.filter_types = value
|
@@ -124,6 +133,15 @@ module Svix
|
|
124
133
|
# @return Array for valid properties with the reasons
|
125
134
|
def list_invalid_properties
|
126
135
|
invalid_properties = Array.new
|
136
|
+
if !@feature_flag.nil? && @feature_flag.to_s.length > 256
|
137
|
+
invalid_properties.push('invalid value for "feature_flag", the character length must be smaller than or equal to 256.')
|
138
|
+
end
|
139
|
+
|
140
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
141
|
+
if !@feature_flag.nil? && @feature_flag !~ pattern
|
142
|
+
invalid_properties.push("invalid value for \"feature_flag\", must conform to the pattern #{pattern}.")
|
143
|
+
end
|
144
|
+
|
127
145
|
if !@filter_types.nil? && @filter_types.length < 1
|
128
146
|
invalid_properties.push('invalid value for "filter_types", number of items must be greater than or equal to 1.')
|
129
147
|
end
|
@@ -154,6 +172,8 @@ module Svix
|
|
154
172
|
# Check to see if the all the properties in the model are valid
|
155
173
|
# @return true if the model is valid
|
156
174
|
def valid?
|
175
|
+
return false if !@feature_flag.nil? && @feature_flag.to_s.length > 256
|
176
|
+
return false if !@feature_flag.nil? && @feature_flag !~ Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
157
177
|
return false if !@filter_types.nil? && @filter_types.length < 1
|
158
178
|
return false if @logo.nil?
|
159
179
|
return false if @name.nil?
|
@@ -163,6 +183,21 @@ module Svix
|
|
163
183
|
true
|
164
184
|
end
|
165
185
|
|
186
|
+
# Custom attribute writer method with validation
|
187
|
+
# @param [Object] feature_flag Value to be assigned
|
188
|
+
def feature_flag=(feature_flag)
|
189
|
+
if !feature_flag.nil? && feature_flag.to_s.length > 256
|
190
|
+
fail ArgumentError, 'invalid value for "feature_flag", the character length must be smaller than or equal to 256.'
|
191
|
+
end
|
192
|
+
|
193
|
+
pattern = Regexp.new(/^[a-zA-Z0-9\-_.]+$/)
|
194
|
+
if !feature_flag.nil? && feature_flag !~ pattern
|
195
|
+
fail ArgumentError, "invalid value for \"feature_flag\", must conform to the pattern #{pattern}."
|
196
|
+
end
|
197
|
+
|
198
|
+
@feature_flag = feature_flag
|
199
|
+
end
|
200
|
+
|
166
201
|
# Custom attribute writer method with validation
|
167
202
|
# @param [Object] filter_types Value to be assigned
|
168
203
|
def filter_types=(filter_types)
|
@@ -197,6 +232,7 @@ module Svix
|
|
197
232
|
return true if self.equal?(o)
|
198
233
|
self.class == o.class &&
|
199
234
|
description == o.description &&
|
235
|
+
feature_flag == o.feature_flag &&
|
200
236
|
filter_types == o.filter_types &&
|
201
237
|
instructions == o.instructions &&
|
202
238
|
instructions_link == o.instructions_link &&
|
@@ -214,7 +250,7 @@ module Svix
|
|
214
250
|
# Calculates hash code according to all attributes.
|
215
251
|
# @return [Integer] Hash code
|
216
252
|
def hash
|
217
|
-
[description, filter_types, instructions, instructions_link, logo, name, transformation].hash
|
253
|
+
[description, feature_flag, filter_types, instructions, instructions_link, logo, name, transformation].hash
|
218
254
|
end
|
219
255
|
|
220
256
|
# Builds the object from hash
|