mux_ruby 3.9.0 → 3.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CODEOWNERS +1 -1
- data/Gemfile.lock +2 -2
- data/README.md +4 -4
- data/docs/Asset.md +7 -1
- data/docs/AssetGeneratedSubtitleSettings.md +22 -0
- data/docs/AssetNonStandardInputReasons.md +3 -1
- data/docs/AssetsApi.md +1 -1
- data/docs/CreateAssetRequest.md +5 -1
- data/docs/CreateLiveStreamRequest.md +3 -3
- data/docs/CreateTrackRequest.md +2 -2
- data/docs/DeliveryReport.md +2 -0
- data/docs/DeliveryReportDeliveredSecondsByResolution.md +5 -1
- data/docs/DirectUploadsApi.md +1 -1
- data/docs/GetMonitoringBreakdownTimeseriesResponse.md +22 -0
- data/docs/InputSettings.md +7 -5
- data/docs/LiveStream.md +4 -4
- data/docs/MetricsApi.md +2 -2
- data/docs/MonitoringApi.md +93 -6
- data/docs/MonitoringBreakdownTimeseriesDatapoint.md +22 -0
- data/docs/MonitoringBreakdownTimeseriesValues.md +20 -0
- data/docs/RealTimeApi.md +8 -6
- data/docs/SigningKeysApi.md +291 -0
- data/docs/Track.md +4 -4
- data/docs/URLSigningKeysApi.md +4 -4
- data/docs/UpdateLiveStreamRequest.md +1 -1
- data/docs/VideoView.md +33 -1
- data/examples/video/exercise-signing-keys.rb +5 -4
- data/gen/generator-config.json +1 -1
- data/gen/package.json +1 -1
- data/gen/yarn.lock +593 -129
- data/lib/mux_ruby/api/assets_api.rb +2 -2
- data/lib/mux_ruby/api/direct_uploads_api.rb +2 -2
- data/lib/mux_ruby/api/metrics_api.rb +9 -9
- data/lib/mux_ruby/api/monitoring_api.rb +110 -9
- data/lib/mux_ruby/api/real_time_api.rb +9 -6
- data/lib/mux_ruby/api/signing_keys_api.rb +266 -0
- data/lib/mux_ruby/api/url_signing_keys_api.rb +8 -8
- data/lib/mux_ruby/models/asset.rb +68 -2
- data/lib/mux_ruby/models/asset_generated_subtitle_settings.rb +275 -0
- data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +14 -4
- data/lib/mux_ruby/models/create_asset_request.rb +48 -4
- data/lib/mux_ruby/models/create_live_stream_request.rb +3 -3
- data/lib/mux_ruby/models/create_track_request.rb +4 -3
- data/lib/mux_ruby/models/delivery_report.rb +23 -1
- data/lib/mux_ruby/models/delivery_report_delivered_seconds_by_resolution.rb +22 -2
- data/lib/mux_ruby/models/get_monitoring_breakdown_timeseries_response.rb +240 -0
- data/lib/mux_ruby/models/input_settings.rb +18 -6
- data/lib/mux_ruby/models/live_stream.rb +4 -4
- data/lib/mux_ruby/models/live_stream_embedded_subtitle_settings.rb +2 -2
- data/lib/mux_ruby/models/monitoring_breakdown_timeseries_datapoint.rb +236 -0
- data/lib/mux_ruby/models/monitoring_breakdown_timeseries_values.rb +229 -0
- data/lib/mux_ruby/models/track.rb +4 -4
- data/lib/mux_ruby/models/update_live_stream_request.rb +1 -1
- data/lib/mux_ruby/models/video_view.rb +162 -5
- data/lib/mux_ruby/version.rb +1 -1
- data/lib/mux_ruby.rb +5 -0
- data/spec/api/signing_keys_api_spec.rb +83 -0
- data/spec/models/asset_generated_subtitle_settings_spec.rb +50 -0
- data/spec/models/get_monitoring_breakdown_timeseries_response_spec.rb +46 -0
- data/spec/models/monitoring_breakdown_timeseries_datapoint_spec.rb +46 -0
- data/spec/models/monitoring_breakdown_timeseries_values_spec.rb +40 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.15.5/ffi_c.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.15.5/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.15.5/mkmf.log +15 -15
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.4/gem_make.out +14 -14
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.4/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/mkmf.log +4 -4
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/psych.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/mkmf.log +2 -2
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/stringio.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug/Makefile +6 -6
- data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +6 -6
- data/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/lib/ffi_c.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +6 -6
- data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/ext/psych/Makefile +6 -6
- data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/lib/psych.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/ext/stringio/Makefile +6 -6
- data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/lib/stringio.so +0 -0
- data/vendor/bundle/ruby/3.2.0/specifications/ast-2.4.2.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/byebug-11.1.3.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/coderay-1.1.3.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/diff-lcs-1.5.0.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/ethon-0.16.0.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/ffi-1.15.5.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/jaro_winkler-1.5.4.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/method_source-1.0.0.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/parallel-1.22.1.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/parser-3.1.2.0.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/pry-0.13.1.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/pry-byebug-3.9.0.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/psych-4.0.4.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/rainbow-3.1.1.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/rake-13.0.6.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/rspec-3.11.0.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/rspec-core-3.11.0.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/rspec-expectations-3.11.0.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/rspec-mocks-3.11.1.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/rspec-support-3.11.0.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/rubocop-0.66.0.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/ruby-progressbar-1.11.0.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/solid_assert-1.1.0.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/stringio-3.0.2.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/typhoeus-1.4.0.gemspec +2 -2
- data/vendor/bundle/ruby/3.2.0/specifications/unicode-display_width-1.5.0.gemspec +2 -2
- metadata +160 -140
@@ -0,0 +1,229 @@
|
|
1
|
+
=begin
|
2
|
+
#Mux API
|
3
|
+
|
4
|
+
#Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
Contact: devex@mux.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
require 'time'
|
15
|
+
|
16
|
+
module MuxRuby
|
17
|
+
class MonitoringBreakdownTimeseriesValues
|
18
|
+
attr_accessor :values
|
19
|
+
|
20
|
+
attr_accessor :date
|
21
|
+
|
22
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
23
|
+
def self.attribute_map
|
24
|
+
{
|
25
|
+
:'values' => :'values',
|
26
|
+
:'date' => :'date'
|
27
|
+
}
|
28
|
+
end
|
29
|
+
|
30
|
+
# Returns all the JSON keys this model knows about
|
31
|
+
def self.acceptable_attributes
|
32
|
+
attribute_map.values
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute type mapping.
|
36
|
+
def self.openapi_types
|
37
|
+
{
|
38
|
+
:'values' => :'Array<MonitoringBreakdownTimeseriesDatapoint>',
|
39
|
+
:'date' => :'String'
|
40
|
+
}
|
41
|
+
end
|
42
|
+
|
43
|
+
# List of attributes with nullable: true
|
44
|
+
def self.openapi_nullable
|
45
|
+
Set.new([
|
46
|
+
])
|
47
|
+
end
|
48
|
+
|
49
|
+
# Initializes the object
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
+
def initialize(attributes = {})
|
52
|
+
if (!attributes.is_a?(Hash))
|
53
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MuxRuby::MonitoringBreakdownTimeseriesValues` initialize method"
|
54
|
+
end
|
55
|
+
|
56
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
57
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
58
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
59
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MuxRuby::MonitoringBreakdownTimeseriesValues`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
60
|
+
end
|
61
|
+
h[k.to_sym] = v
|
62
|
+
}
|
63
|
+
|
64
|
+
if attributes.key?(:'values')
|
65
|
+
if (value = attributes[:'values']).is_a?(Array)
|
66
|
+
self.values = value
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
if attributes.key?(:'date')
|
71
|
+
self.date = attributes[:'date']
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
76
|
+
# @return Array for valid properties with the reasons
|
77
|
+
def list_invalid_properties
|
78
|
+
invalid_properties = Array.new
|
79
|
+
invalid_properties
|
80
|
+
end
|
81
|
+
|
82
|
+
# Check to see if the all the properties in the model are valid
|
83
|
+
# @return true if the model is valid
|
84
|
+
def valid?
|
85
|
+
true
|
86
|
+
end
|
87
|
+
|
88
|
+
# Checks equality by comparing each attribute.
|
89
|
+
# @param [Object] Object to be compared
|
90
|
+
def ==(o)
|
91
|
+
return true if self.equal?(o)
|
92
|
+
self.class == o.class &&
|
93
|
+
values == o.values &&
|
94
|
+
date == o.date
|
95
|
+
end
|
96
|
+
|
97
|
+
# @see the `==` method
|
98
|
+
# @param [Object] Object to be compared
|
99
|
+
def eql?(o)
|
100
|
+
self == o
|
101
|
+
end
|
102
|
+
|
103
|
+
# Calculates hash code according to all attributes.
|
104
|
+
# @return [Integer] Hash code
|
105
|
+
def hash
|
106
|
+
[values, date].hash
|
107
|
+
end
|
108
|
+
|
109
|
+
# Builds the object from hash
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
111
|
+
# @return [Object] Returns the model itself
|
112
|
+
def self.build_from_hash(attributes)
|
113
|
+
new.build_from_hash(attributes)
|
114
|
+
end
|
115
|
+
|
116
|
+
# Builds the object from hash
|
117
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
118
|
+
# @return [Object] Returns the model itself
|
119
|
+
def build_from_hash(attributes)
|
120
|
+
return nil unless attributes.is_a?(Hash)
|
121
|
+
self.class.openapi_types.each_pair do |key, type|
|
122
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
123
|
+
self.send("#{key}=", nil)
|
124
|
+
elsif type =~ /\AArray<(.*)>/i
|
125
|
+
# check to ensure the input is an array given that the attribute
|
126
|
+
# is documented as an array but the input is not
|
127
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
128
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
129
|
+
end
|
130
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
131
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
132
|
+
end
|
133
|
+
end
|
134
|
+
|
135
|
+
self
|
136
|
+
end
|
137
|
+
|
138
|
+
# Deserializes the data based on type
|
139
|
+
# @param string type Data type
|
140
|
+
# @param string value Value to be deserialized
|
141
|
+
# @return [Object] Deserialized data
|
142
|
+
def _deserialize(type, value)
|
143
|
+
case type.to_sym
|
144
|
+
when :Time
|
145
|
+
Time.parse(value)
|
146
|
+
when :Date
|
147
|
+
Date.parse(value)
|
148
|
+
when :String
|
149
|
+
value.to_s
|
150
|
+
when :Integer
|
151
|
+
value.to_i
|
152
|
+
when :Float
|
153
|
+
value.to_f
|
154
|
+
when :Boolean
|
155
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
156
|
+
true
|
157
|
+
else
|
158
|
+
false
|
159
|
+
end
|
160
|
+
when :Object
|
161
|
+
# generic object (usually a Hash), return directly
|
162
|
+
value
|
163
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
164
|
+
inner_type = Regexp.last_match[:inner_type]
|
165
|
+
value.map { |v| _deserialize(inner_type, v) }
|
166
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
167
|
+
k_type = Regexp.last_match[:k_type]
|
168
|
+
v_type = Regexp.last_match[:v_type]
|
169
|
+
{}.tap do |hash|
|
170
|
+
value.each do |k, v|
|
171
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
else # model
|
175
|
+
# models (e.g. Pet) or oneOf
|
176
|
+
klass = MuxRuby.const_get(type)
|
177
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
178
|
+
end
|
179
|
+
end
|
180
|
+
|
181
|
+
# Returns the string representation of the object
|
182
|
+
# @return [String] String presentation of the object
|
183
|
+
def to_s
|
184
|
+
to_hash.to_s
|
185
|
+
end
|
186
|
+
|
187
|
+
# to_body is an alias to to_hash (backward compatibility)
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_body
|
190
|
+
to_hash
|
191
|
+
end
|
192
|
+
|
193
|
+
# Returns the object in the form of hash
|
194
|
+
# @return [Hash] Returns the object in the form of hash
|
195
|
+
def to_hash
|
196
|
+
hash = {}
|
197
|
+
self.class.attribute_map.each_pair do |attr, param|
|
198
|
+
value = self.send(attr)
|
199
|
+
if value.nil?
|
200
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
201
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
202
|
+
end
|
203
|
+
|
204
|
+
hash[param] = _to_hash(value)
|
205
|
+
end
|
206
|
+
hash
|
207
|
+
end
|
208
|
+
|
209
|
+
# Outputs non-array value in the form of hash
|
210
|
+
# For object, use to_hash. Otherwise, just return the value
|
211
|
+
# @param [Object] value Any valid value
|
212
|
+
# @return [Hash] Returns the value in the form of hash
|
213
|
+
def _to_hash(value)
|
214
|
+
if value.is_a?(Array)
|
215
|
+
value.compact.map { |v| _to_hash(v) }
|
216
|
+
elsif value.is_a?(Hash)
|
217
|
+
{}.tap do |hash|
|
218
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
219
|
+
end
|
220
|
+
elsif value.respond_to? :to_hash
|
221
|
+
value.to_hash
|
222
|
+
else
|
223
|
+
value
|
224
|
+
end
|
225
|
+
end
|
226
|
+
|
227
|
+
end
|
228
|
+
|
229
|
+
end
|
@@ -42,16 +42,16 @@ module MuxRuby
|
|
42
42
|
# This parameter is only set for `text` type tracks.
|
43
43
|
attr_accessor :text_type
|
44
44
|
|
45
|
-
# The source of the text contained in a Track of type `text`. Valid `text_source` values are listed below. * `uploaded`: Tracks uploaded to Mux as caption or subtitle files using the Create Asset Track API. * `embedded`: Tracks extracted from an embedded stream of CEA-608 closed captions. * `generated_live`: Tracks generated by automatic speech recognition on a live stream configured with `generated_subtitles`. If an Asset has both `generated_live` and `generated_live_final` tracks that are `ready`, then only the `generated_live_final` track will be included during playback. * `generated_live_final`: Tracks generated by automatic speech recognition on a live stream using `generated_subtitles`. The accuracy, timing, and formatting of these subtitles is improved compared to the corresponding `generated_live` tracks. However, `generated_live_final` tracks will not be available in `ready` status until the live stream ends. If an Asset has both `generated_live` and `generated_live_final` tracks that are `ready`, then only the `generated_live_final` track will be included during playback.
|
45
|
+
# The source of the text contained in a Track of type `text`. Valid `text_source` values are listed below. * `uploaded`: Tracks uploaded to Mux as caption or subtitle files using the Create Asset Track API. * `embedded`: Tracks extracted from an embedded stream of CEA-608 closed captions. * `generated_vod`: Tracks generated by automatic speech recognition on an on-demand asset. * `generated_live`: Tracks generated by automatic speech recognition on a live stream configured with `generated_subtitles`. If an Asset has both `generated_live` and `generated_live_final` tracks that are `ready`, then only the `generated_live_final` track will be included during playback. * `generated_live_final`: Tracks generated by automatic speech recognition on a live stream using `generated_subtitles`. The accuracy, timing, and formatting of these subtitles is improved compared to the corresponding `generated_live` tracks. However, `generated_live_final` tracks will not be available in `ready` status until the live stream ends. If an Asset has both `generated_live` and `generated_live_final` tracks that are `ready`, then only the `generated_live_final` track will be included during playback.
|
46
46
|
attr_accessor :text_source
|
47
47
|
|
48
|
-
# The language code value represents [BCP 47](https://tools.ietf.org/html/bcp47) specification compliant value. For example, `en` for English or `en-US` for the US version of English. This parameter is only set for `text`
|
48
|
+
# The language code value represents [BCP 47](https://tools.ietf.org/html/bcp47) specification compliant value. For example, `en` for English or `en-US` for the US version of English. This parameter is only set for `text` and `audio` track types.
|
49
49
|
attr_accessor :language_code
|
50
50
|
|
51
|
-
# The name of the track containing a human-readable description. The
|
51
|
+
# The name of the track containing a human-readable description. The HLS manifest will associate a subtitle `text` or `audio` track with this value. For example, the value should be \"English\" for a subtitle text track for the `language_code` value of `en-US`. This parameter is only set for `text` and `audio` track types.
|
52
52
|
attr_accessor :name
|
53
53
|
|
54
|
-
# Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH). This parameter is only set
|
54
|
+
# Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH). This parameter is only set tracks where `type` is `text` and `text_type` is `subtitles`.
|
55
55
|
attr_accessor :closed_captions
|
56
56
|
|
57
57
|
# Arbitrary user-supplied metadata set for the track either when creating the asset or track. This parameter is only set for `text` type tracks. Max 255 characters.
|
@@ -21,7 +21,7 @@ module MuxRuby
|
|
21
21
|
# Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/
|
22
22
|
attr_accessor :latency_mode
|
23
23
|
|
24
|
-
# When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. Reduced and Low Latency streams with a Reconnect Window greater than zero will insert slate media into the recorded asset while waiting for the streaming software to reconnect or when there are brief interruptions in the live stream media. When using a Reconnect Window setting higher than 60 seconds with a Standard Latency stream, we highly recommend enabling slate with the `use_slate_for_standard_latency` option.
|
24
|
+
# When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. If not specified directly, Standard Latency streams have a Reconnect Window of 60 seconds; Reduced and Low Latency streams have a default of 0 seconds, or no Reconnect Window. For that reason, we suggest specifying a value other than zero for Reduced and Low Latency streams. Reduced and Low Latency streams with a Reconnect Window greater than zero will insert slate media into the recorded asset while waiting for the streaming software to reconnect or when there are brief interruptions in the live stream media. When using a Reconnect Window setting higher than 60 seconds with a Standard Latency stream, we highly recommend enabling slate with the `use_slate_for_standard_latency` option.
|
25
25
|
attr_accessor :reconnect_window
|
26
26
|
|
27
27
|
# By default, Standard Latency live streams do not have slate media inserted while waiting for live streaming software to reconnect to Mux. Setting this to true enables slate insertion on a Standard Latency stream.
|
@@ -265,6 +265,38 @@ module MuxRuby
|
|
265
265
|
|
266
266
|
attr_accessor :custom_5
|
267
267
|
|
268
|
+
attr_accessor :custom_6
|
269
|
+
|
270
|
+
attr_accessor :custom_7
|
271
|
+
|
272
|
+
attr_accessor :custom_8
|
273
|
+
|
274
|
+
attr_accessor :custom_9
|
275
|
+
|
276
|
+
attr_accessor :custom_10
|
277
|
+
|
278
|
+
attr_accessor :live_stream_latency
|
279
|
+
|
280
|
+
attr_accessor :asset_id
|
281
|
+
|
282
|
+
attr_accessor :environment_id
|
283
|
+
|
284
|
+
attr_accessor :live_stream_id
|
285
|
+
|
286
|
+
attr_accessor :mux_embed
|
287
|
+
|
288
|
+
attr_accessor :playback_id
|
289
|
+
|
290
|
+
attr_accessor :player_error_context
|
291
|
+
|
292
|
+
attr_accessor :view_drm_type
|
293
|
+
|
294
|
+
attr_accessor :view_dropped_frame_count
|
295
|
+
|
296
|
+
attr_accessor :view_has_ad
|
297
|
+
|
298
|
+
attr_accessor :video_startup_failure
|
299
|
+
|
268
300
|
# Attribute mapping from ruby-style variable name to JSON key.
|
269
301
|
def self.attribute_map
|
270
302
|
{
|
@@ -392,7 +424,23 @@ module MuxRuby
|
|
392
424
|
:'custom_2' => :'custom_2',
|
393
425
|
:'custom_3' => :'custom_3',
|
394
426
|
:'custom_4' => :'custom_4',
|
395
|
-
:'custom_5' => :'custom_5'
|
427
|
+
:'custom_5' => :'custom_5',
|
428
|
+
:'custom_6' => :'custom_6',
|
429
|
+
:'custom_7' => :'custom_7',
|
430
|
+
:'custom_8' => :'custom_8',
|
431
|
+
:'custom_9' => :'custom_9',
|
432
|
+
:'custom_10' => :'custom_10',
|
433
|
+
:'live_stream_latency' => :'live_stream_latency',
|
434
|
+
:'asset_id' => :'asset_id',
|
435
|
+
:'environment_id' => :'environment_id',
|
436
|
+
:'live_stream_id' => :'live_stream_id',
|
437
|
+
:'mux_embed' => :'mux_embed',
|
438
|
+
:'playback_id' => :'playback_id',
|
439
|
+
:'player_error_context' => :'player_error_context',
|
440
|
+
:'view_drm_type' => :'view_drm_type',
|
441
|
+
:'view_dropped_frame_count' => :'view_dropped_frame_count',
|
442
|
+
:'view_has_ad' => :'view_has_ad',
|
443
|
+
:'video_startup_failure' => :'video_startup_failure'
|
396
444
|
}
|
397
445
|
end
|
398
446
|
|
@@ -528,7 +576,23 @@ module MuxRuby
|
|
528
576
|
:'custom_2' => :'String',
|
529
577
|
:'custom_3' => :'String',
|
530
578
|
:'custom_4' => :'String',
|
531
|
-
:'custom_5' => :'String'
|
579
|
+
:'custom_5' => :'String',
|
580
|
+
:'custom_6' => :'String',
|
581
|
+
:'custom_7' => :'String',
|
582
|
+
:'custom_8' => :'String',
|
583
|
+
:'custom_9' => :'String',
|
584
|
+
:'custom_10' => :'String',
|
585
|
+
:'live_stream_latency' => :'Integer',
|
586
|
+
:'asset_id' => :'String',
|
587
|
+
:'environment_id' => :'String',
|
588
|
+
:'live_stream_id' => :'String',
|
589
|
+
:'mux_embed' => :'String',
|
590
|
+
:'playback_id' => :'String',
|
591
|
+
:'player_error_context' => :'String',
|
592
|
+
:'view_drm_type' => :'String',
|
593
|
+
:'view_dropped_frame_count' => :'Integer',
|
594
|
+
:'view_has_ad' => :'Boolean',
|
595
|
+
:'video_startup_failure' => :'Boolean'
|
532
596
|
}
|
533
597
|
end
|
534
598
|
|
@@ -642,7 +706,20 @@ module MuxRuby
|
|
642
706
|
:'custom_2',
|
643
707
|
:'custom_3',
|
644
708
|
:'custom_4',
|
645
|
-
:'custom_5'
|
709
|
+
:'custom_5',
|
710
|
+
:'custom_6',
|
711
|
+
:'custom_7',
|
712
|
+
:'custom_8',
|
713
|
+
:'custom_9',
|
714
|
+
:'custom_10',
|
715
|
+
:'live_stream_latency',
|
716
|
+
:'asset_id',
|
717
|
+
:'live_stream_id',
|
718
|
+
:'mux_embed',
|
719
|
+
:'playback_id',
|
720
|
+
:'player_error_context',
|
721
|
+
:'view_drm_type',
|
722
|
+
:'view_dropped_frame_count',
|
646
723
|
])
|
647
724
|
end
|
648
725
|
|
@@ -1162,6 +1239,70 @@ module MuxRuby
|
|
1162
1239
|
if attributes.key?(:'custom_5')
|
1163
1240
|
self.custom_5 = attributes[:'custom_5']
|
1164
1241
|
end
|
1242
|
+
|
1243
|
+
if attributes.key?(:'custom_6')
|
1244
|
+
self.custom_6 = attributes[:'custom_6']
|
1245
|
+
end
|
1246
|
+
|
1247
|
+
if attributes.key?(:'custom_7')
|
1248
|
+
self.custom_7 = attributes[:'custom_7']
|
1249
|
+
end
|
1250
|
+
|
1251
|
+
if attributes.key?(:'custom_8')
|
1252
|
+
self.custom_8 = attributes[:'custom_8']
|
1253
|
+
end
|
1254
|
+
|
1255
|
+
if attributes.key?(:'custom_9')
|
1256
|
+
self.custom_9 = attributes[:'custom_9']
|
1257
|
+
end
|
1258
|
+
|
1259
|
+
if attributes.key?(:'custom_10')
|
1260
|
+
self.custom_10 = attributes[:'custom_10']
|
1261
|
+
end
|
1262
|
+
|
1263
|
+
if attributes.key?(:'live_stream_latency')
|
1264
|
+
self.live_stream_latency = attributes[:'live_stream_latency']
|
1265
|
+
end
|
1266
|
+
|
1267
|
+
if attributes.key?(:'asset_id')
|
1268
|
+
self.asset_id = attributes[:'asset_id']
|
1269
|
+
end
|
1270
|
+
|
1271
|
+
if attributes.key?(:'environment_id')
|
1272
|
+
self.environment_id = attributes[:'environment_id']
|
1273
|
+
end
|
1274
|
+
|
1275
|
+
if attributes.key?(:'live_stream_id')
|
1276
|
+
self.live_stream_id = attributes[:'live_stream_id']
|
1277
|
+
end
|
1278
|
+
|
1279
|
+
if attributes.key?(:'mux_embed')
|
1280
|
+
self.mux_embed = attributes[:'mux_embed']
|
1281
|
+
end
|
1282
|
+
|
1283
|
+
if attributes.key?(:'playback_id')
|
1284
|
+
self.playback_id = attributes[:'playback_id']
|
1285
|
+
end
|
1286
|
+
|
1287
|
+
if attributes.key?(:'player_error_context')
|
1288
|
+
self.player_error_context = attributes[:'player_error_context']
|
1289
|
+
end
|
1290
|
+
|
1291
|
+
if attributes.key?(:'view_drm_type')
|
1292
|
+
self.view_drm_type = attributes[:'view_drm_type']
|
1293
|
+
end
|
1294
|
+
|
1295
|
+
if attributes.key?(:'view_dropped_frame_count')
|
1296
|
+
self.view_dropped_frame_count = attributes[:'view_dropped_frame_count']
|
1297
|
+
end
|
1298
|
+
|
1299
|
+
if attributes.key?(:'view_has_ad')
|
1300
|
+
self.view_has_ad = attributes[:'view_has_ad']
|
1301
|
+
end
|
1302
|
+
|
1303
|
+
if attributes.key?(:'video_startup_failure')
|
1304
|
+
self.video_startup_failure = attributes[:'video_startup_failure']
|
1305
|
+
end
|
1165
1306
|
end
|
1166
1307
|
|
1167
1308
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -1306,7 +1447,23 @@ module MuxRuby
|
|
1306
1447
|
custom_2 == o.custom_2 &&
|
1307
1448
|
custom_3 == o.custom_3 &&
|
1308
1449
|
custom_4 == o.custom_4 &&
|
1309
|
-
custom_5 == o.custom_5
|
1450
|
+
custom_5 == o.custom_5 &&
|
1451
|
+
custom_6 == o.custom_6 &&
|
1452
|
+
custom_7 == o.custom_7 &&
|
1453
|
+
custom_8 == o.custom_8 &&
|
1454
|
+
custom_9 == o.custom_9 &&
|
1455
|
+
custom_10 == o.custom_10 &&
|
1456
|
+
live_stream_latency == o.live_stream_latency &&
|
1457
|
+
asset_id == o.asset_id &&
|
1458
|
+
environment_id == o.environment_id &&
|
1459
|
+
live_stream_id == o.live_stream_id &&
|
1460
|
+
mux_embed == o.mux_embed &&
|
1461
|
+
playback_id == o.playback_id &&
|
1462
|
+
player_error_context == o.player_error_context &&
|
1463
|
+
view_drm_type == o.view_drm_type &&
|
1464
|
+
view_dropped_frame_count == o.view_dropped_frame_count &&
|
1465
|
+
view_has_ad == o.view_has_ad &&
|
1466
|
+
video_startup_failure == o.video_startup_failure
|
1310
1467
|
end
|
1311
1468
|
|
1312
1469
|
# @see the `==` method
|
@@ -1318,7 +1475,7 @@ module MuxRuby
|
|
1318
1475
|
# Calculates hash code according to all attributes.
|
1319
1476
|
# @return [Integer] Hash code
|
1320
1477
|
def hash
|
1321
|
-
[view_total_upscaling, preroll_ad_asset_hostname, player_source_domain, region, viewer_user_agent, preroll_requested, page_type, startup_score, view_seek_duration, country_name, player_source_height, longitude, buffering_count, video_duration, player_source_type, city, view_id, platform_description, video_startup_preroll_request_time, viewer_device_name, video_series, viewer_application_name, updated_at, view_total_content_playback_time, cdn, player_instance_id, video_language, player_source_width, player_error_message, player_mux_plugin_version, watched, playback_score, page_url, metro, view_max_request_latency, requests_for_first_preroll, view_total_downscaling, latitude, player_source_host_name, inserted_at, view_end, mux_embed_version, player_language, page_load_time, viewer_device_category, video_startup_preroll_load_time, player_version, watch_time, player_source_stream_type, preroll_ad_tag_hostname, viewer_device_manufacturer, rebuffering_score, experiment_name, viewer_os_version, player_preload, buffering_duration, player_view_count, player_software, player_load_time, platform_summary, video_encoding_variant, player_width, view_seek_count, viewer_experience_score, view_error_id, video_variant_name, preroll_played, viewer_application_engine, viewer_os_architecture, player_error_code, buffering_rate, events, player_name, view_start, view_average_request_throughput, video_producer, error_type_id, mux_viewer_id, video_id, continent_code, session_id, exit_before_video_start, video_content_type, viewer_os_family, player_poster, view_average_request_latency, video_variant_id, player_source_duration, player_source_url, mux_api_version, video_title, id, short_time, rebuffer_percentage, time_to_first_frame, viewer_user_id, video_stream_type, player_startup_time, viewer_application_version, view_max_downscale_percentage, view_max_upscale_percentage, country_code, used_fullscreen, isp, property_id, player_autoplay, player_height, asn, asn_name, quality_score, player_software_version, player_mux_plugin_name, sub_property_id, player_remote_played, view_max_playhead_position, view_playing_time, view_session_id, viewer_connection_type, viewer_device_model, weighted_average_bitrate, custom_1, custom_2, custom_3, custom_4, custom_5].hash
|
1478
|
+
[view_total_upscaling, preroll_ad_asset_hostname, player_source_domain, region, viewer_user_agent, preroll_requested, page_type, startup_score, view_seek_duration, country_name, player_source_height, longitude, buffering_count, video_duration, player_source_type, city, view_id, platform_description, video_startup_preroll_request_time, viewer_device_name, video_series, viewer_application_name, updated_at, view_total_content_playback_time, cdn, player_instance_id, video_language, player_source_width, player_error_message, player_mux_plugin_version, watched, playback_score, page_url, metro, view_max_request_latency, requests_for_first_preroll, view_total_downscaling, latitude, player_source_host_name, inserted_at, view_end, mux_embed_version, player_language, page_load_time, viewer_device_category, video_startup_preroll_load_time, player_version, watch_time, player_source_stream_type, preroll_ad_tag_hostname, viewer_device_manufacturer, rebuffering_score, experiment_name, viewer_os_version, player_preload, buffering_duration, player_view_count, player_software, player_load_time, platform_summary, video_encoding_variant, player_width, view_seek_count, viewer_experience_score, view_error_id, video_variant_name, preroll_played, viewer_application_engine, viewer_os_architecture, player_error_code, buffering_rate, events, player_name, view_start, view_average_request_throughput, video_producer, error_type_id, mux_viewer_id, video_id, continent_code, session_id, exit_before_video_start, video_content_type, viewer_os_family, player_poster, view_average_request_latency, video_variant_id, player_source_duration, player_source_url, mux_api_version, video_title, id, short_time, rebuffer_percentage, time_to_first_frame, viewer_user_id, video_stream_type, player_startup_time, viewer_application_version, view_max_downscale_percentage, view_max_upscale_percentage, country_code, used_fullscreen, isp, property_id, player_autoplay, player_height, asn, asn_name, quality_score, player_software_version, player_mux_plugin_name, sub_property_id, player_remote_played, view_max_playhead_position, view_playing_time, view_session_id, viewer_connection_type, viewer_device_model, weighted_average_bitrate, custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10, live_stream_latency, asset_id, environment_id, live_stream_id, mux_embed, playback_id, player_error_context, view_drm_type, view_dropped_frame_count, view_has_ad, video_startup_failure].hash
|
1322
1479
|
end
|
1323
1480
|
|
1324
1481
|
# Builds the object from hash
|
data/lib/mux_ruby/version.rb
CHANGED
data/lib/mux_ruby.rb
CHANGED
@@ -20,6 +20,7 @@ require 'mux_ruby/configuration'
|
|
20
20
|
require 'mux_ruby/models/abridged_video_view'
|
21
21
|
require 'mux_ruby/models/asset'
|
22
22
|
require 'mux_ruby/models/asset_errors'
|
23
|
+
require 'mux_ruby/models/asset_generated_subtitle_settings'
|
23
24
|
require 'mux_ruby/models/asset_master'
|
24
25
|
require 'mux_ruby/models/asset_non_standard_input_reasons'
|
25
26
|
require 'mux_ruby/models/asset_recording_times'
|
@@ -61,6 +62,7 @@ require 'mux_ruby/models/get_asset_playback_id_response'
|
|
61
62
|
require 'mux_ruby/models/get_live_stream_playback_id_response'
|
62
63
|
require 'mux_ruby/models/get_metric_timeseries_data_response'
|
63
64
|
require 'mux_ruby/models/get_monitoring_breakdown_response'
|
65
|
+
require 'mux_ruby/models/get_monitoring_breakdown_timeseries_response'
|
64
66
|
require 'mux_ruby/models/get_monitoring_histogram_timeseries_response'
|
65
67
|
require 'mux_ruby/models/get_monitoring_histogram_timeseries_response_meta'
|
66
68
|
require 'mux_ruby/models/get_monitoring_timeseries_response'
|
@@ -113,6 +115,8 @@ require 'mux_ruby/models/live_stream_generated_subtitle_settings'
|
|
113
115
|
require 'mux_ruby/models/live_stream_response'
|
114
116
|
require 'mux_ruby/models/live_stream_status'
|
115
117
|
require 'mux_ruby/models/metric'
|
118
|
+
require 'mux_ruby/models/monitoring_breakdown_timeseries_datapoint'
|
119
|
+
require 'mux_ruby/models/monitoring_breakdown_timeseries_values'
|
116
120
|
require 'mux_ruby/models/monitoring_breakdown_value'
|
117
121
|
require 'mux_ruby/models/monitoring_histogram_timeseries_bucket'
|
118
122
|
require 'mux_ruby/models/monitoring_histogram_timeseries_bucket_values'
|
@@ -175,6 +179,7 @@ require 'mux_ruby/api/monitoring_api'
|
|
175
179
|
require 'mux_ruby/api/playback_id_api'
|
176
180
|
require 'mux_ruby/api/playback_restrictions_api'
|
177
181
|
require 'mux_ruby/api/real_time_api'
|
182
|
+
require 'mux_ruby/api/signing_keys_api'
|
178
183
|
require 'mux_ruby/api/spaces_api'
|
179
184
|
require 'mux_ruby/api/transcription_vocabularies_api'
|
180
185
|
require 'mux_ruby/api/url_signing_keys_api'
|
@@ -0,0 +1,83 @@
|
|
1
|
+
=begin
|
2
|
+
#Mux API
|
3
|
+
|
4
|
+
#Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
Contact: devex@mux.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
|
16
|
+
# Unit tests for MuxRuby::SigningKeysApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'SigningKeysApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = MuxRuby::SigningKeysApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of SigningKeysApi' do
|
30
|
+
it 'should create an instance of SigningKeysApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(MuxRuby::SigningKeysApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create_signing_key
|
36
|
+
# Create a signing key
|
37
|
+
# Creates a new signing key pair. When creating a new signing key, the API will generate a 2048-bit RSA key-pair and return the private key and a generated key-id; the public key will be stored at Mux to validate signed tokens.
|
38
|
+
# @param [Hash] opts the optional parameters
|
39
|
+
# @return [SigningKeyResponse]
|
40
|
+
describe 'create_signing_key test' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# unit tests for delete_signing_key
|
47
|
+
# Delete a signing key
|
48
|
+
# Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no JWTs can be signed using the key again.
|
49
|
+
# @param signing_key_id The ID of the signing key.
|
50
|
+
# @param [Hash] opts the optional parameters
|
51
|
+
# @return [nil]
|
52
|
+
describe 'delete_signing_key test' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for get_signing_key
|
59
|
+
# Retrieve a signing key
|
60
|
+
# Retrieves the details of a signing key that has previously been created. Supply the unique signing key ID that was returned from your previous request, and Mux will return the corresponding signing key information. **The private key is not returned in this response.**
|
61
|
+
# @param signing_key_id The ID of the signing key.
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @return [SigningKeyResponse]
|
64
|
+
describe 'get_signing_key test' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
# unit tests for list_signing_keys
|
71
|
+
# List signing keys
|
72
|
+
# Returns a list of signing keys.
|
73
|
+
# @param [Hash] opts the optional parameters
|
74
|
+
# @option opts [Integer] :limit Number of items to include in the response
|
75
|
+
# @option opts [Integer] :page Offset by this many pages, of the size of `limit`
|
76
|
+
# @return [ListSigningKeysResponse]
|
77
|
+
describe 'list_signing_keys test' do
|
78
|
+
it 'should work' do
|
79
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
end
|
@@ -0,0 +1,50 @@
|
|
1
|
+
=begin
|
2
|
+
#Mux API
|
3
|
+
|
4
|
+
#Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
Contact: devex@mux.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MuxRuby::AssetGeneratedSubtitleSettings
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MuxRuby::AssetGeneratedSubtitleSettings do
|
21
|
+
let(:instance) { MuxRuby::AssetGeneratedSubtitleSettings.new }
|
22
|
+
|
23
|
+
describe 'test an instance of AssetGeneratedSubtitleSettings' do
|
24
|
+
it 'should create an instance of AssetGeneratedSubtitleSettings' do
|
25
|
+
expect(instance).to be_instance_of(MuxRuby::AssetGeneratedSubtitleSettings)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "name"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "passthrough"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "language_code"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["en", "en-US"])
|
44
|
+
# validator.allowable_values.each do |value|
|
45
|
+
# expect { instance.language_code = value }.not_to raise_error
|
46
|
+
# end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
end
|