mux_ruby 3.20.0 → 5.0.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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/docs/Asset.md +4 -2
- data/docs/AssetMetadata.md +22 -0
- data/docs/AssetStaticRenditions.md +2 -2
- data/docs/AssetsApi.md +146 -1
- data/docs/CreateAssetRequest.md +14 -6
- data/docs/CreateLiveStreamRequest.md +4 -2
- data/docs/CreateStaticRenditionRequest.md +20 -0
- data/docs/CreateStaticRenditionResponse.md +18 -0
- data/docs/InputSettings.md +1 -1
- data/docs/LiveStreamsApi.md +143 -0
- data/docs/PlaybackRestrictionsApi.md +1 -1
- data/docs/StaticRendition.md +40 -0
- data/docs/UpdateAssetRequest.md +4 -2
- data/docs/UpdateLiveStreamNewAssetSettings.md +6 -2
- data/docs/UpdateLiveStreamNewAssetSettingsStaticRenditionsRequest.md +18 -0
- data/docs/UpdateReferrerDomainRestrictionRequest.md +10 -37
- data/docs/Upload.md +1 -1
- data/docs/VideoView.md +35 -1
- data/examples/video/exercise-assets.rb +1 -1
- data/gen/generator-config.json +1 -1
- data/lib/mux_ruby/api/assets_api.rb +140 -2
- data/lib/mux_ruby/api/live_streams_api.rb +132 -0
- data/lib/mux_ruby/api/metrics_api.rb +2 -2
- data/lib/mux_ruby/models/asset.rb +14 -5
- data/lib/mux_ruby/models/{space_response.rb → asset_metadata.rb} +74 -13
- data/lib/mux_ruby/models/asset_static_renditions.rb +2 -2
- data/lib/mux_ruby/models/create_asset_request.rb +54 -9
- data/lib/mux_ruby/models/create_live_stream_request.rb +15 -2
- data/lib/mux_ruby/models/{create_broadcast_request.rb → create_static_rendition_request.rb} +49 -53
- data/lib/mux_ruby/models/{start_space_broadcast_response.rb → create_static_rendition_response.rb} +4 -4
- data/lib/mux_ruby/models/input_settings.rb +1 -1
- data/lib/mux_ruby/models/{asset_static_renditions_files.rb → static_rendition.rb} +118 -9
- data/lib/mux_ruby/models/update_asset_request.rb +14 -5
- data/lib/mux_ruby/models/update_live_stream_new_asset_settings.rb +37 -6
- data/lib/mux_ruby/models/{list_spaces_response.rb → update_live_stream_new_asset_settings_static_renditions_request.rb} +11 -16
- data/lib/mux_ruby/models/update_referrer_domain_restriction_request.rb +203 -73
- data/lib/mux_ruby/models/upload.rb +1 -1
- data/lib/mux_ruby/models/video_view.rb +171 -4
- data/lib/mux_ruby/version.rb +1 -1
- data/lib/mux_ruby.rb +5 -16
- data/spec/models/asset_metadata_spec.rb +46 -0
- data/spec/models/create_static_rendition_request_spec.rb +44 -0
- data/spec/models/create_static_rendition_response_spec.rb +34 -0
- data/spec/models/static_rendition_spec.rb +124 -0
- data/spec/models/update_live_stream_new_asset_settings_static_renditions_request_spec.rb +34 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +8 -8
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/ffi_c.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/mkmf.log +19 -19
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +7 -7
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/mkmf.log +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/psych.so +0 -0
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/gem_make.out +6 -6
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/mkmf.log +2 -2
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/stringio.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug/Makefile +3 -3
- data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/ext/ffi_c/Makefile +3 -3
- data/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/lib/ffi_c.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/ext/jaro_winkler/Makefile +3 -3
- data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/ext/psych/Makefile +3 -3
- data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/lib/psych.so +0 -0
- data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/ext/stringio/Makefile +3 -3
- data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/lib/stringio.so +0 -0
- metadata +184 -199
- data/docs/AssetStaticRenditionsFiles.md +0 -28
- data/docs/Broadcast.md +0 -30
- data/docs/BroadcastLayout.md +0 -15
- data/docs/BroadcastResolution.md +0 -15
- data/docs/BroadcastResponse.md +0 -18
- data/docs/BroadcastStatus.md +0 -15
- data/docs/CreateBroadcastRequest.md +0 -26
- data/docs/CreateSpaceRequest.md +0 -22
- data/docs/ListSpacesResponse.md +0 -18
- data/docs/Space.md +0 -30
- data/docs/SpaceResponse.md +0 -18
- data/docs/SpaceStatus.md +0 -15
- data/docs/SpaceType.md +0 -15
- data/docs/SpacesApi.md +0 -658
- data/docs/StartSpaceBroadcastResponse.md +0 -18
- data/docs/StopSpaceBroadcastResponse.md +0 -18
- data/lib/mux_ruby/api/spaces_api.rb +0 -619
- data/lib/mux_ruby/models/broadcast.rb +0 -305
- data/lib/mux_ruby/models/broadcast_layout.rb +0 -38
- data/lib/mux_ruby/models/broadcast_resolution.rb +0 -41
- data/lib/mux_ruby/models/broadcast_response.rb +0 -223
- data/lib/mux_ruby/models/broadcast_status.rb +0 -37
- data/lib/mux_ruby/models/create_space_request.rb +0 -242
- data/lib/mux_ruby/models/space.rb +0 -301
- data/lib/mux_ruby/models/space_status.rb +0 -37
- data/lib/mux_ruby/models/space_type.rb +0 -36
- data/lib/mux_ruby/models/stop_space_broadcast_response.rb +0 -218
@@ -14,91 +14,221 @@ require 'date'
|
|
14
14
|
require 'time'
|
15
15
|
|
16
16
|
module MuxRuby
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
17
|
+
# A list of domains allowed to play your videos.
|
18
|
+
class UpdateReferrerDomainRestrictionRequest
|
19
|
+
# List of domains allowed to play videos. Possible values are * `[]` Empty Array indicates deny video playback requests for all domains * `[\"*\"]` A Single Wildcard `*` entry means allow video playback requests from any domain * `[\"*.example.com\", \"foo.com\"]` A list of up to 10 domains or valid dns-style wildcards
|
20
|
+
attr_accessor :allowed_domains
|
21
|
+
|
22
|
+
# A boolean to determine whether to allow or deny HTTP requests without `Referer` HTTP request header. Playback requests coming from non-web/native applications like iOS, Android or smart TVs will not have a `Referer` HTTP header. Set this value to `true` to allow these playback requests.
|
23
|
+
attr_accessor :allow_no_referrer
|
24
|
+
|
25
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
26
|
+
def self.attribute_map
|
27
|
+
{
|
28
|
+
:'allowed_domains' => :'allowed_domains',
|
29
|
+
:'allow_no_referrer' => :'allow_no_referrer'
|
30
|
+
}
|
31
|
+
end
|
32
|
+
|
33
|
+
# Returns all the JSON keys this model knows about
|
34
|
+
def self.acceptable_attributes
|
35
|
+
attribute_map.values
|
36
|
+
end
|
37
|
+
|
38
|
+
# Attribute type mapping.
|
39
|
+
def self.openapi_types
|
40
|
+
{
|
41
|
+
:'allowed_domains' => :'Array<String>',
|
42
|
+
:'allow_no_referrer' => :'Boolean'
|
43
|
+
}
|
44
|
+
end
|
45
|
+
|
46
|
+
# List of attributes with nullable: true
|
47
|
+
def self.openapi_nullable
|
48
|
+
Set.new([
|
49
|
+
])
|
50
|
+
end
|
51
|
+
|
52
|
+
# Initializes the object
|
53
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
54
|
+
def initialize(attributes = {})
|
55
|
+
if (!attributes.is_a?(Hash))
|
56
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `MuxRuby::UpdateReferrerDomainRestrictionRequest` initialize method"
|
24
57
|
end
|
25
58
|
|
26
|
-
#
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
openapi_one_of.each do |klass|
|
38
|
-
begin
|
39
|
-
next if klass == :AnyType # "nullable: true"
|
40
|
-
typed_data = find_and_cast_into_type(klass, data)
|
41
|
-
return typed_data if typed_data
|
42
|
-
rescue # rescue all errors so we keep iterating even if the current item lookup raises
|
43
|
-
end
|
59
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
60
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
61
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
62
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `MuxRuby::UpdateReferrerDomainRestrictionRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
63
|
+
end
|
64
|
+
h[k.to_sym] = v
|
65
|
+
}
|
66
|
+
|
67
|
+
if attributes.key?(:'allowed_domains')
|
68
|
+
if (value = attributes[:'allowed_domains']).is_a?(Array)
|
69
|
+
self.allowed_domains = value
|
44
70
|
end
|
71
|
+
end
|
45
72
|
|
46
|
-
|
73
|
+
if attributes.key?(:'allow_no_referrer')
|
74
|
+
self.allow_no_referrer = attributes[:'allow_no_referrer']
|
75
|
+
else
|
76
|
+
self.allow_no_referrer = false
|
47
77
|
end
|
78
|
+
end
|
48
79
|
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
80
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
81
|
+
# @return Array for valid properties with the reasons
|
82
|
+
def list_invalid_properties
|
83
|
+
invalid_properties = Array.new
|
84
|
+
invalid_properties
|
85
|
+
end
|
86
|
+
|
87
|
+
# Check to see if the all the properties in the model are valid
|
88
|
+
# @return true if the model is valid
|
89
|
+
def valid?
|
90
|
+
true
|
91
|
+
end
|
92
|
+
|
93
|
+
# Checks equality by comparing each attribute.
|
94
|
+
# @param [Object] Object to be compared
|
95
|
+
def ==(o)
|
96
|
+
return true if self.equal?(o)
|
97
|
+
self.class == o.class &&
|
98
|
+
allowed_domains == o.allowed_domains &&
|
99
|
+
allow_no_referrer == o.allow_no_referrer
|
100
|
+
end
|
101
|
+
|
102
|
+
# @see the `==` method
|
103
|
+
# @param [Object] Object to be compared
|
104
|
+
def eql?(o)
|
105
|
+
self == o
|
106
|
+
end
|
107
|
+
|
108
|
+
# Calculates hash code according to all attributes.
|
109
|
+
# @return [Integer] Hash code
|
110
|
+
def hash
|
111
|
+
[allowed_domains, allow_no_referrer].hash
|
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 self.build_from_hash(attributes)
|
118
|
+
new.build_from_hash(attributes)
|
119
|
+
end
|
120
|
+
|
121
|
+
# Builds the object from hash
|
122
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
123
|
+
# @return [Object] Returns the model itself
|
124
|
+
def build_from_hash(attributes)
|
125
|
+
return nil unless attributes.is_a?(Hash)
|
126
|
+
self.class.openapi_types.each_pair do |key, type|
|
127
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
128
|
+
self.send("#{key}=", nil)
|
129
|
+
elsif type =~ /\AArray<(.*)>/i
|
130
|
+
# check to ensure the input is an array given that the attribute
|
131
|
+
# is documented as an array but the input is not
|
132
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
133
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
81
134
|
end
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
135
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
136
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
137
|
+
end
|
138
|
+
end
|
139
|
+
|
140
|
+
self
|
141
|
+
end
|
142
|
+
|
143
|
+
# Deserializes the data based on type
|
144
|
+
# @param string type Data type
|
145
|
+
# @param string value Value to be deserialized
|
146
|
+
# @return [Object] Deserialized data
|
147
|
+
def _deserialize(type, value)
|
148
|
+
case type.to_sym
|
149
|
+
when :Time
|
150
|
+
Time.parse(value)
|
151
|
+
when :Date
|
152
|
+
Date.parse(value)
|
153
|
+
when :String
|
154
|
+
value.to_s
|
155
|
+
when :Integer
|
156
|
+
value.to_i
|
157
|
+
when :Float
|
158
|
+
value.to_f
|
159
|
+
when :Boolean
|
160
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
161
|
+
true
|
162
|
+
else
|
163
|
+
false
|
164
|
+
end
|
165
|
+
when :Object
|
166
|
+
# generic object (usually a Hash), return directly
|
167
|
+
value
|
168
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
169
|
+
inner_type = Regexp.last_match[:inner_type]
|
170
|
+
value.map { |v| _deserialize(inner_type, v) }
|
171
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
172
|
+
k_type = Regexp.last_match[:k_type]
|
173
|
+
v_type = Regexp.last_match[:v_type]
|
174
|
+
{}.tap do |hash|
|
175
|
+
value.each do |k, v|
|
176
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
94
177
|
end
|
95
178
|
end
|
179
|
+
else # model
|
180
|
+
# models (e.g. Pet) or oneOf
|
181
|
+
klass = MuxRuby.const_get(type)
|
182
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
183
|
+
end
|
184
|
+
end
|
96
185
|
|
97
|
-
|
98
|
-
|
99
|
-
|
186
|
+
# Returns the string representation of the object
|
187
|
+
# @return [String] String presentation of the object
|
188
|
+
def to_s
|
189
|
+
to_hash.to_s
|
190
|
+
end
|
191
|
+
|
192
|
+
# to_body is an alias to to_hash (backward compatibility)
|
193
|
+
# @return [Hash] Returns the object in the form of hash
|
194
|
+
def to_body
|
195
|
+
to_hash
|
196
|
+
end
|
197
|
+
|
198
|
+
# Returns the object in the form of hash
|
199
|
+
# @return [Hash] Returns the object in the form of hash
|
200
|
+
def to_hash
|
201
|
+
hash = {}
|
202
|
+
self.class.attribute_map.each_pair do |attr, param|
|
203
|
+
value = self.send(attr)
|
204
|
+
if value.nil?
|
205
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
206
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
207
|
+
end
|
208
|
+
|
209
|
+
hash[param] = _to_hash(value)
|
100
210
|
end
|
211
|
+
hash
|
101
212
|
end
|
213
|
+
|
214
|
+
# Outputs non-array value in the form of hash
|
215
|
+
# For object, use to_hash. Otherwise, just return the value
|
216
|
+
# @param [Object] value Any valid value
|
217
|
+
# @return [Hash] Returns the value in the form of hash
|
218
|
+
def _to_hash(value)
|
219
|
+
if value.is_a?(Array)
|
220
|
+
value.compact.map { |v| _to_hash(v) }
|
221
|
+
elsif value.is_a?(Hash)
|
222
|
+
{}.tap do |hash|
|
223
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
224
|
+
end
|
225
|
+
elsif value.respond_to? :to_hash
|
226
|
+
value.to_hash
|
227
|
+
else
|
228
|
+
value
|
229
|
+
end
|
230
|
+
end
|
231
|
+
|
102
232
|
end
|
103
233
|
|
104
234
|
end
|
@@ -87,7 +87,7 @@ module MuxRuby
|
|
87
87
|
:'id' => :'String',
|
88
88
|
:'timeout' => :'Integer',
|
89
89
|
:'status' => :'String',
|
90
|
-
:'new_asset_settings' => :'
|
90
|
+
:'new_asset_settings' => :'CreateAssetRequest',
|
91
91
|
:'asset_id' => :'String',
|
92
92
|
:'error' => :'UploadError',
|
93
93
|
:'cors_origin' => :'String',
|
@@ -339,6 +339,40 @@ module MuxRuby
|
|
339
339
|
|
340
340
|
attr_accessor :view_dropped
|
341
341
|
|
342
|
+
attr_accessor :client_application_name
|
343
|
+
|
344
|
+
attr_accessor :client_application_version
|
345
|
+
|
346
|
+
attr_accessor :video_affiliate
|
347
|
+
|
348
|
+
attr_accessor :viewer_plan
|
349
|
+
|
350
|
+
attr_accessor :viewer_plan_status
|
351
|
+
|
352
|
+
attr_accessor :viewer_plan_category
|
353
|
+
|
354
|
+
attr_accessor :view_drm_level
|
355
|
+
|
356
|
+
attr_accessor :video_brand
|
357
|
+
|
358
|
+
attr_accessor :used_pip
|
359
|
+
|
360
|
+
attr_accessor :time_shift_enabled
|
361
|
+
|
362
|
+
attr_accessor :used_captions
|
363
|
+
|
364
|
+
attr_accessor :video_codec
|
365
|
+
|
366
|
+
attr_accessor :audio_codec
|
367
|
+
|
368
|
+
attr_accessor :video_dynamic_range_type
|
369
|
+
|
370
|
+
attr_accessor :view_cdn_edge_pop
|
371
|
+
|
372
|
+
attr_accessor :view_cdn_origin
|
373
|
+
|
374
|
+
attr_accessor :video_creator_id
|
375
|
+
|
342
376
|
# Attribute mapping from ruby-style variable name to JSON key.
|
343
377
|
def self.attribute_map
|
344
378
|
{
|
@@ -503,7 +537,24 @@ module MuxRuby
|
|
503
537
|
:'ad_playback_failure_error_type_id' => :'ad_playback_failure_error_type_id',
|
504
538
|
:'view_content_startup_time' => :'view_content_startup_time',
|
505
539
|
:'ad_preroll_startup_time' => :'ad_preroll_startup_time',
|
506
|
-
:'view_dropped' => :'view_dropped'
|
540
|
+
:'view_dropped' => :'view_dropped',
|
541
|
+
:'client_application_name' => :'client_application_name',
|
542
|
+
:'client_application_version' => :'client_application_version',
|
543
|
+
:'video_affiliate' => :'video_affiliate',
|
544
|
+
:'viewer_plan' => :'viewer_plan',
|
545
|
+
:'viewer_plan_status' => :'viewer_plan_status',
|
546
|
+
:'viewer_plan_category' => :'viewer_plan_category',
|
547
|
+
:'view_drm_level' => :'view_drm_level',
|
548
|
+
:'video_brand' => :'video_brand',
|
549
|
+
:'used_pip' => :'used_pip',
|
550
|
+
:'time_shift_enabled' => :'time_shift_enabled',
|
551
|
+
:'used_captions' => :'used_captions',
|
552
|
+
:'video_codec' => :'video_codec',
|
553
|
+
:'audio_codec' => :'audio_codec',
|
554
|
+
:'video_dynamic_range_type' => :'video_dynamic_range_type',
|
555
|
+
:'view_cdn_edge_pop' => :'view_cdn_edge_pop',
|
556
|
+
:'view_cdn_origin' => :'view_cdn_origin',
|
557
|
+
:'video_creator_id' => :'video_creator_id'
|
507
558
|
}
|
508
559
|
end
|
509
560
|
|
@@ -676,7 +727,24 @@ module MuxRuby
|
|
676
727
|
:'ad_playback_failure_error_type_id' => :'Integer',
|
677
728
|
:'view_content_startup_time' => :'Integer',
|
678
729
|
:'ad_preroll_startup_time' => :'Integer',
|
679
|
-
:'view_dropped' => :'Boolean'
|
730
|
+
:'view_dropped' => :'Boolean',
|
731
|
+
:'client_application_name' => :'String',
|
732
|
+
:'client_application_version' => :'String',
|
733
|
+
:'video_affiliate' => :'String',
|
734
|
+
:'viewer_plan' => :'String',
|
735
|
+
:'viewer_plan_status' => :'String',
|
736
|
+
:'viewer_plan_category' => :'String',
|
737
|
+
:'view_drm_level' => :'String',
|
738
|
+
:'video_brand' => :'String',
|
739
|
+
:'used_pip' => :'Boolean',
|
740
|
+
:'time_shift_enabled' => :'Boolean',
|
741
|
+
:'used_captions' => :'Boolean',
|
742
|
+
:'video_codec' => :'String',
|
743
|
+
:'audio_codec' => :'String',
|
744
|
+
:'video_dynamic_range_type' => :'String',
|
745
|
+
:'view_cdn_edge_pop' => :'String',
|
746
|
+
:'view_cdn_origin' => :'String',
|
747
|
+
:'video_creator_id' => :'String'
|
680
748
|
}
|
681
749
|
end
|
682
750
|
|
@@ -821,6 +889,20 @@ module MuxRuby
|
|
821
889
|
:'ad_playback_failure_error_type_id',
|
822
890
|
:'view_content_startup_time',
|
823
891
|
:'ad_preroll_startup_time',
|
892
|
+
:'client_application_name',
|
893
|
+
:'client_application_version',
|
894
|
+
:'video_affiliate',
|
895
|
+
:'viewer_plan',
|
896
|
+
:'viewer_plan_status',
|
897
|
+
:'viewer_plan_category',
|
898
|
+
:'view_drm_level',
|
899
|
+
:'video_brand',
|
900
|
+
:'video_codec',
|
901
|
+
:'audio_codec',
|
902
|
+
:'video_dynamic_range_type',
|
903
|
+
:'view_cdn_edge_pop',
|
904
|
+
:'view_cdn_origin',
|
905
|
+
:'video_creator_id'
|
824
906
|
])
|
825
907
|
end
|
826
908
|
|
@@ -1488,6 +1570,74 @@ module MuxRuby
|
|
1488
1570
|
if attributes.key?(:'view_dropped')
|
1489
1571
|
self.view_dropped = attributes[:'view_dropped']
|
1490
1572
|
end
|
1573
|
+
|
1574
|
+
if attributes.key?(:'client_application_name')
|
1575
|
+
self.client_application_name = attributes[:'client_application_name']
|
1576
|
+
end
|
1577
|
+
|
1578
|
+
if attributes.key?(:'client_application_version')
|
1579
|
+
self.client_application_version = attributes[:'client_application_version']
|
1580
|
+
end
|
1581
|
+
|
1582
|
+
if attributes.key?(:'video_affiliate')
|
1583
|
+
self.video_affiliate = attributes[:'video_affiliate']
|
1584
|
+
end
|
1585
|
+
|
1586
|
+
if attributes.key?(:'viewer_plan')
|
1587
|
+
self.viewer_plan = attributes[:'viewer_plan']
|
1588
|
+
end
|
1589
|
+
|
1590
|
+
if attributes.key?(:'viewer_plan_status')
|
1591
|
+
self.viewer_plan_status = attributes[:'viewer_plan_status']
|
1592
|
+
end
|
1593
|
+
|
1594
|
+
if attributes.key?(:'viewer_plan_category')
|
1595
|
+
self.viewer_plan_category = attributes[:'viewer_plan_category']
|
1596
|
+
end
|
1597
|
+
|
1598
|
+
if attributes.key?(:'view_drm_level')
|
1599
|
+
self.view_drm_level = attributes[:'view_drm_level']
|
1600
|
+
end
|
1601
|
+
|
1602
|
+
if attributes.key?(:'video_brand')
|
1603
|
+
self.video_brand = attributes[:'video_brand']
|
1604
|
+
end
|
1605
|
+
|
1606
|
+
if attributes.key?(:'used_pip')
|
1607
|
+
self.used_pip = attributes[:'used_pip']
|
1608
|
+
end
|
1609
|
+
|
1610
|
+
if attributes.key?(:'time_shift_enabled')
|
1611
|
+
self.time_shift_enabled = attributes[:'time_shift_enabled']
|
1612
|
+
end
|
1613
|
+
|
1614
|
+
if attributes.key?(:'used_captions')
|
1615
|
+
self.used_captions = attributes[:'used_captions']
|
1616
|
+
end
|
1617
|
+
|
1618
|
+
if attributes.key?(:'video_codec')
|
1619
|
+
self.video_codec = attributes[:'video_codec']
|
1620
|
+
end
|
1621
|
+
|
1622
|
+
if attributes.key?(:'audio_codec')
|
1623
|
+
self.audio_codec = attributes[:'audio_codec']
|
1624
|
+
end
|
1625
|
+
|
1626
|
+
if attributes.key?(:'video_dynamic_range_type')
|
1627
|
+
self.video_dynamic_range_type = attributes[:'video_dynamic_range_type']
|
1628
|
+
end
|
1629
|
+
|
1630
|
+
if attributes.key?(:'view_cdn_edge_pop')
|
1631
|
+
self.view_cdn_edge_pop = attributes[:'view_cdn_edge_pop']
|
1632
|
+
end
|
1633
|
+
|
1634
|
+
if attributes.key?(:'view_cdn_origin')
|
1635
|
+
self.view_cdn_origin = attributes[:'view_cdn_origin']
|
1636
|
+
end
|
1637
|
+
|
1638
|
+
if attributes.key?(:'video_creator_id')
|
1639
|
+
self.video_creator_id = attributes[:'video_creator_id']
|
1640
|
+
end
|
1491
1641
|
end
|
1492
1642
|
|
1493
1643
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -1669,7 +1819,24 @@ module MuxRuby
|
|
1669
1819
|
ad_playback_failure_error_type_id == o.ad_playback_failure_error_type_id &&
|
1670
1820
|
view_content_startup_time == o.view_content_startup_time &&
|
1671
1821
|
ad_preroll_startup_time == o.ad_preroll_startup_time &&
|
1672
|
-
view_dropped == o.view_dropped
|
1822
|
+
view_dropped == o.view_dropped &&
|
1823
|
+
client_application_name == o.client_application_name &&
|
1824
|
+
client_application_version == o.client_application_version &&
|
1825
|
+
video_affiliate == o.video_affiliate &&
|
1826
|
+
viewer_plan == o.viewer_plan &&
|
1827
|
+
viewer_plan_status == o.viewer_plan_status &&
|
1828
|
+
viewer_plan_category == o.viewer_plan_category &&
|
1829
|
+
view_drm_level == o.view_drm_level &&
|
1830
|
+
video_brand == o.video_brand &&
|
1831
|
+
used_pip == o.used_pip &&
|
1832
|
+
time_shift_enabled == o.time_shift_enabled &&
|
1833
|
+
used_captions == o.used_captions &&
|
1834
|
+
video_codec == o.video_codec &&
|
1835
|
+
audio_codec == o.audio_codec &&
|
1836
|
+
video_dynamic_range_type == o.video_dynamic_range_type &&
|
1837
|
+
view_cdn_edge_pop == o.view_cdn_edge_pop &&
|
1838
|
+
view_cdn_origin == o.view_cdn_origin &&
|
1839
|
+
video_creator_id == o.video_creator_id
|
1673
1840
|
end
|
1674
1841
|
|
1675
1842
|
# @see the `==` method
|
@@ -1681,7 +1848,7 @@ module MuxRuby
|
|
1681
1848
|
# Calculates hash code according to all attributes.
|
1682
1849
|
# @return [Integer] Hash code
|
1683
1850
|
def hash
|
1684
|
-
[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, sub_property_id, player_remote_played, view_max_playhead_position, view_playing_time, view_session_id, viewer_connection_type, viewer_device_model, weighted_average_bitrate, custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10, live_stream_latency, asset_id, environment_id, live_stream_id, mux_embed, playback_id, player_error_context, view_drm_type, view_dropped_frame_count, view_has_ad, video_startup_failure, ad_attempt_count, ad_break_count, ad_break_error_count, ad_break_error_percentage, ad_error_count, ad_error_percentage, ad_impression_count, ad_startup_error_count, ad_startup_error_percentage, ad_exit_before_start_count, ad_exit_before_start_percentage, long_resume, long_rebuffering, playback_failure_error_type_id, playback_business_exception_error_type_id, video_startup_business_exception_error_type_id, playback_failure, ad_playback_failure_error_type_id, view_content_startup_time, ad_preroll_startup_time, view_dropped].hash
|
1851
|
+
[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, sub_property_id, player_remote_played, view_max_playhead_position, view_playing_time, view_session_id, viewer_connection_type, viewer_device_model, weighted_average_bitrate, custom_1, custom_2, custom_3, custom_4, custom_5, custom_6, custom_7, custom_8, custom_9, custom_10, live_stream_latency, asset_id, environment_id, live_stream_id, mux_embed, playback_id, player_error_context, view_drm_type, view_dropped_frame_count, view_has_ad, video_startup_failure, ad_attempt_count, ad_break_count, ad_break_error_count, ad_break_error_percentage, ad_error_count, ad_error_percentage, ad_impression_count, ad_startup_error_count, ad_startup_error_percentage, ad_exit_before_start_count, ad_exit_before_start_percentage, long_resume, long_rebuffering, playback_failure_error_type_id, playback_business_exception_error_type_id, video_startup_business_exception_error_type_id, playback_failure, ad_playback_failure_error_type_id, view_content_startup_time, ad_preroll_startup_time, view_dropped, client_application_name, client_application_version, video_affiliate, viewer_plan, viewer_plan_status, viewer_plan_category, view_drm_level, video_brand, used_pip, time_shift_enabled, used_captions, video_codec, audio_codec, video_dynamic_range_type, view_cdn_edge_pop, view_cdn_origin, video_creator_id].hash
|
1685
1852
|
end
|
1686
1853
|
|
1687
1854
|
# Builds the object from hash
|
data/lib/mux_ruby/version.rb
CHANGED
data/lib/mux_ruby.rb
CHANGED
@@ -22,25 +22,20 @@ require 'mux_ruby/models/asset'
|
|
22
22
|
require 'mux_ruby/models/asset_errors'
|
23
23
|
require 'mux_ruby/models/asset_generated_subtitle_settings'
|
24
24
|
require 'mux_ruby/models/asset_master'
|
25
|
+
require 'mux_ruby/models/asset_metadata'
|
25
26
|
require 'mux_ruby/models/asset_non_standard_input_reasons'
|
26
27
|
require 'mux_ruby/models/asset_recording_times'
|
27
28
|
require 'mux_ruby/models/asset_response'
|
28
29
|
require 'mux_ruby/models/asset_static_renditions'
|
29
|
-
require 'mux_ruby/models/asset_static_renditions_files'
|
30
30
|
require 'mux_ruby/models/breakdown_value'
|
31
|
-
require 'mux_ruby/models/broadcast'
|
32
|
-
require 'mux_ruby/models/broadcast_layout'
|
33
|
-
require 'mux_ruby/models/broadcast_resolution'
|
34
|
-
require 'mux_ruby/models/broadcast_response'
|
35
|
-
require 'mux_ruby/models/broadcast_status'
|
36
31
|
require 'mux_ruby/models/create_asset_request'
|
37
|
-
require 'mux_ruby/models/create_broadcast_request'
|
38
32
|
require 'mux_ruby/models/create_live_stream_request'
|
39
33
|
require 'mux_ruby/models/create_playback_id_request'
|
40
34
|
require 'mux_ruby/models/create_playback_id_response'
|
41
35
|
require 'mux_ruby/models/create_playback_restriction_request'
|
42
36
|
require 'mux_ruby/models/create_simulcast_target_request'
|
43
|
-
require 'mux_ruby/models/
|
37
|
+
require 'mux_ruby/models/create_static_rendition_request'
|
38
|
+
require 'mux_ruby/models/create_static_rendition_response'
|
44
39
|
require 'mux_ruby/models/create_track_request'
|
45
40
|
require 'mux_ruby/models/create_track_response'
|
46
41
|
require 'mux_ruby/models/create_transcription_vocabulary_request'
|
@@ -112,7 +107,6 @@ require 'mux_ruby/models/list_real_time_dimensions_response'
|
|
112
107
|
require 'mux_ruby/models/list_real_time_metrics_response'
|
113
108
|
require 'mux_ruby/models/list_related_incidents_response'
|
114
109
|
require 'mux_ruby/models/list_signing_keys_response'
|
115
|
-
require 'mux_ruby/models/list_spaces_response'
|
116
110
|
require 'mux_ruby/models/list_transcription_vocabularies_response'
|
117
111
|
require 'mux_ruby/models/list_uploads_response'
|
118
112
|
require 'mux_ruby/models/list_video_view_exports_response'
|
@@ -151,12 +145,7 @@ require 'mux_ruby/models/signing_key'
|
|
151
145
|
require 'mux_ruby/models/signing_key_response'
|
152
146
|
require 'mux_ruby/models/simulcast_target'
|
153
147
|
require 'mux_ruby/models/simulcast_target_response'
|
154
|
-
require 'mux_ruby/models/
|
155
|
-
require 'mux_ruby/models/space_response'
|
156
|
-
require 'mux_ruby/models/space_status'
|
157
|
-
require 'mux_ruby/models/space_type'
|
158
|
-
require 'mux_ruby/models/start_space_broadcast_response'
|
159
|
-
require 'mux_ruby/models/stop_space_broadcast_response'
|
148
|
+
require 'mux_ruby/models/static_rendition'
|
160
149
|
require 'mux_ruby/models/track'
|
161
150
|
require 'mux_ruby/models/transcription_vocabulary'
|
162
151
|
require 'mux_ruby/models/transcription_vocabulary_response'
|
@@ -166,6 +155,7 @@ require 'mux_ruby/models/update_asset_request'
|
|
166
155
|
require 'mux_ruby/models/update_live_stream_embedded_subtitles_request'
|
167
156
|
require 'mux_ruby/models/update_live_stream_generated_subtitles_request'
|
168
157
|
require 'mux_ruby/models/update_live_stream_new_asset_settings'
|
158
|
+
require 'mux_ruby/models/update_live_stream_new_asset_settings_static_renditions_request'
|
169
159
|
require 'mux_ruby/models/update_live_stream_request'
|
170
160
|
require 'mux_ruby/models/update_referrer_domain_restriction_request'
|
171
161
|
require 'mux_ruby/models/update_transcription_vocabulary_request'
|
@@ -199,7 +189,6 @@ require 'mux_ruby/api/playback_id_api'
|
|
199
189
|
require 'mux_ruby/api/playback_restrictions_api'
|
200
190
|
require 'mux_ruby/api/real_time_api'
|
201
191
|
require 'mux_ruby/api/signing_keys_api'
|
202
|
-
require 'mux_ruby/api/spaces_api'
|
203
192
|
require 'mux_ruby/api/transcription_vocabularies_api'
|
204
193
|
require 'mux_ruby/api/url_signing_keys_api'
|
205
194
|
require 'mux_ruby/api/video_views_api'
|
@@ -0,0 +1,46 @@
|
|
1
|
+
=begin
|
2
|
+
#Mux API
|
3
|
+
|
4
|
+
#Mux is how developers build online video. This API encompasses both Mux Video and Mux Data functionality to help you build your video-related projects better and faster than ever before.
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v1
|
7
|
+
Contact: devex@mux.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 5.0.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'spec_helper'
|
14
|
+
require 'json'
|
15
|
+
require 'date'
|
16
|
+
|
17
|
+
# Unit tests for MuxRuby::AssetMetadata
|
18
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
19
|
+
# Please update as you see appropriate
|
20
|
+
describe MuxRuby::AssetMetadata do
|
21
|
+
let(:instance) { MuxRuby::AssetMetadata.new }
|
22
|
+
|
23
|
+
describe 'test an instance of AssetMetadata' do
|
24
|
+
it 'should create an instance of AssetMetadata' do
|
25
|
+
expect(instance).to be_instance_of(MuxRuby::AssetMetadata)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
describe 'test attribute "title"' 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 "creator_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 "external_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
|
+
end
|