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
data/docs/Incident.md ADDED
@@ -0,0 +1,28 @@
1
+ # MuxRuby::Incident
2
+
3
+ ## Properties
4
+ Name | Type | Description | Notes
5
+ ------------ | ------------- | ------------- | -------------
6
+ **threshold** | **Float** | | [optional]
7
+ **status** | **String** | | [optional]
8
+ **started_at** | **String** | | [optional]
9
+ **severity** | **String** | | [optional]
10
+ **sample_size_unit** | **String** | | [optional]
11
+ **sample_size** | **Integer** | | [optional]
12
+ **resolved_at** | **String** | | [optional]
13
+ **notifications** | [**Array<IncidentNotification>**](IncidentNotification.md) | | [optional]
14
+ **notification_rules** | [**Array<IncidentNotificationRule>**](IncidentNotificationRule.md) | | [optional]
15
+ **measurement** | **String** | | [optional]
16
+ **measured_value_on_close** | **Float** | | [optional]
17
+ **measured_value** | **Float** | | [optional]
18
+ **incident_key** | **String** | | [optional]
19
+ **impact** | **String** | | [optional]
20
+ **id** | **String** | | [optional]
21
+ **error_description** | **String** | | [optional]
22
+ **description** | **String** | | [optional]
23
+ **breakdowns** | [**Array<IncidentBreakdown>**](IncidentBreakdown.md) | | [optional]
24
+ **affected_views_per_hour_on_open** | **Integer** | | [optional]
25
+ **affected_views_per_hour** | **Integer** | | [optional]
26
+ **affected_views** | **Integer** | | [optional]
27
+
28
+
@@ -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
+
@@ -3,13 +3,15 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **url** | **String** | | [optional]
6
+ **url** | **String** | The web address of the file that Mux should download and use. * For subtitles text tracks, the url is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) format for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the url is the location of the watermark image. * When creating clips from existing Mux assets, the url is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. | [optional]
7
7
  **overlay_settings** | [**InputSettingsOverlaySettings**](InputSettingsOverlaySettings.md) | | [optional]
8
- **type** | **String** | | [optional]
9
- **text_type** | **String** | | [optional]
10
- **language_code** | **String** | | [optional]
11
- **name** | **String** | | [optional]
12
- **closed_captions** | **BOOLEAN** | | [optional]
13
- **passthrough** | **String** | | [optional]
8
+ **start_time** | **Float** | The time offset in seconds from the beginning of the video indicating the clip's starting marker. The default value is 0 when not included. | [optional]
9
+ **end_time** | **Float** | The time offset in seconds from the beginning of the video, indicating the clip's ending marker. The default value is the duration of the video when not included. | [optional]
10
+ **type** | **String** | This parameter is required for the `text` track type. | [optional]
11
+ **text_type** | **String** | Type of text track. This parameter only supports subtitles value. For more information on Subtitles / Closed Captions, [see this blog post](https://mux.com/blog/subtitles-captions-webvtt-hls-and-those-magic-flags/). This parameter is required for `text` track type. | [optional]
12
+ **language_code** | **String** | The language code value must be a valid [BCP 47](https://tools.ietf.org/html/bcp47) specification compliant value. For example, en for English or en-US for the US version of English. This parameter is required for text type and subtitles text type track. | [optional]
13
+ **name** | **String** | The name of the track containing a human-readable description. This value must be unique across all text type and subtitles `text` type tracks. The hls manifest will associate a subtitle text track with this value. For example, the value should be \"English\" for subtitles text track with language_code as en. This optional parameter should be used only for `text` type and subtitles `text` type track. If this parameter is not included, Mux will auto-populate based on the `input[].language_code` value. | [optional]
14
+ **closed_captions** | **BOOLEAN** | Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH). This optional parameter should be used for `text` type and subtitles `text` type tracks. | [optional]
15
+ **passthrough** | **String** | This optional parameter should be used for `text` type and subtitles `text` type tracks. | [optional]
14
16
 
15
17
 
@@ -3,12 +3,12 @@
3
3
  ## Properties
4
4
  Name | Type | Description | Notes
5
5
  ------------ | ------------- | ------------- | -------------
6
- **vertical_align** | **String** | | [optional]
7
- **vertical_margin** | **String** | | [optional]
8
- **horizontal_align** | **String** | | [optional]
9
- **horizontal_margin** | **String** | | [optional]
10
- **width** | **String** | | [optional]
11
- **height** | **String** | | [optional]
12
- **opacity** | **String** | | [optional]
6
+ **vertical_align** | **String** | Where the vertical positioning of the overlay/watermark should begin from. Defaults to `\"top\"` | [optional]
7
+ **vertical_margin** | **String** | The distance from the vertical_align starting point and the image's closest edge. Can be expressed as a percent (\"10%\") or as a pixel value (\"100px\"). Negative values will move the overlay offscreen. In the case of 'middle', a positive value will shift the overlay towards the bottom and and a negative value will shift it towards the top. | [optional]
8
+ **horizontal_align** | **String** | Where the horizontal positioning of the overlay/watermark should begin from. | [optional]
9
+ **horizontal_margin** | **String** | The distance from the horizontal_align starting point and the image's closest edge. Can be expressed as a percent (\"10%\") or as a pixel value (\"100px\"). Negative values will move the overlay offscreen. In the case of 'center', a positive value will shift the image towards the right and and a negative value will shift it towards the left. | [optional]
10
+ **width** | **String** | How wide the overlay should appear. Can be expressed as a percent (\"10%\") or as a pixel value (\"100px\"). If both width and height are left blank the width will be the true pixels of the image, applied as if the video has been scaled to fit a 1920x1080 frame. If height is supplied with no width, the width will scale proportionally to the height. | [optional]
11
+ **height** | **String** | How tall the overlay should appear. Can be expressed as a percent (\"10%\") or as a pixel value (\"100px\"). If both width and height are left blank the height will be the true pixels of the image, applied as if the video has been scaled to fit a 1920x1080 frame. If width is supplied with no height, the height will scale proportionally to the width. | [optional]
12
+ **opacity** | **String** | How opaque the overlay should appear, expressed as a percent. (Default 100%) | [optional]
13
13
 
14
14
 
@@ -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
+
data/docs/LiveStream.md CHANGED
@@ -10,7 +10,7 @@ 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]
@@ -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