mux_ruby 1.5.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +4 -1
- data/docs/Asset.md +15 -12
- data/docs/AssetErrors.md +2 -2
- data/docs/AssetNonStandardInputReasons.md +16 -0
- data/docs/AssetRecordingTimes.md +9 -0
- data/docs/AssetStaticRenditions.md +1 -1
- data/docs/AssetsApi.md +4 -0
- data/docs/CreateAssetRequest.md +6 -6
- data/docs/CreateLiveStreamRequest.md +1 -0
- data/docs/CreateTrackRequest.md +4 -4
- data/docs/DimensionValue.md +9 -0
- data/docs/DimensionsApi.md +118 -0
- data/docs/DisableLiveStreamResponse.md +8 -0
- data/docs/EnableLiveStreamResponse.md +8 -0
- data/docs/FiltersApi.md +2 -2
- data/docs/GetAssetOrLiveStreamIdResponse.md +8 -0
- data/docs/GetAssetOrLiveStreamIdResponseData.md +10 -0
- data/docs/GetAssetOrLiveStreamIdResponseDataObject.md +9 -0
- data/docs/GetRealTimeBreakdownResponse.md +10 -0
- data/docs/GetRealTimeHistogramTimeseriesResponse.md +11 -0
- data/docs/GetRealTimeHistogramTimeseriesResponseMeta.md +8 -0
- data/docs/GetRealTimeTimeseriesResponse.md +10 -0
- data/docs/Incident.md +28 -0
- data/docs/IncidentBreakdown.md +10 -0
- data/docs/IncidentNotification.md +10 -0
- data/docs/IncidentNotificationRule.md +12 -0
- data/docs/IncidentResponse.md +9 -0
- data/docs/IncidentsApi.md +186 -0
- data/docs/InputSettings.md +9 -7
- data/docs/InputSettingsOverlaySettings.md +7 -7
- data/docs/ListDimensionValuesResponse.md +10 -0
- data/docs/ListDimensionsResponse.md +10 -0
- data/docs/ListIncidentsResponse.md +10 -0
- data/docs/ListRealTimeDimensionsResponse.md +10 -0
- data/docs/ListRealTimeDimensionsResponseData.md +9 -0
- data/docs/ListRealTimeMetricsResponse.md +10 -0
- data/docs/ListRelatedIncidentsResponse.md +10 -0
- data/docs/LiveStream.md +1 -1
- data/docs/LiveStreamsApi.md +104 -0
- data/docs/NotificationRule.md +10 -0
- data/docs/PlaybackID.md +1 -1
- data/docs/PlaybackIDApi.md +60 -0
- data/docs/RealTimeApi.md +280 -0
- data/docs/RealTimeBreakdownValue.md +12 -0
- data/docs/RealTimeHistogramTimeseriesBucket.md +9 -0
- data/docs/RealTimeHistogramTimeseriesBucketValues.md +9 -0
- data/docs/RealTimeHistogramTimeseriesDatapoint.md +14 -0
- data/docs/RealTimeTimeseriesDatapoint.md +10 -0
- data/docs/Track.md +13 -13
- data/docs/VideoView.md +16 -14
- 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/lib/mux_ruby.rb +34 -0
- data/lib/mux_ruby/api/assets_api.rb +4 -0
- data/lib/mux_ruby/api/dimensions_api.rb +128 -0
- data/lib/mux_ruby/api/filters_api.rb +4 -4
- data/lib/mux_ruby/api/incidents_api.rb +217 -0
- data/lib/mux_ruby/api/live_streams_api.rb +106 -0
- data/lib/mux_ruby/api/playback_id_api.rb +69 -0
- data/lib/mux_ruby/api/real_time_api.rb +311 -0
- data/lib/mux_ruby/api_client.rb +13 -13
- data/lib/mux_ruby/configuration.rb +1 -4
- data/lib/mux_ruby/models/asset.rb +70 -3
- data/lib/mux_ruby/models/asset_errors.rb +2 -0
- data/lib/mux_ruby/models/asset_master.rb +35 -0
- data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +335 -0
- data/lib/mux_ruby/models/asset_recording_times.rb +195 -0
- data/lib/mux_ruby/models/asset_static_renditions.rb +2 -2
- data/lib/mux_ruby/models/asset_static_renditions_files.rb +6 -6
- data/lib/mux_ruby/models/create_asset_request.rb +8 -2
- data/lib/mux_ruby/models/create_live_stream_request.rb +15 -4
- data/lib/mux_ruby/models/create_track_request.rb +6 -2
- data/lib/mux_ruby/models/dimension_value.rb +193 -0
- data/lib/mux_ruby/models/disable_live_stream_response.rb +184 -0
- data/lib/mux_ruby/models/enable_live_stream_response.rb +184 -0
- data/lib/mux_ruby/models/get_asset_or_live_stream_id_response.rb +184 -0
- data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data.rb +203 -0
- data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data_object.rb +230 -0
- data/lib/mux_ruby/models/get_real_time_breakdown_response.rb +206 -0
- data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response.rb +215 -0
- data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response_meta.rb +186 -0
- data/lib/mux_ruby/models/get_real_time_timeseries_response.rb +206 -0
- data/lib/mux_ruby/models/incident.rb +370 -0
- data/lib/mux_ruby/models/incident_breakdown.rb +202 -0
- data/lib/mux_ruby/models/incident_notification.rb +202 -0
- data/lib/mux_ruby/models/incident_notification_rule.rb +222 -0
- data/lib/mux_ruby/models/incident_response.rb +195 -0
- data/lib/mux_ruby/models/input_settings.rb +31 -4
- data/lib/mux_ruby/models/input_settings_overlay_settings.rb +10 -2
- data/lib/mux_ruby/models/list_dimension_values_response.rb +206 -0
- data/lib/mux_ruby/models/list_dimensions_response.rb +204 -0
- data/lib/mux_ruby/models/list_incidents_response.rb +206 -0
- data/lib/mux_ruby/models/list_real_time_dimensions_response.rb +206 -0
- data/lib/mux_ruby/models/list_real_time_dimensions_response_data.rb +193 -0
- data/lib/mux_ruby/models/list_real_time_metrics_response.rb +206 -0
- data/lib/mux_ruby/models/list_related_incidents_response.rb +206 -0
- data/lib/mux_ruby/models/live_stream.rb +1 -1
- data/lib/mux_ruby/models/notification_rule.rb +202 -0
- data/lib/mux_ruby/models/playback_id.rb +1 -0
- data/lib/mux_ruby/models/real_time_breakdown_value.rb +220 -0
- data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket.rb +193 -0
- data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket_values.rb +193 -0
- data/lib/mux_ruby/models/real_time_histogram_timeseries_datapoint.rb +240 -0
- data/lib/mux_ruby/models/real_time_timeseries_datapoint.rb +202 -0
- data/lib/mux_ruby/models/simulcast_target.rb +1 -1
- data/lib/mux_ruby/models/track.rb +27 -2
- data/lib/mux_ruby/models/update_asset_master_access_request.rb +1 -1
- data/lib/mux_ruby/models/update_asset_mp4_support_request.rb +1 -1
- data/lib/mux_ruby/models/upload.rb +1 -1
- data/lib/mux_ruby/models/video_view.rb +36 -18
- data/lib/mux_ruby/version.rb +1 -1
- data/mux_ruby.gemspec +2 -0
- 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/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/asset_static_renditions_files_spec.rb +2 -2
- data/spec/models/create_live_stream_request_spec.rb +6 -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/models/video_view_spec.rb +12 -0
- metadata +200 -60
@@ -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
|
@@ -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
|
@@ -28,7 +28,7 @@ describe 'AssetStaticRenditionsFiles' do
|
|
28
28
|
describe 'test attribute "name"' 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', ["low.mp4", "medium.mp4", "high.mp4"])
|
31
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["low.mp4", "medium.mp4", "high.mp4", "audio.m4a"])
|
32
32
|
# validator.allowable_values.each do |value|
|
33
33
|
# expect { @instance.name = value }.not_to raise_error
|
34
34
|
# end
|
@@ -38,7 +38,7 @@ describe 'AssetStaticRenditionsFiles' do
|
|
38
38
|
describe 'test attribute "ext"' do
|
39
39
|
it 'should work' do
|
40
40
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
-
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["mp4"])
|
41
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["mp4", "m4a"])
|
42
42
|
# validator.allowable_values.each do |value|
|
43
43
|
# expect { @instance.ext = value }.not_to raise_error
|
44
44
|
# 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::DimensionValue
|
11
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
12
|
+
# Please update as you see appropriate
|
13
|
+
describe 'DimensionValue' do
|
14
|
+
before do
|
15
|
+
# run before each test
|
16
|
+
@instance = MuxRuby::DimensionValue.new
|
17
|
+
end
|
18
|
+
|
19
|
+
after do
|
20
|
+
# run after each test
|
21
|
+
end
|
22
|
+
|
23
|
+
describe 'test an instance of DimensionValue' do
|
24
|
+
it 'should create an instance of DimensionValue' do
|
25
|
+
expect(@instance).to be_instance_of(MuxRuby::DimensionValue)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "value"' 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 "total_count"' 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,34 @@
|
|
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::DisableLiveStreamResponse
|
11
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
12
|
+
# Please update as you see appropriate
|
13
|
+
describe 'DisableLiveStreamResponse' do
|
14
|
+
before do
|
15
|
+
# run before each test
|
16
|
+
@instance = MuxRuby::DisableLiveStreamResponse.new
|
17
|
+
end
|
18
|
+
|
19
|
+
after do
|
20
|
+
# run after each test
|
21
|
+
end
|
22
|
+
|
23
|
+
describe 'test an instance of DisableLiveStreamResponse' do
|
24
|
+
it 'should create an instance of DisableLiveStreamResponse' do
|
25
|
+
expect(@instance).to be_instance_of(MuxRuby::DisableLiveStreamResponse)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "data"' 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
|
+
end
|