Source code for azure.mgmt.media.models.content_key_policy_open_restriction_py3

# 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_restriction_py3 import ContentKeyPolicyRestriction


[docs]class ContentKeyPolicyOpenRestriction(ContentKeyPolicyRestriction): """Represents an open restriction. License or key will be delivered on every request. 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'}, } def __init__(self, **kwargs) -> None: super(ContentKeyPolicyOpenRestriction, self).__init__(**kwargs) self.odatatype = '#Microsoft.Media.ContentKeyPolicyOpenRestriction'