Skip to content

Commit a30bf35

Browse files
authored
3.18.0 (#83)
* 3.18.0 * fix typo, but in both places * try to update jaro_winkler * typo in gemfile * try jaro-winkler 1.5.6 * undo tool-versions change
1 parent bbe00f7 commit a30bf35

13 files changed

+96
-26
lines changed

.openapi-generator/FILES

-4
Original file line numberDiff line numberDiff line change
@@ -381,10 +381,6 @@ lib/mux_ruby/models/web_input.rb
381381
lib/mux_ruby/models/web_input_response.rb
382382
lib/mux_ruby/version.rb
383383
mux_ruby.gemspec
384-
spec/api/drm_configurations_api_spec.rb
385384
spec/api_client_spec.rb
386385
spec/configuration_spec.rb
387-
spec/models/drm_configuration_response_spec.rb
388-
spec/models/drm_configuration_spec.rb
389-
spec/models/list_drm_configurations_response_spec.rb
390386
spec/spec_helper.rb

Gemfile

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ group :development, :test do
66
gem 'rake', '~> 13.0.1'
77
gem 'pry-byebug'
88
gem 'rubocop', '~> 0.66.0'
9+
gem 'jaro_winkler', '~>1.5.6'
910

1011
gem 'solid_assert'
1112
end

Gemfile.lock

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
mux_ruby (3.17.0)
4+
mux_ruby (3.18.0)
55
typhoeus (~> 1.0, >= 1.0.1)
66

77
GEM
@@ -14,7 +14,7 @@ GEM
1414
ethon (0.16.0)
1515
ffi (>= 1.15.0)
1616
ffi (1.16.3)
17-
jaro_winkler (1.5.4)
17+
jaro_winkler (1.5.6)
1818
method_source (1.0.0)
1919
parallel (1.22.1)
2020
parser (3.1.2.0)
@@ -61,6 +61,7 @@ PLATFORMS
6161
ruby
6262

6363
DEPENDENCIES
64+
jaro_winkler (~> 1.5.6)
6465
mux_ruby!
6566
pry-byebug
6667
rake (~> 13.0.1)

README.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ Not familiar with Mux? Check out https://mux.com/ for more information.
2323
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
2424

2525
- API version: v1
26-
- Package version: 3.17.0
26+
- Package version: 3.18.0
2727
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
2828
For more information, please visit [https://docs.mux.com](https://docs.mux.com)
2929

@@ -40,16 +40,16 @@ gem build mux_ruby.gemspec
4040
Then either install the gem locally:
4141

4242
```shell
43-
gem install ./mux_ruby-3.17.0.gem
43+
gem install ./mux_ruby-3.18.0.gem
4444
```
4545

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)
4747

4848
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
4949

5050
Finally add this to the Gemfile:
5151

52-
gem 'mux_ruby', '~> 3.17.0'
52+
gem 'mux_ruby', '~> 3.18.0'
5353

5454
### Install from Git
5555

docs/Asset.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
| **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] |
1212
| **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] |
1313
| **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] |
1516
| **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] |
1617
| **aspect_ratio** | **String** | The aspect ratio of the asset in the form of `width:height`, for example `16:9`. | [optional] |
1718
| **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(
4748
resolution_tier: null,
4849
max_resolution_tier: null,
4950
encoding_tier: null,
51+
video_quality: null,
5052
max_stored_frame_rate: null,
5153
aspect_ratio: null,
5254
playback_ids: null,

docs/CreateAssetRequest.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414
| **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] |
1515
| **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] |
1616
| **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] |
1819

1920
## Example
2021

@@ -32,7 +33,8 @@ instance = MuxRuby::CreateAssetRequest.new(
3233
master_access: null,
3334
test: null,
3435
max_resolution_tier: null,
35-
encoding_tier: null
36+
encoding_tier: null,
37+
video_quality: null
3638
)
3739
```
3840

docs/DeliveryReport.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
| **asset_state** | **String** | The state of the asset. | [optional] |
1313
| **asset_duration** | **Float** | The duration of the asset in seconds. | [optional] |
1414
| **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] |
1617
| **delivered_seconds** | **Float** | Total number of delivered seconds during this time window. | [optional] |
1718
| **delivered_seconds_by_resolution** | [**DeliveryReportDeliveredSecondsByResolution**](DeliveryReportDeliveredSecondsByResolution.md) | | [optional] |
1819

@@ -31,6 +32,7 @@ instance = MuxRuby::DeliveryReport.new(
3132
asset_duration: null,
3233
asset_resolution_tier: null,
3334
asset_encoding_tier: null,
35+
asset_video_quality: null,
3436
delivered_seconds: null,
3537
delivered_seconds_by_resolution: null
3638
)

gen/generator-config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
"gemSourceLocation": "https://github.com/muxinc/mux-ruby",
99
"gemLicense": "MIT",
1010
"moduleName": "MuxRuby",
11-
"gemVersion": "3.17.0"
11+
"gemVersion": "3.18.0"
1212
}

gen/templates/README.mustache

+1-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ Its up to you to manage your token and secret. In our examples, we read them fro
8888
### Example Usage
8989
Below is a quick example of using Mux Ruby to list the Video assets stored in your Mux account.
9090

91-
Be sure to also checkout the [exmples directory](examples/):
91+
Be sure to also checkout the [examples directory](examples/):
9292
* [List Assets, Live Streams, Signing Keys, and Uploads.](examples/video/list-everything.rb)
9393
* [Create an Asset, wait for it to become availiable, and print its playback URL](examples/video/ingest.rb)
9494
* [Create a new Live Stream and retrieve its Stream key.](examples/video/create-live-stream.rb)

lib/mux_ruby/models/asset.rb

+24-2
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,12 @@ class Asset
3636
# 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`.
3737
attr_accessor :max_resolution_tier
3838

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)
4040
attr_accessor :encoding_tier
4141

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+
4245
# 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.
4346
attr_accessor :max_stored_frame_rate
4447

@@ -125,6 +128,7 @@ def self.attribute_map
125128
:'resolution_tier' => :'resolution_tier',
126129
:'max_resolution_tier' => :'max_resolution_tier',
127130
:'encoding_tier' => :'encoding_tier',
131+
:'video_quality' => :'video_quality',
128132
:'max_stored_frame_rate' => :'max_stored_frame_rate',
129133
:'aspect_ratio' => :'aspect_ratio',
130134
:'playback_ids' => :'playback_ids',
@@ -164,6 +168,7 @@ def self.openapi_types
164168
:'resolution_tier' => :'String',
165169
:'max_resolution_tier' => :'String',
166170
:'encoding_tier' => :'String',
171+
:'video_quality' => :'String',
167172
:'max_stored_frame_rate' => :'Float',
168173
:'aspect_ratio' => :'String',
169174
:'playback_ids' => :'Array<PlaybackID>',
@@ -240,6 +245,10 @@ def initialize(attributes = {})
240245
self.encoding_tier = attributes[:'encoding_tier']
241246
end
242247

248+
if attributes.key?(:'video_quality')
249+
self.video_quality = attributes[:'video_quality']
250+
end
251+
243252
if attributes.key?(:'max_stored_frame_rate')
244253
self.max_stored_frame_rate = attributes[:'max_stored_frame_rate']
245254
end
@@ -353,6 +362,8 @@ def valid?
353362
return false unless max_resolution_tier_validator.valid?(@max_resolution_tier)
354363
encoding_tier_validator = EnumAttributeValidator.new('String', ["smart", "baseline"])
355364
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)
356367
master_access_validator = EnumAttributeValidator.new('String', ["temporary", "none"])
357368
return false unless master_access_validator.valid?(@master_access)
358369
mp4_support_validator = EnumAttributeValidator.new('String', ["standard", "none", "capped-1080p", "audio-only", "audio-only,capped-1080p"])
@@ -412,6 +423,16 @@ def encoding_tier=(encoding_tier)
412423
@encoding_tier = encoding_tier
413424
end
414425

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+
415436
# Custom attribute writer method checking allowed values (enum).
416437
# @param [Object] master_access Object to be assigned
417438
def master_access=(master_access)
@@ -455,6 +476,7 @@ def ==(o)
455476
resolution_tier == o.resolution_tier &&
456477
max_resolution_tier == o.max_resolution_tier &&
457478
encoding_tier == o.encoding_tier &&
479+
video_quality == o.video_quality &&
458480
max_stored_frame_rate == o.max_stored_frame_rate &&
459481
aspect_ratio == o.aspect_ratio &&
460482
playback_ids == o.playback_ids &&
@@ -486,7 +508,7 @@ def eql?(o)
486508
# Calculates hash code according to all attributes.
487509
# @return [Integer] Hash code
488510
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
490512
end
491513

492514
# Builds the object from hash

lib/mux_ruby/models/create_asset_request.rb

+27-5
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,12 @@ class CreateAssetRequest
4444
# 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`.
4545
attr_accessor :max_resolution_tier
4646

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)
4848
attr_accessor :encoding_tier
4949

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+
5053
class EnumAttributeValidator
5154
attr_reader :datatype
5255
attr_reader :allowable_values
@@ -82,7 +85,8 @@ def self.attribute_map
8285
:'master_access' => :'master_access',
8386
:'test' => :'test',
8487
:'max_resolution_tier' => :'max_resolution_tier',
85-
:'encoding_tier' => :'encoding_tier'
88+
:'encoding_tier' => :'encoding_tier',
89+
:'video_quality' => :'video_quality'
8690
}
8791
end
8892

@@ -104,7 +108,8 @@ def self.openapi_types
104108
:'master_access' => :'String',
105109
:'test' => :'Boolean',
106110
:'max_resolution_tier' => :'String',
107-
:'encoding_tier' => :'String'
111+
:'encoding_tier' => :'String',
112+
:'video_quality' => :'String'
108113
}
109114
end
110115

@@ -180,6 +185,10 @@ def initialize(attributes = {})
180185
if attributes.key?(:'encoding_tier')
181186
self.encoding_tier = attributes[:'encoding_tier']
182187
end
188+
189+
if attributes.key?(:'video_quality')
190+
self.video_quality = attributes[:'video_quality']
191+
end
183192
end
184193

185194
# Show invalid properties with the reasons. Usually used together with valid?
@@ -200,6 +209,8 @@ def valid?
200209
return false unless max_resolution_tier_validator.valid?(@max_resolution_tier)
201210
encoding_tier_validator = EnumAttributeValidator.new('String', ["smart", "baseline"])
202211
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)
203214
true
204215
end
205216

@@ -243,6 +254,16 @@ def encoding_tier=(encoding_tier)
243254
@encoding_tier = encoding_tier
244255
end
245256

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+
246267
# Checks equality by comparing each attribute.
247268
# @param [Object] Object to be compared
248269
def ==(o)
@@ -258,7 +279,8 @@ def ==(o)
258279
master_access == o.master_access &&
259280
test == o.test &&
260281
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
262284
end
263285

264286
# @see the `==` method
@@ -270,7 +292,7 @@ def eql?(o)
270292
# Calculates hash code according to all attributes.
271293
# @return [Integer] Hash code
272294
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
274296
end
275297

276298
# Builds the object from hash

0 commit comments

Comments
 (0)