mux_ruby 1.5.0 → 1.9.0

Sign up to get free protection for your applications and to get access to all the features.
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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: deda4a3da46421f0c7e44873ed3d5bb828c0f324895adeb80df3dc70e1f5f35e
4
- data.tar.gz: 147c244aa891da785e99fb398aa0879655cb3b4869a9ced998f17ba302495de4
3
+ metadata.gz: 57380e4202d460cfdb8bde993e835818799ea3c1df4f52f3f513eec8d10552cc
4
+ data.tar.gz: 1acb2eeb73ab3c670ca81f6cf3095cc8b4681b20d458e235d969f5f103ef072e
5
5
  SHA512:
6
- metadata.gz: 1b34f4e599ad296362367fc1635064c6e6b1716db194c3106347f57c403d9bf0adf3150057756db1c914c717bc425307f0cdc1d54b2205ae77ba64fe485f8754
7
- data.tar.gz: 260c7782a1ee06f800094fb5eda723e728f6dc95501b5f264e457ecb0230f096887cca7bd569bfe31adffa623bf8d466b43659ace6030e976859b55ddfc514ee
6
+ metadata.gz: 01bc513413c7663ef490a4e193755479e7b0e6739f9f1b7ddd621e8f1146a8ec9a219be4d8b78f2b7f259105b26f203b1da04d7835bc34b718fdef3e759988c2
7
+ data.tar.gz: 20adae366398998ae7861471860cb36579d2e6594620ebd6c8073d3872e326b070d33859e2244c2a0420cf5c71c8483358895cf0daf6013dcd5bf76c3c9df809
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mux_ruby (1.5.0)
4
+ mux_ruby (1.9.0)
5
5
  json (~> 2.1, >= 2.1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
@@ -78,4 +78,4 @@ DEPENDENCIES
78
78
  webmock (~> 1.24, >= 1.24.3)
79
79
 
80
80
  BUNDLED WITH
81
- 1.17.2
81
+ 2.2.13
data/README.md CHANGED
@@ -21,8 +21,11 @@ Use `bundle install` to install dependencies if you're developing locally.
21
21
  ## Installation
22
22
 
23
23
  ### Adding to your Gemfile
24
+
25
+ This gem can be sourced from [RubyGems](https://rubygems.org/gems/mux_ruby)
26
+
24
27
  ```
25
- gem 'mux_ruby', :git => 'git://github.com/muxinc/mux-ruby.git'
28
+ gem 'mux_ruby'
26
29
  ```
27
30
 
28
31
  ### Clone and install locally
data/docs/Asset.md CHANGED
@@ -3,26 +3,29 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **id** | **String** | | [optional]
7
- **created_at** | **String** | | [optional]
6
+ **id** | **String** | Unique identifier for the Asset. | [optional]
7
+ **created_at** | **String** | Time at which the object was created. Measured in seconds since the Unix epoch. | [optional]
8
8
  **deleted_at** | **String** | | [optional]
9
- **status** | **String** | | [optional]
10
- **duration** | **Float** | | [optional]
11
- **max_stored_resolution** | **String** | | [optional]
12
- **max_stored_frame_rate** | **Float** | | [optional]
13
- **aspect_ratio** | **String** | | [optional]
9
+ **status** | **String** | The status of the asset. | [optional]
10
+ **duration** | **Float** | The duration of the asset in seconds (max duration for a single asset is 24 hours). | [optional]
11
+ **max_stored_resolution** | **String** | The maximum resolution that has been stored for the asset. The asset may be delivered at lower resolutions depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. | [optional]
12
+ **max_stored_frame_rate** | **Float** | The maximum frame rate that has been stored for the asset. The asset may be delivered at lower frame rates depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. This field may return -1 if the frame rate of the input cannot be reliably determined. | [optional]
13
+ **aspect_ratio** | **String** | The aspect ratio of the asset in the form of `width:height`, for example `16:9`. | [optional]
14
14
  **playback_ids** | [**Array<PlaybackID>**](PlaybackID.md) | | [optional]
15
15
  **tracks** | [**Array<Track>**](Track.md) | | [optional]
16
16
  **errors** | [**AssetErrors**](AssetErrors.md) | | [optional]
17
17
  **per_title_encode** | **BOOLEAN** | | [optional]
18
- **is_live** | **BOOLEAN** | | [optional]
19
- **passthrough** | **String** | | [optional]
20
- **live_stream_id** | **String** | | [optional]
18
+ **is_live** | **BOOLEAN** | Whether the asset is created from a live stream and the live stream is currently `active` and not in `idle` state. | [optional]
19
+ **passthrough** | **String** | Arbitrary metadata set for the asset. Max 255 characters. | [optional]
20
+ **live_stream_id** | **String** | Unique identifier for the live stream. This is an optional parameter added when the asset is created from a live stream. | [optional]
21
21
  **master** | [**AssetMaster**](AssetMaster.md) | | [optional]
22
22
  **master_access** | **String** | | [optional] [default to 'none']
23
23
  **mp4_support** | **String** | | [optional] [default to 'none']
24
- **normalize_audio** | **BOOLEAN** | | [optional] [default to false]
24
+ **source_asset_id** | **String** | Asset Identifier of the video used as the source for creating the clip. | [optional]
25
+ **normalize_audio** | **BOOLEAN** | Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. | [optional] [default to false]
25
26
  **static_renditions** | [**AssetStaticRenditions**](AssetStaticRenditions.md) | | [optional]
26
- **test** | **BOOLEAN** | | [optional]
27
+ **recording_times** | [**Array<AssetRecordingTimes>**](AssetRecordingTimes.md) | An array of individual live stream recording sessions. A recording session is created on each encoder connection during the live stream | [optional]
28
+ **non_standard_input_reasons** | [**AssetNonStandardInputReasons**](AssetNonStandardInputReasons.md) | | [optional]
29
+ **test** | **BOOLEAN** | Indicates this asset is a test asset if the value is `true`. A Test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test assets are watermarked with the Mux logo, limited to 10 seconds, and deleted after 24 hrs. | [optional]
27
30
 
28
31
 
data/docs/AssetErrors.md CHANGED
@@ -3,7 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **type** | **String** | | [optional]
7
- **messages** | **Array<String>** | | [optional]
6
+ **type** | **String** | The type of error that occurred for this asset. | [optional]
7
+ **messages** | **Array<String>** | Error messages with more details. | [optional]
8
8
 
9
9
 
@@ -0,0 +1,16 @@
1
+ # MuxRuby::AssetNonStandardInputReasons
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **video_codec** | **String** | The video codec used on the input file. | [optional]
7
+ **audio_codec** | **String** | The audio codec used on the input file. | [optional]
8
+ **video_gop_size** | **String** | The video key frame Interval (also called as Group of Picture or GOP) of the input file. | [optional]
9
+ **video_frame_rate** | **String** | The video frame rate of the input file. | [optional]
10
+ **video_resolution** | **String** | The video resolution of the input file. | [optional]
11
+ **pixel_aspect_ratio** | **String** | The video pixel aspect ratio of the input file. | [optional]
12
+ **video_edit_list** | **String** | Video Edit List reason indicates that the input file's video track contains a complex Edit Decision List. | [optional]
13
+ **audio_edit_list** | **String** | Audio Edit List reason indicates that the input file's audio track contains a complex Edit Decision List. | [optional]
14
+ **unexpected_media_file_parameters** | **String** | A catch-all reason when the input file in created with non-standard encoding parameters. | [optional]
15
+
16
+
@@ -0,0 +1,9 @@
1
+ # MuxRuby::AssetRecordingTimes
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **started_at** | **DateTime** | The time at which the recording for the live stream started. The time value is Unix epoch time represented in ISO 8601 format. | [optional]
7
+ **duration** | **Float** | The duration of the live stream recorded. The time value is in seconds. | [optional]
8
+
9
+
@@ -3,7 +3,7 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **status** | **String** | * `ready`: All MP4s are downloadable * `preparing`: We are preparing the MP4s * `disabled`: MP4 support was not requested or has been removed * `errored`: There was a Mux internal error that prevented the MP4s from being created | [optional] [default to 'disabled']
6
+ **status** | **String** | Indicates the status of downloadable MP4 versions of this asset. | [optional] [default to 'disabled']
7
7
  **files** | [**Array<AssetStaticRenditionsFiles>**](AssetStaticRenditionsFiles.md) | | [optional]
8
8
 
9
9
 
data/docs/AssetsApi.md CHANGED
@@ -176,6 +176,8 @@ Name | Type | Description | Notes
176
176
 
177
177
  Delete an asset
178
178
 
179
+ Deletes a video asset and all its data
180
+
179
181
  ### Example
180
182
  ```ruby
181
183
  # load the gem
@@ -477,6 +479,8 @@ Name | Type | Description | Notes
477
479
 
478
480
  List assets
479
481
 
482
+ List all Mux assets.
483
+
480
484
  ### Example
481
485
  ```ruby
482
486
  # load the gem
@@ -3,13 +3,13 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **input** | [**Array<InputSettings>**](InputSettings.md) | | [optional]
7
- **playback_policy** | [**Array<PlaybackPolicy>**](PlaybackPolicy.md) | | [optional]
6
+ **input** | [**Array<InputSettings>**](InputSettings.md) | An array of objects that each describe an input file to be used to create the asset. As a shortcut, input can also be a string URL for a file when only one input file is used. See `input[].url` for requirements. | [optional]
7
+ **playback_policy** | [**Array<PlaybackPolicy>**](PlaybackPolicy.md) | An array of playback policy names that you want applied to this asset and available through `playback_ids`. Options include: `\"public\"` (anyone with the playback URL can stream the asset). And `\"signed\"` (an additional access token is required to play the asset). If no playback_policy is set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. | [optional]
8
8
  **per_title_encode** | **BOOLEAN** | | [optional]
9
- **passthrough** | **String** | | [optional]
10
- **mp4_support** | **String** | | [optional]
9
+ **passthrough** | **String** | Arbitrary metadata that will be included in the asset details and related webhooks. Can be used to store your own ID for a video along with the asset. **Max: 255 characters**. | [optional]
10
+ **mp4_support** | **String** | Specify what level (if any) of support for mp4 playback. In most cases you should use our default HLS-based streaming playback ({playback_id}.m3u8) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your vidoes guide](/guides/video/download-your-videos) for more information. | [optional]
11
11
  **normalize_audio** | **BOOLEAN** | Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. | [optional] [default to false]
12
- **master_access** | **String** | | [optional]
13
- **test** | **BOOLEAN** | | [optional]
12
+ **master_access** | **String** | Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your vidoes guide](/guides/video/download-your-videos) for more information. | [optional]
13
+ **test** | **BOOLEAN** | Marks the asset as a test asset when the value is set to true. A Test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test asset are watermarked with the Mux logo, limited to 10 seconds, deleted after 24 hrs. | [optional]
14
14
 
15
15
 
@@ -9,5 +9,6 @@ Name | Type | Description | Notes
9
9
  **passthrough** | **String** | | [optional]
10
10
  **reduced_latency** | **BOOLEAN** | Latency is the time from when the streamer does something in real life to when you see it happen in the player. Set this if you want lower latency for your live stream. Note: Reconnect windows are incompatible with Reduced Latency and will always be set to zero (0) seconds. Read more here: https://mux.com/blog/reduced-latency-for-mux-live-streaming-now-available/ | [optional]
11
11
  **test** | **BOOLEAN** | | [optional]
12
+ **simulcast_targets** | [**Array<CreateSimulcastTargetRequest>**](CreateSimulcastTargetRequest.md) | | [optional]
12
13
 
13
14
 
@@ -6,9 +6,9 @@ Name | Type | Description | Notes
6
6
  **url** | **String** | |
7
7
  **type** | **String** | |
8
8
  **text_type** | **String** | |
9
- **language_code** | **String** | |
10
- **name** | **String** | | [optional]
11
- **closed_captions** | **BOOLEAN** | | [optional]
12
- **passthrough** | **String** | | [optional]
9
+ **language_code** | **String** | The language code value must be a valid BCP 47 specification compliant value. For example, en for English or en-US for the US version of English. |
10
+ **name** | **String** | The name of the track containing a human-readable description. This value must be unqiue across all the text type and subtitles text type tracks. HLS manifest will associate subtitle text track with this value. For example, set the value to \"English\" for subtitles text track with language_code as en-US. If this parameter is not included, Mux will auto-populate based on the language_code value. | [optional]
11
+ **closed_captions** | **BOOLEAN** | Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH). | [optional]
12
+ **passthrough** | **String** | Arbitrary metadata set for the track either when creating the asset or track. | [optional]
13
13
 
14
14
 
@@ -0,0 +1,9 @@
1
+ # MuxRuby::DimensionValue
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **value** | **String** | | [optional]
7
+ **total_count** | **Integer** | | [optional]
8
+
9
+
@@ -0,0 +1,118 @@
1
+ # MuxRuby::DimensionsApi
2
+
3
+ All URIs are relative to *https://api.mux.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**list_dimension_values**](DimensionsApi.md#list_dimension_values) | **GET** /data/v1/dimensions/{DIMENSION_ID} | Lists the values for a specific dimension
8
+ [**list_dimensions**](DimensionsApi.md#list_dimensions) | **GET** /data/v1/dimensions | List Dimensions
9
+
10
+
11
+ # **list_dimension_values**
12
+ > ListDimensionValuesResponse list_dimension_values(dimension_id, opts)
13
+
14
+ Lists the values for a specific dimension
15
+
16
+ Lists the values for a dimension along with a total count of related views. Note: This API replaces the list-filter-values API call.
17
+
18
+ ### Example
19
+ ```ruby
20
+ # load the gem
21
+ require 'mux_ruby'
22
+ # setup authorization
23
+ MuxRuby.configure do |config|
24
+ # Configure HTTP basic authorization: accessToken
25
+ config.username = 'YOUR USERNAME'
26
+ config.password = 'YOUR PASSWORD'
27
+ end
28
+
29
+ api_instance = MuxRuby::DimensionsApi.new
30
+ dimension_id = 'abcd1234' # String | ID of the Dimension
31
+ opts = {
32
+ limit: 25, # Integer | Number of items to include in the response
33
+ page: 1, # Integer | Offset by this many pages, of the size of `limit`
34
+ filters: ['filters_example'], # Array<String> | Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint.
35
+ timeframe: ['timeframe_example'] # Array<String> | Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. timeframe[]=1498867200&timeframe[]=1498953600 * duration string e.g. timeframe[]=24:hours or timeframe[]=7:days.
36
+ }
37
+
38
+ begin
39
+ #Lists the values for a specific dimension
40
+ result = api_instance.list_dimension_values(dimension_id, opts)
41
+ p result
42
+ rescue MuxRuby::ApiError => e
43
+ puts "Exception when calling DimensionsApi->list_dimension_values: #{e}"
44
+ end
45
+ ```
46
+
47
+ ### Parameters
48
+
49
+ Name | Type | Description | Notes
50
+ ------------- | ------------- | ------------- | -------------
51
+ **dimension_id** | **String**| ID of the Dimension |
52
+ **limit** | **Integer**| Number of items to include in the response | [optional] [default to 25]
53
+ **page** | **Integer**| Offset by this many pages, of the size of &#x60;limit&#x60; | [optional] [default to 1]
54
+ **filters** | [**Array&lt;String&gt;**](String.md)| 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. | [optional]
55
+ **timeframe** | [**Array&lt;String&gt;**](String.md)| 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. | [optional]
56
+
57
+ ### Return type
58
+
59
+ [**ListDimensionValuesResponse**](ListDimensionValuesResponse.md)
60
+
61
+ ### Authorization
62
+
63
+ [accessToken](../README.md#accessToken)
64
+
65
+ ### HTTP request headers
66
+
67
+ - **Content-Type**: Not defined
68
+ - **Accept**: application/json
69
+
70
+
71
+
72
+ # **list_dimensions**
73
+ > ListDimensionsResponse list_dimensions
74
+
75
+ List Dimensions
76
+
77
+ List all available dimensions. Note: This API replaces the list-filters API call.
78
+
79
+ ### Example
80
+ ```ruby
81
+ # load the gem
82
+ require 'mux_ruby'
83
+ # setup authorization
84
+ MuxRuby.configure do |config|
85
+ # Configure HTTP basic authorization: accessToken
86
+ config.username = 'YOUR USERNAME'
87
+ config.password = 'YOUR PASSWORD'
88
+ end
89
+
90
+ api_instance = MuxRuby::DimensionsApi.new
91
+
92
+ begin
93
+ #List Dimensions
94
+ result = api_instance.list_dimensions
95
+ p result
96
+ rescue MuxRuby::ApiError => e
97
+ puts "Exception when calling DimensionsApi->list_dimensions: #{e}"
98
+ end
99
+ ```
100
+
101
+ ### Parameters
102
+ This endpoint does not need any parameter.
103
+
104
+ ### Return type
105
+
106
+ [**ListDimensionsResponse**](ListDimensionsResponse.md)
107
+
108
+ ### Authorization
109
+
110
+ [accessToken](../README.md#accessToken)
111
+
112
+ ### HTTP request headers
113
+
114
+ - **Content-Type**: Not defined
115
+ - **Accept**: application/json
116
+
117
+
118
+
@@ -0,0 +1,8 @@
1
+ # MuxRuby::DisableLiveStreamResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Object**](.md) | | [optional]
7
+
8
+
@@ -0,0 +1,8 @@
1
+ # MuxRuby::EnableLiveStreamResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Object**](.md) | | [optional]
7
+
8
+
data/docs/FiltersApi.md CHANGED
@@ -13,7 +13,7 @@ Method | HTTP request | Description
13
13
 
14
14
  Lists values for a specific filter
15
15
 
16
- Lists the values for a filter along with a total count of related views
16
+ 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.
17
17
 
18
18
  ### Example
19
19
  ```ruby
@@ -74,7 +74,7 @@ Name | Type | Description | Notes
74
74
 
75
75
  List Filters
76
76
 
77
- Lists all the filters broken out into basic and advanced
77
+ Deprecated: The API has been replaced by the list-dimensions API call. Lists all the filters broken out into basic and advanced.
78
78
 
79
79
  ### Example
80
80
  ```ruby
@@ -0,0 +1,8 @@
1
+ # MuxRuby::GetAssetOrLiveStreamIdResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**GetAssetOrLiveStreamIdResponseData**](GetAssetOrLiveStreamIdResponseData.md) | | [optional]
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # MuxRuby::GetAssetOrLiveStreamIdResponseData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | The Playback ID used to retrieve the corresponding asset or the live stream ID | [optional]
7
+ **policy** | [**PlaybackPolicy**](PlaybackPolicy.md) | | [optional]
8
+ **object** | [**GetAssetOrLiveStreamIdResponseDataObject**](GetAssetOrLiveStreamIdResponseDataObject.md) | | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # MuxRuby::GetAssetOrLiveStreamIdResponseDataObject
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **id** | **String** | The identifier of the object. | [optional]
7
+ **type** | **String** | Identifies the object type associated with the playback ID. | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # MuxRuby::GetRealTimeBreakdownResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Array&lt;RealTimeBreakdownValue&gt;**](RealTimeBreakdownValue.md) | | [optional]
7
+ **total_row_count** | **Integer** | | [optional]
8
+ **timeframe** | **Array&lt;Integer&gt;** | | [optional]
9
+
10
+
@@ -0,0 +1,11 @@
1
+ # MuxRuby::GetRealTimeHistogramTimeseriesResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **meta** | [**GetRealTimeHistogramTimeseriesResponseMeta**](GetRealTimeHistogramTimeseriesResponseMeta.md) | | [optional]
7
+ **data** | [**Array&lt;RealTimeHistogramTimeseriesDatapoint&gt;**](RealTimeHistogramTimeseriesDatapoint.md) | | [optional]
8
+ **total_row_count** | **Integer** | | [optional]
9
+ **timeframe** | **Array&lt;Integer&gt;** | | [optional]
10
+
11
+
@@ -0,0 +1,8 @@
1
+ # MuxRuby::GetRealTimeHistogramTimeseriesResponseMeta
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **buckets** | [**Array&lt;RealTimeHistogramTimeseriesBucket&gt;**](RealTimeHistogramTimeseriesBucket.md) | | [optional]
7
+
8
+
@@ -0,0 +1,10 @@
1
+ # MuxRuby::GetRealTimeTimeseriesResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Array&lt;RealTimeTimeseriesDatapoint&gt;**](RealTimeTimeseriesDatapoint.md) | | [optional]
7
+ **total_row_count** | **Integer** | | [optional]
8
+ **timeframe** | **Array&lt;Integer&gt;** | | [optional]
9
+
10
+