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.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +13 -7
  4. data/docs/Asset.md +1 -1
  5. data/docs/AssetNonStandardInputReasons.md +2 -2
  6. data/docs/AssetResponse.md +1 -1
  7. data/docs/AssetsApi.md +8 -0
  8. data/docs/Broadcast.md +30 -0
  9. data/docs/BroadcastLayout.md +15 -0
  10. data/docs/BroadcastResolution.md +15 -0
  11. data/docs/BroadcastResponse.md +18 -0
  12. data/docs/BroadcastStatus.md +15 -0
  13. data/docs/CreateBroadcastRequest.md +26 -0
  14. data/docs/CreateLiveStreamRequest.md +3 -1
  15. data/docs/CreatePlaybackIDResponse.md +1 -1
  16. data/docs/CreatePlaybackRestrictionRequest.md +1 -1
  17. data/docs/CreateSimulcastTargetRequest.md +1 -1
  18. data/docs/CreateSpaceRequest.md +22 -0
  19. data/docs/CreateTrackResponse.md +1 -1
  20. data/docs/DirectUploadsApi.md +6 -0
  21. data/docs/GetAssetPlaybackIDResponse.md +1 -1
  22. data/docs/GetLiveStreamPlaybackIDResponse.md +1 -1
  23. data/docs/IncidentResponse.md +1 -1
  24. data/docs/InputSettings.md +3 -3
  25. data/docs/ListPlaybackRestrictionsResponse.md +18 -0
  26. data/docs/ListSpacesResponse.md +18 -0
  27. data/docs/LiveStream.md +3 -1
  28. data/docs/LiveStreamResponse.md +1 -1
  29. data/docs/LiveStreamsApi.md +16 -4
  30. data/docs/MetricsApi.md +3 -3
  31. data/docs/PlaybackRestrictionResponse.md +4 -1
  32. data/docs/PlaybackRestrictionsApi.md +21 -21
  33. data/docs/SigningKeyResponse.md +1 -1
  34. data/docs/SimulcastTargetResponse.md +1 -1
  35. data/docs/Space.md +30 -0
  36. data/docs/SpaceResponse.md +18 -0
  37. data/docs/SpaceStatus.md +15 -0
  38. data/docs/SpaceType.md +15 -0
  39. data/docs/SpacesApi.md +658 -0
  40. data/docs/StartSpaceBroadcastResponse.md +18 -0
  41. data/docs/StopSpaceBroadcastResponse.md +18 -0
  42. data/docs/Track.md +9 -7
  43. data/docs/UpdateLiveStreamRequest.md +3 -1
  44. data/docs/UpdateReferrerDomainRestrictionRequest.md +37 -5
  45. data/docs/UploadResponse.md +1 -1
  46. data/docs/VideoViewResponse.md +1 -1
  47. data/gen/generator-config.json +1 -1
  48. data/gen/templates/README.mustache +9 -3
  49. data/lib/mux_ruby/api/assets_api.rb +8 -0
  50. data/lib/mux_ruby/api/direct_uploads_api.rb +6 -0
  51. data/lib/mux_ruby/api/live_streams_api.rb +14 -2
  52. data/lib/mux_ruby/api/metrics_api.rb +5 -5
  53. data/lib/mux_ruby/api/playback_restrictions_api.rb +23 -23
  54. data/lib/mux_ruby/api/spaces_api.rb +619 -0
  55. data/lib/mux_ruby/models/abridged_video_view.rb +7 -0
  56. data/lib/mux_ruby/models/asset.rb +1 -1
  57. data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +2 -2
  58. data/lib/mux_ruby/models/broadcast.rb +305 -0
  59. data/lib/mux_ruby/models/broadcast_layout.rb +37 -0
  60. data/lib/mux_ruby/models/broadcast_resolution.rb +41 -0
  61. data/lib/mux_ruby/models/broadcast_response.rb +223 -0
  62. data/lib/mux_ruby/models/broadcast_status.rb +37 -0
  63. data/lib/mux_ruby/models/create_broadcast_request.rb +266 -0
  64. data/lib/mux_ruby/models/create_live_stream_request.rb +40 -4
  65. data/lib/mux_ruby/models/create_simulcast_target_request.rb +1 -1
  66. data/lib/mux_ruby/models/create_space_request.rb +242 -0
  67. data/lib/mux_ruby/models/input_settings.rb +3 -3
  68. data/lib/mux_ruby/models/list_playback_restrictions_response.rb +220 -0
  69. data/lib/mux_ruby/models/list_spaces_response.rb +225 -0
  70. data/lib/mux_ruby/models/live_stream.rb +40 -4
  71. data/lib/mux_ruby/models/playback_restriction_response.rb +11 -2
  72. data/lib/mux_ruby/models/space.rb +301 -0
  73. data/lib/mux_ruby/models/space_response.rb +223 -0
  74. data/lib/mux_ruby/models/space_status.rb +37 -0
  75. data/lib/mux_ruby/models/space_type.rb +36 -0
  76. data/lib/mux_ruby/models/start_space_broadcast_response.rb +218 -0
  77. data/lib/mux_ruby/models/stop_space_broadcast_response.rb +218 -0
  78. data/lib/mux_ruby/models/track.rb +32 -10
  79. data/lib/mux_ruby/models/update_live_stream_request.rb +40 -4
  80. data/lib/mux_ruby/models/update_referrer_domain_restriction_request.rb +74 -179
  81. data/lib/mux_ruby/models/video_view.rb +103 -0
  82. data/lib/mux_ruby/version.rb +1 -1
  83. data/lib/mux_ruby.rb +16 -0
  84. data/spec/api/spaces_api_spec.rb +149 -0
  85. data/spec/models/broadcast_layout_spec.rb +28 -0
  86. data/spec/models/broadcast_resolution_spec.rb +28 -0
  87. data/spec/models/broadcast_response_spec.rb +34 -0
  88. data/spec/models/broadcast_spec.rb +70 -0
  89. data/spec/models/broadcast_status_spec.rb +28 -0
  90. data/spec/models/create_broadcast_request_spec.rb +58 -0
  91. data/spec/models/create_space_request_spec.rb +46 -0
  92. data/spec/models/list_playback_restrictions_response_spec.rb +34 -0
  93. data/spec/models/list_spaces_response_spec.rb +34 -0
  94. data/spec/models/space_response_spec.rb +34 -0
  95. data/spec/models/space_spec.rb +70 -0
  96. data/spec/models/space_status_spec.rb +28 -0
  97. data/spec/models/space_type_spec.rb +28 -0
  98. data/spec/models/start_space_broadcast_response_spec.rb +34 -0
  99. data/spec/models/stop_space_broadcast_response_spec.rb +34 -0
  100. 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
- > <PlaybackRestriction> create_playback_restriction(create_playback_restriction_request)
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(<PlaybackRestriction>, Integer, Hash)> create_playback_restriction_with_http_info(create_playback_restriction_request)
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 # => <PlaybackRestriction>
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
- [**PlaybackRestriction**](PlaybackRestriction.md)
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
- > <PlaybackRestriction> get_playback_restriction(playback_restriction_id)
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(<PlaybackRestriction>, Integer, Hash)> get_playback_restriction_with_http_info(playback_restriction_id)
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 # => <PlaybackRestriction>
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
- [**PlaybackRestriction**](PlaybackRestriction.md)
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
- > <Array<PlaybackRestriction>> list_playback_restrictions(opts)
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(<Array<PlaybackRestriction>>, Integer, Hash)> list_playback_restrictions_with_http_info(opts)
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 # => <Array<PlaybackRestriction>>
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
- [**Array&lt;PlaybackRestriction&gt;**](PlaybackRestriction.md)
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
- > <PlaybackRestriction> update_referrer_domain_restriction(playback_restriction_id, body)
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 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.
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
- body = {"allowed_domains":["*.example.com"],"allow_no_referrer":true} # ReferrerDomainRestriction |
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, body)
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(<PlaybackRestriction>, Integer, Hash)> update_referrer_domain_restriction_with_http_info(playback_restriction_id, body)
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, body)
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 # => <PlaybackRestriction>
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
- | **body** | **ReferrerDomainRestriction** | | |
353
+ | **update_referrer_domain_restriction_request** | [**UpdateReferrerDomainRestrictionRequest**](UpdateReferrerDomainRestrictionRequest.md) | | |
354
354
 
355
355
  ### Return type
356
356
 
357
- [**PlaybackRestriction**](PlaybackRestriction.md)
357
+ [**PlaybackRestrictionResponse**](PlaybackRestrictionResponse.md)
358
358
 
359
359
  ### Authorization
360
360
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **data** | [**SigningKey**](.md) | | [optional] |
7
+ | **data** | [**SigningKey**](SigningKey.md) | | [optional] |
8
8
 
9
9
  ## Example
10
10
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **data** | [**SimulcastTarget**](.md) | | [optional] |
7
+ | **data** | [**SimulcastTarget**](SimulcastTarget.md) | | [optional] |
8
8
 
9
9
  ## Example
10
10
 
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 &#39;server&#39;] |
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&lt;Broadcast&gt;**](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 &#x60;active&#x60; and is set to a new value each time the space transitions from &#x60;idle&#x60; to &#x60;active&#x60;. 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
+
@@ -0,0 +1,15 @@
1
+ # MuxRuby::SpaceStatus
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'mux_ruby'
12
+
13
+ instance = MuxRuby::SpaceStatus.new()
14
+ ```
15
+
data/docs/SpaceType.md ADDED
@@ -0,0 +1,15 @@
1
+ # MuxRuby::SpaceType
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+
8
+ ## Example
9
+
10
+ ```ruby
11
+ require 'mux_ruby'
12
+
13
+ instance = MuxRuby::SpaceType.new()
14
+ ```
15
+