mux_ruby 3.3.0 → 3.5.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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +13 -7
- data/docs/Asset.md +1 -1
- data/docs/AssetNonStandardInputReasons.md +2 -2
- data/docs/AssetResponse.md +1 -1
- data/docs/AssetsApi.md +8 -0
- data/docs/Broadcast.md +30 -0
- data/docs/BroadcastLayout.md +15 -0
- data/docs/BroadcastResolution.md +15 -0
- data/docs/BroadcastResponse.md +18 -0
- data/docs/BroadcastStatus.md +15 -0
- data/docs/CreateBroadcastRequest.md +26 -0
- data/docs/CreateLiveStreamRequest.md +3 -1
- data/docs/CreatePlaybackIDResponse.md +1 -1
- data/docs/CreatePlaybackRestrictionRequest.md +1 -1
- data/docs/CreateSimulcastTargetRequest.md +1 -1
- data/docs/CreateSpaceRequest.md +22 -0
- data/docs/CreateTrackResponse.md +1 -1
- data/docs/DirectUploadsApi.md +6 -0
- data/docs/GetAssetPlaybackIDResponse.md +1 -1
- data/docs/GetLiveStreamPlaybackIDResponse.md +1 -1
- data/docs/IncidentResponse.md +1 -1
- data/docs/InputSettings.md +3 -3
- data/docs/ListPlaybackRestrictionsResponse.md +18 -0
- data/docs/ListSpacesResponse.md +18 -0
- data/docs/LiveStream.md +3 -1
- data/docs/LiveStreamResponse.md +1 -1
- data/docs/LiveStreamsApi.md +16 -4
- data/docs/MetricsApi.md +3 -3
- data/docs/PlaybackRestrictionResponse.md +4 -1
- data/docs/PlaybackRestrictionsApi.md +21 -21
- data/docs/SigningKeyResponse.md +1 -1
- data/docs/SimulcastTargetResponse.md +1 -1
- data/docs/Space.md +30 -0
- data/docs/SpaceResponse.md +18 -0
- data/docs/SpaceStatus.md +15 -0
- data/docs/SpaceType.md +15 -0
- data/docs/SpacesApi.md +658 -0
- data/docs/StartSpaceBroadcastResponse.md +18 -0
- data/docs/StopSpaceBroadcastResponse.md +18 -0
- data/docs/Track.md +9 -7
- data/docs/UpdateLiveStreamRequest.md +3 -1
- data/docs/UpdateReferrerDomainRestrictionRequest.md +37 -5
- data/docs/UploadResponse.md +1 -1
- data/docs/VideoViewResponse.md +1 -1
- data/gen/generator-config.json +1 -1
- data/gen/templates/README.mustache +9 -3
- data/lib/mux_ruby/api/assets_api.rb +8 -0
- data/lib/mux_ruby/api/direct_uploads_api.rb +6 -0
- data/lib/mux_ruby/api/live_streams_api.rb +14 -2
- data/lib/mux_ruby/api/metrics_api.rb +5 -5
- data/lib/mux_ruby/api/playback_restrictions_api.rb +23 -23
- data/lib/mux_ruby/api/spaces_api.rb +619 -0
- data/lib/mux_ruby/models/abridged_video_view.rb +7 -0
- data/lib/mux_ruby/models/asset.rb +1 -1
- data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +2 -2
- data/lib/mux_ruby/models/broadcast.rb +305 -0
- data/lib/mux_ruby/models/broadcast_layout.rb +37 -0
- data/lib/mux_ruby/models/broadcast_resolution.rb +41 -0
- data/lib/mux_ruby/models/broadcast_response.rb +223 -0
- data/lib/mux_ruby/models/broadcast_status.rb +37 -0
- data/lib/mux_ruby/models/create_broadcast_request.rb +266 -0
- data/lib/mux_ruby/models/create_live_stream_request.rb +40 -4
- data/lib/mux_ruby/models/create_simulcast_target_request.rb +1 -1
- data/lib/mux_ruby/models/create_space_request.rb +242 -0
- data/lib/mux_ruby/models/input_settings.rb +3 -3
- data/lib/mux_ruby/models/list_playback_restrictions_response.rb +220 -0
- data/lib/mux_ruby/models/list_spaces_response.rb +225 -0
- data/lib/mux_ruby/models/live_stream.rb +40 -4
- data/lib/mux_ruby/models/playback_restriction_response.rb +11 -2
- data/lib/mux_ruby/models/space.rb +301 -0
- data/lib/mux_ruby/models/space_response.rb +223 -0
- data/lib/mux_ruby/models/space_status.rb +37 -0
- data/lib/mux_ruby/models/space_type.rb +36 -0
- data/lib/mux_ruby/models/start_space_broadcast_response.rb +218 -0
- data/lib/mux_ruby/models/stop_space_broadcast_response.rb +218 -0
- data/lib/mux_ruby/models/track.rb +32 -10
- data/lib/mux_ruby/models/update_live_stream_request.rb +40 -4
- data/lib/mux_ruby/models/update_referrer_domain_restriction_request.rb +74 -179
- data/lib/mux_ruby/models/video_view.rb +103 -0
- data/lib/mux_ruby/version.rb +1 -1
- data/lib/mux_ruby.rb +16 -0
- data/spec/api/spaces_api_spec.rb +149 -0
- data/spec/models/broadcast_layout_spec.rb +28 -0
- data/spec/models/broadcast_resolution_spec.rb +28 -0
- data/spec/models/broadcast_response_spec.rb +34 -0
- data/spec/models/broadcast_spec.rb +70 -0
- data/spec/models/broadcast_status_spec.rb +28 -0
- data/spec/models/create_broadcast_request_spec.rb +58 -0
- data/spec/models/create_space_request_spec.rb +46 -0
- data/spec/models/list_playback_restrictions_response_spec.rb +34 -0
- data/spec/models/list_spaces_response_spec.rb +34 -0
- data/spec/models/space_response_spec.rb +34 -0
- data/spec/models/space_spec.rb +70 -0
- data/spec/models/space_status_spec.rb +28 -0
- data/spec/models/space_type_spec.rb +28 -0
- data/spec/models/start_space_broadcast_response_spec.rb +34 -0
- data/spec/models/stop_space_broadcast_response_spec.rb +34 -0
- metadata +169 -105
|
@@ -13,7 +13,7 @@ All URIs are relative to *https://api.mux.com*
|
|
|
13
13
|
|
|
14
14
|
## create_playback_restriction
|
|
15
15
|
|
|
16
|
-
> <
|
|
16
|
+
> <PlaybackRestrictionResponse> create_playback_restriction(create_playback_restriction_request)
|
|
17
17
|
|
|
18
18
|
Create a Playback Restriction
|
|
19
19
|
|
|
@@ -47,7 +47,7 @@ end
|
|
|
47
47
|
|
|
48
48
|
This returns an Array which contains the response data, status code and headers.
|
|
49
49
|
|
|
50
|
-
> <Array(<
|
|
50
|
+
> <Array(<PlaybackRestrictionResponse>, Integer, Hash)> create_playback_restriction_with_http_info(create_playback_restriction_request)
|
|
51
51
|
|
|
52
52
|
```ruby
|
|
53
53
|
begin
|
|
@@ -55,7 +55,7 @@ begin
|
|
|
55
55
|
data, status_code, headers = api_instance.create_playback_restriction_with_http_info(create_playback_restriction_request)
|
|
56
56
|
p status_code # => 2xx
|
|
57
57
|
p headers # => { ... }
|
|
58
|
-
p data # => <
|
|
58
|
+
p data # => <PlaybackRestrictionResponse>
|
|
59
59
|
rescue MuxRuby::ApiError => e
|
|
60
60
|
puts "Error when calling PlaybackRestrictionsApi->create_playback_restriction_with_http_info: #{e}"
|
|
61
61
|
end
|
|
@@ -69,7 +69,7 @@ end
|
|
|
69
69
|
|
|
70
70
|
### Return type
|
|
71
71
|
|
|
72
|
-
[**
|
|
72
|
+
[**PlaybackRestrictionResponse**](PlaybackRestrictionResponse.md)
|
|
73
73
|
|
|
74
74
|
### Authorization
|
|
75
75
|
|
|
@@ -152,7 +152,7 @@ nil (empty response body)
|
|
|
152
152
|
|
|
153
153
|
## get_playback_restriction
|
|
154
154
|
|
|
155
|
-
> <
|
|
155
|
+
> <PlaybackRestrictionResponse> get_playback_restriction(playback_restriction_id)
|
|
156
156
|
|
|
157
157
|
Retrieve a Playback Restriction
|
|
158
158
|
|
|
@@ -186,7 +186,7 @@ end
|
|
|
186
186
|
|
|
187
187
|
This returns an Array which contains the response data, status code and headers.
|
|
188
188
|
|
|
189
|
-
> <Array(<
|
|
189
|
+
> <Array(<PlaybackRestrictionResponse>, Integer, Hash)> get_playback_restriction_with_http_info(playback_restriction_id)
|
|
190
190
|
|
|
191
191
|
```ruby
|
|
192
192
|
begin
|
|
@@ -194,7 +194,7 @@ begin
|
|
|
194
194
|
data, status_code, headers = api_instance.get_playback_restriction_with_http_info(playback_restriction_id)
|
|
195
195
|
p status_code # => 2xx
|
|
196
196
|
p headers # => { ... }
|
|
197
|
-
p data # => <
|
|
197
|
+
p data # => <PlaybackRestrictionResponse>
|
|
198
198
|
rescue MuxRuby::ApiError => e
|
|
199
199
|
puts "Error when calling PlaybackRestrictionsApi->get_playback_restriction_with_http_info: #{e}"
|
|
200
200
|
end
|
|
@@ -208,7 +208,7 @@ end
|
|
|
208
208
|
|
|
209
209
|
### Return type
|
|
210
210
|
|
|
211
|
-
[**
|
|
211
|
+
[**PlaybackRestrictionResponse**](PlaybackRestrictionResponse.md)
|
|
212
212
|
|
|
213
213
|
### Authorization
|
|
214
214
|
|
|
@@ -222,7 +222,7 @@ end
|
|
|
222
222
|
|
|
223
223
|
## list_playback_restrictions
|
|
224
224
|
|
|
225
|
-
> <
|
|
225
|
+
> <ListPlaybackRestrictionsResponse> list_playback_restrictions(opts)
|
|
226
226
|
|
|
227
227
|
List Playback Restrictions
|
|
228
228
|
|
|
@@ -259,7 +259,7 @@ end
|
|
|
259
259
|
|
|
260
260
|
This returns an Array which contains the response data, status code and headers.
|
|
261
261
|
|
|
262
|
-
> <Array(<
|
|
262
|
+
> <Array(<ListPlaybackRestrictionsResponse>, Integer, Hash)> list_playback_restrictions_with_http_info(opts)
|
|
263
263
|
|
|
264
264
|
```ruby
|
|
265
265
|
begin
|
|
@@ -267,7 +267,7 @@ begin
|
|
|
267
267
|
data, status_code, headers = api_instance.list_playback_restrictions_with_http_info(opts)
|
|
268
268
|
p status_code # => 2xx
|
|
269
269
|
p headers # => { ... }
|
|
270
|
-
p data # => <
|
|
270
|
+
p data # => <ListPlaybackRestrictionsResponse>
|
|
271
271
|
rescue MuxRuby::ApiError => e
|
|
272
272
|
puts "Error when calling PlaybackRestrictionsApi->list_playback_restrictions_with_http_info: #{e}"
|
|
273
273
|
end
|
|
@@ -282,7 +282,7 @@ end
|
|
|
282
282
|
|
|
283
283
|
### Return type
|
|
284
284
|
|
|
285
|
-
[**
|
|
285
|
+
[**ListPlaybackRestrictionsResponse**](ListPlaybackRestrictionsResponse.md)
|
|
286
286
|
|
|
287
287
|
### Authorization
|
|
288
288
|
|
|
@@ -296,11 +296,11 @@ end
|
|
|
296
296
|
|
|
297
297
|
## update_referrer_domain_restriction
|
|
298
298
|
|
|
299
|
-
> <
|
|
299
|
+
> <PlaybackRestrictionResponse> update_referrer_domain_restriction(playback_restriction_id, update_referrer_domain_restriction_request)
|
|
300
300
|
|
|
301
301
|
Update the Referrer Playback Restriction
|
|
302
302
|
|
|
303
|
-
Allows you to modify the list of
|
|
303
|
+
Allows you to modify the list of domains 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
304
|
|
|
305
305
|
### Examples
|
|
306
306
|
|
|
@@ -316,11 +316,11 @@ end
|
|
|
316
316
|
|
|
317
317
|
api_instance = MuxRuby::PlaybackRestrictionsApi.new
|
|
318
318
|
playback_restriction_id = 'playback_restriction_id_example' # String | ID of the Playback Restriction.
|
|
319
|
-
|
|
319
|
+
update_referrer_domain_restriction_request = MuxRuby::ReferrerDomainRestriction.new # UpdateReferrerDomainRestrictionRequest |
|
|
320
320
|
|
|
321
321
|
begin
|
|
322
322
|
# Update the Referrer Playback Restriction
|
|
323
|
-
result = api_instance.update_referrer_domain_restriction(playback_restriction_id,
|
|
323
|
+
result = api_instance.update_referrer_domain_restriction(playback_restriction_id, update_referrer_domain_restriction_request)
|
|
324
324
|
p result
|
|
325
325
|
rescue MuxRuby::ApiError => e
|
|
326
326
|
puts "Error when calling PlaybackRestrictionsApi->update_referrer_domain_restriction: #{e}"
|
|
@@ -331,15 +331,15 @@ end
|
|
|
331
331
|
|
|
332
332
|
This returns an Array which contains the response data, status code and headers.
|
|
333
333
|
|
|
334
|
-
> <Array(<
|
|
334
|
+
> <Array(<PlaybackRestrictionResponse>, Integer, Hash)> update_referrer_domain_restriction_with_http_info(playback_restriction_id, update_referrer_domain_restriction_request)
|
|
335
335
|
|
|
336
336
|
```ruby
|
|
337
337
|
begin
|
|
338
338
|
# Update the Referrer Playback Restriction
|
|
339
|
-
data, status_code, headers = api_instance.update_referrer_domain_restriction_with_http_info(playback_restriction_id,
|
|
339
|
+
data, status_code, headers = api_instance.update_referrer_domain_restriction_with_http_info(playback_restriction_id, update_referrer_domain_restriction_request)
|
|
340
340
|
p status_code # => 2xx
|
|
341
341
|
p headers # => { ... }
|
|
342
|
-
p data # => <
|
|
342
|
+
p data # => <PlaybackRestrictionResponse>
|
|
343
343
|
rescue MuxRuby::ApiError => e
|
|
344
344
|
puts "Error when calling PlaybackRestrictionsApi->update_referrer_domain_restriction_with_http_info: #{e}"
|
|
345
345
|
end
|
|
@@ -350,11 +350,11 @@ end
|
|
|
350
350
|
| Name | Type | Description | Notes |
|
|
351
351
|
| ---- | ---- | ----------- | ----- |
|
|
352
352
|
| **playback_restriction_id** | **String** | ID of the Playback Restriction. | |
|
|
353
|
-
| **
|
|
353
|
+
| **update_referrer_domain_restriction_request** | [**UpdateReferrerDomainRestrictionRequest**](UpdateReferrerDomainRestrictionRequest.md) | | |
|
|
354
354
|
|
|
355
355
|
### Return type
|
|
356
356
|
|
|
357
|
-
[**
|
|
357
|
+
[**PlaybackRestrictionResponse**](PlaybackRestrictionResponse.md)
|
|
358
358
|
|
|
359
359
|
### Authorization
|
|
360
360
|
|
data/docs/SigningKeyResponse.md
CHANGED
data/docs/Space.md
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
# MuxRuby::Space
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **id** | **String** | Unique identifier for the space. Max 255 characters. | |
|
|
8
|
+
| **created_at** | **String** | Time the space was created, defined as a Unix timestamp (seconds since epoch). | |
|
|
9
|
+
| **type** | [**SpaceType**](SpaceType.md) | | [default to 'server'] |
|
|
10
|
+
| **status** | [**SpaceStatus**](SpaceStatus.md) | | |
|
|
11
|
+
| **passthrough** | **String** | Arbitrary user-supplied metadata that will be included in the space details and related webhooks. Max: 255 characters. | [optional] |
|
|
12
|
+
| **broadcasts** | [**Array<Broadcast>**](Broadcast.md) | An array of broadcast destinations. | [optional] |
|
|
13
|
+
| **active_session_id** | **String** | Unique identifier for the current lifecycle of the space. Only set when the space is `active` and is set to a new value each time the space transitions from `idle` to `active`. This value is useful for logging and debugging issues. Max 255 characters. | [optional] |
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```ruby
|
|
18
|
+
require 'mux_ruby'
|
|
19
|
+
|
|
20
|
+
instance = MuxRuby::Space.new(
|
|
21
|
+
id: null,
|
|
22
|
+
created_at: null,
|
|
23
|
+
type: null,
|
|
24
|
+
status: null,
|
|
25
|
+
passthrough: null,
|
|
26
|
+
broadcasts: null,
|
|
27
|
+
active_session_id: null
|
|
28
|
+
)
|
|
29
|
+
```
|
|
30
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
# MuxRuby::SpaceResponse
|
|
2
|
+
|
|
3
|
+
## Properties
|
|
4
|
+
|
|
5
|
+
| Name | Type | Description | Notes |
|
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
|
7
|
+
| **data** | [**Space**](Space.md) | | |
|
|
8
|
+
|
|
9
|
+
## Example
|
|
10
|
+
|
|
11
|
+
```ruby
|
|
12
|
+
require 'mux_ruby'
|
|
13
|
+
|
|
14
|
+
instance = MuxRuby::SpaceResponse.new(
|
|
15
|
+
data: null
|
|
16
|
+
)
|
|
17
|
+
```
|
|
18
|
+
|
data/docs/SpaceStatus.md
ADDED
data/docs/SpaceType.md
ADDED