mux_ruby 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/docs/GetLiveStreamPlaybackIDResponse.md +18 -0
- data/docs/LiveStreamsApi.md +71 -0
- data/gen/generator-config.json +1 -1
- data/lib/mux_ruby/api/live_streams_api.rb +67 -0
- data/lib/mux_ruby/models/get_live_stream_playback_id_response.rb +218 -0
- data/lib/mux_ruby/version.rb +1 -1
- data/lib/mux_ruby.rb +1 -0
- data/spec/models/get_live_stream_playback_id_response_spec.rb +34 -0
- metadata +100 -96
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3929ab7260fa4902b6d6945ab9db42e563acbefda1474d9fd84314385829abec
|
4
|
+
data.tar.gz: 80f4ce3b25a48b587dc7a4b00370cb0605cce64585247f4f956ccc682c774926
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 006b7d0ca2d770c553e57deab63cd81b40d335fa3fd9d90c68f8cfd692880661be006c5bc2c76022c6d71975bf6a19749c16334073c8651df482547e5732ef5c
|
7
|
+
data.tar.gz: bcfbd4514af2a43ad0f5cde18e29a4b0a4b48e4d3ff62072386806b5080ad86857b039a7e3dc3ea755e830a7013fa1885567cadce67ad5f3f0c94973edf426eb
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -17,7 +17,7 @@ Not familiar with Mux? Check out https://mux.com/ for more information.
|
|
17
17
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
18
18
|
|
19
19
|
- API version: v1
|
20
|
-
- Package version: 2.
|
20
|
+
- Package version: 2.2.0
|
21
21
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
22
22
|
For more information, please visit [https://docs.mux.com](https://docs.mux.com)
|
23
23
|
|
@@ -34,16 +34,16 @@ gem build mux_ruby.gemspec
|
|
34
34
|
Then either install the gem locally:
|
35
35
|
|
36
36
|
```shell
|
37
|
-
gem install ./mux_ruby-2.
|
37
|
+
gem install ./mux_ruby-2.2.0.gem
|
38
38
|
```
|
39
39
|
|
40
|
-
(for development, run `gem install --dev ./mux_ruby-2.
|
40
|
+
(for development, run `gem install --dev ./mux_ruby-2.2.0.gem` to install the development dependencies)
|
41
41
|
|
42
42
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
43
43
|
|
44
44
|
Finally add this to the Gemfile:
|
45
45
|
|
46
|
-
gem 'mux_ruby', '~> 2.
|
46
|
+
gem 'mux_ruby', '~> 2.2.0'
|
47
47
|
|
48
48
|
### Install from Git
|
49
49
|
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# MuxRuby::GetLiveStreamPlaybackIDResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | [**PlaybackID**](.md) | | [optional] |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'mux_ruby'
|
13
|
+
|
14
|
+
instance = MuxRuby::GetLiveStreamPlaybackIDResponse.new(
|
15
|
+
data: null
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/LiveStreamsApi.md
CHANGED
@@ -13,6 +13,7 @@ All URIs are relative to *https://api.mux.com*
|
|
13
13
|
| [**disable_live_stream**](LiveStreamsApi.md#disable_live_stream) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/disable | Disable a live stream |
|
14
14
|
| [**enable_live_stream**](LiveStreamsApi.md#enable_live_stream) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/enable | Enable a live stream |
|
15
15
|
| [**get_live_stream**](LiveStreamsApi.md#get_live_stream) | **GET** /video/v1/live-streams/{LIVE_STREAM_ID} | Retrieve a live stream |
|
16
|
+
| [**get_live_stream_playback_id**](LiveStreamsApi.md#get_live_stream_playback_id) | **GET** /video/v1/live-streams/{LIVE_STREAM_ID}/playback-ids/{PLAYBACK_ID} | Retrieve a live stream playback ID |
|
16
17
|
| [**get_live_stream_simulcast_target**](LiveStreamsApi.md#get_live_stream_simulcast_target) | **GET** /video/v1/live-streams/{LIVE_STREAM_ID}/simulcast-targets/{SIMULCAST_TARGET_ID} | Retrieve a Live Stream Simulcast Target |
|
17
18
|
| [**list_live_streams**](LiveStreamsApi.md#list_live_streams) | **GET** /video/v1/live-streams | List live streams |
|
18
19
|
| [**reset_stream_key**](LiveStreamsApi.md#reset_stream_key) | **POST** /video/v1/live-streams/{LIVE_STREAM_ID}/reset-stream-key | Reset a live stream’s stream key |
|
@@ -646,6 +647,76 @@ end
|
|
646
647
|
- **Accept**: application/json
|
647
648
|
|
648
649
|
|
650
|
+
## get_live_stream_playback_id
|
651
|
+
|
652
|
+
> <GetLiveStreamPlaybackIDResponse> get_live_stream_playback_id(live_stream_id, playback_id)
|
653
|
+
|
654
|
+
Retrieve a live stream playback ID
|
655
|
+
|
656
|
+
### Examples
|
657
|
+
|
658
|
+
```ruby
|
659
|
+
require 'time'
|
660
|
+
require 'mux_ruby'
|
661
|
+
# setup authorization
|
662
|
+
MuxRuby.configure do |config|
|
663
|
+
# Configure HTTP basic authorization: accessToken
|
664
|
+
config.username = 'YOUR USERNAME'
|
665
|
+
config.password = 'YOUR PASSWORD'
|
666
|
+
end
|
667
|
+
|
668
|
+
api_instance = MuxRuby::LiveStreamsApi.new
|
669
|
+
live_stream_id = 'live_stream_id_example' # String | The live stream ID
|
670
|
+
playback_id = 'playback_id_example' # String | The live stream's playback ID.
|
671
|
+
|
672
|
+
begin
|
673
|
+
# Retrieve a live stream playback ID
|
674
|
+
result = api_instance.get_live_stream_playback_id(live_stream_id, playback_id)
|
675
|
+
p result
|
676
|
+
rescue MuxRuby::ApiError => e
|
677
|
+
puts "Error when calling LiveStreamsApi->get_live_stream_playback_id: #{e}"
|
678
|
+
end
|
679
|
+
```
|
680
|
+
|
681
|
+
#### Using the get_live_stream_playback_id_with_http_info variant
|
682
|
+
|
683
|
+
This returns an Array which contains the response data, status code and headers.
|
684
|
+
|
685
|
+
> <Array(<GetLiveStreamPlaybackIDResponse>, Integer, Hash)> get_live_stream_playback_id_with_http_info(live_stream_id, playback_id)
|
686
|
+
|
687
|
+
```ruby
|
688
|
+
begin
|
689
|
+
# Retrieve a live stream playback ID
|
690
|
+
data, status_code, headers = api_instance.get_live_stream_playback_id_with_http_info(live_stream_id, playback_id)
|
691
|
+
p status_code # => 2xx
|
692
|
+
p headers # => { ... }
|
693
|
+
p data # => <GetLiveStreamPlaybackIDResponse>
|
694
|
+
rescue MuxRuby::ApiError => e
|
695
|
+
puts "Error when calling LiveStreamsApi->get_live_stream_playback_id_with_http_info: #{e}"
|
696
|
+
end
|
697
|
+
```
|
698
|
+
|
699
|
+
### Parameters
|
700
|
+
|
701
|
+
| Name | Type | Description | Notes |
|
702
|
+
| ---- | ---- | ----------- | ----- |
|
703
|
+
| **live_stream_id** | **String** | The live stream ID | |
|
704
|
+
| **playback_id** | **String** | The live stream's playback ID. | |
|
705
|
+
|
706
|
+
### Return type
|
707
|
+
|
708
|
+
[**GetLiveStreamPlaybackIDResponse**](GetLiveStreamPlaybackIDResponse.md)
|
709
|
+
|
710
|
+
### Authorization
|
711
|
+
|
712
|
+
[accessToken](../README.md#accessToken)
|
713
|
+
|
714
|
+
### HTTP request headers
|
715
|
+
|
716
|
+
- **Content-Type**: Not defined
|
717
|
+
- **Accept**: application/json
|
718
|
+
|
719
|
+
|
649
720
|
## get_live_stream_simulcast_target
|
650
721
|
|
651
722
|
> <SimulcastTargetResponse> get_live_stream_simulcast_target(live_stream_id, simulcast_target_id)
|
data/gen/generator-config.json
CHANGED
@@ -602,6 +602,73 @@ module MuxRuby
|
|
602
602
|
return data, status_code, headers
|
603
603
|
end
|
604
604
|
|
605
|
+
# Retrieve a live stream playback ID
|
606
|
+
# @param live_stream_id [String] The live stream ID
|
607
|
+
# @param playback_id [String] The live stream's playback ID.
|
608
|
+
# @param [Hash] opts the optional parameters
|
609
|
+
# @return [GetLiveStreamPlaybackIDResponse]
|
610
|
+
def get_live_stream_playback_id(live_stream_id, playback_id, opts = {})
|
611
|
+
data, _status_code, _headers = get_live_stream_playback_id_with_http_info(live_stream_id, playback_id, opts)
|
612
|
+
data
|
613
|
+
end
|
614
|
+
|
615
|
+
# Retrieve a live stream playback ID
|
616
|
+
# @param live_stream_id [String] The live stream ID
|
617
|
+
# @param playback_id [String] The live stream's playback ID.
|
618
|
+
# @param [Hash] opts the optional parameters
|
619
|
+
# @return [Array<(GetLiveStreamPlaybackIDResponse, Integer, Hash)>] GetLiveStreamPlaybackIDResponse data, response status code and response headers
|
620
|
+
def get_live_stream_playback_id_with_http_info(live_stream_id, playback_id, opts = {})
|
621
|
+
if @api_client.config.debugging
|
622
|
+
@api_client.config.logger.debug 'Calling API: LiveStreamsApi.get_live_stream_playback_id ...'
|
623
|
+
end
|
624
|
+
# verify the required parameter 'live_stream_id' is set
|
625
|
+
if @api_client.config.client_side_validation && live_stream_id.nil?
|
626
|
+
fail ArgumentError, "Missing the required parameter 'live_stream_id' when calling LiveStreamsApi.get_live_stream_playback_id"
|
627
|
+
end
|
628
|
+
# verify the required parameter 'playback_id' is set
|
629
|
+
if @api_client.config.client_side_validation && playback_id.nil?
|
630
|
+
fail ArgumentError, "Missing the required parameter 'playback_id' when calling LiveStreamsApi.get_live_stream_playback_id"
|
631
|
+
end
|
632
|
+
# resource path
|
633
|
+
local_var_path = '/video/v1/live-streams/{LIVE_STREAM_ID}/playback-ids/{PLAYBACK_ID}'.sub('{' + 'LIVE_STREAM_ID' + '}', CGI.escape(live_stream_id.to_s)).sub('{' + 'PLAYBACK_ID' + '}', CGI.escape(playback_id.to_s))
|
634
|
+
|
635
|
+
# query parameters
|
636
|
+
query_params = opts[:query_params] || {}
|
637
|
+
|
638
|
+
# header parameters
|
639
|
+
header_params = opts[:header_params] || {}
|
640
|
+
# HTTP header 'Accept' (if needed)
|
641
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
642
|
+
|
643
|
+
# form parameters
|
644
|
+
form_params = opts[:form_params] || {}
|
645
|
+
|
646
|
+
# http body (model)
|
647
|
+
post_body = opts[:debug_body]
|
648
|
+
|
649
|
+
# return_type
|
650
|
+
return_type = opts[:debug_return_type] || 'GetLiveStreamPlaybackIDResponse'
|
651
|
+
|
652
|
+
# auth_names
|
653
|
+
auth_names = opts[:debug_auth_names] || ['accessToken']
|
654
|
+
|
655
|
+
new_options = opts.merge(
|
656
|
+
:operation => :"LiveStreamsApi.get_live_stream_playback_id",
|
657
|
+
:header_params => header_params,
|
658
|
+
:query_params => query_params,
|
659
|
+
:form_params => form_params,
|
660
|
+
:body => post_body,
|
661
|
+
:auth_names => auth_names,
|
662
|
+
:return_type => return_type
|
663
|
+
)
|
664
|
+
|
665
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
666
|
+
if @api_client.config.debugging
|
667
|
+
@api_client.config.logger.debug "API called: LiveStreamsApi#get_live_stream_playback_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
668
|
+
end
|
669
|
+
return data, status_code, headers
|
670
|
+
end
|
671
|
+
|
605
672
|
# Retrieve a Live Stream Simulcast Target
|
606
673
|
# 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.
|
607
674
|
# @param live_stream_id [String] The live stream ID
|
@@ -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 GetLiveStreamPlaybackIDResponse
|
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' => :'PlaybackID'
|
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::GetLiveStreamPlaybackIDResponse` 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::GetLiveStreamPlaybackIDResponse`. 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
|
data/lib/mux_ruby/version.rb
CHANGED
data/lib/mux_ruby.rb
CHANGED
@@ -48,6 +48,7 @@ require 'mux_ruby/models/get_asset_or_live_stream_id_response'
|
|
48
48
|
require 'mux_ruby/models/get_asset_or_live_stream_id_response_data'
|
49
49
|
require 'mux_ruby/models/get_asset_or_live_stream_id_response_data_object'
|
50
50
|
require 'mux_ruby/models/get_asset_playback_id_response'
|
51
|
+
require 'mux_ruby/models/get_live_stream_playback_id_response'
|
51
52
|
require 'mux_ruby/models/get_metric_timeseries_data_response'
|
52
53
|
require 'mux_ruby/models/get_overall_values_response'
|
53
54
|
require 'mux_ruby/models/get_real_time_breakdown_response'
|
@@ -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
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mux_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mux
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -100,6 +100,7 @@ files:
|
|
100
100
|
- docs/GetAssetOrLiveStreamIdResponseData.md
|
101
101
|
- docs/GetAssetOrLiveStreamIdResponseDataObject.md
|
102
102
|
- docs/GetAssetPlaybackIDResponse.md
|
103
|
+
- docs/GetLiveStreamPlaybackIDResponse.md
|
103
104
|
- docs/GetMetricTimeseriesDataResponse.md
|
104
105
|
- docs/GetOverallValuesResponse.md
|
105
106
|
- docs/GetRealTimeBreakdownResponse.md
|
@@ -277,6 +278,7 @@ files:
|
|
277
278
|
- lib/mux_ruby/models/get_asset_or_live_stream_id_response_data.rb
|
278
279
|
- lib/mux_ruby/models/get_asset_or_live_stream_id_response_data_object.rb
|
279
280
|
- lib/mux_ruby/models/get_asset_playback_id_response.rb
|
281
|
+
- lib/mux_ruby/models/get_live_stream_playback_id_response.rb
|
280
282
|
- lib/mux_ruby/models/get_metric_timeseries_data_response.rb
|
281
283
|
- lib/mux_ruby/models/get_overall_values_response.rb
|
282
284
|
- lib/mux_ruby/models/get_real_time_breakdown_response.rb
|
@@ -392,6 +394,7 @@ files:
|
|
392
394
|
- spec/models/get_asset_or_live_stream_id_response_data_spec.rb
|
393
395
|
- spec/models/get_asset_or_live_stream_id_response_spec.rb
|
394
396
|
- spec/models/get_asset_playback_id_response_spec.rb
|
397
|
+
- spec/models/get_live_stream_playback_id_response_spec.rb
|
395
398
|
- spec/models/get_metric_timeseries_data_response_spec.rb
|
396
399
|
- spec/models/get_overall_values_response_spec.rb
|
397
400
|
- spec/models/get_real_time_breakdown_response_spec.rb
|
@@ -485,117 +488,118 @@ signing_key:
|
|
485
488
|
specification_version: 4
|
486
489
|
summary: Mux API Ruby Gem
|
487
490
|
test_files:
|
488
|
-
- spec/api/exports_api_spec.rb
|
489
|
-
- spec/api/errors_api_spec.rb
|
490
|
-
- spec/api/metrics_api_spec.rb
|
491
|
-
- spec/api/video_views_api_spec.rb
|
492
|
-
- spec/api/playback_id_api_spec.rb
|
493
|
-
- spec/api/real_time_api_spec.rb
|
494
|
-
- spec/api/filters_api_spec.rb
|
495
|
-
- spec/api/direct_uploads_api_spec.rb
|
496
491
|
- spec/api/live_streams_api_spec.rb
|
497
|
-
- spec/api/
|
498
|
-
- spec/api/
|
499
|
-
- spec/api/
|
492
|
+
- spec/api/direct_uploads_api_spec.rb
|
493
|
+
- spec/api/filters_api_spec.rb
|
494
|
+
- spec/api/real_time_api_spec.rb
|
500
495
|
- spec/api/assets_api_spec.rb
|
496
|
+
- spec/api/delivery_usage_api_spec.rb
|
497
|
+
- spec/api/incidents_api_spec.rb
|
498
|
+
- spec/api/playback_id_api_spec.rb
|
499
|
+
- spec/api/errors_api_spec.rb
|
501
500
|
- spec/api/dimensions_api_spec.rb
|
501
|
+
- spec/api/url_signing_keys_api_spec.rb
|
502
|
+
- spec/api/metrics_api_spec.rb
|
503
|
+
- spec/api/exports_api_spec.rb
|
504
|
+
- spec/api/video_views_api_spec.rb
|
502
505
|
- spec/api_client_spec.rb
|
503
506
|
- spec/configuration_spec.rb
|
504
|
-
- spec/models/
|
505
|
-
- spec/models/
|
506
|
-
- spec/models/
|
507
|
-
- spec/models/asset_spec.rb
|
508
|
-
- spec/models/asset_recording_times_spec.rb
|
509
|
-
- spec/models/real_time_timeseries_datapoint_spec.rb
|
510
|
-
- spec/models/get_asset_or_live_stream_id_response_spec.rb
|
511
|
-
- spec/models/live_stream_spec.rb
|
512
|
-
- spec/models/list_filters_response_data_spec.rb
|
513
|
-
- spec/models/create_simulcast_target_request_spec.rb
|
514
|
-
- spec/models/incident_response_spec.rb
|
515
|
-
- spec/models/get_overall_values_response_spec.rb
|
516
|
-
- spec/models/create_asset_request_spec.rb
|
517
|
-
- spec/models/list_live_streams_response_spec.rb
|
518
|
-
- spec/models/list_real_time_metrics_response_spec.rb
|
519
|
-
- spec/models/list_dimensions_response_spec.rb
|
520
|
-
- spec/models/list_breakdown_values_response_spec.rb
|
507
|
+
- spec/models/video_view_response_spec.rb
|
508
|
+
- spec/models/create_playback_id_response_spec.rb
|
509
|
+
- spec/models/list_filter_values_response_spec.rb
|
521
510
|
- spec/models/incident_notification_rule_spec.rb
|
522
|
-
- spec/models/create_track_response_spec.rb
|
523
|
-
- spec/models/track_spec.rb
|
524
|
-
- spec/models/real_time_histogram_timeseries_bucket_values_spec.rb
|
525
|
-
- spec/models/list_delivery_usage_response_spec.rb
|
526
|
-
- spec/models/create_upload_request_spec.rb
|
527
|
-
- spec/models/delivery_report_spec.rb
|
528
|
-
- spec/models/upload_spec.rb
|
529
|
-
- spec/models/list_signing_keys_response_spec.rb
|
530
|
-
- spec/models/list_assets_response_spec.rb
|
531
|
-
- spec/models/list_real_time_dimensions_response_data_spec.rb
|
532
|
-
- spec/models/asset_master_spec.rb
|
533
|
-
- spec/models/get_real_time_breakdown_response_spec.rb
|
534
|
-
- spec/models/real_time_breakdown_value_spec.rb
|
535
|
-
- spec/models/dimension_value_spec.rb
|
536
|
-
- spec/models/signing_key_response_spec.rb
|
537
|
-
- spec/models/list_errors_response_spec.rb
|
538
511
|
- spec/models/signal_live_stream_complete_response_spec.rb
|
539
|
-
- spec/models/
|
540
|
-
- spec/models/
|
512
|
+
- spec/models/playback_id_spec.rb
|
513
|
+
- spec/models/abridged_video_view_spec.rb
|
514
|
+
- spec/models/filter_value_spec.rb
|
515
|
+
- spec/models/input_track_spec.rb
|
516
|
+
- spec/models/asset_response_spec.rb
|
517
|
+
- spec/models/list_errors_response_spec.rb
|
518
|
+
- spec/models/list_all_metric_values_response_spec.rb
|
541
519
|
- spec/models/asset_static_renditions_spec.rb
|
542
|
-
- spec/models/
|
543
|
-
- spec/models/
|
544
|
-
- spec/models/
|
545
|
-
- spec/models/
|
546
|
-
- spec/models/
|
520
|
+
- spec/models/input_settings_overlay_settings_spec.rb
|
521
|
+
- spec/models/input_info_spec.rb
|
522
|
+
- spec/models/asset_master_spec.rb
|
523
|
+
- spec/models/list_filters_response_data_spec.rb
|
524
|
+
- spec/models/simulcast_target_spec.rb
|
525
|
+
- spec/models/create_simulcast_target_request_spec.rb
|
526
|
+
- spec/models/list_dimension_values_response_spec.rb
|
547
527
|
- spec/models/error_spec.rb
|
548
|
-
- spec/models/
|
549
|
-
- spec/models/
|
550
|
-
- spec/models/
|
528
|
+
- spec/models/simulcast_target_response_spec.rb
|
529
|
+
- spec/models/real_time_breakdown_value_spec.rb
|
530
|
+
- spec/models/list_signing_keys_response_spec.rb
|
531
|
+
- spec/models/get_asset_or_live_stream_id_response_data_spec.rb
|
532
|
+
- spec/models/list_real_time_dimensions_response_spec.rb
|
551
533
|
- spec/models/enable_live_stream_response_spec.rb
|
552
|
-
- spec/models/
|
553
|
-
- spec/models/
|
554
|
-
- spec/models/
|
555
|
-
- spec/models/
|
556
|
-
- spec/models/
|
557
|
-
- spec/models/
|
558
|
-
- spec/models/
|
534
|
+
- spec/models/real_time_histogram_timeseries_bucket_values_spec.rb
|
535
|
+
- spec/models/create_track_request_spec.rb
|
536
|
+
- spec/models/create_playback_id_request_spec.rb
|
537
|
+
- spec/models/asset_errors_spec.rb
|
538
|
+
- spec/models/get_metric_timeseries_data_response_spec.rb
|
539
|
+
- spec/models/overall_values_spec.rb
|
540
|
+
- spec/models/list_real_time_dimensions_response_data_spec.rb
|
541
|
+
- spec/models/real_time_histogram_timeseries_datapoint_spec.rb
|
542
|
+
- spec/models/list_incidents_response_spec.rb
|
543
|
+
- spec/models/delivery_report_spec.rb
|
544
|
+
- spec/models/get_asset_input_info_response_spec.rb
|
545
|
+
- spec/models/incident_breakdown_spec.rb
|
546
|
+
- spec/models/create_asset_request_spec.rb
|
559
547
|
- spec/models/list_related_incidents_response_spec.rb
|
560
|
-
- spec/models/list_dimension_values_response_spec.rb
|
561
|
-
- spec/models/filter_value_spec.rb
|
562
|
-
- spec/models/incident_spec.rb
|
563
|
-
- spec/models/incident_notification_spec.rb
|
564
548
|
- spec/models/breakdown_value_spec.rb
|
565
|
-
- spec/models/
|
566
|
-
- spec/models/
|
549
|
+
- spec/models/video_view_event_spec.rb
|
550
|
+
- spec/models/create_track_response_spec.rb
|
551
|
+
- spec/models/metric_spec.rb
|
567
552
|
- spec/models/list_video_view_exports_response_spec.rb
|
568
|
-
- spec/models/
|
569
|
-
- spec/models/
|
570
|
-
- spec/models/
|
553
|
+
- spec/models/upload_response_spec.rb
|
554
|
+
- spec/models/asset_recording_times_spec.rb
|
555
|
+
- spec/models/disable_live_stream_response_spec.rb
|
571
556
|
- spec/models/list_video_views_response_spec.rb
|
572
557
|
- spec/models/input_settings_spec.rb
|
573
|
-
- spec/models/
|
558
|
+
- spec/models/playback_policy_spec.rb
|
559
|
+
- spec/models/dimension_value_spec.rb
|
560
|
+
- spec/models/get_asset_or_live_stream_id_response_data_object_spec.rb
|
561
|
+
- spec/models/live_stream_spec.rb
|
562
|
+
- spec/models/list_exports_response_spec.rb
|
563
|
+
- spec/models/real_time_histogram_timeseries_bucket_spec.rb
|
564
|
+
- spec/models/get_real_time_breakdown_response_spec.rb
|
565
|
+
- spec/models/get_asset_playback_id_response_spec.rb
|
566
|
+
- spec/models/get_live_stream_playback_id_response_spec.rb
|
567
|
+
- spec/models/incident_notification_spec.rb
|
574
568
|
- spec/models/update_asset_mp4_support_request_spec.rb
|
575
|
-
- spec/models/
|
576
|
-
- spec/models/
|
577
|
-
- spec/models/
|
578
|
-
- spec/models/
|
569
|
+
- spec/models/export_date_spec.rb
|
570
|
+
- spec/models/insight_spec.rb
|
571
|
+
- spec/models/list_insights_response_spec.rb
|
572
|
+
- spec/models/get_real_time_histogram_timeseries_response_meta_spec.rb
|
573
|
+
- spec/models/get_overall_values_response_spec.rb
|
574
|
+
- spec/models/input_file_spec.rb
|
579
575
|
- spec/models/score_spec.rb
|
580
|
-
- spec/models/
|
581
|
-
- spec/models/
|
582
|
-
- spec/models/
|
583
|
-
- spec/models/
|
584
|
-
- spec/models/
|
585
|
-
- spec/models/
|
586
|
-
- spec/models/
|
587
|
-
- spec/models/
|
576
|
+
- spec/models/get_real_time_histogram_timeseries_response_spec.rb
|
577
|
+
- spec/models/list_delivery_usage_response_spec.rb
|
578
|
+
- spec/models/list_breakdown_values_response_spec.rb
|
579
|
+
- spec/models/get_asset_or_live_stream_id_response_spec.rb
|
580
|
+
- spec/models/track_spec.rb
|
581
|
+
- spec/models/list_real_time_metrics_response_spec.rb
|
582
|
+
- spec/models/list_live_streams_response_spec.rb
|
583
|
+
- spec/models/upload_spec.rb
|
584
|
+
- spec/models/list_uploads_response_spec.rb
|
585
|
+
- spec/models/signing_key_spec.rb
|
586
|
+
- spec/models/list_filters_response_spec.rb
|
588
587
|
- spec/models/video_view_spec.rb
|
589
|
-
- spec/models/
|
590
|
-
- spec/models/
|
591
|
-
- spec/models/input_file_spec.rb
|
592
|
-
- spec/models/get_asset_or_live_stream_id_response_data_spec.rb
|
593
|
-
- spec/models/input_track_spec.rb
|
594
|
-
- spec/models/create_playback_id_request_spec.rb
|
595
|
-
- spec/models/overall_values_spec.rb
|
588
|
+
- spec/models/real_time_timeseries_datapoint_spec.rb
|
589
|
+
- spec/models/upload_error_spec.rb
|
596
590
|
- spec/models/notification_rule_spec.rb
|
597
|
-
- spec/models/
|
598
|
-
- spec/models/
|
599
|
-
- spec/models/
|
600
|
-
- spec/models/
|
591
|
+
- spec/models/live_stream_response_spec.rb
|
592
|
+
- spec/models/export_file_spec.rb
|
593
|
+
- spec/models/create_upload_request_spec.rb
|
594
|
+
- spec/models/signing_key_response_spec.rb
|
595
|
+
- spec/models/update_asset_master_access_request_spec.rb
|
596
|
+
- spec/models/list_dimensions_response_spec.rb
|
597
|
+
- spec/models/list_assets_response_spec.rb
|
598
|
+
- spec/models/incident_response_spec.rb
|
599
|
+
- spec/models/asset_non_standard_input_reasons_spec.rb
|
600
|
+
- spec/models/asset_static_renditions_files_spec.rb
|
601
|
+
- spec/models/create_live_stream_request_spec.rb
|
602
|
+
- spec/models/get_real_time_timeseries_response_spec.rb
|
603
|
+
- spec/models/incident_spec.rb
|
604
|
+
- spec/models/asset_spec.rb
|
601
605
|
- spec/spec_helper.rb
|