mux_ruby 1.3.1 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/Gemfile +2 -1
- data/Gemfile.lock +37 -35
- data/README.md +6 -1
- data/docs/Asset.md +3 -1
- data/docs/AssetNonStandardInputReasons.md +16 -0
- data/docs/AssetRecordingTimes.md +9 -0
- data/docs/AssetsApi.md +54 -0
- data/docs/CreateAssetRequest.md +1 -1
- data/docs/CreateLiveStreamRequest.md +2 -0
- data/docs/CreateUploadRequest.md +1 -0
- data/docs/DisableLiveStreamResponse.md +8 -0
- data/docs/EnableLiveStreamResponse.md +8 -0
- data/docs/LiveStream.md +2 -1
- data/docs/LiveStreamsApi.md +104 -0
- data/docs/UpdateAssetMasterAccessRequest.md +8 -0
- data/docs/Upload.md +1 -0
- data/docs/VideoView.md +16 -14
- data/examples/data/exercise-errors.rb +1 -1
- data/examples/video/exercise-assets.rb +10 -0
- data/examples/video/exercise-live-streams.rb +22 -0
- data/lib/mux_ruby.rb +5 -0
- data/lib/mux_ruby/api/assets_api.rb +61 -0
- data/lib/mux_ruby/api/live_streams_api.rb +106 -0
- data/lib/mux_ruby/api_client.rb +1 -1
- data/lib/mux_ruby/configuration.rb +1 -4
- data/lib/mux_ruby/models/asset.rb +34 -13
- data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +335 -0
- data/lib/mux_ruby/models/asset_recording_times.rb +195 -0
- data/lib/mux_ruby/models/asset_static_renditions_files.rb +4 -4
- data/lib/mux_ruby/models/create_asset_request.rb +13 -13
- data/lib/mux_ruby/models/create_live_stream_request.rb +24 -4
- data/lib/mux_ruby/models/create_upload_request.rb +13 -4
- data/lib/mux_ruby/models/disable_live_stream_response.rb +184 -0
- data/lib/mux_ruby/models/enable_live_stream_response.rb +184 -0
- data/lib/mux_ruby/models/input_settings_overlay_settings.rb +46 -0
- data/lib/mux_ruby/models/live_stream.rb +14 -5
- data/lib/mux_ruby/models/update_asset_master_access_request.rb +219 -0
- data/lib/mux_ruby/models/upload.rb +13 -4
- data/lib/mux_ruby/models/video_view.rb +36 -18
- data/lib/mux_ruby/version.rb +1 -1
- data/spec/api/assets_api_spec.rb +13 -0
- data/spec/api/live_streams_api_spec.rb +24 -0
- data/spec/models/asset_non_standard_input_reasons_spec.rb +98 -0
- data/spec/models/asset_recording_times_spec.rb +40 -0
- data/spec/models/asset_spec.rb +18 -6
- data/spec/models/asset_static_renditions_files_spec.rb +2 -2
- data/spec/models/create_asset_request_spec.rb +6 -6
- data/spec/models/create_live_stream_request_spec.rb +12 -0
- data/spec/models/create_upload_request_spec.rb +6 -0
- data/spec/models/disable_live_stream_response_spec.rb +34 -0
- data/spec/models/enable_live_stream_response_spec.rb +34 -0
- data/spec/models/input_settings_overlay_settings_spec.rb +8 -0
- data/spec/models/live_stream_spec.rb +6 -0
- data/spec/models/update_asset_master_access_request_spec.rb +38 -0
- data/spec/models/upload_spec.rb +6 -0
- data/spec/models/video_view_spec.rb +12 -0
- data/test.sh +28 -0
- metadata +80 -60
@@ -21,6 +21,28 @@ module MuxRuby
|
|
21
21
|
|
22
22
|
attr_accessor :opacity
|
23
23
|
|
24
|
+
class EnumAttributeValidator
|
25
|
+
attr_reader :datatype
|
26
|
+
attr_reader :allowable_values
|
27
|
+
|
28
|
+
def initialize(datatype, allowable_values)
|
29
|
+
@allowable_values = allowable_values.map do |value|
|
30
|
+
case datatype.to_s
|
31
|
+
when /Integer/i
|
32
|
+
value.to_i
|
33
|
+
when /Float/i
|
34
|
+
value.to_f
|
35
|
+
else
|
36
|
+
value
|
37
|
+
end
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
def valid?(value)
|
42
|
+
!value || allowable_values.include?(value)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
24
46
|
# Attribute mapping from ruby-style variable name to JSON key.
|
25
47
|
def self.attribute_map
|
26
48
|
{
|
@@ -94,9 +116,33 @@ module MuxRuby
|
|
94
116
|
# Check to see if the all the properties in the model are valid
|
95
117
|
# @return true if the model is valid
|
96
118
|
def valid?
|
119
|
+
vertical_align_validator = EnumAttributeValidator.new('String', ['top', 'middle', 'bottom'])
|
120
|
+
return false unless vertical_align_validator.valid?(@vertical_align)
|
121
|
+
horizontal_align_validator = EnumAttributeValidator.new('String', ['left', 'center', 'right'])
|
122
|
+
return false unless horizontal_align_validator.valid?(@horizontal_align)
|
97
123
|
true
|
98
124
|
end
|
99
125
|
|
126
|
+
# Custom attribute writer method checking allowed values (enum).
|
127
|
+
# @param [Object] vertical_align Object to be assigned
|
128
|
+
def vertical_align=(vertical_align)
|
129
|
+
validator = EnumAttributeValidator.new('String', ['top', 'middle', 'bottom'])
|
130
|
+
unless validator.valid?(vertical_align)
|
131
|
+
fail ArgumentError, 'invalid value for "vertical_align", must be one of #{validator.allowable_values}.'
|
132
|
+
end
|
133
|
+
@vertical_align = vertical_align
|
134
|
+
end
|
135
|
+
|
136
|
+
# Custom attribute writer method checking allowed values (enum).
|
137
|
+
# @param [Object] horizontal_align Object to be assigned
|
138
|
+
def horizontal_align=(horizontal_align)
|
139
|
+
validator = EnumAttributeValidator.new('String', ['left', 'center', 'right'])
|
140
|
+
unless validator.valid?(horizontal_align)
|
141
|
+
fail ArgumentError, 'invalid value for "horizontal_align", must be one of #{validator.allowable_values}.'
|
142
|
+
end
|
143
|
+
@horizontal_align = horizontal_align
|
144
|
+
end
|
145
|
+
|
100
146
|
# Checks equality by comparing each attribute.
|
101
147
|
# @param [Object] Object to be compared
|
102
148
|
def ==(o)
|
@@ -31,6 +31,8 @@ module MuxRuby
|
|
31
31
|
|
32
32
|
attr_accessor :simulcast_targets
|
33
33
|
|
34
|
+
attr_accessor :test
|
35
|
+
|
34
36
|
# Attribute mapping from ruby-style variable name to JSON key.
|
35
37
|
def self.attribute_map
|
36
38
|
{
|
@@ -45,7 +47,8 @@ module MuxRuby
|
|
45
47
|
:'passthrough' => :'passthrough',
|
46
48
|
:'reconnect_window' => :'reconnect_window',
|
47
49
|
:'reduced_latency' => :'reduced_latency',
|
48
|
-
:'simulcast_targets' => :'simulcast_targets'
|
50
|
+
:'simulcast_targets' => :'simulcast_targets',
|
51
|
+
:'test' => :'test'
|
49
52
|
}
|
50
53
|
end
|
51
54
|
|
@@ -59,11 +62,12 @@ module MuxRuby
|
|
59
62
|
:'recent_asset_ids' => :'Array<String>',
|
60
63
|
:'status' => :'String',
|
61
64
|
:'playback_ids' => :'Array<PlaybackID>',
|
62
|
-
:'new_asset_settings' => :'
|
65
|
+
:'new_asset_settings' => :'CreateAssetRequest',
|
63
66
|
:'passthrough' => :'String',
|
64
67
|
:'reconnect_window' => :'Float',
|
65
68
|
:'reduced_latency' => :'BOOLEAN',
|
66
|
-
:'simulcast_targets' => :'Array<SimulcastTarget>'
|
69
|
+
:'simulcast_targets' => :'Array<SimulcastTarget>',
|
70
|
+
:'test' => :'BOOLEAN'
|
67
71
|
}
|
68
72
|
end
|
69
73
|
|
@@ -128,6 +132,10 @@ module MuxRuby
|
|
128
132
|
self.simulcast_targets = value
|
129
133
|
end
|
130
134
|
end
|
135
|
+
|
136
|
+
if attributes.has_key?(:'test')
|
137
|
+
self.test = attributes[:'test']
|
138
|
+
end
|
131
139
|
end
|
132
140
|
|
133
141
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -159,7 +167,8 @@ module MuxRuby
|
|
159
167
|
passthrough == o.passthrough &&
|
160
168
|
reconnect_window == o.reconnect_window &&
|
161
169
|
reduced_latency == o.reduced_latency &&
|
162
|
-
simulcast_targets == o.simulcast_targets
|
170
|
+
simulcast_targets == o.simulcast_targets &&
|
171
|
+
test == o.test
|
163
172
|
end
|
164
173
|
|
165
174
|
# @see the `==` method
|
@@ -171,7 +180,7 @@ module MuxRuby
|
|
171
180
|
# Calculates hash code according to all attributes.
|
172
181
|
# @return [Fixnum] Hash code
|
173
182
|
def hash
|
174
|
-
[id, created_at, stream_key, active_asset_id, recent_asset_ids, status, playback_ids, new_asset_settings, passthrough, reconnect_window, reduced_latency, simulcast_targets].hash
|
183
|
+
[id, created_at, stream_key, active_asset_id, recent_asset_ids, status, playback_ids, new_asset_settings, passthrough, reconnect_window, reduced_latency, simulcast_targets, test].hash
|
175
184
|
end
|
176
185
|
|
177
186
|
# Builds the object from hash
|
@@ -0,0 +1,219 @@
|
|
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 UpdateAssetMasterAccessRequest
|
10
|
+
# Add or remove access to the master version of the video.
|
11
|
+
attr_accessor :master_access
|
12
|
+
|
13
|
+
class EnumAttributeValidator
|
14
|
+
attr_reader :datatype
|
15
|
+
attr_reader :allowable_values
|
16
|
+
|
17
|
+
def initialize(datatype, allowable_values)
|
18
|
+
@allowable_values = allowable_values.map do |value|
|
19
|
+
case datatype.to_s
|
20
|
+
when /Integer/i
|
21
|
+
value.to_i
|
22
|
+
when /Float/i
|
23
|
+
value.to_f
|
24
|
+
else
|
25
|
+
value
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
|
30
|
+
def valid?(value)
|
31
|
+
!value || allowable_values.include?(value)
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
36
|
+
def self.attribute_map
|
37
|
+
{
|
38
|
+
:'master_access' => :'master_access'
|
39
|
+
}
|
40
|
+
end
|
41
|
+
|
42
|
+
# Attribute type mapping.
|
43
|
+
def self.openapi_types
|
44
|
+
{
|
45
|
+
:'master_access' => :'String'
|
46
|
+
}
|
47
|
+
end
|
48
|
+
|
49
|
+
# Initializes the object
|
50
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
51
|
+
def initialize(attributes = {})
|
52
|
+
return unless attributes.is_a?(Hash)
|
53
|
+
|
54
|
+
# convert string to symbol for hash key
|
55
|
+
attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
|
56
|
+
|
57
|
+
if attributes.has_key?(:'master_access')
|
58
|
+
self.master_access = attributes[:'master_access']
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
63
|
+
# @return Array for valid properties with the reasons
|
64
|
+
def list_invalid_properties
|
65
|
+
invalid_properties = Array.new
|
66
|
+
invalid_properties
|
67
|
+
end
|
68
|
+
|
69
|
+
# Check to see if the all the properties in the model are valid
|
70
|
+
# @return true if the model is valid
|
71
|
+
def valid?
|
72
|
+
master_access_validator = EnumAttributeValidator.new('String', ['temporary', 'none'])
|
73
|
+
return false unless master_access_validator.valid?(@master_access)
|
74
|
+
true
|
75
|
+
end
|
76
|
+
|
77
|
+
# Custom attribute writer method checking allowed values (enum).
|
78
|
+
# @param [Object] master_access Object to be assigned
|
79
|
+
def master_access=(master_access)
|
80
|
+
validator = EnumAttributeValidator.new('String', ['temporary', 'none'])
|
81
|
+
unless validator.valid?(master_access)
|
82
|
+
fail ArgumentError, 'invalid value for "master_access", must be one of #{validator.allowable_values}.'
|
83
|
+
end
|
84
|
+
@master_access = master_access
|
85
|
+
end
|
86
|
+
|
87
|
+
# Checks equality by comparing each attribute.
|
88
|
+
# @param [Object] Object to be compared
|
89
|
+
def ==(o)
|
90
|
+
return true if self.equal?(o)
|
91
|
+
self.class == o.class &&
|
92
|
+
master_access == o.master_access
|
93
|
+
end
|
94
|
+
|
95
|
+
# @see the `==` method
|
96
|
+
# @param [Object] Object to be compared
|
97
|
+
def eql?(o)
|
98
|
+
self == o
|
99
|
+
end
|
100
|
+
|
101
|
+
# Calculates hash code according to all attributes.
|
102
|
+
# @return [Fixnum] Hash code
|
103
|
+
def hash
|
104
|
+
[master_access].hash
|
105
|
+
end
|
106
|
+
|
107
|
+
# Builds the object from hash
|
108
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
109
|
+
# @return [Object] Returns the model itself
|
110
|
+
def self.build_from_hash(attributes)
|
111
|
+
new.build_from_hash(attributes)
|
112
|
+
end
|
113
|
+
|
114
|
+
# Builds the object from hash
|
115
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
116
|
+
# @return [Object] Returns the model itself
|
117
|
+
def build_from_hash(attributes)
|
118
|
+
return nil unless attributes.is_a?(Hash)
|
119
|
+
self.class.openapi_types.each_pair do |key, type|
|
120
|
+
if type =~ /\AArray<(.*)>/i
|
121
|
+
# check to ensure the input is an array given that the attribute
|
122
|
+
# is documented as an array but the input is not
|
123
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
124
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
125
|
+
end
|
126
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
127
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
128
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
129
|
+
end
|
130
|
+
|
131
|
+
self
|
132
|
+
end
|
133
|
+
|
134
|
+
# Deserializes the data based on type
|
135
|
+
# @param string type Data type
|
136
|
+
# @param string value Value to be deserialized
|
137
|
+
# @return [Object] Deserialized data
|
138
|
+
def _deserialize(type, value)
|
139
|
+
case type.to_sym
|
140
|
+
when :DateTime
|
141
|
+
DateTime.parse(value)
|
142
|
+
when :Date
|
143
|
+
Date.parse(value)
|
144
|
+
when :String
|
145
|
+
value.to_s
|
146
|
+
when :Integer
|
147
|
+
value.to_i
|
148
|
+
when :Float
|
149
|
+
value.to_f
|
150
|
+
when :BOOLEAN
|
151
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
152
|
+
true
|
153
|
+
else
|
154
|
+
false
|
155
|
+
end
|
156
|
+
when :Object
|
157
|
+
# generic object (usually a Hash), return directly
|
158
|
+
value
|
159
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
160
|
+
inner_type = Regexp.last_match[:inner_type]
|
161
|
+
value.map { |v| _deserialize(inner_type, v) }
|
162
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
163
|
+
k_type = Regexp.last_match[:k_type]
|
164
|
+
v_type = Regexp.last_match[:v_type]
|
165
|
+
{}.tap do |hash|
|
166
|
+
value.each do |k, v|
|
167
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
168
|
+
end
|
169
|
+
end
|
170
|
+
else # model
|
171
|
+
MuxRuby.const_get(type).build_from_hash(value)
|
172
|
+
end
|
173
|
+
end
|
174
|
+
|
175
|
+
# Returns the string representation of the object
|
176
|
+
# @return [String] String presentation of the object
|
177
|
+
def to_s
|
178
|
+
to_hash.to_s
|
179
|
+
end
|
180
|
+
|
181
|
+
# to_body is an alias to to_hash (backward compatibility)
|
182
|
+
# @return [Hash] Returns the object in the form of hash
|
183
|
+
def to_body
|
184
|
+
to_hash
|
185
|
+
end
|
186
|
+
|
187
|
+
# Returns the object in the form of hash
|
188
|
+
# @return [Hash] Returns the object in the form of hash
|
189
|
+
def to_hash
|
190
|
+
hash = {}
|
191
|
+
self.class.attribute_map.each_pair do |attr, param|
|
192
|
+
value = self.send(attr)
|
193
|
+
next if value.nil?
|
194
|
+
hash[param] = _to_hash(value)
|
195
|
+
end
|
196
|
+
hash
|
197
|
+
end
|
198
|
+
|
199
|
+
# Outputs non-array value in the form of hash
|
200
|
+
# For object, use to_hash. Otherwise, just return the value
|
201
|
+
# @param [Object] value Any valid value
|
202
|
+
# @return [Hash] Returns the value in the form of hash
|
203
|
+
def _to_hash(value)
|
204
|
+
if value.is_a?(Array)
|
205
|
+
value.compact.map { |v| _to_hash(v) }
|
206
|
+
elsif value.is_a?(Hash)
|
207
|
+
{}.tap do |hash|
|
208
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
209
|
+
end
|
210
|
+
elsif value.respond_to? :to_hash
|
211
|
+
value.to_hash
|
212
|
+
else
|
213
|
+
value
|
214
|
+
end
|
215
|
+
end
|
216
|
+
|
217
|
+
end
|
218
|
+
|
219
|
+
end
|
@@ -27,6 +27,8 @@ module MuxRuby
|
|
27
27
|
# The URL to upload the associated source media to.
|
28
28
|
attr_accessor :url
|
29
29
|
|
30
|
+
attr_accessor :test
|
31
|
+
|
30
32
|
class EnumAttributeValidator
|
31
33
|
attr_reader :datatype
|
32
34
|
attr_reader :allowable_values
|
@@ -59,7 +61,8 @@ module MuxRuby
|
|
59
61
|
:'asset_id' => :'asset_id',
|
60
62
|
:'error' => :'error',
|
61
63
|
:'cors_origin' => :'cors_origin',
|
62
|
-
:'url' => :'url'
|
64
|
+
:'url' => :'url',
|
65
|
+
:'test' => :'test'
|
63
66
|
}
|
64
67
|
end
|
65
68
|
|
@@ -73,7 +76,8 @@ module MuxRuby
|
|
73
76
|
:'asset_id' => :'String',
|
74
77
|
:'error' => :'UploadError',
|
75
78
|
:'cors_origin' => :'String',
|
76
|
-
:'url' => :'String'
|
79
|
+
:'url' => :'String',
|
80
|
+
:'test' => :'BOOLEAN'
|
77
81
|
}
|
78
82
|
end
|
79
83
|
|
@@ -118,6 +122,10 @@ module MuxRuby
|
|
118
122
|
if attributes.has_key?(:'url')
|
119
123
|
self.url = attributes[:'url']
|
120
124
|
end
|
125
|
+
|
126
|
+
if attributes.has_key?(:'test')
|
127
|
+
self.test = attributes[:'test']
|
128
|
+
end
|
121
129
|
end
|
122
130
|
|
123
131
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -181,7 +189,8 @@ module MuxRuby
|
|
181
189
|
asset_id == o.asset_id &&
|
182
190
|
error == o.error &&
|
183
191
|
cors_origin == o.cors_origin &&
|
184
|
-
url == o.url
|
192
|
+
url == o.url &&
|
193
|
+
test == o.test
|
185
194
|
end
|
186
195
|
|
187
196
|
# @see the `==` method
|
@@ -193,7 +202,7 @@ module MuxRuby
|
|
193
202
|
# Calculates hash code according to all attributes.
|
194
203
|
# @return [Fixnum] Hash code
|
195
204
|
def hash
|
196
|
-
[id, timeout, status, new_asset_settings, asset_id, error, cors_origin, url].hash
|
205
|
+
[id, timeout, status, new_asset_settings, asset_id, error, cors_origin, url, test].hash
|
197
206
|
end
|
198
207
|
|
199
208
|
# Builds the object from hash
|
@@ -223,10 +223,14 @@ module MuxRuby
|
|
223
223
|
|
224
224
|
attr_accessor :asn
|
225
225
|
|
226
|
+
attr_accessor :asn_name
|
227
|
+
|
226
228
|
attr_accessor :quality_score
|
227
229
|
|
228
230
|
attr_accessor :player_software_version
|
229
231
|
|
232
|
+
attr_accessor :player_mux_plugin_name
|
233
|
+
|
230
234
|
# Attribute mapping from ruby-style variable name to JSON key.
|
231
235
|
def self.attribute_map
|
232
236
|
{
|
@@ -338,8 +342,10 @@ module MuxRuby
|
|
338
342
|
:'player_autoplay' => :'player_autoplay',
|
339
343
|
:'player_height' => :'player_height',
|
340
344
|
:'asn' => :'asn',
|
345
|
+
:'asn_name' => :'asn_name',
|
341
346
|
:'quality_score' => :'quality_score',
|
342
|
-
:'player_software_version' => :'player_software_version'
|
347
|
+
:'player_software_version' => :'player_software_version',
|
348
|
+
:'player_mux_plugin_name' => :'player_mux_plugin_name'
|
343
349
|
}
|
344
350
|
end
|
345
351
|
|
@@ -354,22 +360,22 @@ module MuxRuby
|
|
354
360
|
:'preroll_requested' => :'BOOLEAN',
|
355
361
|
:'page_type' => :'String',
|
356
362
|
:'startup_score' => :'String',
|
357
|
-
:'view_seek_duration' => :'
|
363
|
+
:'view_seek_duration' => :'Integer',
|
358
364
|
:'country_name' => :'String',
|
359
365
|
:'player_source_height' => :'Integer',
|
360
366
|
:'longitude' => :'String',
|
361
|
-
:'buffering_count' => :'
|
362
|
-
:'video_duration' => :'
|
367
|
+
:'buffering_count' => :'Integer',
|
368
|
+
:'video_duration' => :'Integer',
|
363
369
|
:'player_source_type' => :'String',
|
364
370
|
:'city' => :'String',
|
365
371
|
:'view_id' => :'String',
|
366
372
|
:'platform_description' => :'String',
|
367
|
-
:'video_startup_preroll_request_time' => :'
|
373
|
+
:'video_startup_preroll_request_time' => :'Integer',
|
368
374
|
:'viewer_device_name' => :'String',
|
369
375
|
:'video_series' => :'String',
|
370
376
|
:'viewer_application_name' => :'String',
|
371
377
|
:'updated_at' => :'String',
|
372
|
-
:'view_total_content_playback_time' => :'
|
378
|
+
:'view_total_content_playback_time' => :'Integer',
|
373
379
|
:'cdn' => :'String',
|
374
380
|
:'player_instance_id' => :'String',
|
375
381
|
:'video_language' => :'String',
|
@@ -380,8 +386,8 @@ module MuxRuby
|
|
380
386
|
:'playback_score' => :'String',
|
381
387
|
:'page_url' => :'String',
|
382
388
|
:'metro' => :'String',
|
383
|
-
:'view_max_request_latency' => :'
|
384
|
-
:'requests_for_first_preroll' => :'
|
389
|
+
:'view_max_request_latency' => :'Integer',
|
390
|
+
:'requests_for_first_preroll' => :'Integer',
|
385
391
|
:'view_total_downscaling' => :'String',
|
386
392
|
:'latitude' => :'String',
|
387
393
|
:'player_source_host_name' => :'String',
|
@@ -391,7 +397,7 @@ module MuxRuby
|
|
391
397
|
:'player_language' => :'String',
|
392
398
|
:'page_load_time' => :'Integer',
|
393
399
|
:'viewer_device_category' => :'String',
|
394
|
-
:'video_startup_preroll_load_time' => :'
|
400
|
+
:'video_startup_preroll_load_time' => :'Integer',
|
395
401
|
:'player_version' => :'String',
|
396
402
|
:'watch_time' => :'Integer',
|
397
403
|
:'player_source_stream_type' => :'String',
|
@@ -401,14 +407,14 @@ module MuxRuby
|
|
401
407
|
:'experiment_name' => :'String',
|
402
408
|
:'viewer_os_version' => :'String',
|
403
409
|
:'player_preload' => :'BOOLEAN',
|
404
|
-
:'buffering_duration' => :'
|
410
|
+
:'buffering_duration' => :'Integer',
|
405
411
|
:'player_view_count' => :'Integer',
|
406
412
|
:'player_software' => :'String',
|
407
|
-
:'player_load_time' => :'
|
413
|
+
:'player_load_time' => :'Integer',
|
408
414
|
:'platform_summary' => :'String',
|
409
415
|
:'video_encoding_variant' => :'String',
|
410
416
|
:'player_width' => :'Integer',
|
411
|
-
:'view_seek_count' => :'
|
417
|
+
:'view_seek_count' => :'Integer',
|
412
418
|
:'viewer_experience_score' => :'String',
|
413
419
|
:'view_error_id' => :'Integer',
|
414
420
|
:'video_variant_name' => :'String',
|
@@ -420,7 +426,7 @@ module MuxRuby
|
|
420
426
|
:'events' => :'Array<VideoViewEvent>',
|
421
427
|
:'player_name' => :'String',
|
422
428
|
:'view_start' => :'String',
|
423
|
-
:'view_average_request_throughput' => :'
|
429
|
+
:'view_average_request_throughput' => :'Integer',
|
424
430
|
:'video_producer' => :'String',
|
425
431
|
:'error_type_id' => :'Integer',
|
426
432
|
:'mux_viewer_id' => :'String',
|
@@ -431,7 +437,7 @@ module MuxRuby
|
|
431
437
|
:'video_content_type' => :'String',
|
432
438
|
:'viewer_os_family' => :'String',
|
433
439
|
:'player_poster' => :'String',
|
434
|
-
:'view_average_request_latency' => :'
|
440
|
+
:'view_average_request_latency' => :'Integer',
|
435
441
|
:'video_variant_id' => :'String',
|
436
442
|
:'player_source_duration' => :'Integer',
|
437
443
|
:'player_source_url' => :'String',
|
@@ -440,7 +446,7 @@ module MuxRuby
|
|
440
446
|
:'id' => :'String',
|
441
447
|
:'short_time' => :'String',
|
442
448
|
:'rebuffer_percentage' => :'String',
|
443
|
-
:'time_to_first_frame' => :'
|
449
|
+
:'time_to_first_frame' => :'Integer',
|
444
450
|
:'viewer_user_id' => :'String',
|
445
451
|
:'video_stream_type' => :'String',
|
446
452
|
:'player_startup_time' => :'Integer',
|
@@ -454,8 +460,10 @@ module MuxRuby
|
|
454
460
|
:'player_autoplay' => :'BOOLEAN',
|
455
461
|
:'player_height' => :'Integer',
|
456
462
|
:'asn' => :'Integer',
|
463
|
+
:'asn_name' => :'String',
|
457
464
|
:'quality_score' => :'String',
|
458
|
-
:'player_software_version' => :'String'
|
465
|
+
:'player_software_version' => :'String',
|
466
|
+
:'player_mux_plugin_name' => :'String'
|
459
467
|
}
|
460
468
|
end
|
461
469
|
|
@@ -901,6 +909,10 @@ module MuxRuby
|
|
901
909
|
self.asn = attributes[:'asn']
|
902
910
|
end
|
903
911
|
|
912
|
+
if attributes.has_key?(:'asn_name')
|
913
|
+
self.asn_name = attributes[:'asn_name']
|
914
|
+
end
|
915
|
+
|
904
916
|
if attributes.has_key?(:'quality_score')
|
905
917
|
self.quality_score = attributes[:'quality_score']
|
906
918
|
end
|
@@ -908,6 +920,10 @@ module MuxRuby
|
|
908
920
|
if attributes.has_key?(:'player_software_version')
|
909
921
|
self.player_software_version = attributes[:'player_software_version']
|
910
922
|
end
|
923
|
+
|
924
|
+
if attributes.has_key?(:'player_mux_plugin_name')
|
925
|
+
self.player_mux_plugin_name = attributes[:'player_mux_plugin_name']
|
926
|
+
end
|
911
927
|
end
|
912
928
|
|
913
929
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -1036,8 +1052,10 @@ module MuxRuby
|
|
1036
1052
|
player_autoplay == o.player_autoplay &&
|
1037
1053
|
player_height == o.player_height &&
|
1038
1054
|
asn == o.asn &&
|
1055
|
+
asn_name == o.asn_name &&
|
1039
1056
|
quality_score == o.quality_score &&
|
1040
|
-
player_software_version == o.player_software_version
|
1057
|
+
player_software_version == o.player_software_version &&
|
1058
|
+
player_mux_plugin_name == o.player_mux_plugin_name
|
1041
1059
|
end
|
1042
1060
|
|
1043
1061
|
# @see the `==` method
|
@@ -1049,7 +1067,7 @@ module MuxRuby
|
|
1049
1067
|
# Calculates hash code according to all attributes.
|
1050
1068
|
# @return [Fixnum] Hash code
|
1051
1069
|
def hash
|
1052
|
-
[view_total_upscaling, preroll_ad_asset_hostname, player_source_domain, region, viewer_user_agent, preroll_requested, page_type, startup_score, view_seek_duration, country_name, player_source_height, longitude, buffering_count, video_duration, player_source_type, city, view_id, platform_description, video_startup_preroll_request_time, viewer_device_name, video_series, viewer_application_name, updated_at, view_total_content_playback_time, cdn, player_instance_id, video_language, player_source_width, player_error_message, player_mux_plugin_version, watched, playback_score, page_url, metro, view_max_request_latency, requests_for_first_preroll, view_total_downscaling, latitude, player_source_host_name, inserted_at, view_end, mux_embed_version, player_language, page_load_time, viewer_device_category, video_startup_preroll_load_time, player_version, watch_time, player_source_stream_type, preroll_ad_tag_hostname, viewer_device_manufacturer, rebuffering_score, experiment_name, viewer_os_version, player_preload, buffering_duration, player_view_count, player_software, player_load_time, platform_summary, video_encoding_variant, player_width, view_seek_count, viewer_experience_score, view_error_id, video_variant_name, preroll_played, viewer_application_engine, viewer_os_architecture, player_error_code, buffering_rate, events, player_name, view_start, view_average_request_throughput, video_producer, error_type_id, mux_viewer_id, video_id, continent_code, session_id, exit_before_video_start, video_content_type, viewer_os_family, player_poster, view_average_request_latency, video_variant_id, player_source_duration, player_source_url, mux_api_version, video_title, id, short_time, rebuffer_percentage, time_to_first_frame, viewer_user_id, video_stream_type, player_startup_time, viewer_application_version, view_max_downscale_percentage, view_max_upscale_percentage, country_code, used_fullscreen, isp, property_id, player_autoplay, player_height, asn, quality_score, player_software_version].hash
|
1070
|
+
[view_total_upscaling, preroll_ad_asset_hostname, player_source_domain, region, viewer_user_agent, preroll_requested, page_type, startup_score, view_seek_duration, country_name, player_source_height, longitude, buffering_count, video_duration, player_source_type, city, view_id, platform_description, video_startup_preroll_request_time, viewer_device_name, video_series, viewer_application_name, updated_at, view_total_content_playback_time, cdn, player_instance_id, video_language, player_source_width, player_error_message, player_mux_plugin_version, watched, playback_score, page_url, metro, view_max_request_latency, requests_for_first_preroll, view_total_downscaling, latitude, player_source_host_name, inserted_at, view_end, mux_embed_version, player_language, page_load_time, viewer_device_category, video_startup_preroll_load_time, player_version, watch_time, player_source_stream_type, preroll_ad_tag_hostname, viewer_device_manufacturer, rebuffering_score, experiment_name, viewer_os_version, player_preload, buffering_duration, player_view_count, player_software, player_load_time, platform_summary, video_encoding_variant, player_width, view_seek_count, viewer_experience_score, view_error_id, video_variant_name, preroll_played, viewer_application_engine, viewer_os_architecture, player_error_code, buffering_rate, events, player_name, view_start, view_average_request_throughput, video_producer, error_type_id, mux_viewer_id, video_id, continent_code, session_id, exit_before_video_start, video_content_type, viewer_os_family, player_poster, view_average_request_latency, video_variant_id, player_source_duration, player_source_url, mux_api_version, video_title, id, short_time, rebuffer_percentage, time_to_first_frame, viewer_user_id, video_stream_type, player_startup_time, viewer_application_version, view_max_downscale_percentage, view_max_upscale_percentage, country_code, used_fullscreen, isp, property_id, player_autoplay, player_height, asn, asn_name, quality_score, player_software_version, player_mux_plugin_name].hash
|
1053
1071
|
end
|
1054
1072
|
|
1055
1073
|
# Builds the object from hash
|