mux_ruby 5.0.0 → 5.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +4 -4
  4. data/docs/Annotation.md +24 -0
  5. data/docs/AnnotationInput.md +22 -0
  6. data/docs/AnnotationResponse.md +18 -0
  7. data/docs/AnnotationsApi.md +371 -0
  8. data/docs/Asset.md +3 -1
  9. data/docs/AssetMetadata.md +3 -3
  10. data/docs/AssetProgress.md +20 -0
  11. data/docs/AssetsApi.md +4 -2
  12. data/docs/CreateAssetRequest.md +3 -1
  13. data/docs/CreateLiveStreamRequest.md +3 -1
  14. data/docs/DimensionsApi.md +87 -2
  15. data/docs/ErrorsApi.md +2 -2
  16. data/docs/FiltersApi.md +2 -2
  17. data/docs/ListAnnotationsResponse.md +22 -0
  18. data/docs/ListAssetsResponse.md +2 -0
  19. data/docs/LiveStream.md +5 -3
  20. data/docs/LiveStreamMetadata.md +18 -0
  21. data/docs/MetricsApi.md +10 -10
  22. data/docs/UpdateLiveStreamRequest.md +3 -1
  23. data/docs/VideoView.md +3 -1
  24. data/docs/VideoViewsApi.md +2 -2
  25. data/gen/generator-config.json +1 -1
  26. data/lib/mux_ruby/api/annotations_api.rb +355 -0
  27. data/lib/mux_ruby/api/assets_api.rb +7 -4
  28. data/lib/mux_ruby/api/dimensions_api.rb +91 -2
  29. data/lib/mux_ruby/api/errors_api.rb +2 -2
  30. data/lib/mux_ruby/api/filters_api.rb +2 -2
  31. data/lib/mux_ruby/api/metrics_api.rb +12 -12
  32. data/lib/mux_ruby/api/video_views_api.rb +2 -2
  33. data/lib/mux_ruby/configuration.rb +6 -0
  34. data/lib/mux_ruby/models/annotation.rb +250 -0
  35. data/lib/mux_ruby/models/annotation_input.rb +239 -0
  36. data/lib/mux_ruby/models/annotation_response.rb +218 -0
  37. data/lib/mux_ruby/models/asset.rb +13 -4
  38. data/lib/mux_ruby/models/asset_metadata.rb +3 -3
  39. data/lib/mux_ruby/models/asset_progress.rb +288 -0
  40. data/lib/mux_ruby/models/create_asset_request.rb +16 -4
  41. data/lib/mux_ruby/models/create_live_stream_request.rb +13 -4
  42. data/lib/mux_ruby/models/list_annotations_response.rb +266 -0
  43. data/lib/mux_ruby/models/list_assets_response.rb +12 -1
  44. data/lib/mux_ruby/models/live_stream.rb +15 -6
  45. data/lib/mux_ruby/models/live_stream_generated_subtitle_settings.rb +2 -2
  46. data/lib/mux_ruby/models/live_stream_metadata.rb +235 -0
  47. data/lib/mux_ruby/models/static_rendition.rb +2 -2
  48. data/lib/mux_ruby/models/update_live_stream_request.rb +13 -4
  49. data/lib/mux_ruby/models/video_view.rb +16 -5
  50. data/lib/mux_ruby/version.rb +1 -1
  51. data/lib/mux_ruby.rb +7 -0
  52. data/spec/api/annotations_api_spec.rb +99 -0
  53. data/spec/models/annotation_input_spec.rb +46 -0
  54. data/spec/models/annotation_response_spec.rb +34 -0
  55. data/spec/models/annotation_spec.rb +52 -0
  56. data/spec/models/asset_progress_spec.rb +44 -0
  57. data/spec/models/list_annotations_response_spec.rb +46 -0
  58. data/spec/models/live_stream_metadata_spec.rb +34 -0
  59. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/byebug/byebug.so +0 -0
  60. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +6 -6
  61. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/ffi_c.so +0 -0
  62. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/gem_make.out +6 -6
  63. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/mkmf.log +16 -16
  64. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +6 -6
  65. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/jaro_winkler/jaro_winkler_ext.so +0 -0
  66. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/gem_make.out +6 -6
  67. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/mkmf.log +4 -4
  68. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/psych.so +0 -0
  69. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/gem_make.out +6 -6
  70. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/mkmf.log +2 -2
  71. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/stringio.so +0 -0
  72. data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug/Makefile +3 -3
  73. data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
  74. data/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/ext/ffi_c/Makefile +3 -3
  75. data/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/lib/ffi_c.so +0 -0
  76. data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler/Makefile +3 -3
  77. data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
  78. data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/ext/psych/Makefile +3 -3
  79. data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/lib/psych.so +0 -0
  80. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/ext/stringio/Makefile +3 -3
  81. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/lib/stringio.so +0 -0
  82. metadata +189 -161
@@ -15,11 +15,15 @@ require 'time'
15
15
 
16
16
  module MuxRuby
17
17
  class ListAssetsResponse
18
+ # If there are more pages of data, this field will contain a string that can be used with the `cursor` querystring parameter to fetch the next page of data.
19
+ attr_accessor :next_cursor
20
+
18
21
  attr_accessor :data
19
22
 
20
23
  # Attribute mapping from ruby-style variable name to JSON key.
21
24
  def self.attribute_map
22
25
  {
26
+ :'next_cursor' => :'next_cursor',
23
27
  :'data' => :'data'
24
28
  }
25
29
  end
@@ -32,6 +36,7 @@ module MuxRuby
32
36
  # Attribute type mapping.
33
37
  def self.openapi_types
34
38
  {
39
+ :'next_cursor' => :'String',
35
40
  :'data' => :'Array<Asset>'
36
41
  }
37
42
  end
@@ -39,6 +44,7 @@ module MuxRuby
39
44
  # List of attributes with nullable: true
40
45
  def self.openapi_nullable
41
46
  Set.new([
47
+ :'next_cursor',
42
48
  ])
43
49
  end
44
50
 
@@ -57,6 +63,10 @@ module MuxRuby
57
63
  h[k.to_sym] = v
58
64
  }
59
65
 
66
+ if attributes.key?(:'next_cursor')
67
+ self.next_cursor = attributes[:'next_cursor']
68
+ end
69
+
60
70
  if attributes.key?(:'data')
61
71
  if (value = attributes[:'data']).is_a?(Array)
62
72
  self.data = value
@@ -82,6 +92,7 @@ module MuxRuby
82
92
  def ==(o)
83
93
  return true if self.equal?(o)
84
94
  self.class == o.class &&
95
+ next_cursor == o.next_cursor &&
85
96
  data == o.data
86
97
  end
87
98
 
@@ -94,7 +105,7 @@ module MuxRuby
94
105
  # Calculates hash code according to all attributes.
95
106
  # @return [Integer] Hash code
96
107
  def hash
97
- [data].hash
108
+ [next_cursor, data].hash
98
109
  end
99
110
 
100
111
  # Builds the object from hash
@@ -21,7 +21,7 @@ module MuxRuby
21
21
  # Time the Live Stream was created, defined as a Unix timestamp (seconds since epoch).
22
22
  attr_accessor :created_at
23
23
 
24
- # Unique key used for streaming to a Mux RTMP endpoint. This should be considered as sensitive as credentials, anyone with this stream key can begin streaming.
24
+ # Unique key used for streaming to a Mux RTMP endpoint. This should be considered as sensitive as credentials, anyone with this stream key can begin streaming. Max 64 characters.
25
25
  attr_accessor :stream_key
26
26
 
27
27
  # The Asset that is currently being created if there is an active broadcast.
@@ -76,12 +76,14 @@ module MuxRuby
76
76
  # The time in seconds a live stream may be continuously active before being disconnected. Defaults to 12 hours.
77
77
  attr_accessor :max_continuous_duration
78
78
 
79
- # Unique key used for encrypting a stream to a Mux SRT endpoint.
79
+ # Unique key used for encrypting a stream to a Mux SRT endpoint. Max 64 characters.
80
80
  attr_accessor :srt_passphrase
81
81
 
82
82
  # The protocol used for the active ingest stream. This is only set when the live stream is active.
83
83
  attr_accessor :active_ingest_protocol
84
84
 
85
+ attr_accessor :meta
86
+
85
87
  class EnumAttributeValidator
86
88
  attr_reader :datatype
87
89
  attr_reader :allowable_values
@@ -129,7 +131,8 @@ module MuxRuby
129
131
  :'test' => :'test',
130
132
  :'max_continuous_duration' => :'max_continuous_duration',
131
133
  :'srt_passphrase' => :'srt_passphrase',
132
- :'active_ingest_protocol' => :'active_ingest_protocol'
134
+ :'active_ingest_protocol' => :'active_ingest_protocol',
135
+ :'meta' => :'meta'
133
136
  }
134
137
  end
135
138
 
@@ -163,7 +166,8 @@ module MuxRuby
163
166
  :'test' => :'Boolean',
164
167
  :'max_continuous_duration' => :'Integer',
165
168
  :'srt_passphrase' => :'String',
166
- :'active_ingest_protocol' => :'String'
169
+ :'active_ingest_protocol' => :'String',
170
+ :'meta' => :'LiveStreamMetadata'
167
171
  }
168
172
  end
169
173
 
@@ -295,6 +299,10 @@ module MuxRuby
295
299
  if attributes.key?(:'active_ingest_protocol')
296
300
  self.active_ingest_protocol = attributes[:'active_ingest_protocol']
297
301
  end
302
+
303
+ if attributes.key?(:'meta')
304
+ self.meta = attributes[:'meta']
305
+ end
298
306
  end
299
307
 
300
308
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -409,7 +417,8 @@ module MuxRuby
409
417
  test == o.test &&
410
418
  max_continuous_duration == o.max_continuous_duration &&
411
419
  srt_passphrase == o.srt_passphrase &&
412
- active_ingest_protocol == o.active_ingest_protocol
420
+ active_ingest_protocol == o.active_ingest_protocol &&
421
+ meta == o.meta
413
422
  end
414
423
 
415
424
  # @see the `==` method
@@ -421,7 +430,7 @@ module MuxRuby
421
430
  # Calculates hash code according to all attributes.
422
431
  # @return [Integer] Hash code
423
432
  def hash
424
- [id, created_at, stream_key, active_asset_id, recent_asset_ids, status, playback_ids, new_asset_settings, passthrough, audio_only, embedded_subtitles, generated_subtitles, reconnect_window, use_slate_for_standard_latency, reconnect_slate_url, reduced_latency, low_latency, simulcast_targets, latency_mode, test, max_continuous_duration, srt_passphrase, active_ingest_protocol].hash
433
+ [id, created_at, stream_key, active_asset_id, recent_asset_ids, status, playback_ids, new_asset_settings, passthrough, audio_only, embedded_subtitles, generated_subtitles, reconnect_window, use_slate_for_standard_latency, reconnect_slate_url, reduced_latency, low_latency, simulcast_targets, latency_mode, test, max_continuous_duration, srt_passphrase, active_ingest_protocol, meta].hash
425
434
  end
426
435
 
427
436
  # Builds the object from hash
@@ -126,7 +126,7 @@ module MuxRuby
126
126
  # Check to see if the all the properties in the model are valid
127
127
  # @return true if the model is valid
128
128
  def valid?
129
- language_code_validator = EnumAttributeValidator.new('String', ["en", "en-US"])
129
+ language_code_validator = EnumAttributeValidator.new('String', ["en", "en-US", "es", "fr", "de", "pt", "it"])
130
130
  return false unless language_code_validator.valid?(@language_code)
131
131
  true
132
132
  end
@@ -134,7 +134,7 @@ module MuxRuby
134
134
  # Custom attribute writer method checking allowed values (enum).
135
135
  # @param [Object] language_code Object to be assigned
136
136
  def language_code=(language_code)
137
- validator = EnumAttributeValidator.new('String', ["en", "en-US"])
137
+ validator = EnumAttributeValidator.new('String', ["en", "en-US", "es", "fr", "de", "pt", "it"])
138
138
  unless validator.valid?(language_code)
139
139
  fail ArgumentError, "invalid value for \"language_code\", must be one of #{validator.allowable_values}."
140
140
  end
@@ -0,0 +1,235 @@
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
+ # Customer provided metadata about this live stream. Note: This metadata may be publicly available via the video player. Do not include PII or sensitive information.
18
+ class LiveStreamMetadata
19
+ # The live stream title. Max 512 code points.
20
+ attr_accessor :title
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'title' => :'title'
26
+ }
27
+ end
28
+
29
+ # Returns all the JSON keys this model knows about
30
+ def self.acceptable_attributes
31
+ attribute_map.values
32
+ end
33
+
34
+ # Attribute type mapping.
35
+ def self.openapi_types
36
+ {
37
+ :'title' => :'String'
38
+ }
39
+ end
40
+
41
+ # List of attributes with nullable: true
42
+ def self.openapi_nullable
43
+ Set.new([
44
+ ])
45
+ end
46
+
47
+ # Initializes the object
48
+ # @param [Hash] attributes Model attributes in the form of hash
49
+ def initialize(attributes = {})
50
+ if (!attributes.is_a?(Hash))
51
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MuxRuby::LiveStreamMetadata` initialize method"
52
+ end
53
+
54
+ # check to see if the attribute exists and convert string to symbol for hash key
55
+ attributes = attributes.each_with_object({}) { |(k, v), h|
56
+ if (!self.class.attribute_map.key?(k.to_sym))
57
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MuxRuby::LiveStreamMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
58
+ end
59
+ h[k.to_sym] = v
60
+ }
61
+
62
+ if attributes.key?(:'title')
63
+ self.title = attributes[:'title']
64
+ end
65
+ end
66
+
67
+ # Show invalid properties with the reasons. Usually used together with valid?
68
+ # @return Array for valid properties with the reasons
69
+ def list_invalid_properties
70
+ invalid_properties = Array.new
71
+ if !@title.nil? && @title.to_s.length > 512
72
+ invalid_properties.push('invalid value for "title", the character length must be smaller than or equal to 512.')
73
+ end
74
+
75
+ invalid_properties
76
+ end
77
+
78
+ # Check to see if the all the properties in the model are valid
79
+ # @return true if the model is valid
80
+ def valid?
81
+ return false if !@title.nil? && @title.to_s.length > 512
82
+ true
83
+ end
84
+
85
+ # Custom attribute writer method with validation
86
+ # @param [Object] title Value to be assigned
87
+ def title=(title)
88
+ if !title.nil? && title.to_s.length > 512
89
+ fail ArgumentError, 'invalid value for "title", the character length must be smaller than or equal to 512.'
90
+ end
91
+
92
+ @title = title
93
+ end
94
+
95
+ # Checks equality by comparing each attribute.
96
+ # @param [Object] Object to be compared
97
+ def ==(o)
98
+ return true if self.equal?(o)
99
+ self.class == o.class &&
100
+ title == o.title
101
+ end
102
+
103
+ # @see the `==` method
104
+ # @param [Object] Object to be compared
105
+ def eql?(o)
106
+ self == o
107
+ end
108
+
109
+ # Calculates hash code according to all attributes.
110
+ # @return [Integer] Hash code
111
+ def hash
112
+ [title].hash
113
+ end
114
+
115
+ # Builds the object from hash
116
+ # @param [Hash] attributes Model attributes in the form of hash
117
+ # @return [Object] Returns the model itself
118
+ def self.build_from_hash(attributes)
119
+ new.build_from_hash(attributes)
120
+ end
121
+
122
+ # Builds the object from hash
123
+ # @param [Hash] attributes Model attributes in the form of hash
124
+ # @return [Object] Returns the model itself
125
+ def build_from_hash(attributes)
126
+ return nil unless attributes.is_a?(Hash)
127
+ self.class.openapi_types.each_pair do |key, type|
128
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
129
+ self.send("#{key}=", nil)
130
+ elsif type =~ /\AArray<(.*)>/i
131
+ # check to ensure the input is an array given that the attribute
132
+ # is documented as an array but the input is not
133
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
134
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
135
+ end
136
+ elsif !attributes[self.class.attribute_map[key]].nil?
137
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
138
+ end
139
+ end
140
+
141
+ self
142
+ end
143
+
144
+ # Deserializes the data based on type
145
+ # @param string type Data type
146
+ # @param string value Value to be deserialized
147
+ # @return [Object] Deserialized data
148
+ def _deserialize(type, value)
149
+ case type.to_sym
150
+ when :Time
151
+ Time.parse(value)
152
+ when :Date
153
+ Date.parse(value)
154
+ when :String
155
+ value.to_s
156
+ when :Integer
157
+ value.to_i
158
+ when :Float
159
+ value.to_f
160
+ when :Boolean
161
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
162
+ true
163
+ else
164
+ false
165
+ end
166
+ when :Object
167
+ # generic object (usually a Hash), return directly
168
+ value
169
+ when /\AArray<(?<inner_type>.+)>\z/
170
+ inner_type = Regexp.last_match[:inner_type]
171
+ value.map { |v| _deserialize(inner_type, v) }
172
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
173
+ k_type = Regexp.last_match[:k_type]
174
+ v_type = Regexp.last_match[:v_type]
175
+ {}.tap do |hash|
176
+ value.each do |k, v|
177
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
178
+ end
179
+ end
180
+ else # model
181
+ # models (e.g. Pet) or oneOf
182
+ klass = MuxRuby.const_get(type)
183
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
184
+ end
185
+ end
186
+
187
+ # Returns the string representation of the object
188
+ # @return [String] String presentation of the object
189
+ def to_s
190
+ to_hash.to_s
191
+ end
192
+
193
+ # to_body is an alias to to_hash (backward compatibility)
194
+ # @return [Hash] Returns the object in the form of hash
195
+ def to_body
196
+ to_hash
197
+ end
198
+
199
+ # Returns the object in the form of hash
200
+ # @return [Hash] Returns the object in the form of hash
201
+ def to_hash
202
+ hash = {}
203
+ self.class.attribute_map.each_pair do |attr, param|
204
+ value = self.send(attr)
205
+ if value.nil?
206
+ is_nullable = self.class.openapi_nullable.include?(attr)
207
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
208
+ end
209
+
210
+ hash[param] = _to_hash(value)
211
+ end
212
+ hash
213
+ end
214
+
215
+ # Outputs non-array value in the form of hash
216
+ # For object, use to_hash. Otherwise, just return the value
217
+ # @param [Object] value Any valid value
218
+ # @return [Hash] Returns the value in the form of hash
219
+ def _to_hash(value)
220
+ if value.is_a?(Array)
221
+ value.compact.map { |v| _to_hash(v) }
222
+ elsif value.is_a?(Hash)
223
+ {}.tap do |hash|
224
+ value.each { |k, v| hash[k] = _to_hash(v) }
225
+ end
226
+ elsif value.respond_to? :to_hash
227
+ value.to_hash
228
+ else
229
+ value
230
+ end
231
+ end
232
+
233
+ end
234
+
235
+ end
@@ -202,7 +202,7 @@ module MuxRuby
202
202
  return false unless type_validator.valid?(@type)
203
203
  status_validator = EnumAttributeValidator.new('String', ["ready", "preparing", "skipped", "errored"])
204
204
  return false unless status_validator.valid?(@status)
205
- resolution_tier_validator = EnumAttributeValidator.new('String', ["2160p", "1440p", "1080p", "720p"])
205
+ resolution_tier_validator = EnumAttributeValidator.new('String', ["2160p", "1440p", "1080p", "720p", "audio-only"])
206
206
  return false unless resolution_tier_validator.valid?(@resolution_tier)
207
207
  resolution_validator = EnumAttributeValidator.new('String', ["highest", "audio-only", "2160p", "1440p", "1080p", "720p", "540p", "480p", "360p", "270p"])
208
208
  return false unless resolution_validator.valid?(@resolution)
@@ -252,7 +252,7 @@ module MuxRuby
252
252
  # Custom attribute writer method checking allowed values (enum).
253
253
  # @param [Object] resolution_tier Object to be assigned
254
254
  def resolution_tier=(resolution_tier)
255
- validator = EnumAttributeValidator.new('String', ["2160p", "1440p", "1080p", "720p"])
255
+ validator = EnumAttributeValidator.new('String', ["2160p", "1440p", "1080p", "720p", "audio-only"])
256
256
  unless validator.valid?(resolution_tier)
257
257
  fail ArgumentError, "invalid value for \"resolution_tier\", must be one of #{validator.allowable_values}."
258
258
  end
@@ -35,6 +35,8 @@ module MuxRuby
35
35
 
36
36
  attr_accessor :new_asset_settings
37
37
 
38
+ attr_accessor :meta
39
+
38
40
  class EnumAttributeValidator
39
41
  attr_reader :datatype
40
42
  attr_reader :allowable_values
@@ -66,7 +68,8 @@ module MuxRuby
66
68
  :'use_slate_for_standard_latency' => :'use_slate_for_standard_latency',
67
69
  :'reconnect_slate_url' => :'reconnect_slate_url',
68
70
  :'max_continuous_duration' => :'max_continuous_duration',
69
- :'new_asset_settings' => :'new_asset_settings'
71
+ :'new_asset_settings' => :'new_asset_settings',
72
+ :'meta' => :'meta'
70
73
  }
71
74
  end
72
75
 
@@ -84,7 +87,8 @@ module MuxRuby
84
87
  :'use_slate_for_standard_latency' => :'Boolean',
85
88
  :'reconnect_slate_url' => :'String',
86
89
  :'max_continuous_duration' => :'Integer',
87
- :'new_asset_settings' => :'UpdateLiveStreamNewAssetSettings'
90
+ :'new_asset_settings' => :'UpdateLiveStreamNewAssetSettings',
91
+ :'meta' => :'LiveStreamMetadata'
88
92
  }
89
93
  end
90
94
 
@@ -142,6 +146,10 @@ module MuxRuby
142
146
  if attributes.key?(:'new_asset_settings')
143
147
  self.new_asset_settings = attributes[:'new_asset_settings']
144
148
  end
149
+
150
+ if attributes.key?(:'meta')
151
+ self.meta = attributes[:'meta']
152
+ end
145
153
  end
146
154
 
147
155
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -228,7 +236,8 @@ module MuxRuby
228
236
  use_slate_for_standard_latency == o.use_slate_for_standard_latency &&
229
237
  reconnect_slate_url == o.reconnect_slate_url &&
230
238
  max_continuous_duration == o.max_continuous_duration &&
231
- new_asset_settings == o.new_asset_settings
239
+ new_asset_settings == o.new_asset_settings &&
240
+ meta == o.meta
232
241
  end
233
242
 
234
243
  # @see the `==` method
@@ -240,7 +249,7 @@ module MuxRuby
240
249
  # Calculates hash code according to all attributes.
241
250
  # @return [Integer] Hash code
242
251
  def hash
243
- [passthrough, latency_mode, reconnect_window, use_slate_for_standard_latency, reconnect_slate_url, max_continuous_duration, new_asset_settings].hash
252
+ [passthrough, latency_mode, reconnect_window, use_slate_for_standard_latency, reconnect_slate_url, max_continuous_duration, new_asset_settings, meta].hash
244
253
  end
245
254
 
246
255
  # Builds the object from hash
@@ -373,6 +373,8 @@ module MuxRuby
373
373
 
374
374
  attr_accessor :video_creator_id
375
375
 
376
+ attr_accessor :video_cdn_trace
377
+
376
378
  # Attribute mapping from ruby-style variable name to JSON key.
377
379
  def self.attribute_map
378
380
  {
@@ -554,7 +556,8 @@ module MuxRuby
554
556
  :'video_dynamic_range_type' => :'video_dynamic_range_type',
555
557
  :'view_cdn_edge_pop' => :'view_cdn_edge_pop',
556
558
  :'view_cdn_origin' => :'view_cdn_origin',
557
- :'video_creator_id' => :'video_creator_id'
559
+ :'video_creator_id' => :'video_creator_id',
560
+ :'video_cdn_trace' => :'video_cdn_trace'
558
561
  }
559
562
  end
560
563
 
@@ -744,7 +747,8 @@ module MuxRuby
744
747
  :'video_dynamic_range_type' => :'String',
745
748
  :'view_cdn_edge_pop' => :'String',
746
749
  :'view_cdn_origin' => :'String',
747
- :'video_creator_id' => :'String'
750
+ :'video_creator_id' => :'String',
751
+ :'video_cdn_trace' => :'Array<String>'
748
752
  }
749
753
  end
750
754
 
@@ -902,7 +906,7 @@ module MuxRuby
902
906
  :'video_dynamic_range_type',
903
907
  :'view_cdn_edge_pop',
904
908
  :'view_cdn_origin',
905
- :'video_creator_id'
909
+ :'video_creator_id',
906
910
  ])
907
911
  end
908
912
 
@@ -1638,6 +1642,12 @@ module MuxRuby
1638
1642
  if attributes.key?(:'video_creator_id')
1639
1643
  self.video_creator_id = attributes[:'video_creator_id']
1640
1644
  end
1645
+
1646
+ if attributes.key?(:'video_cdn_trace')
1647
+ if (value = attributes[:'video_cdn_trace']).is_a?(Array)
1648
+ self.video_cdn_trace = value
1649
+ end
1650
+ end
1641
1651
  end
1642
1652
 
1643
1653
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -1836,7 +1846,8 @@ module MuxRuby
1836
1846
  video_dynamic_range_type == o.video_dynamic_range_type &&
1837
1847
  view_cdn_edge_pop == o.view_cdn_edge_pop &&
1838
1848
  view_cdn_origin == o.view_cdn_origin &&
1839
- video_creator_id == o.video_creator_id
1849
+ video_creator_id == o.video_creator_id &&
1850
+ video_cdn_trace == o.video_cdn_trace
1840
1851
  end
1841
1852
 
1842
1853
  # @see the `==` method
@@ -1848,7 +1859,7 @@ module MuxRuby
1848
1859
  # Calculates hash code according to all attributes.
1849
1860
  # @return [Integer] Hash code
1850
1861
  def hash
1851
- [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, ad_attempt_count, ad_break_count, ad_break_error_count, ad_break_error_percentage, ad_error_count, ad_error_percentage, ad_impression_count, ad_startup_error_count, ad_startup_error_percentage, ad_exit_before_start_count, ad_exit_before_start_percentage, long_resume, long_rebuffering, playback_failure_error_type_id, playback_business_exception_error_type_id, video_startup_business_exception_error_type_id, playback_failure, ad_playback_failure_error_type_id, view_content_startup_time, ad_preroll_startup_time, view_dropped, client_application_name, client_application_version, video_affiliate, viewer_plan, viewer_plan_status, viewer_plan_category, view_drm_level, video_brand, used_pip, time_shift_enabled, used_captions, video_codec, audio_codec, video_dynamic_range_type, view_cdn_edge_pop, view_cdn_origin, video_creator_id].hash
1862
+ [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, ad_attempt_count, ad_break_count, ad_break_error_count, ad_break_error_percentage, ad_error_count, ad_error_percentage, ad_impression_count, ad_startup_error_count, ad_startup_error_percentage, ad_exit_before_start_count, ad_exit_before_start_percentage, long_resume, long_rebuffering, playback_failure_error_type_id, playback_business_exception_error_type_id, video_startup_business_exception_error_type_id, playback_failure, ad_playback_failure_error_type_id, view_content_startup_time, ad_preroll_startup_time, view_dropped, client_application_name, client_application_version, video_affiliate, viewer_plan, viewer_plan_status, viewer_plan_category, view_drm_level, video_brand, used_pip, time_shift_enabled, used_captions, video_codec, audio_codec, video_dynamic_range_type, view_cdn_edge_pop, view_cdn_origin, video_creator_id, video_cdn_trace].hash
1852
1863
  end
1853
1864
 
1854
1865
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.1
11
11
  =end
12
12
 
13
13
  module MuxRuby
14
- VERSION = '5.0.0'
14
+ VERSION = '5.1.0'
15
15
  end
data/lib/mux_ruby.rb CHANGED
@@ -18,12 +18,16 @@ require 'mux_ruby/configuration'
18
18
 
19
19
  # Models
20
20
  require 'mux_ruby/models/abridged_video_view'
21
+ require 'mux_ruby/models/annotation'
22
+ require 'mux_ruby/models/annotation_input'
23
+ require 'mux_ruby/models/annotation_response'
21
24
  require 'mux_ruby/models/asset'
22
25
  require 'mux_ruby/models/asset_errors'
23
26
  require 'mux_ruby/models/asset_generated_subtitle_settings'
24
27
  require 'mux_ruby/models/asset_master'
25
28
  require 'mux_ruby/models/asset_metadata'
26
29
  require 'mux_ruby/models/asset_non_standard_input_reasons'
30
+ require 'mux_ruby/models/asset_progress'
27
31
  require 'mux_ruby/models/asset_recording_times'
28
32
  require 'mux_ruby/models/asset_response'
29
33
  require 'mux_ruby/models/asset_static_renditions'
@@ -84,6 +88,7 @@ require 'mux_ruby/models/input_track'
84
88
  require 'mux_ruby/models/insight'
85
89
  require 'mux_ruby/models/launch_web_input_response'
86
90
  require 'mux_ruby/models/list_all_metric_values_response'
91
+ require 'mux_ruby/models/list_annotations_response'
87
92
  require 'mux_ruby/models/list_assets_response'
88
93
  require 'mux_ruby/models/list_breakdown_values_response'
89
94
  require 'mux_ruby/models/list_breakdown_values_response_meta'
@@ -115,6 +120,7 @@ require 'mux_ruby/models/list_web_inputs_response'
115
120
  require 'mux_ruby/models/live_stream'
116
121
  require 'mux_ruby/models/live_stream_embedded_subtitle_settings'
117
122
  require 'mux_ruby/models/live_stream_generated_subtitle_settings'
123
+ require 'mux_ruby/models/live_stream_metadata'
118
124
  require 'mux_ruby/models/live_stream_response'
119
125
  require 'mux_ruby/models/live_stream_status'
120
126
  require 'mux_ruby/models/metric'
@@ -173,6 +179,7 @@ require 'mux_ruby/models/web_input'
173
179
  require 'mux_ruby/models/web_input_response'
174
180
 
175
181
  # APIs
182
+ require 'mux_ruby/api/annotations_api'
176
183
  require 'mux_ruby/api/assets_api'
177
184
  require 'mux_ruby/api/drm_configurations_api'
178
185
  require 'mux_ruby/api/delivery_usage_api'