mux_ruby 1.0.0 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +3 -0
  4. data/docs/Asset.md +1 -0
  5. data/docs/AssetsApi.md +103 -0
  6. data/docs/CreateAssetRequest.md +2 -0
  7. data/docs/CreateLiveStreamRequest.md +3 -0
  8. data/docs/CreateSimulcastTargetRequest.md +10 -0
  9. data/docs/CreateTrackRequest.md +14 -0
  10. data/docs/CreateTrackResponse.md +8 -0
  11. data/docs/DeliveryReport.md +14 -0
  12. data/docs/DeliveryUsageApi.md +68 -0
  13. data/docs/GetMetricTimeseriesDataResponse.md +1 -1
  14. data/docs/GetOverallValuesResponse.md +1 -1
  15. data/docs/InputSettings.md +6 -1
  16. data/docs/InputTrack.md +0 -2
  17. data/docs/Insight.md +2 -2
  18. data/docs/ListAllMetricValuesResponse.md +1 -1
  19. data/docs/ListBreakdownValuesResponse.md +1 -1
  20. data/docs/ListDeliveryUsageResponse.md +11 -0
  21. data/docs/ListErrorsResponse.md +1 -1
  22. data/docs/ListExportsResponse.md +1 -1
  23. data/docs/ListFilterValuesResponse.md +1 -1
  24. data/docs/ListFiltersResponse.md +1 -1
  25. data/docs/ListInsightsResponse.md +1 -1
  26. data/docs/ListVideoViewsResponse.md +1 -1
  27. data/docs/LiveStream.md +2 -0
  28. data/docs/LiveStreamsApi.md +161 -0
  29. data/docs/SigningKeyResponse.md +1 -1
  30. data/docs/SimulcastTarget.md +12 -0
  31. data/docs/SimulcastTargetResponse.md +8 -0
  32. data/docs/Track.md +5 -2
  33. data/docs/VideoViewResponse.md +1 -1
  34. data/examples/data/exercise-errors.rb +1 -1
  35. data/examples/data/exercise-metrics.rb +0 -7
  36. data/examples/video/exercise-assets.rb +17 -1
  37. data/examples/video/exercise-delivery-usage.rb +23 -0
  38. data/examples/video/exercise-live-streams.rb +28 -1
  39. data/lib/mux_ruby/api/assets_api.rb +113 -0
  40. data/lib/mux_ruby/api/delivery_usage_api.rb +75 -0
  41. data/lib/mux_ruby/api/live_streams_api.rb +176 -0
  42. data/lib/mux_ruby/api_client.rb +1 -1
  43. data/lib/mux_ruby/models/asset.rb +12 -1
  44. data/lib/mux_ruby/models/create_asset_request.rb +37 -4
  45. data/lib/mux_ruby/models/create_live_stream_request.rb +57 -4
  46. data/lib/mux_ruby/models/create_simulcast_target_request.rb +210 -0
  47. data/lib/mux_ruby/models/create_track_request.rb +304 -0
  48. data/lib/mux_ruby/models/create_track_response.rb +184 -0
  49. data/lib/mux_ruby/models/delivery_report.rb +238 -0
  50. data/lib/mux_ruby/models/get_metric_timeseries_data_response.rb +1 -1
  51. data/lib/mux_ruby/models/get_overall_values_response.rb +1 -1
  52. data/lib/mux_ruby/models/input_settings.rb +104 -13
  53. data/lib/mux_ruby/models/input_track.rb +4 -22
  54. data/lib/mux_ruby/models/insight.rb +2 -2
  55. data/lib/mux_ruby/models/list_all_metric_values_response.rb +1 -1
  56. data/lib/mux_ruby/models/list_breakdown_values_response.rb +1 -1
  57. data/lib/mux_ruby/models/list_delivery_usage_response.rb +216 -0
  58. data/lib/mux_ruby/models/list_errors_response.rb +1 -1
  59. data/lib/mux_ruby/models/list_exports_response.rb +1 -1
  60. data/lib/mux_ruby/models/list_filter_values_response.rb +1 -1
  61. data/lib/mux_ruby/models/list_filters_response.rb +1 -1
  62. data/lib/mux_ruby/models/list_insights_response.rb +1 -1
  63. data/lib/mux_ruby/models/list_video_views_response.rb +1 -1
  64. data/lib/mux_ruby/models/live_stream.rb +24 -4
  65. data/lib/mux_ruby/models/simulcast_target.rb +259 -0
  66. data/lib/mux_ruby/models/simulcast_target_response.rb +184 -0
  67. data/lib/mux_ruby/models/track.rb +86 -13
  68. data/lib/mux_ruby/models/video_view_response.rb +1 -1
  69. data/lib/mux_ruby/version.rb +1 -1
  70. data/lib/mux_ruby.rb +8 -0
  71. data/spec/api/assets_api_spec.rb +24 -0
  72. data/spec/api/delivery_usage_api_spec.rb +43 -0
  73. data/spec/api/live_streams_api_spec.rb +39 -0
  74. data/spec/models/asset_spec.rb +6 -0
  75. data/spec/models/create_asset_request_spec.rb +16 -0
  76. data/spec/models/create_live_stream_request_spec.rb +18 -0
  77. data/spec/models/create_simulcast_target_request_spec.rb +46 -0
  78. data/spec/models/create_track_request_spec.rb +78 -0
  79. data/spec/models/create_track_response_spec.rb +34 -0
  80. data/spec/models/delivery_report_spec.rb +70 -0
  81. data/spec/models/input_settings_spec.rb +40 -2
  82. data/spec/models/input_track_spec.rb +0 -12
  83. data/spec/models/list_delivery_usage_response_spec.rb +52 -0
  84. data/spec/models/live_stream_spec.rb +12 -0
  85. data/spec/models/simulcast_target_response_spec.rb +34 -0
  86. data/spec/models/simulcast_target_spec.rb +62 -0
  87. data/spec/models/track_spec.rb +28 -2
  88. metadata +36 -3
@@ -0,0 +1,184 @@
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 'date'
7
+
8
+ module MuxRuby
9
+ class SimulcastTargetResponse
10
+ attr_accessor :data
11
+
12
+ # Attribute mapping from ruby-style variable name to JSON key.
13
+ def self.attribute_map
14
+ {
15
+ :'data' => :'data'
16
+ }
17
+ end
18
+
19
+ # Attribute type mapping.
20
+ def self.openapi_types
21
+ {
22
+ :'data' => :'SimulcastTarget'
23
+ }
24
+ end
25
+
26
+ # Initializes the object
27
+ # @param [Hash] attributes Model attributes in the form of hash
28
+ def initialize(attributes = {})
29
+ return unless attributes.is_a?(Hash)
30
+
31
+ # convert string to symbol for hash key
32
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
33
+
34
+ if attributes.has_key?(:'data')
35
+ self.data = attributes[:'data']
36
+ end
37
+ end
38
+
39
+ # Show invalid properties with the reasons. Usually used together with valid?
40
+ # @return Array for valid properties with the reasons
41
+ def list_invalid_properties
42
+ invalid_properties = Array.new
43
+ invalid_properties
44
+ end
45
+
46
+ # Check to see if the all the properties in the model are valid
47
+ # @return true if the model is valid
48
+ def valid?
49
+ true
50
+ end
51
+
52
+ # Checks equality by comparing each attribute.
53
+ # @param [Object] Object to be compared
54
+ def ==(o)
55
+ return true if self.equal?(o)
56
+ self.class == o.class &&
57
+ data == o.data
58
+ end
59
+
60
+ # @see the `==` method
61
+ # @param [Object] Object to be compared
62
+ def eql?(o)
63
+ self == o
64
+ end
65
+
66
+ # Calculates hash code according to all attributes.
67
+ # @return [Fixnum] Hash code
68
+ def hash
69
+ [data].hash
70
+ end
71
+
72
+ # Builds the object from hash
73
+ # @param [Hash] attributes Model attributes in the form of hash
74
+ # @return [Object] Returns the model itself
75
+ def self.build_from_hash(attributes)
76
+ new.build_from_hash(attributes)
77
+ end
78
+
79
+ # Builds the object from hash
80
+ # @param [Hash] attributes Model attributes in the form of hash
81
+ # @return [Object] Returns the model itself
82
+ def build_from_hash(attributes)
83
+ return nil unless attributes.is_a?(Hash)
84
+ self.class.openapi_types.each_pair do |key, type|
85
+ if type =~ /\AArray<(.*)>/i
86
+ # check to ensure the input is an array given that the attribute
87
+ # is documented as an array but the input is not
88
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
89
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
90
+ end
91
+ elsif !attributes[self.class.attribute_map[key]].nil?
92
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
93
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
94
+ end
95
+
96
+ self
97
+ end
98
+
99
+ # Deserializes the data based on type
100
+ # @param string type Data type
101
+ # @param string value Value to be deserialized
102
+ # @return [Object] Deserialized data
103
+ def _deserialize(type, value)
104
+ case type.to_sym
105
+ when :DateTime
106
+ DateTime.parse(value)
107
+ when :Date
108
+ Date.parse(value)
109
+ when :String
110
+ value.to_s
111
+ when :Integer
112
+ value.to_i
113
+ when :Float
114
+ value.to_f
115
+ when :BOOLEAN
116
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
117
+ true
118
+ else
119
+ false
120
+ end
121
+ when :Object
122
+ # generic object (usually a Hash), return directly
123
+ value
124
+ when /\AArray<(?<inner_type>.+)>\z/
125
+ inner_type = Regexp.last_match[:inner_type]
126
+ value.map { |v| _deserialize(inner_type, v) }
127
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
128
+ k_type = Regexp.last_match[:k_type]
129
+ v_type = Regexp.last_match[:v_type]
130
+ {}.tap do |hash|
131
+ value.each do |k, v|
132
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
133
+ end
134
+ end
135
+ else # model
136
+ MuxRuby.const_get(type).build_from_hash(value)
137
+ end
138
+ end
139
+
140
+ # Returns the string representation of the object
141
+ # @return [String] String presentation of the object
142
+ def to_s
143
+ to_hash.to_s
144
+ end
145
+
146
+ # to_body is an alias to to_hash (backward compatibility)
147
+ # @return [Hash] Returns the object in the form of hash
148
+ def to_body
149
+ to_hash
150
+ end
151
+
152
+ # Returns the object in the form of hash
153
+ # @return [Hash] Returns the object in the form of hash
154
+ def to_hash
155
+ hash = {}
156
+ self.class.attribute_map.each_pair do |attr, param|
157
+ value = self.send(attr)
158
+ next if value.nil?
159
+ hash[param] = _to_hash(value)
160
+ end
161
+ hash
162
+ end
163
+
164
+ # Outputs non-array value in the form of hash
165
+ # For object, use to_hash. Otherwise, just return the value
166
+ # @param [Object] value Any valid value
167
+ # @return [Hash] Returns the value in the form of hash
168
+ def _to_hash(value)
169
+ if value.is_a?(Array)
170
+ value.compact.map { |v| _to_hash(v) }
171
+ elsif value.is_a?(Hash)
172
+ {}.tap do |hash|
173
+ value.each { |k, v| hash[k] = _to_hash(v) }
174
+ end
175
+ elsif value.respond_to? :to_hash
176
+ value.to_hash
177
+ else
178
+ value
179
+ end
180
+ end
181
+
182
+ end
183
+
184
+ end
@@ -23,9 +23,37 @@ module MuxRuby
23
23
 
24
24
  attr_accessor :max_channel_layout
25
25
 
26
- attr_accessor :text_track_type
26
+ attr_accessor :text_type
27
27
 
28
- attr_accessor :language
28
+ attr_accessor :language_code
29
+
30
+ attr_accessor :name
31
+
32
+ attr_accessor :closed_captions
33
+
34
+ attr_accessor :passthrough
35
+
36
+ class EnumAttributeValidator
37
+ attr_reader :datatype
38
+ attr_reader :allowable_values
39
+
40
+ def initialize(datatype, allowable_values)
41
+ @allowable_values = allowable_values.map do |value|
42
+ case datatype.to_s
43
+ when /Integer/i
44
+ value.to_i
45
+ when /Float/i
46
+ value.to_f
47
+ else
48
+ value
49
+ end
50
+ end
51
+ end
52
+
53
+ def valid?(value)
54
+ !value || allowable_values.include?(value)
55
+ end
56
+ end
29
57
 
30
58
  # Attribute mapping from ruby-style variable name to JSON key.
31
59
  def self.attribute_map
@@ -38,8 +66,11 @@ module MuxRuby
38
66
  :'max_frame_rate' => :'max_frame_rate',
39
67
  :'max_channels' => :'max_channels',
40
68
  :'max_channel_layout' => :'max_channel_layout',
41
- :'text_track_type' => :'text_track_type',
42
- :'language' => :'language'
69
+ :'text_type' => :'text_type',
70
+ :'language_code' => :'language_code',
71
+ :'name' => :'name',
72
+ :'closed_captions' => :'closed_captions',
73
+ :'passthrough' => :'passthrough'
43
74
  }
44
75
  end
45
76
 
@@ -54,8 +85,11 @@ module MuxRuby
54
85
  :'max_frame_rate' => :'Float',
55
86
  :'max_channels' => :'Integer',
56
87
  :'max_channel_layout' => :'String',
57
- :'text_track_type' => :'String',
58
- :'language' => :'String'
88
+ :'text_type' => :'String',
89
+ :'language_code' => :'String',
90
+ :'name' => :'String',
91
+ :'closed_captions' => :'BOOLEAN',
92
+ :'passthrough' => :'String'
59
93
  }
60
94
  end
61
95
 
@@ -99,12 +133,24 @@ module MuxRuby
99
133
  self.max_channel_layout = attributes[:'max_channel_layout']
100
134
  end
101
135
 
102
- if attributes.has_key?(:'text_track_type')
103
- self.text_track_type = attributes[:'text_track_type']
136
+ if attributes.has_key?(:'text_type')
137
+ self.text_type = attributes[:'text_type']
104
138
  end
105
139
 
106
- if attributes.has_key?(:'language')
107
- self.language = attributes[:'language']
140
+ if attributes.has_key?(:'language_code')
141
+ self.language_code = attributes[:'language_code']
142
+ end
143
+
144
+ if attributes.has_key?(:'name')
145
+ self.name = attributes[:'name']
146
+ end
147
+
148
+ if attributes.has_key?(:'closed_captions')
149
+ self.closed_captions = attributes[:'closed_captions']
150
+ end
151
+
152
+ if attributes.has_key?(:'passthrough')
153
+ self.passthrough = attributes[:'passthrough']
108
154
  end
109
155
  end
110
156
 
@@ -118,9 +164,33 @@ module MuxRuby
118
164
  # Check to see if the all the properties in the model are valid
119
165
  # @return true if the model is valid
120
166
  def valid?
167
+ type_validator = EnumAttributeValidator.new('String', ['video', 'audio', 'text'])
168
+ return false unless type_validator.valid?(@type)
169
+ text_type_validator = EnumAttributeValidator.new('String', ['subtitles'])
170
+ return false unless text_type_validator.valid?(@text_type)
121
171
  true
122
172
  end
123
173
 
174
+ # Custom attribute writer method checking allowed values (enum).
175
+ # @param [Object] type Object to be assigned
176
+ def type=(type)
177
+ validator = EnumAttributeValidator.new('String', ['video', 'audio', 'text'])
178
+ unless validator.valid?(type)
179
+ fail ArgumentError, 'invalid value for "type", must be one of #{validator.allowable_values}.'
180
+ end
181
+ @type = type
182
+ end
183
+
184
+ # Custom attribute writer method checking allowed values (enum).
185
+ # @param [Object] text_type Object to be assigned
186
+ def text_type=(text_type)
187
+ validator = EnumAttributeValidator.new('String', ['subtitles'])
188
+ unless validator.valid?(text_type)
189
+ fail ArgumentError, 'invalid value for "text_type", must be one of #{validator.allowable_values}.'
190
+ end
191
+ @text_type = text_type
192
+ end
193
+
124
194
  # Checks equality by comparing each attribute.
125
195
  # @param [Object] Object to be compared
126
196
  def ==(o)
@@ -134,8 +204,11 @@ module MuxRuby
134
204
  max_frame_rate == o.max_frame_rate &&
135
205
  max_channels == o.max_channels &&
136
206
  max_channel_layout == o.max_channel_layout &&
137
- text_track_type == o.text_track_type &&
138
- language == o.language
207
+ text_type == o.text_type &&
208
+ language_code == o.language_code &&
209
+ name == o.name &&
210
+ closed_captions == o.closed_captions &&
211
+ passthrough == o.passthrough
139
212
  end
140
213
 
141
214
  # @see the `==` method
@@ -147,7 +220,7 @@ module MuxRuby
147
220
  # Calculates hash code according to all attributes.
148
221
  # @return [Fixnum] Hash code
149
222
  def hash
150
- [id, type, duration, max_width, max_height, max_frame_rate, max_channels, max_channel_layout, text_track_type, language].hash
223
+ [id, type, duration, max_width, max_height, max_frame_rate, max_channels, max_channel_layout, text_type, language_code, name, closed_captions, passthrough].hash
151
224
  end
152
225
 
153
226
  # Builds the object from hash
@@ -23,7 +23,7 @@ module MuxRuby
23
23
  def self.openapi_types
24
24
  {
25
25
  :'data' => :'VideoView',
26
- :'timeframe' => :'Array<String>'
26
+ :'timeframe' => :'Array<Integer>'
27
27
  }
28
28
  end
29
29
 
@@ -4,5 +4,5 @@
4
4
  =end
5
5
 
6
6
  module MuxRuby
7
- VERSION = '1.0.0'
7
+ VERSION = '1.3.0'
8
8
  end
data/lib/mux_ruby.rb CHANGED
@@ -22,7 +22,11 @@ require 'mux_ruby/models/create_asset_request'
22
22
  require 'mux_ruby/models/create_live_stream_request'
23
23
  require 'mux_ruby/models/create_playback_id_request'
24
24
  require 'mux_ruby/models/create_playback_id_response'
25
+ require 'mux_ruby/models/create_simulcast_target_request'
26
+ require 'mux_ruby/models/create_track_request'
27
+ require 'mux_ruby/models/create_track_response'
25
28
  require 'mux_ruby/models/create_upload_request'
29
+ require 'mux_ruby/models/delivery_report'
26
30
  require 'mux_ruby/models/error'
27
31
  require 'mux_ruby/models/filter_value'
28
32
  require 'mux_ruby/models/get_asset_input_info_response'
@@ -38,6 +42,7 @@ require 'mux_ruby/models/insight'
38
42
  require 'mux_ruby/models/list_all_metric_values_response'
39
43
  require 'mux_ruby/models/list_assets_response'
40
44
  require 'mux_ruby/models/list_breakdown_values_response'
45
+ require 'mux_ruby/models/list_delivery_usage_response'
41
46
  require 'mux_ruby/models/list_errors_response'
42
47
  require 'mux_ruby/models/list_exports_response'
43
48
  require 'mux_ruby/models/list_filter_values_response'
@@ -58,6 +63,8 @@ require 'mux_ruby/models/score'
58
63
  require 'mux_ruby/models/signal_live_stream_complete_response'
59
64
  require 'mux_ruby/models/signing_key'
60
65
  require 'mux_ruby/models/signing_key_response'
66
+ require 'mux_ruby/models/simulcast_target'
67
+ require 'mux_ruby/models/simulcast_target_response'
61
68
  require 'mux_ruby/models/track'
62
69
  require 'mux_ruby/models/update_asset_mp4_support_request'
63
70
  require 'mux_ruby/models/upload'
@@ -69,6 +76,7 @@ require 'mux_ruby/models/video_view_response'
69
76
 
70
77
  # APIs
71
78
  require 'mux_ruby/api/assets_api'
79
+ require 'mux_ruby/api/delivery_usage_api'
72
80
  require 'mux_ruby/api/direct_uploads_api'
73
81
  require 'mux_ruby/api/errors_api'
74
82
  require 'mux_ruby/api/exports_api'
@@ -49,6 +49,18 @@ describe 'AssetsApi' do
49
49
  end
50
50
  end
51
51
 
52
+ # unit tests for create_asset_track
53
+ # Create an asset track
54
+ # @param asset_id The asset ID.
55
+ # @param create_track_request
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [CreateTrackResponse]
58
+ describe 'create_asset_track 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
+
52
64
  # unit tests for delete_asset
53
65
  # Delete an asset
54
66
  # @param asset_id The asset ID.
@@ -72,6 +84,18 @@ describe 'AssetsApi' do
72
84
  end
73
85
  end
74
86
 
87
+ # unit tests for delete_asset_track
88
+ # Delete an asset track
89
+ # @param asset_id The asset ID.
90
+ # @param track_id The track ID.
91
+ # @param [Hash] opts the optional parameters
92
+ # @return [nil]
93
+ describe 'delete_asset_track test' do
94
+ it 'should work' do
95
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
96
+ end
97
+ end
98
+
75
99
  # unit tests for get_asset
76
100
  # Retrieve an asset
77
101
  # Retrieves the details of an asset that has previously been created. Supply the unique asset ID that was returned from your previous request, and Mux will return the corresponding asset information. The same information is returned when creating an asset.
@@ -0,0 +1,43 @@
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::DeliveryUsageApi
10
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
11
+ # Please update as you see appropriate
12
+ describe 'DeliveryUsageApi' do
13
+ before do
14
+ # run before each test
15
+ @instance = MuxRuby::DeliveryUsageApi.new
16
+ end
17
+
18
+ after do
19
+ # run after each test
20
+ end
21
+
22
+ describe 'test an instance of DeliveryUsageApi' do
23
+ it 'should create an instance of DeliveryUsageApi' do
24
+ expect(@instance).to be_instance_of(MuxRuby::DeliveryUsageApi)
25
+ end
26
+ end
27
+
28
+ # unit tests for list_delivery_usage
29
+ # List Usage
30
+ # Returns a list of delivery usage records and their associated Asset IDs or Live Stream IDs.
31
+ # @param [Hash] opts the optional parameters
32
+ # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60;
33
+ # @option opts [Integer] :limit Number of items to include in the response
34
+ # @option opts [String] :asset_id Filter response to return delivery usage for this asset only.
35
+ # @option opts [Array<String>] :timeframe Time window to get delivery usage information. timeframe[0] indicates the start time, timeframe[1] indicates the end time in seconds since the Unix epoch. Default time window is 1 hour representing usage from 13th to 12th hour from when the request is made.
36
+ # @return [ListDeliveryUsageResponse]
37
+ describe 'list_delivery_usage test' do
38
+ it 'should work' do
39
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
40
+ end
41
+ end
42
+
43
+ end
@@ -48,6 +48,19 @@ describe 'LiveStreamsApi' do
48
48
  end
49
49
  end
50
50
 
51
+ # unit tests for create_live_stream_simulcast_target
52
+ # Create a live stream simulcast target
53
+ # Create a simulcast target for the parent live stream. Simulcast target can only be created when the parent live stream is in idle state. Only one simulcast target can be created at a time with this API.
54
+ # @param live_stream_id The live stream ID
55
+ # @param create_simulcast_target_request
56
+ # @param [Hash] opts the optional parameters
57
+ # @return [SimulcastTargetResponse]
58
+ describe 'create_live_stream_simulcast_target 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
+
51
64
  # unit tests for delete_live_stream
52
65
  # Delete a live stream
53
66
  # @param live_stream_id The live stream ID
@@ -71,6 +84,19 @@ describe 'LiveStreamsApi' do
71
84
  end
72
85
  end
73
86
 
87
+ # unit tests for delete_live_stream_simulcast_target
88
+ # Delete a Live Stream Simulcast Target
89
+ # Delete the simulcast target using the simulcast target ID returned when creating the simulcast target. Simulcast Target can only be deleted when the parent live stream is in idle state.
90
+ # @param live_stream_id The live stream ID
91
+ # @param simulcast_target_id The ID of the simulcast target.
92
+ # @param [Hash] opts the optional parameters
93
+ # @return [nil]
94
+ describe 'delete_live_stream_simulcast_target test' 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
+
74
100
  # unit tests for get_live_stream
75
101
  # Retrieve a live stream
76
102
  # 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.
@@ -83,6 +109,19 @@ describe 'LiveStreamsApi' do
83
109
  end
84
110
  end
85
111
 
112
+ # unit tests for get_live_stream_simulcast_target
113
+ # Retrieve a Live Stream Simulcast Target
114
+ # Retrieves the details of the simulcast target created for the parent live stream. Supply the unique live stream ID and simulcast target ID that was returned in the response of create simulcast target request, and Mux will return the corresponding information.
115
+ # @param live_stream_id The live stream ID
116
+ # @param simulcast_target_id The ID of the simulcast target.
117
+ # @param [Hash] opts the optional parameters
118
+ # @return [SimulcastTargetResponse]
119
+ describe 'get_live_stream_simulcast_target test' do
120
+ it 'should work' do
121
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
122
+ end
123
+ end
124
+
86
125
  # unit tests for list_live_streams
87
126
  # List live streams
88
127
  # @param [Hash] opts the optional parameters
@@ -147,6 +147,12 @@ describe 'Asset' do
147
147
  end
148
148
  end
149
149
 
150
+ describe 'test attribute "normalize_audio"' do
151
+ it 'should work' do
152
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
153
+ end
154
+ end
155
+
150
156
  describe 'test attribute "static_renditions"' do
151
157
  it 'should work' do
152
158
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
@@ -65,4 +65,20 @@ describe 'CreateAssetRequest' do
65
65
  end
66
66
  end
67
67
 
68
+ describe 'test attribute "normalize_audio"' do
69
+ it 'should work' do
70
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
71
+ end
72
+ end
73
+
74
+ describe 'test attribute "master_access"' do
75
+ it 'should work' do
76
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
77
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["none", "temporary"])
78
+ # validator.allowable_values.each do |value|
79
+ # expect { @instance.master_access = value }.not_to raise_error
80
+ # end
81
+ end
82
+ end
83
+
68
84
  end
@@ -37,4 +37,22 @@ 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
+
40
58
  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