Source code for bitmovin_api_sdk.models.statistics_per_stream

# coding: utf-8

from enum import Enum
from six import string_types, iteritems
from bitmovin_api_sdk.common.poscheck import poscheck_model
from bitmovin_api_sdk.models.codec_config_type import CodecConfigType
from bitmovin_api_sdk.models.dolby_vision_per_stream_mode import DolbyVisionPerStreamMode
from bitmovin_api_sdk.models.encoding_mode import EncodingMode
from bitmovin_api_sdk.models.input_factor import InputFactor
from bitmovin_api_sdk.models.nex_guard_ab_watermarking_feature import NexGuardABWatermarkingFeature
from bitmovin_api_sdk.models.pixel_format_bit_depth import PixelFormatBitDepth
from bitmovin_api_sdk.models.psnr_per_stream_mode import PsnrPerStreamMode
from bitmovin_api_sdk.models.statistics_per_title_stream import StatisticsPerTitleStream
from bitmovin_api_sdk.models.statistics_resolution import StatisticsResolution
import pprint
import six


[docs]class StatisticsPerStream(object): @poscheck_model def __init__(self, stream_id=None, codec_config_id=None, multiplicator=None, encoded_bytes=None, encoded_seconds=None, billable_minutes=None, width=None, height=None, rate=None, bitrate=None, codec=None, resolution=None, encoding_mode=None, encoding_mode_multiplicator=None, per_title_result_stream=None, per_title_multiplicator=None, psnr_mode=None, psnr_multiplicator=None, dolby_vision_mode=None, dolby_vision_multiplicator=None, preset=None, preset_multiplicator=None, live=None, live_multiplicator=None, enhanced_deinterlace=None, enhanced_deinterlace_multiplicator=None, dolby_vision_to_hdr=None, dolby_vision_to_hdr_multiplicator=None, dolby_vision_to_sdr=None, dolby_vision_to_sdr_multiplicator=None, hdr_hlg_to_sdr=None, hdr_hlg_to_sdr_multiplicator=None, nex_guard_ab_watermarking_type=None, nex_guard_ab_watermarking_multiplicator=None, pixel_format_bit_depth=None, pixel_format_multiplicator=None, input_factor=None): # type: (string_types, string_types, float, int, float, float, int, int, float, int, CodecConfigType, StatisticsResolution, EncodingMode, float, StatisticsPerTitleStream, float, PsnrPerStreamMode, float, DolbyVisionPerStreamMode, float, string_types, float, bool, float, bool, float, bool, float, bool, float, bool, float, NexGuardABWatermarkingFeature, float, PixelFormatBitDepth, float, InputFactor) -> None self._stream_id = None self._codec_config_id = None self._multiplicator = None self._encoded_bytes = None self._encoded_seconds = None self._billable_minutes = None self._width = None self._height = None self._rate = None self._bitrate = None self._codec = None self._resolution = None self._encoding_mode = None self._encoding_mode_multiplicator = None self._per_title_result_stream = None self._per_title_multiplicator = None self._psnr_mode = None self._psnr_multiplicator = None self._dolby_vision_mode = None self._dolby_vision_multiplicator = None self._preset = None self._preset_multiplicator = None self._live = None self._live_multiplicator = None self._enhanced_deinterlace = None self._enhanced_deinterlace_multiplicator = None self._dolby_vision_to_hdr = None self._dolby_vision_to_hdr_multiplicator = None self._dolby_vision_to_sdr = None self._dolby_vision_to_sdr_multiplicator = None self._hdr_hlg_to_sdr = None self._hdr_hlg_to_sdr_multiplicator = None self._nex_guard_ab_watermarking_type = None self._nex_guard_ab_watermarking_multiplicator = None self._pixel_format_bit_depth = None self._pixel_format_multiplicator = None self._input_factor = None self.discriminator = None if stream_id is not None: self.stream_id = stream_id if codec_config_id is not None: self.codec_config_id = codec_config_id if multiplicator is not None: self.multiplicator = multiplicator if encoded_bytes is not None: self.encoded_bytes = encoded_bytes if encoded_seconds is not None: self.encoded_seconds = encoded_seconds if billable_minutes is not None: self.billable_minutes = billable_minutes if width is not None: self.width = width if height is not None: self.height = height if rate is not None: self.rate = rate if bitrate is not None: self.bitrate = bitrate if codec is not None: self.codec = codec if resolution is not None: self.resolution = resolution if encoding_mode is not None: self.encoding_mode = encoding_mode if encoding_mode_multiplicator is not None: self.encoding_mode_multiplicator = encoding_mode_multiplicator if per_title_result_stream is not None: self.per_title_result_stream = per_title_result_stream if per_title_multiplicator is not None: self.per_title_multiplicator = per_title_multiplicator if psnr_mode is not None: self.psnr_mode = psnr_mode if psnr_multiplicator is not None: self.psnr_multiplicator = psnr_multiplicator if dolby_vision_mode is not None: self.dolby_vision_mode = dolby_vision_mode if dolby_vision_multiplicator is not None: self.dolby_vision_multiplicator = dolby_vision_multiplicator if preset is not None: self.preset = preset if preset_multiplicator is not None: self.preset_multiplicator = preset_multiplicator if live is not None: self.live = live if live_multiplicator is not None: self.live_multiplicator = live_multiplicator if enhanced_deinterlace is not None: self.enhanced_deinterlace = enhanced_deinterlace if enhanced_deinterlace_multiplicator is not None: self.enhanced_deinterlace_multiplicator = enhanced_deinterlace_multiplicator if dolby_vision_to_hdr is not None: self.dolby_vision_to_hdr = dolby_vision_to_hdr if dolby_vision_to_hdr_multiplicator is not None: self.dolby_vision_to_hdr_multiplicator = dolby_vision_to_hdr_multiplicator if dolby_vision_to_sdr is not None: self.dolby_vision_to_sdr = dolby_vision_to_sdr if dolby_vision_to_sdr_multiplicator is not None: self.dolby_vision_to_sdr_multiplicator = dolby_vision_to_sdr_multiplicator if hdr_hlg_to_sdr is not None: self.hdr_hlg_to_sdr = hdr_hlg_to_sdr if hdr_hlg_to_sdr_multiplicator is not None: self.hdr_hlg_to_sdr_multiplicator = hdr_hlg_to_sdr_multiplicator if nex_guard_ab_watermarking_type is not None: self.nex_guard_ab_watermarking_type = nex_guard_ab_watermarking_type if nex_guard_ab_watermarking_multiplicator is not None: self.nex_guard_ab_watermarking_multiplicator = nex_guard_ab_watermarking_multiplicator if pixel_format_bit_depth is not None: self.pixel_format_bit_depth = pixel_format_bit_depth if pixel_format_multiplicator is not None: self.pixel_format_multiplicator = pixel_format_multiplicator if input_factor is not None: self.input_factor = input_factor @property def openapi_types(self): types = { 'stream_id': 'string_types', 'codec_config_id': 'string_types', 'multiplicator': 'float', 'encoded_bytes': 'int', 'encoded_seconds': 'float', 'billable_minutes': 'float', 'width': 'int', 'height': 'int', 'rate': 'float', 'bitrate': 'int', 'codec': 'CodecConfigType', 'resolution': 'StatisticsResolution', 'encoding_mode': 'EncodingMode', 'encoding_mode_multiplicator': 'float', 'per_title_result_stream': 'StatisticsPerTitleStream', 'per_title_multiplicator': 'float', 'psnr_mode': 'PsnrPerStreamMode', 'psnr_multiplicator': 'float', 'dolby_vision_mode': 'DolbyVisionPerStreamMode', 'dolby_vision_multiplicator': 'float', 'preset': 'string_types', 'preset_multiplicator': 'float', 'live': 'bool', 'live_multiplicator': 'float', 'enhanced_deinterlace': 'bool', 'enhanced_deinterlace_multiplicator': 'float', 'dolby_vision_to_hdr': 'bool', 'dolby_vision_to_hdr_multiplicator': 'float', 'dolby_vision_to_sdr': 'bool', 'dolby_vision_to_sdr_multiplicator': 'float', 'hdr_hlg_to_sdr': 'bool', 'hdr_hlg_to_sdr_multiplicator': 'float', 'nex_guard_ab_watermarking_type': 'NexGuardABWatermarkingFeature', 'nex_guard_ab_watermarking_multiplicator': 'float', 'pixel_format_bit_depth': 'PixelFormatBitDepth', 'pixel_format_multiplicator': 'float', 'input_factor': 'InputFactor' } return types @property def attribute_map(self): attributes = { 'stream_id': 'streamId', 'codec_config_id': 'codecConfigId', 'multiplicator': 'multiplicator', 'encoded_bytes': 'encodedBytes', 'encoded_seconds': 'encodedSeconds', 'billable_minutes': 'billableMinutes', 'width': 'width', 'height': 'height', 'rate': 'rate', 'bitrate': 'bitrate', 'codec': 'codec', 'resolution': 'resolution', 'encoding_mode': 'encodingMode', 'encoding_mode_multiplicator': 'encodingModeMultiplicator', 'per_title_result_stream': 'perTitleResultStream', 'per_title_multiplicator': 'perTitleMultiplicator', 'psnr_mode': 'psnrMode', 'psnr_multiplicator': 'psnrMultiplicator', 'dolby_vision_mode': 'dolbyVisionMode', 'dolby_vision_multiplicator': 'dolbyVisionMultiplicator', 'preset': 'preset', 'preset_multiplicator': 'presetMultiplicator', 'live': 'live', 'live_multiplicator': 'liveMultiplicator', 'enhanced_deinterlace': 'enhancedDeinterlace', 'enhanced_deinterlace_multiplicator': 'enhancedDeinterlaceMultiplicator', 'dolby_vision_to_hdr': 'dolbyVisionToHdr', 'dolby_vision_to_hdr_multiplicator': 'dolbyVisionToHdrMultiplicator', 'dolby_vision_to_sdr': 'dolbyVisionToSdr', 'dolby_vision_to_sdr_multiplicator': 'dolbyVisionToSdrMultiplicator', 'hdr_hlg_to_sdr': 'hdrHlgToSdr', 'hdr_hlg_to_sdr_multiplicator': 'hdrHlgToSdrMultiplicator', 'nex_guard_ab_watermarking_type': 'nexGuardABWatermarkingType', 'nex_guard_ab_watermarking_multiplicator': 'nexGuardABWatermarkingMultiplicator', 'pixel_format_bit_depth': 'pixelFormatBitDepth', 'pixel_format_multiplicator': 'pixelFormatMultiplicator', 'input_factor': 'inputFactor' } return attributes @property def stream_id(self): # type: () -> string_types """Gets the stream_id of this StatisticsPerStream. ID of the stream (required) :return: The stream_id of this StatisticsPerStream. :rtype: string_types """ return self._stream_id @stream_id.setter def stream_id(self, stream_id): # type: (string_types) -> None """Sets the stream_id of this StatisticsPerStream. ID of the stream (required) :param stream_id: The stream_id of this StatisticsPerStream. :type: string_types """ if stream_id is not None: if not isinstance(stream_id, string_types): raise TypeError("Invalid type for `stream_id`, type has to be `string_types`") self._stream_id = stream_id @property def codec_config_id(self): # type: () -> string_types """Gets the codec_config_id of this StatisticsPerStream. ID of the condec configuration (required) :return: The codec_config_id of this StatisticsPerStream. :rtype: string_types """ return self._codec_config_id @codec_config_id.setter def codec_config_id(self, codec_config_id): # type: (string_types) -> None """Sets the codec_config_id of this StatisticsPerStream. ID of the condec configuration (required) :param codec_config_id: The codec_config_id of this StatisticsPerStream. :type: string_types """ if codec_config_id is not None: if not isinstance(codec_config_id, string_types): raise TypeError("Invalid type for `codec_config_id`, type has to be `string_types`") self._codec_config_id = codec_config_id @property def multiplicator(self): # type: () -> float """Gets the multiplicator of this StatisticsPerStream. Multiplier for the encoded minutes. Depends on muxing type. (required) :return: The multiplicator of this StatisticsPerStream. :rtype: float """ return self._multiplicator @multiplicator.setter def multiplicator(self, multiplicator): # type: (float) -> None """Sets the multiplicator of this StatisticsPerStream. Multiplier for the encoded minutes. Depends on muxing type. (required) :param multiplicator: The multiplicator of this StatisticsPerStream. :type: float """ if multiplicator is not None: if not isinstance(multiplicator, (float, int)): raise TypeError("Invalid type for `multiplicator`, type has to be `float`") self._multiplicator = multiplicator @property def encoded_bytes(self): # type: () -> int """Gets the encoded_bytes of this StatisticsPerStream. Encoded bytes. (required) :return: The encoded_bytes of this StatisticsPerStream. :rtype: int """ return self._encoded_bytes @encoded_bytes.setter def encoded_bytes(self, encoded_bytes): # type: (int) -> None """Sets the encoded_bytes of this StatisticsPerStream. Encoded bytes. (required) :param encoded_bytes: The encoded_bytes of this StatisticsPerStream. :type: int """ if encoded_bytes is not None: if not isinstance(encoded_bytes, int): raise TypeError("Invalid type for `encoded_bytes`, type has to be `int`") self._encoded_bytes = encoded_bytes @property def encoded_seconds(self): # type: () -> float """Gets the encoded_seconds of this StatisticsPerStream. Length of the stream. (required) :return: The encoded_seconds of this StatisticsPerStream. :rtype: float """ return self._encoded_seconds @encoded_seconds.setter def encoded_seconds(self, encoded_seconds): # type: (float) -> None """Sets the encoded_seconds of this StatisticsPerStream. Length of the stream. (required) :param encoded_seconds: The encoded_seconds of this StatisticsPerStream. :type: float """ if encoded_seconds is not None: if not isinstance(encoded_seconds, (float, int)): raise TypeError("Invalid type for `encoded_seconds`, type has to be `float`") self._encoded_seconds = encoded_seconds @property def billable_minutes(self): # type: () -> float """Gets the billable_minutes of this StatisticsPerStream. Minutes you will be charged for (billableMinutes = encodedSeconds * multiplicator) (required) :return: The billable_minutes of this StatisticsPerStream. :rtype: float """ return self._billable_minutes @billable_minutes.setter def billable_minutes(self, billable_minutes): # type: (float) -> None """Sets the billable_minutes of this StatisticsPerStream. Minutes you will be charged for (billableMinutes = encodedSeconds * multiplicator) (required) :param billable_minutes: The billable_minutes of this StatisticsPerStream. :type: float """ if billable_minutes is not None: if not isinstance(billable_minutes, (float, int)): raise TypeError("Invalid type for `billable_minutes`, type has to be `float`") self._billable_minutes = billable_minutes @property def width(self): # type: () -> int """Gets the width of this StatisticsPerStream. Video width, only if video stream :return: The width of this StatisticsPerStream. :rtype: int """ return self._width @width.setter def width(self, width): # type: (int) -> None """Sets the width of this StatisticsPerStream. Video width, only if video stream :param width: The width of this StatisticsPerStream. :type: int """ if width is not None: if not isinstance(width, int): raise TypeError("Invalid type for `width`, type has to be `int`") self._width = width @property def height(self): # type: () -> int """Gets the height of this StatisticsPerStream. Video height, only if video stream :return: The height of this StatisticsPerStream. :rtype: int """ return self._height @height.setter def height(self, height): # type: (int) -> None """Sets the height of this StatisticsPerStream. Video height, only if video stream :param height: The height of this StatisticsPerStream. :type: int """ if height is not None: if not isinstance(height, int): raise TypeError("Invalid type for `height`, type has to be `int`") self._height = height @property def rate(self): # type: () -> float """Gets the rate of this StatisticsPerStream. If it' a video stream this value is the FPS, for audio it's the sample rate. (required) :return: The rate of this StatisticsPerStream. :rtype: float """ return self._rate @rate.setter def rate(self, rate): # type: (float) -> None """Sets the rate of this StatisticsPerStream. If it' a video stream this value is the FPS, for audio it's the sample rate. (required) :param rate: The rate of this StatisticsPerStream. :type: float """ if rate is not None: if not isinstance(rate, (float, int)): raise TypeError("Invalid type for `rate`, type has to be `float`") self._rate = rate @property def bitrate(self): # type: () -> int """Gets the bitrate of this StatisticsPerStream. Bitrate of the stream (required) :return: The bitrate of this StatisticsPerStream. :rtype: int """ return self._bitrate @bitrate.setter def bitrate(self, bitrate): # type: (int) -> None """Sets the bitrate of this StatisticsPerStream. Bitrate of the stream (required) :param bitrate: The bitrate of this StatisticsPerStream. :type: int """ if bitrate is not None: if not isinstance(bitrate, int): raise TypeError("Invalid type for `bitrate`, type has to be `int`") self._bitrate = bitrate @property def codec(self): # type: () -> CodecConfigType """Gets the codec of this StatisticsPerStream. :return: The codec of this StatisticsPerStream. :rtype: CodecConfigType """ return self._codec @codec.setter def codec(self, codec): # type: (CodecConfigType) -> None """Sets the codec of this StatisticsPerStream. :param codec: The codec of this StatisticsPerStream. :type: CodecConfigType """ if codec is not None: if not isinstance(codec, CodecConfigType): raise TypeError("Invalid type for `codec`, type has to be `CodecConfigType`") self._codec = codec @property def resolution(self): # type: () -> StatisticsResolution """Gets the resolution of this StatisticsPerStream. :return: The resolution of this StatisticsPerStream. :rtype: StatisticsResolution """ return self._resolution @resolution.setter def resolution(self, resolution): # type: (StatisticsResolution) -> None """Sets the resolution of this StatisticsPerStream. :param resolution: The resolution of this StatisticsPerStream. :type: StatisticsResolution """ if resolution is not None: if not isinstance(resolution, StatisticsResolution): raise TypeError("Invalid type for `resolution`, type has to be `StatisticsResolution`") self._resolution = resolution @property def encoding_mode(self): # type: () -> EncodingMode """Gets the encoding_mode of this StatisticsPerStream. :return: The encoding_mode of this StatisticsPerStream. :rtype: EncodingMode """ return self._encoding_mode @encoding_mode.setter def encoding_mode(self, encoding_mode): # type: (EncodingMode) -> None """Sets the encoding_mode of this StatisticsPerStream. :param encoding_mode: The encoding_mode of this StatisticsPerStream. :type: EncodingMode """ if encoding_mode is not None: if not isinstance(encoding_mode, EncodingMode): raise TypeError("Invalid type for `encoding_mode`, type has to be `EncodingMode`") self._encoding_mode = encoding_mode @property def encoding_mode_multiplicator(self): # type: () -> float """Gets the encoding_mode_multiplicator of this StatisticsPerStream. The output minutes multiplicator for the given encodingMode :return: The encoding_mode_multiplicator of this StatisticsPerStream. :rtype: float """ return self._encoding_mode_multiplicator @encoding_mode_multiplicator.setter def encoding_mode_multiplicator(self, encoding_mode_multiplicator): # type: (float) -> None """Sets the encoding_mode_multiplicator of this StatisticsPerStream. The output minutes multiplicator for the given encodingMode :param encoding_mode_multiplicator: The encoding_mode_multiplicator of this StatisticsPerStream. :type: float """ if encoding_mode_multiplicator is not None: if not isinstance(encoding_mode_multiplicator, (float, int)): raise TypeError("Invalid type for `encoding_mode_multiplicator`, type has to be `float`") self._encoding_mode_multiplicator = encoding_mode_multiplicator @property def per_title_result_stream(self): # type: () -> StatisticsPerTitleStream """Gets the per_title_result_stream of this StatisticsPerStream. :return: The per_title_result_stream of this StatisticsPerStream. :rtype: StatisticsPerTitleStream """ return self._per_title_result_stream @per_title_result_stream.setter def per_title_result_stream(self, per_title_result_stream): # type: (StatisticsPerTitleStream) -> None """Sets the per_title_result_stream of this StatisticsPerStream. :param per_title_result_stream: The per_title_result_stream of this StatisticsPerStream. :type: StatisticsPerTitleStream """ if per_title_result_stream is not None: if not isinstance(per_title_result_stream, StatisticsPerTitleStream): raise TypeError("Invalid type for `per_title_result_stream`, type has to be `StatisticsPerTitleStream`") self._per_title_result_stream = per_title_result_stream @property def per_title_multiplicator(self): # type: () -> float """Gets the per_title_multiplicator of this StatisticsPerStream. The output minutes multiplicator for per-title :return: The per_title_multiplicator of this StatisticsPerStream. :rtype: float """ return self._per_title_multiplicator @per_title_multiplicator.setter def per_title_multiplicator(self, per_title_multiplicator): # type: (float) -> None """Sets the per_title_multiplicator of this StatisticsPerStream. The output minutes multiplicator for per-title :param per_title_multiplicator: The per_title_multiplicator of this StatisticsPerStream. :type: float """ if per_title_multiplicator is not None: if not isinstance(per_title_multiplicator, (float, int)): raise TypeError("Invalid type for `per_title_multiplicator`, type has to be `float`") self._per_title_multiplicator = per_title_multiplicator @property def psnr_mode(self): # type: () -> PsnrPerStreamMode """Gets the psnr_mode of this StatisticsPerStream. :return: The psnr_mode of this StatisticsPerStream. :rtype: PsnrPerStreamMode """ return self._psnr_mode @psnr_mode.setter def psnr_mode(self, psnr_mode): # type: (PsnrPerStreamMode) -> None """Sets the psnr_mode of this StatisticsPerStream. :param psnr_mode: The psnr_mode of this StatisticsPerStream. :type: PsnrPerStreamMode """ if psnr_mode is not None: if not isinstance(psnr_mode, PsnrPerStreamMode): raise TypeError("Invalid type for `psnr_mode`, type has to be `PsnrPerStreamMode`") self._psnr_mode = psnr_mode @property def psnr_multiplicator(self): # type: () -> float """Gets the psnr_multiplicator of this StatisticsPerStream. The output minutes multiplicator for psnr streams :return: The psnr_multiplicator of this StatisticsPerStream. :rtype: float """ return self._psnr_multiplicator @psnr_multiplicator.setter def psnr_multiplicator(self, psnr_multiplicator): # type: (float) -> None """Sets the psnr_multiplicator of this StatisticsPerStream. The output minutes multiplicator for psnr streams :param psnr_multiplicator: The psnr_multiplicator of this StatisticsPerStream. :type: float """ if psnr_multiplicator is not None: if not isinstance(psnr_multiplicator, (float, int)): raise TypeError("Invalid type for `psnr_multiplicator`, type has to be `float`") self._psnr_multiplicator = psnr_multiplicator @property def dolby_vision_mode(self): # type: () -> DolbyVisionPerStreamMode """Gets the dolby_vision_mode of this StatisticsPerStream. :return: The dolby_vision_mode of this StatisticsPerStream. :rtype: DolbyVisionPerStreamMode """ return self._dolby_vision_mode @dolby_vision_mode.setter def dolby_vision_mode(self, dolby_vision_mode): # type: (DolbyVisionPerStreamMode) -> None """Sets the dolby_vision_mode of this StatisticsPerStream. :param dolby_vision_mode: The dolby_vision_mode of this StatisticsPerStream. :type: DolbyVisionPerStreamMode """ if dolby_vision_mode is not None: if not isinstance(dolby_vision_mode, DolbyVisionPerStreamMode): raise TypeError("Invalid type for `dolby_vision_mode`, type has to be `DolbyVisionPerStreamMode`") self._dolby_vision_mode = dolby_vision_mode @property def dolby_vision_multiplicator(self): # type: () -> float """Gets the dolby_vision_multiplicator of this StatisticsPerStream. The output minutes multiplicator for Dolby Vision streams :return: The dolby_vision_multiplicator of this StatisticsPerStream. :rtype: float """ return self._dolby_vision_multiplicator @dolby_vision_multiplicator.setter def dolby_vision_multiplicator(self, dolby_vision_multiplicator): # type: (float) -> None """Sets the dolby_vision_multiplicator of this StatisticsPerStream. The output minutes multiplicator for Dolby Vision streams :param dolby_vision_multiplicator: The dolby_vision_multiplicator of this StatisticsPerStream. :type: float """ if dolby_vision_multiplicator is not None: if not isinstance(dolby_vision_multiplicator, (float, int)): raise TypeError("Invalid type for `dolby_vision_multiplicator`, type has to be `float`") self._dolby_vision_multiplicator = dolby_vision_multiplicator @property def preset(self): # type: () -> string_types """Gets the preset of this StatisticsPerStream. Name of the preset configuration used for the codec configuration or \"CUSTOM\" if any preset values were overridden :return: The preset of this StatisticsPerStream. :rtype: string_types """ return self._preset @preset.setter def preset(self, preset): # type: (string_types) -> None """Sets the preset of this StatisticsPerStream. Name of the preset configuration used for the codec configuration or \"CUSTOM\" if any preset values were overridden :param preset: The preset of this StatisticsPerStream. :type: string_types """ if preset is not None: if not isinstance(preset, string_types): raise TypeError("Invalid type for `preset`, type has to be `string_types`") self._preset = preset @property def preset_multiplicator(self): # type: () -> float """Gets the preset_multiplicator of this StatisticsPerStream. The output minutes multiplicator for the used codec configuration preset. :return: The preset_multiplicator of this StatisticsPerStream. :rtype: float """ return self._preset_multiplicator @preset_multiplicator.setter def preset_multiplicator(self, preset_multiplicator): # type: (float) -> None """Sets the preset_multiplicator of this StatisticsPerStream. The output minutes multiplicator for the used codec configuration preset. :param preset_multiplicator: The preset_multiplicator of this StatisticsPerStream. :type: float """ if preset_multiplicator is not None: if not isinstance(preset_multiplicator, (float, int)): raise TypeError("Invalid type for `preset_multiplicator`, type has to be `float`") self._preset_multiplicator = preset_multiplicator @property def live(self): # type: () -> bool """Gets the live of this StatisticsPerStream. Indicates if the stream was part of a live encoding. :return: The live of this StatisticsPerStream. :rtype: bool """ return self._live @live.setter def live(self, live): # type: (bool) -> None """Sets the live of this StatisticsPerStream. Indicates if the stream was part of a live encoding. :param live: The live of this StatisticsPerStream. :type: bool """ if live is not None: if not isinstance(live, bool): raise TypeError("Invalid type for `live`, type has to be `bool`") self._live = live @property def live_multiplicator(self): # type: () -> float """Gets the live_multiplicator of this StatisticsPerStream. The output minutes multiplicator for live streams. :return: The live_multiplicator of this StatisticsPerStream. :rtype: float """ return self._live_multiplicator @live_multiplicator.setter def live_multiplicator(self, live_multiplicator): # type: (float) -> None """Sets the live_multiplicator of this StatisticsPerStream. The output minutes multiplicator for live streams. :param live_multiplicator: The live_multiplicator of this StatisticsPerStream. :type: float """ if live_multiplicator is not None: if not isinstance(live_multiplicator, (float, int)): raise TypeError("Invalid type for `live_multiplicator`, type has to be `float`") self._live_multiplicator = live_multiplicator @property def enhanced_deinterlace(self): # type: () -> bool """Gets the enhanced_deinterlace of this StatisticsPerStream. Indicates if an enhanced interlace filter was used. :return: The enhanced_deinterlace of this StatisticsPerStream. :rtype: bool """ return self._enhanced_deinterlace @enhanced_deinterlace.setter def enhanced_deinterlace(self, enhanced_deinterlace): # type: (bool) -> None """Sets the enhanced_deinterlace of this StatisticsPerStream. Indicates if an enhanced interlace filter was used. :param enhanced_deinterlace: The enhanced_deinterlace of this StatisticsPerStream. :type: bool """ if enhanced_deinterlace is not None: if not isinstance(enhanced_deinterlace, bool): raise TypeError("Invalid type for `enhanced_deinterlace`, type has to be `bool`") self._enhanced_deinterlace = enhanced_deinterlace @property def enhanced_deinterlace_multiplicator(self): # type: () -> float """Gets the enhanced_deinterlace_multiplicator of this StatisticsPerStream. The output minutes multiplicator for streams using an enhanced Deinterlace Filter. :return: The enhanced_deinterlace_multiplicator of this StatisticsPerStream. :rtype: float """ return self._enhanced_deinterlace_multiplicator @enhanced_deinterlace_multiplicator.setter def enhanced_deinterlace_multiplicator(self, enhanced_deinterlace_multiplicator): # type: (float) -> None """Sets the enhanced_deinterlace_multiplicator of this StatisticsPerStream. The output minutes multiplicator for streams using an enhanced Deinterlace Filter. :param enhanced_deinterlace_multiplicator: The enhanced_deinterlace_multiplicator of this StatisticsPerStream. :type: float """ if enhanced_deinterlace_multiplicator is not None: if not isinstance(enhanced_deinterlace_multiplicator, (float, int)): raise TypeError("Invalid type for `enhanced_deinterlace_multiplicator`, type has to be `float`") self._enhanced_deinterlace_multiplicator = enhanced_deinterlace_multiplicator @property def dolby_vision_to_hdr(self): # type: () -> bool """Gets the dolby_vision_to_hdr of this StatisticsPerStream. Indicates if the conversion from Dolby Vision to HDR was triggered. :return: The dolby_vision_to_hdr of this StatisticsPerStream. :rtype: bool """ return self._dolby_vision_to_hdr @dolby_vision_to_hdr.setter def dolby_vision_to_hdr(self, dolby_vision_to_hdr): # type: (bool) -> None """Sets the dolby_vision_to_hdr of this StatisticsPerStream. Indicates if the conversion from Dolby Vision to HDR was triggered. :param dolby_vision_to_hdr: The dolby_vision_to_hdr of this StatisticsPerStream. :type: bool """ if dolby_vision_to_hdr is not None: if not isinstance(dolby_vision_to_hdr, bool): raise TypeError("Invalid type for `dolby_vision_to_hdr`, type has to be `bool`") self._dolby_vision_to_hdr = dolby_vision_to_hdr @property def dolby_vision_to_hdr_multiplicator(self): # type: () -> float """Gets the dolby_vision_to_hdr_multiplicator of this StatisticsPerStream. The output minutes multiplicator for streams using the conversion from Dolby Vision to HDR. :return: The dolby_vision_to_hdr_multiplicator of this StatisticsPerStream. :rtype: float """ return self._dolby_vision_to_hdr_multiplicator @dolby_vision_to_hdr_multiplicator.setter def dolby_vision_to_hdr_multiplicator(self, dolby_vision_to_hdr_multiplicator): # type: (float) -> None """Sets the dolby_vision_to_hdr_multiplicator of this StatisticsPerStream. The output minutes multiplicator for streams using the conversion from Dolby Vision to HDR. :param dolby_vision_to_hdr_multiplicator: The dolby_vision_to_hdr_multiplicator of this StatisticsPerStream. :type: float """ if dolby_vision_to_hdr_multiplicator is not None: if not isinstance(dolby_vision_to_hdr_multiplicator, (float, int)): raise TypeError("Invalid type for `dolby_vision_to_hdr_multiplicator`, type has to be `float`") self._dolby_vision_to_hdr_multiplicator = dolby_vision_to_hdr_multiplicator @property def dolby_vision_to_sdr(self): # type: () -> bool """Gets the dolby_vision_to_sdr of this StatisticsPerStream. Indicates if the conversion from Dolby Vision to SDR was triggered. :return: The dolby_vision_to_sdr of this StatisticsPerStream. :rtype: bool """ return self._dolby_vision_to_sdr @dolby_vision_to_sdr.setter def dolby_vision_to_sdr(self, dolby_vision_to_sdr): # type: (bool) -> None """Sets the dolby_vision_to_sdr of this StatisticsPerStream. Indicates if the conversion from Dolby Vision to SDR was triggered. :param dolby_vision_to_sdr: The dolby_vision_to_sdr of this StatisticsPerStream. :type: bool """ if dolby_vision_to_sdr is not None: if not isinstance(dolby_vision_to_sdr, bool): raise TypeError("Invalid type for `dolby_vision_to_sdr`, type has to be `bool`") self._dolby_vision_to_sdr = dolby_vision_to_sdr @property def dolby_vision_to_sdr_multiplicator(self): # type: () -> float """Gets the dolby_vision_to_sdr_multiplicator of this StatisticsPerStream. The output minutes multiplicator for streams using the conversion from Dolby Vision to SDR. :return: The dolby_vision_to_sdr_multiplicator of this StatisticsPerStream. :rtype: float """ return self._dolby_vision_to_sdr_multiplicator @dolby_vision_to_sdr_multiplicator.setter def dolby_vision_to_sdr_multiplicator(self, dolby_vision_to_sdr_multiplicator): # type: (float) -> None """Sets the dolby_vision_to_sdr_multiplicator of this StatisticsPerStream. The output minutes multiplicator for streams using the conversion from Dolby Vision to SDR. :param dolby_vision_to_sdr_multiplicator: The dolby_vision_to_sdr_multiplicator of this StatisticsPerStream. :type: float """ if dolby_vision_to_sdr_multiplicator is not None: if not isinstance(dolby_vision_to_sdr_multiplicator, (float, int)): raise TypeError("Invalid type for `dolby_vision_to_sdr_multiplicator`, type has to be `float`") self._dolby_vision_to_sdr_multiplicator = dolby_vision_to_sdr_multiplicator @property def hdr_hlg_to_sdr(self): # type: () -> bool """Gets the hdr_hlg_to_sdr of this StatisticsPerStream. Indicates if the conversion from HDR10/HLG to SDR was triggered. :return: The hdr_hlg_to_sdr of this StatisticsPerStream. :rtype: bool """ return self._hdr_hlg_to_sdr @hdr_hlg_to_sdr.setter def hdr_hlg_to_sdr(self, hdr_hlg_to_sdr): # type: (bool) -> None """Sets the hdr_hlg_to_sdr of this StatisticsPerStream. Indicates if the conversion from HDR10/HLG to SDR was triggered. :param hdr_hlg_to_sdr: The hdr_hlg_to_sdr of this StatisticsPerStream. :type: bool """ if hdr_hlg_to_sdr is not None: if not isinstance(hdr_hlg_to_sdr, bool): raise TypeError("Invalid type for `hdr_hlg_to_sdr`, type has to be `bool`") self._hdr_hlg_to_sdr = hdr_hlg_to_sdr @property def hdr_hlg_to_sdr_multiplicator(self): # type: () -> float """Gets the hdr_hlg_to_sdr_multiplicator of this StatisticsPerStream. The output minutes multiplicator for streams using the conversion from HDR10/HLG to SDR. :return: The hdr_hlg_to_sdr_multiplicator of this StatisticsPerStream. :rtype: float """ return self._hdr_hlg_to_sdr_multiplicator @hdr_hlg_to_sdr_multiplicator.setter def hdr_hlg_to_sdr_multiplicator(self, hdr_hlg_to_sdr_multiplicator): # type: (float) -> None """Sets the hdr_hlg_to_sdr_multiplicator of this StatisticsPerStream. The output minutes multiplicator for streams using the conversion from HDR10/HLG to SDR. :param hdr_hlg_to_sdr_multiplicator: The hdr_hlg_to_sdr_multiplicator of this StatisticsPerStream. :type: float """ if hdr_hlg_to_sdr_multiplicator is not None: if not isinstance(hdr_hlg_to_sdr_multiplicator, (float, int)): raise TypeError("Invalid type for `hdr_hlg_to_sdr_multiplicator`, type has to be `float`") self._hdr_hlg_to_sdr_multiplicator = hdr_hlg_to_sdr_multiplicator @property def nex_guard_ab_watermarking_type(self): # type: () -> NexGuardABWatermarkingFeature """Gets the nex_guard_ab_watermarking_type of this StatisticsPerStream. :return: The nex_guard_ab_watermarking_type of this StatisticsPerStream. :rtype: NexGuardABWatermarkingFeature """ return self._nex_guard_ab_watermarking_type @nex_guard_ab_watermarking_type.setter def nex_guard_ab_watermarking_type(self, nex_guard_ab_watermarking_type): # type: (NexGuardABWatermarkingFeature) -> None """Sets the nex_guard_ab_watermarking_type of this StatisticsPerStream. :param nex_guard_ab_watermarking_type: The nex_guard_ab_watermarking_type of this StatisticsPerStream. :type: NexGuardABWatermarkingFeature """ if nex_guard_ab_watermarking_type is not None: if not isinstance(nex_guard_ab_watermarking_type, NexGuardABWatermarkingFeature): raise TypeError("Invalid type for `nex_guard_ab_watermarking_type`, type has to be `NexGuardABWatermarkingFeature`") self._nex_guard_ab_watermarking_type = nex_guard_ab_watermarking_type @property def nex_guard_ab_watermarking_multiplicator(self): # type: () -> float """Gets the nex_guard_ab_watermarking_multiplicator of this StatisticsPerStream. The output minutes multiplicator for streams using a NexGuard A/B Watermarking. :return: The nex_guard_ab_watermarking_multiplicator of this StatisticsPerStream. :rtype: float """ return self._nex_guard_ab_watermarking_multiplicator @nex_guard_ab_watermarking_multiplicator.setter def nex_guard_ab_watermarking_multiplicator(self, nex_guard_ab_watermarking_multiplicator): # type: (float) -> None """Sets the nex_guard_ab_watermarking_multiplicator of this StatisticsPerStream. The output minutes multiplicator for streams using a NexGuard A/B Watermarking. :param nex_guard_ab_watermarking_multiplicator: The nex_guard_ab_watermarking_multiplicator of this StatisticsPerStream. :type: float """ if nex_guard_ab_watermarking_multiplicator is not None: if not isinstance(nex_guard_ab_watermarking_multiplicator, (float, int)): raise TypeError("Invalid type for `nex_guard_ab_watermarking_multiplicator`, type has to be `float`") self._nex_guard_ab_watermarking_multiplicator = nex_guard_ab_watermarking_multiplicator @property def pixel_format_bit_depth(self): # type: () -> PixelFormatBitDepth """Gets the pixel_format_bit_depth of this StatisticsPerStream. :return: The pixel_format_bit_depth of this StatisticsPerStream. :rtype: PixelFormatBitDepth """ return self._pixel_format_bit_depth @pixel_format_bit_depth.setter def pixel_format_bit_depth(self, pixel_format_bit_depth): # type: (PixelFormatBitDepth) -> None """Sets the pixel_format_bit_depth of this StatisticsPerStream. :param pixel_format_bit_depth: The pixel_format_bit_depth of this StatisticsPerStream. :type: PixelFormatBitDepth """ if pixel_format_bit_depth is not None: if not isinstance(pixel_format_bit_depth, PixelFormatBitDepth): raise TypeError("Invalid type for `pixel_format_bit_depth`, type has to be `PixelFormatBitDepth`") self._pixel_format_bit_depth = pixel_format_bit_depth @property def pixel_format_multiplicator(self): # type: () -> float """Gets the pixel_format_multiplicator of this StatisticsPerStream. The output minutes multiplicator for the pixel format bit depth :return: The pixel_format_multiplicator of this StatisticsPerStream. :rtype: float """ return self._pixel_format_multiplicator @pixel_format_multiplicator.setter def pixel_format_multiplicator(self, pixel_format_multiplicator): # type: (float) -> None """Sets the pixel_format_multiplicator of this StatisticsPerStream. The output minutes multiplicator for the pixel format bit depth :param pixel_format_multiplicator: The pixel_format_multiplicator of this StatisticsPerStream. :type: float """ if pixel_format_multiplicator is not None: if not isinstance(pixel_format_multiplicator, (float, int)): raise TypeError("Invalid type for `pixel_format_multiplicator`, type has to be `float`") self._pixel_format_multiplicator = pixel_format_multiplicator @property def input_factor(self): # type: () -> InputFactor """Gets the input_factor of this StatisticsPerStream. :return: The input_factor of this StatisticsPerStream. :rtype: InputFactor """ return self._input_factor @input_factor.setter def input_factor(self, input_factor): # type: (InputFactor) -> None """Sets the input_factor of this StatisticsPerStream. :param input_factor: The input_factor of this StatisticsPerStream. :type: InputFactor """ if input_factor is not None: if not isinstance(input_factor, InputFactor): raise TypeError("Invalid type for `input_factor`, type has to be `InputFactor`") self._input_factor = input_factor
[docs] def to_dict(self): """Returns the model properties as a dict""" result = {} for attr, _ in six.iteritems(self.openapi_types): value = getattr(self, attr) if value is None: continue if isinstance(value, list): if len(value) == 0: continue result[self.attribute_map.get(attr)] = [y.value if isinstance(y, Enum) else y for y in [x.to_dict() if hasattr(x, "to_dict") else x for x in value]] elif hasattr(value, "to_dict"): result[self.attribute_map.get(attr)] = value.to_dict() elif isinstance(value, Enum): result[self.attribute_map.get(attr)] = value.value elif isinstance(value, dict): result[self.attribute_map.get(attr)] = {k: (v.to_dict() if hasattr(v, "to_dict") else v) for (k, v) in value.items()} else: result[self.attribute_map.get(attr)] = value return result
[docs] def to_str(self): """Returns the string representation of the model""" return pprint.pformat(self.to_dict())
def __repr__(self): """For `print` and `pprint`""" return self.to_str() def __eq__(self, other): """Returns true if both objects are equal""" if not isinstance(other, StatisticsPerStream): return False return self.__dict__ == other.__dict__ def __ne__(self, other): """Returns true if both objects are not equal""" return not self == other