mux_ruby 1.0.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +3 -0
- data/docs/Asset.md +1 -0
- data/docs/AssetsApi.md +103 -0
- data/docs/CreateAssetRequest.md +2 -0
- data/docs/CreateLiveStreamRequest.md +3 -0
- data/docs/CreateSimulcastTargetRequest.md +10 -0
- data/docs/CreateTrackRequest.md +14 -0
- data/docs/CreateTrackResponse.md +8 -0
- data/docs/DeliveryReport.md +14 -0
- data/docs/DeliveryUsageApi.md +68 -0
- data/docs/GetMetricTimeseriesDataResponse.md +1 -1
- data/docs/GetOverallValuesResponse.md +1 -1
- data/docs/InputSettings.md +6 -1
- data/docs/InputTrack.md +0 -2
- data/docs/Insight.md +2 -2
- data/docs/ListAllMetricValuesResponse.md +1 -1
- data/docs/ListBreakdownValuesResponse.md +1 -1
- data/docs/ListDeliveryUsageResponse.md +11 -0
- data/docs/ListErrorsResponse.md +1 -1
- data/docs/ListExportsResponse.md +1 -1
- data/docs/ListFilterValuesResponse.md +1 -1
- data/docs/ListFiltersResponse.md +1 -1
- data/docs/ListInsightsResponse.md +1 -1
- data/docs/ListVideoViewsResponse.md +1 -1
- data/docs/LiveStream.md +2 -0
- data/docs/LiveStreamsApi.md +161 -0
- data/docs/SigningKeyResponse.md +1 -1
- data/docs/SimulcastTarget.md +12 -0
- data/docs/SimulcastTargetResponse.md +8 -0
- data/docs/Track.md +5 -2
- data/docs/VideoViewResponse.md +1 -1
- data/examples/data/exercise-errors.rb +1 -1
- data/examples/data/exercise-metrics.rb +0 -7
- data/examples/video/exercise-assets.rb +17 -1
- data/examples/video/exercise-delivery-usage.rb +23 -0
- data/examples/video/exercise-live-streams.rb +28 -1
- data/lib/mux_ruby/api/assets_api.rb +113 -0
- data/lib/mux_ruby/api/delivery_usage_api.rb +75 -0
- data/lib/mux_ruby/api/live_streams_api.rb +176 -0
- data/lib/mux_ruby/api_client.rb +1 -1
- data/lib/mux_ruby/models/asset.rb +12 -1
- data/lib/mux_ruby/models/create_asset_request.rb +37 -4
- data/lib/mux_ruby/models/create_live_stream_request.rb +57 -4
- data/lib/mux_ruby/models/create_simulcast_target_request.rb +210 -0
- data/lib/mux_ruby/models/create_track_request.rb +304 -0
- data/lib/mux_ruby/models/create_track_response.rb +184 -0
- data/lib/mux_ruby/models/delivery_report.rb +238 -0
- data/lib/mux_ruby/models/get_metric_timeseries_data_response.rb +1 -1
- data/lib/mux_ruby/models/get_overall_values_response.rb +1 -1
- data/lib/mux_ruby/models/input_settings.rb +104 -13
- data/lib/mux_ruby/models/input_track.rb +4 -22
- data/lib/mux_ruby/models/insight.rb +2 -2
- data/lib/mux_ruby/models/list_all_metric_values_response.rb +1 -1
- data/lib/mux_ruby/models/list_breakdown_values_response.rb +1 -1
- data/lib/mux_ruby/models/list_delivery_usage_response.rb +216 -0
- data/lib/mux_ruby/models/list_errors_response.rb +1 -1
- data/lib/mux_ruby/models/list_exports_response.rb +1 -1
- data/lib/mux_ruby/models/list_filter_values_response.rb +1 -1
- data/lib/mux_ruby/models/list_filters_response.rb +1 -1
- data/lib/mux_ruby/models/list_insights_response.rb +1 -1
- data/lib/mux_ruby/models/list_video_views_response.rb +1 -1
- data/lib/mux_ruby/models/live_stream.rb +24 -4
- data/lib/mux_ruby/models/simulcast_target.rb +259 -0
- data/lib/mux_ruby/models/simulcast_target_response.rb +184 -0
- data/lib/mux_ruby/models/track.rb +86 -13
- data/lib/mux_ruby/models/video_view_response.rb +1 -1
- data/lib/mux_ruby/version.rb +1 -1
- data/lib/mux_ruby.rb +8 -0
- data/spec/api/assets_api_spec.rb +24 -0
- data/spec/api/delivery_usage_api_spec.rb +43 -0
- data/spec/api/live_streams_api_spec.rb +39 -0
- data/spec/models/asset_spec.rb +6 -0
- data/spec/models/create_asset_request_spec.rb +16 -0
- data/spec/models/create_live_stream_request_spec.rb +18 -0
- data/spec/models/create_simulcast_target_request_spec.rb +46 -0
- data/spec/models/create_track_request_spec.rb +78 -0
- data/spec/models/create_track_response_spec.rb +34 -0
- data/spec/models/delivery_report_spec.rb +70 -0
- data/spec/models/input_settings_spec.rb +40 -2
- data/spec/models/input_track_spec.rb +0 -12
- data/spec/models/list_delivery_usage_response_spec.rb +52 -0
- data/spec/models/live_stream_spec.rb +12 -0
- data/spec/models/simulcast_target_response_spec.rb +34 -0
- data/spec/models/simulcast_target_spec.rb +62 -0
- data/spec/models/track_spec.rb +28 -2
- metadata +36 -3
@@ -0,0 +1,78 @@
|
|
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::CreateTrackRequest
|
11
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
12
|
+
# Please update as you see appropriate
|
13
|
+
describe 'CreateTrackRequest' do
|
14
|
+
before do
|
15
|
+
# run before each test
|
16
|
+
@instance = MuxRuby::CreateTrackRequest.new
|
17
|
+
end
|
18
|
+
|
19
|
+
after do
|
20
|
+
# run after each test
|
21
|
+
end
|
22
|
+
|
23
|
+
describe 'test an instance of CreateTrackRequest' do
|
24
|
+
it 'should create an instance of CreateTrackRequest' do
|
25
|
+
expect(@instance).to be_instance_of(MuxRuby::CreateTrackRequest)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "url"' 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 "type"' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["text"])
|
38
|
+
# validator.allowable_values.each do |value|
|
39
|
+
# expect { @instance.type = value }.not_to raise_error
|
40
|
+
# end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe 'test attribute "text_type"' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["subtitles"])
|
48
|
+
# validator.allowable_values.each do |value|
|
49
|
+
# expect { @instance.text_type = value }.not_to raise_error
|
50
|
+
# end
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
describe 'test attribute "language_code"' do
|
55
|
+
it 'should work' do
|
56
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "name"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'test attribute "closed_captions"' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe 'test attribute "passthrough"' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
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::CreateTrackResponse
|
11
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
12
|
+
# Please update as you see appropriate
|
13
|
+
describe 'CreateTrackResponse' do
|
14
|
+
before do
|
15
|
+
# run before each test
|
16
|
+
@instance = MuxRuby::CreateTrackResponse.new
|
17
|
+
end
|
18
|
+
|
19
|
+
after do
|
20
|
+
# run after each test
|
21
|
+
end
|
22
|
+
|
23
|
+
describe 'test an instance of CreateTrackResponse' do
|
24
|
+
it 'should create an instance of CreateTrackResponse' do
|
25
|
+
expect(@instance).to be_instance_of(MuxRuby::CreateTrackResponse)
|
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
|
@@ -0,0 +1,70 @@
|
|
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::DeliveryReport
|
11
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
12
|
+
# Please update as you see appropriate
|
13
|
+
describe 'DeliveryReport' do
|
14
|
+
before do
|
15
|
+
# run before each test
|
16
|
+
@instance = MuxRuby::DeliveryReport.new
|
17
|
+
end
|
18
|
+
|
19
|
+
after do
|
20
|
+
# run after each test
|
21
|
+
end
|
22
|
+
|
23
|
+
describe 'test an instance of DeliveryReport' do
|
24
|
+
it 'should create an instance of DeliveryReport' do
|
25
|
+
expect(@instance).to be_instance_of(MuxRuby::DeliveryReport)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "live_stream_id"' 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 "asset_id"' 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 "passthrough"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "created_at"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
describe 'test attribute "asset_state"' 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
|
+
describe 'test attribute "asset_duration"' do
|
59
|
+
it 'should work' do
|
60
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
describe 'test attribute "delivered_seconds"' do
|
65
|
+
it 'should work' do
|
66
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
67
|
+
end
|
68
|
+
end
|
69
|
+
|
70
|
+
end
|
@@ -31,13 +31,51 @@ describe 'InputSettings' do
|
|
31
31
|
end
|
32
32
|
end
|
33
33
|
|
34
|
-
describe 'test attribute "
|
34
|
+
describe 'test attribute "overlay_settings"' do
|
35
35
|
it 'should work' do
|
36
36
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
describe 'test attribute "
|
40
|
+
describe 'test attribute "type"' 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', ["video", "audio", "text"])
|
44
|
+
# validator.allowable_values.each do |value|
|
45
|
+
# expect { @instance.type = value }.not_to raise_error
|
46
|
+
# end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "text_type"' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["subtitles"])
|
54
|
+
# validator.allowable_values.each do |value|
|
55
|
+
# expect { @instance.text_type = value }.not_to raise_error
|
56
|
+
# end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
|
60
|
+
describe 'test attribute "language_code"' do
|
61
|
+
it 'should work' do
|
62
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
63
|
+
end
|
64
|
+
end
|
65
|
+
|
66
|
+
describe 'test attribute "name"' do
|
67
|
+
it 'should work' do
|
68
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
describe 'test attribute "closed_captions"' do
|
73
|
+
it 'should work' do
|
74
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
describe 'test attribute "passthrough"' do
|
41
79
|
it 'should work' do
|
42
80
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
81
|
end
|
@@ -79,16 +79,4 @@ describe 'InputTrack' do
|
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
82
|
-
describe 'test attribute "text_track_type"' do
|
83
|
-
it 'should work' do
|
84
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
|
-
end
|
86
|
-
end
|
87
|
-
|
88
|
-
describe 'test attribute "language"' do
|
89
|
-
it 'should work' do
|
90
|
-
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
82
|
end
|
@@ -0,0 +1,52 @@
|
|
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::ListDeliveryUsageResponse
|
11
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
12
|
+
# Please update as you see appropriate
|
13
|
+
describe 'ListDeliveryUsageResponse' do
|
14
|
+
before do
|
15
|
+
# run before each test
|
16
|
+
@instance = MuxRuby::ListDeliveryUsageResponse.new
|
17
|
+
end
|
18
|
+
|
19
|
+
after do
|
20
|
+
# run after each test
|
21
|
+
end
|
22
|
+
|
23
|
+
describe 'test an instance of ListDeliveryUsageResponse' do
|
24
|
+
it 'should create an instance of ListDeliveryUsageResponse' do
|
25
|
+
expect(@instance).to be_instance_of(MuxRuby::ListDeliveryUsageResponse)
|
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
|
+
describe 'test attribute "total_row_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
|
+
describe 'test attribute "timeframe"' do
|
41
|
+
it 'should work' do
|
42
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
describe 'test attribute "limit"' do
|
47
|
+
it 'should work' do
|
48
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
end
|
@@ -85,4 +85,16 @@ describe 'LiveStream' do
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
+
describe 'test attribute "reduced_latency"' do
|
89
|
+
it 'should work' do
|
90
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
describe 'test attribute "simulcast_targets"' do
|
95
|
+
it 'should work' do
|
96
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
88
100
|
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::SimulcastTargetResponse
|
11
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
12
|
+
# Please update as you see appropriate
|
13
|
+
describe 'SimulcastTargetResponse' do
|
14
|
+
before do
|
15
|
+
# run before each test
|
16
|
+
@instance = MuxRuby::SimulcastTargetResponse.new
|
17
|
+
end
|
18
|
+
|
19
|
+
after do
|
20
|
+
# run after each test
|
21
|
+
end
|
22
|
+
|
23
|
+
describe 'test an instance of SimulcastTargetResponse' do
|
24
|
+
it 'should create an instance of SimulcastTargetResponse' do
|
25
|
+
expect(@instance).to be_instance_of(MuxRuby::SimulcastTargetResponse)
|
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
|
@@ -0,0 +1,62 @@
|
|
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::SimulcastTarget
|
11
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
12
|
+
# Please update as you see appropriate
|
13
|
+
describe 'SimulcastTarget' do
|
14
|
+
before do
|
15
|
+
# run before each test
|
16
|
+
@instance = MuxRuby::SimulcastTarget.new
|
17
|
+
end
|
18
|
+
|
19
|
+
after do
|
20
|
+
# run after each test
|
21
|
+
end
|
22
|
+
|
23
|
+
describe 'test an instance of SimulcastTarget' do
|
24
|
+
it 'should create an instance of SimulcastTarget' do
|
25
|
+
expect(@instance).to be_instance_of(MuxRuby::SimulcastTarget)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "id"' 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 "passthrough"' 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 "status"' 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', ["idle", "starting", "broadcasting", "errored"])
|
44
|
+
# validator.allowable_values.each do |value|
|
45
|
+
# expect { @instance.status = value }.not_to raise_error
|
46
|
+
# end
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "stream_key"' 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 "url"' 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
|
+
end
|
data/spec/models/track_spec.rb
CHANGED
@@ -34,6 +34,10 @@ describe 'Track' do
|
|
34
34
|
describe 'test attribute "type"' do
|
35
35
|
it 'should work' do
|
36
36
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["video", "audio", "text"])
|
38
|
+
# validator.allowable_values.each do |value|
|
39
|
+
# expect { @instance.type = value }.not_to raise_error
|
40
|
+
# end
|
37
41
|
end
|
38
42
|
end
|
39
43
|
|
@@ -73,13 +77,35 @@ describe 'Track' do
|
|
73
77
|
end
|
74
78
|
end
|
75
79
|
|
76
|
-
describe 'test attribute "
|
80
|
+
describe 'test attribute "text_type"' do
|
77
81
|
it 'should work' do
|
78
82
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
83
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["subtitles"])
|
84
|
+
# validator.allowable_values.each do |value|
|
85
|
+
# expect { @instance.text_type = value }.not_to raise_error
|
86
|
+
# end
|
79
87
|
end
|
80
88
|
end
|
81
89
|
|
82
|
-
describe 'test attribute "
|
90
|
+
describe 'test attribute "language_code"' do
|
91
|
+
it 'should work' do
|
92
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
93
|
+
end
|
94
|
+
end
|
95
|
+
|
96
|
+
describe 'test attribute "name"' do
|
97
|
+
it 'should work' do
|
98
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
99
|
+
end
|
100
|
+
end
|
101
|
+
|
102
|
+
describe 'test attribute "closed_captions"' do
|
103
|
+
it 'should work' do
|
104
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
105
|
+
end
|
106
|
+
end
|
107
|
+
|
108
|
+
describe 'test attribute "passthrough"' do
|
83
109
|
it 'should work' do
|
84
110
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
85
111
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mux_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mux SDK Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-02-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -215,7 +215,12 @@ files:
|
|
215
215
|
- docs/CreateLiveStreamRequest.md
|
216
216
|
- docs/CreatePlaybackIDRequest.md
|
217
217
|
- docs/CreatePlaybackIDResponse.md
|
218
|
+
- docs/CreateSimulcastTargetRequest.md
|
219
|
+
- docs/CreateTrackRequest.md
|
220
|
+
- docs/CreateTrackResponse.md
|
218
221
|
- docs/CreateUploadRequest.md
|
222
|
+
- docs/DeliveryReport.md
|
223
|
+
- docs/DeliveryUsageApi.md
|
219
224
|
- docs/DirectUploadsApi.md
|
220
225
|
- docs/Error.md
|
221
226
|
- docs/ErrorsApi.md
|
@@ -235,6 +240,7 @@ files:
|
|
235
240
|
- docs/ListAllMetricValuesResponse.md
|
236
241
|
- docs/ListAssetsResponse.md
|
237
242
|
- docs/ListBreakdownValuesResponse.md
|
243
|
+
- docs/ListDeliveryUsageResponse.md
|
238
244
|
- docs/ListErrorsResponse.md
|
239
245
|
- docs/ListExportsResponse.md
|
240
246
|
- docs/ListFilterValuesResponse.md
|
@@ -257,6 +263,8 @@ files:
|
|
257
263
|
- docs/SignalLiveStreamCompleteResponse.md
|
258
264
|
- docs/SigningKey.md
|
259
265
|
- docs/SigningKeyResponse.md
|
266
|
+
- docs/SimulcastTarget.md
|
267
|
+
- docs/SimulcastTargetResponse.md
|
260
268
|
- docs/Track.md
|
261
269
|
- docs/URLSigningKeysApi.md
|
262
270
|
- docs/UpdateAssetMP4SupportRequest.md
|
@@ -274,6 +282,7 @@ files:
|
|
274
282
|
- examples/data/exercise-video-views.rb
|
275
283
|
- examples/video/create-live-stream.rb
|
276
284
|
- examples/video/exercise-assets.rb
|
285
|
+
- examples/video/exercise-delivery-usage.rb
|
277
286
|
- examples/video/exercise-live-streams.rb
|
278
287
|
- examples/video/exercise-signing-keys.rb
|
279
288
|
- examples/video/exercise-uploads.rb
|
@@ -282,6 +291,7 @@ files:
|
|
282
291
|
- github-ruby-sdk.png
|
283
292
|
- lib/mux_ruby.rb
|
284
293
|
- lib/mux_ruby/api/assets_api.rb
|
294
|
+
- lib/mux_ruby/api/delivery_usage_api.rb
|
285
295
|
- lib/mux_ruby/api/direct_uploads_api.rb
|
286
296
|
- lib/mux_ruby/api/errors_api.rb
|
287
297
|
- lib/mux_ruby/api/exports_api.rb
|
@@ -305,7 +315,11 @@ files:
|
|
305
315
|
- lib/mux_ruby/models/create_live_stream_request.rb
|
306
316
|
- lib/mux_ruby/models/create_playback_id_request.rb
|
307
317
|
- lib/mux_ruby/models/create_playback_id_response.rb
|
318
|
+
- lib/mux_ruby/models/create_simulcast_target_request.rb
|
319
|
+
- lib/mux_ruby/models/create_track_request.rb
|
320
|
+
- lib/mux_ruby/models/create_track_response.rb
|
308
321
|
- lib/mux_ruby/models/create_upload_request.rb
|
322
|
+
- lib/mux_ruby/models/delivery_report.rb
|
309
323
|
- lib/mux_ruby/models/error.rb
|
310
324
|
- lib/mux_ruby/models/filter_value.rb
|
311
325
|
- lib/mux_ruby/models/get_asset_input_info_response.rb
|
@@ -321,6 +335,7 @@ files:
|
|
321
335
|
- lib/mux_ruby/models/list_all_metric_values_response.rb
|
322
336
|
- lib/mux_ruby/models/list_assets_response.rb
|
323
337
|
- lib/mux_ruby/models/list_breakdown_values_response.rb
|
338
|
+
- lib/mux_ruby/models/list_delivery_usage_response.rb
|
324
339
|
- lib/mux_ruby/models/list_errors_response.rb
|
325
340
|
- lib/mux_ruby/models/list_exports_response.rb
|
326
341
|
- lib/mux_ruby/models/list_filter_values_response.rb
|
@@ -341,6 +356,8 @@ files:
|
|
341
356
|
- lib/mux_ruby/models/signal_live_stream_complete_response.rb
|
342
357
|
- lib/mux_ruby/models/signing_key.rb
|
343
358
|
- lib/mux_ruby/models/signing_key_response.rb
|
359
|
+
- lib/mux_ruby/models/simulcast_target.rb
|
360
|
+
- lib/mux_ruby/models/simulcast_target_response.rb
|
344
361
|
- lib/mux_ruby/models/track.rb
|
345
362
|
- lib/mux_ruby/models/update_asset_mp4_support_request.rb
|
346
363
|
- lib/mux_ruby/models/upload.rb
|
@@ -352,6 +369,7 @@ files:
|
|
352
369
|
- lib/mux_ruby/version.rb
|
353
370
|
- mux_ruby.gemspec
|
354
371
|
- spec/api/assets_api_spec.rb
|
372
|
+
- spec/api/delivery_usage_api_spec.rb
|
355
373
|
- spec/api/direct_uploads_api_spec.rb
|
356
374
|
- spec/api/errors_api_spec.rb
|
357
375
|
- spec/api/exports_api_spec.rb
|
@@ -374,7 +392,11 @@ files:
|
|
374
392
|
- spec/models/create_live_stream_request_spec.rb
|
375
393
|
- spec/models/create_playback_id_request_spec.rb
|
376
394
|
- spec/models/create_playback_id_response_spec.rb
|
395
|
+
- spec/models/create_simulcast_target_request_spec.rb
|
396
|
+
- spec/models/create_track_request_spec.rb
|
397
|
+
- spec/models/create_track_response_spec.rb
|
377
398
|
- spec/models/create_upload_request_spec.rb
|
399
|
+
- spec/models/delivery_report_spec.rb
|
378
400
|
- spec/models/error_spec.rb
|
379
401
|
- spec/models/filter_value_spec.rb
|
380
402
|
- spec/models/get_asset_input_info_response_spec.rb
|
@@ -390,6 +412,7 @@ files:
|
|
390
412
|
- spec/models/list_all_metric_values_response_spec.rb
|
391
413
|
- spec/models/list_assets_response_spec.rb
|
392
414
|
- spec/models/list_breakdown_values_response_spec.rb
|
415
|
+
- spec/models/list_delivery_usage_response_spec.rb
|
393
416
|
- spec/models/list_errors_response_spec.rb
|
394
417
|
- spec/models/list_exports_response_spec.rb
|
395
418
|
- spec/models/list_filter_values_response_spec.rb
|
@@ -410,6 +433,8 @@ files:
|
|
410
433
|
- spec/models/signal_live_stream_complete_response_spec.rb
|
411
434
|
- spec/models/signing_key_response_spec.rb
|
412
435
|
- spec/models/signing_key_spec.rb
|
436
|
+
- spec/models/simulcast_target_response_spec.rb
|
437
|
+
- spec/models/simulcast_target_spec.rb
|
413
438
|
- spec/models/track_spec.rb
|
414
439
|
- spec/models/update_asset_mp4_support_request_spec.rb
|
415
440
|
- spec/models/upload_error_spec.rb
|
@@ -439,7 +464,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
439
464
|
version: '0'
|
440
465
|
requirements: []
|
441
466
|
rubyforge_project:
|
442
|
-
rubygems_version: 2.
|
467
|
+
rubygems_version: 2.5.2.3
|
443
468
|
signing_key:
|
444
469
|
specification_version: 4
|
445
470
|
summary: Ruby API wrapper for Mux
|
@@ -449,6 +474,7 @@ test_files:
|
|
449
474
|
- spec/api/url_signing_keys_api_spec.rb
|
450
475
|
- spec/api/assets_api_spec.rb
|
451
476
|
- spec/api/errors_api_spec.rb
|
477
|
+
- spec/api/delivery_usage_api_spec.rb
|
452
478
|
- spec/api/direct_uploads_api_spec.rb
|
453
479
|
- spec/api/filters_api_spec.rb
|
454
480
|
- spec/api/live_streams_api_spec.rb
|
@@ -458,6 +484,7 @@ test_files:
|
|
458
484
|
- spec/models/error_spec.rb
|
459
485
|
- spec/models/list_breakdown_values_response_spec.rb
|
460
486
|
- spec/models/update_asset_mp4_support_request_spec.rb
|
487
|
+
- spec/models/create_track_response_spec.rb
|
461
488
|
- spec/models/list_filters_response_spec.rb
|
462
489
|
- spec/models/playback_policy_spec.rb
|
463
490
|
- spec/models/signing_key_response_spec.rb
|
@@ -470,8 +497,10 @@ test_files:
|
|
470
497
|
- spec/models/video_view_response_spec.rb
|
471
498
|
- spec/models/video_view_spec.rb
|
472
499
|
- spec/models/insight_spec.rb
|
500
|
+
- spec/models/list_delivery_usage_response_spec.rb
|
473
501
|
- spec/models/list_errors_response_spec.rb
|
474
502
|
- spec/models/create_upload_request_spec.rb
|
503
|
+
- spec/models/simulcast_target_response_spec.rb
|
475
504
|
- spec/models/list_filters_response_data_spec.rb
|
476
505
|
- spec/models/signing_key_spec.rb
|
477
506
|
- spec/models/get_metric_timeseries_data_response_spec.rb
|
@@ -491,6 +520,7 @@ test_files:
|
|
491
520
|
- spec/models/asset_static_renditions_files_spec.rb
|
492
521
|
- spec/models/list_exports_response_spec.rb
|
493
522
|
- spec/models/upload_response_spec.rb
|
523
|
+
- spec/models/simulcast_target_spec.rb
|
494
524
|
- spec/models/list_assets_response_spec.rb
|
495
525
|
- spec/models/asset_response_spec.rb
|
496
526
|
- spec/models/filter_value_spec.rb
|
@@ -499,14 +529,17 @@ test_files:
|
|
499
529
|
- spec/models/upload_spec.rb
|
500
530
|
- spec/models/create_asset_request_spec.rb
|
501
531
|
- spec/models/get_asset_input_info_response_spec.rb
|
532
|
+
- spec/models/create_simulcast_target_request_spec.rb
|
502
533
|
- spec/models/create_playback_id_response_spec.rb
|
503
534
|
- spec/models/list_video_views_response_spec.rb
|
504
535
|
- spec/models/asset_spec.rb
|
505
536
|
- spec/models/metric_spec.rb
|
506
537
|
- spec/models/upload_error_spec.rb
|
538
|
+
- spec/models/create_track_request_spec.rb
|
507
539
|
- spec/models/playback_id_spec.rb
|
508
540
|
- spec/models/live_stream_spec.rb
|
509
541
|
- spec/models/input_settings_spec.rb
|
542
|
+
- spec/models/delivery_report_spec.rb
|
510
543
|
- spec/models/asset_static_renditions_spec.rb
|
511
544
|
- spec/models/input_track_spec.rb
|
512
545
|
- spec/models/asset_master_spec.rb
|