mux_ruby 3.12.0 → 3.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +4 -4
- data/docs/AbridgedVideoView.md +5 -1
- data/docs/DimensionsApi.md +2 -0
- data/docs/ErrorsApi.md +2 -0
- data/docs/InputSettings.md +1 -1
- data/docs/LiveStream.md +3 -1
- data/docs/MetricsApi.md +13 -1
- data/docs/ReferrerDomainRestriction.md +1 -1
- data/docs/Track.md +3 -1
- data/docs/VideoView.md +23 -1
- data/docs/VideoViewsApi.md +2 -0
- data/gen/generator-config.json +1 -1
- data/lib/mux_ruby/api/dimensions_api.rb +3 -0
- data/lib/mux_ruby/api/errors_api.rb +3 -0
- data/lib/mux_ruby/api/metrics_api.rb +24 -6
- data/lib/mux_ruby/api/video_views_api.rb +3 -0
- data/lib/mux_ruby/models/abridged_video_view.rb +24 -4
- data/lib/mux_ruby/models/asset_generated_subtitle_settings.rb +2 -2
- data/lib/mux_ruby/models/input_settings.rb +1 -1
- data/lib/mux_ruby/models/live_stream.rb +14 -4
- data/lib/mux_ruby/models/referrer_domain_restriction.rb +1 -1
- data/lib/mux_ruby/models/track.rb +14 -4
- data/lib/mux_ruby/models/video_view.rb +112 -2
- data/lib/mux_ruby/version.rb +1 -1
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.4/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/gem_make.out +5 -5
- data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/gem_make.out +5 -5
- metadata +152 -152
@@ -25,6 +25,7 @@ module MuxRuby
|
|
25
25
|
# @param [Hash] opts the optional parameters
|
26
26
|
# @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. `timeframe[]=1498867200&timeframe[]=1498953600` * duration string e.g. `timeframe[]=24:hours or timeframe[]=7:days`
|
27
27
|
# @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
|
28
|
+
# @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
|
28
29
|
# @option opts [String] :measurement Measurement for the provided metric. If omitted, the default for the metric will be used.
|
29
30
|
# @option opts [String] :order_direction Sort order.
|
30
31
|
# @option opts [String] :group_by Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of less than 90 minutes, the default granularity is `minute`. Between 90 minutes and 6 hours, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity.
|
@@ -40,6 +41,7 @@ module MuxRuby
|
|
40
41
|
# @param [Hash] opts the optional parameters
|
41
42
|
# @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. `timeframe[]=1498867200&timeframe[]=1498953600` * duration string e.g. `timeframe[]=24:hours or timeframe[]=7:days`
|
42
43
|
# @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
|
44
|
+
# @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
|
43
45
|
# @option opts [String] :measurement Measurement for the provided metric. If omitted, the default for the metric will be used.
|
44
46
|
# @option opts [String] :order_direction Sort order.
|
45
47
|
# @option opts [String] :group_by Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of less than 90 minutes, the default granularity is `minute`. Between 90 minutes and 6 hours, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity.
|
@@ -53,7 +55,7 @@ module MuxRuby
|
|
53
55
|
fail ArgumentError, "Missing the required parameter 'metric_id' when calling MetricsApi.get_metric_timeseries_data"
|
54
56
|
end
|
55
57
|
# verify enum value
|
56
|
-
allowable_values = ["aggregate_startup_time", "downscale_percentage", "exits_before_video_start", "live_stream_latency", "max_downscale_percentage", "max_upscale_percentage", "page_load_time", "playback_failure_percentage", "
|
58
|
+
allowable_values = ["aggregate_startup_time", "downscale_percentage", "exits_before_video_start", "live_stream_latency", "max_downscale_percentage", "max_request_latency", "max_upscale_percentage", "page_load_time", "playback_failure_percentage", "playback_success_score", "player_startup_time", "playing_time", "rebuffer_count", "rebuffer_duration", "rebuffer_frequency", "rebuffer_percentage", "request_latency", "request_throughput", "rebuffer_score", "requests_for_first_preroll", "seek_latency", "startup_time_score", "unique_viewers", "upscale_percentage", "video_quality_score", "video_startup_preroll_load_time", "video_startup_preroll_request_time", "video_startup_time", "viewer_experience_score", "views", "weighted_average_bitrate", "video_startup_failure_percentage", "ad_attempt_count", "ad_break_count", "ad_break_error_count", "ad_break_error_percentage", "ad_error_count", "ad_error_percentage", "ad_exit_before_start_count", "ad_exit_before_start_percentage", "ad_impression_count", "ad_startup_error_count", "ad_startup_error_percentage"]
|
57
59
|
if @api_client.config.client_side_validation && !allowable_values.include?(metric_id)
|
58
60
|
fail ArgumentError, "invalid value for \"metric_id\", must be one of #{allowable_values}"
|
59
61
|
end
|
@@ -76,6 +78,7 @@ module MuxRuby
|
|
76
78
|
query_params = opts[:query_params] || {}
|
77
79
|
query_params[:'timeframe[]'] = @api_client.build_collection_param(opts[:'timeframe'], :multi) if !opts[:'timeframe'].nil?
|
78
80
|
query_params[:'filters[]'] = @api_client.build_collection_param(opts[:'filters'], :multi) if !opts[:'filters'].nil?
|
81
|
+
query_params[:'metric_filters[]'] = @api_client.build_collection_param(opts[:'metric_filters'], :multi) if !opts[:'metric_filters'].nil?
|
79
82
|
query_params[:'measurement'] = opts[:'measurement'] if !opts[:'measurement'].nil?
|
80
83
|
query_params[:'order_direction'] = opts[:'order_direction'] if !opts[:'order_direction'].nil?
|
81
84
|
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
@@ -120,6 +123,7 @@ module MuxRuby
|
|
120
123
|
# @param [Hash] opts the optional parameters
|
121
124
|
# @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. `timeframe[]=1498867200&timeframe[]=1498953600` * duration string e.g. `timeframe[]=24:hours or timeframe[]=7:days`
|
122
125
|
# @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
|
126
|
+
# @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
|
123
127
|
# @option opts [String] :measurement Measurement for the provided metric. If omitted, the default for the metric will be used.
|
124
128
|
# @return [GetOverallValuesResponse]
|
125
129
|
def get_overall_values(metric_id, opts = {})
|
@@ -133,6 +137,7 @@ module MuxRuby
|
|
133
137
|
# @param [Hash] opts the optional parameters
|
134
138
|
# @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. `timeframe[]=1498867200&timeframe[]=1498953600` * duration string e.g. `timeframe[]=24:hours or timeframe[]=7:days`
|
135
139
|
# @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
|
140
|
+
# @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
|
136
141
|
# @option opts [String] :measurement Measurement for the provided metric. If omitted, the default for the metric will be used.
|
137
142
|
# @return [Array<(GetOverallValuesResponse, Integer, Hash)>] GetOverallValuesResponse data, response status code and response headers
|
138
143
|
def get_overall_values_with_http_info(metric_id, opts = {})
|
@@ -144,7 +149,7 @@ module MuxRuby
|
|
144
149
|
fail ArgumentError, "Missing the required parameter 'metric_id' when calling MetricsApi.get_overall_values"
|
145
150
|
end
|
146
151
|
# verify enum value
|
147
|
-
allowable_values = ["aggregate_startup_time", "downscale_percentage", "exits_before_video_start", "live_stream_latency", "max_downscale_percentage", "max_upscale_percentage", "page_load_time", "playback_failure_percentage", "
|
152
|
+
allowable_values = ["aggregate_startup_time", "downscale_percentage", "exits_before_video_start", "live_stream_latency", "max_downscale_percentage", "max_request_latency", "max_upscale_percentage", "page_load_time", "playback_failure_percentage", "playback_success_score", "player_startup_time", "playing_time", "rebuffer_count", "rebuffer_duration", "rebuffer_frequency", "rebuffer_percentage", "request_latency", "request_throughput", "rebuffer_score", "requests_for_first_preroll", "seek_latency", "startup_time_score", "unique_viewers", "upscale_percentage", "video_quality_score", "video_startup_preroll_load_time", "video_startup_preroll_request_time", "video_startup_time", "viewer_experience_score", "views", "weighted_average_bitrate", "video_startup_failure_percentage", "ad_attempt_count", "ad_break_count", "ad_break_error_count", "ad_break_error_percentage", "ad_error_count", "ad_error_percentage", "ad_exit_before_start_count", "ad_exit_before_start_percentage", "ad_impression_count", "ad_startup_error_count", "ad_startup_error_percentage"]
|
148
153
|
if @api_client.config.client_side_validation && !allowable_values.include?(metric_id)
|
149
154
|
fail ArgumentError, "invalid value for \"metric_id\", must be one of #{allowable_values}"
|
150
155
|
end
|
@@ -159,6 +164,7 @@ module MuxRuby
|
|
159
164
|
query_params = opts[:query_params] || {}
|
160
165
|
query_params[:'timeframe[]'] = @api_client.build_collection_param(opts[:'timeframe'], :multi) if !opts[:'timeframe'].nil?
|
161
166
|
query_params[:'filters[]'] = @api_client.build_collection_param(opts[:'filters'], :multi) if !opts[:'filters'].nil?
|
167
|
+
query_params[:'metric_filters[]'] = @api_client.build_collection_param(opts[:'metric_filters'], :multi) if !opts[:'metric_filters'].nil?
|
162
168
|
query_params[:'measurement'] = opts[:'measurement'] if !opts[:'measurement'].nil?
|
163
169
|
|
164
170
|
# header parameters
|
@@ -200,6 +206,7 @@ module MuxRuby
|
|
200
206
|
# @param [Hash] opts the optional parameters
|
201
207
|
# @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. `timeframe[]=1498867200&timeframe[]=1498953600` * duration string e.g. `timeframe[]=24:hours or timeframe[]=7:days`
|
202
208
|
# @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
|
209
|
+
# @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
|
203
210
|
# @option opts [String] :dimension Dimension the specified value belongs to
|
204
211
|
# @option opts [String] :value Value to show all available metrics for
|
205
212
|
# @return [ListAllMetricValuesResponse]
|
@@ -213,6 +220,7 @@ module MuxRuby
|
|
213
220
|
# @param [Hash] opts the optional parameters
|
214
221
|
# @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. `timeframe[]=1498867200&timeframe[]=1498953600` * duration string e.g. `timeframe[]=24:hours or timeframe[]=7:days`
|
215
222
|
# @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
|
223
|
+
# @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
|
216
224
|
# @option opts [String] :dimension Dimension the specified value belongs to
|
217
225
|
# @option opts [String] :value Value to show all available metrics for
|
218
226
|
# @return [Array<(ListAllMetricValuesResponse, Integer, Hash)>] ListAllMetricValuesResponse data, response status code and response headers
|
@@ -220,7 +228,7 @@ module MuxRuby
|
|
220
228
|
if @api_client.config.debugging
|
221
229
|
@api_client.config.logger.debug 'Calling API: MetricsApi.list_all_metric_values ...'
|
222
230
|
end
|
223
|
-
allowable_values = ["asn", "asset_id", "browser", "browser_version", "cdn", "continent_code", "country", "custom_1", "custom_2", "custom_3", "custom_4", "custom_5", "custom_6", "custom_7", "custom_8", "custom_9", "custom_10", "exit_before_video_start", "experiment_name", "live_stream_id", "operating_system", "operating_system_version", "playback_id", "player_autoplay", "player_error_code", "player_mux_plugin_name", "player_mux_plugin_version", "player_name", "player_preload", "player_remote_played", "player_software", "player_software_version", "player_version", "preroll_ad_asset_hostname", "preroll_ad_tag_hostname", "preroll_played", "preroll_requested", "region", "source_hostname", "source_type", "stream_type", "sub_property_id", "video_encoding_variant", "video_id", "video_series", "video_startup_failure", "video_title", "view_drm_type", "view_has_ad", "view_session_id", "viewer_connection_type", "viewer_device_category", "viewer_device_manufacturer", "viewer_device_model", "viewer_device_name", "viewer_user_id"]
|
231
|
+
allowable_values = ["asn", "asset_id", "browser", "browser_version", "cdn", "continent_code", "country", "custom_1", "custom_2", "custom_3", "custom_4", "custom_5", "custom_6", "custom_7", "custom_8", "custom_9", "custom_10", "exit_before_video_start", "experiment_name", "live_stream_id", "operating_system", "operating_system_version", "page_type", "playback_id", "player_autoplay", "player_error_code", "player_mux_plugin_name", "player_mux_plugin_version", "player_name", "player_preload", "player_remote_played", "player_software", "player_software_version", "player_version", "preroll_ad_asset_hostname", "preroll_ad_tag_hostname", "preroll_played", "preroll_requested", "region", "source_hostname", "source_type", "stream_type", "sub_property_id", "video_content_type", "video_encoding_variant", "video_id", "video_series", "video_startup_failure", "video_title", "view_drm_type", "view_has_ad", "view_session_id", "viewer_connection_type", "viewer_device_category", "viewer_device_manufacturer", "viewer_device_model", "viewer_device_name", "viewer_user_id"]
|
224
232
|
if @api_client.config.client_side_validation && opts[:'dimension'] && !allowable_values.include?(opts[:'dimension'])
|
225
233
|
fail ArgumentError, "invalid value for \"dimension\", must be one of #{allowable_values}"
|
226
234
|
end
|
@@ -231,6 +239,7 @@ module MuxRuby
|
|
231
239
|
query_params = opts[:query_params] || {}
|
232
240
|
query_params[:'timeframe[]'] = @api_client.build_collection_param(opts[:'timeframe'], :multi) if !opts[:'timeframe'].nil?
|
233
241
|
query_params[:'filters[]'] = @api_client.build_collection_param(opts[:'filters'], :multi) if !opts[:'filters'].nil?
|
242
|
+
query_params[:'metric_filters[]'] = @api_client.build_collection_param(opts[:'metric_filters'], :multi) if !opts[:'metric_filters'].nil?
|
234
243
|
query_params[:'dimension'] = opts[:'dimension'] if !opts[:'dimension'].nil?
|
235
244
|
query_params[:'value'] = opts[:'value'] if !opts[:'value'].nil?
|
236
245
|
|
@@ -275,6 +284,7 @@ module MuxRuby
|
|
275
284
|
# @option opts [String] :group_by Breakdown value to group the results by
|
276
285
|
# @option opts [String] :measurement Measurement for the provided metric. If omitted, the default for the metric will be used.
|
277
286
|
# @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
|
287
|
+
# @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
|
278
288
|
# @option opts [Integer] :limit Number of items to include in the response (default to 25)
|
279
289
|
# @option opts [Integer] :page Offset by this many pages, of the size of `limit` (default to 1)
|
280
290
|
# @option opts [String] :order_by Value to order the results by
|
@@ -293,6 +303,7 @@ module MuxRuby
|
|
293
303
|
# @option opts [String] :group_by Breakdown value to group the results by
|
294
304
|
# @option opts [String] :measurement Measurement for the provided metric. If omitted, the default for the metric will be used.
|
295
305
|
# @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
|
306
|
+
# @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
|
296
307
|
# @option opts [Integer] :limit Number of items to include in the response
|
297
308
|
# @option opts [Integer] :page Offset by this many pages, of the size of `limit`
|
298
309
|
# @option opts [String] :order_by Value to order the results by
|
@@ -308,11 +319,11 @@ module MuxRuby
|
|
308
319
|
fail ArgumentError, "Missing the required parameter 'metric_id' when calling MetricsApi.list_breakdown_values"
|
309
320
|
end
|
310
321
|
# verify enum value
|
311
|
-
allowable_values = ["aggregate_startup_time", "downscale_percentage", "exits_before_video_start", "live_stream_latency", "max_downscale_percentage", "max_upscale_percentage", "page_load_time", "playback_failure_percentage", "
|
322
|
+
allowable_values = ["aggregate_startup_time", "downscale_percentage", "exits_before_video_start", "live_stream_latency", "max_downscale_percentage", "max_request_latency", "max_upscale_percentage", "page_load_time", "playback_failure_percentage", "playback_success_score", "player_startup_time", "playing_time", "rebuffer_count", "rebuffer_duration", "rebuffer_frequency", "rebuffer_percentage", "request_latency", "request_throughput", "rebuffer_score", "requests_for_first_preroll", "seek_latency", "startup_time_score", "unique_viewers", "upscale_percentage", "video_quality_score", "video_startup_preroll_load_time", "video_startup_preroll_request_time", "video_startup_time", "viewer_experience_score", "views", "weighted_average_bitrate", "video_startup_failure_percentage", "ad_attempt_count", "ad_break_count", "ad_break_error_count", "ad_break_error_percentage", "ad_error_count", "ad_error_percentage", "ad_exit_before_start_count", "ad_exit_before_start_percentage", "ad_impression_count", "ad_startup_error_count", "ad_startup_error_percentage"]
|
312
323
|
if @api_client.config.client_side_validation && !allowable_values.include?(metric_id)
|
313
324
|
fail ArgumentError, "invalid value for \"metric_id\", must be one of #{allowable_values}"
|
314
325
|
end
|
315
|
-
allowable_values = ["asn", "asset_id", "browser", "browser_version", "cdn", "continent_code", "country", "custom_1", "custom_2", "custom_3", "custom_4", "custom_5", "custom_6", "custom_7", "custom_8", "custom_9", "custom_10", "exit_before_video_start", "experiment_name", "live_stream_id", "operating_system", "operating_system_version", "playback_id", "player_autoplay", "player_error_code", "player_mux_plugin_name", "player_mux_plugin_version", "player_name", "player_preload", "player_remote_played", "player_software", "player_software_version", "player_version", "preroll_ad_asset_hostname", "preroll_ad_tag_hostname", "preroll_played", "preroll_requested", "region", "source_hostname", "source_type", "stream_type", "sub_property_id", "video_encoding_variant", "video_id", "video_series", "video_startup_failure", "video_title", "view_drm_type", "view_has_ad", "view_session_id", "viewer_connection_type", "viewer_device_category", "viewer_device_manufacturer", "viewer_device_model", "viewer_device_name", "viewer_user_id"]
|
326
|
+
allowable_values = ["asn", "asset_id", "browser", "browser_version", "cdn", "continent_code", "country", "custom_1", "custom_2", "custom_3", "custom_4", "custom_5", "custom_6", "custom_7", "custom_8", "custom_9", "custom_10", "exit_before_video_start", "experiment_name", "live_stream_id", "operating_system", "operating_system_version", "page_type", "playback_id", "player_autoplay", "player_error_code", "player_mux_plugin_name", "player_mux_plugin_version", "player_name", "player_preload", "player_remote_played", "player_software", "player_software_version", "player_version", "preroll_ad_asset_hostname", "preroll_ad_tag_hostname", "preroll_played", "preroll_requested", "region", "source_hostname", "source_type", "stream_type", "sub_property_id", "video_content_type", "video_encoding_variant", "video_id", "video_series", "video_startup_failure", "video_title", "view_drm_type", "view_has_ad", "view_session_id", "viewer_connection_type", "viewer_device_category", "viewer_device_manufacturer", "viewer_device_model", "viewer_device_name", "viewer_user_id"]
|
316
327
|
if @api_client.config.client_side_validation && opts[:'group_by'] && !allowable_values.include?(opts[:'group_by'])
|
317
328
|
fail ArgumentError, "invalid value for \"group_by\", must be one of #{allowable_values}"
|
318
329
|
end
|
@@ -336,6 +347,7 @@ module MuxRuby
|
|
336
347
|
query_params[:'group_by'] = opts[:'group_by'] if !opts[:'group_by'].nil?
|
337
348
|
query_params[:'measurement'] = opts[:'measurement'] if !opts[:'measurement'].nil?
|
338
349
|
query_params[:'filters[]'] = @api_client.build_collection_param(opts[:'filters'], :multi) if !opts[:'filters'].nil?
|
350
|
+
query_params[:'metric_filters[]'] = @api_client.build_collection_param(opts[:'metric_filters'], :multi) if !opts[:'metric_filters'].nil?
|
339
351
|
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
340
352
|
query_params[:'page'] = opts[:'page'] if !opts[:'page'].nil?
|
341
353
|
query_params[:'order_by'] = opts[:'order_by'] if !opts[:'order_by'].nil?
|
@@ -383,6 +395,8 @@ module MuxRuby
|
|
383
395
|
# @option opts [String] :measurement Measurement for the provided metric. If omitted, the default for the metric will be used.
|
384
396
|
# @option opts [String] :order_direction Sort order.
|
385
397
|
# @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. `timeframe[]=1498867200&timeframe[]=1498953600` * duration string e.g. `timeframe[]=24:hours or timeframe[]=7:days`
|
398
|
+
# @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
|
399
|
+
# @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
|
386
400
|
# @return [ListInsightsResponse]
|
387
401
|
def list_insights(metric_id, opts = {})
|
388
402
|
data, _status_code, _headers = list_insights_with_http_info(metric_id, opts)
|
@@ -396,6 +410,8 @@ module MuxRuby
|
|
396
410
|
# @option opts [String] :measurement Measurement for the provided metric. If omitted, the default for the metric will be used.
|
397
411
|
# @option opts [String] :order_direction Sort order.
|
398
412
|
# @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. `timeframe[]=1498867200&timeframe[]=1498953600` * duration string e.g. `timeframe[]=24:hours or timeframe[]=7:days`
|
413
|
+
# @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
|
414
|
+
# @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
|
399
415
|
# @return [Array<(ListInsightsResponse, Integer, Hash)>] ListInsightsResponse data, response status code and response headers
|
400
416
|
def list_insights_with_http_info(metric_id, opts = {})
|
401
417
|
if @api_client.config.debugging
|
@@ -406,7 +422,7 @@ module MuxRuby
|
|
406
422
|
fail ArgumentError, "Missing the required parameter 'metric_id' when calling MetricsApi.list_insights"
|
407
423
|
end
|
408
424
|
# verify enum value
|
409
|
-
allowable_values = ["aggregate_startup_time", "downscale_percentage", "exits_before_video_start", "live_stream_latency", "max_downscale_percentage", "max_upscale_percentage", "page_load_time", "playback_failure_percentage", "
|
425
|
+
allowable_values = ["aggregate_startup_time", "downscale_percentage", "exits_before_video_start", "live_stream_latency", "max_downscale_percentage", "max_request_latency", "max_upscale_percentage", "page_load_time", "playback_failure_percentage", "playback_success_score", "player_startup_time", "playing_time", "rebuffer_count", "rebuffer_duration", "rebuffer_frequency", "rebuffer_percentage", "request_latency", "request_throughput", "rebuffer_score", "requests_for_first_preroll", "seek_latency", "startup_time_score", "unique_viewers", "upscale_percentage", "video_quality_score", "video_startup_preroll_load_time", "video_startup_preroll_request_time", "video_startup_time", "viewer_experience_score", "views", "weighted_average_bitrate", "video_startup_failure_percentage", "ad_attempt_count", "ad_break_count", "ad_break_error_count", "ad_break_error_percentage", "ad_error_count", "ad_error_percentage", "ad_exit_before_start_count", "ad_exit_before_start_percentage", "ad_impression_count", "ad_startup_error_count", "ad_startup_error_percentage"]
|
410
426
|
if @api_client.config.client_side_validation && !allowable_values.include?(metric_id)
|
411
427
|
fail ArgumentError, "invalid value for \"metric_id\", must be one of #{allowable_values}"
|
412
428
|
end
|
@@ -426,6 +442,8 @@ module MuxRuby
|
|
426
442
|
query_params[:'measurement'] = opts[:'measurement'] if !opts[:'measurement'].nil?
|
427
443
|
query_params[:'order_direction'] = opts[:'order_direction'] if !opts[:'order_direction'].nil?
|
428
444
|
query_params[:'timeframe[]'] = @api_client.build_collection_param(opts[:'timeframe'], :multi) if !opts[:'timeframe'].nil?
|
445
|
+
query_params[:'filters[]'] = @api_client.build_collection_param(opts[:'filters'], :multi) if !opts[:'filters'].nil?
|
446
|
+
query_params[:'metric_filters[]'] = @api_client.build_collection_param(opts[:'metric_filters'], :multi) if !opts[:'metric_filters'].nil?
|
429
447
|
|
430
448
|
# header parameters
|
431
449
|
header_params = opts[:header_params] || {}
|
@@ -91,6 +91,7 @@ module MuxRuby
|
|
91
91
|
# @option opts [Integer] :error_id Filter video views by the provided error ID (as returned in the error_type_id field in the list video views endpoint). If you provide any as the error ID, this will filter the results to those with any error.
|
92
92
|
# @option opts [String] :order_direction Sort order.
|
93
93
|
# @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
|
94
|
+
# @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
|
94
95
|
# @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. `timeframe[]=1498867200&timeframe[]=1498953600` * duration string e.g. `timeframe[]=24:hours or timeframe[]=7:days`
|
95
96
|
# @return [ListVideoViewsResponse]
|
96
97
|
def list_video_views(opts = {})
|
@@ -107,6 +108,7 @@ module MuxRuby
|
|
107
108
|
# @option opts [Integer] :error_id Filter video views by the provided error ID (as returned in the error_type_id field in the list video views endpoint). If you provide any as the error ID, this will filter the results to those with any error.
|
108
109
|
# @option opts [String] :order_direction Sort order.
|
109
110
|
# @option opts [Array<String>] :filters Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
|
111
|
+
# @option opts [Array<String>] :metric_filters Limit the results to rows that match inequality conditions from provided metric comparison clauses. Must be provided as an array query string parameter. Possible filterable metrics are the same as the set of metric ids, with the exceptions of `exits_before_video_start`, `unique_viewers`, `video_startup_failure_percentage`, and `views`. Example: * `metric_filters[]=aggregate_startup_time>=1000`
|
110
112
|
# @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. `timeframe[]=1498867200&timeframe[]=1498953600` * duration string e.g. `timeframe[]=24:hours or timeframe[]=7:days`
|
111
113
|
# @return [Array<(ListVideoViewsResponse, Integer, Hash)>] ListVideoViewsResponse data, response status code and response headers
|
112
114
|
def list_video_views_with_http_info(opts = {})
|
@@ -128,6 +130,7 @@ module MuxRuby
|
|
128
130
|
query_params[:'error_id'] = opts[:'error_id'] if !opts[:'error_id'].nil?
|
129
131
|
query_params[:'order_direction'] = opts[:'order_direction'] if !opts[:'order_direction'].nil?
|
130
132
|
query_params[:'filters[]'] = @api_client.build_collection_param(opts[:'filters'], :multi) if !opts[:'filters'].nil?
|
133
|
+
query_params[:'metric_filters[]'] = @api_client.build_collection_param(opts[:'metric_filters'], :multi) if !opts[:'metric_filters'].nil?
|
131
134
|
query_params[:'timeframe[]'] = @api_client.build_collection_param(opts[:'timeframe'], :multi) if !opts[:'timeframe'].nil?
|
132
135
|
|
133
136
|
# header parameters
|
@@ -37,6 +37,10 @@ module MuxRuby
|
|
37
37
|
|
38
38
|
attr_accessor :view_end
|
39
39
|
|
40
|
+
attr_accessor :viewer_experience_score
|
41
|
+
|
42
|
+
attr_accessor :watch_time
|
43
|
+
|
40
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
45
|
def self.attribute_map
|
42
46
|
{
|
@@ -50,7 +54,9 @@ module MuxRuby
|
|
50
54
|
:'error_type_id' => :'error_type_id',
|
51
55
|
:'country_code' => :'country_code',
|
52
56
|
:'view_start' => :'view_start',
|
53
|
-
:'view_end' => :'view_end'
|
57
|
+
:'view_end' => :'view_end',
|
58
|
+
:'viewer_experience_score' => :'viewer_experience_score',
|
59
|
+
:'watch_time' => :'watch_time'
|
54
60
|
}
|
55
61
|
end
|
56
62
|
|
@@ -72,7 +78,9 @@ module MuxRuby
|
|
72
78
|
:'error_type_id' => :'Integer',
|
73
79
|
:'country_code' => :'String',
|
74
80
|
:'view_start' => :'String',
|
75
|
-
:'view_end' => :'String'
|
81
|
+
:'view_end' => :'String',
|
82
|
+
:'viewer_experience_score' => :'Float',
|
83
|
+
:'watch_time' => :'Integer'
|
76
84
|
}
|
77
85
|
end
|
78
86
|
|
@@ -86,6 +94,8 @@ module MuxRuby
|
|
86
94
|
:'player_error_code',
|
87
95
|
:'error_type_id',
|
88
96
|
:'country_code',
|
97
|
+
:'viewer_experience_score',
|
98
|
+
:'watch_time'
|
89
99
|
])
|
90
100
|
end
|
91
101
|
|
@@ -147,6 +157,14 @@ module MuxRuby
|
|
147
157
|
if attributes.key?(:'view_end')
|
148
158
|
self.view_end = attributes[:'view_end']
|
149
159
|
end
|
160
|
+
|
161
|
+
if attributes.key?(:'viewer_experience_score')
|
162
|
+
self.viewer_experience_score = attributes[:'viewer_experience_score']
|
163
|
+
end
|
164
|
+
|
165
|
+
if attributes.key?(:'watch_time')
|
166
|
+
self.watch_time = attributes[:'watch_time']
|
167
|
+
end
|
150
168
|
end
|
151
169
|
|
152
170
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -177,7 +195,9 @@ module MuxRuby
|
|
177
195
|
error_type_id == o.error_type_id &&
|
178
196
|
country_code == o.country_code &&
|
179
197
|
view_start == o.view_start &&
|
180
|
-
view_end == o.view_end
|
198
|
+
view_end == o.view_end &&
|
199
|
+
viewer_experience_score == o.viewer_experience_score &&
|
200
|
+
watch_time == o.watch_time
|
181
201
|
end
|
182
202
|
|
183
203
|
# @see the `==` method
|
@@ -189,7 +209,7 @@ module MuxRuby
|
|
189
209
|
# Calculates hash code according to all attributes.
|
190
210
|
# @return [Integer] Hash code
|
191
211
|
def hash
|
192
|
-
[id, viewer_os_family, viewer_application_name, video_title, total_row_count, player_error_message, player_error_code, error_type_id, country_code, view_start, view_end].hash
|
212
|
+
[id, viewer_os_family, viewer_application_name, video_title, total_row_count, player_error_message, player_error_code, error_type_id, country_code, view_start, view_end, viewer_experience_score, watch_time].hash
|
193
213
|
end
|
194
214
|
|
195
215
|
# Builds the object from hash
|
@@ -115,7 +115,7 @@ module MuxRuby
|
|
115
115
|
# Check to see if the all the properties in the model are valid
|
116
116
|
# @return true if the model is valid
|
117
117
|
def valid?
|
118
|
-
language_code_validator = EnumAttributeValidator.new('String', ["en", "
|
118
|
+
language_code_validator = EnumAttributeValidator.new('String', ["en", "es", "it", "pt", "de", "fr", "pl", "ru", "nl", "ca", "tr", "sv", "uk", "no", "fi", "sk", "el", "cs", "hr", "da", "ro", "bg"])
|
119
119
|
return false unless language_code_validator.valid?(@language_code)
|
120
120
|
true
|
121
121
|
end
|
@@ -123,7 +123,7 @@ module MuxRuby
|
|
123
123
|
# Custom attribute writer method checking allowed values (enum).
|
124
124
|
# @param [Object] language_code Object to be assigned
|
125
125
|
def language_code=(language_code)
|
126
|
-
validator = EnumAttributeValidator.new('String', ["en", "
|
126
|
+
validator = EnumAttributeValidator.new('String', ["en", "es", "it", "pt", "de", "fr", "pl", "ru", "nl", "ca", "tr", "sv", "uk", "no", "fi", "sk", "el", "cs", "hr", "da", "ro", "bg"])
|
127
127
|
unless validator.valid?(language_code)
|
128
128
|
fail ArgumentError, "invalid value for \"language_code\", must be one of #{validator.allowable_values}."
|
129
129
|
end
|
@@ -16,7 +16,7 @@ require 'time'
|
|
16
16
|
module MuxRuby
|
17
17
|
# An array of objects that each describe an input file to be used to create the asset. As a shortcut, `input` can also be a string URL for a file when only one input file is used. See `input[].url` for requirements.
|
18
18
|
class InputSettings
|
19
|
-
# The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input.
|
19
|
+
# The URL of the file that Mux should download and use. * For the main input file, this should be the URL to the muxed file for Mux to download, for example an MP4, MOV, MKV, or TS file. Mux supports most audio/video file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `audio` tracks, the URL is the location of the audio file for Mux to download, for example an M4A, WAV, or MP3 file. Mux supports most audio file formats and codecs, but for fastest processing, you should [use standard inputs wherever possible](https://docs.mux.com/guides/minimize-processing-time). * For `text` tracks, the URL is the location of subtitle/captions file. Mux supports [SubRip Text (SRT)](https://en.wikipedia.org/wiki/SubRip) and [Web Video Text Tracks](https://www.w3.org/TR/webvtt1/) formats for ingesting Subtitles and Closed Captions. * For Watermarking or Overlay, the URL is the location of the watermark image. The maximum size is 4096x4096. * When creating clips from existing Mux assets, the URL is defined with `mux://assets/{asset_id}` template where `asset_id` is the Asset Identifier for creating the clip from. The url property may be omitted on the first input object when providing asset settings for LiveStream and Upload objects, in order to configure settings related to the primary (live stream or direct upload) input.
|
20
20
|
attr_accessor :url
|
21
21
|
|
22
22
|
attr_accessor :overlay_settings
|
@@ -76,6 +76,9 @@ module MuxRuby
|
|
76
76
|
# The time in seconds a live stream may be continuously active before being disconnected. Defaults to 12 hours.
|
77
77
|
attr_accessor :max_continuous_duration
|
78
78
|
|
79
|
+
# Unique key used for encrypting a stream to a Mux SRT endpoint.
|
80
|
+
attr_accessor :srt_passphrase
|
81
|
+
|
79
82
|
class EnumAttributeValidator
|
80
83
|
attr_reader :datatype
|
81
84
|
attr_reader :allowable_values
|
@@ -121,7 +124,8 @@ module MuxRuby
|
|
121
124
|
:'simulcast_targets' => :'simulcast_targets',
|
122
125
|
:'latency_mode' => :'latency_mode',
|
123
126
|
:'test' => :'test',
|
124
|
-
:'max_continuous_duration' => :'max_continuous_duration'
|
127
|
+
:'max_continuous_duration' => :'max_continuous_duration',
|
128
|
+
:'srt_passphrase' => :'srt_passphrase'
|
125
129
|
}
|
126
130
|
end
|
127
131
|
|
@@ -153,7 +157,8 @@ module MuxRuby
|
|
153
157
|
:'simulcast_targets' => :'Array<SimulcastTarget>',
|
154
158
|
:'latency_mode' => :'String',
|
155
159
|
:'test' => :'Boolean',
|
156
|
-
:'max_continuous_duration' => :'Integer'
|
160
|
+
:'max_continuous_duration' => :'Integer',
|
161
|
+
:'srt_passphrase' => :'String'
|
157
162
|
}
|
158
163
|
end
|
159
164
|
|
@@ -277,6 +282,10 @@ module MuxRuby
|
|
277
282
|
else
|
278
283
|
self.max_continuous_duration = 43200
|
279
284
|
end
|
285
|
+
|
286
|
+
if attributes.key?(:'srt_passphrase')
|
287
|
+
self.srt_passphrase = attributes[:'srt_passphrase']
|
288
|
+
end
|
280
289
|
end
|
281
290
|
|
282
291
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -377,7 +386,8 @@ module MuxRuby
|
|
377
386
|
simulcast_targets == o.simulcast_targets &&
|
378
387
|
latency_mode == o.latency_mode &&
|
379
388
|
test == o.test &&
|
380
|
-
max_continuous_duration == o.max_continuous_duration
|
389
|
+
max_continuous_duration == o.max_continuous_duration &&
|
390
|
+
srt_passphrase == o.srt_passphrase
|
381
391
|
end
|
382
392
|
|
383
393
|
# @see the `==` method
|
@@ -389,7 +399,7 @@ module MuxRuby
|
|
389
399
|
# Calculates hash code according to all attributes.
|
390
400
|
# @return [Integer] Hash code
|
391
401
|
def hash
|
392
|
-
[id, created_at, stream_key, active_asset_id, recent_asset_ids, status, playback_ids, new_asset_settings, passthrough, audio_only, embedded_subtitles, generated_subtitles, reconnect_window, use_slate_for_standard_latency, reconnect_slate_url, reduced_latency, low_latency, simulcast_targets, latency_mode, test, max_continuous_duration].hash
|
402
|
+
[id, created_at, stream_key, active_asset_id, recent_asset_ids, status, playback_ids, new_asset_settings, passthrough, audio_only, embedded_subtitles, generated_subtitles, reconnect_window, use_slate_for_standard_latency, reconnect_slate_url, reduced_latency, low_latency, simulcast_targets, latency_mode, test, max_continuous_duration, srt_passphrase].hash
|
393
403
|
end
|
394
404
|
|
395
405
|
# Builds the object from hash
|
@@ -16,7 +16,7 @@ require 'time'
|
|
16
16
|
module MuxRuby
|
17
17
|
# A list of domains allowed to play your videos.
|
18
18
|
class ReferrerDomainRestriction
|
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 *
|
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
20
|
attr_accessor :allowed_domains
|
21
21
|
|
22
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.
|
@@ -60,6 +60,9 @@ module MuxRuby
|
|
60
60
|
# The status of the track. This parameter is only set for `text` type tracks.
|
61
61
|
attr_accessor :status
|
62
62
|
|
63
|
+
# For an audio track, indicates that this is the primary audio track, ingested from the main input for this asset. The primary audio track cannot be deleted.
|
64
|
+
attr_accessor :primary
|
65
|
+
|
63
66
|
class EnumAttributeValidator
|
64
67
|
attr_reader :datatype
|
65
68
|
attr_reader :allowable_values
|
@@ -99,7 +102,8 @@ module MuxRuby
|
|
99
102
|
:'name' => :'name',
|
100
103
|
:'closed_captions' => :'closed_captions',
|
101
104
|
:'passthrough' => :'passthrough',
|
102
|
-
:'status' => :'status'
|
105
|
+
:'status' => :'status',
|
106
|
+
:'primary' => :'primary'
|
103
107
|
}
|
104
108
|
end
|
105
109
|
|
@@ -125,7 +129,8 @@ module MuxRuby
|
|
125
129
|
:'name' => :'String',
|
126
130
|
:'closed_captions' => :'Boolean',
|
127
131
|
:'passthrough' => :'String',
|
128
|
-
:'status' => :'String'
|
132
|
+
:'status' => :'String',
|
133
|
+
:'primary' => :'Boolean'
|
129
134
|
}
|
130
135
|
end
|
131
136
|
|
@@ -209,6 +214,10 @@ module MuxRuby
|
|
209
214
|
if attributes.key?(:'status')
|
210
215
|
self.status = attributes[:'status']
|
211
216
|
end
|
217
|
+
|
218
|
+
if attributes.key?(:'primary')
|
219
|
+
self.primary = attributes[:'primary']
|
220
|
+
end
|
212
221
|
end
|
213
222
|
|
214
223
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -291,7 +300,8 @@ module MuxRuby
|
|
291
300
|
name == o.name &&
|
292
301
|
closed_captions == o.closed_captions &&
|
293
302
|
passthrough == o.passthrough &&
|
294
|
-
status == o.status
|
303
|
+
status == o.status &&
|
304
|
+
primary == o.primary
|
295
305
|
end
|
296
306
|
|
297
307
|
# @see the `==` method
|
@@ -303,7 +313,7 @@ module MuxRuby
|
|
303
313
|
# Calculates hash code according to all attributes.
|
304
314
|
# @return [Integer] Hash code
|
305
315
|
def hash
|
306
|
-
[id, type, duration, max_width, max_height, max_frame_rate, max_channels, max_channel_layout, text_type, text_source, language_code, name, closed_captions, passthrough, status].hash
|
316
|
+
[id, type, duration, max_width, max_height, max_frame_rate, max_channels, max_channel_layout, text_type, text_source, language_code, name, closed_captions, passthrough, status, primary].hash
|
307
317
|
end
|
308
318
|
|
309
319
|
# Builds the object from hash
|