/
content_key_policy_play_ready_configuration_py3.py
44 lines (36 loc) · 1.76 KB
/
content_key_policy_play_ready_configuration_py3.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------
from .content_key_policy_configuration_py3 import ContentKeyPolicyConfiguration
class ContentKeyPolicyPlayReadyConfiguration(ContentKeyPolicyConfiguration):
"""Specifies a configuration for PlayReady licenses.
All required parameters must be populated in order to send to Azure.
:param odatatype: Required. Constant filled by server.
:type odatatype: str
:param licenses: Required. The PlayReady licenses.
:type licenses:
list[~azure.mgmt.media.models.ContentKeyPolicyPlayReadyLicense]
:param response_custom_data: The custom response data.
:type response_custom_data: str
"""
_validation = {
'odatatype': {'required': True},
'licenses': {'required': True},
}
_attribute_map = {
'odatatype': {'key': '@odata\\.type', 'type': 'str'},
'licenses': {'key': 'licenses', 'type': '[ContentKeyPolicyPlayReadyLicense]'},
'response_custom_data': {'key': 'responseCustomData', 'type': 'str'},
}
def __init__(self, *, licenses, response_custom_data: str=None, **kwargs) -> None:
super(ContentKeyPolicyPlayReadyConfiguration, self).__init__(**kwargs)
self.licenses = licenses
self.response_custom_data = response_custom_data
self.odatatype = '#Microsoft.Media.ContentKeyPolicyPlayReadyConfiguration'