mux_ruby 3.8.0 → 3.11.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.
Files changed (115) hide show
  1. checksums.yaml +4 -4
  2. data/CODEOWNERS +1 -1
  3. data/Gemfile.lock +2 -2
  4. data/README.md +4 -4
  5. data/docs/Asset.md +7 -1
  6. data/docs/AssetGeneratedSubtitleSettings.md +22 -0
  7. data/docs/AssetNonStandardInputReasons.md +3 -1
  8. data/docs/AssetsApi.md +1 -1
  9. data/docs/CreateAssetRequest.md +5 -1
  10. data/docs/CreateLiveStreamRequest.md +3 -3
  11. data/docs/CreateTrackRequest.md +2 -2
  12. data/docs/DeliveryReport.md +5 -1
  13. data/docs/DeliveryReportDeliveredSecondsByResolution.md +26 -0
  14. data/docs/DirectUploadsApi.md +1 -1
  15. data/docs/GetMonitoringBreakdownTimeseriesResponse.md +22 -0
  16. data/docs/InputSettings.md +7 -5
  17. data/docs/LiveStream.md +4 -4
  18. data/docs/MetricsApi.md +2 -2
  19. data/docs/MonitoringApi.md +93 -6
  20. data/docs/MonitoringBreakdownTimeseriesDatapoint.md +22 -0
  21. data/docs/MonitoringBreakdownTimeseriesValues.md +20 -0
  22. data/docs/RealTimeApi.md +8 -6
  23. data/docs/SigningKeysApi.md +291 -0
  24. data/docs/Track.md +4 -4
  25. data/docs/URLSigningKeysApi.md +4 -4
  26. data/docs/UpdateLiveStreamRequest.md +1 -1
  27. data/docs/VideoView.md +33 -1
  28. data/examples/video/exercise-signing-keys.rb +5 -4
  29. data/gen/generator-config.json +1 -1
  30. data/gen/package.json +1 -1
  31. data/gen/yarn.lock +411 -318
  32. data/lib/mux_ruby/api/assets_api.rb +2 -2
  33. data/lib/mux_ruby/api/direct_uploads_api.rb +2 -2
  34. data/lib/mux_ruby/api/metrics_api.rb +9 -9
  35. data/lib/mux_ruby/api/monitoring_api.rb +110 -9
  36. data/lib/mux_ruby/api/real_time_api.rb +9 -6
  37. data/lib/mux_ruby/api/signing_keys_api.rb +266 -0
  38. data/lib/mux_ruby/api/url_signing_keys_api.rb +8 -8
  39. data/lib/mux_ruby/models/asset.rb +68 -2
  40. data/lib/mux_ruby/models/asset_generated_subtitle_settings.rb +275 -0
  41. data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +14 -4
  42. data/lib/mux_ruby/models/broadcast_layout.rb +1 -0
  43. data/lib/mux_ruby/models/create_asset_request.rb +48 -4
  44. data/lib/mux_ruby/models/create_live_stream_request.rb +3 -3
  45. data/lib/mux_ruby/models/create_track_request.rb +4 -3
  46. data/lib/mux_ruby/models/delivery_report.rb +35 -4
  47. data/lib/mux_ruby/models/delivery_report_delivered_seconds_by_resolution.rb +260 -0
  48. data/lib/mux_ruby/models/get_monitoring_breakdown_timeseries_response.rb +240 -0
  49. data/lib/mux_ruby/models/input_settings.rb +18 -6
  50. data/lib/mux_ruby/models/live_stream.rb +4 -4
  51. data/lib/mux_ruby/models/live_stream_embedded_subtitle_settings.rb +2 -2
  52. data/lib/mux_ruby/models/monitoring_breakdown_timeseries_datapoint.rb +236 -0
  53. data/lib/mux_ruby/models/monitoring_breakdown_timeseries_values.rb +229 -0
  54. data/lib/mux_ruby/models/track.rb +6 -6
  55. data/lib/mux_ruby/models/update_live_stream_request.rb +1 -1
  56. data/lib/mux_ruby/models/video_view.rb +162 -5
  57. data/lib/mux_ruby/version.rb +1 -1
  58. data/lib/mux_ruby.rb +6 -0
  59. data/spec/api/signing_keys_api_spec.rb +83 -0
  60. data/spec/models/asset_generated_subtitle_settings_spec.rb +50 -0
  61. data/spec/models/delivery_report_delivered_seconds_by_resolution_spec.rb +46 -0
  62. data/spec/models/get_monitoring_breakdown_timeseries_response_spec.rb +46 -0
  63. data/spec/models/monitoring_breakdown_timeseries_datapoint_spec.rb +46 -0
  64. data/spec/models/monitoring_breakdown_timeseries_values_spec.rb +40 -0
  65. data/test.sh +2 -2
  66. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/byebug/byebug.so +0 -0
  67. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +6 -6
  68. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.15.5/ffi_c.so +0 -0
  69. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.15.5/gem_make.out +6 -6
  70. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.15.5/mkmf.log +15 -15
  71. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.4/gem_make.out +14 -14
  72. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.4/jaro_winkler/jaro_winkler_ext.so +0 -0
  73. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/gem_make.out +6 -6
  74. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/mkmf.log +4 -4
  75. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/psych.so +0 -0
  76. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/gem_make.out +6 -6
  77. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/mkmf.log +2 -2
  78. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/stringio.so +0 -0
  79. data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug/Makefile +6 -6
  80. data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
  81. data/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +6 -6
  82. data/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/lib/ffi_c.so +0 -0
  83. data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/ext/jaro_winkler/Makefile +6 -6
  84. data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
  85. data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/ext/psych/Makefile +6 -6
  86. data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/lib/psych.so +0 -0
  87. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/ext/stringio/Makefile +6 -6
  88. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/lib/stringio.so +0 -0
  89. data/vendor/bundle/ruby/3.2.0/specifications/ast-2.4.2.gemspec +2 -2
  90. data/vendor/bundle/ruby/3.2.0/specifications/byebug-11.1.3.gemspec +2 -2
  91. data/vendor/bundle/ruby/3.2.0/specifications/coderay-1.1.3.gemspec +2 -2
  92. data/vendor/bundle/ruby/3.2.0/specifications/diff-lcs-1.5.0.gemspec +2 -2
  93. data/vendor/bundle/ruby/3.2.0/specifications/ethon-0.16.0.gemspec +2 -2
  94. data/vendor/bundle/ruby/3.2.0/specifications/ffi-1.15.5.gemspec +2 -2
  95. data/vendor/bundle/ruby/3.2.0/specifications/jaro_winkler-1.5.4.gemspec +2 -2
  96. data/vendor/bundle/ruby/3.2.0/specifications/method_source-1.0.0.gemspec +2 -2
  97. data/vendor/bundle/ruby/3.2.0/specifications/parallel-1.22.1.gemspec +2 -2
  98. data/vendor/bundle/ruby/3.2.0/specifications/parser-3.1.2.0.gemspec +2 -2
  99. data/vendor/bundle/ruby/3.2.0/specifications/pry-0.13.1.gemspec +2 -2
  100. data/vendor/bundle/ruby/3.2.0/specifications/pry-byebug-3.9.0.gemspec +2 -2
  101. data/vendor/bundle/ruby/3.2.0/specifications/psych-4.0.4.gemspec +2 -2
  102. data/vendor/bundle/ruby/3.2.0/specifications/rainbow-3.1.1.gemspec +2 -2
  103. data/vendor/bundle/ruby/3.2.0/specifications/rake-13.0.6.gemspec +2 -2
  104. data/vendor/bundle/ruby/3.2.0/specifications/rspec-3.11.0.gemspec +2 -2
  105. data/vendor/bundle/ruby/3.2.0/specifications/rspec-core-3.11.0.gemspec +2 -2
  106. data/vendor/bundle/ruby/3.2.0/specifications/rspec-expectations-3.11.0.gemspec +2 -2
  107. data/vendor/bundle/ruby/3.2.0/specifications/rspec-mocks-3.11.1.gemspec +2 -2
  108. data/vendor/bundle/ruby/3.2.0/specifications/rspec-support-3.11.0.gemspec +2 -2
  109. data/vendor/bundle/ruby/3.2.0/specifications/rubocop-0.66.0.gemspec +2 -2
  110. data/vendor/bundle/ruby/3.2.0/specifications/ruby-progressbar-1.11.0.gemspec +2 -2
  111. data/vendor/bundle/ruby/3.2.0/specifications/solid_assert-1.1.0.gemspec +2 -2
  112. data/vendor/bundle/ruby/3.2.0/specifications/stringio-3.0.2.gemspec +2 -2
  113. data/vendor/bundle/ruby/3.2.0/specifications/typhoeus-1.4.0.gemspec +2 -2
  114. data/vendor/bundle/ruby/3.2.0/specifications/unicode-display_width-1.5.0.gemspec +2 -2
  115. metadata +164 -140
@@ -265,6 +265,38 @@ module MuxRuby
265
265
 
266
266
  attr_accessor :custom_5
267
267
 
268
+ attr_accessor :custom_6
269
+
270
+ attr_accessor :custom_7
271
+
272
+ attr_accessor :custom_8
273
+
274
+ attr_accessor :custom_9
275
+
276
+ attr_accessor :custom_10
277
+
278
+ attr_accessor :live_stream_latency
279
+
280
+ attr_accessor :asset_id
281
+
282
+ attr_accessor :environment_id
283
+
284
+ attr_accessor :live_stream_id
285
+
286
+ attr_accessor :mux_embed
287
+
288
+ attr_accessor :playback_id
289
+
290
+ attr_accessor :player_error_context
291
+
292
+ attr_accessor :view_drm_type
293
+
294
+ attr_accessor :view_dropped_frame_count
295
+
296
+ attr_accessor :view_has_ad
297
+
298
+ attr_accessor :video_startup_failure
299
+
268
300
  # Attribute mapping from ruby-style variable name to JSON key.
269
301
  def self.attribute_map
270
302
  {
@@ -392,7 +424,23 @@ module MuxRuby
392
424
  :'custom_2' => :'custom_2',
393
425
  :'custom_3' => :'custom_3',
394
426
  :'custom_4' => :'custom_4',
395
- :'custom_5' => :'custom_5'
427
+ :'custom_5' => :'custom_5',
428
+ :'custom_6' => :'custom_6',
429
+ :'custom_7' => :'custom_7',
430
+ :'custom_8' => :'custom_8',
431
+ :'custom_9' => :'custom_9',
432
+ :'custom_10' => :'custom_10',
433
+ :'live_stream_latency' => :'live_stream_latency',
434
+ :'asset_id' => :'asset_id',
435
+ :'environment_id' => :'environment_id',
436
+ :'live_stream_id' => :'live_stream_id',
437
+ :'mux_embed' => :'mux_embed',
438
+ :'playback_id' => :'playback_id',
439
+ :'player_error_context' => :'player_error_context',
440
+ :'view_drm_type' => :'view_drm_type',
441
+ :'view_dropped_frame_count' => :'view_dropped_frame_count',
442
+ :'view_has_ad' => :'view_has_ad',
443
+ :'video_startup_failure' => :'video_startup_failure'
396
444
  }
397
445
  end
398
446
 
@@ -528,7 +576,23 @@ module MuxRuby
528
576
  :'custom_2' => :'String',
529
577
  :'custom_3' => :'String',
530
578
  :'custom_4' => :'String',
531
- :'custom_5' => :'String'
579
+ :'custom_5' => :'String',
580
+ :'custom_6' => :'String',
581
+ :'custom_7' => :'String',
582
+ :'custom_8' => :'String',
583
+ :'custom_9' => :'String',
584
+ :'custom_10' => :'String',
585
+ :'live_stream_latency' => :'Integer',
586
+ :'asset_id' => :'String',
587
+ :'environment_id' => :'String',
588
+ :'live_stream_id' => :'String',
589
+ :'mux_embed' => :'String',
590
+ :'playback_id' => :'String',
591
+ :'player_error_context' => :'String',
592
+ :'view_drm_type' => :'String',
593
+ :'view_dropped_frame_count' => :'Integer',
594
+ :'view_has_ad' => :'Boolean',
595
+ :'video_startup_failure' => :'Boolean'
532
596
  }
533
597
  end
534
598
 
@@ -642,7 +706,20 @@ module MuxRuby
642
706
  :'custom_2',
643
707
  :'custom_3',
644
708
  :'custom_4',
645
- :'custom_5'
709
+ :'custom_5',
710
+ :'custom_6',
711
+ :'custom_7',
712
+ :'custom_8',
713
+ :'custom_9',
714
+ :'custom_10',
715
+ :'live_stream_latency',
716
+ :'asset_id',
717
+ :'live_stream_id',
718
+ :'mux_embed',
719
+ :'playback_id',
720
+ :'player_error_context',
721
+ :'view_drm_type',
722
+ :'view_dropped_frame_count',
646
723
  ])
647
724
  end
648
725
 
@@ -1162,6 +1239,70 @@ module MuxRuby
1162
1239
  if attributes.key?(:'custom_5')
1163
1240
  self.custom_5 = attributes[:'custom_5']
1164
1241
  end
1242
+
1243
+ if attributes.key?(:'custom_6')
1244
+ self.custom_6 = attributes[:'custom_6']
1245
+ end
1246
+
1247
+ if attributes.key?(:'custom_7')
1248
+ self.custom_7 = attributes[:'custom_7']
1249
+ end
1250
+
1251
+ if attributes.key?(:'custom_8')
1252
+ self.custom_8 = attributes[:'custom_8']
1253
+ end
1254
+
1255
+ if attributes.key?(:'custom_9')
1256
+ self.custom_9 = attributes[:'custom_9']
1257
+ end
1258
+
1259
+ if attributes.key?(:'custom_10')
1260
+ self.custom_10 = attributes[:'custom_10']
1261
+ end
1262
+
1263
+ if attributes.key?(:'live_stream_latency')
1264
+ self.live_stream_latency = attributes[:'live_stream_latency']
1265
+ end
1266
+
1267
+ if attributes.key?(:'asset_id')
1268
+ self.asset_id = attributes[:'asset_id']
1269
+ end
1270
+
1271
+ if attributes.key?(:'environment_id')
1272
+ self.environment_id = attributes[:'environment_id']
1273
+ end
1274
+
1275
+ if attributes.key?(:'live_stream_id')
1276
+ self.live_stream_id = attributes[:'live_stream_id']
1277
+ end
1278
+
1279
+ if attributes.key?(:'mux_embed')
1280
+ self.mux_embed = attributes[:'mux_embed']
1281
+ end
1282
+
1283
+ if attributes.key?(:'playback_id')
1284
+ self.playback_id = attributes[:'playback_id']
1285
+ end
1286
+
1287
+ if attributes.key?(:'player_error_context')
1288
+ self.player_error_context = attributes[:'player_error_context']
1289
+ end
1290
+
1291
+ if attributes.key?(:'view_drm_type')
1292
+ self.view_drm_type = attributes[:'view_drm_type']
1293
+ end
1294
+
1295
+ if attributes.key?(:'view_dropped_frame_count')
1296
+ self.view_dropped_frame_count = attributes[:'view_dropped_frame_count']
1297
+ end
1298
+
1299
+ if attributes.key?(:'view_has_ad')
1300
+ self.view_has_ad = attributes[:'view_has_ad']
1301
+ end
1302
+
1303
+ if attributes.key?(:'video_startup_failure')
1304
+ self.video_startup_failure = attributes[:'video_startup_failure']
1305
+ end
1165
1306
  end
1166
1307
 
1167
1308
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -1306,7 +1447,23 @@ module MuxRuby
1306
1447
  custom_2 == o.custom_2 &&
1307
1448
  custom_3 == o.custom_3 &&
1308
1449
  custom_4 == o.custom_4 &&
1309
- custom_5 == o.custom_5
1450
+ custom_5 == o.custom_5 &&
1451
+ custom_6 == o.custom_6 &&
1452
+ custom_7 == o.custom_7 &&
1453
+ custom_8 == o.custom_8 &&
1454
+ custom_9 == o.custom_9 &&
1455
+ custom_10 == o.custom_10 &&
1456
+ live_stream_latency == o.live_stream_latency &&
1457
+ asset_id == o.asset_id &&
1458
+ environment_id == o.environment_id &&
1459
+ live_stream_id == o.live_stream_id &&
1460
+ mux_embed == o.mux_embed &&
1461
+ playback_id == o.playback_id &&
1462
+ player_error_context == o.player_error_context &&
1463
+ view_drm_type == o.view_drm_type &&
1464
+ view_dropped_frame_count == o.view_dropped_frame_count &&
1465
+ view_has_ad == o.view_has_ad &&
1466
+ video_startup_failure == o.video_startup_failure
1310
1467
  end
1311
1468
 
1312
1469
  # @see the `==` method
@@ -1318,7 +1475,7 @@ module MuxRuby
1318
1475
  # Calculates hash code according to all attributes.
1319
1476
  # @return [Integer] Hash code
1320
1477
  def hash
1321
- [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].hash
1478
+ [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].hash
1322
1479
  end
1323
1480
 
1324
1481
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.1
11
11
  =end
12
12
 
13
13
  module MuxRuby
14
- VERSION = '3.8.0'
14
+ VERSION = '3.11.0'
15
15
  end
data/lib/mux_ruby.rb CHANGED
@@ -20,6 +20,7 @@ require 'mux_ruby/configuration'
20
20
  require 'mux_ruby/models/abridged_video_view'
21
21
  require 'mux_ruby/models/asset'
22
22
  require 'mux_ruby/models/asset_errors'
23
+ require 'mux_ruby/models/asset_generated_subtitle_settings'
23
24
  require 'mux_ruby/models/asset_master'
24
25
  require 'mux_ruby/models/asset_non_standard_input_reasons'
25
26
  require 'mux_ruby/models/asset_recording_times'
@@ -45,6 +46,7 @@ require 'mux_ruby/models/create_track_response'
45
46
  require 'mux_ruby/models/create_transcription_vocabulary_request'
46
47
  require 'mux_ruby/models/create_upload_request'
47
48
  require 'mux_ruby/models/delivery_report'
49
+ require 'mux_ruby/models/delivery_report_delivered_seconds_by_resolution'
48
50
  require 'mux_ruby/models/dimension_value'
49
51
  require 'mux_ruby/models/disable_live_stream_response'
50
52
  require 'mux_ruby/models/enable_live_stream_response'
@@ -60,6 +62,7 @@ require 'mux_ruby/models/get_asset_playback_id_response'
60
62
  require 'mux_ruby/models/get_live_stream_playback_id_response'
61
63
  require 'mux_ruby/models/get_metric_timeseries_data_response'
62
64
  require 'mux_ruby/models/get_monitoring_breakdown_response'
65
+ require 'mux_ruby/models/get_monitoring_breakdown_timeseries_response'
63
66
  require 'mux_ruby/models/get_monitoring_histogram_timeseries_response'
64
67
  require 'mux_ruby/models/get_monitoring_histogram_timeseries_response_meta'
65
68
  require 'mux_ruby/models/get_monitoring_timeseries_response'
@@ -112,6 +115,8 @@ require 'mux_ruby/models/live_stream_generated_subtitle_settings'
112
115
  require 'mux_ruby/models/live_stream_response'
113
116
  require 'mux_ruby/models/live_stream_status'
114
117
  require 'mux_ruby/models/metric'
118
+ require 'mux_ruby/models/monitoring_breakdown_timeseries_datapoint'
119
+ require 'mux_ruby/models/monitoring_breakdown_timeseries_values'
115
120
  require 'mux_ruby/models/monitoring_breakdown_value'
116
121
  require 'mux_ruby/models/monitoring_histogram_timeseries_bucket'
117
122
  require 'mux_ruby/models/monitoring_histogram_timeseries_bucket_values'
@@ -174,6 +179,7 @@ require 'mux_ruby/api/monitoring_api'
174
179
  require 'mux_ruby/api/playback_id_api'
175
180
  require 'mux_ruby/api/playback_restrictions_api'
176
181
  require 'mux_ruby/api/real_time_api'
182
+ require 'mux_ruby/api/signing_keys_api'
177
183
  require 'mux_ruby/api/spaces_api'
178
184
  require 'mux_ruby/api/transcription_vocabularies_api'
179
185
  require 'mux_ruby/api/url_signing_keys_api'
@@ -0,0 +1,83 @@
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
+
16
+ # Unit tests for MuxRuby::SigningKeysApi
17
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
+ # Please update as you see appropriate
19
+ describe 'SigningKeysApi' do
20
+ before do
21
+ # run before each test
22
+ @api_instance = MuxRuby::SigningKeysApi.new
23
+ end
24
+
25
+ after do
26
+ # run after each test
27
+ end
28
+
29
+ describe 'test an instance of SigningKeysApi' do
30
+ it 'should create an instance of SigningKeysApi' do
31
+ expect(@api_instance).to be_instance_of(MuxRuby::SigningKeysApi)
32
+ end
33
+ end
34
+
35
+ # unit tests for create_signing_key
36
+ # Create a signing key
37
+ # Creates a new signing key pair. When creating a new signing key, the API will generate a 2048-bit RSA key-pair and return the private key and a generated key-id; the public key will be stored at Mux to validate signed tokens.
38
+ # @param [Hash] opts the optional parameters
39
+ # @return [SigningKeyResponse]
40
+ describe 'create_signing_key test' 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
+ # unit tests for delete_signing_key
47
+ # Delete a signing key
48
+ # Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no JWTs can be signed using the key again.
49
+ # @param signing_key_id The ID of the signing key.
50
+ # @param [Hash] opts the optional parameters
51
+ # @return [nil]
52
+ describe 'delete_signing_key test' do
53
+ it 'should work' do
54
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
55
+ end
56
+ end
57
+
58
+ # unit tests for get_signing_key
59
+ # Retrieve a signing key
60
+ # Retrieves the details of a signing key that has previously been created. Supply the unique signing key ID that was returned from your previous request, and Mux will return the corresponding signing key information. **The private key is not returned in this response.**
61
+ # @param signing_key_id The ID of the signing key.
62
+ # @param [Hash] opts the optional parameters
63
+ # @return [SigningKeyResponse]
64
+ describe 'get_signing_key test' do
65
+ it 'should work' do
66
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
67
+ end
68
+ end
69
+
70
+ # unit tests for list_signing_keys
71
+ # List signing keys
72
+ # Returns a list of signing keys.
73
+ # @param [Hash] opts the optional parameters
74
+ # @option opts [Integer] :limit Number of items to include in the response
75
+ # @option opts [Integer] :page Offset by this many pages, of the size of `limit`
76
+ # @return [ListSigningKeysResponse]
77
+ describe 'list_signing_keys test' do
78
+ it 'should work' do
79
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
80
+ end
81
+ end
82
+
83
+ end
@@ -0,0 +1,50 @@
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::AssetGeneratedSubtitleSettings
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MuxRuby::AssetGeneratedSubtitleSettings do
21
+ let(:instance) { MuxRuby::AssetGeneratedSubtitleSettings.new }
22
+
23
+ describe 'test an instance of AssetGeneratedSubtitleSettings' do
24
+ it 'should create an instance of AssetGeneratedSubtitleSettings' do
25
+ expect(instance).to be_instance_of(MuxRuby::AssetGeneratedSubtitleSettings)
26
+ end
27
+ end
28
+ describe 'test attribute "name"' 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 "passthrough"' 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 "language_code"' do
41
+ it 'should work' do
42
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
43
+ # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["en", "en-US"])
44
+ # validator.allowable_values.each do |value|
45
+ # expect { instance.language_code = value }.not_to raise_error
46
+ # end
47
+ end
48
+ end
49
+
50
+ end
@@ -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::DeliveryReportDeliveredSecondsByResolution
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MuxRuby::DeliveryReportDeliveredSecondsByResolution do
21
+ let(:instance) { MuxRuby::DeliveryReportDeliveredSecondsByResolution.new }
22
+
23
+ describe 'test an instance of DeliveryReportDeliveredSecondsByResolution' do
24
+ it 'should create an instance of DeliveryReportDeliveredSecondsByResolution' do
25
+ expect(instance).to be_instance_of(MuxRuby::DeliveryReportDeliveredSecondsByResolution)
26
+ end
27
+ end
28
+ describe 'test attribute "tier_1080p"' 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 "tier_720p"' 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 "tier_audio_only"' 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
@@ -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::GetMonitoringBreakdownTimeseriesResponse
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MuxRuby::GetMonitoringBreakdownTimeseriesResponse do
21
+ let(:instance) { MuxRuby::GetMonitoringBreakdownTimeseriesResponse.new }
22
+
23
+ describe 'test an instance of GetMonitoringBreakdownTimeseriesResponse' do
24
+ it 'should create an instance of GetMonitoringBreakdownTimeseriesResponse' do
25
+ expect(instance).to be_instance_of(MuxRuby::GetMonitoringBreakdownTimeseriesResponse)
26
+ end
27
+ end
28
+ describe 'test attribute "data"' 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 "total_row_count"' 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 "timeframe"' 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
@@ -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::MonitoringBreakdownTimeseriesDatapoint
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MuxRuby::MonitoringBreakdownTimeseriesDatapoint do
21
+ let(:instance) { MuxRuby::MonitoringBreakdownTimeseriesDatapoint.new }
22
+
23
+ describe 'test an instance of MonitoringBreakdownTimeseriesDatapoint' do
24
+ it 'should create an instance of MonitoringBreakdownTimeseriesDatapoint' do
25
+ expect(instance).to be_instance_of(MuxRuby::MonitoringBreakdownTimeseriesDatapoint)
26
+ end
27
+ end
28
+ describe 'test attribute "value"' 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 "metric_value"' 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 "concurrent_viewers"' 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
@@ -0,0 +1,40 @@
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::MonitoringBreakdownTimeseriesValues
18
+ # Automatically generated by openapi-generator (https://openapi-generator.tech)
19
+ # Please update as you see appropriate
20
+ describe MuxRuby::MonitoringBreakdownTimeseriesValues do
21
+ let(:instance) { MuxRuby::MonitoringBreakdownTimeseriesValues.new }
22
+
23
+ describe 'test an instance of MonitoringBreakdownTimeseriesValues' do
24
+ it 'should create an instance of MonitoringBreakdownTimeseriesValues' do
25
+ expect(instance).to be_instance_of(MuxRuby::MonitoringBreakdownTimeseriesValues)
26
+ end
27
+ end
28
+ describe 'test attribute "values"' 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 "date"' 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
+ end
data/test.sh CHANGED
@@ -17,12 +17,12 @@ VIDEO_TESTS=./examples/video/exercise*.rb
17
17
  for f in $VIDEO_TESTS
18
18
  do
19
19
  echo "========== Running $f =========="
20
- ruby -I lib $f
20
+ bundle exec ruby -I lib $f
21
21
  done
22
22
 
23
23
  DATA_TESTS=./examples/data/exercise*.rb
24
24
  for f in $DATA_TESTS
25
25
  do
26
26
  echo "========== Running $f =========="
27
- ruby -I lib $f
27
+ bundle exec ruby -I lib $f
28
28
  done
@@ -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.0/x64/bin/ruby -I /opt/hostedtoolcache/Ruby/3.2.0/x64/lib/ruby/3.2.0 extconf.rb
2
+ /opt/hostedtoolcache/Ruby/3.2.2/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.20230130-1676-na63hz sitelibdir\=./.gem.20230130-1676-na63hz clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20231013-1882-510ng2 sitelibdir\=./.gem.20231013-1882-510ng2 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.20230130-1676-na63hz sitelibdir\=./.gem.20230130-1676-na63hz
9
+ make DESTDIR\= sitearchdir\=./.gem.20231013-1882-510ng2 sitelibdir\=./.gem.20231013-1882-510ng2
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.20230130-1676-na63hz sitelibdir\=./.gem.20230130-1676-na63hz install
39
- /usr/bin/install -c -m 0755 byebug.so ./.gem.20230130-1676-na63hz/byebug
38
+ make DESTDIR\= sitearchdir\=./.gem.20231013-1882-510ng2 sitelibdir\=./.gem.20231013-1882-510ng2 install
39
+ /usr/bin/install -c -m 0755 byebug.so ./.gem.20231013-1882-510ng2/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.20230130-1676-na63hz sitelibdir\=./.gem.20230130-1676-na63hz clean
42
+ make DESTDIR\= sitearchdir\=./.gem.20231013-1882-510ng2 sitelibdir\=./.gem.20231013-1882-510ng2 clean
@@ -1,5 +1,5 @@
1
1
  current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c
2
- /opt/hostedtoolcache/Ruby/3.2.0/x64/bin/ruby -I /opt/hostedtoolcache/Ruby/3.2.0/x64/lib/ruby/3.2.0 extconf.rb
2
+ /opt/hostedtoolcache/Ruby/3.2.2/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
@@ -9,10 +9,10 @@ creating extconf.h
9
9
  creating Makefile
10
10
 
11
11
  current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c
12
- make DESTDIR\= sitearchdir\=./.gem.20230130-1676-328y0n sitelibdir\=./.gem.20230130-1676-328y0n clean
12
+ make DESTDIR\= sitearchdir\=./.gem.20231013-1882-27j18j sitelibdir\=./.gem.20231013-1882-27j18j clean
13
13
 
14
14
  current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c
15
- make DESTDIR\= sitearchdir\=./.gem.20230130-1676-328y0n sitelibdir\=./.gem.20230130-1676-328y0n
15
+ make DESTDIR\= sitearchdir\=./.gem.20231013-1882-27j18j sitelibdir\=./.gem.20231013-1882-27j18j
16
16
  compiling AbstractMemory.c
17
17
  compiling ArrayType.c
18
18
  compiling Buffer.c
@@ -39,8 +39,8 @@ compiling ffi.c
39
39
  linking shared-object ffi_c.so
40
40
 
41
41
  current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c
42
- make DESTDIR\= sitearchdir\=./.gem.20230130-1676-328y0n sitelibdir\=./.gem.20230130-1676-328y0n install
43
- /usr/bin/install -c -m 0755 ffi_c.so ./.gem.20230130-1676-328y0n
42
+ make DESTDIR\= sitearchdir\=./.gem.20231013-1882-27j18j sitelibdir\=./.gem.20231013-1882-27j18j install
43
+ /usr/bin/install -c -m 0755 ffi_c.so ./.gem.20231013-1882-27j18j
44
44
 
45
45
  current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.15.5/ext/ffi_c
46
- make DESTDIR\= sitearchdir\=./.gem.20230130-1676-328y0n sitelibdir\=./.gem.20230130-1676-328y0n clean
46
+ make DESTDIR\= sitearchdir\=./.gem.20231013-1882-27j18j sitelibdir\=./.gem.20231013-1882-27j18j clean