mux_ruby 3.4.0 → 3.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +13 -7
  4. data/docs/Asset.md +1 -1
  5. data/docs/Broadcast.md +30 -0
  6. data/docs/BroadcastLayout.md +15 -0
  7. data/docs/BroadcastResolution.md +15 -0
  8. data/docs/BroadcastResponse.md +18 -0
  9. data/docs/BroadcastStatus.md +15 -0
  10. data/docs/CreateBroadcastRequest.md +26 -0
  11. data/docs/CreateSimulcastTargetRequest.md +1 -1
  12. data/docs/CreateSpaceRequest.md +22 -0
  13. data/docs/ListSpacesResponse.md +18 -0
  14. data/docs/MetricsApi.md +3 -3
  15. data/docs/RealTimeApi.md +2 -2
  16. data/docs/Space.md +30 -0
  17. data/docs/SpaceResponse.md +18 -0
  18. data/docs/SpaceStatus.md +15 -0
  19. data/docs/SpaceType.md +15 -0
  20. data/docs/SpacesApi.md +658 -0
  21. data/docs/StartSpaceBroadcastResponse.md +18 -0
  22. data/docs/StopSpaceBroadcastResponse.md +18 -0
  23. data/gen/generator-config.json +1 -1
  24. data/gen/templates/README.mustache +9 -3
  25. data/lib/mux_ruby/api/metrics_api.rb +4 -4
  26. data/lib/mux_ruby/api/real_time_api.rb +2 -2
  27. data/lib/mux_ruby/api/spaces_api.rb +619 -0
  28. data/lib/mux_ruby/models/asset.rb +1 -1
  29. data/lib/mux_ruby/models/broadcast.rb +305 -0
  30. data/lib/mux_ruby/models/broadcast_layout.rb +37 -0
  31. data/lib/mux_ruby/models/broadcast_resolution.rb +41 -0
  32. data/lib/mux_ruby/models/broadcast_response.rb +223 -0
  33. data/lib/mux_ruby/models/broadcast_status.rb +37 -0
  34. data/lib/mux_ruby/models/create_broadcast_request.rb +266 -0
  35. data/lib/mux_ruby/models/create_simulcast_target_request.rb +1 -1
  36. data/lib/mux_ruby/models/create_space_request.rb +242 -0
  37. data/lib/mux_ruby/models/list_spaces_response.rb +225 -0
  38. data/lib/mux_ruby/models/space.rb +301 -0
  39. data/lib/mux_ruby/models/space_response.rb +223 -0
  40. data/lib/mux_ruby/models/space_status.rb +37 -0
  41. data/lib/mux_ruby/models/space_type.rb +36 -0
  42. data/lib/mux_ruby/models/start_space_broadcast_response.rb +218 -0
  43. data/lib/mux_ruby/models/stop_space_broadcast_response.rb +218 -0
  44. data/lib/mux_ruby/version.rb +1 -1
  45. data/lib/mux_ruby.rb +15 -0
  46. data/spec/api/spaces_api_spec.rb +149 -0
  47. data/spec/models/broadcast_layout_spec.rb +28 -0
  48. data/spec/models/broadcast_resolution_spec.rb +28 -0
  49. data/spec/models/broadcast_response_spec.rb +34 -0
  50. data/spec/models/broadcast_spec.rb +70 -0
  51. data/spec/models/broadcast_status_spec.rb +28 -0
  52. data/spec/models/create_broadcast_request_spec.rb +58 -0
  53. data/spec/models/create_space_request_spec.rb +46 -0
  54. data/spec/models/list_spaces_response_spec.rb +34 -0
  55. data/spec/models/space_response_spec.rb +34 -0
  56. data/spec/models/space_spec.rb +70 -0
  57. data/spec/models/space_status_spec.rb +28 -0
  58. data/spec/models/space_type_spec.rb +28 -0
  59. data/spec/models/start_space_broadcast_response_spec.rb +34 -0
  60. data/spec/models/stop_space_broadcast_response_spec.rb +34 -0
  61. metadata +163 -103
@@ -0,0 +1,218 @@
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 'date'
14
+ require 'time'
15
+
16
+ module MuxRuby
17
+ class StopSpaceBroadcastResponse
18
+ attr_accessor :data
19
+
20
+ # Attribute mapping from ruby-style variable name to JSON key.
21
+ def self.attribute_map
22
+ {
23
+ :'data' => :'data'
24
+ }
25
+ end
26
+
27
+ # Returns all the JSON keys this model knows about
28
+ def self.acceptable_attributes
29
+ attribute_map.values
30
+ end
31
+
32
+ # Attribute type mapping.
33
+ def self.openapi_types
34
+ {
35
+ :'data' => :'Object'
36
+ }
37
+ end
38
+
39
+ # List of attributes with nullable: true
40
+ def self.openapi_nullable
41
+ Set.new([
42
+ ])
43
+ end
44
+
45
+ # Initializes the object
46
+ # @param [Hash] attributes Model attributes in the form of hash
47
+ def initialize(attributes = {})
48
+ if (!attributes.is_a?(Hash))
49
+ fail ArgumentError, "The input argument (attributes) must be a hash in `MuxRuby::StopSpaceBroadcastResponse` initialize method"
50
+ end
51
+
52
+ # check to see if the attribute exists and convert string to symbol for hash key
53
+ attributes = attributes.each_with_object({}) { |(k, v), h|
54
+ if (!self.class.attribute_map.key?(k.to_sym))
55
+ fail ArgumentError, "`#{k}` is not a valid attribute in `MuxRuby::StopSpaceBroadcastResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
56
+ end
57
+ h[k.to_sym] = v
58
+ }
59
+
60
+ if attributes.key?(:'data')
61
+ self.data = attributes[:'data']
62
+ end
63
+ end
64
+
65
+ # Show invalid properties with the reasons. Usually used together with valid?
66
+ # @return Array for valid properties with the reasons
67
+ def list_invalid_properties
68
+ invalid_properties = Array.new
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ true
76
+ end
77
+
78
+ # Checks equality by comparing each attribute.
79
+ # @param [Object] Object to be compared
80
+ def ==(o)
81
+ return true if self.equal?(o)
82
+ self.class == o.class &&
83
+ data == o.data
84
+ end
85
+
86
+ # @see the `==` method
87
+ # @param [Object] Object to be compared
88
+ def eql?(o)
89
+ self == o
90
+ end
91
+
92
+ # Calculates hash code according to all attributes.
93
+ # @return [Integer] Hash code
94
+ def hash
95
+ [data].hash
96
+ end
97
+
98
+ # Builds the object from hash
99
+ # @param [Hash] attributes Model attributes in the form of hash
100
+ # @return [Object] Returns the model itself
101
+ def self.build_from_hash(attributes)
102
+ new.build_from_hash(attributes)
103
+ end
104
+
105
+ # Builds the object from hash
106
+ # @param [Hash] attributes Model attributes in the form of hash
107
+ # @return [Object] Returns the model itself
108
+ def build_from_hash(attributes)
109
+ return nil unless attributes.is_a?(Hash)
110
+ self.class.openapi_types.each_pair do |key, type|
111
+ if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
112
+ self.send("#{key}=", nil)
113
+ elsif type =~ /\AArray<(.*)>/i
114
+ # check to ensure the input is an array given that the attribute
115
+ # is documented as an array but the input is not
116
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
117
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
118
+ end
119
+ elsif !attributes[self.class.attribute_map[key]].nil?
120
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
121
+ end
122
+ end
123
+
124
+ self
125
+ end
126
+
127
+ # Deserializes the data based on type
128
+ # @param string type Data type
129
+ # @param string value Value to be deserialized
130
+ # @return [Object] Deserialized data
131
+ def _deserialize(type, value)
132
+ case type.to_sym
133
+ when :Time
134
+ Time.parse(value)
135
+ when :Date
136
+ Date.parse(value)
137
+ when :String
138
+ value.to_s
139
+ when :Integer
140
+ value.to_i
141
+ when :Float
142
+ value.to_f
143
+ when :Boolean
144
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
145
+ true
146
+ else
147
+ false
148
+ end
149
+ when :Object
150
+ # generic object (usually a Hash), return directly
151
+ value
152
+ when /\AArray<(?<inner_type>.+)>\z/
153
+ inner_type = Regexp.last_match[:inner_type]
154
+ value.map { |v| _deserialize(inner_type, v) }
155
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
156
+ k_type = Regexp.last_match[:k_type]
157
+ v_type = Regexp.last_match[:v_type]
158
+ {}.tap do |hash|
159
+ value.each do |k, v|
160
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
161
+ end
162
+ end
163
+ else # model
164
+ # models (e.g. Pet) or oneOf
165
+ klass = MuxRuby.const_get(type)
166
+ klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
167
+ end
168
+ end
169
+
170
+ # Returns the string representation of the object
171
+ # @return [String] String presentation of the object
172
+ def to_s
173
+ to_hash.to_s
174
+ end
175
+
176
+ # to_body is an alias to to_hash (backward compatibility)
177
+ # @return [Hash] Returns the object in the form of hash
178
+ def to_body
179
+ to_hash
180
+ end
181
+
182
+ # Returns the object in the form of hash
183
+ # @return [Hash] Returns the object in the form of hash
184
+ def to_hash
185
+ hash = {}
186
+ self.class.attribute_map.each_pair do |attr, param|
187
+ value = self.send(attr)
188
+ if value.nil?
189
+ is_nullable = self.class.openapi_nullable.include?(attr)
190
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
191
+ end
192
+
193
+ hash[param] = _to_hash(value)
194
+ end
195
+ hash
196
+ end
197
+
198
+ # Outputs non-array value in the form of hash
199
+ # For object, use to_hash. Otherwise, just return the value
200
+ # @param [Object] value Any valid value
201
+ # @return [Hash] Returns the value in the form of hash
202
+ def _to_hash(value)
203
+ if value.is_a?(Array)
204
+ value.compact.map { |v| _to_hash(v) }
205
+ elsif value.is_a?(Hash)
206
+ {}.tap do |hash|
207
+ value.each { |k, v| hash[k] = _to_hash(v) }
208
+ end
209
+ elsif value.respond_to? :to_hash
210
+ value.to_hash
211
+ else
212
+ value
213
+ end
214
+ end
215
+
216
+ end
217
+
218
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.1
11
11
  =end
12
12
 
13
13
  module MuxRuby
14
- VERSION = '3.4.0'
14
+ VERSION = '3.5.2'
15
15
  end
data/lib/mux_ruby.rb CHANGED
@@ -27,12 +27,19 @@ require 'mux_ruby/models/asset_response'
27
27
  require 'mux_ruby/models/asset_static_renditions'
28
28
  require 'mux_ruby/models/asset_static_renditions_files'
29
29
  require 'mux_ruby/models/breakdown_value'
30
+ require 'mux_ruby/models/broadcast'
31
+ require 'mux_ruby/models/broadcast_layout'
32
+ require 'mux_ruby/models/broadcast_resolution'
33
+ require 'mux_ruby/models/broadcast_response'
34
+ require 'mux_ruby/models/broadcast_status'
30
35
  require 'mux_ruby/models/create_asset_request'
36
+ require 'mux_ruby/models/create_broadcast_request'
31
37
  require 'mux_ruby/models/create_live_stream_request'
32
38
  require 'mux_ruby/models/create_playback_id_request'
33
39
  require 'mux_ruby/models/create_playback_id_response'
34
40
  require 'mux_ruby/models/create_playback_restriction_request'
35
41
  require 'mux_ruby/models/create_simulcast_target_request'
42
+ require 'mux_ruby/models/create_space_request'
36
43
  require 'mux_ruby/models/create_track_request'
37
44
  require 'mux_ruby/models/create_track_response'
38
45
  require 'mux_ruby/models/create_upload_request'
@@ -87,6 +94,7 @@ require 'mux_ruby/models/list_real_time_dimensions_response_data'
87
94
  require 'mux_ruby/models/list_real_time_metrics_response'
88
95
  require 'mux_ruby/models/list_related_incidents_response'
89
96
  require 'mux_ruby/models/list_signing_keys_response'
97
+ require 'mux_ruby/models/list_spaces_response'
90
98
  require 'mux_ruby/models/list_uploads_response'
91
99
  require 'mux_ruby/models/list_video_view_exports_response'
92
100
  require 'mux_ruby/models/list_video_views_response'
@@ -113,6 +121,12 @@ require 'mux_ruby/models/signing_key'
113
121
  require 'mux_ruby/models/signing_key_response'
114
122
  require 'mux_ruby/models/simulcast_target'
115
123
  require 'mux_ruby/models/simulcast_target_response'
124
+ require 'mux_ruby/models/space'
125
+ require 'mux_ruby/models/space_response'
126
+ require 'mux_ruby/models/space_status'
127
+ require 'mux_ruby/models/space_type'
128
+ require 'mux_ruby/models/start_space_broadcast_response'
129
+ require 'mux_ruby/models/stop_space_broadcast_response'
116
130
  require 'mux_ruby/models/track'
117
131
  require 'mux_ruby/models/update_asset_mp4_support_request'
118
132
  require 'mux_ruby/models/update_asset_master_access_request'
@@ -141,6 +155,7 @@ require 'mux_ruby/api/metrics_api'
141
155
  require 'mux_ruby/api/playback_id_api'
142
156
  require 'mux_ruby/api/playback_restrictions_api'
143
157
  require 'mux_ruby/api/real_time_api'
158
+ require 'mux_ruby/api/spaces_api'
144
159
  require 'mux_ruby/api/url_signing_keys_api'
145
160
  require 'mux_ruby/api/video_views_api'
146
161
 
@@ -0,0 +1,149 @@
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
+
16
+ # Unit tests for MuxRuby::SpacesApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'SpacesApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = MuxRuby::SpacesApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of SpacesApi' do
30
+ it 'should create an instance of SpacesApi' do
31
+ expect(@api_instance).to be_instance_of(MuxRuby::SpacesApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create_space
36
+ # Create a space
37
+ # Create a new space. Spaces are used to build [real-time video applications.](https://mux.com/real-time-video)
38
+ # @param create_space_request
39
+ # @param [Hash] opts the optional parameters
40
+ # @return [SpaceResponse]
41
+ describe 'create_space test' do
42
+ it 'should work' do
43
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
44
+ end
45
+ end
46
+
47
+ # unit tests for create_space_broadcast
48
+ # Create a space broadcast
49
+ # Creates a new broadcast. Broadcasts are used to create composited versions of your space, which can be broadcast to live streams. **Note:** By default only a single broadcast destination can be specified. Contact Mux support if you need more.
50
+ # @param space_id The space ID.
51
+ # @param create_broadcast_request
52
+ # @param [Hash] opts the optional parameters
53
+ # @return [BroadcastResponse]
54
+ describe 'create_space_broadcast test' 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
+ # unit tests for delete_space
61
+ # Delete a space
62
+ # Deletes a space. Spaces can only be deleted when &#x60;idle&#x60;.
63
+ # @param space_id The space ID.
64
+ # @param [Hash] opts the optional parameters
65
+ # @return [nil]
66
+ describe 'delete_space test' 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
+ # unit tests for delete_space_broadcast
73
+ # Delete a space broadcast
74
+ # Deletes a single broadcast of a specific space. Broadcasts can only be deleted when &#x60;idle&#x60;.
75
+ # @param space_id The space ID.
76
+ # @param broadcast_id The broadcast ID.
77
+ # @param [Hash] opts the optional parameters
78
+ # @return [nil]
79
+ describe 'delete_space_broadcast test' do
80
+ it 'should work' do
81
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
82
+ end
83
+ end
84
+
85
+ # unit tests for get_space
86
+ # Retrieve a space
87
+ # Retrieves the details of a space that has previously been created. Supply the unique space ID that was returned from your create space request, and Mux will return the information about the corresponding space. The same information is returned when creating a space.
88
+ # @param space_id The space ID.
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [SpaceResponse]
91
+ describe 'get_space test' do
92
+ it 'should work' do
93
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
94
+ end
95
+ end
96
+
97
+ # unit tests for get_space_broadcast
98
+ # Retrieve space broadcast
99
+ # Retrieves the details of a broadcast of a specific space.
100
+ # @param space_id The space ID.
101
+ # @param broadcast_id The broadcast ID.
102
+ # @param [Hash] opts the optional parameters
103
+ # @return [BroadcastResponse]
104
+ describe 'get_space_broadcast test' do
105
+ it 'should work' do
106
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
107
+ end
108
+ end
109
+
110
+ # unit tests for list_spaces
111
+ # List spaces
112
+ # List all spaces in the current enviroment.
113
+ # @param [Hash] opts the optional parameters
114
+ # @option opts [Integer] :limit Number of items to include in the response
115
+ # @option opts [Integer] :page Offset by this many pages, of the size of &#x60;limit&#x60;
116
+ # @return [ListSpacesResponse]
117
+ describe 'list_spaces test' do
118
+ it 'should work' do
119
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
120
+ end
121
+ end
122
+
123
+ # unit tests for start_space_broadcast
124
+ # Start a space broadcast
125
+ # Starts broadcasting a space to the associated destination.
126
+ # @param space_id The space ID.
127
+ # @param broadcast_id The broadcast ID.
128
+ # @param [Hash] opts the optional parameters
129
+ # @return [StartSpaceBroadcastResponse]
130
+ describe 'start_space_broadcast test' do
131
+ it 'should work' do
132
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
133
+ end
134
+ end
135
+
136
+ # unit tests for stop_space_broadcast
137
+ # Stop a space broadcast
138
+ # Stops broadcasting a space, causing the destination live stream to become idle. This API also automatically calls &#x60;complete&#x60; on the destination live stream. Broadcasts are also automatically stopped when a space becomes idle.
139
+ # @param space_id The space ID.
140
+ # @param broadcast_id The broadcast ID.
141
+ # @param [Hash] opts the optional parameters
142
+ # @return [StopSpaceBroadcastResponse]
143
+ describe 'stop_space_broadcast test' do
144
+ it 'should work' do
145
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
146
+ end
147
+ end
148
+
149
+ end
@@ -0,0 +1,28 @@
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::BroadcastLayout
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MuxRuby::BroadcastLayout do
21
+ let(:instance) { MuxRuby::BroadcastLayout.new }
22
+
23
+ describe 'test an instance of BroadcastLayout' do
24
+ it 'should create an instance of BroadcastLayout' do
25
+ expect(instance).to be_instance_of(MuxRuby::BroadcastLayout)
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,28 @@
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::BroadcastResolution
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MuxRuby::BroadcastResolution do
21
+ let(:instance) { MuxRuby::BroadcastResolution.new }
22
+
23
+ describe 'test an instance of BroadcastResolution' do
24
+ it 'should create an instance of BroadcastResolution' do
25
+ expect(instance).to be_instance_of(MuxRuby::BroadcastResolution)
26
+ end
27
+ end
28
+ 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::BroadcastResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MuxRuby::BroadcastResponse do
21
+ let(:instance) { MuxRuby::BroadcastResponse.new }
22
+
23
+ describe 'test an instance of BroadcastResponse' do
24
+ it 'should create an instance of BroadcastResponse' do
25
+ expect(instance).to be_instance_of(MuxRuby::BroadcastResponse)
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 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::Broadcast
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MuxRuby::Broadcast do
21
+ let(:instance) { MuxRuby::Broadcast.new }
22
+
23
+ describe 'test an instance of Broadcast' do
24
+ it 'should create an instance of Broadcast' do
25
+ expect(instance).to be_instance_of(MuxRuby::Broadcast)
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 "live_stream_id"' 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 "status"' 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 "layout"' 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 "background"' 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 "resolution"' 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
@@ -0,0 +1,28 @@
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::BroadcastStatus
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MuxRuby::BroadcastStatus do
21
+ let(:instance) { MuxRuby::BroadcastStatus.new }
22
+
23
+ describe 'test an instance of BroadcastStatus' do
24
+ it 'should create an instance of BroadcastStatus' do
25
+ expect(instance).to be_instance_of(MuxRuby::BroadcastStatus)
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,58 @@
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::CreateBroadcastRequest
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MuxRuby::CreateBroadcastRequest do
21
+ let(:instance) { MuxRuby::CreateBroadcastRequest.new }
22
+
23
+ describe 'test an instance of CreateBroadcastRequest' do
24
+ it 'should create an instance of CreateBroadcastRequest' do
25
+ expect(instance).to be_instance_of(MuxRuby::CreateBroadcastRequest)
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 "live_stream_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 "layout"' 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 "background"' 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 "resolution"' 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
+ end