From b063406c9f54f007610e3704f6d082b97b2d9226 Mon Sep 17 00:00:00 2001 From: Ed Ropple Date: Thu, 17 Mar 2022 17:31:36 -0400 Subject: [PATCH 01/14] wip --- .editorconfig | 6 ++++++ .openapi-generator-ignore | 3 +++ Gemfile.lock | 2 +- gen/templates/gem.mustache | 3 +++ gen/templates/gemspec.mustache | 1 + lib/mux_ruby.rb | 3 +++ mux_ruby.gemspec | 1 + 7 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 .editorconfig diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..021ec50 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,6 @@ +root = true + +[*.rb] +indent_size = 2 +indent_style = space +insert_final_newline = true diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore index 89eba81..1c6f7d2 100644 --- a/.openapi-generator-ignore +++ b/.openapi-generator-ignore @@ -25,3 +25,6 @@ git_push.sh .travis.yml + +lib/helpers.rb +lib/helpers/**/*.rb diff --git a/Gemfile.lock b/Gemfile.lock index 9039cf6..e4b6f73 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - mux_ruby (3.0.0) + mux_ruby (3.3.1) typhoeus (~> 1.0, >= 1.0.1) GEM diff --git a/gen/templates/gem.mustache b/gen/templates/gem.mustache index c9ae0eb..87063b8 100644 --- a/gen/templates/gem.mustache +++ b/gen/templates/gem.mustache @@ -21,6 +21,9 @@ require '{{importPath}}' {{/apis}} {{/apiInfo}} +# Custom imports +require 'mux_ruby/helpers' + module {{moduleName}} class << self # Customize default settings for the SDK using block. diff --git a/gen/templates/gemspec.mustache b/gen/templates/gemspec.mustache index bd6ce30..366ad63 100644 --- a/gen/templates/gemspec.mustache +++ b/gen/templates/gemspec.mustache @@ -26,6 +26,7 @@ Gem::Specification.new do |s| {{^isFaraday}} s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' {{/isFaraday}} + s.add_runtime_dependency 'securecompare', '1.0.0' s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0' diff --git a/lib/mux_ruby.rb b/lib/mux_ruby.rb index 48aa478..89f642e 100644 --- a/lib/mux_ruby.rb +++ b/lib/mux_ruby.rb @@ -144,6 +144,9 @@ require 'mux_ruby/api/url_signing_keys_api' require 'mux_ruby/api/video_views_api' +# Custom imports +require 'mux_ruby/helpers' + module MuxRuby class << self # Customize default settings for the SDK using block. diff --git a/mux_ruby.gemspec b/mux_ruby.gemspec index ef73160..e6cc06b 100644 --- a/mux_ruby.gemspec +++ b/mux_ruby.gemspec @@ -29,6 +29,7 @@ Gem::Specification.new do |s| s.required_ruby_version = ">= 2.4" s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' + s.add_runtime_dependency 'securecompare', '1.0.0' s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0' From 21438bb7a4ecf7afec8922ab773a85560b1c365b Mon Sep 17 00:00:00 2001 From: Ed Ropple Date: Fri, 18 Mar 2022 11:20:21 -0400 Subject: [PATCH 02/14] removed stub specs that don't do anything --- spec/api/assets_api_spec.rb | 175 ----- spec/api/delivery_usage_api_spec.rb | 43 -- spec/api/dimensions_api_spec.rb | 55 -- spec/api/direct_uploads_api_spec.rb | 74 -- spec/api/errors_api_spec.rb | 41 - spec/api/exports_api_spec.rb | 39 - spec/api/filters_api_spec.rb | 55 -- spec/api/incidents_api_spec.rb | 73 -- spec/api/live_streams_api_spec.rb | 185 ----- spec/api/metrics_api_spec.rb | 110 --- spec/api/playback_id_api_spec.rb | 40 - spec/api/playback_restrictions_api_spec.rb | 97 --- spec/api/real_time_api_spec.rb | 93 --- spec/api/url_signing_keys_api_spec.rb | 76 -- spec/api/video_views_api_spec.rb | 58 -- spec/models/abridged_video_view_spec.rb | 94 --- spec/models/asset_errors_spec.rb | 40 - spec/models/asset_master_spec.rb | 44 -- .../asset_non_standard_input_reasons_spec.rb | 98 --- spec/models/asset_recording_times_spec.rb | 40 - spec/models/asset_response_spec.rb | 34 - spec/models/asset_spec.rb | 188 ----- .../asset_static_renditions_files_spec.rb | 72 -- spec/models/asset_static_renditions_spec.rb | 44 -- spec/models/breakdown_value_spec.rb | 58 -- spec/models/create_asset_request_spec.rb | 84 --- .../models/create_live_stream_request_spec.rb | 70 -- .../models/create_playback_id_request_spec.rb | 34 - .../create_playback_id_response_spec.rb | 34 - ...reate_playback_restriction_request_spec.rb | 34 - .../create_simulcast_target_request_spec.rb | 46 -- spec/models/create_track_request_spec.rb | 78 -- spec/models/create_track_response_spec.rb | 34 - spec/models/create_upload_request_spec.rb | 52 -- spec/models/delivery_report_spec.rb | 70 -- spec/models/dimension_value_spec.rb | 40 - .../disable_live_stream_response_spec.rb | 34 - .../enable_live_stream_response_spec.rb | 34 - spec/models/error_spec.rb | 76 -- spec/models/export_date_spec.rb | 40 - spec/models/export_file_spec.rb | 46 -- spec/models/filter_value_spec.rb | 40 - .../get_asset_input_info_response_spec.rb | 34 - ...ive_stream_id_response_data_object_spec.rb | 44 -- ...et_or_live_stream_id_response_data_spec.rb | 46 -- ...t_asset_or_live_stream_id_response_spec.rb | 34 - .../get_asset_playback_id_response_spec.rb | 34 - ...t_live_stream_playback_id_response_spec.rb | 34 - ...et_metric_timeseries_data_response_spec.rb | 46 -- .../get_overall_values_response_spec.rb | 46 -- .../get_real_time_breakdown_response_spec.rb | 46 -- ...histogram_timeseries_response_meta_spec.rb | 34 - ...time_histogram_timeseries_response_spec.rb | 52 -- .../get_real_time_timeseries_response_spec.rb | 46 -- spec/models/incident_breakdown_spec.rb | 46 -- .../models/incident_notification_rule_spec.rb | 58 -- spec/models/incident_notification_spec.rb | 46 -- spec/models/incident_response_spec.rb | 40 - spec/models/incident_spec.rb | 154 ---- spec/models/input_file_spec.rb | 40 - spec/models/input_info_spec.rb | 40 - .../input_settings_overlay_settings_spec.rb | 78 -- spec/models/input_settings_spec.rb | 96 --- spec/models/input_track_spec.rb | 82 -- spec/models/insight_spec.rb | 64 -- .../list_all_metric_values_response_spec.rb | 46 -- spec/models/list_assets_response_spec.rb | 34 - .../list_breakdown_values_response_spec.rb | 46 -- .../list_delivery_usage_response_spec.rb | 52 -- .../list_dimension_values_response_spec.rb | 46 -- spec/models/list_dimensions_response_spec.rb | 46 -- spec/models/list_errors_response_spec.rb | 46 -- spec/models/list_exports_response_spec.rb | 46 -- .../list_filter_values_response_spec.rb | 46 -- .../models/list_filters_response_data_spec.rb | 40 - spec/models/list_filters_response_spec.rb | 46 -- spec/models/list_incidents_response_spec.rb | 46 -- spec/models/list_insights_response_spec.rb | 46 -- .../models/list_live_streams_response_spec.rb | 34 - ...ist_playback_restrictions_response_spec.rb | 34 - ...real_time_dimensions_response_data_spec.rb | 40 - ...list_real_time_dimensions_response_spec.rb | 46 -- .../list_real_time_metrics_response_spec.rb | 46 -- .../list_related_incidents_response_spec.rb | 46 -- .../models/list_signing_keys_response_spec.rb | 34 - spec/models/list_uploads_response_spec.rb | 34 - .../list_video_view_exports_response_spec.rb | 46 -- spec/models/list_video_views_response_spec.rb | 46 -- ..._stream_embedded_subtitle_settings_spec.rb | 56 -- spec/models/live_stream_response_spec.rb | 34 - spec/models/live_stream_spec.rb | 106 --- spec/models/live_stream_status_spec.rb | 28 - spec/models/metric_spec.rb | 58 -- spec/models/notification_rule_spec.rb | 46 -- spec/models/overall_values_spec.rb | 52 -- spec/models/playback_id_spec.rb | 40 - spec/models/playback_policy_spec.rb | 28 - .../playback_restriction_response_spec.rb | 28 - spec/models/playback_restriction_spec.rb | 52 -- spec/models/real_time_breakdown_value_spec.rb | 58 -- ...l_time_histogram_timeseries_bucket_spec.rb | 40 - ...histogram_timeseries_bucket_values_spec.rb | 40 - ...ime_histogram_timeseries_datapoint_spec.rb | 70 -- .../real_time_timeseries_datapoint_spec.rb | 46 -- .../referrer_domain_restriction_spec.rb | 40 - spec/models/score_spec.rb | 64 -- ...gnal_live_stream_complete_response_spec.rb | 34 - spec/models/signing_key_response_spec.rb | 34 - spec/models/signing_key_spec.rb | 46 -- spec/models/simulcast_target_response_spec.rb | 34 - spec/models/simulcast_target_spec.rb | 62 -- spec/models/track_spec.rb | 118 --- ...update_asset_master_access_request_spec.rb | 38 - .../update_asset_mp4_support_request_spec.rb | 38 - spec/models/update_asset_request_spec.rb | 34 - ..._stream_embedded_subtitles_request_spec.rb | 34 - .../models/update_live_stream_request_spec.rb | 50 -- ...eferrer_domain_restriction_request_spec.rb | 28 - spec/models/upload_error_spec.rb | 40 - spec/models/upload_response_spec.rb | 34 - spec/models/upload_spec.rb | 86 --- spec/models/video_view_event_spec.rb | 52 -- spec/models/video_view_response_spec.rb | 40 - spec/models/video_view_spec.rb | 700 ------------------ 124 files changed, 7392 deletions(-) delete mode 100644 spec/api/assets_api_spec.rb delete mode 100644 spec/api/delivery_usage_api_spec.rb delete mode 100644 spec/api/dimensions_api_spec.rb delete mode 100644 spec/api/direct_uploads_api_spec.rb delete mode 100644 spec/api/errors_api_spec.rb delete mode 100644 spec/api/exports_api_spec.rb delete mode 100644 spec/api/filters_api_spec.rb delete mode 100644 spec/api/incidents_api_spec.rb delete mode 100644 spec/api/live_streams_api_spec.rb delete mode 100644 spec/api/metrics_api_spec.rb delete mode 100644 spec/api/playback_id_api_spec.rb delete mode 100644 spec/api/playback_restrictions_api_spec.rb delete mode 100644 spec/api/real_time_api_spec.rb delete mode 100644 spec/api/url_signing_keys_api_spec.rb delete mode 100644 spec/api/video_views_api_spec.rb delete mode 100644 spec/models/abridged_video_view_spec.rb delete mode 100644 spec/models/asset_errors_spec.rb delete mode 100644 spec/models/asset_master_spec.rb delete mode 100644 spec/models/asset_non_standard_input_reasons_spec.rb delete mode 100644 spec/models/asset_recording_times_spec.rb delete mode 100644 spec/models/asset_response_spec.rb delete mode 100644 spec/models/asset_spec.rb delete mode 100644 spec/models/asset_static_renditions_files_spec.rb delete mode 100644 spec/models/asset_static_renditions_spec.rb delete mode 100644 spec/models/breakdown_value_spec.rb delete mode 100644 spec/models/create_asset_request_spec.rb delete mode 100644 spec/models/create_live_stream_request_spec.rb delete mode 100644 spec/models/create_playback_id_request_spec.rb delete mode 100644 spec/models/create_playback_id_response_spec.rb delete mode 100644 spec/models/create_playback_restriction_request_spec.rb delete mode 100644 spec/models/create_simulcast_target_request_spec.rb delete mode 100644 spec/models/create_track_request_spec.rb delete mode 100644 spec/models/create_track_response_spec.rb delete mode 100644 spec/models/create_upload_request_spec.rb delete mode 100644 spec/models/delivery_report_spec.rb delete mode 100644 spec/models/dimension_value_spec.rb delete mode 100644 spec/models/disable_live_stream_response_spec.rb delete mode 100644 spec/models/enable_live_stream_response_spec.rb delete mode 100644 spec/models/error_spec.rb delete mode 100644 spec/models/export_date_spec.rb delete mode 100644 spec/models/export_file_spec.rb delete mode 100644 spec/models/filter_value_spec.rb delete mode 100644 spec/models/get_asset_input_info_response_spec.rb delete mode 100644 spec/models/get_asset_or_live_stream_id_response_data_object_spec.rb delete mode 100644 spec/models/get_asset_or_live_stream_id_response_data_spec.rb delete mode 100644 spec/models/get_asset_or_live_stream_id_response_spec.rb delete mode 100644 spec/models/get_asset_playback_id_response_spec.rb delete mode 100644 spec/models/get_live_stream_playback_id_response_spec.rb delete mode 100644 spec/models/get_metric_timeseries_data_response_spec.rb delete mode 100644 spec/models/get_overall_values_response_spec.rb delete mode 100644 spec/models/get_real_time_breakdown_response_spec.rb delete mode 100644 spec/models/get_real_time_histogram_timeseries_response_meta_spec.rb delete mode 100644 spec/models/get_real_time_histogram_timeseries_response_spec.rb delete mode 100644 spec/models/get_real_time_timeseries_response_spec.rb delete mode 100644 spec/models/incident_breakdown_spec.rb delete mode 100644 spec/models/incident_notification_rule_spec.rb delete mode 100644 spec/models/incident_notification_spec.rb delete mode 100644 spec/models/incident_response_spec.rb delete mode 100644 spec/models/incident_spec.rb delete mode 100644 spec/models/input_file_spec.rb delete mode 100644 spec/models/input_info_spec.rb delete mode 100644 spec/models/input_settings_overlay_settings_spec.rb delete mode 100644 spec/models/input_settings_spec.rb delete mode 100644 spec/models/input_track_spec.rb delete mode 100644 spec/models/insight_spec.rb delete mode 100644 spec/models/list_all_metric_values_response_spec.rb delete mode 100644 spec/models/list_assets_response_spec.rb delete mode 100644 spec/models/list_breakdown_values_response_spec.rb delete mode 100644 spec/models/list_delivery_usage_response_spec.rb delete mode 100644 spec/models/list_dimension_values_response_spec.rb delete mode 100644 spec/models/list_dimensions_response_spec.rb delete mode 100644 spec/models/list_errors_response_spec.rb delete mode 100644 spec/models/list_exports_response_spec.rb delete mode 100644 spec/models/list_filter_values_response_spec.rb delete mode 100644 spec/models/list_filters_response_data_spec.rb delete mode 100644 spec/models/list_filters_response_spec.rb delete mode 100644 spec/models/list_incidents_response_spec.rb delete mode 100644 spec/models/list_insights_response_spec.rb delete mode 100644 spec/models/list_live_streams_response_spec.rb delete mode 100644 spec/models/list_playback_restrictions_response_spec.rb delete mode 100644 spec/models/list_real_time_dimensions_response_data_spec.rb delete mode 100644 spec/models/list_real_time_dimensions_response_spec.rb delete mode 100644 spec/models/list_real_time_metrics_response_spec.rb delete mode 100644 spec/models/list_related_incidents_response_spec.rb delete mode 100644 spec/models/list_signing_keys_response_spec.rb delete mode 100644 spec/models/list_uploads_response_spec.rb delete mode 100644 spec/models/list_video_view_exports_response_spec.rb delete mode 100644 spec/models/list_video_views_response_spec.rb delete mode 100644 spec/models/live_stream_embedded_subtitle_settings_spec.rb delete mode 100644 spec/models/live_stream_response_spec.rb delete mode 100644 spec/models/live_stream_spec.rb delete mode 100644 spec/models/live_stream_status_spec.rb delete mode 100644 spec/models/metric_spec.rb delete mode 100644 spec/models/notification_rule_spec.rb delete mode 100644 spec/models/overall_values_spec.rb delete mode 100644 spec/models/playback_id_spec.rb delete mode 100644 spec/models/playback_policy_spec.rb delete mode 100644 spec/models/playback_restriction_response_spec.rb delete mode 100644 spec/models/playback_restriction_spec.rb delete mode 100644 spec/models/real_time_breakdown_value_spec.rb delete mode 100644 spec/models/real_time_histogram_timeseries_bucket_spec.rb delete mode 100644 spec/models/real_time_histogram_timeseries_bucket_values_spec.rb delete mode 100644 spec/models/real_time_histogram_timeseries_datapoint_spec.rb delete mode 100644 spec/models/real_time_timeseries_datapoint_spec.rb delete mode 100644 spec/models/referrer_domain_restriction_spec.rb delete mode 100644 spec/models/score_spec.rb delete mode 100644 spec/models/signal_live_stream_complete_response_spec.rb delete mode 100644 spec/models/signing_key_response_spec.rb delete mode 100644 spec/models/signing_key_spec.rb delete mode 100644 spec/models/simulcast_target_response_spec.rb delete mode 100644 spec/models/simulcast_target_spec.rb delete mode 100644 spec/models/track_spec.rb delete mode 100644 spec/models/update_asset_master_access_request_spec.rb delete mode 100644 spec/models/update_asset_mp4_support_request_spec.rb delete mode 100644 spec/models/update_asset_request_spec.rb delete mode 100644 spec/models/update_live_stream_embedded_subtitles_request_spec.rb delete mode 100644 spec/models/update_live_stream_request_spec.rb delete mode 100644 spec/models/update_referrer_domain_restriction_request_spec.rb delete mode 100644 spec/models/upload_error_spec.rb delete mode 100644 spec/models/upload_response_spec.rb delete mode 100644 spec/models/upload_spec.rb delete mode 100644 spec/models/video_view_event_spec.rb delete mode 100644 spec/models/video_view_response_spec.rb delete mode 100644 spec/models/video_view_spec.rb diff --git a/spec/api/assets_api_spec.rb b/spec/api/assets_api_spec.rb deleted file mode 100644 index a3342dd..0000000 --- a/spec/api/assets_api_spec.rb +++ /dev/null @@ -1,175 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' - -# Unit tests for MuxRuby::AssetsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'AssetsApi' do - before do - # run before each test - @instance = MuxRuby::AssetsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of AssetsApi' do - it 'should create an instance of AssetsApi' do - expect(@instance).to be_instance_of(MuxRuby::AssetsApi) - end - end - - # unit tests for create_asset - # Create an asset - # Create a new Mux Video asset. - # @param create_asset_request - # @param [Hash] opts the optional parameters - # @return [AssetResponse] - describe 'create_asset test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for create_asset_playback_id - # Create a playback ID - # @param asset_id The asset ID. - # @param create_playback_id_request - # @param [Hash] opts the optional parameters - # @return [CreatePlaybackIDResponse] - describe 'create_asset_playback_id test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for create_asset_track - # Create an asset track - # @param asset_id The asset ID. - # @param create_track_request - # @param [Hash] opts the optional parameters - # @return [CreateTrackResponse] - describe 'create_asset_track test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for delete_asset - # Delete an asset - # Deletes a video asset and all its data - # @param asset_id The asset ID. - # @param [Hash] opts the optional parameters - # @return [nil] - describe 'delete_asset test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for delete_asset_playback_id - # Delete a playback ID - # @param asset_id The asset ID. - # @param playback_id The live stream's playback ID. - # @param [Hash] opts the optional parameters - # @return [nil] - describe 'delete_asset_playback_id test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for delete_asset_track - # Delete an asset track - # @param asset_id The asset ID. - # @param track_id The track ID. - # @param [Hash] opts the optional parameters - # @return [nil] - describe 'delete_asset_track test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_asset - # Retrieve an asset - # Retrieves the details of an asset that has previously been created. Supply the unique asset ID that was returned from your previous request, and Mux will return the corresponding asset information. The same information is returned when creating an asset. - # @param asset_id The asset ID. - # @param [Hash] opts the optional parameters - # @return [AssetResponse] - describe 'get_asset test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_asset_input_info - # Retrieve asset input info - # Returns a list of the input objects that were used to create the asset along with any settings that were applied to each input. - # @param asset_id The asset ID. - # @param [Hash] opts the optional parameters - # @return [GetAssetInputInfoResponse] - describe 'get_asset_input_info test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_asset_playback_id - # Retrieve a playback ID - # @param asset_id The asset ID. - # @param playback_id The live stream's playback ID. - # @param [Hash] opts the optional parameters - # @return [GetAssetPlaybackIDResponse] - describe 'get_asset_playback_id test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_assets - # List assets - # List all Mux assets. - # @param [Hash] opts the optional parameters - # @option opts [Integer] :limit Number of items to include in the response - # @option opts [Integer] :page Offset by this many pages, of the size of `limit` - # @return [ListAssetsResponse] - describe 'list_assets test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for update_asset_master_access - # Update master access - # 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. - # @param asset_id The asset ID. - # @param update_asset_master_access_request - # @param [Hash] opts the optional parameters - # @return [AssetResponse] - describe 'update_asset_master_access test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for update_asset_mp4_support - # Update MP4 support - # 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. - # @param asset_id The asset ID. - # @param update_asset_mp4_support_request - # @param [Hash] opts the optional parameters - # @return [AssetResponse] - describe 'update_asset_mp4_support test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/api/delivery_usage_api_spec.rb b/spec/api/delivery_usage_api_spec.rb deleted file mode 100644 index 5832470..0000000 --- a/spec/api/delivery_usage_api_spec.rb +++ /dev/null @@ -1,43 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' - -# Unit tests for MuxRuby::DeliveryUsageApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'DeliveryUsageApi' do - before do - # run before each test - @instance = MuxRuby::DeliveryUsageApi.new - end - - after do - # run after each test - end - - describe 'test an instance of DeliveryUsageApi' do - it 'should create an instance of DeliveryUsageApi' do - expect(@instance).to be_instance_of(MuxRuby::DeliveryUsageApi) - end - end - - # unit tests for list_delivery_usage - # List Usage - # Returns a list of delivery usage records and their associated Asset IDs or Live Stream IDs. - # @param [Hash] opts the optional parameters - # @option opts [Integer] :page Offset by this many pages, of the size of `limit` - # @option opts [Integer] :limit Number of items to include in the response - # @option opts [String] :asset_id Filter response to return delivery usage for this asset only. - # @option opts [Array] :timeframe Time window to get delivery usage information. timeframe[0] indicates the start time, timeframe[1] indicates the end time in seconds since the Unix epoch. Default time window is 1 hour representing usage from 13th to 12th hour from when the request is made. - # @return [ListDeliveryUsageResponse] - describe 'list_delivery_usage test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/api/dimensions_api_spec.rb b/spec/api/dimensions_api_spec.rb deleted file mode 100644 index 76fca05..0000000 --- a/spec/api/dimensions_api_spec.rb +++ /dev/null @@ -1,55 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' - -# Unit tests for MuxRuby::DimensionsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'DimensionsApi' do - before do - # run before each test - @instance = MuxRuby::DimensionsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of DimensionsApi' do - it 'should create an instance of DimensionsApi' do - expect(@instance).to be_instance_of(MuxRuby::DimensionsApi) - end - end - - # unit tests for list_dimension_values - # Lists the values for a specific dimension - # Lists the values for a dimension along with a total count of related views. Note: This API replaces the list-filter-values API call. - # @param dimension_id ID of the Dimension - # @param [Hash] opts the optional parameters - # @option opts [Integer] :limit Number of items to include in the response - # @option opts [Integer] :page Offset by this many pages, of the size of `limit` - # @option opts [Array] :filters Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint. - # @option opts [Array] :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. - # @return [ListDimensionValuesResponse] - describe 'list_dimension_values test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_dimensions - # List Dimensions - # List all available dimensions. Note: This API replaces the list-filters API call. - # @param [Hash] opts the optional parameters - # @return [ListDimensionsResponse] - describe 'list_dimensions test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/api/direct_uploads_api_spec.rb b/spec/api/direct_uploads_api_spec.rb deleted file mode 100644 index 3402293..0000000 --- a/spec/api/direct_uploads_api_spec.rb +++ /dev/null @@ -1,74 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' - -# Unit tests for MuxRuby::DirectUploadsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'DirectUploadsApi' do - before do - # run before each test - @instance = MuxRuby::DirectUploadsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of DirectUploadsApi' do - it 'should create an instance of DirectUploadsApi' do - expect(@instance).to be_instance_of(MuxRuby::DirectUploadsApi) - end - end - - # unit tests for cancel_direct_upload - # Cancel a direct upload - # Cancels a direct upload and marks it as cancelled. If a pending upload finishes after this request, no asset will be created. This request will only succeed if the upload is still in the `waiting` state. - # @param upload_id ID of the Upload - # @param [Hash] opts the optional parameters - # @return [UploadResponse] - describe 'cancel_direct_upload test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for create_direct_upload - # Create a new direct upload URL - # @param create_upload_request - # @param [Hash] opts the optional parameters - # @return [UploadResponse] - describe 'create_direct_upload test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_direct_upload - # Retrieve a single direct upload's info - # @param upload_id ID of the Upload - # @param [Hash] opts the optional parameters - # @return [UploadResponse] - describe 'get_direct_upload test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_direct_uploads - # List direct uploads - # @param [Hash] opts the optional parameters - # @option opts [Integer] :limit Number of items to include in the response - # @option opts [Integer] :page Offset by this many pages, of the size of `limit` - # @return [ListUploadsResponse] - describe 'list_direct_uploads test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/api/errors_api_spec.rb b/spec/api/errors_api_spec.rb deleted file mode 100644 index bb57172..0000000 --- a/spec/api/errors_api_spec.rb +++ /dev/null @@ -1,41 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' - -# Unit tests for MuxRuby::ErrorsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ErrorsApi' do - before do - # run before each test - @instance = MuxRuby::ErrorsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of ErrorsApi' do - it 'should create an instance of ErrorsApi' do - expect(@instance).to be_instance_of(MuxRuby::ErrorsApi) - end - end - - # unit tests for list_errors - # List Errors - # Returns a list of errors - # @param [Hash] opts the optional parameters - # @option opts [Array] :filters Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint. - # @option opts [Array] :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. - # @return [ListErrorsResponse] - describe 'list_errors test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/api/exports_api_spec.rb b/spec/api/exports_api_spec.rb deleted file mode 100644 index 7af453b..0000000 --- a/spec/api/exports_api_spec.rb +++ /dev/null @@ -1,39 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' - -# Unit tests for MuxRuby::ExportsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ExportsApi' do - before do - # run before each test - @instance = MuxRuby::ExportsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of ExportsApi' do - it 'should create an instance of ExportsApi' do - expect(@instance).to be_instance_of(MuxRuby::ExportsApi) - end - end - - # unit tests for list_exports - # List property video view export links - # Lists the available video view exports along with URLs to retrieve them - # @param [Hash] opts the optional parameters - # @return [ListExportsResponse] - describe 'list_exports test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/api/filters_api_spec.rb b/spec/api/filters_api_spec.rb deleted file mode 100644 index 473fe6d..0000000 --- a/spec/api/filters_api_spec.rb +++ /dev/null @@ -1,55 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' - -# Unit tests for MuxRuby::FiltersApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'FiltersApi' do - before do - # run before each test - @instance = MuxRuby::FiltersApi.new - end - - after do - # run after each test - end - - describe 'test an instance of FiltersApi' do - it 'should create an instance of FiltersApi' do - expect(@instance).to be_instance_of(MuxRuby::FiltersApi) - end - end - - # unit tests for list_filter_values - # Lists values for a specific filter - # Deprecated: The API has been replaced by the list-dimension-values API call. Lists the values for a filter along with a total count of related views. - # @param filter_id ID of the Filter - # @param [Hash] opts the optional parameters - # @option opts [Integer] :limit Number of items to include in the response - # @option opts [Integer] :page Offset by this many pages, of the size of `limit` - # @option opts [Array] :filters Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint. - # @option opts [Array] :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. - # @return [ListFilterValuesResponse] - describe 'list_filter_values test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_filters - # List Filters - # Deprecated: The API has been replaced by the list-dimensions API call. Lists all the filters broken out into basic and advanced. - # @param [Hash] opts the optional parameters - # @return [ListFiltersResponse] - describe 'list_filters test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/api/incidents_api_spec.rb b/spec/api/incidents_api_spec.rb deleted file mode 100644 index 6c4b37a..0000000 --- a/spec/api/incidents_api_spec.rb +++ /dev/null @@ -1,73 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' - -# Unit tests for MuxRuby::IncidentsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'IncidentsApi' do - before do - # run before each test - @instance = MuxRuby::IncidentsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of IncidentsApi' do - it 'should create an instance of IncidentsApi' do - expect(@instance).to be_instance_of(MuxRuby::IncidentsApi) - end - end - - # unit tests for get_incident - # Get an Incident - # Returns the details of an incident - # @param incident_id ID of the Incident - # @param [Hash] opts the optional parameters - # @return [IncidentResponse] - describe 'get_incident test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_incidents - # List Incidents - # Returns a list of incidents - # @param [Hash] opts the optional parameters - # @option opts [Integer] :limit Number of items to include in the response - # @option opts [Integer] :page Offset by this many pages, of the size of `limit` - # @option opts [String] :order_by Value to order the results by - # @option opts [String] :order_direction Sort order. - # @option opts [String] :status Status to filter incidents by - # @option opts [String] :severity Severity to filter incidents by - # @return [ListIncidentsResponse] - describe 'list_incidents test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_related_incidents - # List Related Incidents - # Returns all the incidents that seem related to a specific incident - # @param incident_id ID of the Incident - # @param [Hash] opts the optional parameters - # @option opts [Integer] :limit Number of items to include in the response - # @option opts [Integer] :page Offset by this many pages, of the size of `limit` - # @option opts [String] :order_by Value to order the results by - # @option opts [String] :order_direction Sort order. - # @return [ListRelatedIncidentsResponse] - describe 'list_related_incidents test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/api/live_streams_api_spec.rb b/spec/api/live_streams_api_spec.rb deleted file mode 100644 index f069d01..0000000 --- a/spec/api/live_streams_api_spec.rb +++ /dev/null @@ -1,185 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' - -# Unit tests for MuxRuby::LiveStreamsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'LiveStreamsApi' do - before do - # run before each test - @instance = MuxRuby::LiveStreamsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of LiveStreamsApi' do - it 'should create an instance of LiveStreamsApi' do - expect(@instance).to be_instance_of(MuxRuby::LiveStreamsApi) - end - end - - # unit tests for create_live_stream - # Create a live stream - # @param create_live_stream_request - # @param [Hash] opts the optional parameters - # @return [LiveStreamResponse] - describe 'create_live_stream test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for create_live_stream_playback_id - # Create a live stream playback ID - # @param live_stream_id The live stream ID - # @param create_playback_id_request - # @param [Hash] opts the optional parameters - # @return [CreatePlaybackIDResponse] - describe 'create_live_stream_playback_id test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for create_live_stream_simulcast_target - # Create a live stream simulcast target - # Create a simulcast target for the parent live stream. Simulcast target can only be created when the parent live stream is in idle state. Only one simulcast target can be created at a time with this API. - # @param live_stream_id The live stream ID - # @param create_simulcast_target_request - # @param [Hash] opts the optional parameters - # @return [SimulcastTargetResponse] - describe 'create_live_stream_simulcast_target test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for delete_live_stream - # Delete a live stream - # @param live_stream_id The live stream ID - # @param [Hash] opts the optional parameters - # @return [nil] - describe 'delete_live_stream test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for delete_live_stream_playback_id - # Delete a live stream playback ID - # @param live_stream_id The live stream ID - # @param playback_id The live stream's playback ID. - # @param [Hash] opts the optional parameters - # @return [nil] - describe 'delete_live_stream_playback_id test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for delete_live_stream_simulcast_target - # Delete a Live Stream Simulcast Target - # Delete the simulcast target using the simulcast target ID returned when creating the simulcast target. Simulcast Target can only be deleted when the parent live stream is in idle state. - # @param live_stream_id The live stream ID - # @param simulcast_target_id The ID of the simulcast target. - # @param [Hash] opts the optional parameters - # @return [nil] - describe 'delete_live_stream_simulcast_target test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for disable_live_stream - # Disable a live stream - # Disables a live stream, making it reject incoming RTMP streams until re-enabled. - # @param live_stream_id The live stream ID - # @param [Hash] opts the optional parameters - # @return [DisableLiveStreamResponse] - describe 'disable_live_stream test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for enable_live_stream - # Enable a live stream - # Enables a live stream, allowing it to accept an incoming RTMP stream. - # @param live_stream_id The live stream ID - # @param [Hash] opts the optional parameters - # @return [EnableLiveStreamResponse] - describe 'enable_live_stream test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_live_stream - # Retrieve a live stream - # 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. - # @param live_stream_id The live stream ID - # @param [Hash] opts the optional parameters - # @return [LiveStreamResponse] - describe 'get_live_stream test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_live_stream_simulcast_target - # Retrieve a Live Stream Simulcast Target - # Retrieves the details of the simulcast target created for the parent live stream. Supply the unique live stream ID and simulcast target ID that was returned in the response of create simulcast target request, and Mux will return the corresponding information. - # @param live_stream_id The live stream ID - # @param simulcast_target_id The ID of the simulcast target. - # @param [Hash] opts the optional parameters - # @return [SimulcastTargetResponse] - describe 'get_live_stream_simulcast_target test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_live_streams - # List live streams - # @param [Hash] opts the optional parameters - # @option opts [Integer] :limit Number of items to include in the response - # @option opts [Integer] :page Offset by this many pages, of the size of `limit` - # @return [ListLiveStreamsResponse] - describe 'list_live_streams test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for reset_stream_key - # Reset a live stream’s stream key - # Reset a live stream key if you want to immediately stop the current stream key from working and create a new stream key that can be used for future broadcasts. - # @param live_stream_id The live stream ID - # @param [Hash] opts the optional parameters - # @return [LiveStreamResponse] - describe 'reset_stream_key test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for signal_live_stream_complete - # Signal a live stream is finished - # (Optional) Make the recorded asset available immediately instead of waiting for the reconnect_window. - # @param live_stream_id The live stream ID - # @param [Hash] opts the optional parameters - # @return [SignalLiveStreamCompleteResponse] - describe 'signal_live_stream_complete test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/api/metrics_api_spec.rb b/spec/api/metrics_api_spec.rb deleted file mode 100644 index c74ff2e..0000000 --- a/spec/api/metrics_api_spec.rb +++ /dev/null @@ -1,110 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' - -# Unit tests for MuxRuby::MetricsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'MetricsApi' do - before do - # run before each test - @instance = MuxRuby::MetricsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of MetricsApi' do - it 'should create an instance of MetricsApi' do - expect(@instance).to be_instance_of(MuxRuby::MetricsApi) - end - end - - # unit tests for get_metric_timeseries_data - # Get metric timeseries data - # Returns timeseries data for a specific metric - # @param metric_id ID of the Metric - # @param [Hash] opts the optional parameters - # @option opts [Array] :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. - # @option opts [Array] :filters Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint. - # @option opts [String] :measurement Measurement for the provided metric. If omitted, the deafult for the metric will be used. - # @option opts [String] :order_direction Sort order. - # @option opts [String] :group_by Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the supplied timeframe. - # @return [GetMetricTimeseriesDataResponse] - describe 'get_metric_timeseries_data test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_overall_values - # Get Overall values - # Returns the overall value for a specific metric, as well as the total view count, watch time, and the Mux Global metric value for the metric. - # @param metric_id ID of the Metric - # @param [Hash] opts the optional parameters - # @option opts [Array] :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. - # @option opts [Array] :filters Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint. - # @option opts [String] :measurement Measurement for the provided metric. If omitted, the deafult for the metric will be used. - # @return [GetOverallValuesResponse] - describe 'get_overall_values test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_all_metric_values - # List all metric values - # List all of the values across every breakdown for a specific metric - # @param [Hash] opts the optional parameters - # @option opts [Array] :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. - # @option opts [Array] :filters Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint. - # @option opts [String] :dimension Dimension the specified value belongs to - # @option opts [String] :value Value to show all available metrics for - # @return [ListAllMetricValuesResponse] - describe 'list_all_metric_values test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_breakdown_values - # List breakdown values - # List the breakdown values for a specific metric - # @param metric_id ID of the Metric - # @param [Hash] opts the optional parameters - # @option opts [String] :group_by Breakdown value to group the results by - # @option opts [String] :measurement Measurement for the provided metric. If omitted, the deafult for the metric will be used. - # @option opts [Array] :filters Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint. - # @option opts [Integer] :limit Number of items to include in the response - # @option opts [Integer] :page Offset by this many pages, of the size of `limit` - # @option opts [String] :order_by Value to order the results by - # @option opts [String] :order_direction Sort order. - # @option opts [Array] :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. - # @return [ListBreakdownValuesResponse] - describe 'list_breakdown_values test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_insights - # List Insights - # Returns a list of insights for a metric. These are the worst performing values across all breakdowns sorted by how much they negatively impact a specific metric. - # @param metric_id ID of the Metric - # @param [Hash] opts the optional parameters - # @option opts [String] :measurement Measurement for the provided metric. If omitted, the deafult for the metric will be used. - # @option opts [String] :order_direction Sort order. - # @option opts [Array] :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. - # @return [ListInsightsResponse] - describe 'list_insights test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/api/playback_id_api_spec.rb b/spec/api/playback_id_api_spec.rb deleted file mode 100644 index afaf968..0000000 --- a/spec/api/playback_id_api_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' - -# Unit tests for MuxRuby::PlaybackIDApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PlaybackIDApi' do - before do - # run before each test - @instance = MuxRuby::PlaybackIDApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PlaybackIDApi' do - it 'should create an instance of PlaybackIDApi' do - expect(@instance).to be_instance_of(MuxRuby::PlaybackIDApi) - end - end - - # unit tests for get_asset_or_livestream_id - # Retrieve an Asset or Live Stream ID - # Retrieves the Identifier of the Asset or Live Stream associated with the Playback ID. - # @param playback_id The live stream's playback ID. - # @param [Hash] opts the optional parameters - # @return [GetAssetOrLiveStreamIdResponse] - describe 'get_asset_or_livestream_id test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/api/playback_restrictions_api_spec.rb b/spec/api/playback_restrictions_api_spec.rb deleted file mode 100644 index c90fa16..0000000 --- a/spec/api/playback_restrictions_api_spec.rb +++ /dev/null @@ -1,97 +0,0 @@ -=begin -#Mux API - -#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. - -The version of the OpenAPI document: v1 -Contact: devex@mux.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.1 - -=end - -require 'spec_helper' -require 'json' - -# Unit tests for MuxRuby::PlaybackRestrictionsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PlaybackRestrictionsApi' do - before do - # run before each test - @api_instance = MuxRuby::PlaybackRestrictionsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of PlaybackRestrictionsApi' do - it 'should create an instance of PlaybackRestrictionsApi' do - expect(@api_instance).to be_instance_of(MuxRuby::PlaybackRestrictionsApi) - end - end - - # unit tests for create_playback_restriction - # Create a Playback Restriction - # Create a new Playback Restriction. - # @param create_playback_restriction_request - # @param [Hash] opts the optional parameters - # @return [PlaybackRestriction] - describe 'create_playback_restriction test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for delete_playback_restriction - # Delete a Playback Restriction - # Deletes a single Playback Restriction. - # @param playback_restriction_id ID of the Playback Restriction. - # @param [Hash] opts the optional parameters - # @return [nil] - describe 'delete_playback_restriction test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_playback_restriction - # Retrieve a Playback Restriction - # Retrieves a Playback Restriction associated with the unique identifier. - # @param playback_restriction_id ID of the Playback Restriction. - # @param [Hash] opts the optional parameters - # @return [PlaybackRestriction] - describe 'get_playback_restriction test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_playback_restrictions - # List Playback Restrictions - # Returns a list of all Playback Restrictions. - # @param [Hash] opts the optional parameters - # @option opts [Integer] :page Offset by this many pages, of the size of `limit` - # @option opts [Integer] :limit Number of items to include in the response - # @return [Array] - describe 'list_playback_restrictions test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for update_referrer_domain_restriction - # Update the Referrer Playback Restriction - # Allows you to modify the list of domians or change how Mux validates playback requests without the `Referer` HTTP header. The Referrer restriction fully replaces the old list with this new list of domains. - # @param playback_restriction_id ID of the Playback Restriction. - # @param body - # @param [Hash] opts the optional parameters - # @return [PlaybackRestriction] - describe 'update_referrer_domain_restriction test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/api/real_time_api_spec.rb b/spec/api/real_time_api_spec.rb deleted file mode 100644 index 0b302fe..0000000 --- a/spec/api/real_time_api_spec.rb +++ /dev/null @@ -1,93 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' - -# Unit tests for MuxRuby::RealTimeApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'RealTimeApi' do - before do - # run before each test - @instance = MuxRuby::RealTimeApi.new - end - - after do - # run after each test - end - - describe 'test an instance of RealTimeApi' do - it 'should create an instance of RealTimeApi' do - expect(@instance).to be_instance_of(MuxRuby::RealTimeApi) - end - end - - # unit tests for get_realtime_breakdown - # Get Real-Time Breakdown - # Gets breakdown information for a specific dimension and metric along with the number of concurrent viewers and negative impact score. - # @param realtime_metric_id ID of the Realtime Metric - # @param [Hash] opts the optional parameters - # @option opts [String] :dimension Dimension the specified value belongs to - # @option opts [Float] :timestamp Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp. - # @option opts [Array] :filters Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint. - # @option opts [String] :order_by Value to order the results by - # @option opts [String] :order_direction Sort order. - # @return [GetRealTimeBreakdownResponse] - describe 'get_realtime_breakdown test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_realtime_histogram_timeseries - # Get Real-Time Histogram Timeseries - # Gets histogram timeseries information for a specific metric. - # @param realtime_metric_id ID of the Realtime Metric - # @param [Hash] opts the optional parameters - # @option opts [Array] :filters Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint. - # @return [GetRealTimeHistogramTimeseriesResponse] - describe 'get_realtime_histogram_timeseries test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_realtime_timeseries - # Get Real-Time Timeseries - # Gets Time series information for a specific metric along with the number of concurrent viewers. - # @param realtime_metric_id ID of the Realtime Metric - # @param [Hash] opts the optional parameters - # @option opts [Array] :filters Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint. - # @return [GetRealTimeTimeseriesResponse] - describe 'get_realtime_timeseries test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_realtime_dimensions - # List Real-Time Dimensions - # Lists availiable real-time dimensions - # @param [Hash] opts the optional parameters - # @return [ListRealTimeDimensionsResponse] - describe 'list_realtime_dimensions test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_realtime_metrics - # List Real-Time Metrics - # Lists availiable real-time metrics. - # @param [Hash] opts the optional parameters - # @return [ListRealTimeMetricsResponse] - describe 'list_realtime_metrics test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/api/url_signing_keys_api_spec.rb b/spec/api/url_signing_keys_api_spec.rb deleted file mode 100644 index 50f5b53..0000000 --- a/spec/api/url_signing_keys_api_spec.rb +++ /dev/null @@ -1,76 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' - -# Unit tests for MuxRuby::URLSigningKeysApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'URLSigningKeysApi' do - before do - # run before each test - @instance = MuxRuby::URLSigningKeysApi.new - end - - after do - # run after each test - end - - describe 'test an instance of URLSigningKeysApi' do - it 'should create an instance of URLSigningKeysApi' do - expect(@instance).to be_instance_of(MuxRuby::URLSigningKeysApi) - end - end - - # unit tests for create_url_signing_key - # Create a URL signing key - # 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. - # @param [Hash] opts the optional parameters - # @return [SigningKeyResponse] - describe 'create_url_signing_key test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for delete_url_signing_key - # Delete a URL signing key - # Deletes an existing signing key. Use with caution, as this will invalidate any existing signatures and no URLs can be signed using the key again. - # @param signing_key_id The ID of the signing key. - # @param [Hash] opts the optional parameters - # @return [nil] - describe 'delete_url_signing_key test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for get_url_signing_key - # Retrieve a URL signing key - # Retrieves the details of a URL 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.** - # @param signing_key_id The ID of the signing key. - # @param [Hash] opts the optional parameters - # @return [SigningKeyResponse] - describe 'get_url_signing_key test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_url_signing_keys - # List URL signing keys - # Returns a list of URL signing keys. - # @param [Hash] opts the optional parameters - # @option opts [Integer] :limit Number of items to include in the response - # @option opts [Integer] :page Offset by this many pages, of the size of `limit` - # @return [ListSigningKeysResponse] - describe 'list_url_signing_keys test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/api/video_views_api_spec.rb b/spec/api/video_views_api_spec.rb deleted file mode 100644 index 5f15888..0000000 --- a/spec/api/video_views_api_spec.rb +++ /dev/null @@ -1,58 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' - -# Unit tests for MuxRuby::VideoViewsApi -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'VideoViewsApi' do - before do - # run before each test - @instance = MuxRuby::VideoViewsApi.new - end - - after do - # run after each test - end - - describe 'test an instance of VideoViewsApi' do - it 'should create an instance of VideoViewsApi' do - expect(@instance).to be_instance_of(MuxRuby::VideoViewsApi) - end - end - - # unit tests for get_video_view - # Get a Video View - # Returns the details of a video view - # @param video_view_id ID of the Video View - # @param [Hash] opts the optional parameters - # @return [VideoViewResponse] - describe 'get_video_view test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - # unit tests for list_video_views - # List Video Views - # Returns a list of video views - # @param [Hash] opts the optional parameters - # @option opts [Integer] :limit Number of items to include in the response - # @option opts [Integer] :page Offset by this many pages, of the size of `limit` - # @option opts [String] :viewer_id Viewer ID to filter results by. This value may be provided by the integration, or may be created by Mux. - # @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. - # @option opts [String] :order_direction Sort order. - # @option opts [Array] :filters Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint. - # @option opts [Array] :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. - # @return [ListVideoViewsResponse] - describe 'list_video_views test' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/abridged_video_view_spec.rb b/spec/models/abridged_video_view_spec.rb deleted file mode 100644 index b19e60e..0000000 --- a/spec/models/abridged_video_view_spec.rb +++ /dev/null @@ -1,94 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::AbridgedVideoView -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'AbridgedVideoView' do - before do - # run before each test - @instance = MuxRuby::AbridgedVideoView.new - end - - after do - # run after each test - end - - describe 'test an instance of AbridgedVideoView' do - it 'should create an instance of AbridgedVideoView' do - expect(@instance).to be_instance_of(MuxRuby::AbridgedVideoView) - end - end - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "viewer_os_family"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "viewer_application_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_title"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_error_message"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_error_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "error_type_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "country_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "view_start"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "view_end"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/asset_errors_spec.rb b/spec/models/asset_errors_spec.rb deleted file mode 100644 index f98f0a4..0000000 --- a/spec/models/asset_errors_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::AssetErrors -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'AssetErrors' do - before do - # run before each test - @instance = MuxRuby::AssetErrors.new - end - - after do - # run after each test - end - - describe 'test an instance of AssetErrors' do - it 'should create an instance of AssetErrors' do - expect(@instance).to be_instance_of(MuxRuby::AssetErrors) - end - end - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "messages"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/asset_master_spec.rb b/spec/models/asset_master_spec.rb deleted file mode 100644 index 33e49f5..0000000 --- a/spec/models/asset_master_spec.rb +++ /dev/null @@ -1,44 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::AssetMaster -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'AssetMaster' do - before do - # run before each test - @instance = MuxRuby::AssetMaster.new - end - - after do - # run after each test - end - - describe 'test an instance of AssetMaster' do - it 'should create an instance of AssetMaster' do - expect(@instance).to be_instance_of(MuxRuby::AssetMaster) - end - end - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ready", "preparing", "errored"]) - # validator.allowable_values.each do |value| - # expect { @instance.status = value }.not_to raise_error - # end - end - end - - describe 'test attribute "url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/asset_non_standard_input_reasons_spec.rb b/spec/models/asset_non_standard_input_reasons_spec.rb deleted file mode 100644 index f344620..0000000 --- a/spec/models/asset_non_standard_input_reasons_spec.rb +++ /dev/null @@ -1,98 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::AssetNonStandardInputReasons -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'AssetNonStandardInputReasons' do - before do - # run before each test - @instance = MuxRuby::AssetNonStandardInputReasons.new - end - - after do - # run after each test - end - - describe 'test an instance of AssetNonStandardInputReasons' do - it 'should create an instance of AssetNonStandardInputReasons' do - expect(@instance).to be_instance_of(MuxRuby::AssetNonStandardInputReasons) - end - end - describe 'test attribute "video_codec"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "audio_codec"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_gop_size"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["high"]) - # validator.allowable_values.each do |value| - # expect { @instance.video_gop_size = value }.not_to raise_error - # end - end - end - - describe 'test attribute "video_frame_rate"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_resolution"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "pixel_aspect_ratio"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_edit_list"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["non-standard"]) - # validator.allowable_values.each do |value| - # expect { @instance.video_edit_list = value }.not_to raise_error - # end - end - end - - describe 'test attribute "audio_edit_list"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["non-standard"]) - # validator.allowable_values.each do |value| - # expect { @instance.audio_edit_list = value }.not_to raise_error - # end - end - end - - describe 'test attribute "unexpected_media_file_parameters"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["non-standard"]) - # validator.allowable_values.each do |value| - # expect { @instance.unexpected_media_file_parameters = value }.not_to raise_error - # end - end - end - -end diff --git a/spec/models/asset_recording_times_spec.rb b/spec/models/asset_recording_times_spec.rb deleted file mode 100644 index 6825114..0000000 --- a/spec/models/asset_recording_times_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::AssetRecordingTimes -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'AssetRecordingTimes' do - before do - # run before each test - @instance = MuxRuby::AssetRecordingTimes.new - end - - after do - # run after each test - end - - describe 'test an instance of AssetRecordingTimes' do - it 'should create an instance of AssetRecordingTimes' do - expect(@instance).to be_instance_of(MuxRuby::AssetRecordingTimes) - end - end - describe 'test attribute "started_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "duration"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/asset_response_spec.rb b/spec/models/asset_response_spec.rb deleted file mode 100644 index d2a520e..0000000 --- a/spec/models/asset_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::AssetResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'AssetResponse' do - before do - # run before each test - @instance = MuxRuby::AssetResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of AssetResponse' do - it 'should create an instance of AssetResponse' do - expect(@instance).to be_instance_of(MuxRuby::AssetResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/asset_spec.rb b/spec/models/asset_spec.rb deleted file mode 100644 index 52cbad6..0000000 --- a/spec/models/asset_spec.rb +++ /dev/null @@ -1,188 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::Asset -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Asset' do - before do - # run before each test - @instance = MuxRuby::Asset.new - end - - after do - # run after each test - end - - describe 'test an instance of Asset' do - it 'should create an instance of Asset' do - expect(@instance).to be_instance_of(MuxRuby::Asset) - end - end - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "created_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "deleted_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["preparing", "ready", "errored"]) - # validator.allowable_values.each do |value| - # expect { @instance.status = value }.not_to raise_error - # end - end - end - - describe 'test attribute "duration"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "max_stored_resolution"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["Audio only", "SD", "HD", "FHD", "UHD"]) - # validator.allowable_values.each do |value| - # expect { @instance.max_stored_resolution = value }.not_to raise_error - # end - end - end - - describe 'test attribute "max_stored_frame_rate"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "aspect_ratio"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "playback_ids"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "tracks"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "errors"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "per_title_encode"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "is_live"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "passthrough"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "live_stream_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "master"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "master_access"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["temporary", "none"]) - # validator.allowable_values.each do |value| - # expect { @instance.master_access = value }.not_to raise_error - # end - end - end - - describe 'test attribute "mp4_support"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["standard", "none"]) - # validator.allowable_values.each do |value| - # expect { @instance.mp4_support = value }.not_to raise_error - # end - end - end - - describe 'test attribute "source_asset_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "normalize_audio"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "static_renditions"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "recording_times"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "non_standard_input_reasons"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "test"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/asset_static_renditions_files_spec.rb b/spec/models/asset_static_renditions_files_spec.rb deleted file mode 100644 index ab79a3d..0000000 --- a/spec/models/asset_static_renditions_files_spec.rb +++ /dev/null @@ -1,72 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::AssetStaticRenditionsFiles -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'AssetStaticRenditionsFiles' do - before do - # run before each test - @instance = MuxRuby::AssetStaticRenditionsFiles.new - end - - after do - # run after each test - end - - describe 'test an instance of AssetStaticRenditionsFiles' do - it 'should create an instance of AssetStaticRenditionsFiles' do - expect(@instance).to be_instance_of(MuxRuby::AssetStaticRenditionsFiles) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["low.mp4", "medium.mp4", "high.mp4", "audio.m4a"]) - # validator.allowable_values.each do |value| - # expect { @instance.name = value }.not_to raise_error - # end - end - end - - describe 'test attribute "ext"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["mp4", "m4a"]) - # validator.allowable_values.each do |value| - # expect { @instance.ext = value }.not_to raise_error - # end - end - end - - describe 'test attribute "height"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "width"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "bitrate"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "filesize"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/asset_static_renditions_spec.rb b/spec/models/asset_static_renditions_spec.rb deleted file mode 100644 index 8339bf1..0000000 --- a/spec/models/asset_static_renditions_spec.rb +++ /dev/null @@ -1,44 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::AssetStaticRenditions -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'AssetStaticRenditions' do - before do - # run before each test - @instance = MuxRuby::AssetStaticRenditions.new - end - - after do - # run after each test - end - - describe 'test an instance of AssetStaticRenditions' do - it 'should create an instance of AssetStaticRenditions' do - expect(@instance).to be_instance_of(MuxRuby::AssetStaticRenditions) - end - end - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["ready", "preparing", "disabled", "errored"]) - # validator.allowable_values.each do |value| - # expect { @instance.status = value }.not_to raise_error - # end - end - end - - describe 'test attribute "files"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/breakdown_value_spec.rb b/spec/models/breakdown_value_spec.rb deleted file mode 100644 index f1a71aa..0000000 --- a/spec/models/breakdown_value_spec.rb +++ /dev/null @@ -1,58 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::BreakdownValue -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'BreakdownValue' do - before do - # run before each test - @instance = MuxRuby::BreakdownValue.new - end - - after do - # run after each test - end - - describe 'test an instance of BreakdownValue' do - it 'should create an instance of BreakdownValue' do - expect(@instance).to be_instance_of(MuxRuby::BreakdownValue) - end - end - describe 'test attribute "views"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_watch_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "negative_impact"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "field"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/create_asset_request_spec.rb b/spec/models/create_asset_request_spec.rb deleted file mode 100644 index 00e77b6..0000000 --- a/spec/models/create_asset_request_spec.rb +++ /dev/null @@ -1,84 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::CreateAssetRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CreateAssetRequest' do - before do - # run before each test - @instance = MuxRuby::CreateAssetRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of CreateAssetRequest' do - it 'should create an instance of CreateAssetRequest' do - expect(@instance).to be_instance_of(MuxRuby::CreateAssetRequest) - end - end - describe 'test attribute "input"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "playback_policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "per_title_encode"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "passthrough"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "mp4_support"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["none", "standard"]) - # validator.allowable_values.each do |value| - # expect { @instance.mp4_support = value }.not_to raise_error - # end - end - end - - describe 'test attribute "normalize_audio"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "master_access"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["none", "temporary"]) - # validator.allowable_values.each do |value| - # expect { @instance.master_access = value }.not_to raise_error - # end - end - end - - describe 'test attribute "test"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/create_live_stream_request_spec.rb b/spec/models/create_live_stream_request_spec.rb deleted file mode 100644 index 0ab4105..0000000 --- a/spec/models/create_live_stream_request_spec.rb +++ /dev/null @@ -1,70 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::CreateLiveStreamRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CreateLiveStreamRequest' do - before do - # run before each test - @instance = MuxRuby::CreateLiveStreamRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of CreateLiveStreamRequest' do - it 'should create an instance of CreateLiveStreamRequest' do - expect(@instance).to be_instance_of(MuxRuby::CreateLiveStreamRequest) - end - end - describe 'test attribute "playback_policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "new_asset_settings"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "reconnect_window"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "passthrough"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "reduced_latency"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "test"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "simulcast_targets"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/create_playback_id_request_spec.rb b/spec/models/create_playback_id_request_spec.rb deleted file mode 100644 index 0745d4b..0000000 --- a/spec/models/create_playback_id_request_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::CreatePlaybackIDRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CreatePlaybackIDRequest' do - before do - # run before each test - @instance = MuxRuby::CreatePlaybackIDRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of CreatePlaybackIDRequest' do - it 'should create an instance of CreatePlaybackIDRequest' do - expect(@instance).to be_instance_of(MuxRuby::CreatePlaybackIDRequest) - end - end - describe 'test attribute "policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/create_playback_id_response_spec.rb b/spec/models/create_playback_id_response_spec.rb deleted file mode 100644 index 7c0b0ab..0000000 --- a/spec/models/create_playback_id_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::CreatePlaybackIDResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CreatePlaybackIDResponse' do - before do - # run before each test - @instance = MuxRuby::CreatePlaybackIDResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of CreatePlaybackIDResponse' do - it 'should create an instance of CreatePlaybackIDResponse' do - expect(@instance).to be_instance_of(MuxRuby::CreatePlaybackIDResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/create_playback_restriction_request_spec.rb b/spec/models/create_playback_restriction_request_spec.rb deleted file mode 100644 index 8e23744..0000000 --- a/spec/models/create_playback_restriction_request_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Mux API - -#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. - -The version of the OpenAPI document: v1 -Contact: devex@mux.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::CreatePlaybackRestrictionRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MuxRuby::CreatePlaybackRestrictionRequest do - let(:instance) { MuxRuby::CreatePlaybackRestrictionRequest.new } - - describe 'test an instance of CreatePlaybackRestrictionRequest' do - it 'should create an instance of CreatePlaybackRestrictionRequest' do - expect(instance).to be_instance_of(MuxRuby::CreatePlaybackRestrictionRequest) - end - end - describe 'test attribute "referrer"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/create_simulcast_target_request_spec.rb b/spec/models/create_simulcast_target_request_spec.rb deleted file mode 100644 index 30d6267..0000000 --- a/spec/models/create_simulcast_target_request_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::CreateSimulcastTargetRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CreateSimulcastTargetRequest' do - before do - # run before each test - @instance = MuxRuby::CreateSimulcastTargetRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of CreateSimulcastTargetRequest' do - it 'should create an instance of CreateSimulcastTargetRequest' do - expect(@instance).to be_instance_of(MuxRuby::CreateSimulcastTargetRequest) - end - end - describe 'test attribute "passthrough"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "stream_key"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/create_track_request_spec.rb b/spec/models/create_track_request_spec.rb deleted file mode 100644 index 227ebd5..0000000 --- a/spec/models/create_track_request_spec.rb +++ /dev/null @@ -1,78 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::CreateTrackRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CreateTrackRequest' do - before do - # run before each test - @instance = MuxRuby::CreateTrackRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of CreateTrackRequest' do - it 'should create an instance of CreateTrackRequest' do - expect(@instance).to be_instance_of(MuxRuby::CreateTrackRequest) - end - end - describe 'test attribute "url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["text"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "text_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["subtitles"]) - # validator.allowable_values.each do |value| - # expect { @instance.text_type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "language_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "closed_captions"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "passthrough"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/create_track_response_spec.rb b/spec/models/create_track_response_spec.rb deleted file mode 100644 index ca3c0a2..0000000 --- a/spec/models/create_track_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::CreateTrackResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CreateTrackResponse' do - before do - # run before each test - @instance = MuxRuby::CreateTrackResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of CreateTrackResponse' do - it 'should create an instance of CreateTrackResponse' do - expect(@instance).to be_instance_of(MuxRuby::CreateTrackResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/create_upload_request_spec.rb b/spec/models/create_upload_request_spec.rb deleted file mode 100644 index 0718f0a..0000000 --- a/spec/models/create_upload_request_spec.rb +++ /dev/null @@ -1,52 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::CreateUploadRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'CreateUploadRequest' do - before do - # run before each test - @instance = MuxRuby::CreateUploadRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of CreateUploadRequest' do - it 'should create an instance of CreateUploadRequest' do - expect(@instance).to be_instance_of(MuxRuby::CreateUploadRequest) - end - end - describe 'test attribute "timeout"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cors_origin"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "new_asset_settings"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "test"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/delivery_report_spec.rb b/spec/models/delivery_report_spec.rb deleted file mode 100644 index 51ed5ff..0000000 --- a/spec/models/delivery_report_spec.rb +++ /dev/null @@ -1,70 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::DeliveryReport -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'DeliveryReport' do - before do - # run before each test - @instance = MuxRuby::DeliveryReport.new - end - - after do - # run after each test - end - - describe 'test an instance of DeliveryReport' do - it 'should create an instance of DeliveryReport' do - expect(@instance).to be_instance_of(MuxRuby::DeliveryReport) - end - end - describe 'test attribute "live_stream_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "asset_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "passthrough"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "created_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "asset_state"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "asset_duration"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "delivered_seconds"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/dimension_value_spec.rb b/spec/models/dimension_value_spec.rb deleted file mode 100644 index 7f68e00..0000000 --- a/spec/models/dimension_value_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::DimensionValue -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'DimensionValue' do - before do - # run before each test - @instance = MuxRuby::DimensionValue.new - end - - after do - # run after each test - end - - describe 'test an instance of DimensionValue' do - it 'should create an instance of DimensionValue' do - expect(@instance).to be_instance_of(MuxRuby::DimensionValue) - end - end - describe 'test attribute "value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/disable_live_stream_response_spec.rb b/spec/models/disable_live_stream_response_spec.rb deleted file mode 100644 index 7f5deb6..0000000 --- a/spec/models/disable_live_stream_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::DisableLiveStreamResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'DisableLiveStreamResponse' do - before do - # run before each test - @instance = MuxRuby::DisableLiveStreamResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of DisableLiveStreamResponse' do - it 'should create an instance of DisableLiveStreamResponse' do - expect(@instance).to be_instance_of(MuxRuby::DisableLiveStreamResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/enable_live_stream_response_spec.rb b/spec/models/enable_live_stream_response_spec.rb deleted file mode 100644 index 3465f3e..0000000 --- a/spec/models/enable_live_stream_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::EnableLiveStreamResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'EnableLiveStreamResponse' do - before do - # run before each test - @instance = MuxRuby::EnableLiveStreamResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of EnableLiveStreamResponse' do - it 'should create an instance of EnableLiveStreamResponse' do - expect(@instance).to be_instance_of(MuxRuby::EnableLiveStreamResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/error_spec.rb b/spec/models/error_spec.rb deleted file mode 100644 index 6cfdd5b..0000000 --- a/spec/models/error_spec.rb +++ /dev/null @@ -1,76 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::Error -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Error' do - before do - # run before each test - @instance = MuxRuby::Error.new - end - - after do - # run after each test - end - - describe 'test an instance of Error' do - it 'should create an instance of Error' do - expect(@instance).to be_instance_of(MuxRuby::Error) - end - end - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "percentage"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "notes"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "message"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "last_seen"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/export_date_spec.rb b/spec/models/export_date_spec.rb deleted file mode 100644 index 8d04a07..0000000 --- a/spec/models/export_date_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -#Mux API - -#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. - -The version of the OpenAPI document: v1 -Contact: devex@mux.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ExportDate -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MuxRuby::ExportDate do - let(:instance) { MuxRuby::ExportDate.new } - - describe 'test an instance of ExportDate' do - it 'should create an instance of ExportDate' do - expect(instance).to be_instance_of(MuxRuby::ExportDate) - end - end - describe 'test attribute "export_date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "files"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/export_file_spec.rb b/spec/models/export_file_spec.rb deleted file mode 100644 index 1bf1249..0000000 --- a/spec/models/export_file_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -#Mux API - -#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. - -The version of the OpenAPI document: v1 -Contact: devex@mux.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ExportFile -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MuxRuby::ExportFile do - let(:instance) { MuxRuby::ExportFile.new } - - describe 'test an instance of ExportFile' do - it 'should create an instance of ExportFile' do - expect(instance).to be_instance_of(MuxRuby::ExportFile) - end - end - describe 'test attribute "version"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "path"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/filter_value_spec.rb b/spec/models/filter_value_spec.rb deleted file mode 100644 index 55aead8..0000000 --- a/spec/models/filter_value_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::FilterValue -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'FilterValue' do - before do - # run before each test - @instance = MuxRuby::FilterValue.new - end - - after do - # run after each test - end - - describe 'test an instance of FilterValue' do - it 'should create an instance of FilterValue' do - expect(@instance).to be_instance_of(MuxRuby::FilterValue) - end - end - describe 'test attribute "value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/get_asset_input_info_response_spec.rb b/spec/models/get_asset_input_info_response_spec.rb deleted file mode 100644 index d602619..0000000 --- a/spec/models/get_asset_input_info_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::GetAssetInputInfoResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'GetAssetInputInfoResponse' do - before do - # run before each test - @instance = MuxRuby::GetAssetInputInfoResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of GetAssetInputInfoResponse' do - it 'should create an instance of GetAssetInputInfoResponse' do - expect(@instance).to be_instance_of(MuxRuby::GetAssetInputInfoResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/get_asset_or_live_stream_id_response_data_object_spec.rb b/spec/models/get_asset_or_live_stream_id_response_data_object_spec.rb deleted file mode 100644 index 11ab568..0000000 --- a/spec/models/get_asset_or_live_stream_id_response_data_object_spec.rb +++ /dev/null @@ -1,44 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::GetAssetOrLiveStreamIdResponseDataObject -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'GetAssetOrLiveStreamIdResponseDataObject' do - before do - # run before each test - @instance = MuxRuby::GetAssetOrLiveStreamIdResponseDataObject.new - end - - after do - # run after each test - end - - describe 'test an instance of GetAssetOrLiveStreamIdResponseDataObject' do - it 'should create an instance of GetAssetOrLiveStreamIdResponseDataObject' do - expect(@instance).to be_instance_of(MuxRuby::GetAssetOrLiveStreamIdResponseDataObject) - end - end - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["asset", "live_stream"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end - end - end - -end diff --git a/spec/models/get_asset_or_live_stream_id_response_data_spec.rb b/spec/models/get_asset_or_live_stream_id_response_data_spec.rb deleted file mode 100644 index 8715e22..0000000 --- a/spec/models/get_asset_or_live_stream_id_response_data_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::GetAssetOrLiveStreamIdResponseData -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'GetAssetOrLiveStreamIdResponseData' do - before do - # run before each test - @instance = MuxRuby::GetAssetOrLiveStreamIdResponseData.new - end - - after do - # run after each test - end - - describe 'test an instance of GetAssetOrLiveStreamIdResponseData' do - it 'should create an instance of GetAssetOrLiveStreamIdResponseData' do - expect(@instance).to be_instance_of(MuxRuby::GetAssetOrLiveStreamIdResponseData) - end - end - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "object"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/get_asset_or_live_stream_id_response_spec.rb b/spec/models/get_asset_or_live_stream_id_response_spec.rb deleted file mode 100644 index 52a17f8..0000000 --- a/spec/models/get_asset_or_live_stream_id_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::GetAssetOrLiveStreamIdResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'GetAssetOrLiveStreamIdResponse' do - before do - # run before each test - @instance = MuxRuby::GetAssetOrLiveStreamIdResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of GetAssetOrLiveStreamIdResponse' do - it 'should create an instance of GetAssetOrLiveStreamIdResponse' do - expect(@instance).to be_instance_of(MuxRuby::GetAssetOrLiveStreamIdResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/get_asset_playback_id_response_spec.rb b/spec/models/get_asset_playback_id_response_spec.rb deleted file mode 100644 index 62397a7..0000000 --- a/spec/models/get_asset_playback_id_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::GetAssetPlaybackIDResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'GetAssetPlaybackIDResponse' do - before do - # run before each test - @instance = MuxRuby::GetAssetPlaybackIDResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of GetAssetPlaybackIDResponse' do - it 'should create an instance of GetAssetPlaybackIDResponse' do - expect(@instance).to be_instance_of(MuxRuby::GetAssetPlaybackIDResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/get_live_stream_playback_id_response_spec.rb b/spec/models/get_live_stream_playback_id_response_spec.rb deleted file mode 100644 index 56e65f8..0000000 --- a/spec/models/get_live_stream_playback_id_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Mux API - -#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. - -The version of the OpenAPI document: v1 -Contact: devex@mux.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::GetLiveStreamPlaybackIDResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MuxRuby::GetLiveStreamPlaybackIDResponse do - let(:instance) { MuxRuby::GetLiveStreamPlaybackIDResponse.new } - - describe 'test an instance of GetLiveStreamPlaybackIDResponse' do - it 'should create an instance of GetLiveStreamPlaybackIDResponse' do - expect(instance).to be_instance_of(MuxRuby::GetLiveStreamPlaybackIDResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/get_metric_timeseries_data_response_spec.rb b/spec/models/get_metric_timeseries_data_response_spec.rb deleted file mode 100644 index 406b405..0000000 --- a/spec/models/get_metric_timeseries_data_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::GetMetricTimeseriesDataResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'GetMetricTimeseriesDataResponse' do - before do - # run before each test - @instance = MuxRuby::GetMetricTimeseriesDataResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of GetMetricTimeseriesDataResponse' do - it 'should create an instance of GetMetricTimeseriesDataResponse' do - expect(@instance).to be_instance_of(MuxRuby::GetMetricTimeseriesDataResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/get_overall_values_response_spec.rb b/spec/models/get_overall_values_response_spec.rb deleted file mode 100644 index 5a6a380..0000000 --- a/spec/models/get_overall_values_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::GetOverallValuesResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'GetOverallValuesResponse' do - before do - # run before each test - @instance = MuxRuby::GetOverallValuesResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of GetOverallValuesResponse' do - it 'should create an instance of GetOverallValuesResponse' do - expect(@instance).to be_instance_of(MuxRuby::GetOverallValuesResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/get_real_time_breakdown_response_spec.rb b/spec/models/get_real_time_breakdown_response_spec.rb deleted file mode 100644 index 4a7174e..0000000 --- a/spec/models/get_real_time_breakdown_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::GetRealTimeBreakdownResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'GetRealTimeBreakdownResponse' do - before do - # run before each test - @instance = MuxRuby::GetRealTimeBreakdownResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of GetRealTimeBreakdownResponse' do - it 'should create an instance of GetRealTimeBreakdownResponse' do - expect(@instance).to be_instance_of(MuxRuby::GetRealTimeBreakdownResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/get_real_time_histogram_timeseries_response_meta_spec.rb b/spec/models/get_real_time_histogram_timeseries_response_meta_spec.rb deleted file mode 100644 index 742a64a..0000000 --- a/spec/models/get_real_time_histogram_timeseries_response_meta_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::GetRealTimeHistogramTimeseriesResponseMeta -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'GetRealTimeHistogramTimeseriesResponseMeta' do - before do - # run before each test - @instance = MuxRuby::GetRealTimeHistogramTimeseriesResponseMeta.new - end - - after do - # run after each test - end - - describe 'test an instance of GetRealTimeHistogramTimeseriesResponseMeta' do - it 'should create an instance of GetRealTimeHistogramTimeseriesResponseMeta' do - expect(@instance).to be_instance_of(MuxRuby::GetRealTimeHistogramTimeseriesResponseMeta) - end - end - describe 'test attribute "buckets"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/get_real_time_histogram_timeseries_response_spec.rb b/spec/models/get_real_time_histogram_timeseries_response_spec.rb deleted file mode 100644 index 1454ac2..0000000 --- a/spec/models/get_real_time_histogram_timeseries_response_spec.rb +++ /dev/null @@ -1,52 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::GetRealTimeHistogramTimeseriesResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'GetRealTimeHistogramTimeseriesResponse' do - before do - # run before each test - @instance = MuxRuby::GetRealTimeHistogramTimeseriesResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of GetRealTimeHistogramTimeseriesResponse' do - it 'should create an instance of GetRealTimeHistogramTimeseriesResponse' do - expect(@instance).to be_instance_of(MuxRuby::GetRealTimeHistogramTimeseriesResponse) - end - end - describe 'test attribute "meta"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/get_real_time_timeseries_response_spec.rb b/spec/models/get_real_time_timeseries_response_spec.rb deleted file mode 100644 index ff5882d..0000000 --- a/spec/models/get_real_time_timeseries_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::GetRealTimeTimeseriesResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'GetRealTimeTimeseriesResponse' do - before do - # run before each test - @instance = MuxRuby::GetRealTimeTimeseriesResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of GetRealTimeTimeseriesResponse' do - it 'should create an instance of GetRealTimeTimeseriesResponse' do - expect(@instance).to be_instance_of(MuxRuby::GetRealTimeTimeseriesResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/incident_breakdown_spec.rb b/spec/models/incident_breakdown_spec.rb deleted file mode 100644 index e8b8d0b..0000000 --- a/spec/models/incident_breakdown_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::IncidentBreakdown -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'IncidentBreakdown' do - before do - # run before each test - @instance = MuxRuby::IncidentBreakdown.new - end - - after do - # run after each test - end - - describe 'test an instance of IncidentBreakdown' do - it 'should create an instance of IncidentBreakdown' do - expect(@instance).to be_instance_of(MuxRuby::IncidentBreakdown) - end - end - describe 'test attribute "value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/incident_notification_rule_spec.rb b/spec/models/incident_notification_rule_spec.rb deleted file mode 100644 index fe64189..0000000 --- a/spec/models/incident_notification_rule_spec.rb +++ /dev/null @@ -1,58 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::IncidentNotificationRule -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'IncidentNotificationRule' do - before do - # run before each test - @instance = MuxRuby::IncidentNotificationRule.new - end - - after do - # run after each test - end - - describe 'test an instance of IncidentNotificationRule' do - it 'should create an instance of IncidentNotificationRule' do - expect(@instance).to be_instance_of(MuxRuby::IncidentNotificationRule) - end - end - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "rules"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "property_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "action"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/incident_notification_spec.rb b/spec/models/incident_notification_spec.rb deleted file mode 100644 index c344e32..0000000 --- a/spec/models/incident_notification_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::IncidentNotification -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'IncidentNotification' do - before do - # run before each test - @instance = MuxRuby::IncidentNotification.new - end - - after do - # run after each test - end - - describe 'test an instance of IncidentNotification' do - it 'should create an instance of IncidentNotification' do - expect(@instance).to be_instance_of(MuxRuby::IncidentNotification) - end - end - describe 'test attribute "queued_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "attempted_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/incident_response_spec.rb b/spec/models/incident_response_spec.rb deleted file mode 100644 index e09c7a1..0000000 --- a/spec/models/incident_response_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::IncidentResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'IncidentResponse' do - before do - # run before each test - @instance = MuxRuby::IncidentResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of IncidentResponse' do - it 'should create an instance of IncidentResponse' do - expect(@instance).to be_instance_of(MuxRuby::IncidentResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/incident_spec.rb b/spec/models/incident_spec.rb deleted file mode 100644 index 5959598..0000000 --- a/spec/models/incident_spec.rb +++ /dev/null @@ -1,154 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::Incident -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Incident' do - before do - # run before each test - @instance = MuxRuby::Incident.new - end - - after do - # run after each test - end - - describe 'test an instance of Incident' do - it 'should create an instance of Incident' do - expect(@instance).to be_instance_of(MuxRuby::Incident) - end - end - describe 'test attribute "threshold"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "started_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "severity"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "sample_size_unit"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "sample_size"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "resolved_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "notifications"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "notification_rules"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "measurement"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "measured_value_on_close"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "measured_value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "incident_key"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "impact"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "error_description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "breakdowns"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "affected_views_per_hour_on_open"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "affected_views_per_hour"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "affected_views"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/input_file_spec.rb b/spec/models/input_file_spec.rb deleted file mode 100644 index 7b20715..0000000 --- a/spec/models/input_file_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::InputFile -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'InputFile' do - before do - # run before each test - @instance = MuxRuby::InputFile.new - end - - after do - # run after each test - end - - describe 'test an instance of InputFile' do - it 'should create an instance of InputFile' do - expect(@instance).to be_instance_of(MuxRuby::InputFile) - end - end - describe 'test attribute "container_format"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "tracks"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/input_info_spec.rb b/spec/models/input_info_spec.rb deleted file mode 100644 index 4e35405..0000000 --- a/spec/models/input_info_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::InputInfo -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'InputInfo' do - before do - # run before each test - @instance = MuxRuby::InputInfo.new - end - - after do - # run after each test - end - - describe 'test an instance of InputInfo' do - it 'should create an instance of InputInfo' do - expect(@instance).to be_instance_of(MuxRuby::InputInfo) - end - end - describe 'test attribute "settings"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "file"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/input_settings_overlay_settings_spec.rb b/spec/models/input_settings_overlay_settings_spec.rb deleted file mode 100644 index d16dd47..0000000 --- a/spec/models/input_settings_overlay_settings_spec.rb +++ /dev/null @@ -1,78 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::InputSettingsOverlaySettings -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'InputSettingsOverlaySettings' do - before do - # run before each test - @instance = MuxRuby::InputSettingsOverlaySettings.new - end - - after do - # run after each test - end - - describe 'test an instance of InputSettingsOverlaySettings' do - it 'should create an instance of InputSettingsOverlaySettings' do - expect(@instance).to be_instance_of(MuxRuby::InputSettingsOverlaySettings) - end - end - describe 'test attribute "vertical_align"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["top", "middle", "bottom"]) - # validator.allowable_values.each do |value| - # expect { @instance.vertical_align = value }.not_to raise_error - # end - end - end - - describe 'test attribute "vertical_margin"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "horizontal_align"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["left", "center", "right"]) - # validator.allowable_values.each do |value| - # expect { @instance.horizontal_align = value }.not_to raise_error - # end - end - end - - describe 'test attribute "horizontal_margin"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "width"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "height"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "opacity"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/input_settings_spec.rb b/spec/models/input_settings_spec.rb deleted file mode 100644 index 4ee692f..0000000 --- a/spec/models/input_settings_spec.rb +++ /dev/null @@ -1,96 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::InputSettings -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'InputSettings' do - before do - # run before each test - @instance = MuxRuby::InputSettings.new - end - - after do - # run after each test - end - - describe 'test an instance of InputSettings' do - it 'should create an instance of InputSettings' do - expect(@instance).to be_instance_of(MuxRuby::InputSettings) - end - end - describe 'test attribute "url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "overlay_settings"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "start_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "end_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["video", "audio", "text"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "text_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["subtitles"]) - # validator.allowable_values.each do |value| - # expect { @instance.text_type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "language_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "closed_captions"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "passthrough"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/input_track_spec.rb b/spec/models/input_track_spec.rb deleted file mode 100644 index 76a9bc2..0000000 --- a/spec/models/input_track_spec.rb +++ /dev/null @@ -1,82 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::InputTrack -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'InputTrack' do - before do - # run before each test - @instance = MuxRuby::InputTrack.new - end - - after do - # run after each test - end - - describe 'test an instance of InputTrack' do - it 'should create an instance of InputTrack' do - expect(@instance).to be_instance_of(MuxRuby::InputTrack) - end - end - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "duration"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "encoding"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "width"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "height"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "frame_rate"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "sample_rate"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "sample_size"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "channels"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/insight_spec.rb b/spec/models/insight_spec.rb deleted file mode 100644 index 4577116..0000000 --- a/spec/models/insight_spec.rb +++ /dev/null @@ -1,64 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::Insight -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Insight' do - before do - # run before each test - @instance = MuxRuby::Insight.new - end - - after do - # run after each test - end - - describe 'test an instance of Insight' do - it 'should create an instance of Insight' do - expect(@instance).to be_instance_of(MuxRuby::Insight) - end - end - describe 'test attribute "total_watch_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_views"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "negative_impact_score"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "metric"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "filter_value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "filter_column"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_all_metric_values_response_spec.rb b/spec/models/list_all_metric_values_response_spec.rb deleted file mode 100644 index 83f88a5..0000000 --- a/spec/models/list_all_metric_values_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListAllMetricValuesResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListAllMetricValuesResponse' do - before do - # run before each test - @instance = MuxRuby::ListAllMetricValuesResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListAllMetricValuesResponse' do - it 'should create an instance of ListAllMetricValuesResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListAllMetricValuesResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_assets_response_spec.rb b/spec/models/list_assets_response_spec.rb deleted file mode 100644 index dde7126..0000000 --- a/spec/models/list_assets_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListAssetsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListAssetsResponse' do - before do - # run before each test - @instance = MuxRuby::ListAssetsResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListAssetsResponse' do - it 'should create an instance of ListAssetsResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListAssetsResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_breakdown_values_response_spec.rb b/spec/models/list_breakdown_values_response_spec.rb deleted file mode 100644 index cf2b450..0000000 --- a/spec/models/list_breakdown_values_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListBreakdownValuesResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListBreakdownValuesResponse' do - before do - # run before each test - @instance = MuxRuby::ListBreakdownValuesResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListBreakdownValuesResponse' do - it 'should create an instance of ListBreakdownValuesResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListBreakdownValuesResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_delivery_usage_response_spec.rb b/spec/models/list_delivery_usage_response_spec.rb deleted file mode 100644 index 767b4f3..0000000 --- a/spec/models/list_delivery_usage_response_spec.rb +++ /dev/null @@ -1,52 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListDeliveryUsageResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListDeliveryUsageResponse' do - before do - # run before each test - @instance = MuxRuby::ListDeliveryUsageResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListDeliveryUsageResponse' do - it 'should create an instance of ListDeliveryUsageResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListDeliveryUsageResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "limit"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_dimension_values_response_spec.rb b/spec/models/list_dimension_values_response_spec.rb deleted file mode 100644 index 3c92224..0000000 --- a/spec/models/list_dimension_values_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListDimensionValuesResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListDimensionValuesResponse' do - before do - # run before each test - @instance = MuxRuby::ListDimensionValuesResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListDimensionValuesResponse' do - it 'should create an instance of ListDimensionValuesResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListDimensionValuesResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_dimensions_response_spec.rb b/spec/models/list_dimensions_response_spec.rb deleted file mode 100644 index 53bdfcc..0000000 --- a/spec/models/list_dimensions_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListDimensionsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListDimensionsResponse' do - before do - # run before each test - @instance = MuxRuby::ListDimensionsResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListDimensionsResponse' do - it 'should create an instance of ListDimensionsResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListDimensionsResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_errors_response_spec.rb b/spec/models/list_errors_response_spec.rb deleted file mode 100644 index b7ec898..0000000 --- a/spec/models/list_errors_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListErrorsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListErrorsResponse' do - before do - # run before each test - @instance = MuxRuby::ListErrorsResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListErrorsResponse' do - it 'should create an instance of ListErrorsResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListErrorsResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_exports_response_spec.rb b/spec/models/list_exports_response_spec.rb deleted file mode 100644 index d6f18e3..0000000 --- a/spec/models/list_exports_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListExportsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListExportsResponse' do - before do - # run before each test - @instance = MuxRuby::ListExportsResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListExportsResponse' do - it 'should create an instance of ListExportsResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListExportsResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_filter_values_response_spec.rb b/spec/models/list_filter_values_response_spec.rb deleted file mode 100644 index 3c311a3..0000000 --- a/spec/models/list_filter_values_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListFilterValuesResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListFilterValuesResponse' do - before do - # run before each test - @instance = MuxRuby::ListFilterValuesResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListFilterValuesResponse' do - it 'should create an instance of ListFilterValuesResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListFilterValuesResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_filters_response_data_spec.rb b/spec/models/list_filters_response_data_spec.rb deleted file mode 100644 index 7058ba0..0000000 --- a/spec/models/list_filters_response_data_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListFiltersResponseData -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListFiltersResponseData' do - before do - # run before each test - @instance = MuxRuby::ListFiltersResponseData.new - end - - after do - # run after each test - end - - describe 'test an instance of ListFiltersResponseData' do - it 'should create an instance of ListFiltersResponseData' do - expect(@instance).to be_instance_of(MuxRuby::ListFiltersResponseData) - end - end - describe 'test attribute "basic"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "advanced"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_filters_response_spec.rb b/spec/models/list_filters_response_spec.rb deleted file mode 100644 index e871283..0000000 --- a/spec/models/list_filters_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListFiltersResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListFiltersResponse' do - before do - # run before each test - @instance = MuxRuby::ListFiltersResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListFiltersResponse' do - it 'should create an instance of ListFiltersResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListFiltersResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_incidents_response_spec.rb b/spec/models/list_incidents_response_spec.rb deleted file mode 100644 index 6abd02c..0000000 --- a/spec/models/list_incidents_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListIncidentsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListIncidentsResponse' do - before do - # run before each test - @instance = MuxRuby::ListIncidentsResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListIncidentsResponse' do - it 'should create an instance of ListIncidentsResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListIncidentsResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_insights_response_spec.rb b/spec/models/list_insights_response_spec.rb deleted file mode 100644 index b66e9ac..0000000 --- a/spec/models/list_insights_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListInsightsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListInsightsResponse' do - before do - # run before each test - @instance = MuxRuby::ListInsightsResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListInsightsResponse' do - it 'should create an instance of ListInsightsResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListInsightsResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_live_streams_response_spec.rb b/spec/models/list_live_streams_response_spec.rb deleted file mode 100644 index e47c55c..0000000 --- a/spec/models/list_live_streams_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListLiveStreamsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListLiveStreamsResponse' do - before do - # run before each test - @instance = MuxRuby::ListLiveStreamsResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListLiveStreamsResponse' do - it 'should create an instance of ListLiveStreamsResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListLiveStreamsResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_playback_restrictions_response_spec.rb b/spec/models/list_playback_restrictions_response_spec.rb deleted file mode 100644 index aaa8b71..0000000 --- a/spec/models/list_playback_restrictions_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Mux API - -#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. - -The version of the OpenAPI document: v1 -Contact: devex@mux.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListPlaybackRestrictionsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MuxRuby::ListPlaybackRestrictionsResponse do - let(:instance) { MuxRuby::ListPlaybackRestrictionsResponse.new } - - describe 'test an instance of ListPlaybackRestrictionsResponse' do - it 'should create an instance of ListPlaybackRestrictionsResponse' do - expect(instance).to be_instance_of(MuxRuby::ListPlaybackRestrictionsResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_real_time_dimensions_response_data_spec.rb b/spec/models/list_real_time_dimensions_response_data_spec.rb deleted file mode 100644 index 4bd9415..0000000 --- a/spec/models/list_real_time_dimensions_response_data_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListRealTimeDimensionsResponseData -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListRealTimeDimensionsResponseData' do - before do - # run before each test - @instance = MuxRuby::ListRealTimeDimensionsResponseData.new - end - - after do - # run after each test - end - - describe 'test an instance of ListRealTimeDimensionsResponseData' do - it 'should create an instance of ListRealTimeDimensionsResponseData' do - expect(@instance).to be_instance_of(MuxRuby::ListRealTimeDimensionsResponseData) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "display_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_real_time_dimensions_response_spec.rb b/spec/models/list_real_time_dimensions_response_spec.rb deleted file mode 100644 index cd75c81..0000000 --- a/spec/models/list_real_time_dimensions_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListRealTimeDimensionsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListRealTimeDimensionsResponse' do - before do - # run before each test - @instance = MuxRuby::ListRealTimeDimensionsResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListRealTimeDimensionsResponse' do - it 'should create an instance of ListRealTimeDimensionsResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListRealTimeDimensionsResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_real_time_metrics_response_spec.rb b/spec/models/list_real_time_metrics_response_spec.rb deleted file mode 100644 index 928dac7..0000000 --- a/spec/models/list_real_time_metrics_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListRealTimeMetricsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListRealTimeMetricsResponse' do - before do - # run before each test - @instance = MuxRuby::ListRealTimeMetricsResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListRealTimeMetricsResponse' do - it 'should create an instance of ListRealTimeMetricsResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListRealTimeMetricsResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_related_incidents_response_spec.rb b/spec/models/list_related_incidents_response_spec.rb deleted file mode 100644 index 5a1ef42..0000000 --- a/spec/models/list_related_incidents_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListRelatedIncidentsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListRelatedIncidentsResponse' do - before do - # run before each test - @instance = MuxRuby::ListRelatedIncidentsResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListRelatedIncidentsResponse' do - it 'should create an instance of ListRelatedIncidentsResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListRelatedIncidentsResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_signing_keys_response_spec.rb b/spec/models/list_signing_keys_response_spec.rb deleted file mode 100644 index a69ae72..0000000 --- a/spec/models/list_signing_keys_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListSigningKeysResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListSigningKeysResponse' do - before do - # run before each test - @instance = MuxRuby::ListSigningKeysResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListSigningKeysResponse' do - it 'should create an instance of ListSigningKeysResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListSigningKeysResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_uploads_response_spec.rb b/spec/models/list_uploads_response_spec.rb deleted file mode 100644 index 9ac2238..0000000 --- a/spec/models/list_uploads_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListUploadsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListUploadsResponse' do - before do - # run before each test - @instance = MuxRuby::ListUploadsResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListUploadsResponse' do - it 'should create an instance of ListUploadsResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListUploadsResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_video_view_exports_response_spec.rb b/spec/models/list_video_view_exports_response_spec.rb deleted file mode 100644 index 1fd79e0..0000000 --- a/spec/models/list_video_view_exports_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -#Mux API - -#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. - -The version of the OpenAPI document: v1 -Contact: devex@mux.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListVideoViewExportsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MuxRuby::ListVideoViewExportsResponse do - let(:instance) { MuxRuby::ListVideoViewExportsResponse.new } - - describe 'test an instance of ListVideoViewExportsResponse' do - it 'should create an instance of ListVideoViewExportsResponse' do - expect(instance).to be_instance_of(MuxRuby::ListVideoViewExportsResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/list_video_views_response_spec.rb b/spec/models/list_video_views_response_spec.rb deleted file mode 100644 index 4be6c6f..0000000 --- a/spec/models/list_video_views_response_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ListVideoViewsResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'ListVideoViewsResponse' do - before do - # run before each test - @instance = MuxRuby::ListVideoViewsResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of ListVideoViewsResponse' do - it 'should create an instance of ListVideoViewsResponse' do - expect(@instance).to be_instance_of(MuxRuby::ListVideoViewsResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_row_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/live_stream_embedded_subtitle_settings_spec.rb b/spec/models/live_stream_embedded_subtitle_settings_spec.rb deleted file mode 100644 index 68b2bd6..0000000 --- a/spec/models/live_stream_embedded_subtitle_settings_spec.rb +++ /dev/null @@ -1,56 +0,0 @@ -=begin -#Mux API - -#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. - -The version of the OpenAPI document: v1 -Contact: devex@mux.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::LiveStreamEmbeddedSubtitleSettings -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MuxRuby::LiveStreamEmbeddedSubtitleSettings do - let(:instance) { MuxRuby::LiveStreamEmbeddedSubtitleSettings.new } - - describe 'test an instance of LiveStreamEmbeddedSubtitleSettings' do - it 'should create an instance of LiveStreamEmbeddedSubtitleSettings' do - expect(instance).to be_instance_of(MuxRuby::LiveStreamEmbeddedSubtitleSettings) - end - end - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "passthrough"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "language_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "language_channel"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["cc1"]) - # validator.allowable_values.each do |value| - # expect { instance.language_channel = value }.not_to raise_error - # end - end - end - -end diff --git a/spec/models/live_stream_response_spec.rb b/spec/models/live_stream_response_spec.rb deleted file mode 100644 index d3301b4..0000000 --- a/spec/models/live_stream_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::LiveStreamResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'LiveStreamResponse' do - before do - # run before each test - @instance = MuxRuby::LiveStreamResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of LiveStreamResponse' do - it 'should create an instance of LiveStreamResponse' do - expect(@instance).to be_instance_of(MuxRuby::LiveStreamResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/live_stream_spec.rb b/spec/models/live_stream_spec.rb deleted file mode 100644 index 727ae74..0000000 --- a/spec/models/live_stream_spec.rb +++ /dev/null @@ -1,106 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::LiveStream -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'LiveStream' do - before do - # run before each test - @instance = MuxRuby::LiveStream.new - end - - after do - # run after each test - end - - describe 'test an instance of LiveStream' do - it 'should create an instance of LiveStream' do - expect(@instance).to be_instance_of(MuxRuby::LiveStream) - end - end - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "created_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "stream_key"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "active_asset_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "recent_asset_ids"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "playback_ids"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "new_asset_settings"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "passthrough"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "reconnect_window"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "reduced_latency"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "simulcast_targets"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "test"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/live_stream_status_spec.rb b/spec/models/live_stream_status_spec.rb deleted file mode 100644 index c6b5796..0000000 --- a/spec/models/live_stream_status_spec.rb +++ /dev/null @@ -1,28 +0,0 @@ -=begin -#Mux API - -#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. - -The version of the OpenAPI document: v1 -Contact: devex@mux.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::LiveStreamStatus -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MuxRuby::LiveStreamStatus do - let(:instance) { MuxRuby::LiveStreamStatus.new } - - describe 'test an instance of LiveStreamStatus' do - it 'should create an instance of LiveStreamStatus' do - expect(instance).to be_instance_of(MuxRuby::LiveStreamStatus) - end - end -end diff --git a/spec/models/metric_spec.rb b/spec/models/metric_spec.rb deleted file mode 100644 index aa08b60..0000000 --- a/spec/models/metric_spec.rb +++ /dev/null @@ -1,58 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::Metric -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Metric' do - before do - # run before each test - @instance = MuxRuby::Metric.new - end - - after do - # run after each test - end - - describe 'test an instance of Metric' do - it 'should create an instance of Metric' do - expect(@instance).to be_instance_of(MuxRuby::Metric) - end - end - describe 'test attribute "value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "metric"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "measurement"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/notification_rule_spec.rb b/spec/models/notification_rule_spec.rb deleted file mode 100644 index a917e45..0000000 --- a/spec/models/notification_rule_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::NotificationRule -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'NotificationRule' do - before do - # run before each test - @instance = MuxRuby::NotificationRule.new - end - - after do - # run after each test - end - - describe 'test an instance of NotificationRule' do - it 'should create an instance of NotificationRule' do - expect(@instance).to be_instance_of(MuxRuby::NotificationRule) - end - end - describe 'test attribute "value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/overall_values_spec.rb b/spec/models/overall_values_spec.rb deleted file mode 100644 index 68db56d..0000000 --- a/spec/models/overall_values_spec.rb +++ /dev/null @@ -1,52 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::OverallValues -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'OverallValues' do - before do - # run before each test - @instance = MuxRuby::OverallValues.new - end - - after do - # run after each test - end - - describe 'test an instance of OverallValues' do - it 'should create an instance of OverallValues' do - expect(@instance).to be_instance_of(MuxRuby::OverallValues) - end - end - describe 'test attribute "value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_watch_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "total_views"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "global_value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/playback_id_spec.rb b/spec/models/playback_id_spec.rb deleted file mode 100644 index fccf720..0000000 --- a/spec/models/playback_id_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::PlaybackID -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PlaybackID' do - before do - # run before each test - @instance = MuxRuby::PlaybackID.new - end - - after do - # run after each test - end - - describe 'test an instance of PlaybackID' do - it 'should create an instance of PlaybackID' do - expect(@instance).to be_instance_of(MuxRuby::PlaybackID) - end - end - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "policy"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/playback_policy_spec.rb b/spec/models/playback_policy_spec.rb deleted file mode 100644 index c15910f..0000000 --- a/spec/models/playback_policy_spec.rb +++ /dev/null @@ -1,28 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::PlaybackPolicy -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'PlaybackPolicy' do - before do - # run before each test - @instance = MuxRuby::PlaybackPolicy.new - end - - after do - # run after each test - end - - describe 'test an instance of PlaybackPolicy' do - it 'should create an instance of PlaybackPolicy' do - expect(@instance).to be_instance_of(MuxRuby::PlaybackPolicy) - end - end -end diff --git a/spec/models/playback_restriction_response_spec.rb b/spec/models/playback_restriction_response_spec.rb deleted file mode 100644 index b1024e3..0000000 --- a/spec/models/playback_restriction_response_spec.rb +++ /dev/null @@ -1,28 +0,0 @@ -=begin -#Mux API - -#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. - -The version of the OpenAPI document: v1 -Contact: devex@mux.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::PlaybackRestrictionResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MuxRuby::PlaybackRestrictionResponse do - let(:instance) { MuxRuby::PlaybackRestrictionResponse.new } - - describe 'test an instance of PlaybackRestrictionResponse' do - it 'should create an instance of PlaybackRestrictionResponse' do - expect(instance).to be_instance_of(MuxRuby::PlaybackRestrictionResponse) - end - end -end diff --git a/spec/models/playback_restriction_spec.rb b/spec/models/playback_restriction_spec.rb deleted file mode 100644 index ccd94c6..0000000 --- a/spec/models/playback_restriction_spec.rb +++ /dev/null @@ -1,52 +0,0 @@ -=begin -#Mux API - -#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. - -The version of the OpenAPI document: v1 -Contact: devex@mux.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::PlaybackRestriction -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MuxRuby::PlaybackRestriction do - let(:instance) { MuxRuby::PlaybackRestriction.new } - - describe 'test an instance of PlaybackRestriction' do - it 'should create an instance of PlaybackRestriction' do - expect(instance).to be_instance_of(MuxRuby::PlaybackRestriction) - end - end - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "created_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "updated_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "referrer"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/real_time_breakdown_value_spec.rb b/spec/models/real_time_breakdown_value_spec.rb deleted file mode 100644 index f037924..0000000 --- a/spec/models/real_time_breakdown_value_spec.rb +++ /dev/null @@ -1,58 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::RealTimeBreakdownValue -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'RealTimeBreakdownValue' do - before do - # run before each test - @instance = MuxRuby::RealTimeBreakdownValue.new - end - - after do - # run after each test - end - - describe 'test an instance of RealTimeBreakdownValue' do - it 'should create an instance of RealTimeBreakdownValue' do - expect(@instance).to be_instance_of(MuxRuby::RealTimeBreakdownValue) - end - end - describe 'test attribute "value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "negative_impact"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "metric_value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "display_value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "concurent_viewers"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/real_time_histogram_timeseries_bucket_spec.rb b/spec/models/real_time_histogram_timeseries_bucket_spec.rb deleted file mode 100644 index cc203e1..0000000 --- a/spec/models/real_time_histogram_timeseries_bucket_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::RealTimeHistogramTimeseriesBucket -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'RealTimeHistogramTimeseriesBucket' do - before do - # run before each test - @instance = MuxRuby::RealTimeHistogramTimeseriesBucket.new - end - - after do - # run after each test - end - - describe 'test an instance of RealTimeHistogramTimeseriesBucket' do - it 'should create an instance of RealTimeHistogramTimeseriesBucket' do - expect(@instance).to be_instance_of(MuxRuby::RealTimeHistogramTimeseriesBucket) - end - end - describe 'test attribute "start"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "_end"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/real_time_histogram_timeseries_bucket_values_spec.rb b/spec/models/real_time_histogram_timeseries_bucket_values_spec.rb deleted file mode 100644 index 4f7839c..0000000 --- a/spec/models/real_time_histogram_timeseries_bucket_values_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::RealTimeHistogramTimeseriesBucketValues -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'RealTimeHistogramTimeseriesBucketValues' do - before do - # run before each test - @instance = MuxRuby::RealTimeHistogramTimeseriesBucketValues.new - end - - after do - # run after each test - end - - describe 'test an instance of RealTimeHistogramTimeseriesBucketValues' do - it 'should create an instance of RealTimeHistogramTimeseriesBucketValues' do - expect(@instance).to be_instance_of(MuxRuby::RealTimeHistogramTimeseriesBucketValues) - end - end - describe 'test attribute "percentage"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/real_time_histogram_timeseries_datapoint_spec.rb b/spec/models/real_time_histogram_timeseries_datapoint_spec.rb deleted file mode 100644 index 8e2bc47..0000000 --- a/spec/models/real_time_histogram_timeseries_datapoint_spec.rb +++ /dev/null @@ -1,70 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::RealTimeHistogramTimeseriesDatapoint -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'RealTimeHistogramTimeseriesDatapoint' do - before do - # run before each test - @instance = MuxRuby::RealTimeHistogramTimeseriesDatapoint.new - end - - after do - # run after each test - end - - describe 'test an instance of RealTimeHistogramTimeseriesDatapoint' do - it 'should create an instance of RealTimeHistogramTimeseriesDatapoint' do - expect(@instance).to be_instance_of(MuxRuby::RealTimeHistogramTimeseriesDatapoint) - end - end - describe 'test attribute "timestamp"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "sum"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "p95"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "median"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "max_percentage"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "bucket_values"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "average"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/real_time_timeseries_datapoint_spec.rb b/spec/models/real_time_timeseries_datapoint_spec.rb deleted file mode 100644 index 5825260..0000000 --- a/spec/models/real_time_timeseries_datapoint_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::RealTimeTimeseriesDatapoint -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'RealTimeTimeseriesDatapoint' do - before do - # run before each test - @instance = MuxRuby::RealTimeTimeseriesDatapoint.new - end - - after do - # run after each test - end - - describe 'test an instance of RealTimeTimeseriesDatapoint' do - it 'should create an instance of RealTimeTimeseriesDatapoint' do - expect(@instance).to be_instance_of(MuxRuby::RealTimeTimeseriesDatapoint) - end - end - describe 'test attribute "value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "date"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "concurent_viewers"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/referrer_domain_restriction_spec.rb b/spec/models/referrer_domain_restriction_spec.rb deleted file mode 100644 index 8927845..0000000 --- a/spec/models/referrer_domain_restriction_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -#Mux API - -#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. - -The version of the OpenAPI document: v1 -Contact: devex@mux.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::ReferrerDomainRestriction -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MuxRuby::ReferrerDomainRestriction do - let(:instance) { MuxRuby::ReferrerDomainRestriction.new } - - describe 'test an instance of ReferrerDomainRestriction' do - it 'should create an instance of ReferrerDomainRestriction' do - expect(instance).to be_instance_of(MuxRuby::ReferrerDomainRestriction) - end - end - describe 'test attribute "allowed_domains"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "allow_no_referrer"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/score_spec.rb b/spec/models/score_spec.rb deleted file mode 100644 index 5e47268..0000000 --- a/spec/models/score_spec.rb +++ /dev/null @@ -1,64 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::Score -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Score' do - before do - # run before each test - @instance = MuxRuby::Score.new - end - - after do - # run after each test - end - - describe 'test an instance of Score' do - it 'should create an instance of Score' do - expect(@instance).to be_instance_of(MuxRuby::Score) - end - end - describe 'test attribute "watch_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "view_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "value"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "metric"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "items"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/signal_live_stream_complete_response_spec.rb b/spec/models/signal_live_stream_complete_response_spec.rb deleted file mode 100644 index a3c261b..0000000 --- a/spec/models/signal_live_stream_complete_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::SignalLiveStreamCompleteResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SignalLiveStreamCompleteResponse' do - before do - # run before each test - @instance = MuxRuby::SignalLiveStreamCompleteResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of SignalLiveStreamCompleteResponse' do - it 'should create an instance of SignalLiveStreamCompleteResponse' do - expect(@instance).to be_instance_of(MuxRuby::SignalLiveStreamCompleteResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/signing_key_response_spec.rb b/spec/models/signing_key_response_spec.rb deleted file mode 100644 index d34317d..0000000 --- a/spec/models/signing_key_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::SigningKeyResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SigningKeyResponse' do - before do - # run before each test - @instance = MuxRuby::SigningKeyResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of SigningKeyResponse' do - it 'should create an instance of SigningKeyResponse' do - expect(@instance).to be_instance_of(MuxRuby::SigningKeyResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/signing_key_spec.rb b/spec/models/signing_key_spec.rb deleted file mode 100644 index 5cf42f6..0000000 --- a/spec/models/signing_key_spec.rb +++ /dev/null @@ -1,46 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::SigningKey -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SigningKey' do - before do - # run before each test - @instance = MuxRuby::SigningKey.new - end - - after do - # run after each test - end - - describe 'test an instance of SigningKey' do - it 'should create an instance of SigningKey' do - expect(@instance).to be_instance_of(MuxRuby::SigningKey) - end - end - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "created_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "private_key"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/simulcast_target_response_spec.rb b/spec/models/simulcast_target_response_spec.rb deleted file mode 100644 index 17bbbdb..0000000 --- a/spec/models/simulcast_target_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::SimulcastTargetResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SimulcastTargetResponse' do - before do - # run before each test - @instance = MuxRuby::SimulcastTargetResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of SimulcastTargetResponse' do - it 'should create an instance of SimulcastTargetResponse' do - expect(@instance).to be_instance_of(MuxRuby::SimulcastTargetResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/simulcast_target_spec.rb b/spec/models/simulcast_target_spec.rb deleted file mode 100644 index 0c81a4c..0000000 --- a/spec/models/simulcast_target_spec.rb +++ /dev/null @@ -1,62 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::SimulcastTarget -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'SimulcastTarget' do - before do - # run before each test - @instance = MuxRuby::SimulcastTarget.new - end - - after do - # run after each test - end - - describe 'test an instance of SimulcastTarget' do - it 'should create an instance of SimulcastTarget' do - expect(@instance).to be_instance_of(MuxRuby::SimulcastTarget) - end - end - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "passthrough"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["idle", "starting", "broadcasting", "errored"]) - # validator.allowable_values.each do |value| - # expect { @instance.status = value }.not_to raise_error - # end - end - end - - describe 'test attribute "stream_key"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/track_spec.rb b/spec/models/track_spec.rb deleted file mode 100644 index 69a1b95..0000000 --- a/spec/models/track_spec.rb +++ /dev/null @@ -1,118 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::Track -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Track' do - before do - # run before each test - @instance = MuxRuby::Track.new - end - - after do - # run after each test - end - - describe 'test an instance of Track' do - it 'should create an instance of Track' do - expect(@instance).to be_instance_of(MuxRuby::Track) - end - end - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["video", "audio", "text"]) - # validator.allowable_values.each do |value| - # expect { @instance.type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "duration"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "max_width"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "max_height"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "max_frame_rate"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "max_channels"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "max_channel_layout"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["mono", "stereo", "5.2", "7.1"]) - # validator.allowable_values.each do |value| - # expect { @instance.max_channel_layout = value }.not_to raise_error - # end - end - end - - describe 'test attribute "text_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["subtitles"]) - # validator.allowable_values.each do |value| - # expect { @instance.text_type = value }.not_to raise_error - # end - end - end - - describe 'test attribute "language_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "closed_captions"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "passthrough"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/update_asset_master_access_request_spec.rb b/spec/models/update_asset_master_access_request_spec.rb deleted file mode 100644 index 850641d..0000000 --- a/spec/models/update_asset_master_access_request_spec.rb +++ /dev/null @@ -1,38 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::UpdateAssetMasterAccessRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'UpdateAssetMasterAccessRequest' do - before do - # run before each test - @instance = MuxRuby::UpdateAssetMasterAccessRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of UpdateAssetMasterAccessRequest' do - it 'should create an instance of UpdateAssetMasterAccessRequest' do - expect(@instance).to be_instance_of(MuxRuby::UpdateAssetMasterAccessRequest) - end - end - describe 'test attribute "master_access"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["temporary", "none"]) - # validator.allowable_values.each do |value| - # expect { @instance.master_access = value }.not_to raise_error - # end - end - end - -end diff --git a/spec/models/update_asset_mp4_support_request_spec.rb b/spec/models/update_asset_mp4_support_request_spec.rb deleted file mode 100644 index c089461..0000000 --- a/spec/models/update_asset_mp4_support_request_spec.rb +++ /dev/null @@ -1,38 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::UpdateAssetMP4SupportRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'UpdateAssetMP4SupportRequest' do - before do - # run before each test - @instance = MuxRuby::UpdateAssetMP4SupportRequest.new - end - - after do - # run after each test - end - - describe 'test an instance of UpdateAssetMP4SupportRequest' do - it 'should create an instance of UpdateAssetMP4SupportRequest' do - expect(@instance).to be_instance_of(MuxRuby::UpdateAssetMP4SupportRequest) - end - end - describe 'test attribute "mp4_support"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["standard", "none"]) - # validator.allowable_values.each do |value| - # expect { @instance.mp4_support = value }.not_to raise_error - # end - end - end - -end diff --git a/spec/models/update_asset_request_spec.rb b/spec/models/update_asset_request_spec.rb deleted file mode 100644 index 3198413..0000000 --- a/spec/models/update_asset_request_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Mux API - -#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. - -The version of the OpenAPI document: v1 -Contact: devex@mux.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::UpdateAssetRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MuxRuby::UpdateAssetRequest do - let(:instance) { MuxRuby::UpdateAssetRequest.new } - - describe 'test an instance of UpdateAssetRequest' do - it 'should create an instance of UpdateAssetRequest' do - expect(instance).to be_instance_of(MuxRuby::UpdateAssetRequest) - end - end - describe 'test attribute "passthrough"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/update_live_stream_embedded_subtitles_request_spec.rb b/spec/models/update_live_stream_embedded_subtitles_request_spec.rb deleted file mode 100644 index 7408b85..0000000 --- a/spec/models/update_live_stream_embedded_subtitles_request_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -#Mux API - -#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. - -The version of the OpenAPI document: v1 -Contact: devex@mux.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::UpdateLiveStreamEmbeddedSubtitlesRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MuxRuby::UpdateLiveStreamEmbeddedSubtitlesRequest do - let(:instance) { MuxRuby::UpdateLiveStreamEmbeddedSubtitlesRequest.new } - - describe 'test an instance of UpdateLiveStreamEmbeddedSubtitlesRequest' do - it 'should create an instance of UpdateLiveStreamEmbeddedSubtitlesRequest' do - expect(instance).to be_instance_of(MuxRuby::UpdateLiveStreamEmbeddedSubtitlesRequest) - end - end - describe 'test attribute "embedded_subtitles"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/update_live_stream_request_spec.rb b/spec/models/update_live_stream_request_spec.rb deleted file mode 100644 index 3f40c99..0000000 --- a/spec/models/update_live_stream_request_spec.rb +++ /dev/null @@ -1,50 +0,0 @@ -=begin -#Mux API - -#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. - -The version of the OpenAPI document: v1 -Contact: devex@mux.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::UpdateLiveStreamRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MuxRuby::UpdateLiveStreamRequest do - let(:instance) { MuxRuby::UpdateLiveStreamRequest.new } - - describe 'test an instance of UpdateLiveStreamRequest' do - it 'should create an instance of UpdateLiveStreamRequest' do - expect(instance).to be_instance_of(MuxRuby::UpdateLiveStreamRequest) - end - end - describe 'test attribute "passthrough"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "latency_mode"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["low", "reduced", "standard"]) - # validator.allowable_values.each do |value| - # expect { instance.latency_mode = value }.not_to raise_error - # end - end - end - - describe 'test attribute "reconnect_window"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/update_referrer_domain_restriction_request_spec.rb b/spec/models/update_referrer_domain_restriction_request_spec.rb deleted file mode 100644 index 75fd21b..0000000 --- a/spec/models/update_referrer_domain_restriction_request_spec.rb +++ /dev/null @@ -1,28 +0,0 @@ -=begin -#Mux API - -#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. - -The version of the OpenAPI document: v1 -Contact: devex@mux.com -Generated by: https://openapi-generator.tech -OpenAPI Generator version: 5.0.1 - -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::UpdateReferrerDomainRestrictionRequest -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe MuxRuby::UpdateReferrerDomainRestrictionRequest do - let(:instance) { MuxRuby::UpdateReferrerDomainRestrictionRequest.new } - - describe 'test an instance of UpdateReferrerDomainRestrictionRequest' do - it 'should create an instance of UpdateReferrerDomainRestrictionRequest' do - expect(instance).to be_instance_of(MuxRuby::UpdateReferrerDomainRestrictionRequest) - end - end -end diff --git a/spec/models/upload_error_spec.rb b/spec/models/upload_error_spec.rb deleted file mode 100644 index 9c837dd..0000000 --- a/spec/models/upload_error_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::UploadError -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'UploadError' do - before do - # run before each test - @instance = MuxRuby::UploadError.new - end - - after do - # run after each test - end - - describe 'test an instance of UploadError' do - it 'should create an instance of UploadError' do - expect(@instance).to be_instance_of(MuxRuby::UploadError) - end - end - describe 'test attribute "type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "message"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/upload_response_spec.rb b/spec/models/upload_response_spec.rb deleted file mode 100644 index 554d648..0000000 --- a/spec/models/upload_response_spec.rb +++ /dev/null @@ -1,34 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::UploadResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'UploadResponse' do - before do - # run before each test - @instance = MuxRuby::UploadResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of UploadResponse' do - it 'should create an instance of UploadResponse' do - expect(@instance).to be_instance_of(MuxRuby::UploadResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/upload_spec.rb b/spec/models/upload_spec.rb deleted file mode 100644 index 40e8b4c..0000000 --- a/spec/models/upload_spec.rb +++ /dev/null @@ -1,86 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::Upload -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'Upload' do - before do - # run before each test - @instance = MuxRuby::Upload.new - end - - after do - # run after each test - end - - describe 'test an instance of Upload' do - it 'should create an instance of Upload' do - expect(@instance).to be_instance_of(MuxRuby::Upload) - end - end - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeout"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "status"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - # validator = Petstore::EnumTest::EnumAttributeValidator.new('String', ["waiting", "asset_created", "errored", "cancelled", "timed_out"]) - # validator.allowable_values.each do |value| - # expect { @instance.status = value }.not_to raise_error - # end - end - end - - describe 'test attribute "new_asset_settings"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "asset_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "error"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cors_origin"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "test"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/video_view_event_spec.rb b/spec/models/video_view_event_spec.rb deleted file mode 100644 index ef9d1cc..0000000 --- a/spec/models/video_view_event_spec.rb +++ /dev/null @@ -1,52 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::VideoViewEvent -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'VideoViewEvent' do - before do - # run before each test - @instance = MuxRuby::VideoViewEvent.new - end - - after do - # run after each test - end - - describe 'test an instance of VideoViewEvent' do - it 'should create an instance of VideoViewEvent' do - expect(@instance).to be_instance_of(MuxRuby::VideoViewEvent) - end - end - describe 'test attribute "viewer_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "playback_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "event_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/video_view_response_spec.rb b/spec/models/video_view_response_spec.rb deleted file mode 100644 index 8ba037d..0000000 --- a/spec/models/video_view_response_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::VideoViewResponse -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'VideoViewResponse' do - before do - # run before each test - @instance = MuxRuby::VideoViewResponse.new - end - - after do - # run after each test - end - - describe 'test an instance of VideoViewResponse' do - it 'should create an instance of VideoViewResponse' do - expect(@instance).to be_instance_of(MuxRuby::VideoViewResponse) - end - end - describe 'test attribute "data"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "timeframe"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end diff --git a/spec/models/video_view_spec.rb b/spec/models/video_view_spec.rb deleted file mode 100644 index 8b18d1d..0000000 --- a/spec/models/video_view_spec.rb +++ /dev/null @@ -1,700 +0,0 @@ -=begin -# Mux Ruby - Copyright 2019 Mux Inc. -# NOTE: This file is auto generated. Do not edit this file manually. -=end - -require 'spec_helper' -require 'json' -require 'date' - -# Unit tests for MuxRuby::VideoView -# Automatically generated by openapi-generator (https://openapi-generator.tech) -# Please update as you see appropriate -describe 'VideoView' do - before do - # run before each test - @instance = MuxRuby::VideoView.new - end - - after do - # run after each test - end - - describe 'test an instance of VideoView' do - it 'should create an instance of VideoView' do - expect(@instance).to be_instance_of(MuxRuby::VideoView) - end - end - describe 'test attribute "view_total_upscaling"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "preroll_ad_asset_hostname"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_source_domain"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "region"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "viewer_user_agent"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "preroll_requested"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "page_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "startup_score"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "view_seek_duration"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "country_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_source_height"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "longitude"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "buffering_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_duration"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_source_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "city"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "view_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "platform_description"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_startup_preroll_request_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "viewer_device_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_series"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "viewer_application_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "updated_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "view_total_content_playback_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "cdn"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_instance_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_language"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_source_width"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_error_message"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_mux_plugin_version"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "watched"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "playback_score"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "page_url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "metro"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "view_max_request_latency"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "requests_for_first_preroll"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "view_total_downscaling"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "latitude"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_source_host_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "inserted_at"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "view_end"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "mux_embed_version"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_language"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "page_load_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "viewer_device_category"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_startup_preroll_load_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_version"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "watch_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_source_stream_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "preroll_ad_tag_hostname"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "viewer_device_manufacturer"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "rebuffering_score"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "experiment_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "viewer_os_version"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_preload"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "buffering_duration"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_view_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_software"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_load_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "platform_summary"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_encoding_variant"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_width"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "view_seek_count"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "viewer_experience_score"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "view_error_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_variant_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "preroll_played"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "viewer_application_engine"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "viewer_os_architecture"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_error_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "buffering_rate"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "events"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "view_start"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "view_average_request_throughput"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_producer"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "error_type_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "mux_viewer_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "continent_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "session_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "exit_before_video_start"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_content_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "viewer_os_family"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_poster"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "view_average_request_latency"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_variant_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_source_duration"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_source_url"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "mux_api_version"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_title"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "short_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "rebuffer_percentage"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "time_to_first_frame"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "viewer_user_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "video_stream_type"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_startup_time"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "viewer_application_version"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "view_max_downscale_percentage"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "view_max_upscale_percentage"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "country_code"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "used_fullscreen"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "isp"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "property_id"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_autoplay"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_height"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "asn"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "asn_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "quality_score"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_software_version"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - - describe 'test attribute "player_mux_plugin_name"' do - it 'should work' do - # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - end - end - -end From 4037616f2d52062ec5f4b0e6f7bf48c48f8b0713 Mon Sep 17 00:00:00 2001 From: Ed Ropple Date: Fri, 18 Mar 2022 11:20:34 -0400 Subject: [PATCH 03/14] fixed/updated old specs --- spec/api_client_spec.rb | 8 ++++---- spec/configuration_spec.rb | 5 ----- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/spec/api_client_spec.rb b/spec/api_client_spec.rb index e9af7d2..29ea525 100644 --- a/spec/api_client_spec.rb +++ b/spec/api_client_spec.rb @@ -55,12 +55,12 @@ let(:config) { MuxRuby::Configuration.new } let(:api_client) { MuxRuby::ApiClient.new(config) } - it 'defaults to nil' do - expect(MuxRuby::Configuration.default.params_encoding).to eq(nil) - expect(config.params_encoding).to eq(nil) + it 'defaults to :multi' do + expect(MuxRuby::Configuration.default.params_encoding).to eq(:multi) + expect(config.params_encoding).to eq(:multi) request = api_client.build_request(:get, '/test') - expect(request.options[:params_encoding]).to eq(nil) + expect(request.options[:params_encoding]).to eq(:multi) end it 'can be customized' do diff --git a/spec/configuration_spec.rb b/spec/configuration_spec.rb index 61d4cdf..cbec813 100644 --- a/spec/configuration_spec.rb +++ b/spec/configuration_spec.rb @@ -26,11 +26,6 @@ end describe '#base_url' do - it 'should have the default value' do - # uncomment below to test default value of the base path - # expect(config.base_url).to eq("https://api.mux.com") - end - it 'should remove trailing slashes' do [nil, '', '/', '//'].each do |base_path| config.base_path = base_path From 7b700e26bc01c39315297bb83102287e872d64a3 Mon Sep 17 00:00:00 2001 From: Ed Ropple Date: Fri, 18 Mar 2022 11:20:57 -0400 Subject: [PATCH 04/14] updated OAS ignores --- .openapi-generator-ignore | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore index 1c6f7d2..50bb708 100644 --- a/.openapi-generator-ignore +++ b/.openapi-generator-ignore @@ -28,3 +28,8 @@ git_push.sh lib/helpers.rb lib/helpers/**/*.rb + +spec/api_client_spec.rb +spec/configuration_spec.rb +spec/api/**/*.rb +spec/models/**/*.rb From 1904c9a8527d6e8e99c314144ee387b66a181eb7 Mon Sep 17 00:00:00 2001 From: Ed Ropple Date: Fri, 18 Mar 2022 11:21:08 -0400 Subject: [PATCH 05/14] enabled unit tests for SDK --- .github/workflows/ci.yaml | 2 ++ .github/workflows/release.yaml | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 6769946..fbe45c4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,6 +21,8 @@ jobs: run: gem install bundler - name: Install Ruby Dependencies run: bundle install --jobs 4 --retry 3 + - name: Run unit test + run: rake spec - name: Run Integration Tests env: MUX_TOKEN_ID: ${{ secrets.MUX_TOKEN_ID }} diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 6478f3a..d9050e2 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -24,6 +24,8 @@ jobs: run: gem install bundler - name: Install Ruby Dependencies run: bundle install --jobs 4 --retry 3 + - name: Run unit test + run: rake spec - name: Run Integration Tests env: MUX_TOKEN_ID: ${{ secrets.MUX_TOKEN_ID }} From bfadbe5a22f3fb74b5462956b8739e9da92d2b24 Mon Sep 17 00:00:00 2001 From: Ed Ropple Date: Fri, 18 Mar 2022 11:21:21 -0400 Subject: [PATCH 06/14] gemfile.lock (oops) --- Gemfile.lock | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Gemfile.lock b/Gemfile.lock index e4b6f73..a794f0b 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,6 +2,7 @@ PATH remote: . specs: mux_ruby (3.3.1) + securecompare (= 1.0.0) typhoeus (~> 1.0, >= 1.0.1) GEM @@ -50,6 +51,7 @@ GEM ruby-progressbar (~> 1.7) unicode-display_width (>= 1.4.0, < 1.6) ruby-progressbar (1.11.0) + securecompare (1.0.0) solid_assert (1.0.0) typhoeus (1.4.0) ethon (>= 0.9.0) From 2aacb99e27c73b3509b877929683412fd6a4b8a0 Mon Sep 17 00:00:00 2001 From: Ed Ropple Date: Fri, 18 Mar 2022 11:21:42 -0400 Subject: [PATCH 07/14] mux_ruby helpers and webhook verifier, with test --- lib/mux_ruby/helpers.rb | 1 + lib/mux_ruby/helpers/webhook_verifier.rb | 74 ++++++++++++++++++++++++ spec/helpers/webhook_verifier_spec.rb | 62 ++++++++++++++++++++ 3 files changed, 137 insertions(+) create mode 100644 lib/mux_ruby/helpers.rb create mode 100644 lib/mux_ruby/helpers/webhook_verifier.rb create mode 100644 spec/helpers/webhook_verifier_spec.rb diff --git a/lib/mux_ruby/helpers.rb b/lib/mux_ruby/helpers.rb new file mode 100644 index 0000000..5bb01d3 --- /dev/null +++ b/lib/mux_ruby/helpers.rb @@ -0,0 +1 @@ +require 'mux_ruby/helpers/webhook_verifier' diff --git a/lib/mux_ruby/helpers/webhook_verifier.rb b/lib/mux_ruby/helpers/webhook_verifier.rb new file mode 100644 index 0000000..c225d9b --- /dev/null +++ b/lib/mux_ruby/helpers/webhook_verifier.rb @@ -0,0 +1,74 @@ +require 'openssl' +require 'securecompare' + +module MuxRuby + module Helpers + class WebhookVerifier + DEFAULT_TOLERANCE = 300 + HEADER_SCHEMES = [:v1].freeze + + # Initializer. + # + # @param [String] secret the webhook secret from your Mux control panel + # @param [Integer] tolerance the signature timing tolerance, in seconds (generally leave as is) + # @param [Array] header_schemes the list of accepted header schemes for this verifier + def initialize(secret: nil, tolerance: DEFAULT_TOLERANCE, header_schemes: [:v1]) + raise "secret '#{secret.inspect}' must be a String" unless secret.is_a?(String) + raise "tolerance '#{tolerance.inspect}' must be a positive number." \ + unless tolerance.is_a?(Integer) && tolerance > 0 + raise "header schemes '#{header_schemes.inspect}' must all be in HEADER_SCHEMES: '#{HEADER_SCHEMES.inspect}'" \ + unless header_schemes.all? { |h| HEADER_SCHEMES.include?(h) } + + @secret = secret.dup + @tolerance = tolerance + @header_schemes = header_schemes.map(&:to_s).sort.uniq.reverse + end + + # Initializer. + # + # @param [String] request_body the raw, unmodified body of the request + # @param [String] header the Mux-Signature header + # @param [Time] current_timestamp (for test purposes) the current time expected for this webhook (defaults to `Time.utc`) + # @return [Boolean] true if webhook is verified; false otherwise + def verify(request_body:, header:, current_timestamp: Time.now.getutc) + header_parts = self.kv_from_header(header) + + timestamp = header_parts['t'].to_i + scheme_used = @header_schemes.detect { |scheme| !header_parts[scheme].nil? } + mux_signature = header_parts[scheme_used] + + if timestamp.nil? || mux_signature.nil? + false + else + case scheme_used + when 'v1' + expected_signature = self.compute_v1_signature("#{timestamp}.#{request_body}") + if SecureCompare.compare(expected_signature, mux_signature) + delta = current_timestamp.to_i - timestamp + + if (delta <= @tolerance) + true + else + false + end + else + false + end + else + warn "Unhandled *but recognized* Mux signature format '#{scheme_used}'. Please contact Mux." + false + end + end + end + + private + def kv_from_header(header) + Hash[header.strip.gsub(/^Mux-Signature:/, "").strip.split(",").map { |tup| tup.split("=") }] + end + + def compute_v1_signature(payload) + OpenSSL::HMAC.hexdigest("SHA256", @secret, payload) + end + end + end +end diff --git a/spec/helpers/webhook_verifier_spec.rb b/spec/helpers/webhook_verifier_spec.rb new file mode 100644 index 0000000..b8ab7dc --- /dev/null +++ b/spec/helpers/webhook_verifier_spec.rb @@ -0,0 +1,62 @@ +require 'openssl' +require 'json' +require 'time' + +require 'mux_ruby' + +describe MuxRuby::Helpers::WebhookVerifier do + it "should work on the happy path" do + # server/client shared secret + shared_secret = "abcdabcdabcdabcd" + + # mocking the server + timestamp = Time.now.getutc.to_i + request_body = JSON.generate({ 'foo' => 1, 'bar' => 2, 'baz' => { 'quux': 10, 'quuux': 20 }}) + + signed_payload = "#{timestamp}.#{request_body}" + mux_v1_signature = OpenSSL::HMAC.hexdigest("SHA256", shared_secret, signed_payload) + header = "t=#{timestamp},v1=#{mux_v1_signature}" + + # everything below here is what a consuming application would do + verifier = MuxRuby::Helpers::WebhookVerifier.new(secret: shared_secret) + + expect(verifier.verify(request_body: request_body, header: header)).to eq(true) + end + + it "should not work with an old timestamp" do + # server/client shared secret + shared_secret = "abcdabcdabcdabcd" + + # mocking the server + timestamp = Time.now.getutc.to_i - 1200 + request_body = JSON.generate({ 'foo' => 1, 'bar' => 2, 'baz' => { 'quux': 10, 'quuux': 20 }}) + + signed_payload = "#{timestamp}.#{request_body}" + mux_v1_signature = OpenSSL::HMAC.hexdigest("SHA256", shared_secret, signed_payload) + header = "t=#{timestamp},v1=#{mux_v1_signature}" + + # everything below here is what a consuming application would do + verifier = MuxRuby::Helpers::WebhookVerifier.new(secret: shared_secret) + + expect(verifier.verify(request_body: request_body, header: header)).to eq(false) + end + + it "should not work with a bad signature" do + # server/client shared secret + shared_secret = "abcdabcdabcdabcd" + + # mocking the server + timestamp = Time.now.getutc.to_i + request_body = JSON.generate({ 'foo' => 1, 'bar' => 2, 'baz' => { 'quux': 10, 'quuux': 20 }}) + spoofed_request_body = JSON.generate({ 'evil_bit' => true }) + + signed_payload = "#{timestamp}.#{request_body}" + mux_v1_signature = OpenSSL::HMAC.hexdigest("SHA256", shared_secret, signed_payload) + header = "t=#{timestamp},v1=#{mux_v1_signature}" + + # everything below here is what a consuming application would do + verifier = MuxRuby::Helpers::WebhookVerifier.new(secret: shared_secret) + + expect(verifier.verify(request_body: spoofed_request_body, header: header)).to eq(false) + end +end From 296320a2b9d7921cea19ea0e3dea46ed174be0a1 Mon Sep 17 00:00:00 2001 From: Ed Ropple Date: Fri, 18 Mar 2022 11:22:50 -0400 Subject: [PATCH 08/14] OAS ignore --- .openapi-generator-ignore | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.openapi-generator-ignore b/.openapi-generator-ignore index 50bb708..81e330b 100644 --- a/.openapi-generator-ignore +++ b/.openapi-generator-ignore @@ -27,9 +27,9 @@ git_push.sh .travis.yml lib/helpers.rb -lib/helpers/**/*.rb +lib/helpers/*.rb spec/api_client_spec.rb spec/configuration_spec.rb -spec/api/**/*.rb -spec/models/**/*.rb +spec/api/*.rb +spec/models/*.rb From 06bdcdc66b2281c88a9fa81802baef159b4552dc Mon Sep 17 00:00:00 2001 From: Ed Ropple Date: Fri, 18 Mar 2022 11:28:25 -0400 Subject: [PATCH 09/14] moved manually inserted files into a separate directory --- gen/Makefile | 1 + lib-manual/helpers.rb | 1 + lib-manual/helpers/webhook_verifier.rb | 74 ++++++++++++++++++++++++++ 3 files changed, 76 insertions(+) create mode 100644 lib-manual/helpers.rb create mode 100644 lib-manual/helpers/webhook_verifier.rb diff --git a/gen/Makefile b/gen/Makefile index bd20222..f33d391 100644 --- a/gen/Makefile +++ b/gen/Makefile @@ -22,6 +22,7 @@ clean-products: build: ensure clean-products ${OAS_CLI} generate -g "${GENERATOR_TYPE}" -c "${CONFIG_PATH}" -t "${TEMPLATE_DIR}" -o "${OUTPUT_DIR}" -i "${OAS_SPEC_PATH}" + cp -R "${OUTPUT_DIR}/lib-manual/*" "${OUTPUT_DIR}/lib/mux_ruby" config-help: ensure ${OAS_CLI} config-help -g "${GENERATOR_TYPE}" diff --git a/lib-manual/helpers.rb b/lib-manual/helpers.rb new file mode 100644 index 0000000..5bb01d3 --- /dev/null +++ b/lib-manual/helpers.rb @@ -0,0 +1 @@ +require 'mux_ruby/helpers/webhook_verifier' diff --git a/lib-manual/helpers/webhook_verifier.rb b/lib-manual/helpers/webhook_verifier.rb new file mode 100644 index 0000000..c225d9b --- /dev/null +++ b/lib-manual/helpers/webhook_verifier.rb @@ -0,0 +1,74 @@ +require 'openssl' +require 'securecompare' + +module MuxRuby + module Helpers + class WebhookVerifier + DEFAULT_TOLERANCE = 300 + HEADER_SCHEMES = [:v1].freeze + + # Initializer. + # + # @param [String] secret the webhook secret from your Mux control panel + # @param [Integer] tolerance the signature timing tolerance, in seconds (generally leave as is) + # @param [Array] header_schemes the list of accepted header schemes for this verifier + def initialize(secret: nil, tolerance: DEFAULT_TOLERANCE, header_schemes: [:v1]) + raise "secret '#{secret.inspect}' must be a String" unless secret.is_a?(String) + raise "tolerance '#{tolerance.inspect}' must be a positive number." \ + unless tolerance.is_a?(Integer) && tolerance > 0 + raise "header schemes '#{header_schemes.inspect}' must all be in HEADER_SCHEMES: '#{HEADER_SCHEMES.inspect}'" \ + unless header_schemes.all? { |h| HEADER_SCHEMES.include?(h) } + + @secret = secret.dup + @tolerance = tolerance + @header_schemes = header_schemes.map(&:to_s).sort.uniq.reverse + end + + # Initializer. + # + # @param [String] request_body the raw, unmodified body of the request + # @param [String] header the Mux-Signature header + # @param [Time] current_timestamp (for test purposes) the current time expected for this webhook (defaults to `Time.utc`) + # @return [Boolean] true if webhook is verified; false otherwise + def verify(request_body:, header:, current_timestamp: Time.now.getutc) + header_parts = self.kv_from_header(header) + + timestamp = header_parts['t'].to_i + scheme_used = @header_schemes.detect { |scheme| !header_parts[scheme].nil? } + mux_signature = header_parts[scheme_used] + + if timestamp.nil? || mux_signature.nil? + false + else + case scheme_used + when 'v1' + expected_signature = self.compute_v1_signature("#{timestamp}.#{request_body}") + if SecureCompare.compare(expected_signature, mux_signature) + delta = current_timestamp.to_i - timestamp + + if (delta <= @tolerance) + true + else + false + end + else + false + end + else + warn "Unhandled *but recognized* Mux signature format '#{scheme_used}'. Please contact Mux." + false + end + end + end + + private + def kv_from_header(header) + Hash[header.strip.gsub(/^Mux-Signature:/, "").strip.split(",").map { |tup| tup.split("=") }] + end + + def compute_v1_signature(payload) + OpenSSL::HMAC.hexdigest("SHA256", @secret, payload) + end + end + end +end From 56a56845fc7acdd0c2fd173c1cf0fd031f84a16e Mon Sep 17 00:00:00 2001 From: Ed Ropple Date: Fri, 18 Mar 2022 11:31:48 -0400 Subject: [PATCH 10/14] updated makefile to copy over manual files (needs to be here because we nuke the /lib dir on build for reasons) --- gen/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen/Makefile b/gen/Makefile index f33d391..6ca16c4 100644 --- a/gen/Makefile +++ b/gen/Makefile @@ -22,7 +22,7 @@ clean-products: build: ensure clean-products ${OAS_CLI} generate -g "${GENERATOR_TYPE}" -c "${CONFIG_PATH}" -t "${TEMPLATE_DIR}" -o "${OUTPUT_DIR}" -i "${OAS_SPEC_PATH}" - cp -R "${OUTPUT_DIR}/lib-manual/*" "${OUTPUT_DIR}/lib/mux_ruby" + cp -R ${OUTPUT_DIR}/lib-manual/* ${OUTPUT_DIR}/lib/mux_ruby config-help: ensure ${OAS_CLI} config-help -g "${GENERATOR_TYPE}" From 9b111d48de5e766fbe250cb226951a01a47f08d1 Mon Sep 17 00:00:00 2001 From: Ed Ropple Date: Tue, 22 Mar 2022 13:01:45 -0400 Subject: [PATCH 11/14] OAS update to sync --- .openapi-generator/FILES | 2 - docs/AssetNonStandardInputReasons.md | 4 +- docs/CreateLiveStreamRequest.md | 4 +- docs/LiveStream.md | 4 +- docs/UpdateLiveStreamRequest.md | 4 +- .../asset_non_standard_input_reasons.rb | 4 +- .../models/create_live_stream_request.rb | 44 +++++++++++++++++-- lib/mux_ruby/models/live_stream.rb | 44 +++++++++++++++++-- .../models/update_live_stream_request.rb | 44 +++++++++++++++++-- 9 files changed, 133 insertions(+), 21 deletions(-) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index b1f3fa8..82b5bae 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -259,6 +259,4 @@ lib/mux_ruby/models/video_view_event.rb lib/mux_ruby/models/video_view_response.rb lib/mux_ruby/version.rb mux_ruby.gemspec -spec/api_client_spec.rb -spec/configuration_spec.rb spec/spec_helper.rb diff --git a/docs/AssetNonStandardInputReasons.md b/docs/AssetNonStandardInputReasons.md index 15e7360..e69e7c1 100644 --- a/docs/AssetNonStandardInputReasons.md +++ b/docs/AssetNonStandardInputReasons.md @@ -6,8 +6,8 @@ | ---- | ---- | ----------- | ----- | | **video_codec** | **String** | The video codec used on the input file. For example, the input file encoded with `hevc` video codec is non-standard and the value of this parameter is `hevc`. | [optional] | | **audio_codec** | **String** | The audio codec used on the input file. Non-AAC audio codecs are non-standard. | [optional] | -| **video_gop_size** | **String** | The video key frame Interval (also called as Group of Picture or GOP) of the input file is `high`. This parameter is present when the gop is greater than 10 seconds. | [optional] | -| **video_frame_rate** | **String** | The video frame rate of the input file. Video with average frames per second (fps) less than 10 or greater than 120 is non-standard. A `-1` frame rate value indicates Mux could not determine the frame rate of the video track. | [optional] | +| **video_gop_size** | **String** | The video key frame Interval (also called as Group of Picture or GOP) of the input file is `high`. This parameter is present when the gop is greater than 20 seconds. | [optional] | +| **video_frame_rate** | **String** | The video frame rate of the input file. Video with average frames per second (fps) less than 5 or greater than 120 is non-standard. A `-1` frame rate value indicates Mux could not determine the frame rate of the video track. | [optional] | | **video_resolution** | **String** | The video resolution of the input file. Video resolution higher than 2048 pixels on any one dimension (height or width) is considered non-standard, The resolution value is presented as `width` x `height` in pixels. | [optional] | | **video_bitrate** | **String** | The video bitrate of the input file is `high`. This parameter is present when the average bitrate of any key frame interval (also known as Group of Pictures or GOP) is higher than what's considered standard which typically is 16 Mbps. | [optional] | | **pixel_aspect_ratio** | **String** | The video pixel aspect ratio of the input file. | [optional] | diff --git a/docs/CreateLiveStreamRequest.md b/docs/CreateLiveStreamRequest.md index d82f9a8..8185c5f 100644 --- a/docs/CreateLiveStreamRequest.md +++ b/docs/CreateLiveStreamRequest.md @@ -15,6 +15,7 @@ | **latency_mode** | **String** | Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Note: Reconnect windows are incompatible with Reduced Latency and Low Latency and will always be set to zero (0) seconds. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/ | [optional] | | **test** | **Boolean** | Marks the live stream as a test live stream when the value is set to true. A test live stream can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test live streams created. Test live streams are watermarked with the Mux logo and limited to 5 minutes. The test live stream is disabled after the stream is active for 5 mins and the recorded asset also deleted after 24 hours. | [optional] | | **simulcast_targets** | [**Array<CreateSimulcastTargetRequest>**](CreateSimulcastTargetRequest.md) | | [optional] | +| **max_continuous_duration** | **Integer** | The time in seconds a live stream may be continuously active before being disconnected. Defaults to 12 hours. | [optional][default to 43200] | ## Example @@ -32,7 +33,8 @@ instance = MuxRuby::CreateLiveStreamRequest.new( low_latency: null, latency_mode: null, test: null, - simulcast_targets: null + simulcast_targets: null, + max_continuous_duration: null ) ``` diff --git a/docs/LiveStream.md b/docs/LiveStream.md index 2b9e928..52cf4f8 100644 --- a/docs/LiveStream.md +++ b/docs/LiveStream.md @@ -21,6 +21,7 @@ | **simulcast_targets** | [**Array<SimulcastTarget>**](SimulcastTarget.md) | Each Simulcast Target contains configuration details to broadcast (or \"restream\") a live stream to a third-party streaming service. [See the Stream live to 3rd party platforms guide](https://docs.mux.com/guides/video/stream-live-to-3rd-party-platforms). | [optional] | | **latency_mode** | **String** | Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Note: Reconnect windows are incompatible with Reduced Latency and Low Latency and will always be set to zero (0) seconds. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/ | [optional] | | **test** | **Boolean** | True means this live stream is a test live stream. Test live streams can be used to help evaluate the Mux Video APIs for free. There is no limit on the number of test live streams, but they are watermarked with the Mux logo, and limited to 5 minutes. The test live stream is disabled after the stream is active for 5 mins and the recorded asset also deleted after 24 hours. | [optional] | +| **max_continuous_duration** | **Integer** | The time in seconds a live stream may be continuously active before being disconnected. Defaults to 12 hours. | [optional][default to 43200] | ## Example @@ -44,7 +45,8 @@ instance = MuxRuby::LiveStream.new( low_latency: null, simulcast_targets: null, latency_mode: null, - test: null + test: null, + max_continuous_duration: null ) ``` diff --git a/docs/UpdateLiveStreamRequest.md b/docs/UpdateLiveStreamRequest.md index 10398f5..8dba730 100644 --- a/docs/UpdateLiveStreamRequest.md +++ b/docs/UpdateLiveStreamRequest.md @@ -7,6 +7,7 @@ | **passthrough** | **String** | Arbitrary user-supplied metadata set for the live stream. Max 255 characters. In order to clear this value, the field should be included with an empty-string value. | [optional] | | **latency_mode** | **String** | Latency is the time from when the streamer transmits a frame of video to when you see it in the player. Set this as an alternative to setting low latency or reduced latency flags. The Low Latency value is a beta feature. Note: Reconnect windows are incompatible with Reduced Latency and Low Latency and will always be set to zero (0) seconds. Read more here: https://mux.com/blog/introducing-low-latency-live-streaming/ | [optional] | | **reconnect_window** | **Float** | When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. | [optional] | +| **max_continuous_duration** | **Integer** | The time in seconds a live stream may be continuously active before being disconnected. Defaults to 12 hours. | [optional][default to 43200] | ## Example @@ -16,7 +17,8 @@ require 'mux_ruby' instance = MuxRuby::UpdateLiveStreamRequest.new( passthrough: null, latency_mode: null, - reconnect_window: null + reconnect_window: null, + max_continuous_duration: null ) ``` diff --git a/lib/mux_ruby/models/asset_non_standard_input_reasons.rb b/lib/mux_ruby/models/asset_non_standard_input_reasons.rb index 8cb415d..f913bdd 100644 --- a/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +++ b/lib/mux_ruby/models/asset_non_standard_input_reasons.rb @@ -22,10 +22,10 @@ class AssetNonStandardInputReasons # The audio codec used on the input file. Non-AAC audio codecs are non-standard. attr_accessor :audio_codec - # The video key frame Interval (also called as Group of Picture or GOP) of the input file is `high`. This parameter is present when the gop is greater than 10 seconds. + # The video key frame Interval (also called as Group of Picture or GOP) of the input file is `high`. This parameter is present when the gop is greater than 20 seconds. attr_accessor :video_gop_size - # The video frame rate of the input file. Video with average frames per second (fps) less than 10 or greater than 120 is non-standard. A `-1` frame rate value indicates Mux could not determine the frame rate of the video track. + # The video frame rate of the input file. Video with average frames per second (fps) less than 5 or greater than 120 is non-standard. A `-1` frame rate value indicates Mux could not determine the frame rate of the video track. attr_accessor :video_frame_rate # The video resolution of the input file. Video resolution higher than 2048 pixels on any one dimension (height or width) is considered non-standard, The resolution value is presented as `width` x `height` in pixels. diff --git a/lib/mux_ruby/models/create_live_stream_request.rb b/lib/mux_ruby/models/create_live_stream_request.rb index fbd22e1..4d3f337 100644 --- a/lib/mux_ruby/models/create_live_stream_request.rb +++ b/lib/mux_ruby/models/create_live_stream_request.rb @@ -44,6 +44,9 @@ class CreateLiveStreamRequest attr_accessor :simulcast_targets + # The time in seconds a live stream may be continuously active before being disconnected. Defaults to 12 hours. + attr_accessor :max_continuous_duration + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -79,7 +82,8 @@ def self.attribute_map :'low_latency' => :'low_latency', :'latency_mode' => :'latency_mode', :'test' => :'test', - :'simulcast_targets' => :'simulcast_targets' + :'simulcast_targets' => :'simulcast_targets', + :'max_continuous_duration' => :'max_continuous_duration' } end @@ -101,7 +105,8 @@ def self.openapi_types :'low_latency' => :'Boolean', :'latency_mode' => :'String', :'test' => :'Boolean', - :'simulcast_targets' => :'Array' + :'simulcast_targets' => :'Array', + :'max_continuous_duration' => :'Integer' } end @@ -175,6 +180,12 @@ def initialize(attributes = {}) self.simulcast_targets = value end end + + if attributes.key?(:'max_continuous_duration') + self.max_continuous_duration = attributes[:'max_continuous_duration'] + else + self.max_continuous_duration = 43200 + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -189,6 +200,14 @@ def list_invalid_properties invalid_properties.push('invalid value for "reconnect_window", must be greater than or equal to 0.1.') end + if !@max_continuous_duration.nil? && @max_continuous_duration > 43200 + invalid_properties.push('invalid value for "max_continuous_duration", must be smaller than or equal to 43200.') + end + + if !@max_continuous_duration.nil? && @max_continuous_duration < 60 + invalid_properties.push('invalid value for "max_continuous_duration", must be greater than or equal to 60.') + end + invalid_properties end @@ -199,6 +218,8 @@ def valid? return false if !@reconnect_window.nil? && @reconnect_window < 0.1 latency_mode_validator = EnumAttributeValidator.new('String', ["low", "reduced", "standard"]) return false unless latency_mode_validator.valid?(@latency_mode) + return false if !@max_continuous_duration.nil? && @max_continuous_duration > 43200 + return false if !@max_continuous_duration.nil? && @max_continuous_duration < 60 true end @@ -226,6 +247,20 @@ def latency_mode=(latency_mode) @latency_mode = latency_mode end + # Custom attribute writer method with validation + # @param [Object] max_continuous_duration Value to be assigned + def max_continuous_duration=(max_continuous_duration) + if !max_continuous_duration.nil? && max_continuous_duration > 43200 + fail ArgumentError, 'invalid value for "max_continuous_duration", must be smaller than or equal to 43200.' + end + + if !max_continuous_duration.nil? && max_continuous_duration < 60 + fail ArgumentError, 'invalid value for "max_continuous_duration", must be greater than or equal to 60.' + end + + @max_continuous_duration = max_continuous_duration + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -241,7 +276,8 @@ def ==(o) low_latency == o.low_latency && latency_mode == o.latency_mode && test == o.test && - simulcast_targets == o.simulcast_targets + simulcast_targets == o.simulcast_targets && + max_continuous_duration == o.max_continuous_duration end # @see the `==` method @@ -253,7 +289,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [playback_policy, new_asset_settings, reconnect_window, passthrough, audio_only, embedded_subtitles, reduced_latency, low_latency, latency_mode, test, simulcast_targets].hash + [playback_policy, new_asset_settings, reconnect_window, passthrough, audio_only, embedded_subtitles, reduced_latency, low_latency, latency_mode, test, simulcast_targets, max_continuous_duration].hash end # Builds the object from hash diff --git a/lib/mux_ruby/models/live_stream.rb b/lib/mux_ruby/models/live_stream.rb index 9942df5..bd70232 100644 --- a/lib/mux_ruby/models/live_stream.rb +++ b/lib/mux_ruby/models/live_stream.rb @@ -64,6 +64,9 @@ class LiveStream # True means this live stream is a test live stream. Test live streams can be used to help evaluate the Mux Video APIs for free. There is no limit on the number of test live streams, but they are watermarked with the Mux logo, and limited to 5 minutes. The test live stream is disabled after the stream is active for 5 mins and the recorded asset also deleted after 24 hours. attr_accessor :test + # The time in seconds a live stream may be continuously active before being disconnected. Defaults to 12 hours. + attr_accessor :max_continuous_duration + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -105,7 +108,8 @@ def self.attribute_map :'low_latency' => :'low_latency', :'simulcast_targets' => :'simulcast_targets', :'latency_mode' => :'latency_mode', - :'test' => :'test' + :'test' => :'test', + :'max_continuous_duration' => :'max_continuous_duration' } end @@ -133,7 +137,8 @@ def self.openapi_types :'low_latency' => :'Boolean', :'simulcast_targets' => :'Array', :'latency_mode' => :'String', - :'test' => :'Boolean' + :'test' => :'Boolean', + :'max_continuous_duration' => :'Integer' } end @@ -235,12 +240,26 @@ def initialize(attributes = {}) if attributes.key?(:'test') self.test = attributes[:'test'] end + + if attributes.key?(:'max_continuous_duration') + self.max_continuous_duration = attributes[:'max_continuous_duration'] + else + self.max_continuous_duration = 43200 + end end # Show invalid properties with the reasons. Usually used together with valid? # @return Array for valid properties with the reasons def list_invalid_properties invalid_properties = Array.new + if !@max_continuous_duration.nil? && @max_continuous_duration > 43200 + invalid_properties.push('invalid value for "max_continuous_duration", must be smaller than or equal to 43200.') + end + + if !@max_continuous_duration.nil? && @max_continuous_duration < 60 + invalid_properties.push('invalid value for "max_continuous_duration", must be greater than or equal to 60.') + end + invalid_properties end @@ -249,6 +268,8 @@ def list_invalid_properties def valid? latency_mode_validator = EnumAttributeValidator.new('String', ["low", "reduced", "standard"]) return false unless latency_mode_validator.valid?(@latency_mode) + return false if !@max_continuous_duration.nil? && @max_continuous_duration > 43200 + return false if !@max_continuous_duration.nil? && @max_continuous_duration < 60 true end @@ -262,6 +283,20 @@ def latency_mode=(latency_mode) @latency_mode = latency_mode end + # Custom attribute writer method with validation + # @param [Object] max_continuous_duration Value to be assigned + def max_continuous_duration=(max_continuous_duration) + if !max_continuous_duration.nil? && max_continuous_duration > 43200 + fail ArgumentError, 'invalid value for "max_continuous_duration", must be smaller than or equal to 43200.' + end + + if !max_continuous_duration.nil? && max_continuous_duration < 60 + fail ArgumentError, 'invalid value for "max_continuous_duration", must be greater than or equal to 60.' + end + + @max_continuous_duration = max_continuous_duration + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -283,7 +318,8 @@ def ==(o) low_latency == o.low_latency && simulcast_targets == o.simulcast_targets && latency_mode == o.latency_mode && - test == o.test + test == o.test && + max_continuous_duration == o.max_continuous_duration end # @see the `==` method @@ -295,7 +331,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [id, created_at, stream_key, active_asset_id, recent_asset_ids, status, playback_ids, new_asset_settings, passthrough, audio_only, embedded_subtitles, reconnect_window, reduced_latency, low_latency, simulcast_targets, latency_mode, test].hash + [id, created_at, stream_key, active_asset_id, recent_asset_ids, status, playback_ids, new_asset_settings, passthrough, audio_only, embedded_subtitles, reconnect_window, reduced_latency, low_latency, simulcast_targets, latency_mode, test, max_continuous_duration].hash end # Builds the object from hash diff --git a/lib/mux_ruby/models/update_live_stream_request.rb b/lib/mux_ruby/models/update_live_stream_request.rb index 93c9a35..0d00b07 100644 --- a/lib/mux_ruby/models/update_live_stream_request.rb +++ b/lib/mux_ruby/models/update_live_stream_request.rb @@ -24,6 +24,9 @@ class UpdateLiveStreamRequest # When live streaming software disconnects from Mux, either intentionally or due to a drop in the network, the Reconnect Window is the time in seconds that Mux should wait for the streaming software to reconnect before considering the live stream finished and completing the recorded asset. attr_accessor :reconnect_window + # The time in seconds a live stream may be continuously active before being disconnected. Defaults to 12 hours. + attr_accessor :max_continuous_duration + class EnumAttributeValidator attr_reader :datatype attr_reader :allowable_values @@ -51,7 +54,8 @@ def self.attribute_map { :'passthrough' => :'passthrough', :'latency_mode' => :'latency_mode', - :'reconnect_window' => :'reconnect_window' + :'reconnect_window' => :'reconnect_window', + :'max_continuous_duration' => :'max_continuous_duration' } end @@ -65,7 +69,8 @@ def self.openapi_types { :'passthrough' => :'String', :'latency_mode' => :'String', - :'reconnect_window' => :'Float' + :'reconnect_window' => :'Float', + :'max_continuous_duration' => :'Integer' } end @@ -101,6 +106,12 @@ def initialize(attributes = {}) if attributes.key?(:'reconnect_window') self.reconnect_window = attributes[:'reconnect_window'] end + + if attributes.key?(:'max_continuous_duration') + self.max_continuous_duration = attributes[:'max_continuous_duration'] + else + self.max_continuous_duration = 43200 + end end # Show invalid properties with the reasons. Usually used together with valid? @@ -115,6 +126,14 @@ def list_invalid_properties invalid_properties.push('invalid value for "reconnect_window", must be greater than or equal to 0.1.') end + if !@max_continuous_duration.nil? && @max_continuous_duration > 43200 + invalid_properties.push('invalid value for "max_continuous_duration", must be smaller than or equal to 43200.') + end + + if !@max_continuous_duration.nil? && @max_continuous_duration < 60 + invalid_properties.push('invalid value for "max_continuous_duration", must be greater than or equal to 60.') + end + invalid_properties end @@ -125,6 +144,8 @@ def valid? return false unless latency_mode_validator.valid?(@latency_mode) return false if !@reconnect_window.nil? && @reconnect_window > 300 return false if !@reconnect_window.nil? && @reconnect_window < 0.1 + return false if !@max_continuous_duration.nil? && @max_continuous_duration > 43200 + return false if !@max_continuous_duration.nil? && @max_continuous_duration < 60 true end @@ -152,6 +173,20 @@ def reconnect_window=(reconnect_window) @reconnect_window = reconnect_window end + # Custom attribute writer method with validation + # @param [Object] max_continuous_duration Value to be assigned + def max_continuous_duration=(max_continuous_duration) + if !max_continuous_duration.nil? && max_continuous_duration > 43200 + fail ArgumentError, 'invalid value for "max_continuous_duration", must be smaller than or equal to 43200.' + end + + if !max_continuous_duration.nil? && max_continuous_duration < 60 + fail ArgumentError, 'invalid value for "max_continuous_duration", must be greater than or equal to 60.' + end + + @max_continuous_duration = max_continuous_duration + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -159,7 +194,8 @@ def ==(o) self.class == o.class && passthrough == o.passthrough && latency_mode == o.latency_mode && - reconnect_window == o.reconnect_window + reconnect_window == o.reconnect_window && + max_continuous_duration == o.max_continuous_duration end # @see the `==` method @@ -171,7 +207,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [passthrough, latency_mode, reconnect_window].hash + [passthrough, latency_mode, reconnect_window, max_continuous_duration].hash end # Builds the object from hash From 70bdb432e4fe29624d2c528501e631096367c4a9 Mon Sep 17 00:00:00 2001 From: Ed Ropple Date: Tue, 22 Mar 2022 13:21:59 -0400 Subject: [PATCH 12/14] min version bump to 2.7; added ruby 2.7 and head to CI matrix --- .github/workflows/ci.yaml | 11 ++++++++--- .github/workflows/release.yaml | 11 ++++++++--- mux_ruby.gemspec | 2 +- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fbe45c4..a99b500 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,14 +9,19 @@ on: jobs: build: name: Integration Test + strategy: + fail-fast: false + matrix: + ruby: ['2.7', head] runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v2 - - name: Install Ruby 2.6 - uses: actions/setup-ruby@v1 + - name: Install Ruby ${{ matrix.ruby }} + uses: ruby/setup-ruby@v1 with: - ruby-version: 2.6.x + ruby-version: ${{ matrix.ruby }} + bundler-cache: true - name: Install Bundler run: gem install bundler - name: Install Ruby Dependencies diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index d9050e2..b47b60e 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -9,14 +9,19 @@ on: jobs: build: name: Release to RubyGems + strategy: + fail-fast: false + matrix: + ruby: ['2.7', head] runs-on: ubuntu-latest steps: - name: Check out code uses: actions/checkout@v2 - - name: Install Ruby 2.6 - uses: actions/setup-ruby@v1 + - name: Install Ruby ${{ matrix.ruby }} + uses: ruby/setup-ruby@v1 with: - ruby-version: 2.6.x + ruby-version: ${{ matrix.ruby }} + bundler-cache: true - name: Update system rubygems run: gem update --system # diff --git a/mux_ruby.gemspec b/mux_ruby.gemspec index e6cc06b..a3dce0c 100644 --- a/mux_ruby.gemspec +++ b/mux_ruby.gemspec @@ -26,7 +26,7 @@ Gem::Specification.new do |s| s.description = "The Ruby client for Mux Data and Mux Video." s.metadata = { "source_code_uri" => "https://github.com/muxinc/mux-ruby" } s.license = "MIT" - s.required_ruby_version = ">= 2.4" + s.required_ruby_version = ">= 2.7" s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' s.add_runtime_dependency 'securecompare', '1.0.0' From 9c91ef1cc5b8677f2d2b1d71155fb13f82ed2272 Mon Sep 17 00:00:00 2001 From: Ed Ropple Date: Wed, 30 Mar 2022 11:10:31 -0400 Subject: [PATCH 13/14] jwt dependency added --- Gemfile.lock | 2 ++ gen/templates/gemspec.mustache | 1 + mux_ruby.gemspec | 3 ++- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/Gemfile.lock b/Gemfile.lock index a794f0b..17bc156 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -2,6 +2,7 @@ PATH remote: . specs: mux_ruby (3.3.1) + jwt (~> 2.3) securecompare (= 1.0.0) typhoeus (~> 1.0, >= 1.0.1) @@ -16,6 +17,7 @@ GEM ffi (>= 1.15.0) ffi (1.15.4) jaro_winkler (1.5.4) + jwt (2.3.0) method_source (1.0.0) parallel (1.20.1) parser (3.0.2.0) diff --git a/gen/templates/gemspec.mustache b/gen/templates/gemspec.mustache index 366ad63..e556b09 100644 --- a/gen/templates/gemspec.mustache +++ b/gen/templates/gemspec.mustache @@ -27,6 +27,7 @@ Gem::Specification.new do |s| s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' {{/isFaraday}} s.add_runtime_dependency 'securecompare', '1.0.0' + s.add_runtime_dependency 'jwt', '~> 2.3' s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0' diff --git a/mux_ruby.gemspec b/mux_ruby.gemspec index a3dce0c..675016e 100644 --- a/mux_ruby.gemspec +++ b/mux_ruby.gemspec @@ -26,10 +26,11 @@ Gem::Specification.new do |s| s.description = "The Ruby client for Mux Data and Mux Video." s.metadata = { "source_code_uri" => "https://github.com/muxinc/mux-ruby" } s.license = "MIT" - s.required_ruby_version = ">= 2.7" + s.required_ruby_version = ">= 2.4" s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1' s.add_runtime_dependency 'securecompare', '1.0.0' + s.add_runtime_dependency 'jwt', '~> 2.3' s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0' From 1d6ee7aa4d0ab70bd82d58112b63dd69d72d945f Mon Sep 17 00:00:00 2001 From: Ed Ropple Date: Wed, 30 Mar 2022 11:11:02 -0400 Subject: [PATCH 14/14] webhook verifier stuff --- lib-manual/helpers/webhook_verifier.rb | 2 ++ lib/mux_ruby/helpers/webhook_verifier.rb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lib-manual/helpers/webhook_verifier.rb b/lib-manual/helpers/webhook_verifier.rb index c225d9b..c28a2ac 100644 --- a/lib-manual/helpers/webhook_verifier.rb +++ b/lib-manual/helpers/webhook_verifier.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'openssl' require 'securecompare' diff --git a/lib/mux_ruby/helpers/webhook_verifier.rb b/lib/mux_ruby/helpers/webhook_verifier.rb index c225d9b..c28a2ac 100644 --- a/lib/mux_ruby/helpers/webhook_verifier.rb +++ b/lib/mux_ruby/helpers/webhook_verifier.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'openssl' require 'securecompare'