mux_ruby 4.0.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/CreateAssetRequest.md +11 -5
- data/docs/CreateLiveStreamRequest.md +4 -2
- data/docs/PlaybackRestrictionsApi.md +1 -1
- data/docs/UpdateAssetRequest.md +4 -2
- data/docs/UpdateLiveStreamNewAssetSettings.md +3 -1
- data/docs/UpdateReferrerDomainRestrictionRequest.md +10 -37
- data/docs/Upload.md +1 -1
- data/docs/VideoView.md +3 -1
- data/examples/video/exercise-assets.rb +1 -1
- data/gen/generator-config.json +1 -1
- data/lib/mux_ruby/api/metrics_api.rb +2 -2
- data/lib/mux_ruby/models/asset.rb +14 -5
- data/lib/mux_ruby/models/asset_metadata.rb +284 -0
- data/lib/mux_ruby/models/create_asset_request.rb +41 -8
- data/lib/mux_ruby/models/create_live_stream_request.rb +15 -2
- data/lib/mux_ruby/models/update_asset_request.rb +14 -5
- data/lib/mux_ruby/models/update_live_stream_new_asset_settings.rb +13 -4
- 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 +15 -5
- data/lib/mux_ruby/version.rb +1 -1
- data/lib/mux_ruby.rb +1 -0
- data/spec/models/asset_metadata_spec.rb +46 -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 +6 -6
- 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 +16 -16
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +6 -6
- 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 +4 -4
- 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 +169 -165
@@ -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',
|
@@ -371,6 +371,8 @@ module MuxRuby
|
|
371
371
|
|
372
372
|
attr_accessor :view_cdn_origin
|
373
373
|
|
374
|
+
attr_accessor :video_creator_id
|
375
|
+
|
374
376
|
# Attribute mapping from ruby-style variable name to JSON key.
|
375
377
|
def self.attribute_map
|
376
378
|
{
|
@@ -551,7 +553,8 @@ module MuxRuby
|
|
551
553
|
:'audio_codec' => :'audio_codec',
|
552
554
|
:'video_dynamic_range_type' => :'video_dynamic_range_type',
|
553
555
|
:'view_cdn_edge_pop' => :'view_cdn_edge_pop',
|
554
|
-
:'view_cdn_origin' => :'view_cdn_origin'
|
556
|
+
:'view_cdn_origin' => :'view_cdn_origin',
|
557
|
+
:'video_creator_id' => :'video_creator_id'
|
555
558
|
}
|
556
559
|
end
|
557
560
|
|
@@ -740,7 +743,8 @@ module MuxRuby
|
|
740
743
|
:'audio_codec' => :'String',
|
741
744
|
:'video_dynamic_range_type' => :'String',
|
742
745
|
:'view_cdn_edge_pop' => :'String',
|
743
|
-
:'view_cdn_origin' => :'String'
|
746
|
+
:'view_cdn_origin' => :'String',
|
747
|
+
:'video_creator_id' => :'String'
|
744
748
|
}
|
745
749
|
end
|
746
750
|
|
@@ -897,7 +901,8 @@ module MuxRuby
|
|
897
901
|
:'audio_codec',
|
898
902
|
:'video_dynamic_range_type',
|
899
903
|
:'view_cdn_edge_pop',
|
900
|
-
:'view_cdn_origin'
|
904
|
+
:'view_cdn_origin',
|
905
|
+
:'video_creator_id'
|
901
906
|
])
|
902
907
|
end
|
903
908
|
|
@@ -1629,6 +1634,10 @@ module MuxRuby
|
|
1629
1634
|
if attributes.key?(:'view_cdn_origin')
|
1630
1635
|
self.view_cdn_origin = attributes[:'view_cdn_origin']
|
1631
1636
|
end
|
1637
|
+
|
1638
|
+
if attributes.key?(:'video_creator_id')
|
1639
|
+
self.video_creator_id = attributes[:'video_creator_id']
|
1640
|
+
end
|
1632
1641
|
end
|
1633
1642
|
|
1634
1643
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -1826,7 +1835,8 @@ module MuxRuby
|
|
1826
1835
|
audio_codec == o.audio_codec &&
|
1827
1836
|
video_dynamic_range_type == o.video_dynamic_range_type &&
|
1828
1837
|
view_cdn_edge_pop == o.view_cdn_edge_pop &&
|
1829
|
-
view_cdn_origin == o.view_cdn_origin
|
1838
|
+
view_cdn_origin == o.view_cdn_origin &&
|
1839
|
+
video_creator_id == o.video_creator_id
|
1830
1840
|
end
|
1831
1841
|
|
1832
1842
|
# @see the `==` method
|
@@ -1838,7 +1848,7 @@ module MuxRuby
|
|
1838
1848
|
# Calculates hash code according to all attributes.
|
1839
1849
|
# @return [Integer] Hash code
|
1840
1850
|
def hash
|
1841
|
-
[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].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
|
1842
1852
|
end
|
1843
1853
|
|
1844
1854
|
# Builds the object from hash
|
data/lib/mux_ruby/version.rb
CHANGED
data/lib/mux_ruby.rb
CHANGED
@@ -22,6 +22,7 @@ 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'
|
@@ -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
|
Binary file
|
@@ -1,12 +1,12 @@
|
|
1
1
|
current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
|
2
|
-
/opt/hostedtoolcache/Ruby/3.2.
|
2
|
+
/opt/hostedtoolcache/Ruby/3.2.8/x64/bin/ruby extconf.rb
|
3
3
|
creating Makefile
|
4
4
|
|
5
5
|
current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
|
6
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
6
|
+
make DESTDIR\= sitearchdir\=./.gem.20250331-1869-45aaoh sitelibdir\=./.gem.20250331-1869-45aaoh clean
|
7
7
|
|
8
8
|
current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
|
9
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
9
|
+
make DESTDIR\= sitearchdir\=./.gem.20250331-1869-45aaoh sitelibdir\=./.gem.20250331-1869-45aaoh
|
10
10
|
compiling breakpoint.c
|
11
11
|
compiling byebug.c
|
12
12
|
byebug.c: In function ‘check_started’:
|
@@ -35,8 +35,8 @@ compiling threads.c
|
|
35
35
|
linking shared-object byebug/byebug.so
|
36
36
|
|
37
37
|
current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
|
38
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
39
|
-
/usr/bin/install -c -m 0755 byebug.so ./.gem.
|
38
|
+
make DESTDIR\= sitearchdir\=./.gem.20250331-1869-45aaoh sitelibdir\=./.gem.20250331-1869-45aaoh install
|
39
|
+
/usr/bin/install -c -m 0755 byebug.so ./.gem.20250331-1869-45aaoh/byebug
|
40
40
|
|
41
41
|
current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
|
42
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
42
|
+
make DESTDIR\= sitearchdir\=./.gem.20250331-1869-45aaoh sitelibdir\=./.gem.20250331-1869-45aaoh clean
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/ext/ffi_c
|
2
|
-
/opt/hostedtoolcache/Ruby/3.2.
|
2
|
+
/opt/hostedtoolcache/Ruby/3.2.8/x64/bin/ruby extconf.rb
|
3
3
|
checking for ffi_prep_closure_loc() in -lffi... yes
|
4
4
|
checking for ffi_prep_cif_var()... yes
|
5
5
|
checking for ffi_raw_call()... yes
|
@@ -10,10 +10,10 @@ creating extconf.h
|
|
10
10
|
creating Makefile
|
11
11
|
|
12
12
|
current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/ext/ffi_c
|
13
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
13
|
+
make DESTDIR\= sitearchdir\=./.gem.20250331-1869-ntdd83 sitelibdir\=./.gem.20250331-1869-ntdd83 clean
|
14
14
|
|
15
15
|
current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/ext/ffi_c
|
16
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
16
|
+
make DESTDIR\= sitearchdir\=./.gem.20250331-1869-ntdd83 sitelibdir\=./.gem.20250331-1869-ntdd83
|
17
17
|
compiling AbstractMemory.c
|
18
18
|
compiling ArrayType.c
|
19
19
|
compiling Buffer.c
|
@@ -40,8 +40,8 @@ compiling ffi.c
|
|
40
40
|
linking shared-object ffi_c.so
|
41
41
|
|
42
42
|
current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/ext/ffi_c
|
43
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
44
|
-
/usr/bin/install -c -m 0755 ffi_c.so ./.gem.
|
43
|
+
make DESTDIR\= sitearchdir\=./.gem.20250331-1869-ntdd83 sitelibdir\=./.gem.20250331-1869-ntdd83 install
|
44
|
+
/usr/bin/install -c -m 0755 ffi_c.so ./.gem.20250331-1869-ntdd83
|
45
45
|
|
46
46
|
current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/ext/ffi_c
|
47
|
-
make DESTDIR\= sitearchdir\=./.gem.
|
47
|
+
make DESTDIR\= sitearchdir\=./.gem.20250331-1869-ntdd83 sitelibdir\=./.gem.20250331-1869-ntdd83 clean
|