mux_ruby 1.5.0 → 1.9.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 (162) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +2 -2
  3. data/README.md +4 -1
  4. data/docs/Asset.md +15 -12
  5. data/docs/AssetErrors.md +2 -2
  6. data/docs/AssetNonStandardInputReasons.md +16 -0
  7. data/docs/AssetRecordingTimes.md +9 -0
  8. data/docs/AssetStaticRenditions.md +1 -1
  9. data/docs/AssetsApi.md +4 -0
  10. data/docs/CreateAssetRequest.md +6 -6
  11. data/docs/CreateLiveStreamRequest.md +1 -0
  12. data/docs/CreateTrackRequest.md +4 -4
  13. data/docs/DimensionValue.md +9 -0
  14. data/docs/DimensionsApi.md +118 -0
  15. data/docs/DisableLiveStreamResponse.md +8 -0
  16. data/docs/EnableLiveStreamResponse.md +8 -0
  17. data/docs/FiltersApi.md +2 -2
  18. data/docs/GetAssetOrLiveStreamIdResponse.md +8 -0
  19. data/docs/GetAssetOrLiveStreamIdResponseData.md +10 -0
  20. data/docs/GetAssetOrLiveStreamIdResponseDataObject.md +9 -0
  21. data/docs/GetRealTimeBreakdownResponse.md +10 -0
  22. data/docs/GetRealTimeHistogramTimeseriesResponse.md +11 -0
  23. data/docs/GetRealTimeHistogramTimeseriesResponseMeta.md +8 -0
  24. data/docs/GetRealTimeTimeseriesResponse.md +10 -0
  25. data/docs/Incident.md +28 -0
  26. data/docs/IncidentBreakdown.md +10 -0
  27. data/docs/IncidentNotification.md +10 -0
  28. data/docs/IncidentNotificationRule.md +12 -0
  29. data/docs/IncidentResponse.md +9 -0
  30. data/docs/IncidentsApi.md +186 -0
  31. data/docs/InputSettings.md +9 -7
  32. data/docs/InputSettingsOverlaySettings.md +7 -7
  33. data/docs/ListDimensionValuesResponse.md +10 -0
  34. data/docs/ListDimensionsResponse.md +10 -0
  35. data/docs/ListIncidentsResponse.md +10 -0
  36. data/docs/ListRealTimeDimensionsResponse.md +10 -0
  37. data/docs/ListRealTimeDimensionsResponseData.md +9 -0
  38. data/docs/ListRealTimeMetricsResponse.md +10 -0
  39. data/docs/ListRelatedIncidentsResponse.md +10 -0
  40. data/docs/LiveStream.md +1 -1
  41. data/docs/LiveStreamsApi.md +104 -0
  42. data/docs/NotificationRule.md +10 -0
  43. data/docs/PlaybackID.md +1 -1
  44. data/docs/PlaybackIDApi.md +60 -0
  45. data/docs/RealTimeApi.md +280 -0
  46. data/docs/RealTimeBreakdownValue.md +12 -0
  47. data/docs/RealTimeHistogramTimeseriesBucket.md +9 -0
  48. data/docs/RealTimeHistogramTimeseriesBucketValues.md +9 -0
  49. data/docs/RealTimeHistogramTimeseriesDatapoint.md +14 -0
  50. data/docs/RealTimeTimeseriesDatapoint.md +10 -0
  51. data/docs/Track.md +13 -13
  52. data/docs/VideoView.md +16 -14
  53. data/examples/data/exercise-dimensions.rb +29 -0
  54. data/examples/data/exercise-incidents.rb +29 -0
  55. data/examples/data/exercise-realtime.rb +60 -0
  56. data/examples/video/exercise-assets.rb +21 -0
  57. data/examples/video/exercise-live-streams.rb +30 -0
  58. data/lib/mux_ruby.rb +34 -0
  59. data/lib/mux_ruby/api/assets_api.rb +4 -0
  60. data/lib/mux_ruby/api/dimensions_api.rb +128 -0
  61. data/lib/mux_ruby/api/filters_api.rb +4 -4
  62. data/lib/mux_ruby/api/incidents_api.rb +217 -0
  63. data/lib/mux_ruby/api/live_streams_api.rb +106 -0
  64. data/lib/mux_ruby/api/playback_id_api.rb +69 -0
  65. data/lib/mux_ruby/api/real_time_api.rb +311 -0
  66. data/lib/mux_ruby/api_client.rb +13 -13
  67. data/lib/mux_ruby/configuration.rb +1 -4
  68. data/lib/mux_ruby/models/asset.rb +70 -3
  69. data/lib/mux_ruby/models/asset_errors.rb +2 -0
  70. data/lib/mux_ruby/models/asset_master.rb +35 -0
  71. data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +335 -0
  72. data/lib/mux_ruby/models/asset_recording_times.rb +195 -0
  73. data/lib/mux_ruby/models/asset_static_renditions.rb +2 -2
  74. data/lib/mux_ruby/models/asset_static_renditions_files.rb +6 -6
  75. data/lib/mux_ruby/models/create_asset_request.rb +8 -2
  76. data/lib/mux_ruby/models/create_live_stream_request.rb +15 -4
  77. data/lib/mux_ruby/models/create_track_request.rb +6 -2
  78. data/lib/mux_ruby/models/dimension_value.rb +193 -0
  79. data/lib/mux_ruby/models/disable_live_stream_response.rb +184 -0
  80. data/lib/mux_ruby/models/enable_live_stream_response.rb +184 -0
  81. data/lib/mux_ruby/models/get_asset_or_live_stream_id_response.rb +184 -0
  82. data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data.rb +203 -0
  83. data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data_object.rb +230 -0
  84. data/lib/mux_ruby/models/get_real_time_breakdown_response.rb +206 -0
  85. data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response.rb +215 -0
  86. data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response_meta.rb +186 -0
  87. data/lib/mux_ruby/models/get_real_time_timeseries_response.rb +206 -0
  88. data/lib/mux_ruby/models/incident.rb +370 -0
  89. data/lib/mux_ruby/models/incident_breakdown.rb +202 -0
  90. data/lib/mux_ruby/models/incident_notification.rb +202 -0
  91. data/lib/mux_ruby/models/incident_notification_rule.rb +222 -0
  92. data/lib/mux_ruby/models/incident_response.rb +195 -0
  93. data/lib/mux_ruby/models/input_settings.rb +31 -4
  94. data/lib/mux_ruby/models/input_settings_overlay_settings.rb +10 -2
  95. data/lib/mux_ruby/models/list_dimension_values_response.rb +206 -0
  96. data/lib/mux_ruby/models/list_dimensions_response.rb +204 -0
  97. data/lib/mux_ruby/models/list_incidents_response.rb +206 -0
  98. data/lib/mux_ruby/models/list_real_time_dimensions_response.rb +206 -0
  99. data/lib/mux_ruby/models/list_real_time_dimensions_response_data.rb +193 -0
  100. data/lib/mux_ruby/models/list_real_time_metrics_response.rb +206 -0
  101. data/lib/mux_ruby/models/list_related_incidents_response.rb +206 -0
  102. data/lib/mux_ruby/models/live_stream.rb +1 -1
  103. data/lib/mux_ruby/models/notification_rule.rb +202 -0
  104. data/lib/mux_ruby/models/playback_id.rb +1 -0
  105. data/lib/mux_ruby/models/real_time_breakdown_value.rb +220 -0
  106. data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket.rb +193 -0
  107. data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket_values.rb +193 -0
  108. data/lib/mux_ruby/models/real_time_histogram_timeseries_datapoint.rb +240 -0
  109. data/lib/mux_ruby/models/real_time_timeseries_datapoint.rb +202 -0
  110. data/lib/mux_ruby/models/simulcast_target.rb +1 -1
  111. data/lib/mux_ruby/models/track.rb +27 -2
  112. data/lib/mux_ruby/models/update_asset_master_access_request.rb +1 -1
  113. data/lib/mux_ruby/models/update_asset_mp4_support_request.rb +1 -1
  114. data/lib/mux_ruby/models/upload.rb +1 -1
  115. data/lib/mux_ruby/models/video_view.rb +36 -18
  116. data/lib/mux_ruby/version.rb +1 -1
  117. data/mux_ruby.gemspec +2 -0
  118. data/spec/api/assets_api_spec.rb +2 -0
  119. data/spec/api/dimensions_api_spec.rb +55 -0
  120. data/spec/api/filters_api_spec.rb +2 -2
  121. data/spec/api/incidents_api_spec.rb +73 -0
  122. data/spec/api/live_streams_api_spec.rb +24 -0
  123. data/spec/api/playback_id_api_spec.rb +40 -0
  124. data/spec/api/real_time_api_spec.rb +93 -0
  125. data/spec/models/asset_master_spec.rb +4 -0
  126. data/spec/models/asset_non_standard_input_reasons_spec.rb +98 -0
  127. data/spec/models/asset_recording_times_spec.rb +40 -0
  128. data/spec/models/asset_spec.rb +26 -0
  129. data/spec/models/asset_static_renditions_files_spec.rb +2 -2
  130. data/spec/models/create_live_stream_request_spec.rb +6 -0
  131. data/spec/models/dimension_value_spec.rb +40 -0
  132. data/spec/models/disable_live_stream_response_spec.rb +34 -0
  133. data/spec/models/enable_live_stream_response_spec.rb +34 -0
  134. data/spec/models/get_asset_or_live_stream_id_response_data_object_spec.rb +44 -0
  135. data/spec/models/get_asset_or_live_stream_id_response_data_spec.rb +46 -0
  136. data/spec/models/get_asset_or_live_stream_id_response_spec.rb +34 -0
  137. data/spec/models/get_real_time_breakdown_response_spec.rb +46 -0
  138. data/spec/models/get_real_time_histogram_timeseries_response_meta_spec.rb +34 -0
  139. data/spec/models/get_real_time_histogram_timeseries_response_spec.rb +52 -0
  140. data/spec/models/get_real_time_timeseries_response_spec.rb +46 -0
  141. data/spec/models/incident_breakdown_spec.rb +46 -0
  142. data/spec/models/incident_notification_rule_spec.rb +58 -0
  143. data/spec/models/incident_notification_spec.rb +46 -0
  144. data/spec/models/incident_response_spec.rb +40 -0
  145. data/spec/models/incident_spec.rb +154 -0
  146. data/spec/models/input_settings_spec.rb +12 -0
  147. data/spec/models/list_dimension_values_response_spec.rb +46 -0
  148. data/spec/models/list_dimensions_response_spec.rb +46 -0
  149. data/spec/models/list_incidents_response_spec.rb +46 -0
  150. data/spec/models/list_real_time_dimensions_response_data_spec.rb +40 -0
  151. data/spec/models/list_real_time_dimensions_response_spec.rb +46 -0
  152. data/spec/models/list_real_time_metrics_response_spec.rb +46 -0
  153. data/spec/models/list_related_incidents_response_spec.rb +46 -0
  154. data/spec/models/notification_rule_spec.rb +46 -0
  155. data/spec/models/real_time_breakdown_value_spec.rb +58 -0
  156. data/spec/models/real_time_histogram_timeseries_bucket_spec.rb +40 -0
  157. data/spec/models/real_time_histogram_timeseries_bucket_values_spec.rb +40 -0
  158. data/spec/models/real_time_histogram_timeseries_datapoint_spec.rb +70 -0
  159. data/spec/models/real_time_timeseries_datapoint_spec.rb +46 -0
  160. data/spec/models/track_spec.rb +4 -0
  161. data/spec/models/video_view_spec.rb +12 -0
  162. metadata +200 -60
@@ -7,30 +7,43 @@ require 'date'
7
7
 
8
8
  module MuxRuby
9
9
  class Track
10
+ # Unique identifier for the Track
10
11
  attr_accessor :id
11
12
 
13
+ # The type of track
12
14
  attr_accessor :type
13
15
 
16
+ # The duration in seconds of the track media. This parameter is not set for the `text` type track. This field is optional and may not be set. The top level `duration` field of an asset will always be set.
14
17
  attr_accessor :duration
15
18
 
19
+ # The maximum width in pixels available for the track. Only set for the `video` type track.
16
20
  attr_accessor :max_width
17
21
 
22
+ # The maximum height in pixels available for the track. Only set for the `video` type track.
18
23
  attr_accessor :max_height
19
24
 
25
+ # The maximum frame rate available for the track. Only set for the `video` type track. This field may return `-1` if the frame rate of the input cannot be reliably determined.
20
26
  attr_accessor :max_frame_rate
21
27
 
28
+ # The maximum number of audio channels the track supports. Only set for the `audio` type track.
22
29
  attr_accessor :max_channels
23
30
 
31
+ # Only set for the `audio` type track.
24
32
  attr_accessor :max_channel_layout
25
33
 
34
+ # This parameter is set only for the `text` type track.
26
35
  attr_accessor :text_type
27
36
 
37
+ # 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 set for `text` type and `subtitles` text type track.
28
38
  attr_accessor :language_code
29
39
 
40
+ # The name of the track containing a human-readable description. The hls manifest will associate a subtitle text track with this value. For example, the value is \"English\" for subtitles text track for the `language_code` value of `en-US`. This parameter is set for the `text` type and `subtitles` text type track.
30
41
  attr_accessor :name
31
42
 
43
+ # Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH). This parameter is set for the `text` type and `subtitles` text type track.
32
44
  attr_accessor :closed_captions
33
45
 
46
+ # Arbitrary metadata set for the track either when creating the asset or track. This parameter is set for `text` type and `subtitles` text type track. Max 255 characters.
34
47
  attr_accessor :passthrough
35
48
 
36
49
  class EnumAttributeValidator
@@ -166,6 +179,8 @@ module MuxRuby
166
179
  def valid?
167
180
  type_validator = EnumAttributeValidator.new('String', ['video', 'audio', 'text'])
168
181
  return false unless type_validator.valid?(@type)
182
+ max_channel_layout_validator = EnumAttributeValidator.new('String', ['mono', 'stereo', '5.2', '7.1'])
183
+ return false unless max_channel_layout_validator.valid?(@max_channel_layout)
169
184
  text_type_validator = EnumAttributeValidator.new('String', ['subtitles'])
170
185
  return false unless text_type_validator.valid?(@text_type)
171
186
  true
@@ -176,17 +191,27 @@ module MuxRuby
176
191
  def type=(type)
177
192
  validator = EnumAttributeValidator.new('String', ['video', 'audio', 'text'])
178
193
  unless validator.valid?(type)
179
- fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
194
+ fail ArgumentError, "invalid value for \"type\", must be one of #{validator.allowable_values}."
180
195
  end
181
196
  @type = type
182
197
  end
183
198
 
199
+ # Custom attribute writer method checking allowed values (enum).
200
+ # @param [Object] max_channel_layout Object to be assigned
201
+ def max_channel_layout=(max_channel_layout)
202
+ validator = EnumAttributeValidator.new('String', ['mono', 'stereo', '5.2', '7.1'])
203
+ unless validator.valid?(max_channel_layout)
204
+ fail ArgumentError, "invalid value for \"max_channel_layout\", must be one of #{validator.allowable_values}."
205
+ end
206
+ @max_channel_layout = max_channel_layout
207
+ end
208
+
184
209
  # Custom attribute writer method checking allowed values (enum).
185
210
  # @param [Object] text_type Object to be assigned
186
211
  def text_type=(text_type)
187
212
  validator = EnumAttributeValidator.new('String', ['subtitles'])
188
213
  unless validator.valid?(text_type)
189
- fail ArgumentError, 'invalid value for "text_type", must be one of #{validator.allowable_values}.'
214
+ fail ArgumentError, "invalid value for \"text_type\", must be one of #{validator.allowable_values}."
190
215
  end
191
216
  @text_type = text_type
192
217
  end
@@ -79,7 +79,7 @@ module MuxRuby
79
79
  def master_access=(master_access)
80
80
  validator = EnumAttributeValidator.new('String', ['temporary', 'none'])
81
81
  unless validator.valid?(master_access)
82
- fail ArgumentError, 'invalid value for "master_access", must be one of #{validator.allowable_values}.'
82
+ fail ArgumentError, "invalid value for \"master_access\", must be one of #{validator.allowable_values}."
83
83
  end
84
84
  @master_access = master_access
85
85
  end
@@ -79,7 +79,7 @@ module MuxRuby
79
79
  def mp4_support=(mp4_support)
80
80
  validator = EnumAttributeValidator.new('String', ['standard', 'none'])
81
81
  unless validator.valid?(mp4_support)
82
- fail ArgumentError, 'invalid value for "mp4_support", must be one of #{validator.allowable_values}.'
82
+ fail ArgumentError, "invalid value for \"mp4_support\", must be one of #{validator.allowable_values}."
83
83
  end
84
84
  @mp4_support = mp4_support
85
85
  end
@@ -172,7 +172,7 @@ module MuxRuby
172
172
  def status=(status)
173
173
  validator = EnumAttributeValidator.new('String', ['waiting', 'asset_created', 'errored', 'cancelled', 'timed_out'])
174
174
  unless validator.valid?(status)
175
- fail ArgumentError, 'invalid value for "status", must be one of #{validator.allowable_values}.'
175
+ fail ArgumentError, "invalid value for \"status\", must be one of #{validator.allowable_values}."
176
176
  end
177
177
  @status = status
178
178
  end
@@ -223,10 +223,14 @@ module MuxRuby
223
223
 
224
224
  attr_accessor :asn
225
225
 
226
+ attr_accessor :asn_name
227
+
226
228
  attr_accessor :quality_score
227
229
 
228
230
  attr_accessor :player_software_version
229
231
 
232
+ attr_accessor :player_mux_plugin_name
233
+
230
234
  # Attribute mapping from ruby-style variable name to JSON key.
231
235
  def self.attribute_map
232
236
  {
@@ -338,8 +342,10 @@ module MuxRuby
338
342
  :'player_autoplay' => :'player_autoplay',
339
343
  :'player_height' => :'player_height',
340
344
  :'asn' => :'asn',
345
+ :'asn_name' => :'asn_name',
341
346
  :'quality_score' => :'quality_score',
342
- :'player_software_version' => :'player_software_version'
347
+ :'player_software_version' => :'player_software_version',
348
+ :'player_mux_plugin_name' => :'player_mux_plugin_name'
343
349
  }
344
350
  end
345
351
 
@@ -354,22 +360,22 @@ module MuxRuby
354
360
  :'preroll_requested' => :'BOOLEAN',
355
361
  :'page_type' => :'String',
356
362
  :'startup_score' => :'String',
357
- :'view_seek_duration' => :'String',
363
+ :'view_seek_duration' => :'Integer',
358
364
  :'country_name' => :'String',
359
365
  :'player_source_height' => :'Integer',
360
366
  :'longitude' => :'String',
361
- :'buffering_count' => :'String',
362
- :'video_duration' => :'String',
367
+ :'buffering_count' => :'Integer',
368
+ :'video_duration' => :'Integer',
363
369
  :'player_source_type' => :'String',
364
370
  :'city' => :'String',
365
371
  :'view_id' => :'String',
366
372
  :'platform_description' => :'String',
367
- :'video_startup_preroll_request_time' => :'String',
373
+ :'video_startup_preroll_request_time' => :'Integer',
368
374
  :'viewer_device_name' => :'String',
369
375
  :'video_series' => :'String',
370
376
  :'viewer_application_name' => :'String',
371
377
  :'updated_at' => :'String',
372
- :'view_total_content_playback_time' => :'String',
378
+ :'view_total_content_playback_time' => :'Integer',
373
379
  :'cdn' => :'String',
374
380
  :'player_instance_id' => :'String',
375
381
  :'video_language' => :'String',
@@ -380,8 +386,8 @@ module MuxRuby
380
386
  :'playback_score' => :'String',
381
387
  :'page_url' => :'String',
382
388
  :'metro' => :'String',
383
- :'view_max_request_latency' => :'String',
384
- :'requests_for_first_preroll' => :'String',
389
+ :'view_max_request_latency' => :'Integer',
390
+ :'requests_for_first_preroll' => :'Integer',
385
391
  :'view_total_downscaling' => :'String',
386
392
  :'latitude' => :'String',
387
393
  :'player_source_host_name' => :'String',
@@ -391,7 +397,7 @@ module MuxRuby
391
397
  :'player_language' => :'String',
392
398
  :'page_load_time' => :'Integer',
393
399
  :'viewer_device_category' => :'String',
394
- :'video_startup_preroll_load_time' => :'String',
400
+ :'video_startup_preroll_load_time' => :'Integer',
395
401
  :'player_version' => :'String',
396
402
  :'watch_time' => :'Integer',
397
403
  :'player_source_stream_type' => :'String',
@@ -401,14 +407,14 @@ module MuxRuby
401
407
  :'experiment_name' => :'String',
402
408
  :'viewer_os_version' => :'String',
403
409
  :'player_preload' => :'BOOLEAN',
404
- :'buffering_duration' => :'String',
410
+ :'buffering_duration' => :'Integer',
405
411
  :'player_view_count' => :'Integer',
406
412
  :'player_software' => :'String',
407
- :'player_load_time' => :'String',
413
+ :'player_load_time' => :'Integer',
408
414
  :'platform_summary' => :'String',
409
415
  :'video_encoding_variant' => :'String',
410
416
  :'player_width' => :'Integer',
411
- :'view_seek_count' => :'String',
417
+ :'view_seek_count' => :'Integer',
412
418
  :'viewer_experience_score' => :'String',
413
419
  :'view_error_id' => :'Integer',
414
420
  :'video_variant_name' => :'String',
@@ -420,7 +426,7 @@ module MuxRuby
420
426
  :'events' => :'Array<VideoViewEvent>',
421
427
  :'player_name' => :'String',
422
428
  :'view_start' => :'String',
423
- :'view_average_request_throughput' => :'String',
429
+ :'view_average_request_throughput' => :'Integer',
424
430
  :'video_producer' => :'String',
425
431
  :'error_type_id' => :'Integer',
426
432
  :'mux_viewer_id' => :'String',
@@ -431,7 +437,7 @@ module MuxRuby
431
437
  :'video_content_type' => :'String',
432
438
  :'viewer_os_family' => :'String',
433
439
  :'player_poster' => :'String',
434
- :'view_average_request_latency' => :'String',
440
+ :'view_average_request_latency' => :'Integer',
435
441
  :'video_variant_id' => :'String',
436
442
  :'player_source_duration' => :'Integer',
437
443
  :'player_source_url' => :'String',
@@ -440,7 +446,7 @@ module MuxRuby
440
446
  :'id' => :'String',
441
447
  :'short_time' => :'String',
442
448
  :'rebuffer_percentage' => :'String',
443
- :'time_to_first_frame' => :'String',
449
+ :'time_to_first_frame' => :'Integer',
444
450
  :'viewer_user_id' => :'String',
445
451
  :'video_stream_type' => :'String',
446
452
  :'player_startup_time' => :'Integer',
@@ -454,8 +460,10 @@ module MuxRuby
454
460
  :'player_autoplay' => :'BOOLEAN',
455
461
  :'player_height' => :'Integer',
456
462
  :'asn' => :'Integer',
463
+ :'asn_name' => :'String',
457
464
  :'quality_score' => :'String',
458
- :'player_software_version' => :'String'
465
+ :'player_software_version' => :'String',
466
+ :'player_mux_plugin_name' => :'String'
459
467
  }
460
468
  end
461
469
 
@@ -901,6 +909,10 @@ module MuxRuby
901
909
  self.asn = attributes[:'asn']
902
910
  end
903
911
 
912
+ if attributes.has_key?(:'asn_name')
913
+ self.asn_name = attributes[:'asn_name']
914
+ end
915
+
904
916
  if attributes.has_key?(:'quality_score')
905
917
  self.quality_score = attributes[:'quality_score']
906
918
  end
@@ -908,6 +920,10 @@ module MuxRuby
908
920
  if attributes.has_key?(:'player_software_version')
909
921
  self.player_software_version = attributes[:'player_software_version']
910
922
  end
923
+
924
+ if attributes.has_key?(:'player_mux_plugin_name')
925
+ self.player_mux_plugin_name = attributes[:'player_mux_plugin_name']
926
+ end
911
927
  end
912
928
 
913
929
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -1036,8 +1052,10 @@ module MuxRuby
1036
1052
  player_autoplay == o.player_autoplay &&
1037
1053
  player_height == o.player_height &&
1038
1054
  asn == o.asn &&
1055
+ asn_name == o.asn_name &&
1039
1056
  quality_score == o.quality_score &&
1040
- player_software_version == o.player_software_version
1057
+ player_software_version == o.player_software_version &&
1058
+ player_mux_plugin_name == o.player_mux_plugin_name
1041
1059
  end
1042
1060
 
1043
1061
  # @see the `==` method
@@ -1049,7 +1067,7 @@ module MuxRuby
1049
1067
  # Calculates hash code according to all attributes.
1050
1068
  # @return [Fixnum] Hash code
1051
1069
  def hash
1052
- [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, quality_score, player_software_version].hash
1070
+ [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].hash
1053
1071
  end
1054
1072
 
1055
1073
  # Builds the object from hash
@@ -4,5 +4,5 @@
4
4
  =end
5
5
 
6
6
  module MuxRuby
7
- VERSION = '1.5.0'
7
+ VERSION = '1.9.0'
8
8
  end
data/mux_ruby.gemspec CHANGED
@@ -20,6 +20,8 @@ Gem::Specification.new do |s|
20
20
  s.license = "MIT"
21
21
  s.required_ruby_version = ">= 1.9"
22
22
 
23
+ s.metadata = { "source_code_uri" => "https://github.com/muxinc/mux-ruby" }
24
+
23
25
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
24
26
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
25
27
 
@@ -63,6 +63,7 @@ describe 'AssetsApi' do
63
63
 
64
64
  # unit tests for delete_asset
65
65
  # Delete an asset
66
+ # Deletes a video asset and all its data
66
67
  # @param asset_id The asset ID.
67
68
  # @param [Hash] opts the optional parameters
68
69
  # @return [nil]
@@ -134,6 +135,7 @@ describe 'AssetsApi' do
134
135
 
135
136
  # unit tests for list_assets
136
137
  # List assets
138
+ # List all Mux assets.
137
139
  # @param [Hash] opts the optional parameters
138
140
  # @option opts [Integer] :limit Number of items to include in the response
139
141
  # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60;
@@ -0,0 +1,55 @@
1
+ =begin
2
+ # Mux Ruby - Copyright 2019 Mux Inc.
3
+ # NOTE: This file is auto generated. Do not edit this file manually.
4
+ =end
5
+
6
+ require 'spec_helper'
7
+ require 'json'
8
+
9
+ # Unit tests for MuxRuby::DimensionsApi
10
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
11
+ # Please update as you see appropriate
12
+ describe 'DimensionsApi' do
13
+ before do
14
+ # run before each test
15
+ @instance = MuxRuby::DimensionsApi.new
16
+ end
17
+
18
+ after do
19
+ # run after each test
20
+ end
21
+
22
+ describe 'test an instance of DimensionsApi' do
23
+ it 'should create an instance of DimensionsApi' do
24
+ expect(@instance).to be_instance_of(MuxRuby::DimensionsApi)
25
+ end
26
+ end
27
+
28
+ # unit tests for list_dimension_values
29
+ # Lists the values for a specific dimension
30
+ # Lists the values for a dimension along with a total count of related views. Note: This API replaces the list-filter-values API call.
31
+ # @param dimension_id ID of the Dimension
32
+ # @param [Hash] opts the optional parameters
33
+ # @option opts [Integer] :limit Number of items to include in the response
34
+ # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60;
35
+ # @option opts [Array<String>] :filters Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;country:US). Possible filter names are the same as returned by the List Filters endpoint.
36
+ # @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]&#x3D;). Accepted formats are... * array of epoch timestamps e.g. timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600 * duration string e.g. timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days.
37
+ # @return [ListDimensionValuesResponse]
38
+ describe 'list_dimension_values test' do
39
+ it 'should work' do
40
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
41
+ end
42
+ end
43
+
44
+ # unit tests for list_dimensions
45
+ # List Dimensions
46
+ # List all available dimensions. Note: This API replaces the list-filters API call.
47
+ # @param [Hash] opts the optional parameters
48
+ # @return [ListDimensionsResponse]
49
+ describe 'list_dimensions test' do
50
+ it 'should work' do
51
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
52
+ end
53
+ end
54
+
55
+ end
@@ -27,7 +27,7 @@ describe 'FiltersApi' do
27
27
 
28
28
  # unit tests for list_filter_values
29
29
  # Lists values for a specific filter
30
- # Lists the values for a filter along with a total count of related views
30
+ # Deprecated: The API has been replaced by the list-dimension-values API call. Lists the values for a filter along with a total count of related views.
31
31
  # @param filter_id ID of the Filter
32
32
  # @param [Hash] opts the optional parameters
33
33
  # @option opts [Integer] :limit Number of items to include in the response
@@ -43,7 +43,7 @@ describe 'FiltersApi' do
43
43
 
44
44
  # unit tests for list_filters
45
45
  # List Filters
46
- # Lists all the filters broken out into basic and advanced
46
+ # Deprecated: The API has been replaced by the list-dimensions API call. Lists all the filters broken out into basic and advanced.
47
47
  # @param [Hash] opts the optional parameters
48
48
  # @return [ListFiltersResponse]
49
49
  describe 'list_filters test' do
@@ -0,0 +1,73 @@
1
+ =begin
2
+ # Mux Ruby - Copyright 2019 Mux Inc.
3
+ # NOTE: This file is auto generated. Do not edit this file manually.
4
+ =end
5
+
6
+ require 'spec_helper'
7
+ require 'json'
8
+
9
+ # Unit tests for MuxRuby::IncidentsApi
10
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
11
+ # Please update as you see appropriate
12
+ describe 'IncidentsApi' do
13
+ before do
14
+ # run before each test
15
+ @instance = MuxRuby::IncidentsApi.new
16
+ end
17
+
18
+ after do
19
+ # run after each test
20
+ end
21
+
22
+ describe 'test an instance of IncidentsApi' do
23
+ it 'should create an instance of IncidentsApi' do
24
+ expect(@instance).to be_instance_of(MuxRuby::IncidentsApi)
25
+ end
26
+ end
27
+
28
+ # unit tests for get_incident
29
+ # Get an Incident
30
+ # Returns the details of an incident
31
+ # @param incident_id ID of the Incident
32
+ # @param [Hash] opts the optional parameters
33
+ # @return [IncidentResponse]
34
+ describe 'get_incident test' 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
+ # unit tests for list_incidents
41
+ # List Incidents
42
+ # Returns a list of incidents
43
+ # @param [Hash] opts the optional parameters
44
+ # @option opts [Integer] :limit Number of items to include in the response
45
+ # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60;
46
+ # @option opts [String] :order_by Value to order the results by
47
+ # @option opts [String] :order_direction Sort order.
48
+ # @option opts [String] :status Status to filter incidents by
49
+ # @option opts [String] :severity Severity to filter incidents by
50
+ # @return [ListIncidentsResponse]
51
+ describe 'list_incidents test' do
52
+ it 'should work' do
53
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
54
+ end
55
+ end
56
+
57
+ # unit tests for list_related_incidents
58
+ # List Related Incidents
59
+ # Returns all the incidents that seem related to a specific incident
60
+ # @param incident_id ID of the Incident
61
+ # @param [Hash] opts the optional parameters
62
+ # @option opts [Integer] :limit Number of items to include in the response
63
+ # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60;
64
+ # @option opts [String] :order_by Value to order the results by
65
+ # @option opts [String] :order_direction Sort order.
66
+ # @return [ListRelatedIncidentsResponse]
67
+ describe 'list_related_incidents test' do
68
+ it 'should work' do
69
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
70
+ end
71
+ end
72
+
73
+ end