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. Possible values include: 'FragmentedMP4', 'RTMP' :type streaming_protocol: str or ~azure.mgmt.media.models.LiveEventInputProtocol :param key_frame_interval_duration: ISO 8601 timespan duration of the key frame interval duration. :type key_frame_interval_duration: str :param access_token: The access token. :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'}, 'key_frame_interval_duration': {'key': 'keyFrameIntervalDuration', 'type': 'str'}, 'access_token': {'key': 'accessToken', 'type': 'str'}, 'endpoints': {'key': 'endpoints', 'type': '[LiveEventEndpoint]'}, } def __init__(self, *, streaming_protocol, 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.key_frame_interval_duration = key_frame_interval_duration self.access_token = access_token self.endpoints = endpoints