mux_ruby 2.1.1 → 3.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +4 -4
  4. data/docs/Asset.md +1 -1
  5. data/docs/AssetNonStandardInputReasons.md +2 -0
  6. data/docs/AssetsApi.md +73 -0
  7. data/docs/CreateAssetRequest.md +1 -1
  8. data/docs/CreateLiveStreamRequest.md +6 -2
  9. data/docs/CreatePlaybackRestrictionRequest.md +18 -0
  10. data/docs/CreateSimulcastTargetRequest.md +1 -1
  11. data/docs/CreateTrackRequest.md +1 -1
  12. data/docs/DeliveryUsageApi.md +4 -2
  13. data/docs/DimensionsApi.md +4 -4
  14. data/docs/ErrorsApi.md +4 -4
  15. data/docs/ExportsApi.md +1 -1
  16. data/docs/FiltersApi.md +6 -6
  17. data/docs/GetLiveStreamPlaybackIDResponse.md +18 -0
  18. data/docs/InputSettings.md +1 -1
  19. data/docs/LiveStream.md +7 -3
  20. data/docs/LiveStreamEmbeddedSubtitleSettings.md +24 -0
  21. data/docs/LiveStreamsApi.md +217 -0
  22. data/docs/MetricsApi.md +20 -20
  23. data/docs/PlaybackRestriction.md +24 -0
  24. data/docs/PlaybackRestrictionResponse.md +15 -0
  25. data/docs/PlaybackRestrictionsApi.md +367 -0
  26. data/docs/RealTimeApi.md +6 -6
  27. data/docs/ReferrerDomainRestriction.md +20 -0
  28. data/docs/SimulcastTarget.md +1 -1
  29. data/docs/Track.md +1 -1
  30. data/docs/UpdateAssetRequest.md +18 -0
  31. data/docs/UpdateLiveStreamEmbeddedSubtitlesRequest.md +18 -0
  32. data/docs/UpdateLiveStreamRequest.md +22 -0
  33. data/docs/UpdateReferrerDomainRestrictionRequest.md +15 -0
  34. data/docs/VideoViewsApi.md +4 -4
  35. data/examples/data/exercise-errors.rb +0 -2
  36. data/examples/video/exercise-assets.rb +1 -0
  37. data/gen/generator-config.json +1 -1
  38. data/lib/mux_ruby/api/assets_api.rb +71 -0
  39. data/lib/mux_ruby/api/delivery_usage_api.rb +5 -2
  40. data/lib/mux_ruby/api/dimensions_api.rb +4 -4
  41. data/lib/mux_ruby/api/errors_api.rb +4 -4
  42. data/lib/mux_ruby/api/exports_api.rb +2 -2
  43. data/lib/mux_ruby/api/filters_api.rb +8 -8
  44. data/lib/mux_ruby/api/live_streams_api.rb +209 -0
  45. data/lib/mux_ruby/api/metrics_api.rb +20 -20
  46. data/lib/mux_ruby/api/playback_restrictions_api.rb +345 -0
  47. data/lib/mux_ruby/api/real_time_api.rb +6 -6
  48. data/lib/mux_ruby/api/video_views_api.rb +4 -4
  49. data/lib/mux_ruby/models/asset.rb +1 -1
  50. data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +23 -1
  51. data/lib/mux_ruby/models/create_asset_request.rb +1 -1
  52. data/lib/mux_ruby/models/create_live_stream_request.rb +59 -3
  53. data/lib/mux_ruby/models/create_playback_restriction_request.rb +218 -0
  54. data/lib/mux_ruby/models/create_simulcast_target_request.rb +1 -1
  55. data/lib/mux_ruby/models/create_track_request.rb +1 -1
  56. data/lib/mux_ruby/models/get_live_stream_playback_id_response.rb +218 -0
  57. data/lib/mux_ruby/models/input_settings.rb +1 -1
  58. data/lib/mux_ruby/models/input_settings_overlay_settings.rb +1 -1
  59. data/lib/mux_ruby/models/live_stream.rb +38 -4
  60. data/lib/mux_ruby/models/live_stream_embedded_subtitle_settings.rb +287 -0
  61. data/lib/mux_ruby/models/playback_restriction.rb +248 -0
  62. data/lib/mux_ruby/models/playback_restriction_response.rb +209 -0
  63. data/lib/mux_ruby/models/referrer_domain_restriction.rb +234 -0
  64. data/lib/mux_ruby/models/simulcast_target.rb +1 -1
  65. data/lib/mux_ruby/models/track.rb +1 -13
  66. data/lib/mux_ruby/models/update_asset_request.rb +219 -0
  67. data/lib/mux_ruby/models/update_live_stream_embedded_subtitles_request.rb +221 -0
  68. data/lib/mux_ruby/models/update_live_stream_request.rb +297 -0
  69. data/lib/mux_ruby/models/update_referrer_domain_restriction_request.rb +209 -0
  70. data/lib/mux_ruby/version.rb +1 -1
  71. data/lib/mux_ruby.rb +11 -0
  72. data/spec/api/playback_restrictions_api_spec.rb +97 -0
  73. data/spec/models/create_playback_restriction_request_spec.rb +34 -0
  74. data/spec/models/get_live_stream_playback_id_response_spec.rb +34 -0
  75. data/spec/models/live_stream_embedded_subtitle_settings_spec.rb +56 -0
  76. data/spec/models/playback_restriction_response_spec.rb +28 -0
  77. data/spec/models/playback_restriction_spec.rb +52 -0
  78. data/spec/models/referrer_domain_restriction_spec.rb +40 -0
  79. data/spec/models/update_asset_request_spec.rb +34 -0
  80. data/spec/models/update_live_stream_embedded_subtitles_request_spec.rb +34 -0
  81. data/spec/models/update_live_stream_request_spec.rb +50 -0
  82. data/spec/models/update_referrer_domain_restriction_request_spec.rb +28 -0
  83. metadata +137 -93
@@ -0,0 +1,367 @@
1
+ # MuxRuby::PlaybackRestrictionsApi
2
+
3
+ All URIs are relative to *https://api.mux.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**create_playback_restriction**](PlaybackRestrictionsApi.md#create_playback_restriction) | **POST** /video/v1/playback-restrictions | Create a Playback Restriction |
8
+ | [**delete_playback_restriction**](PlaybackRestrictionsApi.md#delete_playback_restriction) | **DELETE** /video/v1/playback-restrictions/{PLAYBACK_RESTRICTION_ID} | Delete a Playback Restriction |
9
+ | [**get_playback_restriction**](PlaybackRestrictionsApi.md#get_playback_restriction) | **GET** /video/v1/playback-restrictions/{PLAYBACK_RESTRICTION_ID} | Retrieve a Playback Restriction |
10
+ | [**list_playback_restrictions**](PlaybackRestrictionsApi.md#list_playback_restrictions) | **GET** /video/v1/playback-restrictions | List Playback Restrictions |
11
+ | [**update_referrer_domain_restriction**](PlaybackRestrictionsApi.md#update_referrer_domain_restriction) | **PUT** /video/v1/playback-restrictions/{PLAYBACK_RESTRICTION_ID}/referrer | Update the Referrer Playback Restriction |
12
+
13
+
14
+ ## create_playback_restriction
15
+
16
+ > <PlaybackRestriction> create_playback_restriction(create_playback_restriction_request)
17
+
18
+ Create a Playback Restriction
19
+
20
+ Create a new Playback Restriction.
21
+
22
+ ### Examples
23
+
24
+ ```ruby
25
+ require 'time'
26
+ require 'mux_ruby'
27
+ # setup authorization
28
+ MuxRuby.configure do |config|
29
+ # Configure HTTP basic authorization: accessToken
30
+ config.username = 'YOUR USERNAME'
31
+ config.password = 'YOUR PASSWORD'
32
+ end
33
+
34
+ api_instance = MuxRuby::PlaybackRestrictionsApi.new
35
+ create_playback_restriction_request = MuxRuby::CreatePlaybackRestrictionRequest.new # CreatePlaybackRestrictionRequest |
36
+
37
+ begin
38
+ # Create a Playback Restriction
39
+ result = api_instance.create_playback_restriction(create_playback_restriction_request)
40
+ p result
41
+ rescue MuxRuby::ApiError => e
42
+ puts "Error when calling PlaybackRestrictionsApi->create_playback_restriction: #{e}"
43
+ end
44
+ ```
45
+
46
+ #### Using the create_playback_restriction_with_http_info variant
47
+
48
+ This returns an Array which contains the response data, status code and headers.
49
+
50
+ > <Array(<PlaybackRestriction>, Integer, Hash)> create_playback_restriction_with_http_info(create_playback_restriction_request)
51
+
52
+ ```ruby
53
+ begin
54
+ # Create a Playback Restriction
55
+ data, status_code, headers = api_instance.create_playback_restriction_with_http_info(create_playback_restriction_request)
56
+ p status_code # => 2xx
57
+ p headers # => { ... }
58
+ p data # => <PlaybackRestriction>
59
+ rescue MuxRuby::ApiError => e
60
+ puts "Error when calling PlaybackRestrictionsApi->create_playback_restriction_with_http_info: #{e}"
61
+ end
62
+ ```
63
+
64
+ ### Parameters
65
+
66
+ | Name | Type | Description | Notes |
67
+ | ---- | ---- | ----------- | ----- |
68
+ | **create_playback_restriction_request** | [**CreatePlaybackRestrictionRequest**](CreatePlaybackRestrictionRequest.md) | | |
69
+
70
+ ### Return type
71
+
72
+ [**PlaybackRestriction**](PlaybackRestriction.md)
73
+
74
+ ### Authorization
75
+
76
+ [accessToken](../README.md#accessToken)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: application/json
81
+ - **Accept**: application/json
82
+
83
+
84
+ ## delete_playback_restriction
85
+
86
+ > delete_playback_restriction(playback_restriction_id)
87
+
88
+ Delete a Playback Restriction
89
+
90
+ Deletes a single Playback Restriction.
91
+
92
+ ### Examples
93
+
94
+ ```ruby
95
+ require 'time'
96
+ require 'mux_ruby'
97
+ # setup authorization
98
+ MuxRuby.configure do |config|
99
+ # Configure HTTP basic authorization: accessToken
100
+ config.username = 'YOUR USERNAME'
101
+ config.password = 'YOUR PASSWORD'
102
+ end
103
+
104
+ api_instance = MuxRuby::PlaybackRestrictionsApi.new
105
+ playback_restriction_id = 'playback_restriction_id_example' # String | ID of the Playback Restriction.
106
+
107
+ begin
108
+ # Delete a Playback Restriction
109
+ api_instance.delete_playback_restriction(playback_restriction_id)
110
+ rescue MuxRuby::ApiError => e
111
+ puts "Error when calling PlaybackRestrictionsApi->delete_playback_restriction: #{e}"
112
+ end
113
+ ```
114
+
115
+ #### Using the delete_playback_restriction_with_http_info variant
116
+
117
+ This returns an Array which contains the response data (`nil` in this case), status code and headers.
118
+
119
+ > <Array(nil, Integer, Hash)> delete_playback_restriction_with_http_info(playback_restriction_id)
120
+
121
+ ```ruby
122
+ begin
123
+ # Delete a Playback Restriction
124
+ data, status_code, headers = api_instance.delete_playback_restriction_with_http_info(playback_restriction_id)
125
+ p status_code # => 2xx
126
+ p headers # => { ... }
127
+ p data # => nil
128
+ rescue MuxRuby::ApiError => e
129
+ puts "Error when calling PlaybackRestrictionsApi->delete_playback_restriction_with_http_info: #{e}"
130
+ end
131
+ ```
132
+
133
+ ### Parameters
134
+
135
+ | Name | Type | Description | Notes |
136
+ | ---- | ---- | ----------- | ----- |
137
+ | **playback_restriction_id** | **String** | ID of the Playback Restriction. | |
138
+
139
+ ### Return type
140
+
141
+ nil (empty response body)
142
+
143
+ ### Authorization
144
+
145
+ [accessToken](../README.md#accessToken)
146
+
147
+ ### HTTP request headers
148
+
149
+ - **Content-Type**: Not defined
150
+ - **Accept**: Not defined
151
+
152
+
153
+ ## get_playback_restriction
154
+
155
+ > <PlaybackRestriction> get_playback_restriction(playback_restriction_id)
156
+
157
+ Retrieve a Playback Restriction
158
+
159
+ Retrieves a Playback Restriction associated with the unique identifier.
160
+
161
+ ### Examples
162
+
163
+ ```ruby
164
+ require 'time'
165
+ require 'mux_ruby'
166
+ # setup authorization
167
+ MuxRuby.configure do |config|
168
+ # Configure HTTP basic authorization: accessToken
169
+ config.username = 'YOUR USERNAME'
170
+ config.password = 'YOUR PASSWORD'
171
+ end
172
+
173
+ api_instance = MuxRuby::PlaybackRestrictionsApi.new
174
+ playback_restriction_id = 'playback_restriction_id_example' # String | ID of the Playback Restriction.
175
+
176
+ begin
177
+ # Retrieve a Playback Restriction
178
+ result = api_instance.get_playback_restriction(playback_restriction_id)
179
+ p result
180
+ rescue MuxRuby::ApiError => e
181
+ puts "Error when calling PlaybackRestrictionsApi->get_playback_restriction: #{e}"
182
+ end
183
+ ```
184
+
185
+ #### Using the get_playback_restriction_with_http_info variant
186
+
187
+ This returns an Array which contains the response data, status code and headers.
188
+
189
+ > <Array(<PlaybackRestriction>, Integer, Hash)> get_playback_restriction_with_http_info(playback_restriction_id)
190
+
191
+ ```ruby
192
+ begin
193
+ # Retrieve a Playback Restriction
194
+ data, status_code, headers = api_instance.get_playback_restriction_with_http_info(playback_restriction_id)
195
+ p status_code # => 2xx
196
+ p headers # => { ... }
197
+ p data # => <PlaybackRestriction>
198
+ rescue MuxRuby::ApiError => e
199
+ puts "Error when calling PlaybackRestrictionsApi->get_playback_restriction_with_http_info: #{e}"
200
+ end
201
+ ```
202
+
203
+ ### Parameters
204
+
205
+ | Name | Type | Description | Notes |
206
+ | ---- | ---- | ----------- | ----- |
207
+ | **playback_restriction_id** | **String** | ID of the Playback Restriction. | |
208
+
209
+ ### Return type
210
+
211
+ [**PlaybackRestriction**](PlaybackRestriction.md)
212
+
213
+ ### Authorization
214
+
215
+ [accessToken](../README.md#accessToken)
216
+
217
+ ### HTTP request headers
218
+
219
+ - **Content-Type**: Not defined
220
+ - **Accept**: application/json
221
+
222
+
223
+ ## list_playback_restrictions
224
+
225
+ > <Array<PlaybackRestriction>> list_playback_restrictions(opts)
226
+
227
+ List Playback Restrictions
228
+
229
+ Returns a list of all Playback Restrictions.
230
+
231
+ ### Examples
232
+
233
+ ```ruby
234
+ require 'time'
235
+ require 'mux_ruby'
236
+ # setup authorization
237
+ MuxRuby.configure do |config|
238
+ # Configure HTTP basic authorization: accessToken
239
+ config.username = 'YOUR USERNAME'
240
+ config.password = 'YOUR PASSWORD'
241
+ end
242
+
243
+ api_instance = MuxRuby::PlaybackRestrictionsApi.new
244
+ opts = {
245
+ page: 56, # Integer | Offset by this many pages, of the size of `limit`
246
+ limit: 56 # Integer | Number of items to include in the response
247
+ }
248
+
249
+ begin
250
+ # List Playback Restrictions
251
+ result = api_instance.list_playback_restrictions(opts)
252
+ p result
253
+ rescue MuxRuby::ApiError => e
254
+ puts "Error when calling PlaybackRestrictionsApi->list_playback_restrictions: #{e}"
255
+ end
256
+ ```
257
+
258
+ #### Using the list_playback_restrictions_with_http_info variant
259
+
260
+ This returns an Array which contains the response data, status code and headers.
261
+
262
+ > <Array(<Array<PlaybackRestriction>>, Integer, Hash)> list_playback_restrictions_with_http_info(opts)
263
+
264
+ ```ruby
265
+ begin
266
+ # List Playback Restrictions
267
+ data, status_code, headers = api_instance.list_playback_restrictions_with_http_info(opts)
268
+ p status_code # => 2xx
269
+ p headers # => { ... }
270
+ p data # => <Array<PlaybackRestriction>>
271
+ rescue MuxRuby::ApiError => e
272
+ puts "Error when calling PlaybackRestrictionsApi->list_playback_restrictions_with_http_info: #{e}"
273
+ end
274
+ ```
275
+
276
+ ### Parameters
277
+
278
+ | Name | Type | Description | Notes |
279
+ | ---- | ---- | ----------- | ----- |
280
+ | **page** | **Integer** | Offset by this many pages, of the size of &#x60;limit&#x60; | [optional][default to 1] |
281
+ | **limit** | **Integer** | Number of items to include in the response | [optional][default to 25] |
282
+
283
+ ### Return type
284
+
285
+ [**Array&lt;PlaybackRestriction&gt;**](PlaybackRestriction.md)
286
+
287
+ ### Authorization
288
+
289
+ [accessToken](../README.md#accessToken)
290
+
291
+ ### HTTP request headers
292
+
293
+ - **Content-Type**: Not defined
294
+ - **Accept**: application/json
295
+
296
+
297
+ ## update_referrer_domain_restriction
298
+
299
+ > <PlaybackRestriction> update_referrer_domain_restriction(playback_restriction_id, body)
300
+
301
+ Update the Referrer Playback Restriction
302
+
303
+ Allows you to modify the list of domians or change how Mux validates playback requests without the `Referer` HTTP header. The Referrer restriction fully replaces the old list with this new list of domains.
304
+
305
+ ### Examples
306
+
307
+ ```ruby
308
+ require 'time'
309
+ require 'mux_ruby'
310
+ # setup authorization
311
+ MuxRuby.configure do |config|
312
+ # Configure HTTP basic authorization: accessToken
313
+ config.username = 'YOUR USERNAME'
314
+ config.password = 'YOUR PASSWORD'
315
+ end
316
+
317
+ api_instance = MuxRuby::PlaybackRestrictionsApi.new
318
+ playback_restriction_id = 'playback_restriction_id_example' # String | ID of the Playback Restriction.
319
+ body = {"allowed_domains":["*.example.com"],"allow_no_referrer":true} # ReferrerDomainRestriction |
320
+
321
+ begin
322
+ # Update the Referrer Playback Restriction
323
+ result = api_instance.update_referrer_domain_restriction(playback_restriction_id, body)
324
+ p result
325
+ rescue MuxRuby::ApiError => e
326
+ puts "Error when calling PlaybackRestrictionsApi->update_referrer_domain_restriction: #{e}"
327
+ end
328
+ ```
329
+
330
+ #### Using the update_referrer_domain_restriction_with_http_info variant
331
+
332
+ This returns an Array which contains the response data, status code and headers.
333
+
334
+ > <Array(<PlaybackRestriction>, Integer, Hash)> update_referrer_domain_restriction_with_http_info(playback_restriction_id, body)
335
+
336
+ ```ruby
337
+ begin
338
+ # Update the Referrer Playback Restriction
339
+ data, status_code, headers = api_instance.update_referrer_domain_restriction_with_http_info(playback_restriction_id, body)
340
+ p status_code # => 2xx
341
+ p headers # => { ... }
342
+ p data # => <PlaybackRestriction>
343
+ rescue MuxRuby::ApiError => e
344
+ puts "Error when calling PlaybackRestrictionsApi->update_referrer_domain_restriction_with_http_info: #{e}"
345
+ end
346
+ ```
347
+
348
+ ### Parameters
349
+
350
+ | Name | Type | Description | Notes |
351
+ | ---- | ---- | ----------- | ----- |
352
+ | **playback_restriction_id** | **String** | ID of the Playback Restriction. | |
353
+ | **body** | **ReferrerDomainRestriction** | | |
354
+
355
+ ### Return type
356
+
357
+ [**PlaybackRestriction**](PlaybackRestriction.md)
358
+
359
+ ### Authorization
360
+
361
+ [accessToken](../README.md#accessToken)
362
+
363
+ ### HTTP request headers
364
+
365
+ - **Content-Type**: application/json
366
+ - **Accept**: application/json
367
+
data/docs/RealTimeApi.md CHANGED
@@ -36,7 +36,7 @@ realtime_metric_id = 'current-concurrent-viewers' # String | ID of the Realtime
36
36
  opts = {
37
37
  dimension: 'asn', # String | Dimension the specified value belongs to
38
38
  timestamp: 8.14, # Float | Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp.
39
- filters: ['inner_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.
39
+ filters: ['inner_example'], # Array<String> | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
40
40
  order_by: 'negative_impact', # String | Value to order the results by
41
41
  order_direction: 'asc' # String | Sort order.
42
42
  }
@@ -75,7 +75,7 @@ end
75
75
  | **realtime_metric_id** | **String** | ID of the Realtime Metric | |
76
76
  | **dimension** | **String** | Dimension the specified value belongs to | [optional] |
77
77
  | **timestamp** | **Float** | Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp. | [optional] |
78
- | **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] |
78
+ | **filters** | [**Array&lt;String&gt;**](String.md) | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a &#x60;!&#x60; character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * &#x60;filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;!country:US&#x60; | [optional] |
79
79
  | **order_by** | **String** | Value to order the results by | [optional] |
80
80
  | **order_direction** | **String** | Sort order. | [optional] |
81
81
 
@@ -116,7 +116,7 @@ end
116
116
  api_instance = MuxRuby::RealTimeApi.new
117
117
  realtime_histogram_metric_id = 'video-startup-time' # String | ID of the Realtime Histogram Metric
118
118
  opts = {
119
- filters: ['inner_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.
119
+ filters: ['inner_example'] # Array<String> | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
120
120
  }
121
121
 
122
122
  begin
@@ -151,7 +151,7 @@ end
151
151
  | Name | Type | Description | Notes |
152
152
  | ---- | ---- | ----------- | ----- |
153
153
  | **realtime_histogram_metric_id** | **String** | ID of the Realtime Histogram Metric | |
154
- | **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] |
154
+ | **filters** | [**Array&lt;String&gt;**](String.md) | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a &#x60;!&#x60; character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * &#x60;filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;!country:US&#x60; | [optional] |
155
155
 
156
156
  ### Return type
157
157
 
@@ -190,7 +190,7 @@ end
190
190
  api_instance = MuxRuby::RealTimeApi.new
191
191
  realtime_metric_id = 'current-concurrent-viewers' # String | ID of the Realtime Metric
192
192
  opts = {
193
- filters: ['inner_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.
193
+ filters: ['inner_example'] # Array<String> | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
194
194
  }
195
195
 
196
196
  begin
@@ -225,7 +225,7 @@ end
225
225
  | Name | Type | Description | Notes |
226
226
  | ---- | ---- | ----------- | ----- |
227
227
  | **realtime_metric_id** | **String** | ID of the Realtime Metric | |
228
- | **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] |
228
+ | **filters** | [**Array&lt;String&gt;**](String.md) | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a &#x60;!&#x60; character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * &#x60;filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;!country:US&#x60; | [optional] |
229
229
 
230
230
  ### Return type
231
231
 
@@ -0,0 +1,20 @@
1
+ # MuxRuby::ReferrerDomainRestriction
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **allowed_domains** | **Array&lt;String&gt;** | List of domains allowed to play videos. Possible values are * &#x60;[]&#x60; Empty Array indicates deny video playback requests for all domains * &#x60;[\&quot;*\&quot;]&#x60; A Single Wildcard &#x60;*&#x60; entry means allow video playback requests from any domain * &#x60;[\&quot;*.example.com\&quot;, \&quot;foo.com\&quot;]&#x60; A list of up to 10 domains or valid dns-style wildcards | [optional] |
8
+ | **allow_no_referrer** | **Boolean** | A boolean to determine whether to allow or deny HTTP requests without &#x60;Referer&#x60; HTTP request header. Playback requests coming from non-web/native applications like iOS, Android or smart TVs will not have a &#x60;Referer&#x60; HTTP header. Set this value to &#x60;true&#x60; to allow these playback requests. | [optional][default to false] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'mux_ruby'
14
+
15
+ instance = MuxRuby::ReferrerDomainRestriction.new(
16
+ allowed_domains: null,
17
+ allow_no_referrer: null
18
+ )
19
+ ```
20
+
@@ -5,7 +5,7 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **id** | **String** | ID of the Simulcast Target | [optional] |
8
- | **passthrough** | **String** | Arbitrary Metadata set when creating a simulcast target. | [optional] |
8
+ | **passthrough** | **String** | Arbitrary user-supplied metadata set when creating a simulcast target. | [optional] |
9
9
  | **status** | **String** | The current status of the simulcast target. See Statuses below for detailed description. * &#x60;idle&#x60;: Default status. When the parent live stream is in disconnected status, simulcast targets will be idle state. * &#x60;starting&#x60;: The simulcast target transitions into this state when the parent live stream transition into connected state. * &#x60;broadcasting&#x60;: The simulcast target has successfully connected to the third party live streaming service and is pushing video to that service. * &#x60;errored&#x60;: The simulcast target encountered an error either while attempting to connect to the third party live streaming service, or mid-broadcasting. Compared to other errored statuses in the Mux Video API, a simulcast may transition back into the broadcasting state if a connection with the service can be re-established. | [optional] |
10
10
  | **stream_key** | **String** | Stream Key represents an stream identifier for the third party live streaming service to simulcast the parent live stream too. | [optional] |
11
11
  | **url** | **String** | RTMP hostname including the application name for the third party live streaming service. | [optional] |
data/docs/Track.md CHANGED
@@ -16,7 +16,7 @@
16
16
  | **language_code** | **String** | The language code value represents [BCP 47](https://tools.ietf.org/html/bcp47) specification compliant value. For example, &#x60;en&#x60; for English or &#x60;en-US&#x60; for the US version of English. This parameter is set for &#x60;text&#x60; type and &#x60;subtitles&#x60; text type track. | [optional] |
17
17
  | **name** | **String** | 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 \&quot;English\&quot; for subtitles text track for the &#x60;language_code&#x60; value of &#x60;en-US&#x60;. This parameter is set for the &#x60;text&#x60; type and &#x60;subtitles&#x60; text type track. | [optional] |
18
18
  | **closed_captions** | **Boolean** | Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH). This parameter is set for the &#x60;text&#x60; type and &#x60;subtitles&#x60; text type track. | [optional] |
19
- | **passthrough** | **String** | Arbitrary metadata set for the track either when creating the asset or track. This parameter is set for &#x60;text&#x60; type and &#x60;subtitles&#x60; text type track. Max 255 characters. | [optional] |
19
+ | **passthrough** | **String** | Arbitrary user-supplied metadata set for the track either when creating the asset or track. This parameter is set for &#x60;text&#x60; type and &#x60;subtitles&#x60; text type track. Max 255 characters. | [optional] |
20
20
 
21
21
  ## Example
22
22
 
@@ -0,0 +1,18 @@
1
+ # MuxRuby::UpdateAssetRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **passthrough** | **String** | Arbitrary metadata set for the Asset. Max 255 characters. In order to clear this value, the field should be included with an empty string value. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'mux_ruby'
13
+
14
+ instance = MuxRuby::UpdateAssetRequest.new(
15
+ passthrough: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,18 @@
1
+ # MuxRuby::UpdateLiveStreamEmbeddedSubtitlesRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **embedded_subtitles** | [**Array&lt;LiveStreamEmbeddedSubtitleSettings&gt;**](LiveStreamEmbeddedSubtitleSettings.md) | Describe the embedded closed caption contents of the incoming live stream. | [optional] |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'mux_ruby'
13
+
14
+ instance = MuxRuby::UpdateLiveStreamEmbeddedSubtitlesRequest.new(
15
+ embedded_subtitles: null
16
+ )
17
+ ```
18
+
@@ -0,0 +1,22 @@
1
+ # MuxRuby::UpdateLiveStreamRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **passthrough** | **String** | Arbitrary user-supplied metadata set for the live stream. Max 255 characters. In order to clear this value, the field should be included with an empty-string value. | [optional] |
8
+ | **latency_mode** | **String** | Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Note: Reconnect windows are incompatible with Reduced Latency and Low Latency and will always be set to zero (0) seconds. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/ | [optional] |
9
+ | **reconnect_window** | **Float** | When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'mux_ruby'
15
+
16
+ instance = MuxRuby::UpdateLiveStreamRequest.new(
17
+ passthrough: null,
18
+ latency_mode: null,
19
+ reconnect_window: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,15 @@
1
+ # MuxRuby::UpdateReferrerDomainRestrictionRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'mux_ruby'
12
+
13
+ instance = MuxRuby::UpdateReferrerDomainRestrictionRequest.new()
14
+ ```
15
+
@@ -105,8 +105,8 @@ opts = {
105
105
  viewer_id: 'viewer_id_example', # String | Viewer ID to filter results by. This value may be provided by the integration, or may be created by Mux.
106
106
  error_id: 56, # Integer | Filter video views by the provided error ID (as returned in the error_type_id field in the list video views endpoint). If you provide any as the error ID, this will filter the results to those with any error.
107
107
  order_direction: 'asc', # String | Sort order.
108
- filters: ['inner_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.
109
- timeframe: ['inner_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.
108
+ filters: ['inner_example'], # Array<String> | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
109
+ timeframe: ['inner_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`
110
110
  }
111
111
 
112
112
  begin
@@ -145,8 +145,8 @@ end
145
145
  | **viewer_id** | **String** | Viewer ID to filter results by. This value may be provided by the integration, or may be created by Mux. | [optional] |
146
146
  | **error_id** | **Integer** | Filter video views by the provided error ID (as returned in the error_type_id field in the list video views endpoint). If you provide any as the error ID, this will filter the results to those with any error. | [optional] |
147
147
  | **order_direction** | **String** | Sort order. | [optional] |
148
- | **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] |
149
- | **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] |
148
+ | **filters** | [**Array&lt;String&gt;**](String.md) | Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a &#x60;!&#x60; character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * &#x60;filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;!country:US&#x60; | [optional] |
149
+ | **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. &#x60;timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600&#x60; * duration string e.g. &#x60;timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days&#x60; | [optional] |
150
150
 
151
151
  ### Return type
152
152
 
@@ -18,6 +18,4 @@ errors_api = MuxRuby::ErrorsApi.new
18
18
  errors = errors_api.list_errors(:filters => ['browser:Safari'], :timeframe => ['7:days'])
19
19
  assert errors != nil
20
20
  assert errors.data != nil
21
- assert errors.data.length > 0
22
- assert errors.data.first.id != nil
23
21
  puts "list-errors OK ✅"
@@ -119,6 +119,7 @@ assert asset_with_2_captions.data.tracks.length == 4 # Audio, Video, French that
119
119
  puts "create-asset-track OK ✅"
120
120
 
121
121
  # ========== delete-asset-track ==========
122
+ Kernel.sleep(5)
122
123
  assets_api.delete_asset_track(create_response.data.id, subtitles_track.data.id)
123
124
  asset_with_1_captions = assets_api.get_asset(create_response.data.id)
124
125
  assert asset_with_1_captions.data.tracks.length == 3 # Audio, Video, French that we ingested with the asset
@@ -8,5 +8,5 @@
8
8
  "gemSourceLocation": "https://github.com/muxinc/mux-ruby",
9
9
  "gemLicense": "MIT",
10
10
  "moduleName": "MuxRuby",
11
- "gemVersion": "2.1.1"
11
+ "gemVersion": "3.2.0"
12
12
  }