Source code for azure.mgmt.media.models.live_event_preview_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 msrest.serialization import Model


[docs]class LiveEventPreview(Model): """The Live Event preview. :param endpoints: The endpoints for preview. :type endpoints: list[~azure.mgmt.media.models.LiveEventEndpoint] :param access_control: The access control for LiveEvent preview. :type access_control: ~azure.mgmt.media.models.LiveEventPreviewAccessControl :param preview_locator: The identifier of the preview locator in Guid format. Specifying this at creation time allows the caller to know the preview locator url before the event is created. If omitted, the service will generate a random identifier. This value cannot be updated once the live event is created. :type preview_locator: str :param streaming_policy_name: The name of streaming policy used for the LiveEvent preview. This value is specified at creation time and cannot be updated. :type streaming_policy_name: str :param alternative_media_id: An Alternative Media Identifier associated with the StreamingLocator created for the preview. This value is specified at creation time and cannot be updated. The identifier can be used in the CustomLicenseAcquisitionUrlTemplate or the CustomKeyAcquisitionUrlTemplate of the StreamingPolicy specified in the StreamingPolicyName field. :type alternative_media_id: str """ _attribute_map = { 'endpoints': {'key': 'endpoints', 'type': '[LiveEventEndpoint]'}, 'access_control': {'key': 'accessControl', 'type': 'LiveEventPreviewAccessControl'}, 'preview_locator': {'key': 'previewLocator', 'type': 'str'}, 'streaming_policy_name': {'key': 'streamingPolicyName', 'type': 'str'}, 'alternative_media_id': {'key': 'alternativeMediaId', 'type': 'str'}, } def __init__(self, *, endpoints=None, access_control=None, preview_locator: str=None, streaming_policy_name: str=None, alternative_media_id: str=None, **kwargs) -> None: super(LiveEventPreview, self).__init__(**kwargs) self.endpoints = endpoints self.access_control = access_control self.preview_locator = preview_locator self.streaming_policy_name = streaming_policy_name self.alternative_media_id = alternative_media_id