mux_ruby 1.8.1 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (288) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -1
  3. data/Gemfile.lock +26 -37
  4. data/README.md +37 -13
  5. data/docs/AbridgedVideoView.md +33 -13
  6. data/docs/Asset.md +59 -25
  7. data/docs/AssetErrors.md +15 -4
  8. data/docs/AssetMaster.md +15 -4
  9. data/docs/AssetNonStandardInputReasons.md +29 -11
  10. data/docs/AssetRecordingTimes.md +15 -4
  11. data/docs/AssetResponse.md +13 -3
  12. data/docs/AssetStaticRenditions.md +15 -4
  13. data/docs/AssetStaticRenditionsFiles.md +23 -8
  14. data/docs/AssetsApi.md +396 -161
  15. data/docs/BreakdownValue.md +21 -7
  16. data/docs/CreateAssetRequest.md +27 -10
  17. data/docs/CreateLiveStreamRequest.md +27 -9
  18. data/docs/CreatePlaybackIDRequest.md +13 -3
  19. data/docs/CreatePlaybackIDResponse.md +13 -3
  20. data/docs/CreateSimulcastTargetRequest.md +17 -5
  21. data/docs/CreateTrackRequest.md +25 -9
  22. data/docs/CreateTrackResponse.md +13 -3
  23. data/docs/CreateUploadRequest.md +19 -6
  24. data/docs/DeliveryReport.md +27 -9
  25. data/docs/DeliveryUsageApi.md +41 -23
  26. data/docs/DimensionValue.md +15 -4
  27. data/docs/DimensionsApi.md +72 -34
  28. data/docs/DirectUploadsApi.md +131 -56
  29. data/docs/DisableLiveStreamResponse.md +13 -3
  30. data/docs/EnableLiveStreamResponse.md +13 -3
  31. data/docs/Error.md +27 -10
  32. data/docs/ErrorsApi.md +38 -20
  33. data/docs/ExportDate.md +20 -0
  34. data/docs/ExportFile.md +22 -0
  35. data/docs/ExportsApi.md +99 -12
  36. data/docs/FilterValue.md +15 -4
  37. data/docs/FiltersApi.md +71 -33
  38. data/docs/GetAssetInputInfoResponse.md +13 -3
  39. data/docs/GetAssetOrLiveStreamIdResponse.md +18 -0
  40. data/docs/GetAssetOrLiveStreamIdResponseData.md +22 -0
  41. data/docs/GetAssetOrLiveStreamIdResponseDataObject.md +20 -0
  42. data/docs/GetAssetPlaybackIDResponse.md +13 -3
  43. data/docs/GetMetricTimeseriesDataResponse.md +17 -5
  44. data/docs/GetOverallValuesResponse.md +17 -5
  45. data/docs/GetRealTimeBreakdownResponse.md +17 -5
  46. data/docs/GetRealTimeHistogramTimeseriesResponse.md +19 -6
  47. data/docs/GetRealTimeHistogramTimeseriesResponseMeta.md +13 -3
  48. data/docs/GetRealTimeTimeseriesResponse.md +17 -5
  49. data/docs/Incident.md +53 -23
  50. data/docs/IncidentBreakdown.md +17 -5
  51. data/docs/IncidentNotification.md +17 -5
  52. data/docs/IncidentNotificationRule.md +21 -7
  53. data/docs/IncidentResponse.md +15 -4
  54. data/docs/IncidentsApi.md +118 -62
  55. data/docs/InputFile.md +15 -4
  56. data/docs/InputInfo.md +15 -4
  57. data/docs/InputSettings.md +31 -10
  58. data/docs/InputSettingsOverlaySettings.md +25 -9
  59. data/docs/InputTrack.md +29 -11
  60. data/docs/Insight.md +23 -8
  61. data/docs/ListAllMetricValuesResponse.md +17 -5
  62. data/docs/ListAssetsResponse.md +13 -3
  63. data/docs/ListBreakdownValuesResponse.md +17 -5
  64. data/docs/ListDeliveryUsageResponse.md +19 -6
  65. data/docs/ListDimensionValuesResponse.md +17 -5
  66. data/docs/ListDimensionsResponse.md +17 -5
  67. data/docs/ListErrorsResponse.md +17 -5
  68. data/docs/ListExportsResponse.md +17 -5
  69. data/docs/ListFilterValuesResponse.md +17 -5
  70. data/docs/ListFiltersResponse.md +17 -5
  71. data/docs/ListFiltersResponseData.md +15 -4
  72. data/docs/ListIncidentsResponse.md +17 -5
  73. data/docs/ListInsightsResponse.md +17 -5
  74. data/docs/ListLiveStreamsResponse.md +13 -3
  75. data/docs/ListRealTimeDimensionsResponse.md +17 -5
  76. data/docs/ListRealTimeDimensionsResponseData.md +15 -4
  77. data/docs/ListRealTimeMetricsResponse.md +17 -5
  78. data/docs/ListRelatedIncidentsResponse.md +17 -5
  79. data/docs/ListSigningKeysResponse.md +13 -3
  80. data/docs/ListUploadsResponse.md +13 -3
  81. data/docs/ListVideoViewExportsResponse.md +22 -0
  82. data/docs/ListVideoViewsResponse.md +17 -5
  83. data/docs/LiveStream.md +39 -15
  84. data/docs/LiveStreamResponse.md +13 -3
  85. data/docs/LiveStreamsApi.md +418 -170
  86. data/docs/Metric.md +21 -7
  87. data/docs/MetricsApi.md +211 -117
  88. data/docs/NotificationRule.md +17 -5
  89. data/docs/OverallValues.md +19 -6
  90. data/docs/PlaybackID.md +15 -4
  91. data/docs/PlaybackIDApi.md +78 -0
  92. data/docs/PlaybackPolicy.md +10 -2
  93. data/docs/RealTimeApi.md +177 -81
  94. data/docs/RealTimeBreakdownValue.md +21 -7
  95. data/docs/RealTimeHistogramTimeseriesBucket.md +15 -4
  96. data/docs/RealTimeHistogramTimeseriesBucketValues.md +15 -4
  97. data/docs/RealTimeHistogramTimeseriesDatapoint.md +25 -9
  98. data/docs/RealTimeTimeseriesDatapoint.md +17 -5
  99. data/docs/Score.md +23 -8
  100. data/docs/SignalLiveStreamCompleteResponse.md +13 -3
  101. data/docs/SigningKey.md +17 -5
  102. data/docs/SigningKeyResponse.md +13 -3
  103. data/docs/SimulcastTarget.md +21 -7
  104. data/docs/SimulcastTargetResponse.md +13 -3
  105. data/docs/Track.md +37 -15
  106. data/docs/URLSigningKeysApi.md +130 -54
  107. data/docs/UpdateAssetMP4SupportRequest.md +13 -3
  108. data/docs/UpdateAssetMasterAccessRequest.md +13 -3
  109. data/docs/Upload.md +29 -11
  110. data/docs/UploadError.md +15 -4
  111. data/docs/UploadResponse.md +13 -3
  112. data/docs/VideoView.md +251 -114
  113. data/docs/VideoViewEvent.md +19 -6
  114. data/docs/VideoViewResponse.md +15 -4
  115. data/docs/VideoViewsApi.md +78 -41
  116. data/examples/video/exercise-assets.rb +21 -0
  117. data/examples/video/exercise-live-streams.rb +8 -0
  118. data/gen/.gitignore +7 -0
  119. data/gen/Makefile +31 -0
  120. data/gen/generator-config.json +11 -0
  121. data/gen/openapitools.json +7 -0
  122. data/gen/package.json +17 -0
  123. data/gen/templates/Gemfile.mustache +11 -0
  124. data/gen/templates/README.mustache +158 -0
  125. data/gen/templates/Rakefile.mustache +10 -0
  126. data/gen/templates/api.mustache +206 -0
  127. data/gen/templates/api_client.mustache +264 -0
  128. data/gen/templates/api_client_faraday_partial.mustache +138 -0
  129. data/gen/templates/api_client_spec.mustache +220 -0
  130. data/gen/templates/api_client_typhoeus_partial.mustache +183 -0
  131. data/gen/templates/api_doc.mustache +118 -0
  132. data/gen/templates/api_error.mustache +67 -0
  133. data/gen/templates/api_info.mustache +12 -0
  134. data/gen/templates/api_test.mustache +47 -0
  135. data/gen/templates/base_object.mustache +120 -0
  136. data/gen/templates/configuration.mustache +349 -0
  137. data/gen/templates/configuration_spec.mustache +34 -0
  138. data/gen/templates/configuration_tls_faraday_partial.mustache +29 -0
  139. data/gen/templates/configuration_tls_typhoeus_partial.mustache +34 -0
  140. data/gen/templates/gem.mustache +40 -0
  141. data/gen/templates/gemspec.mustache +35 -0
  142. data/gen/templates/gitignore.mustache +39 -0
  143. data/gen/templates/model.mustache +26 -0
  144. data/gen/templates/model_doc.mustache +12 -0
  145. data/gen/templates/model_test.mustache +77 -0
  146. data/gen/templates/partial_model_enum_class.mustache +20 -0
  147. data/gen/templates/partial_model_generic.mustache +371 -0
  148. data/gen/templates/partial_model_generic_doc.mustache +28 -0
  149. data/gen/templates/partial_oneof_module.mustache +137 -0
  150. data/gen/templates/partial_oneof_module_doc.mustache +92 -0
  151. data/gen/templates/rspec.mustache +2 -0
  152. data/gen/templates/rubocop.mustache +148 -0
  153. data/gen/templates/spec_helper.mustache +103 -0
  154. data/gen/templates/version.mustache +7 -0
  155. data/gen/yarn.lock +1878 -0
  156. data/lib/mux_ruby.rb +16 -2
  157. data/lib/mux_ruby/api/assets_api.rb +291 -152
  158. data/lib/mux_ruby/api/delivery_usage_api.rb +32 -16
  159. data/lib/mux_ruby/api/dimensions_api.rb +55 -29
  160. data/lib/mux_ruby/api/direct_uploads_api.rb +90 -44
  161. data/lib/mux_ruby/api/errors_api.rb +34 -18
  162. data/lib/mux_ruby/api/exports_api.rb +86 -13
  163. data/lib/mux_ruby/api/filters_api.rb +53 -27
  164. data/lib/mux_ruby/api/incidents_api.rb +94 -52
  165. data/lib/mux_ruby/api/live_streams_api.rb +299 -157
  166. data/lib/mux_ruby/api/metrics_api.rb +193 -122
  167. data/lib/mux_ruby/api/playback_id_api.rb +85 -0
  168. data/lib/mux_ruby/api/real_time_api.rb +149 -87
  169. data/lib/mux_ruby/api/url_signing_keys_api.rb +95 -48
  170. data/lib/mux_ruby/api/video_views_api.rb +60 -33
  171. data/lib/mux_ruby/api_client.rb +106 -91
  172. data/lib/mux_ruby/api_error.rb +35 -7
  173. data/lib/mux_ruby/configuration.rb +50 -14
  174. data/lib/mux_ruby/models/abridged_video_view.rb +58 -24
  175. data/lib/mux_ruby/models/asset.rb +129 -58
  176. data/lib/mux_ruby/models/asset_errors.rb +52 -15
  177. data/lib/mux_ruby/models/asset_master.rb +85 -15
  178. data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +78 -43
  179. data/lib/mux_ruby/models/asset_recording_times.rb +52 -18
  180. data/lib/mux_ruby/models/asset_response.rb +48 -14
  181. data/lib/mux_ruby/models/asset_static_renditions.rb +55 -19
  182. data/lib/mux_ruby/models/asset_static_renditions_files.rb +60 -25
  183. data/lib/mux_ruby/models/breakdown_value.rb +52 -18
  184. data/lib/mux_ruby/models/create_asset_request.rb +70 -30
  185. data/lib/mux_ruby/models/create_live_stream_request.rb +68 -23
  186. data/lib/mux_ruby/models/create_playback_id_request.rb +48 -14
  187. data/lib/mux_ruby/models/create_playback_id_response.rb +48 -14
  188. data/lib/mux_ruby/models/create_simulcast_target_request.rb +50 -16
  189. data/lib/mux_ruby/models/create_track_request.rb +65 -27
  190. data/lib/mux_ruby/models/create_track_response.rb +48 -14
  191. data/lib/mux_ruby/models/create_upload_request.rb +52 -18
  192. data/lib/mux_ruby/models/delivery_report.rb +106 -21
  193. data/lib/mux_ruby/models/dimension_value.rb +49 -15
  194. data/lib/mux_ruby/models/disable_live_stream_response.rb +48 -14
  195. data/lib/mux_ruby/models/enable_live_stream_response.rb +48 -14
  196. data/lib/mux_ruby/models/error.rb +63 -21
  197. data/lib/mux_ruby/models/export_date.rb +229 -0
  198. data/lib/mux_ruby/models/export_file.rb +236 -0
  199. data/lib/mux_ruby/models/filter_value.rb +49 -15
  200. data/lib/mux_ruby/models/get_asset_input_info_response.rb +48 -14
  201. data/lib/mux_ruby/models/get_asset_or_live_stream_id_response.rb +218 -0
  202. data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data.rb +237 -0
  203. data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data_object.rb +264 -0
  204. data/lib/mux_ruby/models/get_asset_playback_id_response.rb +48 -14
  205. data/lib/mux_ruby/models/get_metric_timeseries_data_response.rb +50 -16
  206. data/lib/mux_ruby/models/get_overall_values_response.rb +50 -16
  207. data/lib/mux_ruby/models/get_real_time_breakdown_response.rb +50 -16
  208. data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response.rb +51 -17
  209. data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response_meta.rb +48 -14
  210. data/lib/mux_ruby/models/get_real_time_timeseries_response.rb +50 -16
  211. data/lib/mux_ruby/models/incident.rb +68 -34
  212. data/lib/mux_ruby/models/incident_breakdown.rb +50 -16
  213. data/lib/mux_ruby/models/incident_notification.rb +50 -16
  214. data/lib/mux_ruby/models/incident_notification_rule.rb +52 -18
  215. data/lib/mux_ruby/models/incident_response.rb +49 -15
  216. data/lib/mux_ruby/models/input_file.rb +49 -15
  217. data/lib/mux_ruby/models/input_info.rb +49 -15
  218. data/lib/mux_ruby/models/input_settings.rb +91 -30
  219. data/lib/mux_ruby/models/input_settings_overlay_settings.rb +68 -26
  220. data/lib/mux_ruby/models/input_track.rb +56 -22
  221. data/lib/mux_ruby/models/insight.rb +53 -19
  222. data/lib/mux_ruby/models/list_all_metric_values_response.rb +50 -16
  223. data/lib/mux_ruby/models/list_assets_response.rb +48 -14
  224. data/lib/mux_ruby/models/list_breakdown_values_response.rb +50 -16
  225. data/lib/mux_ruby/models/list_delivery_usage_response.rb +51 -17
  226. data/lib/mux_ruby/models/list_dimension_values_response.rb +50 -16
  227. data/lib/mux_ruby/models/list_dimensions_response.rb +50 -16
  228. data/lib/mux_ruby/models/list_errors_response.rb +50 -16
  229. data/lib/mux_ruby/models/list_exports_response.rb +50 -16
  230. data/lib/mux_ruby/models/list_filter_values_response.rb +50 -16
  231. data/lib/mux_ruby/models/list_filters_response.rb +50 -16
  232. data/lib/mux_ruby/models/list_filters_response_data.rb +49 -15
  233. data/lib/mux_ruby/models/list_incidents_response.rb +50 -16
  234. data/lib/mux_ruby/models/list_insights_response.rb +50 -16
  235. data/lib/mux_ruby/models/list_live_streams_response.rb +48 -14
  236. data/lib/mux_ruby/models/list_real_time_dimensions_response.rb +50 -16
  237. data/lib/mux_ruby/models/list_real_time_dimensions_response_data.rb +49 -15
  238. data/lib/mux_ruby/models/list_real_time_metrics_response.rb +50 -16
  239. data/lib/mux_ruby/models/list_related_incidents_response.rb +50 -16
  240. data/lib/mux_ruby/models/list_signing_keys_response.rb +48 -14
  241. data/lib/mux_ruby/models/list_uploads_response.rb +48 -14
  242. data/lib/mux_ruby/models/list_video_view_exports_response.rb +240 -0
  243. data/lib/mux_ruby/models/list_video_views_response.rb +50 -16
  244. data/lib/mux_ruby/models/live_stream.rb +121 -29
  245. data/lib/mux_ruby/models/live_stream_response.rb +48 -14
  246. data/lib/mux_ruby/models/metric.rb +52 -18
  247. data/lib/mux_ruby/models/notification_rule.rb +50 -16
  248. data/lib/mux_ruby/models/overall_values.rb +51 -17
  249. data/lib/mux_ruby/models/playback_id.rb +50 -15
  250. data/lib/mux_ruby/models/playback_policy.rb +12 -6
  251. data/lib/mux_ruby/models/real_time_breakdown_value.rb +52 -18
  252. data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket.rb +50 -16
  253. data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket_values.rb +49 -15
  254. data/lib/mux_ruby/models/real_time_histogram_timeseries_datapoint.rb +54 -20
  255. data/lib/mux_ruby/models/real_time_timeseries_datapoint.rb +50 -16
  256. data/lib/mux_ruby/models/score.rb +53 -19
  257. data/lib/mux_ruby/models/signal_live_stream_complete_response.rb +48 -14
  258. data/lib/mux_ruby/models/signing_key.rb +53 -16
  259. data/lib/mux_ruby/models/signing_key_response.rb +48 -14
  260. data/lib/mux_ruby/models/simulcast_target.rb +55 -21
  261. data/lib/mux_ruby/models/simulcast_target_response.rb +48 -14
  262. data/lib/mux_ruby/models/track.rb +92 -33
  263. data/lib/mux_ruby/models/update_asset_master_access_request.rb +51 -17
  264. data/lib/mux_ruby/models/update_asset_mp4_support_request.rb +51 -17
  265. data/lib/mux_ruby/models/upload.rb +62 -26
  266. data/lib/mux_ruby/models/upload_error.rb +51 -15
  267. data/lib/mux_ruby/models/upload_response.rb +48 -14
  268. data/lib/mux_ruby/models/video_view.rb +242 -136
  269. data/lib/mux_ruby/models/video_view_event.rb +51 -17
  270. data/lib/mux_ruby/models/video_view_response.rb +49 -15
  271. data/lib/mux_ruby/version.rb +10 -3
  272. data/mux_ruby.gemspec +15 -15
  273. data/spec/api/assets_api_spec.rb +2 -0
  274. data/spec/api/playback_id_api_spec.rb +40 -0
  275. data/spec/api_client_spec.rb +10 -3
  276. data/spec/configuration_spec.rb +9 -2
  277. data/spec/models/asset_master_spec.rb +4 -0
  278. data/spec/models/asset_spec.rb +10 -0
  279. data/spec/models/export_date_spec.rb +40 -0
  280. data/spec/models/export_file_spec.rb +46 -0
  281. data/spec/models/get_asset_or_live_stream_id_response_data_object_spec.rb +44 -0
  282. data/spec/models/get_asset_or_live_stream_id_response_data_spec.rb +46 -0
  283. data/spec/models/get_asset_or_live_stream_id_response_spec.rb +34 -0
  284. data/spec/models/input_settings_spec.rb +12 -0
  285. data/spec/models/list_video_view_exports_response_spec.rb +46 -0
  286. data/spec/models/track_spec.rb +4 -0
  287. data/spec/spec_helper.rb +9 -2
  288. metadata +161 -235
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 949908e8ddb5270a36db4c9df9991f878e91b8e95ad6a1260506b956861f7ec6
4
- data.tar.gz: 368bcacc1322c6308fce401c068e74a5ae0bd3627e1eb2261db5d30bd53e0fa7
3
+ metadata.gz: 5ed2c3425506d9d2215a1b270685a1521fab33b7461b6df8ae7f2d1598f01be7
4
+ data.tar.gz: 51534c33cf08abb639b122d7ee2e0def4039da598f5165f63c8ab94ac4795993
5
5
  SHA512:
6
- metadata.gz: fde803ebf5c4db63c13522a8d4513282d74e1305725f122e87232be2d3126fdd1ff95c931f1e535c8d9d5de227d31924d7163a53cc51791294fb41c9afed78aa
7
- data.tar.gz: 279bdcfeb349d5f4176e0e4408597644053052ef7a3cd85152a6443e50f9c7e6704e8e2dc5d7341814cd37e96b8f9cd8bf3be6fefca36989462eddaa28152f1b
6
+ metadata.gz: abf234c5087e5bf38026f7593c2952b600cd54225cee8aa1d3d0de20ea0a2735b38c9d6bc95ff827a7d0cd45cee32346ba3e79efc0286ee3804e84d6a257e3db
7
+ data.tar.gz: d5297872e8d6a496756a197f0e9f4ed478ed68732a3ae8dfbfa3eb7287bdc2f1168718fb7a8282e3202294dd569f9052eb1fcdb0549ee0538faeed198b7e75ab
data/Gemfile CHANGED
@@ -3,7 +3,9 @@ source 'https://rubygems.org'
3
3
  gemspec
4
4
 
5
5
  group :development, :test do
6
- gem 'rake', '~> 12.3.3'
6
+ gem 'rake', '~> 13.0.1'
7
7
  gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+
8
10
  gem 'solid_assert'
9
11
  end
data/Gemfile.lock CHANGED
@@ -1,41 +1,33 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mux_ruby (1.8.1)
5
- json (~> 2.1, >= 2.1.0)
4
+ mux_ruby (2.0.0)
6
5
  typhoeus (~> 1.0, >= 1.0.1)
7
6
 
8
7
  GEM
9
8
  remote: https://rubygems.org/
10
9
  specs:
11
- ZenTest (4.12.0)
12
- addressable (2.7.0)
13
- public_suffix (>= 2.0.2, < 5.0)
14
- autotest (4.4.6)
15
- ZenTest (>= 4.4.1)
16
- autotest-fsevent (0.2.17)
17
- sys-uname
18
- autotest-growl (0.2.16)
19
- autotest-rails-pure (4.1.2)
10
+ ast (2.4.2)
20
11
  byebug (11.1.1)
21
12
  coderay (1.1.2)
22
- crack (0.4.3)
23
- safe_yaml (~> 1.0.0)
24
13
  diff-lcs (1.3)
25
- ethon (0.12.0)
26
- ffi (>= 1.3.0)
27
- ffi (1.12.2)
28
- hashdiff (1.0.1)
29
- json (2.3.0)
14
+ ethon (0.14.0)
15
+ ffi (>= 1.15.0)
16
+ ffi (1.15.3)
17
+ jaro_winkler (1.5.4)
30
18
  method_source (1.0.0)
19
+ parallel (1.20.1)
20
+ parser (3.0.2.0)
21
+ ast (~> 2.4.1)
31
22
  pry (0.13.1)
32
23
  coderay (~> 1.1)
33
24
  method_source (~> 1.0)
34
25
  pry-byebug (3.9.0)
35
26
  byebug (~> 11.0)
36
27
  pry (~> 0.13.0)
37
- public_suffix (4.0.4)
38
- rake (12.3.3)
28
+ psych (4.0.1)
29
+ rainbow (3.0.0)
30
+ rake (13.0.6)
39
31
  rspec (3.9.0)
40
32
  rspec-core (~> 3.9.0)
41
33
  rspec-expectations (~> 3.9.0)
@@ -49,33 +41,30 @@ GEM
49
41
  diff-lcs (>= 1.2.0, < 2.0)
50
42
  rspec-support (~> 3.9.0)
51
43
  rspec-support (3.9.2)
52
- safe_yaml (1.0.5)
44
+ rubocop (0.66.0)
45
+ jaro_winkler (~> 1.5.1)
46
+ parallel (~> 1.10)
47
+ parser (>= 2.5, != 2.5.1.1)
48
+ psych (>= 3.1.0)
49
+ rainbow (>= 2.2.2, < 4.0)
50
+ ruby-progressbar (~> 1.7)
51
+ unicode-display_width (>= 1.4.0, < 1.6)
52
+ ruby-progressbar (1.11.0)
53
53
  solid_assert (1.0.0)
54
- sys-uname (1.2.1)
55
- ffi (>= 1.0.0)
56
- typhoeus (1.3.1)
54
+ typhoeus (1.4.0)
57
55
  ethon (>= 0.9.0)
58
- vcr (3.0.3)
59
- webmock (1.24.6)
60
- addressable (>= 2.3.6)
61
- crack (>= 0.3.2)
62
- hashdiff
56
+ unicode-display_width (1.5.0)
63
57
 
64
58
  PLATFORMS
65
59
  ruby
66
60
 
67
61
  DEPENDENCIES
68
- autotest (~> 4.4, >= 4.4.6)
69
- autotest-fsevent (~> 0.2, >= 0.2.12)
70
- autotest-growl (~> 0.2, >= 0.2.16)
71
- autotest-rails-pure (~> 4.1, >= 4.1.2)
72
62
  mux_ruby!
73
63
  pry-byebug
74
- rake (~> 12.3.3)
64
+ rake (~> 13.0.1)
75
65
  rspec (~> 3.6, >= 3.6.0)
66
+ rubocop (~> 0.66.0)
76
67
  solid_assert
77
- vcr (~> 3.0, >= 3.0.1)
78
- webmock (~> 1.24, >= 1.24.3)
79
68
 
80
69
  BUNDLED WITH
81
- 1.17.2
70
+ 2.2.25
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  ![](https://github.com/muxinc/mux-ruby/workflows/Integration%20Test/badge.svg)
4
4
 
5
+ MuxRuby - the Ruby gem for the Mux API
6
+
5
7
  # Mux Ruby
6
8
 
7
9
  Official Mux API wrapper for ruby projects, supporting both Mux Data and Mux Video.
@@ -12,27 +14,49 @@ Official Mux API wrapper for ruby projects, supporting both Mux Data and Mux Vid
12
14
 
13
15
  Not familiar with Mux? Check out https://mux.com/ for more information.
14
16
 
15
- ## Requirements
16
-
17
- Ruby 1.9.
17
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
18
18
 
19
- Use `bundle install` to install dependencies if you're developing locally.
19
+ - API version: v1
20
+ - Package version: 2.0.0
21
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
22
+ For more information, please visit [https://docs.mux.com](https://docs.mux.com)
20
23
 
21
24
  ## Installation
22
25
 
23
- ### Adding to your Gemfile
26
+ ### Build a gem
24
27
 
25
- This gem can be sourced from [RubyGems](https://rubygems.org/gems/mux_ruby)
28
+ To build the Ruby code into a gem:
26
29
 
27
- ```
28
- gem 'mux_ruby'
30
+ ```shell
31
+ gem build mux_ruby.gemspec
29
32
  ```
30
33
 
31
- ### Clone and install locally
34
+ Then either install the gem locally:
35
+
36
+ ```shell
37
+ gem install ./mux_ruby-2.0.0.gem
32
38
  ```
33
- git clone https://github.com/muxinc/mux-ruby.git && cd mux-ruby
34
- gem build mux_ruby.gemspec
35
- gem install mux_ruby.gem
39
+
40
+ (for development, run `gem install --dev ./mux_ruby-2.0.0.gem` to install the development dependencies)
41
+
42
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
43
+
44
+ Finally add this to the Gemfile:
45
+
46
+ gem 'mux_ruby', '~> 2.0.0'
47
+
48
+ ### Install from Git
49
+
50
+ If the Ruby gem is hosted at a git repository: https://github.com/GIT_USER_ID/GIT_REPO_ID, then add the following in the Gemfile:
51
+
52
+ gem 'mux_ruby', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
53
+
54
+ ### Include the Ruby code directly
55
+
56
+ Include the Ruby code directly using `-I` as follows:
57
+
58
+ ```shell
59
+ ruby -Ilib script.rb
36
60
  ```
37
61
 
38
62
  ## Getting Started
@@ -122,7 +146,7 @@ If you run into problems, [please raise a GitHub issue,](https://github.com/muxi
122
146
 
123
147
  ## Contributing
124
148
 
125
- Please do not submit PRs against this package. It is generated from our OpenAPI definitions - [Please open an issue instead!](https://github.com/muxinc/mux-ruby/issues)
149
+ We now accept PRs against this package! Please make your modifications to the templates in `gen/templates`, not the code itself, or [please open an issue.](https://github.com/muxinc/mux-ruby/issues)
126
150
 
127
151
  ## License
128
152
 
@@ -1,18 +1,38 @@
1
1
  # MuxRuby::AbridgedVideoView
2
2
 
3
3
  ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **String** | | [optional]
7
- **viewer_os_family** | **String** | | [optional]
8
- **viewer_application_name** | **String** | | [optional]
9
- **video_title** | **String** | | [optional]
10
- **total_row_count** | **Integer** | | [optional]
11
- **player_error_message** | **String** | | [optional]
12
- **player_error_code** | **String** | | [optional]
13
- **error_type_id** | **Integer** | | [optional]
14
- **country_code** | **String** | | [optional]
15
- **view_start** | **String** | | [optional]
16
- **view_end** | **String** | | [optional]
17
4
 
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **viewer_os_family** | **String** | | [optional] |
9
+ | **viewer_application_name** | **String** | | [optional] |
10
+ | **video_title** | **String** | | [optional] |
11
+ | **total_row_count** | **Integer** | | [optional] |
12
+ | **player_error_message** | **String** | | [optional] |
13
+ | **player_error_code** | **String** | | [optional] |
14
+ | **error_type_id** | **Integer** | | [optional] |
15
+ | **country_code** | **String** | | [optional] |
16
+ | **view_start** | **String** | | [optional] |
17
+ | **view_end** | **String** | | [optional] |
18
+
19
+ ## Example
20
+
21
+ ```ruby
22
+ require 'mux_ruby'
23
+
24
+ instance = MuxRuby::AbridgedVideoView.new(
25
+ id: null,
26
+ viewer_os_family: null,
27
+ viewer_application_name: null,
28
+ video_title: null,
29
+ total_row_count: null,
30
+ player_error_message: null,
31
+ player_error_code: null,
32
+ error_type_id: null,
33
+ country_code: null,
34
+ view_start: null,
35
+ view_end: null
36
+ )
37
+ ```
18
38
 
data/docs/Asset.md CHANGED
@@ -1,30 +1,64 @@
1
1
  # MuxRuby::Asset
2
2
 
3
3
  ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **String** | | [optional]
7
- **created_at** | **String** | | [optional]
8
- **deleted_at** | **String** | | [optional]
9
- **status** | **String** | | [optional]
10
- **duration** | **Float** | | [optional]
11
- **max_stored_resolution** | **String** | | [optional]
12
- **max_stored_frame_rate** | **Float** | | [optional]
13
- **aspect_ratio** | **String** | | [optional]
14
- **playback_ids** | [**Array&lt;PlaybackID&gt;**](PlaybackID.md) | | [optional]
15
- **tracks** | [**Array&lt;Track&gt;**](Track.md) | | [optional]
16
- **errors** | [**AssetErrors**](AssetErrors.md) | | [optional]
17
- **per_title_encode** | **BOOLEAN** | | [optional]
18
- **is_live** | **BOOLEAN** | | [optional]
19
- **passthrough** | **String** | | [optional]
20
- **live_stream_id** | **String** | | [optional]
21
- **master** | [**AssetMaster**](AssetMaster.md) | | [optional]
22
- **master_access** | **String** | | [optional] [default to &#39;none&#39;]
23
- **mp4_support** | **String** | | [optional] [default to &#39;none&#39;]
24
- **normalize_audio** | **BOOLEAN** | | [optional] [default to false]
25
- **static_renditions** | [**AssetStaticRenditions**](AssetStaticRenditions.md) | | [optional]
26
- **recording_times** | [**Array&lt;AssetRecordingTimes&gt;**](AssetRecordingTimes.md) | An array of individual live stream recording sessions. A recording session is created on each encoder connection during the live stream | [optional]
27
- **non_standard_input_reasons** | [**AssetNonStandardInputReasons**](AssetNonStandardInputReasons.md) | | [optional]
28
- **test** | **BOOLEAN** | | [optional]
29
4
 
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | Unique identifier for the Asset. Max 255 characters. | [optional] |
8
+ | **created_at** | **String** | Time the Asset was created, defined as a Unix timestamp (seconds since epoch). | [optional] |
9
+ | **status** | **String** | The status of the asset. | [optional] |
10
+ | **duration** | **Float** | The duration of the asset in seconds (max duration for a single asset is 12 hours). | [optional] |
11
+ | **max_stored_resolution** | **String** | The maximum resolution that has been stored for the asset. The asset may be delivered at lower resolutions depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. | [optional] |
12
+ | **max_stored_frame_rate** | **Float** | The maximum frame rate that has been stored for the asset. The asset may be delivered at lower frame rates depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. This field may return -1 if the frame rate of the input cannot be reliably determined. | [optional] |
13
+ | **aspect_ratio** | **String** | The aspect ratio of the asset in the form of &#x60;width:height&#x60;, for example &#x60;16:9&#x60;. | [optional] |
14
+ | **playback_ids** | [**Array&lt;PlaybackID&gt;**](PlaybackID.md) | An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/video/play-your-videos) for more details. | [optional] |
15
+ | **tracks** | [**Array&lt;Track&gt;**](Track.md) | The individual media tracks that make up an asset. | [optional] |
16
+ | **errors** | [**AssetErrors**](AssetErrors.md) | | [optional] |
17
+ | **per_title_encode** | **Boolean** | | [optional] |
18
+ | **upload_id** | **String** | Unique identifier for the Direct Upload. This is an optional parameter added when the asset is created from a direct upload. | [optional] |
19
+ | **is_live** | **Boolean** | Whether the asset is created from a live stream and the live stream is currently &#x60;active&#x60; and not in &#x60;idle&#x60; state. | [optional] |
20
+ | **passthrough** | **String** | Arbitrary metadata set for the asset. Max 255 characters. | [optional] |
21
+ | **live_stream_id** | **String** | Unique identifier for the live stream. This is an optional parameter added when the asset is created from a live stream. | [optional] |
22
+ | **master** | [**AssetMaster**](AssetMaster.md) | | [optional] |
23
+ | **master_access** | **String** | | [optional][default to &#39;none&#39;] |
24
+ | **mp4_support** | **String** | | [optional][default to &#39;none&#39;] |
25
+ | **source_asset_id** | **String** | Asset Identifier of the video used as the source for creating the clip. | [optional] |
26
+ | **normalize_audio** | **Boolean** | Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. | [optional][default to false] |
27
+ | **static_renditions** | [**AssetStaticRenditions**](AssetStaticRenditions.md) | | [optional] |
28
+ | **recording_times** | [**Array&lt;AssetRecordingTimes&gt;**](AssetRecordingTimes.md) | An array of individual live stream recording sessions. A recording session is created on each encoder connection during the live stream | [optional] |
29
+ | **non_standard_input_reasons** | [**AssetNonStandardInputReasons**](AssetNonStandardInputReasons.md) | | [optional] |
30
+ | **test** | **Boolean** | True means this live stream is a test asset. A test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test assets are watermarked with the Mux logo, limited to 10 seconds, and deleted after 24 hrs. | [optional] |
31
+
32
+ ## Example
33
+
34
+ ```ruby
35
+ require 'mux_ruby'
36
+
37
+ instance = MuxRuby::Asset.new(
38
+ id: null,
39
+ created_at: null,
40
+ status: null,
41
+ duration: null,
42
+ max_stored_resolution: null,
43
+ max_stored_frame_rate: null,
44
+ aspect_ratio: null,
45
+ playback_ids: null,
46
+ tracks: null,
47
+ errors: null,
48
+ per_title_encode: null,
49
+ upload_id: null,
50
+ is_live: null,
51
+ passthrough: null,
52
+ live_stream_id: null,
53
+ master: null,
54
+ master_access: null,
55
+ mp4_support: null,
56
+ source_asset_id: null,
57
+ normalize_audio: null,
58
+ static_renditions: null,
59
+ recording_times: null,
60
+ non_standard_input_reasons: null,
61
+ test: null
62
+ )
63
+ ```
30
64
 
data/docs/AssetErrors.md CHANGED
@@ -1,9 +1,20 @@
1
1
  # MuxRuby::AssetErrors
2
2
 
3
3
  ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **type** | **String** | | [optional]
7
- **messages** | **Array&lt;String&gt;** | | [optional]
8
4
 
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **type** | **String** | The type of error that occurred for this asset. | [optional] |
8
+ | **messages** | **Array&lt;String&gt;** | Error messages with more details. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'mux_ruby'
14
+
15
+ instance = MuxRuby::AssetErrors.new(
16
+ type: null,
17
+ messages: null
18
+ )
19
+ ```
9
20
 
data/docs/AssetMaster.md CHANGED
@@ -1,9 +1,20 @@
1
1
  # MuxRuby::AssetMaster
2
2
 
3
3
  ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **status** | **String** | | [optional]
7
- **url** | **String** | | [optional]
8
4
 
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **status** | **String** | | [optional] |
8
+ | **url** | **String** | The temporary URL to the master version of the video, as an MP4 file. This URL will expire after 24 hours. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'mux_ruby'
14
+
15
+ instance = MuxRuby::AssetMaster.new(
16
+ status: null,
17
+ url: null
18
+ )
19
+ ```
9
20
 
@@ -1,16 +1,34 @@
1
1
  # MuxRuby::AssetNonStandardInputReasons
2
2
 
3
3
  ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **video_codec** | **String** | The video codec used on the input file | [optional]
7
- **audio_codec** | **String** | The audio codec used on the input file | [optional]
8
- **video_gop_size** | **String** | The video key frame Interval (also called as Group of Picture or GOP) of the input file | [optional]
9
- **video_frame_rate** | **String** | The video frame rate of the input file | [optional]
10
- **video_resolution** | **String** | The video resolution of the input file | [optional]
11
- **pixel_aspect_ratio** | **String** | The video pixel aspect ratio of the input file | [optional]
12
- **video_edit_list** | **String** | Video Edit List reason indicates that the input file&#39;s video track contains a complex Edit Decision List | [optional]
13
- **audio_edit_list** | **String** | Audio Edit List reason indicates that the input file&#39;s audio track contains a complex Edit Decision List | [optional]
14
- **unexpected_media_file_parameters** | **String** | A catch-all reason when the input file in created with non-standard encoding parameters | [optional]
15
4
 
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **video_codec** | **String** | The video codec used on the input file. For example, the input file encoded with &#x60;hevc&#x60; video codec is non-standard and the value of this parameter is &#x60;hevc&#x60;. | [optional] |
8
+ | **audio_codec** | **String** | The audio codec used on the input file. Non-AAC audio codecs are non-standard. | [optional] |
9
+ | **video_gop_size** | **String** | The video key frame Interval (also called as Group of Picture or GOP) of the input file is &#x60;high&#x60;. This parameter is present when the gop is greater than 10 seconds. | [optional] |
10
+ | **video_frame_rate** | **String** | The video frame rate of the input file. Video with average frames per second (fps) less than 10 or greater than 120 is non-standard. A &#x60;-1&#x60; frame rate value indicates Mux could not determine the frame rate of the video track. | [optional] |
11
+ | **video_resolution** | **String** | The video resolution of the input file. Video resolution higher than 2048 pixels on any one dimension (height or width) is considered non-standard, The resolution value is presented as &#x60;width&#x60; x &#x60;height&#x60; in pixels. | [optional] |
12
+ | **pixel_aspect_ratio** | **String** | The video pixel aspect ratio of the input file. | [optional] |
13
+ | **video_edit_list** | **String** | Video Edit List reason indicates that the input file&#39;s video track contains a complex Edit Decision List. | [optional] |
14
+ | **audio_edit_list** | **String** | Audio Edit List reason indicates that the input file&#39;s audio track contains a complex Edit Decision List. | [optional] |
15
+ | **unexpected_media_file_parameters** | **String** | A catch-all reason when the input file in created with non-standard encoding parameters. | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'mux_ruby'
21
+
22
+ instance = MuxRuby::AssetNonStandardInputReasons.new(
23
+ video_codec: null,
24
+ audio_codec: null,
25
+ video_gop_size: null,
26
+ video_frame_rate: null,
27
+ video_resolution: null,
28
+ pixel_aspect_ratio: null,
29
+ video_edit_list: null,
30
+ audio_edit_list: null,
31
+ unexpected_media_file_parameters: null
32
+ )
33
+ ```
16
34