mux_ruby 3.17.0 → 3.18.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -0
  3. data/Gemfile.lock +3 -2
  4. data/README.md +5 -5
  5. data/docs/Asset.md +3 -1
  6. data/docs/CreateAssetRequest.md +4 -2
  7. data/docs/DeliveryReport.md +3 -1
  8. data/gen/generator-config.json +1 -1
  9. data/gen/templates/README.mustache +1 -1
  10. data/lib/mux_ruby/models/asset.rb +24 -2
  11. data/lib/mux_ruby/models/create_asset_request.rb +27 -5
  12. data/lib/mux_ruby/models/delivery_report.rb +24 -2
  13. data/lib/mux_ruby/version.rb +1 -1
  14. data/vendor/bundle/ruby/3.2.0/cache/jaro_winkler-1.5.6.gem +0 -0
  15. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/byebug/byebug.so +0 -0
  16. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/byebug-11.1.3/gem_make.out +6 -6
  17. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/ffi_c.so +0 -0
  18. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/gem_make.out +6 -6
  19. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/ffi-1.16.3/mkmf.log +16 -16
  20. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/gem_make.out +29 -0
  21. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.6/jaro_winkler/jaro_winkler_ext.so +0 -0
  22. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/gem_make.out +6 -6
  23. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/mkmf.log +4 -4
  24. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/psych-4.0.4/psych.so +0 -0
  25. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/gem_make.out +6 -6
  26. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/mkmf.log +2 -2
  27. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/stringio-3.0.2/stringio.so +0 -0
  28. data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug/Makefile +3 -3
  29. data/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/lib/byebug/byebug.so +0 -0
  30. data/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/ext/ffi_c/Makefile +3 -3
  31. data/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/lib/ffi_c.so +0 -0
  32. data/vendor/bundle/ruby/3.2.0/gems/{jaro_winkler-1.5.4 → jaro_winkler-1.5.6}/ext/jaro_winkler/Makefile +3 -3
  33. data/vendor/bundle/ruby/3.2.0/gems/{jaro_winkler-1.5.4 → jaro_winkler-1.5.6}/ext/jaro_winkler/jaro_winkler.c +12 -7
  34. data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.6/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
  35. data/vendor/bundle/ruby/3.2.0/gems/{jaro_winkler-1.5.4 → jaro_winkler-1.5.6}/lib/jaro_winkler/version.rb +1 -1
  36. data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/ext/psych/Makefile +3 -3
  37. data/vendor/bundle/ruby/3.2.0/gems/psych-4.0.4/lib/psych.so +0 -0
  38. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/ext/stringio/Makefile +3 -3
  39. data/vendor/bundle/ruby/3.2.0/gems/stringio-3.0.2/lib/stringio.so +0 -0
  40. data/vendor/bundle/ruby/3.2.0/specifications/{jaro_winkler-1.5.4.gemspec → jaro_winkler-1.5.6.gemspec} +5 -5
  41. metadata +179 -179
  42. data/vendor/bundle/ruby/3.2.0/cache/jaro_winkler-1.5.4.gem +0 -0
  43. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.4/gem_make.out +0 -66
  44. data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/jaro_winkler-1.5.4/jaro_winkler/jaro_winkler_ext.so +0 -0
  45. data/vendor/bundle/ruby/3.2.0/gems/jaro_winkler-1.5.4/lib/jaro_winkler/jaro_winkler_ext.so +0 -0
  46. /data/vendor/bundle/ruby/3.2.0/extensions/x86_64-linux/3.2.0/{jaro_winkler-1.5.4 → jaro_winkler-1.5.6}/gem.build_complete +0 -0
  47. /data/vendor/bundle/ruby/3.2.0/gems/{jaro_winkler-1.5.4 → jaro_winkler-1.5.6}/LICENSE.txt +0 -0
  48. /data/vendor/bundle/ruby/3.2.0/gems/{jaro_winkler-1.5.4 → jaro_winkler-1.5.6}/ext/jaro_winkler/adj_matrix.c +0 -0
  49. /data/vendor/bundle/ruby/3.2.0/gems/{jaro_winkler-1.5.4 → jaro_winkler-1.5.6}/ext/jaro_winkler/adj_matrix.h +0 -0
  50. /data/vendor/bundle/ruby/3.2.0/gems/{jaro_winkler-1.5.4 → jaro_winkler-1.5.6}/ext/jaro_winkler/codepoints.c +0 -0
  51. /data/vendor/bundle/ruby/3.2.0/gems/{jaro_winkler-1.5.4 → jaro_winkler-1.5.6}/ext/jaro_winkler/codepoints.h +0 -0
  52. /data/vendor/bundle/ruby/3.2.0/gems/{jaro_winkler-1.5.4 → jaro_winkler-1.5.6}/ext/jaro_winkler/extconf.rb +0 -0
  53. /data/vendor/bundle/ruby/3.2.0/gems/{jaro_winkler-1.5.4 → jaro_winkler-1.5.6}/ext/jaro_winkler/jaro.c +0 -0
  54. /data/vendor/bundle/ruby/3.2.0/gems/{jaro_winkler-1.5.4 → jaro_winkler-1.5.6}/ext/jaro_winkler/jaro.h +0 -0
  55. /data/vendor/bundle/ruby/3.2.0/gems/{jaro_winkler-1.5.4 → jaro_winkler-1.5.6}/lib/jaro_winkler/adjusting_table.rb +0 -0
  56. /data/vendor/bundle/ruby/3.2.0/gems/{jaro_winkler-1.5.4 → jaro_winkler-1.5.6}/lib/jaro_winkler/jaro_winkler_pure.rb +0 -0
  57. /data/vendor/bundle/ruby/3.2.0/gems/{jaro_winkler-1.5.4 → jaro_winkler-1.5.6}/lib/jaro_winkler.rb +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5d40a9430f1cc0937e7e84c95768445772d1f31f9d31ec2490e6aa7e7b1ad7c6
4
- data.tar.gz: 0a99802d590e3ff6430f00b4f94d8754f73be59a824db7f1f0c804c49318472b
3
+ metadata.gz: 043f37c80f5a3227442e1138a80bbf7a3996e1bbb05cdf76746821da41afec53
4
+ data.tar.gz: de8c68d809fc242ad9c0d7682a826b4c8c8b825d9f715a01bcf63c501f352b22
5
5
  SHA512:
6
- metadata.gz: 1cb1e82159ad77f1c5f9c6996fe0c0c6846f1f8defa99dc803e25b0da2c21856ccdaac61b4aab58e57d2d89ec78b16a4657abd3f1d141231e0ae01d0fa8d0e24
7
- data.tar.gz: 97a30868b20a4a27c9ef86f190ec7f84bed45508f951ad80ad98e428bda97b35296f4ac646b46b8ef1f3c47c33d4a616dbcf1b3cc788a762939a114213acf7bc
6
+ metadata.gz: b6388ad042e6df76b31aba484993e20e4286c8539a8ed55c5fb35b97b0f3eeb1ae89f34b349db18f9c12aaf74ea2bb48c36c9392d88ad3ea09d5232c2336f8ec
7
+ data.tar.gz: e8c56ac34dbf49e473a35affeb3f15c887044779ccc34f399af21d68fc4b972687cb633df091f05bdba793df42a7cd560fb717b642673f33ee7ff4ef18141973
data/Gemfile CHANGED
@@ -6,6 +6,7 @@ group :development, :test do
6
6
  gem 'rake', '~> 13.0.1'
7
7
  gem 'pry-byebug'
8
8
  gem 'rubocop', '~> 0.66.0'
9
+ gem 'jaro_winkler', '~>1.5.6'
9
10
 
10
11
  gem 'solid_assert'
11
12
  end
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- mux_ruby (3.17.0)
4
+ mux_ruby (3.18.0)
5
5
  typhoeus (~> 1.0, >= 1.0.1)
6
6
 
7
7
  GEM
@@ -14,7 +14,7 @@ GEM
14
14
  ethon (0.16.0)
15
15
  ffi (>= 1.15.0)
16
16
  ffi (1.16.3)
17
- jaro_winkler (1.5.4)
17
+ jaro_winkler (1.5.6)
18
18
  method_source (1.0.0)
19
19
  parallel (1.22.1)
20
20
  parser (3.1.2.0)
@@ -61,6 +61,7 @@ PLATFORMS
61
61
  ruby
62
62
 
63
63
  DEPENDENCIES
64
+ jaro_winkler (~> 1.5.6)
64
65
  mux_ruby!
65
66
  pry-byebug
66
67
  rake (~> 13.0.1)
data/README.md CHANGED
@@ -23,7 +23,7 @@ Not familiar with Mux? Check out https://mux.com/ for more information.
23
23
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
24
24
 
25
25
  - API version: v1
26
- - Package version: 3.17.0
26
+ - Package version: 3.18.0
27
27
  - Build package: org.openapitools.codegen.languages.RubyClientCodegen
28
28
  For more information, please visit [https://docs.mux.com](https://docs.mux.com)
29
29
 
@@ -40,16 +40,16 @@ gem build mux_ruby.gemspec
40
40
  Then either install the gem locally:
41
41
 
42
42
  ```shell
43
- gem install ./mux_ruby-3.17.0.gem
43
+ gem install ./mux_ruby-3.18.0.gem
44
44
  ```
45
45
 
46
- (for development, run `gem install --dev ./mux_ruby-3.17.0.gem` to install the development dependencies)
46
+ (for development, run `gem install --dev ./mux_ruby-3.18.0.gem` to install the development dependencies)
47
47
 
48
48
  or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
49
49
 
50
50
  Finally add this to the Gemfile:
51
51
 
52
- gem 'mux_ruby', '~> 3.17.0'
52
+ gem 'mux_ruby', '~> 3.18.0'
53
53
 
54
54
  ### Install from Git
55
55
 
@@ -83,7 +83,7 @@ Its up to you to manage your token and secret. In our examples, we read them fro
83
83
  ### Example Usage
84
84
  Below is a quick example of using Mux Ruby to list the Video assets stored in your Mux account.
85
85
 
86
- Be sure to also checkout the [exmples directory](examples/):
86
+ Be sure to also checkout the [examples directory](examples/):
87
87
  * [List Assets, Live Streams, Signing Keys, and Uploads.](examples/video/list-everything.rb)
88
88
  * [Create an Asset, wait for it to become availiable, and print its playback URL](examples/video/ingest.rb)
89
89
  * [Create a new Live Stream and retrieve its Stream key.](examples/video/create-live-stream.rb)
data/docs/Asset.md CHANGED
@@ -11,7 +11,8 @@
11
11
  | **max_stored_resolution** | **String** | This field is deprecated. Please use `resolution_tier` instead. The maximum resolution that has been stored for the asset. The asset may be delivered at lower resolutions depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. | [optional] |
12
12
  | **resolution_tier** | **String** | The resolution tier that the asset was ingested at, affecting billing for ingest & storage. This field also represents the highest resolution tier that the content can be delivered at, however the actual resolution may be lower depending on the device, bandwidth, and exact resolution of the uploaded asset. | [optional] |
13
13
  | **max_resolution_tier** | **String** | Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`. | [optional] |
14
- | **encoding_tier** | **String** | The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional] |
14
+ | **encoding_tier** | **String** | This field is deprecated. Please use `video_quality` instead. The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional] |
15
+ | **video_quality** | **String** | The video quality controls the cost, quality, and available platform features for the asset. By default the `plus` video quality is used. This field replaces the deprecated `encoding_tier` value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional] |
15
16
  | **max_stored_frame_rate** | **Float** | The maximum frame rate that has been stored for the asset. The asset may be delivered at lower frame rates depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. This field may return -1 if the frame rate of the input cannot be reliably determined. | [optional] |
16
17
  | **aspect_ratio** | **String** | The aspect ratio of the asset in the form of `width:height`, for example `16:9`. | [optional] |
17
18
  | **playback_ids** | [**Array<PlaybackID>**](PlaybackID.md) | An array of Playback ID objects. Use these to create HLS playback URLs. See [Play your videos](https://docs.mux.com/guides/play-your-videos) for more details. | [optional] |
@@ -47,6 +48,7 @@ instance = MuxRuby::Asset.new(
47
48
  resolution_tier: null,
48
49
  max_resolution_tier: null,
49
50
  encoding_tier: null,
51
+ video_quality: null,
50
52
  max_stored_frame_rate: null,
51
53
  aspect_ratio: null,
52
54
  playback_ids: null,
@@ -14,7 +14,8 @@
14
14
  | **master_access** | **String** | Specify what level (if any) of support for master access. Master access can be enabled temporarily for your asset to be downloaded. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. | [optional] |
15
15
  | **test** | **Boolean** | Marks the asset as a test asset when the value is set to true. A Test asset can help evaluate the Mux Video APIs without incurring any cost. There is no limit on number of test assets created. Test asset are watermarked with the Mux logo, limited to 10 seconds, deleted after 24 hrs. | [optional] |
16
16
  | **max_resolution_tier** | **String** | Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`. | [optional] |
17
- | **encoding_tier** | **String** | The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional] |
17
+ | **encoding_tier** | **String** | This field is deprecated. Please use `video_quality` instead. The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional] |
18
+ | **video_quality** | **String** | The video quality controls the cost, quality, and available platform features for the asset. By default the `plus` video quality is used. This field replaces the deprecated `encoding_tier` value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional] |
18
19
 
19
20
  ## Example
20
21
 
@@ -32,7 +33,8 @@ instance = MuxRuby::CreateAssetRequest.new(
32
33
  master_access: null,
33
34
  test: null,
34
35
  max_resolution_tier: null,
35
- encoding_tier: null
36
+ encoding_tier: null,
37
+ video_quality: null
36
38
  )
37
39
  ```
38
40
 
@@ -12,7 +12,8 @@
12
12
  | **asset_state** | **String** | The state of the asset. | [optional] |
13
13
  | **asset_duration** | **Float** | The duration of the asset in seconds. | [optional] |
14
14
  | **asset_resolution_tier** | **String** | The resolution tier that the asset was ingested at, affecting billing for ingest & storage | [optional] |
15
- | **asset_encoding_tier** | **String** | The encoding tier that the asset was ingested at. [See the encoding tiers guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional] |
15
+ | **asset_encoding_tier** | **String** | This field is deprecated. Please use `asset_video_quality` instead. The encoding tier that the asset was ingested at. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional] |
16
+ | **asset_video_quality** | **String** | The video quality that the asset was ingested at. This field replaces `asset_encoding_tier`. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers) | [optional] |
16
17
  | **delivered_seconds** | **Float** | Total number of delivered seconds during this time window. | [optional] |
17
18
  | **delivered_seconds_by_resolution** | [**DeliveryReportDeliveredSecondsByResolution**](DeliveryReportDeliveredSecondsByResolution.md) | | [optional] |
18
19
 
@@ -31,6 +32,7 @@ instance = MuxRuby::DeliveryReport.new(
31
32
  asset_duration: null,
32
33
  asset_resolution_tier: null,
33
34
  asset_encoding_tier: null,
35
+ asset_video_quality: null,
34
36
  delivered_seconds: null,
35
37
  delivered_seconds_by_resolution: null
36
38
  )
@@ -8,5 +8,5 @@
8
8
  "gemSourceLocation": "https://github.com/muxinc/mux-ruby",
9
9
  "gemLicense": "MIT",
10
10
  "moduleName": "MuxRuby",
11
- "gemVersion": "3.17.0"
11
+ "gemVersion": "3.18.0"
12
12
  }
@@ -88,7 +88,7 @@ Its up to you to manage your token and secret. In our examples, we read them fro
88
88
  ### Example Usage
89
89
  Below is a quick example of using Mux Ruby to list the Video assets stored in your Mux account.
90
90
 
91
- Be sure to also checkout the [exmples directory](examples/):
91
+ Be sure to also checkout the [examples directory](examples/):
92
92
  * [List Assets, Live Streams, Signing Keys, and Uploads.](examples/video/list-everything.rb)
93
93
  * [Create an Asset, wait for it to become availiable, and print its playback URL](examples/video/ingest.rb)
94
94
  * [Create a new Live Stream and retrieve its Stream key.](examples/video/create-live-stream.rb)
@@ -36,9 +36,12 @@ module MuxRuby
36
36
  # Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`.
37
37
  attr_accessor :max_resolution_tier
38
38
 
39
- # The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/use-encoding-tiers)
39
+ # This field is deprecated. Please use `video_quality` instead. The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers)
40
40
  attr_accessor :encoding_tier
41
41
 
42
+ # The video quality controls the cost, quality, and available platform features for the asset. By default the `plus` video quality is used. This field replaces the deprecated `encoding_tier` value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers)
43
+ attr_accessor :video_quality
44
+
42
45
  # The maximum frame rate that has been stored for the asset. The asset may be delivered at lower frame rates depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. This field may return -1 if the frame rate of the input cannot be reliably determined.
43
46
  attr_accessor :max_stored_frame_rate
44
47
 
@@ -125,6 +128,7 @@ module MuxRuby
125
128
  :'resolution_tier' => :'resolution_tier',
126
129
  :'max_resolution_tier' => :'max_resolution_tier',
127
130
  :'encoding_tier' => :'encoding_tier',
131
+ :'video_quality' => :'video_quality',
128
132
  :'max_stored_frame_rate' => :'max_stored_frame_rate',
129
133
  :'aspect_ratio' => :'aspect_ratio',
130
134
  :'playback_ids' => :'playback_ids',
@@ -164,6 +168,7 @@ module MuxRuby
164
168
  :'resolution_tier' => :'String',
165
169
  :'max_resolution_tier' => :'String',
166
170
  :'encoding_tier' => :'String',
171
+ :'video_quality' => :'String',
167
172
  :'max_stored_frame_rate' => :'Float',
168
173
  :'aspect_ratio' => :'String',
169
174
  :'playback_ids' => :'Array<PlaybackID>',
@@ -240,6 +245,10 @@ module MuxRuby
240
245
  self.encoding_tier = attributes[:'encoding_tier']
241
246
  end
242
247
 
248
+ if attributes.key?(:'video_quality')
249
+ self.video_quality = attributes[:'video_quality']
250
+ end
251
+
243
252
  if attributes.key?(:'max_stored_frame_rate')
244
253
  self.max_stored_frame_rate = attributes[:'max_stored_frame_rate']
245
254
  end
@@ -353,6 +362,8 @@ module MuxRuby
353
362
  return false unless max_resolution_tier_validator.valid?(@max_resolution_tier)
354
363
  encoding_tier_validator = EnumAttributeValidator.new('String', ["smart", "baseline"])
355
364
  return false unless encoding_tier_validator.valid?(@encoding_tier)
365
+ video_quality_validator = EnumAttributeValidator.new('String', ["basic", "plus"])
366
+ return false unless video_quality_validator.valid?(@video_quality)
356
367
  master_access_validator = EnumAttributeValidator.new('String', ["temporary", "none"])
357
368
  return false unless master_access_validator.valid?(@master_access)
358
369
  mp4_support_validator = EnumAttributeValidator.new('String', ["standard", "none", "capped-1080p", "audio-only", "audio-only,capped-1080p"])
@@ -412,6 +423,16 @@ module MuxRuby
412
423
  @encoding_tier = encoding_tier
413
424
  end
414
425
 
426
+ # Custom attribute writer method checking allowed values (enum).
427
+ # @param [Object] video_quality Object to be assigned
428
+ def video_quality=(video_quality)
429
+ validator = EnumAttributeValidator.new('String', ["basic", "plus"])
430
+ unless validator.valid?(video_quality)
431
+ fail ArgumentError, "invalid value for \"video_quality\", must be one of #{validator.allowable_values}."
432
+ end
433
+ @video_quality = video_quality
434
+ end
435
+
415
436
  # Custom attribute writer method checking allowed values (enum).
416
437
  # @param [Object] master_access Object to be assigned
417
438
  def master_access=(master_access)
@@ -455,6 +476,7 @@ module MuxRuby
455
476
  resolution_tier == o.resolution_tier &&
456
477
  max_resolution_tier == o.max_resolution_tier &&
457
478
  encoding_tier == o.encoding_tier &&
479
+ video_quality == o.video_quality &&
458
480
  max_stored_frame_rate == o.max_stored_frame_rate &&
459
481
  aspect_ratio == o.aspect_ratio &&
460
482
  playback_ids == o.playback_ids &&
@@ -486,7 +508,7 @@ module MuxRuby
486
508
  # Calculates hash code according to all attributes.
487
509
  # @return [Integer] Hash code
488
510
  def hash
489
- [id, created_at, status, duration, max_stored_resolution, resolution_tier, max_resolution_tier, encoding_tier, max_stored_frame_rate, aspect_ratio, playback_ids, tracks, errors, per_title_encode, upload_id, is_live, passthrough, live_stream_id, master, master_access, mp4_support, source_asset_id, normalize_audio, static_renditions, recording_times, non_standard_input_reasons, test, ingest_type].hash
511
+ [id, created_at, status, duration, max_stored_resolution, resolution_tier, max_resolution_tier, encoding_tier, video_quality, max_stored_frame_rate, aspect_ratio, playback_ids, tracks, errors, per_title_encode, upload_id, is_live, passthrough, live_stream_id, master, master_access, mp4_support, source_asset_id, normalize_audio, static_renditions, recording_times, non_standard_input_reasons, test, ingest_type].hash
490
512
  end
491
513
 
492
514
  # Builds the object from hash
@@ -44,9 +44,12 @@ module MuxRuby
44
44
  # Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`.
45
45
  attr_accessor :max_resolution_tier
46
46
 
47
- # The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the guide for more details.](https://docs.mux.com/guides/use-encoding-tiers)
47
+ # This field is deprecated. Please use `video_quality` instead. The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers)
48
48
  attr_accessor :encoding_tier
49
49
 
50
+ # The video quality controls the cost, quality, and available platform features for the asset. By default the `plus` video quality is used. This field replaces the deprecated `encoding_tier` value. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers)
51
+ attr_accessor :video_quality
52
+
50
53
  class EnumAttributeValidator
51
54
  attr_reader :datatype
52
55
  attr_reader :allowable_values
@@ -82,7 +85,8 @@ module MuxRuby
82
85
  :'master_access' => :'master_access',
83
86
  :'test' => :'test',
84
87
  :'max_resolution_tier' => :'max_resolution_tier',
85
- :'encoding_tier' => :'encoding_tier'
88
+ :'encoding_tier' => :'encoding_tier',
89
+ :'video_quality' => :'video_quality'
86
90
  }
87
91
  end
88
92
 
@@ -104,7 +108,8 @@ module MuxRuby
104
108
  :'master_access' => :'String',
105
109
  :'test' => :'Boolean',
106
110
  :'max_resolution_tier' => :'String',
107
- :'encoding_tier' => :'String'
111
+ :'encoding_tier' => :'String',
112
+ :'video_quality' => :'String'
108
113
  }
109
114
  end
110
115
 
@@ -180,6 +185,10 @@ module MuxRuby
180
185
  if attributes.key?(:'encoding_tier')
181
186
  self.encoding_tier = attributes[:'encoding_tier']
182
187
  end
188
+
189
+ if attributes.key?(:'video_quality')
190
+ self.video_quality = attributes[:'video_quality']
191
+ end
183
192
  end
184
193
 
185
194
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -200,6 +209,8 @@ module MuxRuby
200
209
  return false unless max_resolution_tier_validator.valid?(@max_resolution_tier)
201
210
  encoding_tier_validator = EnumAttributeValidator.new('String', ["smart", "baseline"])
202
211
  return false unless encoding_tier_validator.valid?(@encoding_tier)
212
+ video_quality_validator = EnumAttributeValidator.new('String', ["basic", "plus"])
213
+ return false unless video_quality_validator.valid?(@video_quality)
203
214
  true
204
215
  end
205
216
 
@@ -243,6 +254,16 @@ module MuxRuby
243
254
  @encoding_tier = encoding_tier
244
255
  end
245
256
 
257
+ # Custom attribute writer method checking allowed values (enum).
258
+ # @param [Object] video_quality Object to be assigned
259
+ def video_quality=(video_quality)
260
+ validator = EnumAttributeValidator.new('String', ["basic", "plus"])
261
+ unless validator.valid?(video_quality)
262
+ fail ArgumentError, "invalid value for \"video_quality\", must be one of #{validator.allowable_values}."
263
+ end
264
+ @video_quality = video_quality
265
+ end
266
+
246
267
  # Checks equality by comparing each attribute.
247
268
  # @param [Object] Object to be compared
248
269
  def ==(o)
@@ -258,7 +279,8 @@ module MuxRuby
258
279
  master_access == o.master_access &&
259
280
  test == o.test &&
260
281
  max_resolution_tier == o.max_resolution_tier &&
261
- encoding_tier == o.encoding_tier
282
+ encoding_tier == o.encoding_tier &&
283
+ video_quality == o.video_quality
262
284
  end
263
285
 
264
286
  # @see the `==` method
@@ -270,7 +292,7 @@ module MuxRuby
270
292
  # Calculates hash code according to all attributes.
271
293
  # @return [Integer] Hash code
272
294
  def hash
273
- [input, playback_policy, advanced_playback_policies, per_title_encode, passthrough, mp4_support, normalize_audio, master_access, test, max_resolution_tier, encoding_tier].hash
295
+ [input, playback_policy, advanced_playback_policies, per_title_encode, passthrough, mp4_support, normalize_audio, master_access, test, max_resolution_tier, encoding_tier, video_quality].hash
274
296
  end
275
297
 
276
298
  # Builds the object from hash
@@ -39,9 +39,12 @@ module MuxRuby
39
39
  # The resolution tier that the asset was ingested at, affecting billing for ingest & storage
40
40
  attr_accessor :asset_resolution_tier
41
41
 
42
- # The encoding tier that the asset was ingested at. [See the encoding tiers guide for more details.](https://docs.mux.com/guides/use-encoding-tiers)
42
+ # This field is deprecated. Please use `asset_video_quality` instead. The encoding tier that the asset was ingested at. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers)
43
43
  attr_accessor :asset_encoding_tier
44
44
 
45
+ # The video quality that the asset was ingested at. This field replaces `asset_encoding_tier`. [See the video quality guide for more details.](https://docs.mux.com/guides/use-encoding-tiers)
46
+ attr_accessor :asset_video_quality
47
+
45
48
  # Total number of delivered seconds during this time window.
46
49
  attr_accessor :delivered_seconds
47
50
 
@@ -81,6 +84,7 @@ module MuxRuby
81
84
  :'asset_duration' => :'asset_duration',
82
85
  :'asset_resolution_tier' => :'asset_resolution_tier',
83
86
  :'asset_encoding_tier' => :'asset_encoding_tier',
87
+ :'asset_video_quality' => :'asset_video_quality',
84
88
  :'delivered_seconds' => :'delivered_seconds',
85
89
  :'delivered_seconds_by_resolution' => :'delivered_seconds_by_resolution'
86
90
  }
@@ -103,6 +107,7 @@ module MuxRuby
103
107
  :'asset_duration' => :'Float',
104
108
  :'asset_resolution_tier' => :'String',
105
109
  :'asset_encoding_tier' => :'String',
110
+ :'asset_video_quality' => :'String',
106
111
  :'delivered_seconds' => :'Float',
107
112
  :'delivered_seconds_by_resolution' => :'DeliveryReportDeliveredSecondsByResolution'
108
113
  }
@@ -165,6 +170,10 @@ module MuxRuby
165
170
  self.asset_encoding_tier = attributes[:'asset_encoding_tier']
166
171
  end
167
172
 
173
+ if attributes.key?(:'asset_video_quality')
174
+ self.asset_video_quality = attributes[:'asset_video_quality']
175
+ end
176
+
168
177
  if attributes.key?(:'delivered_seconds')
169
178
  self.delivered_seconds = attributes[:'delivered_seconds']
170
179
  end
@@ -190,6 +199,8 @@ module MuxRuby
190
199
  return false unless asset_resolution_tier_validator.valid?(@asset_resolution_tier)
191
200
  asset_encoding_tier_validator = EnumAttributeValidator.new('String', ["smart", "baseline"])
192
201
  return false unless asset_encoding_tier_validator.valid?(@asset_encoding_tier)
202
+ asset_video_quality_validator = EnumAttributeValidator.new('String', ["basic", "plus"])
203
+ return false unless asset_video_quality_validator.valid?(@asset_video_quality)
193
204
  true
194
205
  end
195
206
 
@@ -223,6 +234,16 @@ module MuxRuby
223
234
  @asset_encoding_tier = asset_encoding_tier
224
235
  end
225
236
 
237
+ # Custom attribute writer method checking allowed values (enum).
238
+ # @param [Object] asset_video_quality Object to be assigned
239
+ def asset_video_quality=(asset_video_quality)
240
+ validator = EnumAttributeValidator.new('String', ["basic", "plus"])
241
+ unless validator.valid?(asset_video_quality)
242
+ fail ArgumentError, "invalid value for \"asset_video_quality\", must be one of #{validator.allowable_values}."
243
+ end
244
+ @asset_video_quality = asset_video_quality
245
+ end
246
+
226
247
  # Checks equality by comparing each attribute.
227
248
  # @param [Object] Object to be compared
228
249
  def ==(o)
@@ -237,6 +258,7 @@ module MuxRuby
237
258
  asset_duration == o.asset_duration &&
238
259
  asset_resolution_tier == o.asset_resolution_tier &&
239
260
  asset_encoding_tier == o.asset_encoding_tier &&
261
+ asset_video_quality == o.asset_video_quality &&
240
262
  delivered_seconds == o.delivered_seconds &&
241
263
  delivered_seconds_by_resolution == o.delivered_seconds_by_resolution
242
264
  end
@@ -250,7 +272,7 @@ module MuxRuby
250
272
  # Calculates hash code according to all attributes.
251
273
  # @return [Integer] Hash code
252
274
  def hash
253
- [live_stream_id, asset_id, passthrough, created_at, deleted_at, asset_state, asset_duration, asset_resolution_tier, asset_encoding_tier, delivered_seconds, delivered_seconds_by_resolution].hash
275
+ [live_stream_id, asset_id, passthrough, created_at, deleted_at, asset_state, asset_duration, asset_resolution_tier, asset_encoding_tier, asset_video_quality, delivered_seconds, delivered_seconds_by_resolution].hash
254
276
  end
255
277
 
256
278
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 5.0.1
11
11
  =end
12
12
 
13
13
  module MuxRuby
14
- VERSION = '3.17.0'
14
+ VERSION = '3.18.0'
15
15
  end
@@ -1,12 +1,12 @@
1
1
  current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
2
- /opt/hostedtoolcache/Ruby/3.2.4/x64/bin/ruby extconf.rb
2
+ /opt/hostedtoolcache/Ruby/3.2.5/x64/bin/ruby extconf.rb
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
6
- make DESTDIR\= sitearchdir\=./.gem.20240701-1744-yn3vqw sitelibdir\=./.gem.20240701-1744-yn3vqw clean
6
+ make DESTDIR\= sitearchdir\=./.gem.20240829-1813-3l21j2 sitelibdir\=./.gem.20240829-1813-3l21j2 clean
7
7
 
8
8
  current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
9
- make DESTDIR\= sitearchdir\=./.gem.20240701-1744-yn3vqw sitelibdir\=./.gem.20240701-1744-yn3vqw
9
+ make DESTDIR\= sitearchdir\=./.gem.20240829-1813-3l21j2 sitelibdir\=./.gem.20240829-1813-3l21j2
10
10
  compiling breakpoint.c
11
11
  compiling byebug.c
12
12
  byebug.c: In function ‘check_started’:
@@ -35,8 +35,8 @@ compiling threads.c
35
35
  linking shared-object byebug/byebug.so
36
36
 
37
37
  current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
38
- make DESTDIR\= sitearchdir\=./.gem.20240701-1744-yn3vqw sitelibdir\=./.gem.20240701-1744-yn3vqw install
39
- /usr/bin/install -c -m 0755 byebug.so ./.gem.20240701-1744-yn3vqw/byebug
38
+ make DESTDIR\= sitearchdir\=./.gem.20240829-1813-3l21j2 sitelibdir\=./.gem.20240829-1813-3l21j2 install
39
+ /usr/bin/install -c -m 0755 byebug.so ./.gem.20240829-1813-3l21j2/byebug
40
40
 
41
41
  current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/byebug-11.1.3/ext/byebug
42
- make DESTDIR\= sitearchdir\=./.gem.20240701-1744-yn3vqw sitelibdir\=./.gem.20240701-1744-yn3vqw clean
42
+ make DESTDIR\= sitearchdir\=./.gem.20240829-1813-3l21j2 sitelibdir\=./.gem.20240829-1813-3l21j2 clean
@@ -1,5 +1,5 @@
1
1
  current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/ext/ffi_c
2
- /opt/hostedtoolcache/Ruby/3.2.4/x64/bin/ruby extconf.rb
2
+ /opt/hostedtoolcache/Ruby/3.2.5/x64/bin/ruby extconf.rb
3
3
  checking for ffi_prep_closure_loc() in -lffi... yes
4
4
  checking for ffi_prep_cif_var()... yes
5
5
  checking for ffi_raw_call()... yes
@@ -10,10 +10,10 @@ creating extconf.h
10
10
  creating Makefile
11
11
 
12
12
  current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/ext/ffi_c
13
- make DESTDIR\= sitearchdir\=./.gem.20240701-1744-wyy8t6 sitelibdir\=./.gem.20240701-1744-wyy8t6 clean
13
+ make DESTDIR\= sitearchdir\=./.gem.20240829-1813-xit14j sitelibdir\=./.gem.20240829-1813-xit14j clean
14
14
 
15
15
  current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/ext/ffi_c
16
- make DESTDIR\= sitearchdir\=./.gem.20240701-1744-wyy8t6 sitelibdir\=./.gem.20240701-1744-wyy8t6
16
+ make DESTDIR\= sitearchdir\=./.gem.20240829-1813-xit14j sitelibdir\=./.gem.20240829-1813-xit14j
17
17
  compiling AbstractMemory.c
18
18
  compiling ArrayType.c
19
19
  compiling Buffer.c
@@ -40,8 +40,8 @@ compiling ffi.c
40
40
  linking shared-object ffi_c.so
41
41
 
42
42
  current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/ext/ffi_c
43
- make DESTDIR\= sitearchdir\=./.gem.20240701-1744-wyy8t6 sitelibdir\=./.gem.20240701-1744-wyy8t6 install
44
- /usr/bin/install -c -m 0755 ffi_c.so ./.gem.20240701-1744-wyy8t6
43
+ make DESTDIR\= sitearchdir\=./.gem.20240829-1813-xit14j sitelibdir\=./.gem.20240829-1813-xit14j install
44
+ /usr/bin/install -c -m 0755 ffi_c.so ./.gem.20240829-1813-xit14j
45
45
 
46
46
  current directory: /home/runner/work/mux-ruby/mux-ruby/vendor/bundle/ruby/3.2.0/gems/ffi-1.16.3/ext/ffi_c
47
- make DESTDIR\= sitearchdir\=./.gem.20240701-1744-wyy8t6 sitelibdir\=./.gem.20240701-1744-wyy8t6 clean
47
+ make DESTDIR\= sitearchdir\=./.gem.20240829-1813-xit14j sitelibdir\=./.gem.20240829-1813-xit14j clean