mux_ruby 3.5.0 → 3.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +4 -4
- data/docs/CreateLiveStreamRequest.md +2 -0
- data/docs/CreateTranscriptionVocabularyRequest.md +22 -0
- data/docs/ListTranscriptionVocabulariesResponse.md +18 -0
- data/docs/LiveStream.md +3 -1
- data/docs/LiveStreamGeneratedSubtitleSettings.md +24 -0
- data/docs/LiveStreamsApi.md +73 -0
- data/docs/MetricsApi.md +1 -1
- data/docs/RealTimeApi.md +2 -2
- data/docs/SpacesApi.md +9 -9
- data/docs/Track.md +2 -0
- data/docs/TranscriptionVocabulariesApi.md +367 -0
- data/docs/TranscriptionVocabulary.md +28 -0
- data/docs/TranscriptionVocabularyResponse.md +18 -0
- data/docs/UpdateLiveStreamGeneratedSubtitlesRequest.md +18 -0
- data/docs/UpdateTranscriptionVocabularyRequest.md +22 -0
- data/docs/VideoView.md +11 -1
- data/gen/generator-config.json +1 -1
- data/gen/templates/partial_model_generic.mustache +2 -2
- data/lib/mux_ruby/api/live_streams_api.rb +71 -0
- data/lib/mux_ruby/api/metrics_api.rb +2 -2
- data/lib/mux_ruby/api/real_time_api.rb +2 -2
- data/lib/mux_ruby/api/spaces_api.rb +11 -11
- data/lib/mux_ruby/api/transcription_vocabularies_api.rb +349 -0
- data/lib/mux_ruby/models/create_live_stream_request.rb +18 -6
- data/lib/mux_ruby/models/create_transcription_vocabulary_request.rb +265 -0
- data/lib/mux_ruby/models/list_transcription_vocabularies_response.rb +220 -0
- data/lib/mux_ruby/models/live_stream.rb +14 -2
- data/lib/mux_ruby/models/live_stream_generated_subtitle_settings.rb +287 -0
- data/lib/mux_ruby/models/track.rb +23 -1
- data/lib/mux_ruby/models/transcription_vocabulary.rb +286 -0
- data/lib/mux_ruby/models/transcription_vocabulary_response.rb +218 -0
- data/lib/mux_ruby/models/update_live_stream_generated_subtitles_request.rb +221 -0
- data/lib/mux_ruby/models/update_live_stream_request.rb +5 -5
- data/lib/mux_ruby/models/update_transcription_vocabulary_request.rb +265 -0
- data/lib/mux_ruby/models/video_view.rb +55 -5
- data/lib/mux_ruby/version.rb +1 -1
- data/lib/mux_ruby.rb +8 -0
- data/spec/api/transcription_vocabularies_api_spec.rb +97 -0
- data/spec/models/create_transcription_vocabulary_request_spec.rb +46 -0
- data/spec/models/list_transcription_vocabularies_response_spec.rb +34 -0
- data/spec/models/live_stream_generated_subtitle_settings_spec.rb +56 -0
- data/spec/models/transcription_vocabulary_response_spec.rb +34 -0
- data/spec/models/transcription_vocabulary_spec.rb +64 -0
- data/spec/models/update_live_stream_generated_subtitles_request_spec.rb +34 -0
- data/spec/models/update_transcription_vocabulary_request_spec.rb +46 -0
- metadata +147 -115
@@ -0,0 +1,265 @@
|
|
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 UpdateTranscriptionVocabularyRequest
|
18
|
+
# The user-supplied name of the Transcription Vocabulary.
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# Phrases, individual words, or proper names to include in the Transcription Vocabulary. When the Transcription Vocabulary is attached to a live stream's `generated_subtitles`, the probability of successful speech recognition for these words or phrases is boosted.
|
22
|
+
attr_accessor :phrases
|
23
|
+
|
24
|
+
# Arbitrary user-supplied metadata set for the Transcription Vocabulary. Max 255 characters.
|
25
|
+
attr_accessor :passthrough
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'name' => :'name',
|
31
|
+
:'phrases' => :'phrases',
|
32
|
+
:'passthrough' => :'passthrough'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Returns all the JSON keys this model knows about
|
37
|
+
def self.acceptable_attributes
|
38
|
+
attribute_map.values
|
39
|
+
end
|
40
|
+
|
41
|
+
# Attribute type mapping.
|
42
|
+
def self.openapi_types
|
43
|
+
{
|
44
|
+
:'name' => :'String',
|
45
|
+
:'phrases' => :'Array<String>',
|
46
|
+
:'passthrough' => :'String'
|
47
|
+
}
|
48
|
+
end
|
49
|
+
|
50
|
+
# List of attributes with nullable: true
|
51
|
+
def self.openapi_nullable
|
52
|
+
Set.new([
|
53
|
+
])
|
54
|
+
end
|
55
|
+
|
56
|
+
# Initializes the object
|
57
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
58
|
+
def initialize(attributes = {})
|
59
|
+
if (!attributes.is_a?(Hash))
|
60
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MuxRuby::UpdateTranscriptionVocabularyRequest` initialize method"
|
61
|
+
end
|
62
|
+
|
63
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
64
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
65
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
66
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MuxRuby::UpdateTranscriptionVocabularyRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
67
|
+
end
|
68
|
+
h[k.to_sym] = v
|
69
|
+
}
|
70
|
+
|
71
|
+
if attributes.key?(:'name')
|
72
|
+
self.name = attributes[:'name']
|
73
|
+
end
|
74
|
+
|
75
|
+
if attributes.key?(:'phrases')
|
76
|
+
if (value = attributes[:'phrases']).is_a?(Array)
|
77
|
+
self.phrases = value
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
if attributes.key?(:'passthrough')
|
82
|
+
self.passthrough = attributes[:'passthrough']
|
83
|
+
end
|
84
|
+
end
|
85
|
+
|
86
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
87
|
+
# @return Array for valid properties with the reasons
|
88
|
+
def list_invalid_properties
|
89
|
+
invalid_properties = Array.new
|
90
|
+
if @phrases.nil?
|
91
|
+
invalid_properties.push('invalid value for "phrases", phrases cannot be nil.')
|
92
|
+
end
|
93
|
+
|
94
|
+
if @phrases.length > 1000
|
95
|
+
invalid_properties.push('invalid value for "phrases", number of items must be less than or equal to 1000.')
|
96
|
+
end
|
97
|
+
|
98
|
+
invalid_properties
|
99
|
+
end
|
100
|
+
|
101
|
+
# Check to see if the all the properties in the model are valid
|
102
|
+
# @return true if the model is valid
|
103
|
+
def valid?
|
104
|
+
return false if @phrases.nil?
|
105
|
+
return false if @phrases.length > 1000
|
106
|
+
true
|
107
|
+
end
|
108
|
+
|
109
|
+
# Custom attribute writer method with validation
|
110
|
+
# @param [Object] phrases Value to be assigned
|
111
|
+
def phrases=(phrases)
|
112
|
+
if phrases.nil?
|
113
|
+
fail ArgumentError, 'phrases cannot be nil'
|
114
|
+
end
|
115
|
+
|
116
|
+
if phrases.length > 1000
|
117
|
+
fail ArgumentError, 'invalid value for "phrases", number of items must be less than or equal to 1000.'
|
118
|
+
end
|
119
|
+
|
120
|
+
@phrases = phrases
|
121
|
+
end
|
122
|
+
|
123
|
+
# Checks equality by comparing each attribute.
|
124
|
+
# @param [Object] Object to be compared
|
125
|
+
def ==(o)
|
126
|
+
return true if self.equal?(o)
|
127
|
+
self.class == o.class &&
|
128
|
+
name == o.name &&
|
129
|
+
phrases == o.phrases &&
|
130
|
+
passthrough == o.passthrough
|
131
|
+
end
|
132
|
+
|
133
|
+
# @see the `==` method
|
134
|
+
# @param [Object] Object to be compared
|
135
|
+
def eql?(o)
|
136
|
+
self == o
|
137
|
+
end
|
138
|
+
|
139
|
+
# Calculates hash code according to all attributes.
|
140
|
+
# @return [Integer] Hash code
|
141
|
+
def hash
|
142
|
+
[name, phrases, passthrough].hash
|
143
|
+
end
|
144
|
+
|
145
|
+
# Builds the object from hash
|
146
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
147
|
+
# @return [Object] Returns the model itself
|
148
|
+
def self.build_from_hash(attributes)
|
149
|
+
new.build_from_hash(attributes)
|
150
|
+
end
|
151
|
+
|
152
|
+
# Builds the object from hash
|
153
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
154
|
+
# @return [Object] Returns the model itself
|
155
|
+
def build_from_hash(attributes)
|
156
|
+
return nil unless attributes.is_a?(Hash)
|
157
|
+
self.class.openapi_types.each_pair do |key, type|
|
158
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
159
|
+
self.send("#{key}=", nil)
|
160
|
+
elsif type =~ /\AArray<(.*)>/i
|
161
|
+
# check to ensure the input is an array given that the attribute
|
162
|
+
# is documented as an array but the input is not
|
163
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
164
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
165
|
+
end
|
166
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
167
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
self
|
172
|
+
end
|
173
|
+
|
174
|
+
# Deserializes the data based on type
|
175
|
+
# @param string type Data type
|
176
|
+
# @param string value Value to be deserialized
|
177
|
+
# @return [Object] Deserialized data
|
178
|
+
def _deserialize(type, value)
|
179
|
+
case type.to_sym
|
180
|
+
when :Time
|
181
|
+
Time.parse(value)
|
182
|
+
when :Date
|
183
|
+
Date.parse(value)
|
184
|
+
when :String
|
185
|
+
value.to_s
|
186
|
+
when :Integer
|
187
|
+
value.to_i
|
188
|
+
when :Float
|
189
|
+
value.to_f
|
190
|
+
when :Boolean
|
191
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
192
|
+
true
|
193
|
+
else
|
194
|
+
false
|
195
|
+
end
|
196
|
+
when :Object
|
197
|
+
# generic object (usually a Hash), return directly
|
198
|
+
value
|
199
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
200
|
+
inner_type = Regexp.last_match[:inner_type]
|
201
|
+
value.map { |v| _deserialize(inner_type, v) }
|
202
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
203
|
+
k_type = Regexp.last_match[:k_type]
|
204
|
+
v_type = Regexp.last_match[:v_type]
|
205
|
+
{}.tap do |hash|
|
206
|
+
value.each do |k, v|
|
207
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
208
|
+
end
|
209
|
+
end
|
210
|
+
else # model
|
211
|
+
# models (e.g. Pet) or oneOf
|
212
|
+
klass = MuxRuby.const_get(type)
|
213
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
# Returns the string representation of the object
|
218
|
+
# @return [String] String presentation of the object
|
219
|
+
def to_s
|
220
|
+
to_hash.to_s
|
221
|
+
end
|
222
|
+
|
223
|
+
# to_body is an alias to to_hash (backward compatibility)
|
224
|
+
# @return [Hash] Returns the object in the form of hash
|
225
|
+
def to_body
|
226
|
+
to_hash
|
227
|
+
end
|
228
|
+
|
229
|
+
# Returns the object in the form of hash
|
230
|
+
# @return [Hash] Returns the object in the form of hash
|
231
|
+
def to_hash
|
232
|
+
hash = {}
|
233
|
+
self.class.attribute_map.each_pair do |attr, param|
|
234
|
+
value = self.send(attr)
|
235
|
+
if value.nil?
|
236
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
237
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
238
|
+
end
|
239
|
+
|
240
|
+
hash[param] = _to_hash(value)
|
241
|
+
end
|
242
|
+
hash
|
243
|
+
end
|
244
|
+
|
245
|
+
# Outputs non-array value in the form of hash
|
246
|
+
# For object, use to_hash. Otherwise, just return the value
|
247
|
+
# @param [Object] value Any valid value
|
248
|
+
# @return [Hash] Returns the value in the form of hash
|
249
|
+
def _to_hash(value)
|
250
|
+
if value.is_a?(Array)
|
251
|
+
value.compact.map { |v| _to_hash(v) }
|
252
|
+
elsif value.is_a?(Hash)
|
253
|
+
{}.tap do |hash|
|
254
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
255
|
+
end
|
256
|
+
elsif value.respond_to? :to_hash
|
257
|
+
value.to_hash
|
258
|
+
else
|
259
|
+
value
|
260
|
+
end
|
261
|
+
end
|
262
|
+
|
263
|
+
end
|
264
|
+
|
265
|
+
end
|
@@ -255,6 +255,16 @@ module MuxRuby
|
|
255
255
|
|
256
256
|
attr_accessor :weighted_average_bitrate
|
257
257
|
|
258
|
+
attr_accessor :custom_1
|
259
|
+
|
260
|
+
attr_accessor :custom_2
|
261
|
+
|
262
|
+
attr_accessor :custom_3
|
263
|
+
|
264
|
+
attr_accessor :custom_4
|
265
|
+
|
266
|
+
attr_accessor :custom_5
|
267
|
+
|
258
268
|
# Attribute mapping from ruby-style variable name to JSON key.
|
259
269
|
def self.attribute_map
|
260
270
|
{
|
@@ -377,7 +387,12 @@ module MuxRuby
|
|
377
387
|
:'view_session_id' => :'view_session_id',
|
378
388
|
:'viewer_connection_type' => :'viewer_connection_type',
|
379
389
|
:'viewer_device_model' => :'viewer_device_model',
|
380
|
-
:'weighted_average_bitrate' => :'weighted_average_bitrate'
|
390
|
+
:'weighted_average_bitrate' => :'weighted_average_bitrate',
|
391
|
+
:'custom_1' => :'custom_1',
|
392
|
+
:'custom_2' => :'custom_2',
|
393
|
+
:'custom_3' => :'custom_3',
|
394
|
+
:'custom_4' => :'custom_4',
|
395
|
+
:'custom_5' => :'custom_5'
|
381
396
|
}
|
382
397
|
end
|
383
398
|
|
@@ -508,7 +523,12 @@ module MuxRuby
|
|
508
523
|
:'view_session_id' => :'String',
|
509
524
|
:'viewer_connection_type' => :'String',
|
510
525
|
:'viewer_device_model' => :'String',
|
511
|
-
:'weighted_average_bitrate' => :'Integer'
|
526
|
+
:'weighted_average_bitrate' => :'Integer',
|
527
|
+
:'custom_1' => :'String',
|
528
|
+
:'custom_2' => :'String',
|
529
|
+
:'custom_3' => :'String',
|
530
|
+
:'custom_4' => :'String',
|
531
|
+
:'custom_5' => :'String'
|
512
532
|
}
|
513
533
|
end
|
514
534
|
|
@@ -617,7 +637,12 @@ module MuxRuby
|
|
617
637
|
:'view_session_id',
|
618
638
|
:'viewer_connection_type',
|
619
639
|
:'viewer_device_model',
|
620
|
-
:'weighted_average_bitrate'
|
640
|
+
:'weighted_average_bitrate',
|
641
|
+
:'custom_1',
|
642
|
+
:'custom_2',
|
643
|
+
:'custom_3',
|
644
|
+
:'custom_4',
|
645
|
+
:'custom_5'
|
621
646
|
])
|
622
647
|
end
|
623
648
|
|
@@ -1117,6 +1142,26 @@ module MuxRuby
|
|
1117
1142
|
if attributes.key?(:'weighted_average_bitrate')
|
1118
1143
|
self.weighted_average_bitrate = attributes[:'weighted_average_bitrate']
|
1119
1144
|
end
|
1145
|
+
|
1146
|
+
if attributes.key?(:'custom_1')
|
1147
|
+
self.custom_1 = attributes[:'custom_1']
|
1148
|
+
end
|
1149
|
+
|
1150
|
+
if attributes.key?(:'custom_2')
|
1151
|
+
self.custom_2 = attributes[:'custom_2']
|
1152
|
+
end
|
1153
|
+
|
1154
|
+
if attributes.key?(:'custom_3')
|
1155
|
+
self.custom_3 = attributes[:'custom_3']
|
1156
|
+
end
|
1157
|
+
|
1158
|
+
if attributes.key?(:'custom_4')
|
1159
|
+
self.custom_4 = attributes[:'custom_4']
|
1160
|
+
end
|
1161
|
+
|
1162
|
+
if attributes.key?(:'custom_5')
|
1163
|
+
self.custom_5 = attributes[:'custom_5']
|
1164
|
+
end
|
1120
1165
|
end
|
1121
1166
|
|
1122
1167
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -1256,7 +1301,12 @@ module MuxRuby
|
|
1256
1301
|
view_session_id == o.view_session_id &&
|
1257
1302
|
viewer_connection_type == o.viewer_connection_type &&
|
1258
1303
|
viewer_device_model == o.viewer_device_model &&
|
1259
|
-
weighted_average_bitrate == o.weighted_average_bitrate
|
1304
|
+
weighted_average_bitrate == o.weighted_average_bitrate &&
|
1305
|
+
custom_1 == o.custom_1 &&
|
1306
|
+
custom_2 == o.custom_2 &&
|
1307
|
+
custom_3 == o.custom_3 &&
|
1308
|
+
custom_4 == o.custom_4 &&
|
1309
|
+
custom_5 == o.custom_5
|
1260
1310
|
end
|
1261
1311
|
|
1262
1312
|
# @see the `==` method
|
@@ -1268,7 +1318,7 @@ module MuxRuby
|
|
1268
1318
|
# Calculates hash code according to all attributes.
|
1269
1319
|
# @return [Integer] Hash code
|
1270
1320
|
def hash
|
1271
|
-
[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].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
|
1272
1322
|
end
|
1273
1323
|
|
1274
1324
|
# Builds the object from hash
|
data/lib/mux_ruby/version.rb
CHANGED
data/lib/mux_ruby.rb
CHANGED
@@ -42,6 +42,7 @@ require 'mux_ruby/models/create_simulcast_target_request'
|
|
42
42
|
require 'mux_ruby/models/create_space_request'
|
43
43
|
require 'mux_ruby/models/create_track_request'
|
44
44
|
require 'mux_ruby/models/create_track_response'
|
45
|
+
require 'mux_ruby/models/create_transcription_vocabulary_request'
|
45
46
|
require 'mux_ruby/models/create_upload_request'
|
46
47
|
require 'mux_ruby/models/delivery_report'
|
47
48
|
require 'mux_ruby/models/dimension_value'
|
@@ -95,11 +96,13 @@ require 'mux_ruby/models/list_real_time_metrics_response'
|
|
95
96
|
require 'mux_ruby/models/list_related_incidents_response'
|
96
97
|
require 'mux_ruby/models/list_signing_keys_response'
|
97
98
|
require 'mux_ruby/models/list_spaces_response'
|
99
|
+
require 'mux_ruby/models/list_transcription_vocabularies_response'
|
98
100
|
require 'mux_ruby/models/list_uploads_response'
|
99
101
|
require 'mux_ruby/models/list_video_view_exports_response'
|
100
102
|
require 'mux_ruby/models/list_video_views_response'
|
101
103
|
require 'mux_ruby/models/live_stream'
|
102
104
|
require 'mux_ruby/models/live_stream_embedded_subtitle_settings'
|
105
|
+
require 'mux_ruby/models/live_stream_generated_subtitle_settings'
|
103
106
|
require 'mux_ruby/models/live_stream_response'
|
104
107
|
require 'mux_ruby/models/live_stream_status'
|
105
108
|
require 'mux_ruby/models/metric'
|
@@ -128,12 +131,16 @@ require 'mux_ruby/models/space_type'
|
|
128
131
|
require 'mux_ruby/models/start_space_broadcast_response'
|
129
132
|
require 'mux_ruby/models/stop_space_broadcast_response'
|
130
133
|
require 'mux_ruby/models/track'
|
134
|
+
require 'mux_ruby/models/transcription_vocabulary'
|
135
|
+
require 'mux_ruby/models/transcription_vocabulary_response'
|
131
136
|
require 'mux_ruby/models/update_asset_mp4_support_request'
|
132
137
|
require 'mux_ruby/models/update_asset_master_access_request'
|
133
138
|
require 'mux_ruby/models/update_asset_request'
|
134
139
|
require 'mux_ruby/models/update_live_stream_embedded_subtitles_request'
|
140
|
+
require 'mux_ruby/models/update_live_stream_generated_subtitles_request'
|
135
141
|
require 'mux_ruby/models/update_live_stream_request'
|
136
142
|
require 'mux_ruby/models/update_referrer_domain_restriction_request'
|
143
|
+
require 'mux_ruby/models/update_transcription_vocabulary_request'
|
137
144
|
require 'mux_ruby/models/upload'
|
138
145
|
require 'mux_ruby/models/upload_error'
|
139
146
|
require 'mux_ruby/models/upload_response'
|
@@ -156,6 +163,7 @@ require 'mux_ruby/api/playback_id_api'
|
|
156
163
|
require 'mux_ruby/api/playback_restrictions_api'
|
157
164
|
require 'mux_ruby/api/real_time_api'
|
158
165
|
require 'mux_ruby/api/spaces_api'
|
166
|
+
require 'mux_ruby/api/transcription_vocabularies_api'
|
159
167
|
require 'mux_ruby/api/url_signing_keys_api'
|
160
168
|
require 'mux_ruby/api/video_views_api'
|
161
169
|
|
@@ -0,0 +1,97 @@
|
|
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::TranscriptionVocabulariesApi
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'TranscriptionVocabulariesApi' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
@api_instance = MuxRuby::TranscriptionVocabulariesApi.new
|
23
|
+
end
|
24
|
+
|
25
|
+
after do
|
26
|
+
# run after each test
|
27
|
+
end
|
28
|
+
|
29
|
+
describe 'test an instance of TranscriptionVocabulariesApi' do
|
30
|
+
it 'should create an instance of TranscriptionVocabulariesApi' do
|
31
|
+
expect(@api_instance).to be_instance_of(MuxRuby::TranscriptionVocabulariesApi)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# unit tests for create_transcription_vocabulary
|
36
|
+
# Create a Transcription Vocabulary
|
37
|
+
# Create a new Transcription Vocabulary.
|
38
|
+
# @param create_transcription_vocabulary_request
|
39
|
+
# @param [Hash] opts the optional parameters
|
40
|
+
# @return [TranscriptionVocabularyResponse]
|
41
|
+
describe 'create_transcription_vocabulary test' do
|
42
|
+
it 'should work' do
|
43
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# unit tests for delete_transcription_vocabulary
|
48
|
+
# Delete a Transcription Vocabulary
|
49
|
+
# Deletes a Transcription Vocabulary. The Transcription Vocabulary's ID will be disassociated from any live streams using it. Transcription Vocabularies can be deleted while associated live streams are active. However, the words and phrases in the deleted Transcription Vocabulary will remain attached to those streams while they are active.
|
50
|
+
# @param transcription_vocabulary_id The ID of the Transcription Vocabulary.
|
51
|
+
# @param [Hash] opts the optional parameters
|
52
|
+
# @return [nil]
|
53
|
+
describe 'delete_transcription_vocabulary test' do
|
54
|
+
it 'should work' do
|
55
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
# unit tests for get_transcription_vocabulary
|
60
|
+
# Retrieve a Transcription Vocabulary
|
61
|
+
# Retrieves the details of a Transcription Vocabulary that has previously been created. Supply the unique Transcription Vocabulary ID and Mux will return the corresponding Transcription Vocabulary information. The same information is returned when creating a Transcription Vocabulary.
|
62
|
+
# @param transcription_vocabulary_id The ID of the Transcription Vocabulary.
|
63
|
+
# @param [Hash] opts the optional parameters
|
64
|
+
# @return [TranscriptionVocabularyResponse]
|
65
|
+
describe 'get_transcription_vocabulary test' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# unit tests for list_transcription_vocabularies
|
72
|
+
# List Transcription Vocabularies
|
73
|
+
# List all Transcription Vocabularies.
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @option opts [Integer] :limit Number of items to include in the response
|
76
|
+
# @option opts [Integer] :page Offset by this many pages, of the size of `limit`
|
77
|
+
# @return [ListTranscriptionVocabulariesResponse]
|
78
|
+
describe 'list_transcription_vocabularies test' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
84
|
+
# unit tests for update_transcription_vocabulary
|
85
|
+
# Update a Transcription Vocabulary
|
86
|
+
# Updates the details of a previously-created Transcription Vocabulary. Updates to Transcription Vocabularies are allowed while associated live streams are active. However, updates will not be applied to those streams while they are active.
|
87
|
+
# @param transcription_vocabulary_id The ID of the Transcription Vocabulary.
|
88
|
+
# @param update_transcription_vocabulary_request
|
89
|
+
# @param [Hash] opts the optional parameters
|
90
|
+
# @return [TranscriptionVocabularyResponse]
|
91
|
+
describe 'update_transcription_vocabulary test' do
|
92
|
+
it 'should work' do
|
93
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
94
|
+
end
|
95
|
+
end
|
96
|
+
|
97
|
+
end
|
@@ -0,0 +1,46 @@
|
|
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::CreateTranscriptionVocabularyRequest
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MuxRuby::CreateTranscriptionVocabularyRequest do
|
21
|
+
let(:instance) { MuxRuby::CreateTranscriptionVocabularyRequest.new }
|
22
|
+
|
23
|
+
describe 'test an instance of CreateTranscriptionVocabularyRequest' do
|
24
|
+
it 'should create an instance of CreateTranscriptionVocabularyRequest' do
|
25
|
+
expect(instance).to be_instance_of(MuxRuby::CreateTranscriptionVocabularyRequest)
|
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 "phrases"' 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 "passthrough"' 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
|
+
end
|
@@ -0,0 +1,34 @@
|
|
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::ListTranscriptionVocabulariesResponse
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MuxRuby::ListTranscriptionVocabulariesResponse do
|
21
|
+
let(:instance) { MuxRuby::ListTranscriptionVocabulariesResponse.new }
|
22
|
+
|
23
|
+
describe 'test an instance of ListTranscriptionVocabulariesResponse' do
|
24
|
+
it 'should create an instance of ListTranscriptionVocabulariesResponse' do
|
25
|
+
expect(instance).to be_instance_of(MuxRuby::ListTranscriptionVocabulariesResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' 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
|
+
end
|
@@ -0,0 +1,56 @@
|
|
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::LiveStreamGeneratedSubtitleSettings
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MuxRuby::LiveStreamGeneratedSubtitleSettings do
|
21
|
+
let(:instance) { MuxRuby::LiveStreamGeneratedSubtitleSettings.new }
|
22
|
+
|
23
|
+
describe 'test an instance of LiveStreamGeneratedSubtitleSettings' do
|
24
|
+
it 'should create an instance of LiveStreamGeneratedSubtitleSettings' do
|
25
|
+
expect(instance).to be_instance_of(MuxRuby::LiveStreamGeneratedSubtitleSettings)
|
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
|
+
describe 'test attribute "transcription_vocabulary_ids"' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
end
|