mux_ruby 1.9.0 → 2.0.0.pre.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (268) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -1
  3. data/Gemfile.lock +26 -37
  4. data/README.md +36 -13
  5. data/docs/AbridgedVideoView.md +33 -13
  6. data/docs/Asset.md +57 -26
  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 +387 -160
  15. data/docs/BreakdownValue.md +21 -7
  16. data/docs/CreateAssetRequest.md +27 -10
  17. data/docs/CreateLiveStreamRequest.md +25 -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 +40 -22
  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 +37 -19
  33. data/docs/ExportsApi.md +32 -13
  34. data/docs/FilterValue.md +15 -4
  35. data/docs/FiltersApi.md +71 -33
  36. data/docs/GetAssetInputInfoResponse.md +13 -3
  37. data/docs/GetAssetOrLiveStreamIdResponse.md +13 -3
  38. data/docs/GetAssetOrLiveStreamIdResponseData.md +17 -5
  39. data/docs/GetAssetOrLiveStreamIdResponseDataObject.md +15 -4
  40. data/docs/GetAssetPlaybackIDResponse.md +13 -3
  41. data/docs/GetMetricTimeseriesDataResponse.md +17 -5
  42. data/docs/GetOverallValuesResponse.md +17 -5
  43. data/docs/GetRealTimeBreakdownResponse.md +17 -5
  44. data/docs/GetRealTimeHistogramTimeseriesResponse.md +19 -6
  45. data/docs/GetRealTimeHistogramTimeseriesResponseMeta.md +13 -3
  46. data/docs/GetRealTimeTimeseriesResponse.md +17 -5
  47. data/docs/Incident.md +53 -23
  48. data/docs/IncidentBreakdown.md +17 -5
  49. data/docs/IncidentNotification.md +17 -5
  50. data/docs/IncidentNotificationRule.md +21 -7
  51. data/docs/IncidentResponse.md +15 -4
  52. data/docs/IncidentsApi.md +115 -59
  53. data/docs/InputFile.md +15 -4
  54. data/docs/InputInfo.md +15 -4
  55. data/docs/InputSettings.md +31 -12
  56. data/docs/InputSettingsOverlaySettings.md +25 -9
  57. data/docs/InputTrack.md +29 -11
  58. data/docs/Insight.md +23 -8
  59. data/docs/ListAllMetricValuesResponse.md +17 -5
  60. data/docs/ListAssetsResponse.md +13 -3
  61. data/docs/ListBreakdownValuesResponse.md +17 -5
  62. data/docs/ListDeliveryUsageResponse.md +19 -6
  63. data/docs/ListDimensionValuesResponse.md +17 -5
  64. data/docs/ListDimensionsResponse.md +17 -5
  65. data/docs/ListErrorsResponse.md +17 -5
  66. data/docs/ListExportsResponse.md +17 -5
  67. data/docs/ListFilterValuesResponse.md +17 -5
  68. data/docs/ListFiltersResponse.md +17 -5
  69. data/docs/ListFiltersResponseData.md +15 -4
  70. data/docs/ListIncidentsResponse.md +17 -5
  71. data/docs/ListInsightsResponse.md +17 -5
  72. data/docs/ListLiveStreamsResponse.md +13 -3
  73. data/docs/ListRealTimeDimensionsResponse.md +17 -5
  74. data/docs/ListRealTimeDimensionsResponseData.md +15 -4
  75. data/docs/ListRealTimeMetricsResponse.md +17 -5
  76. data/docs/ListRelatedIncidentsResponse.md +17 -5
  77. data/docs/ListSigningKeysResponse.md +13 -3
  78. data/docs/ListUploadsResponse.md +13 -3
  79. data/docs/ListVideoViewsResponse.md +17 -5
  80. data/docs/LiveStream.md +37 -15
  81. data/docs/LiveStreamResponse.md +13 -3
  82. data/docs/LiveStreamsApi.md +418 -170
  83. data/docs/Metric.md +21 -7
  84. data/docs/MetricsApi.md +206 -112
  85. data/docs/NotificationRule.md +17 -5
  86. data/docs/OverallValues.md +19 -6
  87. data/docs/PlaybackID.md +15 -4
  88. data/docs/PlaybackIDApi.md +34 -16
  89. data/docs/PlaybackPolicy.md +10 -2
  90. data/docs/RealTimeApi.md +172 -76
  91. data/docs/RealTimeBreakdownValue.md +21 -7
  92. data/docs/RealTimeHistogramTimeseriesBucket.md +15 -4
  93. data/docs/RealTimeHistogramTimeseriesBucketValues.md +15 -4
  94. data/docs/RealTimeHistogramTimeseriesDatapoint.md +25 -9
  95. data/docs/RealTimeTimeseriesDatapoint.md +17 -5
  96. data/docs/Score.md +23 -8
  97. data/docs/SignalLiveStreamCompleteResponse.md +13 -3
  98. data/docs/SigningKey.md +17 -5
  99. data/docs/SigningKeyResponse.md +13 -3
  100. data/docs/SimulcastTarget.md +21 -7
  101. data/docs/SimulcastTargetResponse.md +13 -3
  102. data/docs/Track.md +37 -15
  103. data/docs/URLSigningKeysApi.md +127 -51
  104. data/docs/UpdateAssetMP4SupportRequest.md +13 -3
  105. data/docs/UpdateAssetMasterAccessRequest.md +13 -3
  106. data/docs/Upload.md +29 -11
  107. data/docs/UploadError.md +15 -4
  108. data/docs/UploadResponse.md +13 -3
  109. data/docs/VideoView.md +235 -114
  110. data/docs/VideoViewEvent.md +19 -6
  111. data/docs/VideoViewResponse.md +15 -4
  112. data/docs/VideoViewsApi.md +76 -39
  113. data/gen/.gitignore +7 -0
  114. data/gen/Makefile +31 -0
  115. data/gen/generator-config.json +11 -0
  116. data/gen/openapitools.json +7 -0
  117. data/gen/package.json +17 -0
  118. data/gen/templates/Gemfile.mustache +11 -0
  119. data/gen/templates/README.mustache +158 -0
  120. data/gen/templates/Rakefile.mustache +10 -0
  121. data/gen/templates/api.mustache +206 -0
  122. data/gen/templates/api_client.mustache +264 -0
  123. data/gen/templates/api_client_faraday_partial.mustache +138 -0
  124. data/gen/templates/api_client_spec.mustache +220 -0
  125. data/gen/templates/api_client_typhoeus_partial.mustache +183 -0
  126. data/gen/templates/api_doc.mustache +118 -0
  127. data/gen/templates/api_error.mustache +67 -0
  128. data/gen/templates/api_info.mustache +12 -0
  129. data/gen/templates/api_test.mustache +47 -0
  130. data/gen/templates/base_object.mustache +120 -0
  131. data/gen/templates/configuration.mustache +349 -0
  132. data/gen/templates/configuration_spec.mustache +34 -0
  133. data/gen/templates/configuration_tls_faraday_partial.mustache +29 -0
  134. data/gen/templates/configuration_tls_typhoeus_partial.mustache +34 -0
  135. data/gen/templates/gem.mustache +40 -0
  136. data/gen/templates/gemspec.mustache +35 -0
  137. data/gen/templates/gitignore.mustache +39 -0
  138. data/gen/templates/model.mustache +26 -0
  139. data/gen/templates/model_doc.mustache +12 -0
  140. data/gen/templates/model_test.mustache +77 -0
  141. data/gen/templates/partial_model_enum_class.mustache +20 -0
  142. data/gen/templates/partial_model_generic.mustache +371 -0
  143. data/gen/templates/partial_model_generic_doc.mustache +28 -0
  144. data/gen/templates/partial_oneof_module.mustache +137 -0
  145. data/gen/templates/partial_oneof_module_doc.mustache +92 -0
  146. data/gen/templates/rspec.mustache +2 -0
  147. data/gen/templates/rubocop.mustache +148 -0
  148. data/gen/templates/spec_helper.mustache +103 -0
  149. data/gen/templates/version.mustache +7 -0
  150. data/gen/yarn.lock +1878 -0
  151. data/lib/mux_ruby.rb +9 -2
  152. data/lib/mux_ruby/api/assets_api.rb +279 -150
  153. data/lib/mux_ruby/api/delivery_usage_api.rb +28 -12
  154. data/lib/mux_ruby/api/dimensions_api.rb +55 -29
  155. data/lib/mux_ruby/api/direct_uploads_api.rb +90 -44
  156. data/lib/mux_ruby/api/errors_api.rb +32 -16
  157. data/lib/mux_ruby/api/exports_api.rb +28 -12
  158. data/lib/mux_ruby/api/filters_api.rb +53 -27
  159. data/lib/mux_ruby/api/incidents_api.rb +88 -46
  160. data/lib/mux_ruby/api/live_streams_api.rb +299 -157
  161. data/lib/mux_ruby/api/metrics_api.rb +175 -104
  162. data/lib/mux_ruby/api/playback_id_api.rb +31 -15
  163. data/lib/mux_ruby/api/real_time_api.rb +139 -77
  164. data/lib/mux_ruby/api/url_signing_keys_api.rb +89 -42
  165. data/lib/mux_ruby/api/video_views_api.rb +56 -29
  166. data/lib/mux_ruby/api_client.rb +94 -79
  167. data/lib/mux_ruby/api_error.rb +35 -7
  168. data/lib/mux_ruby/configuration.rb +50 -14
  169. data/lib/mux_ruby/models/abridged_video_view.rb +58 -24
  170. data/lib/mux_ruby/models/asset.rb +88 -61
  171. data/lib/mux_ruby/models/asset_errors.rb +50 -15
  172. data/lib/mux_ruby/models/asset_master.rb +52 -17
  173. data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +70 -35
  174. data/lib/mux_ruby/models/asset_recording_times.rb +50 -16
  175. data/lib/mux_ruby/models/asset_response.rb +48 -14
  176. data/lib/mux_ruby/models/asset_static_renditions.rb +53 -17
  177. data/lib/mux_ruby/models/asset_static_renditions_files.rb +58 -23
  178. data/lib/mux_ruby/models/breakdown_value.rb +52 -18
  179. data/lib/mux_ruby/models/create_asset_request.rb +64 -30
  180. data/lib/mux_ruby/models/create_live_stream_request.rb +57 -22
  181. data/lib/mux_ruby/models/create_playback_id_request.rb +48 -14
  182. data/lib/mux_ruby/models/create_playback_id_response.rb +48 -14
  183. data/lib/mux_ruby/models/create_simulcast_target_request.rb +50 -16
  184. data/lib/mux_ruby/models/create_track_request.rb +59 -25
  185. data/lib/mux_ruby/models/create_track_response.rb +48 -14
  186. data/lib/mux_ruby/models/create_upload_request.rb +52 -18
  187. data/lib/mux_ruby/models/delivery_report.rb +106 -21
  188. data/lib/mux_ruby/models/dimension_value.rb +49 -15
  189. data/lib/mux_ruby/models/disable_live_stream_response.rb +48 -14
  190. data/lib/mux_ruby/models/enable_live_stream_response.rb +48 -14
  191. data/lib/mux_ruby/models/error.rb +63 -21
  192. data/lib/mux_ruby/models/filter_value.rb +49 -15
  193. data/lib/mux_ruby/models/get_asset_input_info_response.rb +48 -14
  194. data/lib/mux_ruby/models/get_asset_or_live_stream_id_response.rb +48 -14
  195. data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data.rb +50 -16
  196. data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data_object.rb +51 -17
  197. data/lib/mux_ruby/models/get_asset_playback_id_response.rb +48 -14
  198. data/lib/mux_ruby/models/get_metric_timeseries_data_response.rb +50 -16
  199. data/lib/mux_ruby/models/get_overall_values_response.rb +50 -16
  200. data/lib/mux_ruby/models/get_real_time_breakdown_response.rb +50 -16
  201. data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response.rb +51 -17
  202. data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response_meta.rb +48 -14
  203. data/lib/mux_ruby/models/get_real_time_timeseries_response.rb +50 -16
  204. data/lib/mux_ruby/models/incident.rb +68 -34
  205. data/lib/mux_ruby/models/incident_breakdown.rb +50 -16
  206. data/lib/mux_ruby/models/incident_notification.rb +50 -16
  207. data/lib/mux_ruby/models/incident_notification_rule.rb +52 -18
  208. data/lib/mux_ruby/models/incident_response.rb +49 -15
  209. data/lib/mux_ruby/models/input_file.rb +49 -15
  210. data/lib/mux_ruby/models/input_info.rb +49 -15
  211. data/lib/mux_ruby/models/input_settings.rb +64 -30
  212. data/lib/mux_ruby/models/input_settings_overlay_settings.rb +58 -24
  213. data/lib/mux_ruby/models/input_track.rb +56 -22
  214. data/lib/mux_ruby/models/insight.rb +53 -19
  215. data/lib/mux_ruby/models/list_all_metric_values_response.rb +50 -16
  216. data/lib/mux_ruby/models/list_assets_response.rb +48 -14
  217. data/lib/mux_ruby/models/list_breakdown_values_response.rb +50 -16
  218. data/lib/mux_ruby/models/list_delivery_usage_response.rb +51 -17
  219. data/lib/mux_ruby/models/list_dimension_values_response.rb +50 -16
  220. data/lib/mux_ruby/models/list_dimensions_response.rb +50 -16
  221. data/lib/mux_ruby/models/list_errors_response.rb +50 -16
  222. data/lib/mux_ruby/models/list_exports_response.rb +50 -16
  223. data/lib/mux_ruby/models/list_filter_values_response.rb +50 -16
  224. data/lib/mux_ruby/models/list_filters_response.rb +50 -16
  225. data/lib/mux_ruby/models/list_filters_response_data.rb +49 -15
  226. data/lib/mux_ruby/models/list_incidents_response.rb +50 -16
  227. data/lib/mux_ruby/models/list_insights_response.rb +50 -16
  228. data/lib/mux_ruby/models/list_live_streams_response.rb +48 -14
  229. data/lib/mux_ruby/models/list_real_time_dimensions_response.rb +50 -16
  230. data/lib/mux_ruby/models/list_real_time_dimensions_response_data.rb +49 -15
  231. data/lib/mux_ruby/models/list_real_time_metrics_response.rb +50 -16
  232. data/lib/mux_ruby/models/list_related_incidents_response.rb +50 -16
  233. data/lib/mux_ruby/models/list_signing_keys_response.rb +48 -14
  234. data/lib/mux_ruby/models/list_uploads_response.rb +48 -14
  235. data/lib/mux_ruby/models/list_video_views_response.rb +50 -16
  236. data/lib/mux_ruby/models/live_stream.rb +110 -28
  237. data/lib/mux_ruby/models/live_stream_response.rb +48 -14
  238. data/lib/mux_ruby/models/metric.rb +52 -18
  239. data/lib/mux_ruby/models/notification_rule.rb +50 -16
  240. data/lib/mux_ruby/models/overall_values.rb +51 -17
  241. data/lib/mux_ruby/models/playback_id.rb +49 -15
  242. data/lib/mux_ruby/models/playback_policy.rb +12 -6
  243. data/lib/mux_ruby/models/real_time_breakdown_value.rb +52 -18
  244. data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket.rb +50 -16
  245. data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket_values.rb +49 -15
  246. data/lib/mux_ruby/models/real_time_histogram_timeseries_datapoint.rb +54 -20
  247. data/lib/mux_ruby/models/real_time_timeseries_datapoint.rb +50 -16
  248. data/lib/mux_ruby/models/score.rb +53 -19
  249. data/lib/mux_ruby/models/signal_live_stream_complete_response.rb +48 -14
  250. data/lib/mux_ruby/models/signing_key.rb +53 -16
  251. data/lib/mux_ruby/models/signing_key_response.rb +48 -14
  252. data/lib/mux_ruby/models/simulcast_target.rb +54 -20
  253. data/lib/mux_ruby/models/simulcast_target_response.rb +48 -14
  254. data/lib/mux_ruby/models/track.rb +67 -33
  255. data/lib/mux_ruby/models/update_asset_master_access_request.rb +50 -16
  256. data/lib/mux_ruby/models/update_asset_mp4_support_request.rb +50 -16
  257. data/lib/mux_ruby/models/upload.rb +61 -25
  258. data/lib/mux_ruby/models/upload_error.rb +51 -15
  259. data/lib/mux_ruby/models/upload_response.rb +48 -14
  260. data/lib/mux_ruby/models/video_view.rb +166 -132
  261. data/lib/mux_ruby/models/video_view_event.rb +51 -17
  262. data/lib/mux_ruby/models/video_view_response.rb +49 -15
  263. data/lib/mux_ruby/version.rb +10 -3
  264. data/mux_ruby.gemspec +15 -17
  265. data/spec/api_client_spec.rb +10 -3
  266. data/spec/configuration_spec.rb +9 -2
  267. data/spec/spec_helper.rb +9 -2
  268. metadata +139 -242
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 57380e4202d460cfdb8bde993e835818799ea3c1df4f52f3f513eec8d10552cc
4
- data.tar.gz: 1acb2eeb73ab3c670ca81f6cf3095cc8b4681b20d458e235d969f5f103ef072e
3
+ metadata.gz: c28d49a2c666ce9ae287c24568e3ac96f76ce88fe2379da51685342f7ecdf0af
4
+ data.tar.gz: c41db82bdd105f37ff892b4225dbdefe9a8582e244b27598c3ce81d849cdf67d
5
5
  SHA512:
6
- metadata.gz: 01bc513413c7663ef490a4e193755479e7b0e6739f9f1b7ddd621e8f1146a8ec9a219be4d8b78f2b7f259105b26f203b1da04d7835bc34b718fdef3e759988c2
7
- data.tar.gz: 20adae366398998ae7861471860cb36579d2e6594620ebd6c8073d3872e326b070d33859e2244c2a0420cf5c71c8483358895cf0daf6013dcd5bf76c3c9df809
6
+ metadata.gz: cfd040f2a3ca7024191c8d915ae9f715d51ae4667e0b19d61f76208d06d093e6d9a97c5f488f1a0a0869a965d2c301edd97b12a92bef30b50e7c63c747ed6986
7
+ data.tar.gz: 28f825f2fb898231ca945877dd2d2fee242e6f8ada10fa36d8b16b48222cf493ce0a712dcedabb0c520d6a817176151043394e50770fd61814c2464167f95a5e
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.9.0)
5
- json (~> 2.1, >= 2.1.0)
4
+ mux_ruby (2.0.0.pre.rc.1)
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.1)
17
+ jaro_winkler (1.5.4)
30
18
  method_source (1.0.0)
19
+ parallel (1.20.1)
20
+ parser (3.0.1.1)
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.0)
29
+ rainbow (3.0.0)
30
+ rake (13.0.3)
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
- 2.2.13
70
+ 2.2.18
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,48 @@ 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-rc.1
21
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
20
22
 
21
23
  ## Installation
22
24
 
23
- ### Adding to your Gemfile
25
+ ### Build a gem
24
26
 
25
- This gem can be sourced from [RubyGems](https://rubygems.org/gems/mux_ruby)
27
+ To build the Ruby code into a gem:
26
28
 
27
- ```
28
- gem 'mux_ruby'
29
+ ```shell
30
+ gem build mux_ruby.gemspec
29
31
  ```
30
32
 
31
- ### Clone and install locally
33
+ Then either install the gem locally:
34
+
35
+ ```shell
36
+ gem install ./mux_ruby-2.0.0-rc.1.gem
32
37
  ```
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
38
+
39
+ (for development, run `gem install --dev ./mux_ruby-2.0.0-rc.1.gem` to install the development dependencies)
40
+
41
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
42
+
43
+ Finally add this to the Gemfile:
44
+
45
+ gem 'mux_ruby', '~> 2.0.0-rc.1'
46
+
47
+ ### Install from Git
48
+
49
+ 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:
50
+
51
+ gem 'mux_ruby', :git => 'https://github.com/GIT_USER_ID/GIT_REPO_ID.git'
52
+
53
+ ### Include the Ruby code directly
54
+
55
+ Include the Ruby code directly using `-I` as follows:
56
+
57
+ ```shell
58
+ ruby -Ilib script.rb
36
59
  ```
37
60
 
38
61
  ## Getting Started
@@ -122,7 +145,7 @@ If you run into problems, [please raise a GitHub issue,](https://github.com/muxi
122
145
 
123
146
  ## Contributing
124
147
 
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)
148
+ 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
149
 
127
150
  ## License
128
151
 
@@ -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,31 +1,62 @@
1
1
  # MuxRuby::Asset
2
2
 
3
3
  ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **id** | **String** | Unique identifier for the Asset. | [optional]
7
- **created_at** | **String** | Time at which the object was created. Measured in seconds since the Unix epoch. | [optional]
8
- **deleted_at** | **String** | | [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 24 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) | | [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** | 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]
19
- **passthrough** | **String** | Arbitrary metadata set for the asset. Max 255 characters. | [optional]
20
- **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]
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
- **source_asset_id** | **String** | Asset Identifier of the video used as the source for creating the clip. | [optional]
25
- **normalize_audio** | **BOOLEAN** | Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. | [optional] [default to false]
26
- **static_renditions** | [**AssetStaticRenditions**](AssetStaticRenditions.md) | | [optional]
27
- **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]
28
- **non_standard_input_reasons** | [**AssetNonStandardInputReasons**](AssetNonStandardInputReasons.md) | | [optional]
29
- **test** | **BOOLEAN** | Indicates this asset is a test asset if the value is &#x60;true&#x60;. 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]
30
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 24 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
+ | **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] |
19
+ | **passthrough** | **String** | Arbitrary metadata set for the asset. Max 255 characters. | [optional] |
20
+ | **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] |
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
+ | **source_asset_id** | **String** | Asset Identifier of the video used as the source for creating the clip. | [optional] |
25
+ | **normalize_audio** | **Boolean** | Normalize the audio track loudness level. This parameter is only applicable to on-demand (not live) assets. | [optional][default to false] |
26
+ | **static_renditions** | [**AssetStaticRenditions**](AssetStaticRenditions.md) | | [optional] |
27
+ | **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] |
28
+ | **non_standard_input_reasons** | [**AssetNonStandardInputReasons**](AssetNonStandardInputReasons.md) | | [optional] |
29
+ | **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] |
30
+
31
+ ## Example
32
+
33
+ ```ruby
34
+ require 'mux_ruby'
35
+
36
+ instance = MuxRuby::Asset.new(
37
+ id: null,
38
+ created_at: null,
39
+ status: null,
40
+ duration: null,
41
+ max_stored_resolution: null,
42
+ max_stored_frame_rate: null,
43
+ aspect_ratio: null,
44
+ playback_ids: null,
45
+ tracks: null,
46
+ errors: null,
47
+ per_title_encode: null,
48
+ is_live: null,
49
+ passthrough: null,
50
+ live_stream_id: null,
51
+ master: null,
52
+ master_access: null,
53
+ mp4_support: null,
54
+ source_asset_id: null,
55
+ normalize_audio: null,
56
+ static_renditions: null,
57
+ recording_times: null,
58
+ non_standard_input_reasons: null,
59
+ test: null
60
+ )
61
+ ```
31
62
 
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** | The type of error that occurred for this asset. | [optional]
7
- **messages** | **Array&lt;String&gt;** | Error messages with more details. | [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
 
@@ -1,9 +1,20 @@
1
1
  # MuxRuby::AssetRecordingTimes
2
2
 
3
3
  ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **started_at** | **DateTime** | The time at which the recording for the live stream started. The time value is Unix epoch time represented in ISO 8601 format. | [optional]
7
- **duration** | **Float** | The duration of the live stream recorded. The time value is in seconds. | [optional]
8
4
 
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **started_at** | **Time** | The time at which the recording for the live stream started. The time value is Unix epoch time represented in ISO 8601 format. | [optional] |
8
+ | **duration** | **Float** | The duration of the live stream recorded. The time value is in seconds. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'mux_ruby'
14
+
15
+ instance = MuxRuby::AssetRecordingTimes.new(
16
+ started_at: null,
17
+ duration: null
18
+ )
19
+ ```
9
20