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.
- checksums.yaml +4 -4
- data/Gemfile +3 -1
- data/Gemfile.lock +26 -37
- data/README.md +37 -13
- data/docs/AbridgedVideoView.md +33 -13
- data/docs/Asset.md +59 -25
- data/docs/AssetErrors.md +15 -4
- data/docs/AssetMaster.md +15 -4
- data/docs/AssetNonStandardInputReasons.md +29 -11
- data/docs/AssetRecordingTimes.md +15 -4
- data/docs/AssetResponse.md +13 -3
- data/docs/AssetStaticRenditions.md +15 -4
- data/docs/AssetStaticRenditionsFiles.md +23 -8
- data/docs/AssetsApi.md +396 -161
- data/docs/BreakdownValue.md +21 -7
- data/docs/CreateAssetRequest.md +27 -10
- data/docs/CreateLiveStreamRequest.md +27 -9
- data/docs/CreatePlaybackIDRequest.md +13 -3
- data/docs/CreatePlaybackIDResponse.md +13 -3
- data/docs/CreateSimulcastTargetRequest.md +17 -5
- data/docs/CreateTrackRequest.md +25 -9
- data/docs/CreateTrackResponse.md +13 -3
- data/docs/CreateUploadRequest.md +19 -6
- data/docs/DeliveryReport.md +27 -9
- data/docs/DeliveryUsageApi.md +41 -23
- data/docs/DimensionValue.md +15 -4
- data/docs/DimensionsApi.md +72 -34
- data/docs/DirectUploadsApi.md +131 -56
- data/docs/DisableLiveStreamResponse.md +13 -3
- data/docs/EnableLiveStreamResponse.md +13 -3
- data/docs/Error.md +27 -10
- data/docs/ErrorsApi.md +38 -20
- data/docs/ExportDate.md +20 -0
- data/docs/ExportFile.md +22 -0
- data/docs/ExportsApi.md +99 -12
- data/docs/FilterValue.md +15 -4
- data/docs/FiltersApi.md +71 -33
- data/docs/GetAssetInputInfoResponse.md +13 -3
- data/docs/GetAssetOrLiveStreamIdResponse.md +18 -0
- data/docs/GetAssetOrLiveStreamIdResponseData.md +22 -0
- data/docs/GetAssetOrLiveStreamIdResponseDataObject.md +20 -0
- data/docs/GetAssetPlaybackIDResponse.md +13 -3
- data/docs/GetMetricTimeseriesDataResponse.md +17 -5
- data/docs/GetOverallValuesResponse.md +17 -5
- data/docs/GetRealTimeBreakdownResponse.md +17 -5
- data/docs/GetRealTimeHistogramTimeseriesResponse.md +19 -6
- data/docs/GetRealTimeHistogramTimeseriesResponseMeta.md +13 -3
- data/docs/GetRealTimeTimeseriesResponse.md +17 -5
- data/docs/Incident.md +53 -23
- data/docs/IncidentBreakdown.md +17 -5
- data/docs/IncidentNotification.md +17 -5
- data/docs/IncidentNotificationRule.md +21 -7
- data/docs/IncidentResponse.md +15 -4
- data/docs/IncidentsApi.md +118 -62
- data/docs/InputFile.md +15 -4
- data/docs/InputInfo.md +15 -4
- data/docs/InputSettings.md +31 -10
- data/docs/InputSettingsOverlaySettings.md +25 -9
- data/docs/InputTrack.md +29 -11
- data/docs/Insight.md +23 -8
- data/docs/ListAllMetricValuesResponse.md +17 -5
- data/docs/ListAssetsResponse.md +13 -3
- data/docs/ListBreakdownValuesResponse.md +17 -5
- data/docs/ListDeliveryUsageResponse.md +19 -6
- data/docs/ListDimensionValuesResponse.md +17 -5
- data/docs/ListDimensionsResponse.md +17 -5
- data/docs/ListErrorsResponse.md +17 -5
- data/docs/ListExportsResponse.md +17 -5
- data/docs/ListFilterValuesResponse.md +17 -5
- data/docs/ListFiltersResponse.md +17 -5
- data/docs/ListFiltersResponseData.md +15 -4
- data/docs/ListIncidentsResponse.md +17 -5
- data/docs/ListInsightsResponse.md +17 -5
- data/docs/ListLiveStreamsResponse.md +13 -3
- data/docs/ListRealTimeDimensionsResponse.md +17 -5
- data/docs/ListRealTimeDimensionsResponseData.md +15 -4
- data/docs/ListRealTimeMetricsResponse.md +17 -5
- data/docs/ListRelatedIncidentsResponse.md +17 -5
- data/docs/ListSigningKeysResponse.md +13 -3
- data/docs/ListUploadsResponse.md +13 -3
- data/docs/ListVideoViewExportsResponse.md +22 -0
- data/docs/ListVideoViewsResponse.md +17 -5
- data/docs/LiveStream.md +39 -15
- data/docs/LiveStreamResponse.md +13 -3
- data/docs/LiveStreamsApi.md +418 -170
- data/docs/Metric.md +21 -7
- data/docs/MetricsApi.md +211 -117
- data/docs/NotificationRule.md +17 -5
- data/docs/OverallValues.md +19 -6
- data/docs/PlaybackID.md +15 -4
- data/docs/PlaybackIDApi.md +78 -0
- data/docs/PlaybackPolicy.md +10 -2
- data/docs/RealTimeApi.md +177 -81
- data/docs/RealTimeBreakdownValue.md +21 -7
- data/docs/RealTimeHistogramTimeseriesBucket.md +15 -4
- data/docs/RealTimeHistogramTimeseriesBucketValues.md +15 -4
- data/docs/RealTimeHistogramTimeseriesDatapoint.md +25 -9
- data/docs/RealTimeTimeseriesDatapoint.md +17 -5
- data/docs/Score.md +23 -8
- data/docs/SignalLiveStreamCompleteResponse.md +13 -3
- data/docs/SigningKey.md +17 -5
- data/docs/SigningKeyResponse.md +13 -3
- data/docs/SimulcastTarget.md +21 -7
- data/docs/SimulcastTargetResponse.md +13 -3
- data/docs/Track.md +37 -15
- data/docs/URLSigningKeysApi.md +130 -54
- data/docs/UpdateAssetMP4SupportRequest.md +13 -3
- data/docs/UpdateAssetMasterAccessRequest.md +13 -3
- data/docs/Upload.md +29 -11
- data/docs/UploadError.md +15 -4
- data/docs/UploadResponse.md +13 -3
- data/docs/VideoView.md +251 -114
- data/docs/VideoViewEvent.md +19 -6
- data/docs/VideoViewResponse.md +15 -4
- data/docs/VideoViewsApi.md +78 -41
- data/examples/video/exercise-assets.rb +21 -0
- data/examples/video/exercise-live-streams.rb +8 -0
- data/gen/.gitignore +7 -0
- data/gen/Makefile +31 -0
- data/gen/generator-config.json +11 -0
- data/gen/openapitools.json +7 -0
- data/gen/package.json +17 -0
- data/gen/templates/Gemfile.mustache +11 -0
- data/gen/templates/README.mustache +158 -0
- data/gen/templates/Rakefile.mustache +10 -0
- data/gen/templates/api.mustache +206 -0
- data/gen/templates/api_client.mustache +264 -0
- data/gen/templates/api_client_faraday_partial.mustache +138 -0
- data/gen/templates/api_client_spec.mustache +220 -0
- data/gen/templates/api_client_typhoeus_partial.mustache +183 -0
- data/gen/templates/api_doc.mustache +118 -0
- data/gen/templates/api_error.mustache +67 -0
- data/gen/templates/api_info.mustache +12 -0
- data/gen/templates/api_test.mustache +47 -0
- data/gen/templates/base_object.mustache +120 -0
- data/gen/templates/configuration.mustache +349 -0
- data/gen/templates/configuration_spec.mustache +34 -0
- data/gen/templates/configuration_tls_faraday_partial.mustache +29 -0
- data/gen/templates/configuration_tls_typhoeus_partial.mustache +34 -0
- data/gen/templates/gem.mustache +40 -0
- data/gen/templates/gemspec.mustache +35 -0
- data/gen/templates/gitignore.mustache +39 -0
- data/gen/templates/model.mustache +26 -0
- data/gen/templates/model_doc.mustache +12 -0
- data/gen/templates/model_test.mustache +77 -0
- data/gen/templates/partial_model_enum_class.mustache +20 -0
- data/gen/templates/partial_model_generic.mustache +371 -0
- data/gen/templates/partial_model_generic_doc.mustache +28 -0
- data/gen/templates/partial_oneof_module.mustache +137 -0
- data/gen/templates/partial_oneof_module_doc.mustache +92 -0
- data/gen/templates/rspec.mustache +2 -0
- data/gen/templates/rubocop.mustache +148 -0
- data/gen/templates/spec_helper.mustache +103 -0
- data/gen/templates/version.mustache +7 -0
- data/gen/yarn.lock +1878 -0
- data/lib/mux_ruby.rb +16 -2
- data/lib/mux_ruby/api/assets_api.rb +291 -152
- data/lib/mux_ruby/api/delivery_usage_api.rb +32 -16
- data/lib/mux_ruby/api/dimensions_api.rb +55 -29
- data/lib/mux_ruby/api/direct_uploads_api.rb +90 -44
- data/lib/mux_ruby/api/errors_api.rb +34 -18
- data/lib/mux_ruby/api/exports_api.rb +86 -13
- data/lib/mux_ruby/api/filters_api.rb +53 -27
- data/lib/mux_ruby/api/incidents_api.rb +94 -52
- data/lib/mux_ruby/api/live_streams_api.rb +299 -157
- data/lib/mux_ruby/api/metrics_api.rb +193 -122
- data/lib/mux_ruby/api/playback_id_api.rb +85 -0
- data/lib/mux_ruby/api/real_time_api.rb +149 -87
- data/lib/mux_ruby/api/url_signing_keys_api.rb +95 -48
- data/lib/mux_ruby/api/video_views_api.rb +60 -33
- data/lib/mux_ruby/api_client.rb +106 -91
- data/lib/mux_ruby/api_error.rb +35 -7
- data/lib/mux_ruby/configuration.rb +50 -14
- data/lib/mux_ruby/models/abridged_video_view.rb +58 -24
- data/lib/mux_ruby/models/asset.rb +129 -58
- data/lib/mux_ruby/models/asset_errors.rb +52 -15
- data/lib/mux_ruby/models/asset_master.rb +85 -15
- data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +78 -43
- data/lib/mux_ruby/models/asset_recording_times.rb +52 -18
- data/lib/mux_ruby/models/asset_response.rb +48 -14
- data/lib/mux_ruby/models/asset_static_renditions.rb +55 -19
- data/lib/mux_ruby/models/asset_static_renditions_files.rb +60 -25
- data/lib/mux_ruby/models/breakdown_value.rb +52 -18
- data/lib/mux_ruby/models/create_asset_request.rb +70 -30
- data/lib/mux_ruby/models/create_live_stream_request.rb +68 -23
- data/lib/mux_ruby/models/create_playback_id_request.rb +48 -14
- data/lib/mux_ruby/models/create_playback_id_response.rb +48 -14
- data/lib/mux_ruby/models/create_simulcast_target_request.rb +50 -16
- data/lib/mux_ruby/models/create_track_request.rb +65 -27
- data/lib/mux_ruby/models/create_track_response.rb +48 -14
- data/lib/mux_ruby/models/create_upload_request.rb +52 -18
- data/lib/mux_ruby/models/delivery_report.rb +106 -21
- data/lib/mux_ruby/models/dimension_value.rb +49 -15
- data/lib/mux_ruby/models/disable_live_stream_response.rb +48 -14
- data/lib/mux_ruby/models/enable_live_stream_response.rb +48 -14
- data/lib/mux_ruby/models/error.rb +63 -21
- data/lib/mux_ruby/models/export_date.rb +229 -0
- data/lib/mux_ruby/models/export_file.rb +236 -0
- data/lib/mux_ruby/models/filter_value.rb +49 -15
- data/lib/mux_ruby/models/get_asset_input_info_response.rb +48 -14
- data/lib/mux_ruby/models/get_asset_or_live_stream_id_response.rb +218 -0
- data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data.rb +237 -0
- data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data_object.rb +264 -0
- data/lib/mux_ruby/models/get_asset_playback_id_response.rb +48 -14
- data/lib/mux_ruby/models/get_metric_timeseries_data_response.rb +50 -16
- data/lib/mux_ruby/models/get_overall_values_response.rb +50 -16
- data/lib/mux_ruby/models/get_real_time_breakdown_response.rb +50 -16
- data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response.rb +51 -17
- data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response_meta.rb +48 -14
- data/lib/mux_ruby/models/get_real_time_timeseries_response.rb +50 -16
- data/lib/mux_ruby/models/incident.rb +68 -34
- data/lib/mux_ruby/models/incident_breakdown.rb +50 -16
- data/lib/mux_ruby/models/incident_notification.rb +50 -16
- data/lib/mux_ruby/models/incident_notification_rule.rb +52 -18
- data/lib/mux_ruby/models/incident_response.rb +49 -15
- data/lib/mux_ruby/models/input_file.rb +49 -15
- data/lib/mux_ruby/models/input_info.rb +49 -15
- data/lib/mux_ruby/models/input_settings.rb +91 -30
- data/lib/mux_ruby/models/input_settings_overlay_settings.rb +68 -26
- data/lib/mux_ruby/models/input_track.rb +56 -22
- data/lib/mux_ruby/models/insight.rb +53 -19
- data/lib/mux_ruby/models/list_all_metric_values_response.rb +50 -16
- data/lib/mux_ruby/models/list_assets_response.rb +48 -14
- data/lib/mux_ruby/models/list_breakdown_values_response.rb +50 -16
- data/lib/mux_ruby/models/list_delivery_usage_response.rb +51 -17
- data/lib/mux_ruby/models/list_dimension_values_response.rb +50 -16
- data/lib/mux_ruby/models/list_dimensions_response.rb +50 -16
- data/lib/mux_ruby/models/list_errors_response.rb +50 -16
- data/lib/mux_ruby/models/list_exports_response.rb +50 -16
- data/lib/mux_ruby/models/list_filter_values_response.rb +50 -16
- data/lib/mux_ruby/models/list_filters_response.rb +50 -16
- data/lib/mux_ruby/models/list_filters_response_data.rb +49 -15
- data/lib/mux_ruby/models/list_incidents_response.rb +50 -16
- data/lib/mux_ruby/models/list_insights_response.rb +50 -16
- data/lib/mux_ruby/models/list_live_streams_response.rb +48 -14
- data/lib/mux_ruby/models/list_real_time_dimensions_response.rb +50 -16
- data/lib/mux_ruby/models/list_real_time_dimensions_response_data.rb +49 -15
- data/lib/mux_ruby/models/list_real_time_metrics_response.rb +50 -16
- data/lib/mux_ruby/models/list_related_incidents_response.rb +50 -16
- data/lib/mux_ruby/models/list_signing_keys_response.rb +48 -14
- data/lib/mux_ruby/models/list_uploads_response.rb +48 -14
- data/lib/mux_ruby/models/list_video_view_exports_response.rb +240 -0
- data/lib/mux_ruby/models/list_video_views_response.rb +50 -16
- data/lib/mux_ruby/models/live_stream.rb +121 -29
- data/lib/mux_ruby/models/live_stream_response.rb +48 -14
- data/lib/mux_ruby/models/metric.rb +52 -18
- data/lib/mux_ruby/models/notification_rule.rb +50 -16
- data/lib/mux_ruby/models/overall_values.rb +51 -17
- data/lib/mux_ruby/models/playback_id.rb +50 -15
- data/lib/mux_ruby/models/playback_policy.rb +12 -6
- data/lib/mux_ruby/models/real_time_breakdown_value.rb +52 -18
- data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket.rb +50 -16
- data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket_values.rb +49 -15
- data/lib/mux_ruby/models/real_time_histogram_timeseries_datapoint.rb +54 -20
- data/lib/mux_ruby/models/real_time_timeseries_datapoint.rb +50 -16
- data/lib/mux_ruby/models/score.rb +53 -19
- data/lib/mux_ruby/models/signal_live_stream_complete_response.rb +48 -14
- data/lib/mux_ruby/models/signing_key.rb +53 -16
- data/lib/mux_ruby/models/signing_key_response.rb +48 -14
- data/lib/mux_ruby/models/simulcast_target.rb +55 -21
- data/lib/mux_ruby/models/simulcast_target_response.rb +48 -14
- data/lib/mux_ruby/models/track.rb +92 -33
- data/lib/mux_ruby/models/update_asset_master_access_request.rb +51 -17
- data/lib/mux_ruby/models/update_asset_mp4_support_request.rb +51 -17
- data/lib/mux_ruby/models/upload.rb +62 -26
- data/lib/mux_ruby/models/upload_error.rb +51 -15
- data/lib/mux_ruby/models/upload_response.rb +48 -14
- data/lib/mux_ruby/models/video_view.rb +242 -136
- data/lib/mux_ruby/models/video_view_event.rb +51 -17
- data/lib/mux_ruby/models/video_view_response.rb +49 -15
- data/lib/mux_ruby/version.rb +10 -3
- data/mux_ruby.gemspec +15 -15
- data/spec/api/assets_api_spec.rb +2 -0
- data/spec/api/playback_id_api_spec.rb +40 -0
- data/spec/api_client_spec.rb +10 -3
- data/spec/configuration_spec.rb +9 -2
- data/spec/models/asset_master_spec.rb +4 -0
- data/spec/models/asset_spec.rb +10 -0
- data/spec/models/export_date_spec.rb +40 -0
- data/spec/models/export_file_spec.rb +46 -0
- data/spec/models/get_asset_or_live_stream_id_response_data_object_spec.rb +44 -0
- data/spec/models/get_asset_or_live_stream_id_response_data_spec.rb +46 -0
- data/spec/models/get_asset_or_live_stream_id_response_spec.rb +34 -0
- data/spec/models/input_settings_spec.rb +12 -0
- data/spec/models/list_video_view_exports_response_spec.rb +46 -0
- data/spec/models/track_spec.rb +4 -0
- data/spec/spec_helper.rb +9 -2
- metadata +161 -235
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ed2c3425506d9d2215a1b270685a1521fab33b7461b6df8ae7f2d1598f01be7
|
4
|
+
data.tar.gz: 51534c33cf08abb639b122d7ee2e0def4039da598f5165f63c8ab94ac4795993
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: abf234c5087e5bf38026f7593c2952b600cd54225cee8aa1d3d0de20ea0a2735b38c9d6bc95ff827a7d0cd45cee32346ba3e79efc0286ee3804e84d6a257e3db
|
7
|
+
data.tar.gz: d5297872e8d6a496756a197f0e9f4ed478ed68732a3ae8dfbfa3eb7287bdc2f1168718fb7a8282e3202294dd569f9052eb1fcdb0549ee0538faeed198b7e75ab
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,41 +1,33 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
mux_ruby (
|
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
|
-
|
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.
|
26
|
-
ffi (>= 1.
|
27
|
-
ffi (1.
|
28
|
-
|
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
|
-
|
38
|
-
|
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
|
-
|
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
|
-
|
55
|
-
ffi (>= 1.0.0)
|
56
|
-
typhoeus (1.3.1)
|
54
|
+
typhoeus (1.4.0)
|
57
55
|
ethon (>= 0.9.0)
|
58
|
-
|
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 (~>
|
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
|
-
|
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
|
-
|
16
|
-
|
17
|
-
Ruby 1.9.
|
17
|
+
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
18
18
|
|
19
|
-
|
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
|
-
###
|
26
|
+
### Build a gem
|
24
27
|
|
25
|
-
|
28
|
+
To build the Ruby code into a gem:
|
26
29
|
|
27
|
-
```
|
28
|
-
gem
|
30
|
+
```shell
|
31
|
+
gem build mux_ruby.gemspec
|
29
32
|
```
|
30
33
|
|
31
|
-
|
34
|
+
Then either install the gem locally:
|
35
|
+
|
36
|
+
```shell
|
37
|
+
gem install ./mux_ruby-2.0.0.gem
|
32
38
|
```
|
33
|
-
|
34
|
-
gem
|
35
|
-
|
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
|
-
|
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
|
|
data/docs/AbridgedVideoView.md
CHANGED
@@ -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<PlaybackID>**](PlaybackID.md) | | [optional]
|
15
|
-
**tracks** | [**Array<Track>**](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 'none']
|
23
|
-
**mp4_support** | **String** | | [optional] [default to 'none']
|
24
|
-
**normalize_audio** | **BOOLEAN** | | [optional] [default to false]
|
25
|
-
**static_renditions** | [**AssetStaticRenditions**](AssetStaticRenditions.md) | | [optional]
|
26
|
-
**recording_times** | [**Array<AssetRecordingTimes>**](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 `width:height`, for example `16:9`. | [optional] |
|
14
|
+
| **playback_ids** | [**Array<PlaybackID>**](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<Track>**](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 `active` and not in `idle` 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 'none'] |
|
24
|
+
| **mp4_support** | **String** | | [optional][default to 'none'] |
|
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<AssetRecordingTimes>**](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<String>** | | [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<String>** | 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's video track contains a complex Edit Decision List | [optional]
|
13
|
-
**audio_edit_list** | **String** | Audio Edit List reason indicates that the input file'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 `hevc` video codec is non-standard and the value of this parameter is `hevc`. | [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 `high`. 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 `-1` 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 `width` x `height` 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's video track contains a complex Edit Decision List. | [optional] |
|
14
|
+
| **audio_edit_list** | **String** | Audio Edit List reason indicates that the input file'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
|
|