Skip to content

Commit 20e4115

Browse files
authored
v3.17.0 (#81)
* v3.17.0 * try to update ruby gems * nope that did not work * try to lock version of ffi to see if that works for ubuntu 2.7 * try to update gemfile.lock * undo those shenanigans * remove ubuntu-latest 2.7 test
1 parent 14f52d8 commit 20e4115

32 files changed

+1285
-42
lines changed

.github/workflows/ci.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ jobs:
1515
matrix:
1616
os: [ubuntu-latest, macos-latest]
1717
ruby: ['2.7', '3.0', '3.1', '3.2']
18+
exclude:
19+
- os: ubuntu-latest
20+
ruby: '2.7'
1821
runs-on: ${{ matrix.os }}
1922
steps:
2023
- uses: actions/checkout@v3

.openapi-generator/FILES

+12-4
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ docs/CreateTrackResponse.md
3434
docs/CreateTranscriptionVocabularyRequest.md
3535
docs/CreateUploadRequest.md
3636
docs/CreateWebInputRequest.md
37+
docs/DRMConfiguration.md
38+
docs/DRMConfigurationResponse.md
39+
docs/DRMConfigurationsApi.md
3740
docs/DeliveryReport.md
3841
docs/DeliveryReportDeliveredSecondsByResolution.md
3942
docs/DeliveryUsageApi.md
@@ -85,6 +88,7 @@ docs/ListAllMetricValuesResponse.md
8588
docs/ListAssetsResponse.md
8689
docs/ListBreakdownValuesResponse.md
8790
docs/ListBreakdownValuesResponseMeta.md
91+
docs/ListDRMConfigurationsResponse.md
8892
docs/ListDeliveryUsageResponse.md
8993
docs/ListDimensionValuesResponse.md
9094
docs/ListDimensionsResponse.md
@@ -190,6 +194,7 @@ lib/mux_ruby/api/assets_api.rb
190194
lib/mux_ruby/api/delivery_usage_api.rb
191195
lib/mux_ruby/api/dimensions_api.rb
192196
lib/mux_ruby/api/direct_uploads_api.rb
197+
lib/mux_ruby/api/drm_configurations_api.rb
193198
lib/mux_ruby/api/errors_api.rb
194199
lib/mux_ruby/api/exports_api.rb
195200
lib/mux_ruby/api/filters_api.rb
@@ -243,6 +248,8 @@ lib/mux_ruby/models/delivery_report.rb
243248
lib/mux_ruby/models/delivery_report_delivered_seconds_by_resolution.rb
244249
lib/mux_ruby/models/dimension_value.rb
245250
lib/mux_ruby/models/disable_live_stream_response.rb
251+
lib/mux_ruby/models/drm_configuration.rb
252+
lib/mux_ruby/models/drm_configuration_response.rb
246253
lib/mux_ruby/models/enable_live_stream_response.rb
247254
lib/mux_ruby/models/error.rb
248255
lib/mux_ruby/models/export_date.rb
@@ -286,6 +293,7 @@ lib/mux_ruby/models/list_breakdown_values_response_meta.rb
286293
lib/mux_ruby/models/list_delivery_usage_response.rb
287294
lib/mux_ruby/models/list_dimension_values_response.rb
288295
lib/mux_ruby/models/list_dimensions_response.rb
296+
lib/mux_ruby/models/list_drm_configurations_response.rb
289297
lib/mux_ruby/models/list_errors_response.rb
290298
lib/mux_ruby/models/list_exports_response.rb
291299
lib/mux_ruby/models/list_filter_values_response.rb
@@ -373,10 +381,10 @@ lib/mux_ruby/models/web_input.rb
373381
lib/mux_ruby/models/web_input_response.rb
374382
lib/mux_ruby/version.rb
375383
mux_ruby.gemspec
384+
spec/api/drm_configurations_api_spec.rb
376385
spec/api_client_spec.rb
377386
spec/configuration_spec.rb
378-
spec/models/update_live_stream_new_asset_settings_spec.rb
379-
spec/models/update_user_agent_restriction_request_spec.rb
380-
spec/models/user_agent_restriction_request_spec.rb
381-
spec/models/user_agent_restriction_settings_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
382390
spec/spec_helper.rb

Gemfile.lock

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

77
GEM

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.16.0
26+
- Package version: 3.17.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.16.0.gem
43+
gem install ./mux_ruby-3.17.0.gem
4444
```
4545

46-
(for development, run `gem install --dev ./mux_ruby-3.16.0.gem` to install the development dependencies)
46+
(for development, run `gem install --dev ./mux_ruby-3.17.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.16.0'
52+
gem 'mux_ruby', '~> 3.17.0'
5353

5454
### Install from Git
5555

docs/CreateAssetRequest.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
77
| **input** | [**Array<InputSettings>**](InputSettings.md) | An array of objects that each describe an input file to be used to create the asset. As a shortcut, input can also be a string URL for a file when only one input file is used. See `input[].url` for requirements. | [optional] |
8-
| **playback_policy** | [**Array<PlaybackPolicy>**](PlaybackPolicy.md) | An array of playback policy names that you want applied to this asset and available through `playback_ids`. Options include: `\"public\"` (anyone with the playback URL can stream the asset). And `\"signed\"` (an additional access token is required to play the asset). If no playback_policy is set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. | [optional] |
8+
| **playback_policy** | [**Array<PlaybackPolicy>**](PlaybackPolicy.md) | An array of playback policy names that you want applied to this asset and available through `playback_ids`. Options include: * `\"public\"` (anyone with the playback URL can stream the asset). * `\"signed\"` (an additional access token is required to play the asset). If no `playback_policy` is set, the asset will have no playback IDs and will therefore not be playable. For simplicity, a single string name can be used in place of the array in the case of only one playback policy. | [optional] |
9+
| **advanced_playback_policies** | [**Array<CreatePlaybackIDRequest>**](CreatePlaybackIDRequest.md) | An array of playback policy objects that you want applied to this asset and available through `playback_ids`. `advanced_playback_policies` must be used instead of `playback_policy` when creating a DRM playback ID. | [optional] |
910
| **per_title_encode** | **Boolean** | | [optional] |
1011
| **passthrough** | **String** | Arbitrary user-supplied metadata that will be included in the asset details and related webhooks. Can be used to store your own ID for a video along with the asset. **Max: 255 characters**. | [optional] |
1112
| **mp4_support** | **String** | Specify what level of support for mp4 playback. * The `capped-1080p` option produces a single MP4 file, called `capped-1080p.mp4`, with the video resolution capped at 1080p. This option produces an `audio.m4a` file for an audio-only asset. * The `audio-only` option produces a single M4A file, called `audio.m4a` for a video or an audio-only asset. MP4 generation will error when this option is specified for a video-only asset. * The `audio-only,capped-1080p` option produces both the `audio.m4a` and `capped-1080p.mp4` files. Only the `capped-1080p.mp4` file is produced for a video-only asset, while only the `audio.m4a` file is produced for an audio-only asset. The `standard`(deprecated) option produces up to three MP4 files with different levels of resolution (`high.mp4`, `medium.mp4`, `low.mp4`, or `audio.m4a` for an audio-only asset). MP4 files are not produced for `none` (default). In most cases you should use our default HLS-based streaming playback (`{playback_id}.m3u8`) which can automatically adjust to viewers' connection speeds, but an mp4 can be useful for some legacy devices or downloading for offline playback. See the [Download your videos guide](https://docs.mux.com/guides/enable-static-mp4-renditions) for more information. | [optional] |
@@ -23,6 +24,7 @@ require 'mux_ruby'
2324
instance = MuxRuby::CreateAssetRequest.new(
2425
input: null,
2526
playback_policy: null,
27+
advanced_playback_policies: null,
2628
per_title_encode: null,
2729
passthrough: null,
2830
mp4_support: null,

docs/CreateLiveStreamRequest.md

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
77
| **playback_policy** | [**Array<PlaybackPolicy>**](PlaybackPolicy.md) | | [optional] |
8+
| **advanced_playback_policies** | [**Array<CreatePlaybackIDRequest>**](CreatePlaybackIDRequest.md) | An array of playback policy objects that you want applied to this asset and available through `playback_ids`. `advanced_playback_policies` must be used instead of `playback_policy` when creating a DRM playback ID. | [optional] |
89
| **new_asset_settings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | [optional] |
910
| **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. Defaults to 60 seconds on the API if not specified. If not specified directly, Standard Latency streams have a Reconnect Window of 60 seconds; Reduced and Low Latency streams have a default of 0 seconds, or no Reconnect Window. For that reason, we suggest specifying a value other than zero for Reduced and Low Latency streams. Reduced and Low Latency streams with a Reconnect Window greater than zero will insert slate media into the recorded asset while waiting for the streaming software to reconnect or when there are brief interruptions in the live stream media. When using a Reconnect Window setting higher than 60 seconds with a Standard Latency stream, we highly recommend enabling slate with the `use_slate_for_standard_latency` option. | [optional][default to 60] |
1011
| **use_slate_for_standard_latency** | **Boolean** | By default, Standard Latency live streams do not have slate media inserted while waiting for live streaming software to reconnect to Mux. Setting this to true enables slate insertion on a Standard Latency stream. | [optional][default to false] |
@@ -27,6 +28,7 @@ require 'mux_ruby'
2728

2829
instance = MuxRuby::CreateLiveStreamRequest.new(
2930
playback_policy: null,
31+
advanced_playback_policies: null,
3032
new_asset_settings: null,
3133
reconnect_window: null,
3234
use_slate_for_standard_latency: null,

docs/CreatePlaybackIDRequest.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
| Name | Type | Description | Notes |
66
| ---- | ---- | ----------- | ----- |
77
| **policy** | [**PlaybackPolicy**](PlaybackPolicy.md) | | [optional] |
8+
| **drm_configuration_id** | **String** | The DRM configuration used by this playback ID. Must only be set when `policy` is set to `drm`. | [optional] |
89

910
## Example
1011

1112
```ruby
1213
require 'mux_ruby'
1314

1415
instance = MuxRuby::CreatePlaybackIDRequest.new(
15-
policy: null
16+
policy: null,
17+
drm_configuration_id: null
1618
)
1719
```
1820

docs/CreateUploadRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
| **timeout** | **Integer** | Max time in seconds for the signed upload URL to be valid. If a successful upload has not occurred before the timeout limit, the direct upload is marked `timed_out` | [optional][default to 3600] |
88
| **cors_origin** | **String** | If the upload URL will be used in a browser, you must specify the origin in order for the signed URL to have the correct CORS headers. | [optional] |
99
| **new_asset_settings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | [optional] |
10-
| **test** | **Boolean** | | [optional] |
10+
| **test** | **Boolean** | Indicates if this is a test Direct Upload, in which case the Asset that gets created will be a `test` Asset. | [optional] |
1111

1212
## Example
1313

docs/DRMConfiguration.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# MuxRuby::DRMConfiguration
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **id** | **String** | Unique identifier for the DRM Configuration. Max 255 characters. | [optional] |
8+
9+
## Example
10+
11+
```ruby
12+
require 'mux_ruby'
13+
14+
instance = MuxRuby::DRMConfiguration.new(
15+
id: null
16+
)
17+
```
18+

docs/DRMConfigurationResponse.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# MuxRuby::DRMConfigurationResponse
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **data** | [**DRMConfiguration**](DRMConfiguration.md) | | [optional] |
8+
9+
## Example
10+
11+
```ruby
12+
require 'mux_ruby'
13+
14+
instance = MuxRuby::DRMConfigurationResponse.new(
15+
data: null
16+
)
17+
```
18+

docs/DRMConfigurationsApi.md

+153
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
# MuxRuby::DRMConfigurationsApi
2+
3+
All URIs are relative to *https://api.mux.com*
4+
5+
| Method | HTTP request | Description |
6+
| ------ | ------------ | ----------- |
7+
| [**get_drm_configuration**](DRMConfigurationsApi.md#get_drm_configuration) | **GET** /video/v1/drm-configurations/{DRM_CONFIGURATION_ID} | Retrieve a DRM Configuration |
8+
| [**list_drm_configurations**](DRMConfigurationsApi.md#list_drm_configurations) | **GET** /video/v1/drm-configurations | List DRM Configurations |
9+
10+
11+
## get_drm_configuration
12+
13+
> <DRMConfigurationResponse> get_drm_configuration(drm_configuration_id)
14+
15+
Retrieve a DRM Configuration
16+
17+
Retrieves a single DRM Configuration.
18+
19+
### Examples
20+
21+
```ruby
22+
require 'time'
23+
require 'mux_ruby'
24+
# setup authorization
25+
MuxRuby.configure do |config|
26+
# Configure HTTP basic authorization: accessToken
27+
config.username = 'YOUR USERNAME'
28+
config.password = 'YOUR PASSWORD'
29+
end
30+
31+
api_instance = MuxRuby::DRMConfigurationsApi.new
32+
drm_configuration_id = 'drm_configuration_id_example' # String | The DRM Configuration ID.
33+
34+
begin
35+
# Retrieve a DRM Configuration
36+
result = api_instance.get_drm_configuration(drm_configuration_id)
37+
p result
38+
rescue MuxRuby::ApiError => e
39+
puts "Error when calling DRMConfigurationsApi->get_drm_configuration: #{e}"
40+
end
41+
```
42+
43+
#### Using the get_drm_configuration_with_http_info variant
44+
45+
This returns an Array which contains the response data, status code and headers.
46+
47+
> <Array(<DRMConfigurationResponse>, Integer, Hash)> get_drm_configuration_with_http_info(drm_configuration_id)
48+
49+
```ruby
50+
begin
51+
# Retrieve a DRM Configuration
52+
data, status_code, headers = api_instance.get_drm_configuration_with_http_info(drm_configuration_id)
53+
p status_code # => 2xx
54+
p headers # => { ... }
55+
p data # => <DRMConfigurationResponse>
56+
rescue MuxRuby::ApiError => e
57+
puts "Error when calling DRMConfigurationsApi->get_drm_configuration_with_http_info: #{e}"
58+
end
59+
```
60+
61+
### Parameters
62+
63+
| Name | Type | Description | Notes |
64+
| ---- | ---- | ----------- | ----- |
65+
| **drm_configuration_id** | **String** | The DRM Configuration ID. | |
66+
67+
### Return type
68+
69+
[**DRMConfigurationResponse**](DRMConfigurationResponse.md)
70+
71+
### Authorization
72+
73+
[accessToken](../README.md#accessToken)
74+
75+
### HTTP request headers
76+
77+
- **Content-Type**: Not defined
78+
- **Accept**: application/json
79+
80+
81+
## list_drm_configurations
82+
83+
> <ListDRMConfigurationsResponse> list_drm_configurations(opts)
84+
85+
List DRM Configurations
86+
87+
Returns a list of DRM Configurations
88+
89+
### Examples
90+
91+
```ruby
92+
require 'time'
93+
require 'mux_ruby'
94+
# setup authorization
95+
MuxRuby.configure do |config|
96+
# Configure HTTP basic authorization: accessToken
97+
config.username = 'YOUR USERNAME'
98+
config.password = 'YOUR PASSWORD'
99+
end
100+
101+
api_instance = MuxRuby::DRMConfigurationsApi.new
102+
opts = {
103+
page: 56, # Integer | Offset by this many pages, of the size of `limit`
104+
limit: 56 # Integer | Number of items to include in the response
105+
}
106+
107+
begin
108+
# List DRM Configurations
109+
result = api_instance.list_drm_configurations(opts)
110+
p result
111+
rescue MuxRuby::ApiError => e
112+
puts "Error when calling DRMConfigurationsApi->list_drm_configurations: #{e}"
113+
end
114+
```
115+
116+
#### Using the list_drm_configurations_with_http_info variant
117+
118+
This returns an Array which contains the response data, status code and headers.
119+
120+
> <Array(<ListDRMConfigurationsResponse>, Integer, Hash)> list_drm_configurations_with_http_info(opts)
121+
122+
```ruby
123+
begin
124+
# List DRM Configurations
125+
data, status_code, headers = api_instance.list_drm_configurations_with_http_info(opts)
126+
p status_code # => 2xx
127+
p headers # => { ... }
128+
p data # => <ListDRMConfigurationsResponse>
129+
rescue MuxRuby::ApiError => e
130+
puts "Error when calling DRMConfigurationsApi->list_drm_configurations_with_http_info: #{e}"
131+
end
132+
```
133+
134+
### Parameters
135+
136+
| Name | Type | Description | Notes |
137+
| ---- | ---- | ----------- | ----- |
138+
| **page** | **Integer** | Offset by this many pages, of the size of &#x60;limit&#x60; | [optional][default to 1] |
139+
| **limit** | **Integer** | Number of items to include in the response | [optional][default to 25] |
140+
141+
### Return type
142+
143+
[**ListDRMConfigurationsResponse**](ListDRMConfigurationsResponse.md)
144+
145+
### Authorization
146+
147+
[accessToken](../README.md#accessToken)
148+
149+
### HTTP request headers
150+
151+
- **Content-Type**: Not defined
152+
- **Accept**: application/json
153+

docs/ListDRMConfigurationsResponse.md

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# MuxRuby::ListDRMConfigurationsResponse
2+
3+
## Properties
4+
5+
| Name | Type | Description | Notes |
6+
| ---- | ---- | ----------- | ----- |
7+
| **data** | [**Array&lt;DRMConfiguration&gt;**](DRMConfiguration.md) | | [optional] |
8+
9+
## Example
10+
11+
```ruby
12+
require 'mux_ruby'
13+
14+
instance = MuxRuby::ListDRMConfigurationsResponse.new(
15+
data: null
16+
)
17+
```
18+

0 commit comments

Comments
 (0)