Source code for azure.mgmt.media.models.live_event_input_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 LiveEventInput(Model): """The Live Event input. All required parameters must be populated in order to send to Azure. :param streaming_protocol: Required. The streaming protocol for the Live Event. This is specified at creation time and cannot be updated. Possible values include: 'FragmentedMP4', 'RTMP' :type streaming_protocol: str or ~azure.mgmt.media.models.LiveEventInputProtocol :param access_control: The access control for LiveEvent Input. :type access_control: ~azure.mgmt.media.models.LiveEventInputAccessControl :param key_frame_interval_duration: ISO 8601 timespan duration of the key frame interval duration. :type key_frame_interval_duration: str :param access_token: A unique identifier for a stream. This can be specified at creation time but cannot be updated. If omitted, the service will generate a unique value. :type access_token: str :param endpoints: The input endpoints for the Live Event. :type endpoints: list[~azure.mgmt.media.models.LiveEventEndpoint] """ _validation = { 'streaming_protocol': {'required': True}, } _attribute_map = { 'streaming_protocol': {'key': 'streamingProtocol', 'type': 'LiveEventInputProtocol'}, 'access_control': {'key': 'accessControl', 'type': 'LiveEventInputAccessControl'}, 'key_frame_interval_duration': {'key': 'keyFrameIntervalDuration', 'type': 'str'}, 'access_token': {'key': 'accessToken', 'type': 'str'}, 'endpoints': {'key': 'endpoints', 'type': '[LiveEventEndpoint]'}, } def __init__(self, *, streaming_protocol, access_control=None, key_frame_interval_duration: str=None, access_token: str=None, endpoints=None, **kwargs) -> None: super(LiveEventInput, self).__init__(**kwargs) self.streaming_protocol = streaming_protocol self.access_control = access_control self.key_frame_interval_duration = key_frame_interval_duration self.access_token = access_token self.endpoints = endpoints