mux_ruby 1.4.0 → 1.8.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +2 -1
  3. data/Gemfile.lock +37 -35
  4. data/README.md +6 -1
  5. data/docs/Asset.md +3 -1
  6. data/docs/AssetNonStandardInputReasons.md +16 -0
  7. data/docs/AssetRecordingTimes.md +9 -0
  8. data/docs/CreateAssetRequest.md +1 -1
  9. data/docs/CreateLiveStreamRequest.md +2 -0
  10. data/docs/CreateUploadRequest.md +1 -0
  11. data/docs/DimensionValue.md +9 -0
  12. data/docs/DimensionsApi.md +118 -0
  13. data/docs/DisableLiveStreamResponse.md +8 -0
  14. data/docs/EnableLiveStreamResponse.md +8 -0
  15. data/docs/FiltersApi.md +2 -2
  16. data/docs/GetRealTimeBreakdownResponse.md +10 -0
  17. data/docs/GetRealTimeHistogramTimeseriesResponse.md +11 -0
  18. data/docs/GetRealTimeHistogramTimeseriesResponseMeta.md +8 -0
  19. data/docs/GetRealTimeTimeseriesResponse.md +10 -0
  20. data/docs/Incident.md +28 -0
  21. data/docs/IncidentBreakdown.md +10 -0
  22. data/docs/IncidentNotification.md +10 -0
  23. data/docs/IncidentNotificationRule.md +12 -0
  24. data/docs/IncidentResponse.md +9 -0
  25. data/docs/IncidentsApi.md +186 -0
  26. data/docs/ListDimensionValuesResponse.md +10 -0
  27. data/docs/ListDimensionsResponse.md +10 -0
  28. data/docs/ListIncidentsResponse.md +10 -0
  29. data/docs/ListRealTimeDimensionsResponse.md +10 -0
  30. data/docs/ListRealTimeDimensionsResponseData.md +9 -0
  31. data/docs/ListRealTimeMetricsResponse.md +10 -0
  32. data/docs/ListRelatedIncidentsResponse.md +10 -0
  33. data/docs/LiveStream.md +2 -1
  34. data/docs/LiveStreamsApi.md +104 -0
  35. data/docs/NotificationRule.md +10 -0
  36. data/docs/RealTimeApi.md +280 -0
  37. data/docs/RealTimeBreakdownValue.md +12 -0
  38. data/docs/RealTimeHistogramTimeseriesBucket.md +9 -0
  39. data/docs/RealTimeHistogramTimeseriesBucketValues.md +9 -0
  40. data/docs/RealTimeHistogramTimeseriesDatapoint.md +14 -0
  41. data/docs/RealTimeTimeseriesDatapoint.md +10 -0
  42. data/docs/Upload.md +1 -0
  43. data/docs/VideoView.md +16 -14
  44. data/examples/data/exercise-dimensions.rb +29 -0
  45. data/examples/data/exercise-errors.rb +1 -1
  46. data/examples/data/exercise-incidents.rb +29 -0
  47. data/examples/data/exercise-realtime.rb +60 -0
  48. data/examples/video/exercise-live-streams.rb +22 -0
  49. data/lib/mux_ruby.rb +30 -0
  50. data/lib/mux_ruby/api/dimensions_api.rb +128 -0
  51. data/lib/mux_ruby/api/filters_api.rb +4 -4
  52. data/lib/mux_ruby/api/incidents_api.rb +217 -0
  53. data/lib/mux_ruby/api/live_streams_api.rb +106 -0
  54. data/lib/mux_ruby/api/real_time_api.rb +311 -0
  55. data/lib/mux_ruby/api_client.rb +1 -1
  56. data/lib/mux_ruby/configuration.rb +1 -4
  57. data/lib/mux_ruby/models/asset.rb +46 -13
  58. data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +335 -0
  59. data/lib/mux_ruby/models/asset_recording_times.rb +195 -0
  60. data/lib/mux_ruby/models/asset_static_renditions_files.rb +4 -4
  61. data/lib/mux_ruby/models/create_asset_request.rb +13 -13
  62. data/lib/mux_ruby/models/create_live_stream_request.rb +24 -4
  63. data/lib/mux_ruby/models/create_upload_request.rb +13 -4
  64. data/lib/mux_ruby/models/dimension_value.rb +193 -0
  65. data/lib/mux_ruby/models/disable_live_stream_response.rb +184 -0
  66. data/lib/mux_ruby/models/enable_live_stream_response.rb +184 -0
  67. data/lib/mux_ruby/models/get_real_time_breakdown_response.rb +206 -0
  68. data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response.rb +215 -0
  69. data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response_meta.rb +186 -0
  70. data/lib/mux_ruby/models/get_real_time_timeseries_response.rb +206 -0
  71. data/lib/mux_ruby/models/incident.rb +370 -0
  72. data/lib/mux_ruby/models/incident_breakdown.rb +202 -0
  73. data/lib/mux_ruby/models/incident_notification.rb +202 -0
  74. data/lib/mux_ruby/models/incident_notification_rule.rb +222 -0
  75. data/lib/mux_ruby/models/incident_response.rb +195 -0
  76. data/lib/mux_ruby/models/input_settings_overlay_settings.rb +46 -0
  77. data/lib/mux_ruby/models/list_dimension_values_response.rb +206 -0
  78. data/lib/mux_ruby/models/list_dimensions_response.rb +204 -0
  79. data/lib/mux_ruby/models/list_incidents_response.rb +206 -0
  80. data/lib/mux_ruby/models/list_real_time_dimensions_response.rb +206 -0
  81. data/lib/mux_ruby/models/list_real_time_dimensions_response_data.rb +193 -0
  82. data/lib/mux_ruby/models/list_real_time_metrics_response.rb +206 -0
  83. data/lib/mux_ruby/models/list_related_incidents_response.rb +206 -0
  84. data/lib/mux_ruby/models/live_stream.rb +14 -5
  85. data/lib/mux_ruby/models/notification_rule.rb +202 -0
  86. data/lib/mux_ruby/models/real_time_breakdown_value.rb +220 -0
  87. data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket.rb +193 -0
  88. data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket_values.rb +193 -0
  89. data/lib/mux_ruby/models/real_time_histogram_timeseries_datapoint.rb +240 -0
  90. data/lib/mux_ruby/models/real_time_timeseries_datapoint.rb +202 -0
  91. data/lib/mux_ruby/models/upload.rb +13 -4
  92. data/lib/mux_ruby/models/video_view.rb +36 -18
  93. data/lib/mux_ruby/version.rb +1 -1
  94. data/spec/api/dimensions_api_spec.rb +55 -0
  95. data/spec/api/filters_api_spec.rb +2 -2
  96. data/spec/api/incidents_api_spec.rb +73 -0
  97. data/spec/api/live_streams_api_spec.rb +24 -0
  98. data/spec/api/real_time_api_spec.rb +93 -0
  99. data/spec/models/asset_non_standard_input_reasons_spec.rb +98 -0
  100. data/spec/models/asset_recording_times_spec.rb +40 -0
  101. data/spec/models/asset_spec.rb +22 -6
  102. data/spec/models/asset_static_renditions_files_spec.rb +2 -2
  103. data/spec/models/create_asset_request_spec.rb +6 -6
  104. data/spec/models/create_live_stream_request_spec.rb +12 -0
  105. data/spec/models/create_upload_request_spec.rb +6 -0
  106. data/spec/models/dimension_value_spec.rb +40 -0
  107. data/spec/models/disable_live_stream_response_spec.rb +34 -0
  108. data/spec/models/enable_live_stream_response_spec.rb +34 -0
  109. data/spec/models/get_real_time_breakdown_response_spec.rb +46 -0
  110. data/spec/models/get_real_time_histogram_timeseries_response_meta_spec.rb +34 -0
  111. data/spec/models/get_real_time_histogram_timeseries_response_spec.rb +52 -0
  112. data/spec/models/get_real_time_timeseries_response_spec.rb +46 -0
  113. data/spec/models/incident_breakdown_spec.rb +46 -0
  114. data/spec/models/incident_notification_rule_spec.rb +58 -0
  115. data/spec/models/incident_notification_spec.rb +46 -0
  116. data/spec/models/incident_response_spec.rb +40 -0
  117. data/spec/models/incident_spec.rb +154 -0
  118. data/spec/models/input_settings_overlay_settings_spec.rb +8 -0
  119. data/spec/models/list_dimension_values_response_spec.rb +46 -0
  120. data/spec/models/list_dimensions_response_spec.rb +46 -0
  121. data/spec/models/list_incidents_response_spec.rb +46 -0
  122. data/spec/models/list_real_time_dimensions_response_data_spec.rb +40 -0
  123. data/spec/models/list_real_time_dimensions_response_spec.rb +46 -0
  124. data/spec/models/list_real_time_metrics_response_spec.rb +46 -0
  125. data/spec/models/list_related_incidents_response_spec.rb +46 -0
  126. data/spec/models/live_stream_spec.rb +6 -0
  127. data/spec/models/notification_rule_spec.rb +46 -0
  128. data/spec/models/real_time_breakdown_value_spec.rb +58 -0
  129. data/spec/models/real_time_histogram_timeseries_bucket_spec.rb +40 -0
  130. data/spec/models/real_time_histogram_timeseries_bucket_values_spec.rb +40 -0
  131. data/spec/models/real_time_histogram_timeseries_datapoint_spec.rb +70 -0
  132. data/spec/models/real_time_timeseries_datapoint_spec.rb +46 -0
  133. data/spec/models/upload_spec.rb +6 -0
  134. data/spec/models/video_view_spec.rb +12 -0
  135. data/test.sh +28 -0
  136. metadata +181 -58
@@ -0,0 +1,10 @@
1
+ # MuxRuby::IncidentBreakdown
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **value** | **String** | | [optional]
7
+ **name** | **String** | | [optional]
8
+ **id** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # MuxRuby::IncidentNotification
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **queued_at** | **String** | | [optional]
7
+ **id** | **Integer** | | [optional]
8
+ **attempted_at** | **String** | | [optional]
9
+
10
+
@@ -0,0 +1,12 @@
1
+ # MuxRuby::IncidentNotificationRule
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **status** | **String** | | [optional]
7
+ **rules** | [**Array<NotificationRule>**](NotificationRule.md) | | [optional]
8
+ **property_id** | **String** | | [optional]
9
+ **id** | **String** | | [optional]
10
+ **action** | **String** | | [optional]
11
+
12
+
@@ -0,0 +1,9 @@
1
+ # MuxRuby::IncidentResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Incident**](.md) | | [optional]
7
+ **timeframe** | **Array<Integer>** | | [optional]
8
+
9
+
@@ -0,0 +1,186 @@
1
+ # MuxRuby::IncidentsApi
2
+
3
+ All URIs are relative to *https://api.mux.com*
4
+
5
+ Method | HTTP request | Description
6
+ ------------- | ------------- | -------------
7
+ [**get_incident**](IncidentsApi.md#get_incident) | **GET** /data/v1/incidents/{INCIDENT_ID} | Get an Incident
8
+ [**list_incidents**](IncidentsApi.md#list_incidents) | **GET** /data/v1/incidents | List Incidents
9
+ [**list_related_incidents**](IncidentsApi.md#list_related_incidents) | **GET** /data/v1/incidents/{INCIDENT_ID}/related | List Related Incidents
10
+
11
+
12
+ # **get_incident**
13
+ > IncidentResponse get_incident(incident_id)
14
+
15
+ Get an Incident
16
+
17
+ Returns the details of an incident
18
+
19
+ ### Example
20
+ ```ruby
21
+ # load the gem
22
+ require 'mux_ruby'
23
+ # setup authorization
24
+ MuxRuby.configure do |config|
25
+ # Configure HTTP basic authorization: accessToken
26
+ config.username = 'YOUR USERNAME'
27
+ config.password = 'YOUR PASSWORD'
28
+ end
29
+
30
+ api_instance = MuxRuby::IncidentsApi.new
31
+ incident_id = 'abcd1234' # String | ID of the Incident
32
+
33
+ begin
34
+ #Get an Incident
35
+ result = api_instance.get_incident(incident_id)
36
+ p result
37
+ rescue MuxRuby::ApiError => e
38
+ puts "Exception when calling IncidentsApi->get_incident: #{e}"
39
+ end
40
+ ```
41
+
42
+ ### Parameters
43
+
44
+ Name | Type | Description | Notes
45
+ ------------- | ------------- | ------------- | -------------
46
+ **incident_id** | **String**| ID of the Incident |
47
+
48
+ ### Return type
49
+
50
+ [**IncidentResponse**](IncidentResponse.md)
51
+
52
+ ### Authorization
53
+
54
+ [accessToken](../README.md#accessToken)
55
+
56
+ ### HTTP request headers
57
+
58
+ - **Content-Type**: Not defined
59
+ - **Accept**: application/json
60
+
61
+
62
+
63
+ # **list_incidents**
64
+ > ListIncidentsResponse list_incidents(opts)
65
+
66
+ List Incidents
67
+
68
+ Returns a list of incidents
69
+
70
+ ### Example
71
+ ```ruby
72
+ # load the gem
73
+ require 'mux_ruby'
74
+ # setup authorization
75
+ MuxRuby.configure do |config|
76
+ # Configure HTTP basic authorization: accessToken
77
+ config.username = 'YOUR USERNAME'
78
+ config.password = 'YOUR PASSWORD'
79
+ end
80
+
81
+ api_instance = MuxRuby::IncidentsApi.new
82
+ opts = {
83
+ limit: 25, # Integer | Number of items to include in the response
84
+ page: 1, # Integer | Offset by this many pages, of the size of `limit`
85
+ order_by: 'order_by_example', # String | Value to order the results by
86
+ order_direction: 'order_direction_example', # String | Sort order.
87
+ status: 'status_example', # String | Status to filter incidents by
88
+ severity: 'severity_example' # String | Severity to filter incidents by
89
+ }
90
+
91
+ begin
92
+ #List Incidents
93
+ result = api_instance.list_incidents(opts)
94
+ p result
95
+ rescue MuxRuby::ApiError => e
96
+ puts "Exception when calling IncidentsApi->list_incidents: #{e}"
97
+ end
98
+ ```
99
+
100
+ ### Parameters
101
+
102
+ Name | Type | Description | Notes
103
+ ------------- | ------------- | ------------- | -------------
104
+ **limit** | **Integer**| Number of items to include in the response | [optional] [default to 25]
105
+ **page** | **Integer**| Offset by this many pages, of the size of `limit` | [optional] [default to 1]
106
+ **order_by** | **String**| Value to order the results by | [optional]
107
+ **order_direction** | **String**| Sort order. | [optional]
108
+ **status** | **String**| Status to filter incidents by | [optional]
109
+ **severity** | **String**| Severity to filter incidents by | [optional]
110
+
111
+ ### Return type
112
+
113
+ [**ListIncidentsResponse**](ListIncidentsResponse.md)
114
+
115
+ ### Authorization
116
+
117
+ [accessToken](../README.md#accessToken)
118
+
119
+ ### HTTP request headers
120
+
121
+ - **Content-Type**: Not defined
122
+ - **Accept**: application/json
123
+
124
+
125
+
126
+ # **list_related_incidents**
127
+ > ListRelatedIncidentsResponse list_related_incidents(incident_id, opts)
128
+
129
+ List Related Incidents
130
+
131
+ Returns all the incidents that seem related to a specific incident
132
+
133
+ ### Example
134
+ ```ruby
135
+ # load the gem
136
+ require 'mux_ruby'
137
+ # setup authorization
138
+ MuxRuby.configure do |config|
139
+ # Configure HTTP basic authorization: accessToken
140
+ config.username = 'YOUR USERNAME'
141
+ config.password = 'YOUR PASSWORD'
142
+ end
143
+
144
+ api_instance = MuxRuby::IncidentsApi.new
145
+ incident_id = 'abcd1234' # String | ID of the Incident
146
+ opts = {
147
+ limit: 25, # Integer | Number of items to include in the response
148
+ page: 1, # Integer | Offset by this many pages, of the size of `limit`
149
+ order_by: 'order_by_example', # String | Value to order the results by
150
+ order_direction: 'order_direction_example' # String | Sort order.
151
+ }
152
+
153
+ begin
154
+ #List Related Incidents
155
+ result = api_instance.list_related_incidents(incident_id, opts)
156
+ p result
157
+ rescue MuxRuby::ApiError => e
158
+ puts "Exception when calling IncidentsApi->list_related_incidents: #{e}"
159
+ end
160
+ ```
161
+
162
+ ### Parameters
163
+
164
+ Name | Type | Description | Notes
165
+ ------------- | ------------- | ------------- | -------------
166
+ **incident_id** | **String**| ID of the Incident |
167
+ **limit** | **Integer**| Number of items to include in the response | [optional] [default to 25]
168
+ **page** | **Integer**| Offset by this many pages, of the size of `limit` | [optional] [default to 1]
169
+ **order_by** | **String**| Value to order the results by | [optional]
170
+ **order_direction** | **String**| Sort order. | [optional]
171
+
172
+ ### Return type
173
+
174
+ [**ListRelatedIncidentsResponse**](ListRelatedIncidentsResponse.md)
175
+
176
+ ### Authorization
177
+
178
+ [accessToken](../README.md#accessToken)
179
+
180
+ ### HTTP request headers
181
+
182
+ - **Content-Type**: Not defined
183
+ - **Accept**: application/json
184
+
185
+
186
+
@@ -0,0 +1,10 @@
1
+ # MuxRuby::ListDimensionValuesResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Array<DimensionValue>**](DimensionValue.md) | | [optional]
7
+ **total_row_count** | **Integer** | | [optional]
8
+ **timeframe** | **Array<Integer>** | | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # MuxRuby::ListDimensionsResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**ListFiltersResponseData**](ListFiltersResponseData.md) | | [optional]
7
+ **total_row_count** | **Integer** | | [optional]
8
+ **timeframe** | **Array<Integer>** | | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # MuxRuby::ListIncidentsResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Array<Incident>**](Incident.md) | | [optional]
7
+ **total_row_count** | **Integer** | | [optional]
8
+ **timeframe** | **Array<Integer>** | | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # MuxRuby::ListRealTimeDimensionsResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Array<ListRealTimeDimensionsResponseData>**](ListRealTimeDimensionsResponseData.md) | | [optional]
7
+ **total_row_count** | **Integer** | | [optional]
8
+ **timeframe** | **Array<Integer>** | | [optional]
9
+
10
+
@@ -0,0 +1,9 @@
1
+ # MuxRuby::ListRealTimeDimensionsResponseData
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **name** | **String** | | [optional]
7
+ **display_name** | **String** | | [optional]
8
+
9
+
@@ -0,0 +1,10 @@
1
+ # MuxRuby::ListRealTimeMetricsResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Array<ListRealTimeDimensionsResponseData>**](ListRealTimeDimensionsResponseData.md) | | [optional]
7
+ **total_row_count** | **Integer** | | [optional]
8
+ **timeframe** | **Array<Integer>** | | [optional]
9
+
10
+
@@ -0,0 +1,10 @@
1
+ # MuxRuby::ListRelatedIncidentsResponse
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **data** | [**Array<Incident>**](Incident.md) | | [optional]
7
+ **total_row_count** | **Integer** | | [optional]
8
+ **timeframe** | **Array<Integer>** | | [optional]
9
+
10
+
@@ -10,10 +10,11 @@ Name | Type | Description | Notes
10
10
  **recent_asset_ids** | **Array<String>** | | [optional]
11
11
  **status** | **String** | | [optional]
12
12
  **playback_ids** | [**Array<PlaybackID>**](PlaybackID.md) | | [optional]
13
- **new_asset_settings** | [**Asset**](Asset.md) | | [optional]
13
+ **new_asset_settings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | [optional]
14
14
  **passthrough** | **String** | | [optional]
15
15
  **reconnect_window** | **Float** | | [optional]
16
16
  **reduced_latency** | **BOOLEAN** | | [optional]
17
17
  **simulcast_targets** | [**Array<SimulcastTarget>**](SimulcastTarget.md) | | [optional]
18
+ **test** | **BOOLEAN** | | [optional]
18
19
 
19
20
 
@@ -10,6 +10,8 @@ Method | HTTP request | Description
10
10
  [**delete_live_stream**](LiveStreamsApi.md#delete_live_stream) | **DELETE** /video/v1/live-streams/{LIVE_STREAM_ID} | Delete a live stream
11
11
  [**delete_live_stream_playback_id**](LiveStreamsApi.md#delete_live_stream_playback_id) | **DELETE** /video/v1/live-streams/{LIVE_STREAM_ID}/playback-ids/{PLAYBACK_ID} | Delete a live stream playback ID
12
12
  [**delete_live_stream_simulcast_target**](LiveStreamsApi.md#delete_live_stream_simulcast_target) | **DELETE** /video/v1/live-streams/{LIVE_STREAM_ID}/simulcast-targets/{SIMULCAST_TARGET_ID} | Delete a Live Stream Simulcast Target
13
+ [**disable_live_stream**](LiveStreamsApi.md#disable_live_stream) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/disable | Disable a live stream
14
+ [**enable_live_stream**](LiveStreamsApi.md#enable_live_stream) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/enable | Enable a live stream
13
15
  [**get_live_stream**](LiveStreamsApi.md#get_live_stream) | **GET** /video/v1/live-streams/{LIVE_STREAM_ID} | Retrieve a live stream
14
16
  [**get_live_stream_simulcast_target**](LiveStreamsApi.md#get_live_stream_simulcast_target) | **GET** /video/v1/live-streams/{LIVE_STREAM_ID}/simulcast-targets/{SIMULCAST_TARGET_ID} | Retrieve a Live Stream Simulcast Target
15
17
  [**list_live_streams**](LiveStreamsApi.md#list_live_streams) | **GET** /video/v1/live-streams | List live streams
@@ -320,6 +322,108 @@ nil (empty response body)
320
322
 
321
323
 
322
324
 
325
+ # **disable_live_stream**
326
+ > DisableLiveStreamResponse disable_live_stream(live_stream_id)
327
+
328
+ Disable a live stream
329
+
330
+ Disables a live stream, making it reject incoming RTMP streams until re-enabled.
331
+
332
+ ### Example
333
+ ```ruby
334
+ # load the gem
335
+ require 'mux_ruby'
336
+ # setup authorization
337
+ MuxRuby.configure do |config|
338
+ # Configure HTTP basic authorization: accessToken
339
+ config.username = 'YOUR USERNAME'
340
+ config.password = 'YOUR PASSWORD'
341
+ end
342
+
343
+ api_instance = MuxRuby::LiveStreamsApi.new
344
+ live_stream_id = 'live_stream_id_example' # String | The live stream ID
345
+
346
+ begin
347
+ #Disable a live stream
348
+ result = api_instance.disable_live_stream(live_stream_id)
349
+ p result
350
+ rescue MuxRuby::ApiError => e
351
+ puts "Exception when calling LiveStreamsApi->disable_live_stream: #{e}"
352
+ end
353
+ ```
354
+
355
+ ### Parameters
356
+
357
+ Name | Type | Description | Notes
358
+ ------------- | ------------- | ------------- | -------------
359
+ **live_stream_id** | **String**| The live stream ID |
360
+
361
+ ### Return type
362
+
363
+ [**DisableLiveStreamResponse**](DisableLiveStreamResponse.md)
364
+
365
+ ### Authorization
366
+
367
+ [accessToken](../README.md#accessToken)
368
+
369
+ ### HTTP request headers
370
+
371
+ - **Content-Type**: Not defined
372
+ - **Accept**: application/json
373
+
374
+
375
+
376
+ # **enable_live_stream**
377
+ > EnableLiveStreamResponse enable_live_stream(live_stream_id)
378
+
379
+ Enable a live stream
380
+
381
+ Enables a live stream, allowing it to accept an incoming RTMP stream.
382
+
383
+ ### Example
384
+ ```ruby
385
+ # load the gem
386
+ require 'mux_ruby'
387
+ # setup authorization
388
+ MuxRuby.configure do |config|
389
+ # Configure HTTP basic authorization: accessToken
390
+ config.username = 'YOUR USERNAME'
391
+ config.password = 'YOUR PASSWORD'
392
+ end
393
+
394
+ api_instance = MuxRuby::LiveStreamsApi.new
395
+ live_stream_id = 'live_stream_id_example' # String | The live stream ID
396
+
397
+ begin
398
+ #Enable a live stream
399
+ result = api_instance.enable_live_stream(live_stream_id)
400
+ p result
401
+ rescue MuxRuby::ApiError => e
402
+ puts "Exception when calling LiveStreamsApi->enable_live_stream: #{e}"
403
+ end
404
+ ```
405
+
406
+ ### Parameters
407
+
408
+ Name | Type | Description | Notes
409
+ ------------- | ------------- | ------------- | -------------
410
+ **live_stream_id** | **String**| The live stream ID |
411
+
412
+ ### Return type
413
+
414
+ [**EnableLiveStreamResponse**](EnableLiveStreamResponse.md)
415
+
416
+ ### Authorization
417
+
418
+ [accessToken](../README.md#accessToken)
419
+
420
+ ### HTTP request headers
421
+
422
+ - **Content-Type**: Not defined
423
+ - **Accept**: application/json
424
+
425
+
426
+
323
427
  # **get_live_stream**
324
428
  > LiveStreamResponse get_live_stream(live_stream_id)
325
429
 
@@ -0,0 +1,10 @@
1
+ # MuxRuby::NotificationRule
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **value** | **String** | | [optional]
7
+ **name** | **String** | | [optional]
8
+ **id** | **String** | | [optional]
9
+
10
+