mux_ruby 1.3.1 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +5 -5
  2. data/Gemfile +2 -1
  3. data/Gemfile.lock +37 -35
  4. data/README.md +6 -1
  5. data/docs/Asset.md +3 -1
  6. data/docs/AssetNonStandardInputReasons.md +16 -0
  7. data/docs/AssetRecordingTimes.md +9 -0
  8. data/docs/AssetsApi.md +54 -0
  9. data/docs/CreateAssetRequest.md +1 -1
  10. data/docs/CreateLiveStreamRequest.md +2 -0
  11. data/docs/CreateUploadRequest.md +1 -0
  12. data/docs/DisableLiveStreamResponse.md +8 -0
  13. data/docs/EnableLiveStreamResponse.md +8 -0
  14. data/docs/LiveStream.md +2 -1
  15. data/docs/LiveStreamsApi.md +104 -0
  16. data/docs/UpdateAssetMasterAccessRequest.md +8 -0
  17. data/docs/Upload.md +1 -0
  18. data/docs/VideoView.md +16 -14
  19. data/examples/data/exercise-errors.rb +1 -1
  20. data/examples/video/exercise-assets.rb +10 -0
  21. data/examples/video/exercise-live-streams.rb +22 -0
  22. data/lib/mux_ruby.rb +5 -0
  23. data/lib/mux_ruby/api/assets_api.rb +61 -0
  24. data/lib/mux_ruby/api/live_streams_api.rb +106 -0
  25. data/lib/mux_ruby/api_client.rb +1 -1
  26. data/lib/mux_ruby/configuration.rb +1 -4
  27. data/lib/mux_ruby/models/asset.rb +34 -13
  28. data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +335 -0
  29. data/lib/mux_ruby/models/asset_recording_times.rb +195 -0
  30. data/lib/mux_ruby/models/asset_static_renditions_files.rb +4 -4
  31. data/lib/mux_ruby/models/create_asset_request.rb +13 -13
  32. data/lib/mux_ruby/models/create_live_stream_request.rb +24 -4
  33. data/lib/mux_ruby/models/create_upload_request.rb +13 -4
  34. data/lib/mux_ruby/models/disable_live_stream_response.rb +184 -0
  35. data/lib/mux_ruby/models/enable_live_stream_response.rb +184 -0
  36. data/lib/mux_ruby/models/input_settings_overlay_settings.rb +46 -0
  37. data/lib/mux_ruby/models/live_stream.rb +14 -5
  38. data/lib/mux_ruby/models/update_asset_master_access_request.rb +219 -0
  39. data/lib/mux_ruby/models/upload.rb +13 -4
  40. data/lib/mux_ruby/models/video_view.rb +36 -18
  41. data/lib/mux_ruby/version.rb +1 -1
  42. data/spec/api/assets_api_spec.rb +13 -0
  43. data/spec/api/live_streams_api_spec.rb +24 -0
  44. data/spec/models/asset_non_standard_input_reasons_spec.rb +98 -0
  45. data/spec/models/asset_recording_times_spec.rb +40 -0
  46. data/spec/models/asset_spec.rb +18 -6
  47. data/spec/models/asset_static_renditions_files_spec.rb +2 -2
  48. data/spec/models/create_asset_request_spec.rb +6 -6
  49. data/spec/models/create_live_stream_request_spec.rb +12 -0
  50. data/spec/models/create_upload_request_spec.rb +6 -0
  51. data/spec/models/disable_live_stream_response_spec.rb +34 -0
  52. data/spec/models/enable_live_stream_response_spec.rb +34 -0
  53. data/spec/models/input_settings_overlay_settings_spec.rb +8 -0
  54. data/spec/models/live_stream_spec.rb +6 -0
  55. data/spec/models/update_asset_master_access_request_spec.rb +38 -0
  56. data/spec/models/upload_spec.rb +6 -0
  57. data/spec/models/video_view_spec.rb +12 -0
  58. data/test.sh +28 -0
  59. metadata +80 -60
@@ -11,5 +11,6 @@ Name | Type | Description | Notes
11
11
  **error** | [**UploadError**](UploadError.md) | | [optional]
12
12
  **cors_origin** | **String** | If the upload URL will be used in a browser, you must specify the origin in order for the signed URL to have the correct CORS headers. | [optional]
13
13
  **url** | **String** | The URL to upload the associated source media to. | [optional]
14
+ **test** | **BOOLEAN** | | [optional]
14
15
 
15
16
 
@@ -11,22 +11,22 @@ Name | Type | Description | Notes
11
11
  **preroll_requested** | **BOOLEAN** | | [optional]
12
12
  **page_type** | **String** | | [optional]
13
13
  **startup_score** | **String** | | [optional]
14
- **view_seek_duration** | **String** | | [optional]
14
+ **view_seek_duration** | **Integer** | | [optional]
15
15
  **country_name** | **String** | | [optional]
16
16
  **player_source_height** | **Integer** | | [optional]
17
17
  **longitude** | **String** | | [optional]
18
- **buffering_count** | **String** | | [optional]
19
- **video_duration** | **String** | | [optional]
18
+ **buffering_count** | **Integer** | | [optional]
19
+ **video_duration** | **Integer** | | [optional]
20
20
  **player_source_type** | **String** | | [optional]
21
21
  **city** | **String** | | [optional]
22
22
  **view_id** | **String** | | [optional]
23
23
  **platform_description** | **String** | | [optional]
24
- **video_startup_preroll_request_time** | **String** | | [optional]
24
+ **video_startup_preroll_request_time** | **Integer** | | [optional]
25
25
  **viewer_device_name** | **String** | | [optional]
26
26
  **video_series** | **String** | | [optional]
27
27
  **viewer_application_name** | **String** | | [optional]
28
28
  **updated_at** | **String** | | [optional]
29
- **view_total_content_playback_time** | **String** | | [optional]
29
+ **view_total_content_playback_time** | **Integer** | | [optional]
30
30
  **cdn** | **String** | | [optional]
31
31
  **player_instance_id** | **String** | | [optional]
32
32
  **video_language** | **String** | | [optional]
@@ -37,8 +37,8 @@ Name | Type | Description | Notes
37
37
  **playback_score** | **String** | | [optional]
38
38
  **page_url** | **String** | | [optional]
39
39
  **metro** | **String** | | [optional]
40
- **view_max_request_latency** | **String** | | [optional]
41
- **requests_for_first_preroll** | **String** | | [optional]
40
+ **view_max_request_latency** | **Integer** | | [optional]
41
+ **requests_for_first_preroll** | **Integer** | | [optional]
42
42
  **view_total_downscaling** | **String** | | [optional]
43
43
  **latitude** | **String** | | [optional]
44
44
  **player_source_host_name** | **String** | | [optional]
@@ -48,7 +48,7 @@ Name | Type | Description | Notes
48
48
  **player_language** | **String** | | [optional]
49
49
  **page_load_time** | **Integer** | | [optional]
50
50
  **viewer_device_category** | **String** | | [optional]
51
- **video_startup_preroll_load_time** | **String** | | [optional]
51
+ **video_startup_preroll_load_time** | **Integer** | | [optional]
52
52
  **player_version** | **String** | | [optional]
53
53
  **watch_time** | **Integer** | | [optional]
54
54
  **player_source_stream_type** | **String** | | [optional]
@@ -58,14 +58,14 @@ Name | Type | Description | Notes
58
58
  **experiment_name** | **String** | | [optional]
59
59
  **viewer_os_version** | **String** | | [optional]
60
60
  **player_preload** | **BOOLEAN** | | [optional]
61
- **buffering_duration** | **String** | | [optional]
61
+ **buffering_duration** | **Integer** | | [optional]
62
62
  **player_view_count** | **Integer** | | [optional]
63
63
  **player_software** | **String** | | [optional]
64
- **player_load_time** | **String** | | [optional]
64
+ **player_load_time** | **Integer** | | [optional]
65
65
  **platform_summary** | **String** | | [optional]
66
66
  **video_encoding_variant** | **String** | | [optional]
67
67
  **player_width** | **Integer** | | [optional]
68
- **view_seek_count** | **String** | | [optional]
68
+ **view_seek_count** | **Integer** | | [optional]
69
69
  **viewer_experience_score** | **String** | | [optional]
70
70
  **view_error_id** | **Integer** | | [optional]
71
71
  **video_variant_name** | **String** | | [optional]
@@ -77,7 +77,7 @@ Name | Type | Description | Notes
77
77
  **events** | [**Array<VideoViewEvent>**](VideoViewEvent.md) | | [optional]
78
78
  **player_name** | **String** | | [optional]
79
79
  **view_start** | **String** | | [optional]
80
- **view_average_request_throughput** | **String** | | [optional]
80
+ **view_average_request_throughput** | **Integer** | | [optional]
81
81
  **video_producer** | **String** | | [optional]
82
82
  **error_type_id** | **Integer** | | [optional]
83
83
  **mux_viewer_id** | **String** | | [optional]
@@ -88,7 +88,7 @@ Name | Type | Description | Notes
88
88
  **video_content_type** | **String** | | [optional]
89
89
  **viewer_os_family** | **String** | | [optional]
90
90
  **player_poster** | **String** | | [optional]
91
- **view_average_request_latency** | **String** | | [optional]
91
+ **view_average_request_latency** | **Integer** | | [optional]
92
92
  **video_variant_id** | **String** | | [optional]
93
93
  **player_source_duration** | **Integer** | | [optional]
94
94
  **player_source_url** | **String** | | [optional]
@@ -97,7 +97,7 @@ Name | Type | Description | Notes
97
97
  **id** | **String** | | [optional]
98
98
  **short_time** | **String** | | [optional]
99
99
  **rebuffer_percentage** | **String** | | [optional]
100
- **time_to_first_frame** | **String** | | [optional]
100
+ **time_to_first_frame** | **Integer** | | [optional]
101
101
  **viewer_user_id** | **String** | | [optional]
102
102
  **video_stream_type** | **String** | | [optional]
103
103
  **player_startup_time** | **Integer** | | [optional]
@@ -111,7 +111,9 @@ Name | Type | Description | Notes
111
111
  **player_autoplay** | **BOOLEAN** | | [optional]
112
112
  **player_height** | **Integer** | | [optional]
113
113
  **asn** | **Integer** | | [optional]
114
+ **asn_name** | **String** | | [optional]
114
115
  **quality_score** | **String** | | [optional]
115
116
  **player_software_version** | **String** | | [optional]
117
+ **player_mux_plugin_name** | **String** | | [optional]
116
118
 
117
119
 
@@ -15,7 +15,7 @@ end
15
15
  errors_api = MuxRuby::ErrorsApi.new
16
16
 
17
17
  # ========== list-errors ==========
18
- errors = errors_api.list_errors(:filters => ['browser:Chrome'], :timeframe => ['7:days'])
18
+ errors = errors_api.list_errors(:filters => ['browser:Safari'], :timeframe => ['7:days'])
19
19
  assert errors != nil
20
20
  assert errors.data != nil
21
21
  assert errors.data.length > 0
@@ -77,6 +77,16 @@ assert mp4_asset.data.id == create_response.data.id
77
77
  assert mp4_asset.data.mp4_support == 'standard'
78
78
  puts "update-asset-mp4-support OK ✅"
79
79
 
80
+ # ========== update-asset-master-access ==========
81
+ master_req = MuxRuby::UpdateAssetMasterAccessRequest.new
82
+ master_req.master_access = 'temporary'
83
+ master_asset = assets_api.update_asset_master_access(create_response.data.id, master_req)
84
+ assert master_asset != nil
85
+ assert master_asset.data != nil
86
+ assert master_asset.data.id == create_response.data.id
87
+ assert master_asset.data.master_access == 'temporary'
88
+ puts "update-asset-master-access OK ✅"
89
+
80
90
  # ========== create-asset-track ==========
81
91
  cat = MuxRuby::CreateTrackRequest.new(:url => "https://tears-of-steel-subtitles.s3.amazonaws.com/tears-en.vtt", :type => "text", :text_type => "subtitles", :language_code => "en", :name => "English", :closed_captions => false)
82
92
  subtitles_track = assets_api.create_asset_track(create_response.data.id, cat)
@@ -104,6 +104,28 @@ rescue MuxRuby::ApiError => e
104
104
  end
105
105
  puts "signal-live-stream-complete OK ✅"
106
106
 
107
+ # ========== disable-live-stream ==========
108
+ begin
109
+ live_api.disable_live_stream(stream.data.id)
110
+ disabled_live_stream = live_api.get_live_stream(stream.data.id)
111
+ assert disabled_live_stream.data.status == 'disabled'
112
+ rescue MuxRuby::ApiError => e
113
+ puts "Should not have errored when disabling stream"
114
+ exit 1
115
+ end
116
+ puts "disable-live-stream OK ✅"
117
+
118
+ # ========== enable-live-stream ==========
119
+ begin
120
+ live_api.enable_live_stream(stream.data.id)
121
+ enabled_live_stream = live_api.get_live_stream(stream.data.id)
122
+ assert enabled_live_stream.data.status == 'idle'
123
+ rescue MuxRuby::ApiError => e
124
+ puts "Should not have errored when enabling stream"
125
+ exit 1
126
+ end
127
+ puts "enable-live-stream OK ✅"
128
+
107
129
  # ========== delete-live-stream ==========
108
130
  live_api.delete_live_stream(stream.data.id)
109
131
  begin
@@ -14,6 +14,8 @@ require 'mux_ruby/models/abridged_video_view'
14
14
  require 'mux_ruby/models/asset'
15
15
  require 'mux_ruby/models/asset_errors'
16
16
  require 'mux_ruby/models/asset_master'
17
+ require 'mux_ruby/models/asset_non_standard_input_reasons'
18
+ require 'mux_ruby/models/asset_recording_times'
17
19
  require 'mux_ruby/models/asset_response'
18
20
  require 'mux_ruby/models/asset_static_renditions'
19
21
  require 'mux_ruby/models/asset_static_renditions_files'
@@ -27,6 +29,8 @@ require 'mux_ruby/models/create_track_request'
27
29
  require 'mux_ruby/models/create_track_response'
28
30
  require 'mux_ruby/models/create_upload_request'
29
31
  require 'mux_ruby/models/delivery_report'
32
+ require 'mux_ruby/models/disable_live_stream_response'
33
+ require 'mux_ruby/models/enable_live_stream_response'
30
34
  require 'mux_ruby/models/error'
31
35
  require 'mux_ruby/models/filter_value'
32
36
  require 'mux_ruby/models/get_asset_input_info_response'
@@ -67,6 +71,7 @@ require 'mux_ruby/models/simulcast_target'
67
71
  require 'mux_ruby/models/simulcast_target_response'
68
72
  require 'mux_ruby/models/track'
69
73
  require 'mux_ruby/models/update_asset_mp4_support_request'
74
+ require 'mux_ruby/models/update_asset_master_access_request'
70
75
  require 'mux_ruby/models/upload'
71
76
  require 'mux_ruby/models/upload_error'
72
77
  require 'mux_ruby/models/upload_response'
@@ -555,6 +555,67 @@ module MuxRuby
555
555
  return data, status_code, headers
556
556
  end
557
557
 
558
+ # Update master access
559
+ # Allows you add temporary access to the master (highest-quality) version of the asset in MP4 format. A URL will be created that can be used to download the master version for 24 hours. After 24 hours Master Access will revert to \"none\". This master version is not optimized for web and not meant to be streamed, only downloaded for purposes like archiving or editing the video offline.
560
+ # @param asset_id The asset ID.
561
+ # @param update_asset_master_access_request
562
+ # @param [Hash] opts the optional parameters
563
+ # @return [AssetResponse]
564
+ def update_asset_master_access(asset_id, update_asset_master_access_request, opts = {})
565
+ data, _status_code, _headers = update_asset_master_access_with_http_info(asset_id, update_asset_master_access_request, opts)
566
+ data
567
+ end
568
+
569
+ # Update master access
570
+ # Allows you add temporary access to the master (highest-quality) version of the asset in MP4 format. A URL will be created that can be used to download the master version for 24 hours. After 24 hours Master Access will revert to \"none\". This master version is not optimized for web and not meant to be streamed, only downloaded for purposes like archiving or editing the video offline.
571
+ # @param asset_id The asset ID.
572
+ # @param update_asset_master_access_request
573
+ # @param [Hash] opts the optional parameters
574
+ # @return [Array<(AssetResponse, Fixnum, Hash)>] AssetResponse data, response status code and response headers
575
+ def update_asset_master_access_with_http_info(asset_id, update_asset_master_access_request, opts = {})
576
+ if @api_client.config.debugging
577
+ @api_client.config.logger.debug 'Calling API: AssetsApi.update_asset_master_access ...'
578
+ end
579
+ # verify the required parameter 'asset_id' is set
580
+ if @api_client.config.client_side_validation && asset_id.nil?
581
+ fail ArgumentError, "Missing the required parameter 'asset_id' when calling AssetsApi.update_asset_master_access"
582
+ end
583
+ # verify the required parameter 'update_asset_master_access_request' is set
584
+ if @api_client.config.client_side_validation && update_asset_master_access_request.nil?
585
+ fail ArgumentError, "Missing the required parameter 'update_asset_master_access_request' when calling AssetsApi.update_asset_master_access"
586
+ end
587
+ # resource path
588
+ local_var_path = '/video/v1/assets/{ASSET_ID}/master-access'.sub('{' + 'ASSET_ID' + '}', asset_id.to_s)
589
+
590
+ # query parameters
591
+ query_params = {}
592
+
593
+ # header parameters
594
+ header_params = {}
595
+ # HTTP header 'Accept' (if needed)
596
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
597
+ # HTTP header 'Content-Type'
598
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
599
+
600
+ # form parameters
601
+ form_params = {}
602
+
603
+ # http body (model)
604
+ post_body = @api_client.object_to_http_body(update_asset_master_access_request)
605
+ auth_names = ['accessToken']
606
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
607
+ :header_params => header_params,
608
+ :query_params => query_params,
609
+ :form_params => form_params,
610
+ :body => post_body,
611
+ :auth_names => auth_names,
612
+ :return_type => 'AssetResponse')
613
+ if @api_client.config.debugging
614
+ @api_client.config.logger.debug "API called: AssetsApi#update_asset_master_access\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
615
+ end
616
+ return data, status_code, headers
617
+ end
618
+
558
619
  # Update MP4 support
559
620
  # Allows you add or remove mp4 support for assets that were created without it. Currently there are two values supported in this request, `standard` and `none`. `none` means that an asset *does not* have mp4 support, so submitting a request with `mp4_support` set to `none` will delete the mp4 assets from the asset in question.
560
621
  # @param asset_id The asset ID.
@@ -343,6 +343,112 @@ module MuxRuby
343
343
  return data, status_code, headers
344
344
  end
345
345
 
346
+ # Disable a live stream
347
+ # Disables a live stream, making it reject incoming RTMP streams until re-enabled.
348
+ # @param live_stream_id The live stream ID
349
+ # @param [Hash] opts the optional parameters
350
+ # @return [DisableLiveStreamResponse]
351
+ def disable_live_stream(live_stream_id, opts = {})
352
+ data, _status_code, _headers = disable_live_stream_with_http_info(live_stream_id, opts)
353
+ data
354
+ end
355
+
356
+ # Disable a live stream
357
+ # Disables a live stream, making it reject incoming RTMP streams until re-enabled.
358
+ # @param live_stream_id The live stream ID
359
+ # @param [Hash] opts the optional parameters
360
+ # @return [Array<(DisableLiveStreamResponse, Fixnum, Hash)>] DisableLiveStreamResponse data, response status code and response headers
361
+ def disable_live_stream_with_http_info(live_stream_id, opts = {})
362
+ if @api_client.config.debugging
363
+ @api_client.config.logger.debug 'Calling API: LiveStreamsApi.disable_live_stream ...'
364
+ end
365
+ # verify the required parameter 'live_stream_id' is set
366
+ if @api_client.config.client_side_validation && live_stream_id.nil?
367
+ fail ArgumentError, "Missing the required parameter 'live_stream_id' when calling LiveStreamsApi.disable_live_stream"
368
+ end
369
+ # resource path
370
+ local_var_path = '/video/v1/live-streams/{LIVE_STREAM_ID}/disable'.sub('{' + 'LIVE_STREAM_ID' + '}', live_stream_id.to_s)
371
+
372
+ # query parameters
373
+ query_params = {}
374
+
375
+ # header parameters
376
+ header_params = {}
377
+ # HTTP header 'Accept' (if needed)
378
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
379
+
380
+ # form parameters
381
+ form_params = {}
382
+
383
+ # http body (model)
384
+ post_body = nil
385
+ auth_names = ['accessToken']
386
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
387
+ :header_params => header_params,
388
+ :query_params => query_params,
389
+ :form_params => form_params,
390
+ :body => post_body,
391
+ :auth_names => auth_names,
392
+ :return_type => 'DisableLiveStreamResponse')
393
+ if @api_client.config.debugging
394
+ @api_client.config.logger.debug "API called: LiveStreamsApi#disable_live_stream\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
395
+ end
396
+ return data, status_code, headers
397
+ end
398
+
399
+ # Enable a live stream
400
+ # Enables a live stream, allowing it to accept an incoming RTMP stream.
401
+ # @param live_stream_id The live stream ID
402
+ # @param [Hash] opts the optional parameters
403
+ # @return [EnableLiveStreamResponse]
404
+ def enable_live_stream(live_stream_id, opts = {})
405
+ data, _status_code, _headers = enable_live_stream_with_http_info(live_stream_id, opts)
406
+ data
407
+ end
408
+
409
+ # Enable a live stream
410
+ # Enables a live stream, allowing it to accept an incoming RTMP stream.
411
+ # @param live_stream_id The live stream ID
412
+ # @param [Hash] opts the optional parameters
413
+ # @return [Array<(EnableLiveStreamResponse, Fixnum, Hash)>] EnableLiveStreamResponse data, response status code and response headers
414
+ def enable_live_stream_with_http_info(live_stream_id, opts = {})
415
+ if @api_client.config.debugging
416
+ @api_client.config.logger.debug 'Calling API: LiveStreamsApi.enable_live_stream ...'
417
+ end
418
+ # verify the required parameter 'live_stream_id' is set
419
+ if @api_client.config.client_side_validation && live_stream_id.nil?
420
+ fail ArgumentError, "Missing the required parameter 'live_stream_id' when calling LiveStreamsApi.enable_live_stream"
421
+ end
422
+ # resource path
423
+ local_var_path = '/video/v1/live-streams/{LIVE_STREAM_ID}/enable'.sub('{' + 'LIVE_STREAM_ID' + '}', live_stream_id.to_s)
424
+
425
+ # query parameters
426
+ query_params = {}
427
+
428
+ # header parameters
429
+ header_params = {}
430
+ # HTTP header 'Accept' (if needed)
431
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
432
+
433
+ # form parameters
434
+ form_params = {}
435
+
436
+ # http body (model)
437
+ post_body = nil
438
+ auth_names = ['accessToken']
439
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
440
+ :header_params => header_params,
441
+ :query_params => query_params,
442
+ :form_params => form_params,
443
+ :body => post_body,
444
+ :auth_names => auth_names,
445
+ :return_type => 'EnableLiveStreamResponse')
446
+ if @api_client.config.debugging
447
+ @api_client.config.logger.debug "API called: LiveStreamsApi#enable_live_stream\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
448
+ end
449
+ return data, status_code, headers
450
+ end
451
+
346
452
  # Retrieve a live stream
347
453
  # Retrieves the details of a live stream that has previously been created. Supply the unique live stream ID that was returned from your previous request, and Mux will return the corresponding live stream information. The same information is returned when creating a live stream.
348
454
  # @param live_stream_id The live stream ID
@@ -280,7 +280,7 @@ module MuxRuby
280
280
  def build_request_url(path)
281
281
  # Add leading and trailing slashes to path
282
282
  path = "/#{path}".gsub(/\/+/, '/')
283
- URI.encode(@config.base_url + path)
283
+ "#{@config.base_url}#{path}"
284
284
  end
285
285
 
286
286
  # Builds the HTTP request body
@@ -3,8 +3,6 @@
3
3
  # NOTE: This file is auto generated. Do not edit this file manually.
4
4
  =end
5
5
 
6
- require 'uri'
7
-
8
6
  module MuxRuby
9
7
  class Configuration
10
8
  # Defines url scheme
@@ -167,8 +165,7 @@ module MuxRuby
167
165
  end
168
166
 
169
167
  def base_url
170
- url = "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
171
- URI.encode(url)
168
+ "#{scheme}://#{[host, base_path].join('/').gsub(/\/+/, '/')}".sub(/\/+\z/, '')
172
169
  end
173
170
 
174
171
  # Gets API key (with prefix if set).
@@ -27,8 +27,6 @@ module MuxRuby
27
27
 
28
28
  attr_accessor :tracks
29
29
 
30
- attr_accessor :demo
31
-
32
30
  attr_accessor :errors
33
31
 
34
32
  attr_accessor :per_title_encode
@@ -49,6 +47,13 @@ module MuxRuby
49
47
 
50
48
  attr_accessor :static_renditions
51
49
 
50
+ # An array of individual live stream recording sessions. A recording session is created on each encoder connection during the live stream
51
+ attr_accessor :recording_times
52
+
53
+ attr_accessor :non_standard_input_reasons
54
+
55
+ attr_accessor :test
56
+
52
57
  class EnumAttributeValidator
53
58
  attr_reader :datatype
54
59
  attr_reader :allowable_values
@@ -84,7 +89,6 @@ module MuxRuby
84
89
  :'aspect_ratio' => :'aspect_ratio',
85
90
  :'playback_ids' => :'playback_ids',
86
91
  :'tracks' => :'tracks',
87
- :'demo' => :'demo',
88
92
  :'errors' => :'errors',
89
93
  :'per_title_encode' => :'per_title_encode',
90
94
  :'is_live' => :'is_live',
@@ -94,7 +98,10 @@ module MuxRuby
94
98
  :'master_access' => :'master_access',
95
99
  :'mp4_support' => :'mp4_support',
96
100
  :'normalize_audio' => :'normalize_audio',
97
- :'static_renditions' => :'static_renditions'
101
+ :'static_renditions' => :'static_renditions',
102
+ :'recording_times' => :'recording_times',
103
+ :'non_standard_input_reasons' => :'non_standard_input_reasons',
104
+ :'test' => :'test'
98
105
  }
99
106
  end
100
107
 
@@ -111,7 +118,6 @@ module MuxRuby
111
118
  :'aspect_ratio' => :'String',
112
119
  :'playback_ids' => :'Array<PlaybackID>',
113
120
  :'tracks' => :'Array<Track>',
114
- :'demo' => :'BOOLEAN',
115
121
  :'errors' => :'AssetErrors',
116
122
  :'per_title_encode' => :'BOOLEAN',
117
123
  :'is_live' => :'BOOLEAN',
@@ -121,7 +127,10 @@ module MuxRuby
121
127
  :'master_access' => :'String',
122
128
  :'mp4_support' => :'String',
123
129
  :'normalize_audio' => :'BOOLEAN',
124
- :'static_renditions' => :'AssetStaticRenditions'
130
+ :'static_renditions' => :'AssetStaticRenditions',
131
+ :'recording_times' => :'Array<AssetRecordingTimes>',
132
+ :'non_standard_input_reasons' => :'AssetNonStandardInputReasons',
133
+ :'test' => :'BOOLEAN'
125
134
  }
126
135
  end
127
136
 
@@ -177,10 +186,6 @@ module MuxRuby
177
186
  end
178
187
  end
179
188
 
180
- if attributes.has_key?(:'demo')
181
- self.demo = attributes[:'demo']
182
- end
183
-
184
189
  if attributes.has_key?(:'errors')
185
190
  self.errors = attributes[:'errors']
186
191
  end
@@ -226,6 +231,20 @@ module MuxRuby
226
231
  if attributes.has_key?(:'static_renditions')
227
232
  self.static_renditions = attributes[:'static_renditions']
228
233
  end
234
+
235
+ if attributes.has_key?(:'recording_times')
236
+ if (value = attributes[:'recording_times']).is_a?(Array)
237
+ self.recording_times = value
238
+ end
239
+ end
240
+
241
+ if attributes.has_key?(:'non_standard_input_reasons')
242
+ self.non_standard_input_reasons = attributes[:'non_standard_input_reasons']
243
+ end
244
+
245
+ if attributes.has_key?(:'test')
246
+ self.test = attributes[:'test']
247
+ end
229
248
  end
230
249
 
231
250
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -280,7 +299,6 @@ module MuxRuby
280
299
  aspect_ratio == o.aspect_ratio &&
281
300
  playback_ids == o.playback_ids &&
282
301
  tracks == o.tracks &&
283
- demo == o.demo &&
284
302
  errors == o.errors &&
285
303
  per_title_encode == o.per_title_encode &&
286
304
  is_live == o.is_live &&
@@ -290,7 +308,10 @@ module MuxRuby
290
308
  master_access == o.master_access &&
291
309
  mp4_support == o.mp4_support &&
292
310
  normalize_audio == o.normalize_audio &&
293
- static_renditions == o.static_renditions
311
+ static_renditions == o.static_renditions &&
312
+ recording_times == o.recording_times &&
313
+ non_standard_input_reasons == o.non_standard_input_reasons &&
314
+ test == o.test
294
315
  end
295
316
 
296
317
  # @see the `==` method
@@ -302,7 +323,7 @@ module MuxRuby
302
323
  # Calculates hash code according to all attributes.
303
324
  # @return [Fixnum] Hash code
304
325
  def hash
305
- [id, created_at, deleted_at, status, duration, max_stored_resolution, max_stored_frame_rate, aspect_ratio, playback_ids, tracks, demo, errors, per_title_encode, is_live, passthrough, live_stream_id, master, master_access, mp4_support, normalize_audio, static_renditions].hash
326
+ [id, created_at, deleted_at, status, duration, max_stored_resolution, max_stored_frame_rate, aspect_ratio, playback_ids, tracks, errors, per_title_encode, is_live, passthrough, live_stream_id, master, master_access, mp4_support, normalize_audio, static_renditions, recording_times, non_standard_input_reasons, test].hash
306
327
  end
307
328
 
308
329
  # Builds the object from hash