mux_ruby 2.0.0.pre.rc.2 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +3 -3
  3. data/README.md +4 -4
  4. data/docs/AssetsApi.md +2 -0
  5. data/docs/CreateLiveStreamRequest.md +2 -0
  6. data/docs/ExportDate.md +20 -0
  7. data/docs/ExportFile.md +22 -0
  8. data/docs/ExportsApi.md +69 -1
  9. data/docs/GetLiveStreamPlaybackIDResponse.md +18 -0
  10. data/docs/ListVideoViewExportsResponse.md +22 -0
  11. data/docs/LiveStream.md +2 -0
  12. data/docs/LiveStreamsApi.md +71 -0
  13. data/docs/MetricsApi.md +8 -8
  14. data/docs/RealTimeApi.md +2 -2
  15. data/docs/RealTimeBreakdownValue.md +2 -2
  16. data/docs/RealTimeTimeseriesDatapoint.md +2 -2
  17. data/gen/generator-config.json +2 -1
  18. data/gen/templates/gemspec.mustache +1 -0
  19. data/lib/mux_ruby/api/assets_api.rb +2 -0
  20. data/lib/mux_ruby/api/exports_api.rb +59 -2
  21. data/lib/mux_ruby/api/live_streams_api.rb +67 -0
  22. data/lib/mux_ruby/api/metrics_api.rb +16 -16
  23. data/lib/mux_ruby/api/real_time_api.rb +4 -4
  24. data/lib/mux_ruby/models/create_live_stream_request.rb +11 -1
  25. data/lib/mux_ruby/models/export_date.rb +229 -0
  26. data/lib/mux_ruby/models/export_file.rb +236 -0
  27. data/lib/mux_ruby/models/get_live_stream_playback_id_response.rb +218 -0
  28. data/lib/mux_ruby/models/list_video_view_exports_response.rb +240 -0
  29. data/lib/mux_ruby/models/live_stream.rb +11 -1
  30. data/lib/mux_ruby/models/real_time_breakdown_value.rb +7 -7
  31. data/lib/mux_ruby/models/real_time_timeseries_datapoint.rb +7 -7
  32. data/lib/mux_ruby/version.rb +1 -1
  33. data/lib/mux_ruby.rb +4 -0
  34. data/mux_ruby.gemspec +1 -0
  35. data/spec/models/export_date_spec.rb +40 -0
  36. data/spec/models/export_file_spec.rb +46 -0
  37. data/spec/models/get_live_stream_playback_id_response_spec.rb +34 -0
  38. data/spec/models/list_video_view_exports_response_spec.rb +46 -0
  39. metadata +107 -90
@@ -50,6 +50,9 @@ module MuxRuby
50
50
  # Latency is the time from when the streamer does something in real life to when you see it happen in the player. Set this if you want lower latency for your live stream. **Note**: Reconnect windows are incompatible with Reduced Latency and will always be set to zero (0) seconds. See the [Reduce live stream latency guide](https://docs.mux.com/guides/video/reduce-live-stream-latency) to understand the tradeoffs.
51
51
  attr_accessor :reduced_latency
52
52
 
53
+ # Latency is the time from when the streamer does something in real life to when you see it happen in the player. Setting this option will enable compatibility with the LL-HLS specification for low-latency streaming. This typically has lower latency than Reduced Latency streams, and cannot be combined with Reduced Latency. Note: Reconnect windows are incompatible with Low Latency and will always be set to zero (0) seconds.
54
+ attr_accessor :low_latency
55
+
53
56
  # Each Simulcast Target contains configuration details to broadcast (or \"restream\") a live stream to a third-party streaming service. [See the Stream live to 3rd party platforms guide](https://docs.mux.com/guides/video/stream-live-to-3rd-party-platforms).
54
57
  attr_accessor :simulcast_targets
55
58
 
@@ -93,6 +96,7 @@ module MuxRuby
93
96
  :'audio_only' => :'audio_only',
94
97
  :'reconnect_window' => :'reconnect_window',
95
98
  :'reduced_latency' => :'reduced_latency',
99
+ :'low_latency' => :'low_latency',
96
100
  :'simulcast_targets' => :'simulcast_targets',
97
101
  :'test' => :'test'
98
102
  }
@@ -118,6 +122,7 @@ module MuxRuby
118
122
  :'audio_only' => :'Boolean',
119
123
  :'reconnect_window' => :'Float',
120
124
  :'reduced_latency' => :'Boolean',
125
+ :'low_latency' => :'Boolean',
121
126
  :'simulcast_targets' => :'Array<SimulcastTarget>',
122
127
  :'test' => :'Boolean'
123
128
  }
@@ -198,6 +203,10 @@ module MuxRuby
198
203
  self.reduced_latency = attributes[:'reduced_latency']
199
204
  end
200
205
 
206
+ if attributes.key?(:'low_latency')
207
+ self.low_latency = attributes[:'low_latency']
208
+ end
209
+
201
210
  if attributes.key?(:'simulcast_targets')
202
211
  if (value = attributes[:'simulcast_targets']).is_a?(Array)
203
212
  self.simulcast_targets = value
@@ -251,6 +260,7 @@ module MuxRuby
251
260
  audio_only == o.audio_only &&
252
261
  reconnect_window == o.reconnect_window &&
253
262
  reduced_latency == o.reduced_latency &&
263
+ low_latency == o.low_latency &&
254
264
  simulcast_targets == o.simulcast_targets &&
255
265
  test == o.test
256
266
  end
@@ -264,7 +274,7 @@ module MuxRuby
264
274
  # Calculates hash code according to all attributes.
265
275
  # @return [Integer] Hash code
266
276
  def hash
267
- [id, created_at, stream_key, active_asset_id, recent_asset_ids, status, playback_ids, new_asset_settings, passthrough, audio_only, reconnect_window, reduced_latency, simulcast_targets, test].hash
277
+ [id, created_at, stream_key, active_asset_id, recent_asset_ids, status, playback_ids, new_asset_settings, passthrough, audio_only, reconnect_window, reduced_latency, low_latency, simulcast_targets, test].hash
268
278
  end
269
279
 
270
280
  # Builds the object from hash
@@ -23,7 +23,7 @@ module MuxRuby
23
23
 
24
24
  attr_accessor :display_value
25
25
 
26
- attr_accessor :concurent_viewers
26
+ attr_accessor :concurrent_viewers
27
27
 
28
28
  # Attribute mapping from ruby-style variable name to JSON key.
29
29
  def self.attribute_map
@@ -32,7 +32,7 @@ module MuxRuby
32
32
  :'negative_impact' => :'negative_impact',
33
33
  :'metric_value' => :'metric_value',
34
34
  :'display_value' => :'display_value',
35
- :'concurent_viewers' => :'concurent_viewers'
35
+ :'concurrent_viewers' => :'concurrent_viewers'
36
36
  }
37
37
  end
38
38
 
@@ -48,7 +48,7 @@ module MuxRuby
48
48
  :'negative_impact' => :'Integer',
49
49
  :'metric_value' => :'Float',
50
50
  :'display_value' => :'String',
51
- :'concurent_viewers' => :'Integer'
51
+ :'concurrent_viewers' => :'Integer'
52
52
  }
53
53
  end
54
54
 
@@ -89,8 +89,8 @@ module MuxRuby
89
89
  self.display_value = attributes[:'display_value']
90
90
  end
91
91
 
92
- if attributes.key?(:'concurent_viewers')
93
- self.concurent_viewers = attributes[:'concurent_viewers']
92
+ if attributes.key?(:'concurrent_viewers')
93
+ self.concurrent_viewers = attributes[:'concurrent_viewers']
94
94
  end
95
95
  end
96
96
 
@@ -116,7 +116,7 @@ module MuxRuby
116
116
  negative_impact == o.negative_impact &&
117
117
  metric_value == o.metric_value &&
118
118
  display_value == o.display_value &&
119
- concurent_viewers == o.concurent_viewers
119
+ concurrent_viewers == o.concurrent_viewers
120
120
  end
121
121
 
122
122
  # @see the `==` method
@@ -128,7 +128,7 @@ module MuxRuby
128
128
  # Calculates hash code according to all attributes.
129
129
  # @return [Integer] Hash code
130
130
  def hash
131
- [value, negative_impact, metric_value, display_value, concurent_viewers].hash
131
+ [value, negative_impact, metric_value, display_value, concurrent_viewers].hash
132
132
  end
133
133
 
134
134
  # Builds the object from hash
@@ -19,14 +19,14 @@ module MuxRuby
19
19
 
20
20
  attr_accessor :date
21
21
 
22
- attr_accessor :concurent_viewers
22
+ attr_accessor :concurrent_viewers
23
23
 
24
24
  # Attribute mapping from ruby-style variable name to JSON key.
25
25
  def self.attribute_map
26
26
  {
27
27
  :'value' => :'value',
28
28
  :'date' => :'date',
29
- :'concurent_viewers' => :'concurent_viewers'
29
+ :'concurrent_viewers' => :'concurrent_viewers'
30
30
  }
31
31
  end
32
32
 
@@ -40,7 +40,7 @@ module MuxRuby
40
40
  {
41
41
  :'value' => :'Float',
42
42
  :'date' => :'String',
43
- :'concurent_viewers' => :'Integer'
43
+ :'concurrent_viewers' => :'Integer'
44
44
  }
45
45
  end
46
46
 
@@ -73,8 +73,8 @@ module MuxRuby
73
73
  self.date = attributes[:'date']
74
74
  end
75
75
 
76
- if attributes.key?(:'concurent_viewers')
77
- self.concurent_viewers = attributes[:'concurent_viewers']
76
+ if attributes.key?(:'concurrent_viewers')
77
+ self.concurrent_viewers = attributes[:'concurrent_viewers']
78
78
  end
79
79
  end
80
80
 
@@ -98,7 +98,7 @@ module MuxRuby
98
98
  self.class == o.class &&
99
99
  value == o.value &&
100
100
  date == o.date &&
101
- concurent_viewers == o.concurent_viewers
101
+ concurrent_viewers == o.concurrent_viewers
102
102
  end
103
103
 
104
104
  # @see the `==` method
@@ -110,7 +110,7 @@ module MuxRuby
110
110
  # Calculates hash code according to all attributes.
111
111
  # @return [Integer] Hash code
112
112
  def hash
113
- [value, date, concurent_viewers].hash
113
+ [value, date, concurrent_viewers].hash
114
114
  end
115
115
 
116
116
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.1
11
11
  =end
12
12
 
13
13
  module MuxRuby
14
- VERSION = '2.0.0-rc.2'
14
+ VERSION = '2.2.0'
15
15
  end
data/lib/mux_ruby.rb CHANGED
@@ -40,12 +40,15 @@ require 'mux_ruby/models/dimension_value'
40
40
  require 'mux_ruby/models/disable_live_stream_response'
41
41
  require 'mux_ruby/models/enable_live_stream_response'
42
42
  require 'mux_ruby/models/error'
43
+ require 'mux_ruby/models/export_date'
44
+ require 'mux_ruby/models/export_file'
43
45
  require 'mux_ruby/models/filter_value'
44
46
  require 'mux_ruby/models/get_asset_input_info_response'
45
47
  require 'mux_ruby/models/get_asset_or_live_stream_id_response'
46
48
  require 'mux_ruby/models/get_asset_or_live_stream_id_response_data'
47
49
  require 'mux_ruby/models/get_asset_or_live_stream_id_response_data_object'
48
50
  require 'mux_ruby/models/get_asset_playback_id_response'
51
+ require 'mux_ruby/models/get_live_stream_playback_id_response'
49
52
  require 'mux_ruby/models/get_metric_timeseries_data_response'
50
53
  require 'mux_ruby/models/get_overall_values_response'
51
54
  require 'mux_ruby/models/get_real_time_breakdown_response'
@@ -83,6 +86,7 @@ require 'mux_ruby/models/list_real_time_metrics_response'
83
86
  require 'mux_ruby/models/list_related_incidents_response'
84
87
  require 'mux_ruby/models/list_signing_keys_response'
85
88
  require 'mux_ruby/models/list_uploads_response'
89
+ require 'mux_ruby/models/list_video_view_exports_response'
86
90
  require 'mux_ruby/models/list_video_views_response'
87
91
  require 'mux_ruby/models/live_stream'
88
92
  require 'mux_ruby/models/live_stream_response'
data/mux_ruby.gemspec CHANGED
@@ -24,6 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.homepage = "https://docs.mux.com"
25
25
  s.summary = "Mux API Ruby Gem"
26
26
  s.description = "The Ruby client for Mux Data and Mux Video."
27
+ s.metadata = { "source_code_uri" => "https://github.com/muxinc/mux-ruby" }
27
28
  s.license = "MIT"
28
29
  s.required_ruby_version = ">= 2.4"
29
30
 
@@ -0,0 +1,40 @@
1
+ =begin
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
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for MuxRuby::ExportDate
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MuxRuby::ExportDate do
21
+ let(:instance) { MuxRuby::ExportDate.new }
22
+
23
+ describe 'test an instance of ExportDate' do
24
+ it 'should create an instance of ExportDate' do
25
+ expect(instance).to be_instance_of(MuxRuby::ExportDate)
26
+ end
27
+ end
28
+ describe 'test attribute "export_date"' 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 "files"' 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,46 @@
1
+ =begin
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
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for MuxRuby::ExportFile
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MuxRuby::ExportFile do
21
+ let(:instance) { MuxRuby::ExportFile.new }
22
+
23
+ describe 'test an instance of ExportFile' do
24
+ it 'should create an instance of ExportFile' do
25
+ expect(instance).to be_instance_of(MuxRuby::ExportFile)
26
+ end
27
+ end
28
+ describe 'test attribute "version"' 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
+ end
38
+ end
39
+
40
+ describe 'test attribute "path"' 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,34 @@
1
+ =begin
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
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for MuxRuby::GetLiveStreamPlaybackIDResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MuxRuby::GetLiveStreamPlaybackIDResponse do
21
+ let(:instance) { MuxRuby::GetLiveStreamPlaybackIDResponse.new }
22
+
23
+ describe 'test an instance of GetLiveStreamPlaybackIDResponse' do
24
+ it 'should create an instance of GetLiveStreamPlaybackIDResponse' do
25
+ expect(instance).to be_instance_of(MuxRuby::GetLiveStreamPlaybackIDResponse)
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,46 @@
1
+ =begin
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
+
11
+ =end
12
+
13
+ require 'spec_helper'
14
+ require 'json'
15
+ require 'date'
16
+
17
+ # Unit tests for MuxRuby::ListVideoViewExportsResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MuxRuby::ListVideoViewExportsResponse do
21
+ let(:instance) { MuxRuby::ListVideoViewExportsResponse.new }
22
+
23
+ describe 'test an instance of ListVideoViewExportsResponse' do
24
+ it 'should create an instance of ListVideoViewExportsResponse' do
25
+ expect(instance).to be_instance_of(MuxRuby::ListVideoViewExportsResponse)
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
+ end