Skip to content

Commit 02b8f77

Browse files
authored
v3.17.0 (#81)
* v3.17.0 * conform to user agent style * slightly better template * nah keep it simple
1 parent ef762ab commit 02b8f77

34 files changed

+1275
-39
lines changed

.openapi-generator/FILES

+8-4
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ docs/CreateTrackResponse.md
3131
docs/CreateTranscriptionVocabularyRequest.md
3232
docs/CreateUploadRequest.md
3333
docs/CreateWebInputRequest.md
34+
docs/DRMConfiguration.md
35+
docs/DRMConfigurationResponse.md
36+
docs/DRMConfigurationsApi.md
3437
docs/DeliveryReport.md
3538
docs/DeliveryReportDeliveredSecondsByResolution.md
3639
docs/DeliveryUsageApi.md
@@ -82,6 +85,7 @@ docs/ListAllMetricValuesResponse.md
8285
docs/ListAssetsResponse.md
8386
docs/ListBreakdownValuesResponse.md
8487
docs/ListBreakdownValuesResponseMeta.md
88+
docs/ListDRMConfigurationsResponse.md
8589
docs/ListDeliveryUsageResponse.md
8690
docs/ListDimensionValuesResponse.md
8791
docs/ListDimensionsResponse.md
@@ -188,6 +192,7 @@ mux_python/api/assets_api.py
188192
mux_python/api/delivery_usage_api.py
189193
mux_python/api/dimensions_api.py
190194
mux_python/api/direct_uploads_api.py
195+
mux_python/api/drm_configurations_api.py
191196
mux_python/api/errors_api.py
192197
mux_python/api/exports_api.py
193198
mux_python/api/filters_api.py
@@ -241,6 +246,8 @@ mux_python/models/delivery_report.py
241246
mux_python/models/delivery_report_delivered_seconds_by_resolution.py
242247
mux_python/models/dimension_value.py
243248
mux_python/models/disable_live_stream_response.py
249+
mux_python/models/drm_configuration.py
250+
mux_python/models/drm_configuration_response.py
244251
mux_python/models/enable_live_stream_response.py
245252
mux_python/models/error.py
246253
mux_python/models/export_date.py
@@ -284,6 +291,7 @@ mux_python/models/list_breakdown_values_response_meta.py
284291
mux_python/models/list_delivery_usage_response.py
285292
mux_python/models/list_dimension_values_response.py
286293
mux_python/models/list_dimensions_response.py
294+
mux_python/models/list_drm_configurations_response.py
287295
mux_python/models/list_errors_response.py
288296
mux_python/models/list_exports_response.py
289297
mux_python/models/list_filter_values_response.py
@@ -375,8 +383,4 @@ setup.cfg
375383
setup.py
376384
test-requirements.txt
377385
test/__init__.py
378-
test/test_update_live_stream_new_asset_settings.py
379-
test/test_update_user_agent_restriction_request.py
380-
test/test_user_agent_restriction_request.py
381-
test/test_user_agent_restriction_settings.py
382386
tox.ini

docs/CreateAssetRequest.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**input** | [**list[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]
7-
**playback_policy** | [**list[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]
7+
**playback_policy** | [**list[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]
8+
**advanced_playback_policies** | [**list[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
**per_title_encode** | **bool** | | [optional]
910
**passthrough** | **str** | 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]
1011
**mp4_support** | **str** | 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]

docs/CreateLiveStreamRequest.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**playback_policy** | [**list[PlaybackPolicy]**](PlaybackPolicy.md) | | [optional]
7+
**advanced_playback_policies** | [**list[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]
78
**new_asset_settings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | [optional]
89
**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]
910
**use_slate_for_standard_latency** | **bool** | 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]

docs/CreatePlaybackIDRequest.md

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
66
**policy** | [**PlaybackPolicy**](PlaybackPolicy.md) | | [optional]
7+
**drm_configuration_id** | **str** | The DRM configuration used by this playback ID. Must only be set when `policy` is set to `drm`. | [optional]
78

89
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
910

docs/CreateUploadRequest.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
**timeout** | **int** | 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]
77
**cors_origin** | **str** | 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]
88
**new_asset_settings** | [**CreateAssetRequest**](CreateAssetRequest.md) | | [optional]
9-
**test** | **bool** | | [optional]
9+
**test** | **bool** | Indicates if this is a test Direct Upload, in which case the Asset that gets created will be a `test` Asset. | [optional]
1010

1111
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
1212

docs/DRMConfiguration.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# DRMConfiguration
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**id** | **str** | Unique identifier for the DRM Configuration. Max 255 characters. | [optional]
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+
10+

docs/DRMConfigurationResponse.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# DRMConfigurationResponse
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**data** | [**DRMConfiguration**](DRMConfiguration.md) | | [optional]
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+
10+

docs/DRMConfigurationsApi.md

+158
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
# mux_python.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+
> DRMConfigurationResponse get_drm_configuration(drm_configuration_id)
13+
14+
Retrieve a DRM Configuration
15+
16+
Retrieves a single DRM Configuration.
17+
18+
### Example
19+
20+
* Basic Authentication (accessToken):
21+
```python
22+
from __future__ import print_function
23+
import time
24+
import mux_python
25+
from mux_python.rest import ApiException
26+
from pprint import pprint
27+
# Defining the host is optional and defaults to https://api.mux.com
28+
# See configuration.py for a list of all supported configuration parameters.
29+
configuration = mux_python.Configuration(
30+
host = "https://api.mux.com"
31+
)
32+
33+
# The client must configure the authentication and authorization parameters
34+
# in accordance with the API server security policy.
35+
# Examples for each auth method are provided below, use the example that
36+
# satisfies your auth use case.
37+
38+
# Configure HTTP basic authorization: accessToken
39+
configuration = mux_python.Configuration(
40+
username = 'YOUR_USERNAME',
41+
password = 'YOUR_PASSWORD'
42+
)
43+
44+
# Enter a context with an instance of the API client
45+
with mux_python.ApiClient(configuration) as api_client:
46+
# Create an instance of the API class
47+
api_instance = mux_python.DRMConfigurationsApi(api_client)
48+
drm_configuration_id = 'drm_configuration_id_example' # str | The DRM Configuration ID.
49+
50+
try:
51+
# Retrieve a DRM Configuration
52+
api_response = api_instance.get_drm_configuration(drm_configuration_id)
53+
pprint(api_response)
54+
except ApiException as e:
55+
print("Exception when calling DRMConfigurationsApi->get_drm_configuration: %s\n" % e)
56+
```
57+
58+
### Parameters
59+
60+
Name | Type | Description | Notes
61+
------------- | ------------- | ------------- | -------------
62+
**drm_configuration_id** | **str**| The DRM Configuration ID. |
63+
64+
### Return type
65+
66+
[**DRMConfigurationResponse**](DRMConfigurationResponse.md)
67+
68+
### Authorization
69+
70+
[accessToken](../README.md#accessToken)
71+
72+
### HTTP request headers
73+
74+
- **Content-Type**: Not defined
75+
- **Accept**: application/json
76+
77+
### HTTP response details
78+
| Status code | Description | Response headers |
79+
|-------------|-------------|------------------|
80+
**200** | OK | - |
81+
82+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
83+
84+
# **list_drm_configurations**
85+
> ListDRMConfigurationsResponse list_drm_configurations(page=page, limit=limit)
86+
87+
List DRM Configurations
88+
89+
Returns a list of DRM Configurations
90+
91+
### Example
92+
93+
* Basic Authentication (accessToken):
94+
```python
95+
from __future__ import print_function
96+
import time
97+
import mux_python
98+
from mux_python.rest import ApiException
99+
from pprint import pprint
100+
# Defining the host is optional and defaults to https://api.mux.com
101+
# See configuration.py for a list of all supported configuration parameters.
102+
configuration = mux_python.Configuration(
103+
host = "https://api.mux.com"
104+
)
105+
106+
# The client must configure the authentication and authorization parameters
107+
# in accordance with the API server security policy.
108+
# Examples for each auth method are provided below, use the example that
109+
# satisfies your auth use case.
110+
111+
# Configure HTTP basic authorization: accessToken
112+
configuration = mux_python.Configuration(
113+
username = 'YOUR_USERNAME',
114+
password = 'YOUR_PASSWORD'
115+
)
116+
117+
# Enter a context with an instance of the API client
118+
with mux_python.ApiClient(configuration) as api_client:
119+
# Create an instance of the API class
120+
api_instance = mux_python.DRMConfigurationsApi(api_client)
121+
page = 1 # int | Offset by this many pages, of the size of `limit` (optional) (default to 1)
122+
limit = 25 # int | Number of items to include in the response (optional) (default to 25)
123+
124+
try:
125+
# List DRM Configurations
126+
api_response = api_instance.list_drm_configurations(page=page, limit=limit)
127+
pprint(api_response)
128+
except ApiException as e:
129+
print("Exception when calling DRMConfigurationsApi->list_drm_configurations: %s\n" % e)
130+
```
131+
132+
### Parameters
133+
134+
Name | Type | Description | Notes
135+
------------- | ------------- | ------------- | -------------
136+
**page** | **int**| Offset by this many pages, of the size of `limit` | [optional] [default to 1]
137+
**limit** | **int**| Number of items to include in the response | [optional] [default to 25]
138+
139+
### Return type
140+
141+
[**ListDRMConfigurationsResponse**](ListDRMConfigurationsResponse.md)
142+
143+
### Authorization
144+
145+
[accessToken](../README.md#accessToken)
146+
147+
### HTTP request headers
148+
149+
- **Content-Type**: Not defined
150+
- **Accept**: application/json
151+
152+
### HTTP response details
153+
| Status code | Description | Response headers |
154+
|-------------|-------------|------------------|
155+
**200** | OK | - |
156+
157+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
158+

docs/ListDRMConfigurationsResponse.md

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# ListDRMConfigurationsResponse
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**data** | [**list[DRMConfiguration]**](DRMConfiguration.md) | | [optional]
7+
8+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
9+
10+

0 commit comments

Comments
 (0)