Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,6 @@ def __init__(
super(AzureMediaServices, self).__init__(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2018-07-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,9 @@
from .live_event_preview_access_control_py3 import LiveEventPreviewAccessControl
from .live_event_preview_py3 import LiveEventPreview
from .live_event_encoding_py3 import LiveEventEncoding
from .live_event_input_track_selection_py3 import LiveEventInputTrackSelection
from .live_event_output_transcription_track_py3 import LiveEventOutputTranscriptionTrack
from .live_event_transcription_py3 import LiveEventTranscription
from .cross_site_access_policies_py3 import CrossSiteAccessPolicies
from .live_event_action_input_py3 import LiveEventActionInput
from .live_event_py3 import LiveEvent
Expand Down Expand Up @@ -291,6 +294,9 @@
from .live_event_preview_access_control import LiveEventPreviewAccessControl
from .live_event_preview import LiveEventPreview
from .live_event_encoding import LiveEventEncoding
from .live_event_input_track_selection import LiveEventInputTrackSelection
from .live_event_output_transcription_track import LiveEventOutputTranscriptionTrack
from .live_event_transcription import LiveEventTranscription
from .cross_site_access_policies import CrossSiteAccessPolicies
from .live_event_action_input import LiveEventActionInput
from .live_event import LiveEvent
Expand Down Expand Up @@ -493,6 +499,9 @@
'LiveEventPreviewAccessControl',
'LiveEventPreview',
'LiveEventEncoding',
'LiveEventInputTrackSelection',
'LiveEventOutputTranscriptionTrack',
'LiveEventTranscription',
'CrossSiteAccessPolicies',
'LiveEventActionInput',
'LiveEvent',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ class EncoderNamedPreset(str, Enum):
content_aware_encoding_experimental = "ContentAwareEncodingExperimental" #: Exposes an experimental preset for content-aware encoding. Given any input content, the service attempts to automatically determine the optimal number of layers, appropriate bitrate and resolution settings for delivery by adaptive streaming. The underlying algorithms will continue to evolve over time. The output will contain MP4 files with video and audio interleaved.
h264_multiple_bitrate1080p = "H264MultipleBitrate1080p" #: Produces a set of 8 GOP-aligned MP4 files, ranging from 6000 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 1080p and goes down to 360p.
h264_multiple_bitrate720p = "H264MultipleBitrate720p" #: Produces a set of 6 GOP-aligned MP4 files, ranging from 3400 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 720p and goes down to 360p.
h264_multiple_bitrate_sd = "H264MultipleBitrateSD" #: Produces a set of 5 GOP-aligned MP4 files, ranging from 1600kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 360p.
h264_multiple_bitrate_sd = "H264MultipleBitrateSD" #: Produces a set of 5 GOP-aligned MP4 files, ranging from 1600 kbps to 400 kbps, and stereo AAC audio. Resolution starts at 480p and goes down to 360p.


class InsightsType(str, Enum):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class LiveEvent(TrackedResource):
:type preview: ~azure.mgmt.media.models.LiveEventPreview
:param encoding: The Live Event encoding.
:type encoding: ~azure.mgmt.media.models.LiveEventEncoding
:param transcriptions: The Live Event transcription.
:type transcriptions:
list[~azure.mgmt.media.models.LiveEventTranscription]
:ivar provisioning_state: The provisioning state of the Live Event.
:vartype provisioning_state: str
:ivar resource_state: The resource state of the Live Event. Possible
Expand Down Expand Up @@ -81,6 +84,7 @@ class LiveEvent(TrackedResource):
'input': {'key': 'properties.input', 'type': 'LiveEventInput'},
'preview': {'key': 'properties.preview', 'type': 'LiveEventPreview'},
'encoding': {'key': 'properties.encoding', 'type': 'LiveEventEncoding'},
'transcriptions': {'key': 'properties.transcriptions', 'type': '[LiveEventTranscription]'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'resource_state': {'key': 'properties.resourceState', 'type': 'str'},
'cross_site_access_policies': {'key': 'properties.crossSiteAccessPolicies', 'type': 'CrossSiteAccessPolicies'},
Expand All @@ -96,6 +100,7 @@ def __init__(self, **kwargs):
self.input = kwargs.get('input', None)
self.preview = kwargs.get('preview', None)
self.encoding = kwargs.get('encoding', None)
self.transcriptions = kwargs.get('transcriptions', None)
self.provisioning_state = None
self.resource_state = None
self.cross_site_access_policies = kwargs.get('cross_site_access_policies', None)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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


class LiveEventInputTrackSelection(Model):
"""A track selection condition.

:param property: Property name to select.
:type property: str
:param operation: Comparing operation.
:type operation: str
:param value: Property value to select.
:type value: str
"""

_attribute_map = {
'property': {'key': 'property', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'str'},
'value': {'key': 'value', 'type': 'str'},
}

def __init__(self, **kwargs):
super(LiveEventInputTrackSelection, self).__init__(**kwargs)
self.property = kwargs.get('property', None)
self.operation = kwargs.get('operation', None)
self.value = kwargs.get('value', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# 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


class LiveEventInputTrackSelection(Model):
"""A track selection condition.

:param property: Property name to select.
:type property: str
:param operation: Comparing operation.
:type operation: str
:param value: Property value to select.
:type value: str
"""

_attribute_map = {
'property': {'key': 'property', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'str'},
'value': {'key': 'value', 'type': 'str'},
}

def __init__(self, *, property: str=None, operation: str=None, value: str=None, **kwargs) -> None:
super(LiveEventInputTrackSelection, self).__init__(**kwargs)
self.property = property
self.operation = operation
self.value = value
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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


class LiveEventOutputTranscriptionTrack(Model):
"""Describes a transcription track in the output of a Live Event, generated
using speech-to-text transcription.

All required parameters must be populated in order to send to Azure.

:param track_name: Required. The output track name.
:type track_name: str
"""

_validation = {
'track_name': {'required': True},
}

_attribute_map = {
'track_name': {'key': 'trackName', 'type': 'str'},
}

def __init__(self, **kwargs):
super(LiveEventOutputTranscriptionTrack, self).__init__(**kwargs)
self.track_name = kwargs.get('track_name', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# 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


class LiveEventOutputTranscriptionTrack(Model):
"""Describes a transcription track in the output of a Live Event, generated
using speech-to-text transcription.

All required parameters must be populated in order to send to Azure.

:param track_name: Required. The output track name.
:type track_name: str
"""

_validation = {
'track_name': {'required': True},
}

_attribute_map = {
'track_name': {'key': 'trackName', 'type': 'str'},
}

def __init__(self, *, track_name: str, **kwargs) -> None:
super(LiveEventOutputTranscriptionTrack, self).__init__(**kwargs)
self.track_name = track_name
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ class LiveEvent(TrackedResource):
:type preview: ~azure.mgmt.media.models.LiveEventPreview
:param encoding: The Live Event encoding.
:type encoding: ~azure.mgmt.media.models.LiveEventEncoding
:param transcriptions: The Live Event transcription.
:type transcriptions:
list[~azure.mgmt.media.models.LiveEventTranscription]
:ivar provisioning_state: The provisioning state of the Live Event.
:vartype provisioning_state: str
:ivar resource_state: The resource state of the Live Event. Possible
Expand Down Expand Up @@ -81,6 +84,7 @@ class LiveEvent(TrackedResource):
'input': {'key': 'properties.input', 'type': 'LiveEventInput'},
'preview': {'key': 'properties.preview', 'type': 'LiveEventPreview'},
'encoding': {'key': 'properties.encoding', 'type': 'LiveEventEncoding'},
'transcriptions': {'key': 'properties.transcriptions', 'type': '[LiveEventTranscription]'},
'provisioning_state': {'key': 'properties.provisioningState', 'type': 'str'},
'resource_state': {'key': 'properties.resourceState', 'type': 'str'},
'cross_site_access_policies': {'key': 'properties.crossSiteAccessPolicies', 'type': 'CrossSiteAccessPolicies'},
Expand All @@ -90,12 +94,13 @@ class LiveEvent(TrackedResource):
'last_modified': {'key': 'properties.lastModified', 'type': 'iso-8601'},
}

def __init__(self, *, input, tags=None, location: str=None, description: str=None, preview=None, encoding=None, cross_site_access_policies=None, vanity_url: bool=None, stream_options=None, **kwargs) -> None:
def __init__(self, *, input, tags=None, location: str=None, description: str=None, preview=None, encoding=None, transcriptions=None, cross_site_access_policies=None, vanity_url: bool=None, stream_options=None, **kwargs) -> None:
super(LiveEvent, self).__init__(tags=tags, location=location, **kwargs)
self.description = description
self.input = input
self.preview = preview
self.encoding = encoding
self.transcriptions = transcriptions
self.provisioning_state = None
self.resource_state = None
self.cross_site_access_policies = cross_site_access_policies
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 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


class LiveEventTranscription(Model):
"""Describes the transcription tracks in the output of a Live Event, generated
using speech-to-text transcription.

:param language: Specifies the language (locale) used for speech-to-text
transcription � it should match the spoken language in the audio track.
The value should be in BCP-47 format of 'language tag-region' (e.g:
'en-US'). The list of supported languages are 'en-US' and 'en-GB'.
:type language: str
:param input_track_selection: Provides a mechanism to select the audio
track in the input live feed, to which speech-to-text transcription is
applied.
:type input_track_selection:
list[~azure.mgmt.media.models.LiveEventInputTrackSelection]
:param output_transcription_track: Describes a transcription track in the
output of a Live Event, generated using speech-to-text transcription.
:type output_transcription_track:
~azure.mgmt.media.models.LiveEventOutputTranscriptionTrack
"""

_attribute_map = {
'language': {'key': 'language', 'type': 'str'},
'input_track_selection': {'key': 'inputTrackSelection', 'type': '[LiveEventInputTrackSelection]'},
'output_transcription_track': {'key': 'outputTranscriptionTrack', 'type': 'LiveEventOutputTranscriptionTrack'},
}

def __init__(self, **kwargs):
super(LiveEventTranscription, self).__init__(**kwargs)
self.language = kwargs.get('language', None)
self.input_track_selection = kwargs.get('input_track_selection', None)
self.output_transcription_track = kwargs.get('output_transcription_track', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# 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


class LiveEventTranscription(Model):
"""Describes the transcription tracks in the output of a Live Event, generated
using speech-to-text transcription.

:param language: Specifies the language (locale) used for speech-to-text
transcription � it should match the spoken language in the audio track.
The value should be in BCP-47 format of 'language tag-region' (e.g:
'en-US'). The list of supported languages are 'en-US' and 'en-GB'.
:type language: str
:param input_track_selection: Provides a mechanism to select the audio
track in the input live feed, to which speech-to-text transcription is
applied.
:type input_track_selection:
list[~azure.mgmt.media.models.LiveEventInputTrackSelection]
:param output_transcription_track: Describes a transcription track in the
output of a Live Event, generated using speech-to-text transcription.
:type output_transcription_track:
~azure.mgmt.media.models.LiveEventOutputTranscriptionTrack
"""

_attribute_map = {
'language': {'key': 'language', 'type': 'str'},
'input_track_selection': {'key': 'inputTrackSelection', 'type': '[LiveEventInputTrackSelection]'},
'output_transcription_track': {'key': 'outputTranscriptionTrack', 'type': 'LiveEventOutputTranscriptionTrack'},
}

def __init__(self, *, language: str=None, input_track_selection=None, output_transcription_track=None, **kwargs) -> None:
super(LiveEventTranscription, self).__init__(**kwargs)
self.language = language
self.input_track_selection = input_track_selection
self.output_transcription_track = output_transcription_track
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ def list(
:type transform_name: str
:param filter: Restricts the set of items returned.
:type filter: str
:param orderby: Specifies the key by which the result collection
should be ordered.
:param orderby: Specifies the by which the result collection should be
ordered.
:type orderby: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class LiveEventsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The Version of the API to be used with the client request. Constant value: "2018-07-01".
:ivar api_version: The Version of the API to be used with the client request. Constant value: "2019-05-01-preview".
"""

models = models
Expand All @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2018-07-01"
self.api_version = "2019-05-01-preview"

self.config = config

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class LiveOutputsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An object model deserializer.
:ivar api_version: The Version of the API to be used with the client request. Constant value: "2018-07-01".
:ivar api_version: The Version of the API to be used with the client request. Constant value: "2019-05-01-preview".
"""

models = models
Expand All @@ -34,7 +34,7 @@ def __init__(self, client, config, serializer, deserializer):
self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2018-07-01"
self.api_version = "2019-05-01-preview"

self.config = config

Expand Down
Loading