mux_ruby 1.0.0 → 1.5.1
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 +5 -5
- data/Gemfile +2 -1
- data/Gemfile.lock +37 -35
- data/README.md +5 -0
- data/docs/Asset.md +2 -1
- data/docs/AssetsApi.md +157 -0
- data/docs/CreateAssetRequest.md +3 -1
- data/docs/CreateLiveStreamRequest.md +4 -0
- data/docs/CreateSimulcastTargetRequest.md +10 -0
- data/docs/CreateTrackRequest.md +14 -0
- data/docs/CreateTrackResponse.md +8 -0
- data/docs/CreateUploadRequest.md +1 -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 +3 -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/UpdateAssetMasterAccessRequest.md +8 -0
- data/docs/Upload.md +1 -0
- 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 +27 -1
- data/examples/video/exercise-delivery-usage.rb +23 -0
- data/examples/video/exercise-live-streams.rb +28 -1
- data/lib/mux_ruby.rb +9 -0
- data/lib/mux_ruby/api/assets_api.rb +174 -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 +7 -2
- data/lib/mux_ruby/api_error.rb +3 -0
- data/lib/mux_ruby/configuration.rb +1 -4
- data/lib/mux_ruby/models/asset.rb +24 -13
- data/lib/mux_ruby/models/create_asset_request.rb +46 -13
- data/lib/mux_ruby/models/create_live_stream_request.rb +66 -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/create_upload_request.rb +13 -4
- 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_settings_overlay_settings.rb +46 -0
- 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 +33 -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/update_asset_master_access_request.rb +219 -0
- data/lib/mux_ruby/models/upload.rb +13 -4
- data/lib/mux_ruby/models/video_view_response.rb +1 -1
- data/lib/mux_ruby/version.rb +1 -1
- data/spec/api/assets_api_spec.rb +37 -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 +12 -6
- data/spec/models/create_asset_request_spec.rb +22 -6
- data/spec/models/create_live_stream_request_spec.rb +24 -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/create_upload_request_spec.rb +6 -0
- data/spec/models/delivery_report_spec.rb +70 -0
- data/spec/models/input_settings_overlay_settings_spec.rb +8 -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 +18 -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
- data/spec/models/update_asset_master_access_request_spec.rb +38 -0
- data/spec/models/upload_spec.rb +6 -0
- data/test.sh +28 -0
- metadata +91 -54
data/spec/models/asset_spec.rb
CHANGED
@@ -85,12 +85,6 @@ describe 'Asset' do
|
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
|
-
describe 'test attribute "demo"' 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
88
|
describe 'test attribute "errors"' do
|
95
89
|
it 'should work' do
|
96
90
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -147,10 +141,22 @@ describe 'Asset' do
|
|
147
141
|
end
|
148
142
|
end
|
149
143
|
|
144
|
+
describe 'test attribute "normalize_audio"' do
|
145
|
+
it 'should work' do
|
146
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
150
|
describe 'test attribute "static_renditions"' do
|
151
151
|
it 'should work' do
|
152
152
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
153
153
|
end
|
154
154
|
end
|
155
155
|
|
156
|
+
describe 'test attribute "test"' do
|
157
|
+
it 'should work' do
|
158
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
159
|
+
end
|
160
|
+
end
|
161
|
+
|
156
162
|
end
|
@@ -37,12 +37,6 @@ describe 'CreateAssetRequest' do
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
-
describe 'test attribute "demo"' 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
40
|
describe 'test attribute "per_title_encode"' do
|
47
41
|
it 'should work' do
|
48
42
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
@@ -65,4 +59,26 @@ describe 'CreateAssetRequest' do
|
|
65
59
|
end
|
66
60
|
end
|
67
61
|
|
62
|
+
describe 'test attribute "normalize_audio"' 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 "master_access"' 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', ["none", "temporary"])
|
72
|
+
# validator.allowable_values.each do |value|
|
73
|
+
# expect { @instance.master_access = value }.not_to raise_error
|
74
|
+
# end
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
describe 'test attribute "test"' do
|
79
|
+
it 'should work' do
|
80
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
81
|
+
end
|
82
|
+
end
|
83
|
+
|
68
84
|
end
|
@@ -37,4 +37,28 @@ describe 'CreateLiveStreamRequest' do
|
|
37
37
|
end
|
38
38
|
end
|
39
39
|
|
40
|
+
describe 'test attribute "reconnect_window"' 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 "passthrough"' 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 "reduced_latency"' 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 "test"' 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
|
+
|
40
64
|
end
|
@@ -0,0 +1,46 @@
|
|
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::CreateSimulcastTargetRequest
|
11
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
12
|
+
# Please update as you see appropriate
|
13
|
+
describe 'CreateSimulcastTargetRequest' do
|
14
|
+
before do
|
15
|
+
# run before each test
|
16
|
+
@instance = MuxRuby::CreateSimulcastTargetRequest.new
|
17
|
+
end
|
18
|
+
|
19
|
+
after do
|
20
|
+
# run after each test
|
21
|
+
end
|
22
|
+
|
23
|
+
describe 'test an instance of CreateSimulcastTargetRequest' do
|
24
|
+
it 'should create an instance of CreateSimulcastTargetRequest' do
|
25
|
+
expect(@instance).to be_instance_of(MuxRuby::CreateSimulcastTargetRequest)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "passthrough"' 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 "stream_key"' 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 "url"' 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
|
+
end
|
@@ -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
|
@@ -28,6 +28,10 @@ describe 'InputSettingsOverlaySettings' do
|
|
28
28
|
describe 'test attribute "vertical_align"' 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', ["top", "middle", "bottom"])
|
32
|
+
# validator.allowable_values.each do |value|
|
33
|
+
# expect { @instance.vertical_align = value }.not_to raise_error
|
34
|
+
# end
|
31
35
|
end
|
32
36
|
end
|
33
37
|
|
@@ -40,6 +44,10 @@ describe 'InputSettingsOverlaySettings' do
|
|
40
44
|
describe 'test attribute "horizontal_align"' do
|
41
45
|
it 'should work' do
|
42
46
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
# validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["left", "center", "right"])
|
48
|
+
# validator.allowable_values.each do |value|
|
49
|
+
# expect { @instance.horizontal_align = value }.not_to raise_error
|
50
|
+
# end
|
43
51
|
end
|
44
52
|
end
|
45
53
|
|
@@ -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
|