mux_ruby 1.6.0 → 2.0.0.pre.rc.2
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 -23
- data/docs/AssetErrors.md +15 -4
- data/docs/AssetMaster.md +15 -4
- data/docs/AssetNonStandardInputReasons.md +34 -0
- data/docs/AssetRecordingTimes.md +20 -0
- 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 +20 -0
- data/docs/DimensionsApi.md +156 -0
- data/docs/DirectUploadsApi.md +131 -56
- data/docs/DisableLiveStreamResponse.md +18 -0
- data/docs/EnableLiveStreamResponse.md +18 -0
- data/docs/Error.md +27 -10
- data/docs/ErrorsApi.md +38 -20
- data/docs/ExportsApi.md +33 -14
- data/docs/FilterValue.md +15 -4
- data/docs/FiltersApi.md +73 -35
- 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 +22 -0
- data/docs/GetRealTimeHistogramTimeseriesResponse.md +24 -0
- data/docs/GetRealTimeHistogramTimeseriesResponseMeta.md +18 -0
- data/docs/GetRealTimeTimeseriesResponse.md +22 -0
- data/docs/Incident.md +58 -0
- data/docs/IncidentBreakdown.md +22 -0
- data/docs/IncidentNotification.md +22 -0
- data/docs/IncidentNotificationRule.md +26 -0
- data/docs/IncidentResponse.md +20 -0
- data/docs/IncidentsApi.md +242 -0
- 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 +22 -0
- data/docs/ListDimensionsResponse.md +22 -0
- 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 +22 -0
- data/docs/ListInsightsResponse.md +17 -5
- data/docs/ListLiveStreamsResponse.md +13 -3
- data/docs/ListRealTimeDimensionsResponse.md +22 -0
- data/docs/ListRealTimeDimensionsResponseData.md +20 -0
- data/docs/ListRealTimeMetricsResponse.md +22 -0
- data/docs/ListRelatedIncidentsResponse.md +22 -0
- data/docs/ListSigningKeysResponse.md +13 -3
- data/docs/ListUploadsResponse.md +13 -3
- data/docs/ListVideoViewsResponse.md +17 -5
- data/docs/LiveStream.md +39 -15
- data/docs/LiveStreamResponse.md +13 -3
- data/docs/LiveStreamsApi.md +497 -145
- data/docs/Metric.md +21 -7
- data/docs/MetricsApi.md +211 -117
- data/docs/NotificationRule.md +22 -0
- 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 +376 -0
- data/docs/RealTimeBreakdownValue.md +26 -0
- data/docs/RealTimeHistogramTimeseriesBucket.md +20 -0
- data/docs/RealTimeHistogramTimeseriesBucketValues.md +20 -0
- data/docs/RealTimeHistogramTimeseriesDatapoint.md +30 -0
- data/docs/RealTimeTimeseriesDatapoint.md +22 -0
- 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/data/exercise-dimensions.rb +29 -0
- data/examples/data/exercise-incidents.rb +29 -0
- data/examples/data/exercise-realtime.rb +60 -0
- data/examples/video/exercise-assets.rb +21 -0
- data/examples/video/exercise-live-streams.rb +30 -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 +43 -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 +154 -0
- 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 +30 -14
- data/lib/mux_ruby/api/filters_api.rb +57 -31
- data/lib/mux_ruby/api/incidents_api.rb +259 -0
- data/lib/mux_ruby/api/live_streams_api.rb +381 -133
- data/lib/mux_ruby/api/metrics_api.rb +185 -114
- data/lib/mux_ruby/api/playback_id_api.rb +85 -0
- data/lib/mux_ruby/api/real_time_api.rb +373 -0
- 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 +157 -53
- 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 +370 -0
- data/lib/mux_ruby/models/asset_recording_times.rb +229 -0
- 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 +227 -0
- data/lib/mux_ruby/models/disable_live_stream_response.rb +218 -0
- data/lib/mux_ruby/models/enable_live_stream_response.rb +218 -0
- data/lib/mux_ruby/models/error.rb +63 -21
- 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 +240 -0
- data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response.rb +249 -0
- data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response_meta.rb +220 -0
- data/lib/mux_ruby/models/get_real_time_timeseries_response.rb +240 -0
- data/lib/mux_ruby/models/incident.rb +404 -0
- data/lib/mux_ruby/models/incident_breakdown.rb +236 -0
- data/lib/mux_ruby/models/incident_notification.rb +236 -0
- data/lib/mux_ruby/models/incident_notification_rule.rb +256 -0
- data/lib/mux_ruby/models/incident_response.rb +229 -0
- 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 +240 -0
- data/lib/mux_ruby/models/list_dimensions_response.rb +238 -0
- 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 +240 -0
- 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 +240 -0
- data/lib/mux_ruby/models/list_real_time_dimensions_response_data.rb +227 -0
- data/lib/mux_ruby/models/list_real_time_metrics_response.rb +240 -0
- data/lib/mux_ruby/models/list_related_incidents_response.rb +240 -0
- 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_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 +236 -0
- 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 +254 -0
- data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket.rb +227 -0
- data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket_values.rb +227 -0
- data/lib/mux_ruby/models/real_time_histogram_timeseries_datapoint.rb +274 -0
- data/lib/mux_ruby/models/real_time_timeseries_datapoint.rb +236 -0
- 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/dimensions_api_spec.rb +55 -0
- data/spec/api/filters_api_spec.rb +2 -2
- data/spec/api/incidents_api_spec.rb +73 -0
- data/spec/api/live_streams_api_spec.rb +24 -0
- data/spec/api/playback_id_api_spec.rb +40 -0
- data/spec/api/real_time_api_spec.rb +93 -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_non_standard_input_reasons_spec.rb +98 -0
- data/spec/models/asset_recording_times_spec.rb +40 -0
- data/spec/models/asset_spec.rb +26 -0
- data/spec/models/dimension_value_spec.rb +40 -0
- data/spec/models/disable_live_stream_response_spec.rb +34 -0
- data/spec/models/enable_live_stream_response_spec.rb +34 -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/get_real_time_breakdown_response_spec.rb +46 -0
- data/spec/models/get_real_time_histogram_timeseries_response_meta_spec.rb +34 -0
- data/spec/models/get_real_time_histogram_timeseries_response_spec.rb +52 -0
- data/spec/models/get_real_time_timeseries_response_spec.rb +46 -0
- data/spec/models/incident_breakdown_spec.rb +46 -0
- data/spec/models/incident_notification_rule_spec.rb +58 -0
- data/spec/models/incident_notification_spec.rb +46 -0
- data/spec/models/incident_response_spec.rb +40 -0
- data/spec/models/incident_spec.rb +154 -0
- data/spec/models/input_settings_spec.rb +12 -0
- data/spec/models/list_dimension_values_response_spec.rb +46 -0
- data/spec/models/list_dimensions_response_spec.rb +46 -0
- data/spec/models/list_incidents_response_spec.rb +46 -0
- data/spec/models/list_real_time_dimensions_response_data_spec.rb +40 -0
- data/spec/models/list_real_time_dimensions_response_spec.rb +46 -0
- data/spec/models/list_real_time_metrics_response_spec.rb +46 -0
- data/spec/models/list_related_incidents_response_spec.rb +46 -0
- data/spec/models/notification_rule_spec.rb +46 -0
- data/spec/models/real_time_breakdown_value_spec.rb +58 -0
- data/spec/models/real_time_histogram_timeseries_bucket_spec.rb +40 -0
- data/spec/models/real_time_histogram_timeseries_bucket_values_spec.rb +40 -0
- data/spec/models/real_time_histogram_timeseries_datapoint_spec.rb +70 -0
- data/spec/models/real_time_timeseries_datapoint_spec.rb +46 -0
- data/spec/models/track_spec.rb +4 -0
- data/spec/spec_helper.rb +9 -2
- metadata +246 -209
@@ -0,0 +1,73 @@
|
|
1
|
+
=begin
|
2
|
+
# Mux Ruby - Copyright 2019 Mux Inc.
|
3
|
+
# NOTE: This file is auto generated. Do not edit this file manually.
|
4
|
+
=end
|
5
|
+
|
6
|
+
require 'spec_helper'
|
7
|
+
require 'json'
|
8
|
+
|
9
|
+
# Unit tests for MuxRuby::IncidentsApi
|
10
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
11
|
+
# Please update as you see appropriate
|
12
|
+
describe 'IncidentsApi' do
|
13
|
+
before do
|
14
|
+
# run before each test
|
15
|
+
@instance = MuxRuby::IncidentsApi.new
|
16
|
+
end
|
17
|
+
|
18
|
+
after do
|
19
|
+
# run after each test
|
20
|
+
end
|
21
|
+
|
22
|
+
describe 'test an instance of IncidentsApi' do
|
23
|
+
it 'should create an instance of IncidentsApi' do
|
24
|
+
expect(@instance).to be_instance_of(MuxRuby::IncidentsApi)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
# unit tests for get_incident
|
29
|
+
# Get an Incident
|
30
|
+
# Returns the details of an incident
|
31
|
+
# @param incident_id ID of the Incident
|
32
|
+
# @param [Hash] opts the optional parameters
|
33
|
+
# @return [IncidentResponse]
|
34
|
+
describe 'get_incident test' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# unit tests for list_incidents
|
41
|
+
# List Incidents
|
42
|
+
# Returns a list of incidents
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @option opts [Integer] :limit Number of items to include in the response
|
45
|
+
# @option opts [Integer] :page Offset by this many pages, of the size of `limit`
|
46
|
+
# @option opts [String] :order_by Value to order the results by
|
47
|
+
# @option opts [String] :order_direction Sort order.
|
48
|
+
# @option opts [String] :status Status to filter incidents by
|
49
|
+
# @option opts [String] :severity Severity to filter incidents by
|
50
|
+
# @return [ListIncidentsResponse]
|
51
|
+
describe 'list_incidents test' do
|
52
|
+
it 'should work' do
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# unit tests for list_related_incidents
|
58
|
+
# List Related Incidents
|
59
|
+
# Returns all the incidents that seem related to a specific incident
|
60
|
+
# @param incident_id ID of the Incident
|
61
|
+
# @param [Hash] opts the optional parameters
|
62
|
+
# @option opts [Integer] :limit Number of items to include in the response
|
63
|
+
# @option opts [Integer] :page Offset by this many pages, of the size of `limit`
|
64
|
+
# @option opts [String] :order_by Value to order the results by
|
65
|
+
# @option opts [String] :order_direction Sort order.
|
66
|
+
# @return [ListRelatedIncidentsResponse]
|
67
|
+
describe 'list_related_incidents test' do
|
68
|
+
it 'should work' do
|
69
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
@@ -97,6 +97,30 @@ describe 'LiveStreamsApi' do
|
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
100
|
+
# unit tests for disable_live_stream
|
101
|
+
# Disable a live stream
|
102
|
+
# Disables a live stream, making it reject incoming RTMP streams until re-enabled.
|
103
|
+
# @param live_stream_id The live stream ID
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @return [DisableLiveStreamResponse]
|
106
|
+
describe 'disable_live_stream test' do
|
107
|
+
it 'should work' do
|
108
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
# unit tests for enable_live_stream
|
113
|
+
# Enable a live stream
|
114
|
+
# Enables a live stream, allowing it to accept an incoming RTMP stream.
|
115
|
+
# @param live_stream_id The live stream ID
|
116
|
+
# @param [Hash] opts the optional parameters
|
117
|
+
# @return [EnableLiveStreamResponse]
|
118
|
+
describe 'enable_live_stream test' do
|
119
|
+
it 'should work' do
|
120
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
100
124
|
# unit tests for get_live_stream
|
101
125
|
# Retrieve a live stream
|
102
126
|
# Retrieves the details of a live stream that has previously been created. Supply the unique live stream ID that was returned from your previous request, and Mux will return the corresponding live stream information. The same information is returned when creating a live stream.
|
@@ -0,0 +1,40 @@
|
|
1
|
+
=begin
|
2
|
+
# Mux Ruby - Copyright 2019 Mux Inc.
|
3
|
+
# NOTE: This file is auto generated. Do not edit this file manually.
|
4
|
+
=end
|
5
|
+
|
6
|
+
require 'spec_helper'
|
7
|
+
require 'json'
|
8
|
+
|
9
|
+
# Unit tests for MuxRuby::PlaybackIDApi
|
10
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
11
|
+
# Please update as you see appropriate
|
12
|
+
describe 'PlaybackIDApi' do
|
13
|
+
before do
|
14
|
+
# run before each test
|
15
|
+
@instance = MuxRuby::PlaybackIDApi.new
|
16
|
+
end
|
17
|
+
|
18
|
+
after do
|
19
|
+
# run after each test
|
20
|
+
end
|
21
|
+
|
22
|
+
describe 'test an instance of PlaybackIDApi' do
|
23
|
+
it 'should create an instance of PlaybackIDApi' do
|
24
|
+
expect(@instance).to be_instance_of(MuxRuby::PlaybackIDApi)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
# unit tests for get_asset_or_livestream_id
|
29
|
+
# Retrieve an Asset or Live Stream ID
|
30
|
+
# Retrieves the Identifier of the Asset or Live Stream associated with the Playback ID.
|
31
|
+
# @param playback_id The live stream's playback ID.
|
32
|
+
# @param [Hash] opts the optional parameters
|
33
|
+
# @return [GetAssetOrLiveStreamIdResponse]
|
34
|
+
describe 'get_asset_or_livestream_id test' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
=begin
|
2
|
+
# Mux Ruby - Copyright 2019 Mux Inc.
|
3
|
+
# NOTE: This file is auto generated. Do not edit this file manually.
|
4
|
+
=end
|
5
|
+
|
6
|
+
require 'spec_helper'
|
7
|
+
require 'json'
|
8
|
+
|
9
|
+
# Unit tests for MuxRuby::RealTimeApi
|
10
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
11
|
+
# Please update as you see appropriate
|
12
|
+
describe 'RealTimeApi' do
|
13
|
+
before do
|
14
|
+
# run before each test
|
15
|
+
@instance = MuxRuby::RealTimeApi.new
|
16
|
+
end
|
17
|
+
|
18
|
+
after do
|
19
|
+
# run after each test
|
20
|
+
end
|
21
|
+
|
22
|
+
describe 'test an instance of RealTimeApi' do
|
23
|
+
it 'should create an instance of RealTimeApi' do
|
24
|
+
expect(@instance).to be_instance_of(MuxRuby::RealTimeApi)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
# unit tests for get_realtime_breakdown
|
29
|
+
# Get Real-Time Breakdown
|
30
|
+
# Gets breakdown information for a specific dimension and metric along with the number of concurrent viewers and negative impact score.
|
31
|
+
# @param realtime_metric_id ID of the Realtime Metric
|
32
|
+
# @param [Hash] opts the optional parameters
|
33
|
+
# @option opts [String] :dimension Dimension the specified value belongs to
|
34
|
+
# @option opts [Float] :timestamp Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp.
|
35
|
+
# @option opts [Array<String>] :filters Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint.
|
36
|
+
# @option opts [String] :order_by Value to order the results by
|
37
|
+
# @option opts [String] :order_direction Sort order.
|
38
|
+
# @return [GetRealTimeBreakdownResponse]
|
39
|
+
describe 'get_realtime_breakdown test' do
|
40
|
+
it 'should work' do
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# unit tests for get_realtime_histogram_timeseries
|
46
|
+
# Get Real-Time Histogram Timeseries
|
47
|
+
# Gets histogram timeseries information for a specific metric.
|
48
|
+
# @param realtime_metric_id ID of the Realtime Metric
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @option opts [Array<String>] :filters Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint.
|
51
|
+
# @return [GetRealTimeHistogramTimeseriesResponse]
|
52
|
+
describe 'get_realtime_histogram_timeseries test' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for get_realtime_timeseries
|
59
|
+
# Get Real-Time Timeseries
|
60
|
+
# Gets Time series information for a specific metric along with the number of concurrent viewers.
|
61
|
+
# @param realtime_metric_id ID of the Realtime Metric
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [Array<String>] :filters Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint.
|
64
|
+
# @return [GetRealTimeTimeseriesResponse]
|
65
|
+
describe 'get_realtime_timeseries test' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# unit tests for list_realtime_dimensions
|
72
|
+
# List Real-Time Dimensions
|
73
|
+
# Lists availiable real-time dimensions
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @return [ListRealTimeDimensionsResponse]
|
76
|
+
describe 'list_realtime_dimensions test' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# unit tests for list_realtime_metrics
|
83
|
+
# List Real-Time Metrics
|
84
|
+
# Lists availiable real-time metrics.
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @return [ListRealTimeMetricsResponse]
|
87
|
+
describe 'list_realtime_metrics test' do
|
88
|
+
it 'should work' do
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
end
|
data/spec/api_client_spec.rb
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
3
|
-
|
2
|
+
#Mux API
|
3
|
+
|
4
|
+
#Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
Contact: devex@mux.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.1
|
10
|
+
|
4
11
|
=end
|
5
12
|
|
6
13
|
require 'spec_helper'
|
@@ -149,7 +156,7 @@ describe MuxRuby::ApiClient do
|
|
149
156
|
end
|
150
157
|
|
151
158
|
it 'fails for invalid collection format' do
|
152
|
-
expect
|
159
|
+
expect { api_client.build_collection_param(param, :INVALID) }.to raise_error(RuntimeError, 'unknown collection format: :INVALID')
|
153
160
|
end
|
154
161
|
end
|
155
162
|
|
data/spec/configuration_spec.rb
CHANGED
@@ -1,6 +1,13 @@
|
|
1
1
|
=begin
|
2
|
-
#
|
3
|
-
|
2
|
+
#Mux API
|
3
|
+
|
4
|
+
#Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
Contact: devex@mux.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.1
|
10
|
+
|
4
11
|
=end
|
5
12
|
|
6
13
|
require 'spec_helper'
|
@@ -28,6 +28,10 @@ describe 'AssetMaster' do
|
|
28
28
|
describe 'test attribute "status"' do
|
29
29
|
it 'should work' do
|
30
30
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ready", "preparing", "errored"])
|
32
|
+
# validator.allowable_values.each do |value|
|
33
|
+
# expect { @instance.status = value }.not_to raise_error
|
34
|
+
# end
|
31
35
|
end
|
32
36
|
end
|
33
37
|
|
@@ -0,0 +1,98 @@
|
|
1
|
+
=begin
|
2
|
+
# Mux Ruby - Copyright 2019 Mux Inc.
|
3
|
+
# NOTE: This file is auto generated. Do not edit this file manually.
|
4
|
+
=end
|
5
|
+
|
6
|
+
require 'spec_helper'
|
7
|
+
require 'json'
|
8
|
+
require 'date'
|
9
|
+
|
10
|
+
# Unit tests for MuxRuby::AssetNonStandardInputReasons
|
11
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
12
|
+
# Please update as you see appropriate
|
13
|
+
describe 'AssetNonStandardInputReasons' do
|
14
|
+
before do
|
15
|
+
# run before each test
|
16
|
+
@instance = MuxRuby::AssetNonStandardInputReasons.new
|
17
|
+
end
|
18
|
+
|
19
|
+
after do
|
20
|
+
# run after each test
|
21
|
+
end
|
22
|
+
|
23
|
+
describe 'test an instance of AssetNonStandardInputReasons' do
|
24
|
+
it 'should create an instance of AssetNonStandardInputReasons' do
|
25
|
+
expect(@instance).to be_instance_of(MuxRuby::AssetNonStandardInputReasons)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "video_codec"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "audio_codec"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe 'test attribute "video_gop_size"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["high"])
|
44
|
+
# validator.allowable_values.each do |value|
|
45
|
+
# expect { @instance.video_gop_size = value }.not_to raise_error
|
46
|
+
# end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "video_frame_rate"' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe 'test attribute "video_resolution"' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
describe 'test attribute "pixel_aspect_ratio"' do
|
63
|
+
it 'should work' do
|
64
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
68
|
+
describe 'test attribute "video_edit_list"' do
|
69
|
+
it 'should work' do
|
70
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
71
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["non-standard"])
|
72
|
+
# validator.allowable_values.each do |value|
|
73
|
+
# expect { @instance.video_edit_list = value }.not_to raise_error
|
74
|
+
# end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
describe 'test attribute "audio_edit_list"' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["non-standard"])
|
82
|
+
# validator.allowable_values.each do |value|
|
83
|
+
# expect { @instance.audio_edit_list = value }.not_to raise_error
|
84
|
+
# end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
88
|
+
describe 'test attribute "unexpected_media_file_parameters"' do
|
89
|
+
it 'should work' do
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["non-standard"])
|
92
|
+
# validator.allowable_values.each do |value|
|
93
|
+
# expect { @instance.unexpected_media_file_parameters = value }.not_to raise_error
|
94
|
+
# end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
|
98
|
+
end
|
@@ -0,0 +1,40 @@
|
|
1
|
+
=begin
|
2
|
+
# Mux Ruby - Copyright 2019 Mux Inc.
|
3
|
+
# NOTE: This file is auto generated. Do not edit this file manually.
|
4
|
+
=end
|
5
|
+
|
6
|
+
require 'spec_helper'
|
7
|
+
require 'json'
|
8
|
+
require 'date'
|
9
|
+
|
10
|
+
# Unit tests for MuxRuby::AssetRecordingTimes
|
11
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
12
|
+
# Please update as you see appropriate
|
13
|
+
describe 'AssetRecordingTimes' do
|
14
|
+
before do
|
15
|
+
# run before each test
|
16
|
+
@instance = MuxRuby::AssetRecordingTimes.new
|
17
|
+
end
|
18
|
+
|
19
|
+
after do
|
20
|
+
# run after each test
|
21
|
+
end
|
22
|
+
|
23
|
+
describe 'test an instance of AssetRecordingTimes' do
|
24
|
+
it 'should create an instance of AssetRecordingTimes' do
|
25
|
+
expect(@instance).to be_instance_of(MuxRuby::AssetRecordingTimes)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "started_at"' do
|
29
|
+
it 'should work' do
|
30
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
34
|
+
describe 'test attribute "duration"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
end
|
data/spec/models/asset_spec.rb
CHANGED
@@ -46,6 +46,10 @@ describe 'Asset' do
|
|
46
46
|
describe 'test attribute "status"' do
|
47
47
|
it 'should work' do
|
48
48
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["preparing", "ready", "errored"])
|
50
|
+
# validator.allowable_values.each do |value|
|
51
|
+
# expect { @instance.status = value }.not_to raise_error
|
52
|
+
# end
|
49
53
|
end
|
50
54
|
end
|
51
55
|
|
@@ -58,6 +62,10 @@ describe 'Asset' do
|
|
58
62
|
describe 'test attribute "max_stored_resolution"' do
|
59
63
|
it 'should work' do
|
60
64
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
65
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Audio only", "SD", "HD", "FHD", "UHD"])
|
66
|
+
# validator.allowable_values.each do |value|
|
67
|
+
# expect { @instance.max_stored_resolution = value }.not_to raise_error
|
68
|
+
# end
|
61
69
|
end
|
62
70
|
end
|
63
71
|
|
@@ -141,6 +149,12 @@ describe 'Asset' do
|
|
141
149
|
end
|
142
150
|
end
|
143
151
|
|
152
|
+
describe 'test attribute "source_asset_id"' do
|
153
|
+
it 'should work' do
|
154
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
144
158
|
describe 'test attribute "normalize_audio"' do
|
145
159
|
it 'should work' do
|
146
160
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -153,6 +167,18 @@ describe 'Asset' do
|
|
153
167
|
end
|
154
168
|
end
|
155
169
|
|
170
|
+
describe 'test attribute "recording_times"' do
|
171
|
+
it 'should work' do
|
172
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
describe 'test attribute "non_standard_input_reasons"' do
|
177
|
+
it 'should work' do
|
178
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
156
182
|
describe 'test attribute "test"' do
|
157
183
|
it 'should work' do
|
158
184
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|