Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
# 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 ContentKeyPolicyWidevineConfiguration(ContentKeyPolicyConfiguration):
"""Specifies a configuration for Widevine licenses.
All required parameters must be populated in order to send to Azure.
:param odatatype: Required. Constant filled by server.
:type odatatype: str
:param widevine_template: Required. The Widevine template.
:type widevine_template: str
"""
_validation = {
'odatatype': {'required': True},
'widevine_template': {'required': True},
}
_attribute_map = {
# 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 ContentKeyPolicyClearKeyConfiguration(ContentKeyPolicyConfiguration):
"""Represents a configuration for non-DRM keys.
All required parameters must be populated in order to send to Azure.
:param odatatype: Required. Constant filled by server.
:type odatatype: str
"""
_validation = {
'odatatype': {'required': True},
}
_attribute_map = {
'odatatype': {'key': '@odata\\.type', 'type': 'str'},
}
# 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},
# 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 ContentKeyPolicyFairPlayConfiguration(ContentKeyPolicyConfiguration):
"""Specifies a configuration for FairPlay licenses.
All required parameters must be populated in order to send to Azure.
:param odatatype: Required. Constant filled by server.
:type odatatype: str
:param ask: Required. The key that must be used as FairPlay Application
Secret key.
:type ask: bytearray
:param fair_play_pfx_password: Required. The password encrypting FairPlay
certificate in PKCS 12 (pfx) format.
:type fair_play_pfx_password: str
:param fair_play_pfx: Required. The Base64 representation of FairPlay
certificate in PKCS 12 (pfx) format (including private key).
:type fair_play_pfx: str
:param rental_and_lease_key_type: Required. The rental and lease key type.
# 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 ContentKeyPolicyUnknownConfiguration(ContentKeyPolicyConfiguration):
"""Represents a ContentKeyPolicyConfiguration that is unavailable in the
current API version.
All required parameters must be populated in order to send to Azure.
:param odatatype: Required. Constant filled by server.
:type odatatype: str
"""
_validation = {
'odatatype': {'required': True},
}
_attribute_map = {
'odatatype': {'key': '@odata\\.type', 'type': 'str'},
}