Skip to content
Closed
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
6 changes: 6 additions & 0 deletions azure-mgmt-media/azure/mgmt/media/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,9 @@
from .transform_output_py3 import TransformOutput
from .transform_py3 import Transform
from .job_input_py3 import JobInput
from .clip_time_py3 import ClipTime
from .job_input_clip_py3 import JobInputClip
from .absolute_clip_time_py3 import AbsoluteClipTime
from .job_inputs_py3 import JobInputs
from .job_input_asset_py3 import JobInputAsset
from .job_input_http_py3 import JobInputHttp
Expand Down Expand Up @@ -247,7 +249,9 @@
from .transform_output import TransformOutput
from .transform import Transform
from .job_input import JobInput
from .clip_time import ClipTime
from .job_input_clip import JobInputClip
from .absolute_clip_time import AbsoluteClipTime
from .job_inputs import JobInputs
from .job_input_asset import JobInputAsset
from .job_input_http import JobInputHttp
Expand Down Expand Up @@ -447,7 +451,9 @@
'TransformOutput',
'Transform',
'JobInput',
'ClipTime',
'JobInputClip',
'AbsoluteClipTime',
'JobInputs',
'JobInputAsset',
'JobInputHttp',
Expand Down
43 changes: 43 additions & 0 deletions azure-mgmt-media/azure/mgmt/media/models/absolute_clip_time.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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 .clip_time import ClipTime


class AbsoluteClipTime(ClipTime):
"""Specifies the clip time as an absolute time position in the media file.
The absolute time can point to a different position depending on whether
the media file starts from a timestamp of zero or not.

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

:param odatatype: Required. Constant filled by server.
:type odatatype: str
:param time: Required. The time position on the timeline of the input
media. It is usually speicified as an ISO8601 period. e.g PT30S for 30
seconds.
:type time: timedelta
"""

_validation = {
'odatatype': {'required': True},
'time': {'required': True},
}

_attribute_map = {
'odatatype': {'key': '@odata\\.type', 'type': 'str'},
'time': {'key': 'time', 'type': 'duration'},
}

def __init__(self, **kwargs):
super(AbsoluteClipTime, self).__init__(**kwargs)
self.time = kwargs.get('time', None)
self.odatatype = '#Microsoft.Media.AbsoluteClipTime'
43 changes: 43 additions & 0 deletions azure-mgmt-media/azure/mgmt/media/models/absolute_clip_time_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# 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 .clip_time_py3 import ClipTime


class AbsoluteClipTime(ClipTime):
"""Specifies the clip time as an absolute time position in the media file.
The absolute time can point to a different position depending on whether
the media file starts from a timestamp of zero or not.

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

:param odatatype: Required. Constant filled by server.
:type odatatype: str
:param time: Required. The time position on the timeline of the input
media. It is usually speicified as an ISO8601 period. e.g PT30S for 30
seconds.
:type time: timedelta
"""

_validation = {
'odatatype': {'required': True},
'time': {'required': True},
}

_attribute_map = {
'odatatype': {'key': '@odata\\.type', 'type': 'str'},
'time': {'key': 'time', 'type': 'duration'},
}

def __init__(self, *, time, **kwargs) -> None:
super(AbsoluteClipTime, self).__init__(**kwargs)
self.time = time
self.odatatype = '#Microsoft.Media.AbsoluteClipTime'
42 changes: 42 additions & 0 deletions azure-mgmt-media/azure/mgmt/media/models/clip_time.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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 ClipTime(Model):
"""Base class for specifying a clip time. Use sub classes of this class to
specify the time position in the media.

You probably want to use the sub-classes and not this class directly. Known
sub-classes are: AbsoluteClipTime

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

:param odatatype: Required. Constant filled by server.
:type odatatype: str
"""

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

_attribute_map = {
'odatatype': {'key': '@odata\\.type', 'type': 'str'},
}

_subtype_map = {
'odatatype': {'#Microsoft.Media.AbsoluteClipTime': 'AbsoluteClipTime'}
}

def __init__(self, **kwargs):
super(ClipTime, self).__init__(**kwargs)
self.odatatype = None
42 changes: 42 additions & 0 deletions azure-mgmt-media/azure/mgmt/media/models/clip_time_py3.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# 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 ClipTime(Model):
"""Base class for specifying a clip time. Use sub classes of this class to
specify the time position in the media.

You probably want to use the sub-classes and not this class directly. Known
sub-classes are: AbsoluteClipTime

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

:param odatatype: Required. Constant filled by server.
:type odatatype: str
"""

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

_attribute_map = {
'odatatype': {'key': '@odata\\.type', 'type': 'str'},
}

_subtype_map = {
'odatatype': {'#Microsoft.Media.AbsoluteClipTime': 'AbsoluteClipTime'}
}

def __init__(self, **kwargs) -> None:
super(ClipTime, self).__init__(**kwargs)
self.odatatype = None
8 changes: 8 additions & 0 deletions azure-mgmt-media/azure/mgmt/media/models/job_input_asset.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ class JobInputAsset(JobInputClip):
:param files: List of files. Required for JobInputHttp. Maximum of 4000
characters each.
:type files: list[str]
:param start: Defines a point on the timeline of the input media at which
processing will start. Defaults to the beginning of the input media.
:type start: ~azure.mgmt.media.models.ClipTime
:param end: Defines a point on the timeline of the input media at which
processing will end. Defaults to the end of the input media.
:type end: ~azure.mgmt.media.models.ClipTime
:param label: A label that is assigned to a JobInputClip, that is used to
satisfy a reference used in the Transform. For example, a Transform can be
authored so as to take an image file with the label 'xyz' and apply it as
Expand All @@ -41,6 +47,8 @@ class JobInputAsset(JobInputClip):
_attribute_map = {
'odatatype': {'key': '@odata\\.type', 'type': 'str'},
'files': {'key': 'files', 'type': '[str]'},
'start': {'key': 'start', 'type': 'ClipTime'},
'end': {'key': 'end', 'type': 'ClipTime'},
'label': {'key': 'label', 'type': 'str'},
'asset_name': {'key': 'assetName', 'type': 'str'},
}
Expand Down
12 changes: 10 additions & 2 deletions azure-mgmt-media/azure/mgmt/media/models/job_input_asset_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ class JobInputAsset(JobInputClip):
:param files: List of files. Required for JobInputHttp. Maximum of 4000
characters each.
:type files: list[str]
:param start: Defines a point on the timeline of the input media at which
processing will start. Defaults to the beginning of the input media.
:type start: ~azure.mgmt.media.models.ClipTime
:param end: Defines a point on the timeline of the input media at which
processing will end. Defaults to the end of the input media.
:type end: ~azure.mgmt.media.models.ClipTime
:param label: A label that is assigned to a JobInputClip, that is used to
satisfy a reference used in the Transform. For example, a Transform can be
authored so as to take an image file with the label 'xyz' and apply it as
Expand All @@ -41,11 +47,13 @@ class JobInputAsset(JobInputClip):
_attribute_map = {
'odatatype': {'key': '@odata\\.type', 'type': 'str'},
'files': {'key': 'files', 'type': '[str]'},
'start': {'key': 'start', 'type': 'ClipTime'},
'end': {'key': 'end', 'type': 'ClipTime'},
'label': {'key': 'label', 'type': 'str'},
'asset_name': {'key': 'assetName', 'type': 'str'},
}

def __init__(self, *, asset_name: str, files=None, label: str=None, **kwargs) -> None:
super(JobInputAsset, self).__init__(files=files, label=label, **kwargs)
def __init__(self, *, asset_name: str, files=None, start=None, end=None, label: str=None, **kwargs) -> None:
super(JobInputAsset, self).__init__(files=files, start=start, end=end, label=label, **kwargs)
self.asset_name = asset_name
self.odatatype = '#Microsoft.Media.JobInputAsset'
10 changes: 10 additions & 0 deletions azure-mgmt-media/azure/mgmt/media/models/job_input_clip.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ class JobInputClip(JobInput):
:param files: List of files. Required for JobInputHttp. Maximum of 4000
characters each.
:type files: list[str]
:param start: Defines a point on the timeline of the input media at which
processing will start. Defaults to the beginning of the input media.
:type start: ~azure.mgmt.media.models.ClipTime
:param end: Defines a point on the timeline of the input media at which
processing will end. Defaults to the end of the input media.
:type end: ~azure.mgmt.media.models.ClipTime
:param label: A label that is assigned to a JobInputClip, that is used to
satisfy a reference used in the Transform. For example, a Transform can be
authored so as to take an image file with the label 'xyz' and apply it as
Expand All @@ -41,6 +47,8 @@ class JobInputClip(JobInput):
_attribute_map = {
'odatatype': {'key': '@odata\\.type', 'type': 'str'},
'files': {'key': 'files', 'type': '[str]'},
'start': {'key': 'start', 'type': 'ClipTime'},
'end': {'key': 'end', 'type': 'ClipTime'},
'label': {'key': 'label', 'type': 'str'},
}

Expand All @@ -51,5 +59,7 @@ class JobInputClip(JobInput):
def __init__(self, **kwargs):
super(JobInputClip, self).__init__(**kwargs)
self.files = kwargs.get('files', None)
self.start = kwargs.get('start', None)
self.end = kwargs.get('end', None)
self.label = kwargs.get('label', None)
self.odatatype = '#Microsoft.Media.JobInputClip'
12 changes: 11 additions & 1 deletion azure-mgmt-media/azure/mgmt/media/models/job_input_clip_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ class JobInputClip(JobInput):
:param files: List of files. Required for JobInputHttp. Maximum of 4000
characters each.
:type files: list[str]
:param start: Defines a point on the timeline of the input media at which
processing will start. Defaults to the beginning of the input media.
:type start: ~azure.mgmt.media.models.ClipTime
:param end: Defines a point on the timeline of the input media at which
processing will end. Defaults to the end of the input media.
:type end: ~azure.mgmt.media.models.ClipTime
:param label: A label that is assigned to a JobInputClip, that is used to
satisfy a reference used in the Transform. For example, a Transform can be
authored so as to take an image file with the label 'xyz' and apply it as
Expand All @@ -41,15 +47,19 @@ class JobInputClip(JobInput):
_attribute_map = {
'odatatype': {'key': '@odata\\.type', 'type': 'str'},
'files': {'key': 'files', 'type': '[str]'},
'start': {'key': 'start', 'type': 'ClipTime'},
'end': {'key': 'end', 'type': 'ClipTime'},
'label': {'key': 'label', 'type': 'str'},
}

_subtype_map = {
'odatatype': {'#Microsoft.Media.JobInputAsset': 'JobInputAsset', '#Microsoft.Media.JobInputHttp': 'JobInputHttp'}
}

def __init__(self, *, files=None, label: str=None, **kwargs) -> None:
def __init__(self, *, files=None, start=None, end=None, label: str=None, **kwargs) -> None:
super(JobInputClip, self).__init__(**kwargs)
self.files = files
self.start = start
self.end = end
self.label = label
self.odatatype = '#Microsoft.Media.JobInputClip'
8 changes: 8 additions & 0 deletions azure-mgmt-media/azure/mgmt/media/models/job_input_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ class JobInputHttp(JobInputClip):
:param files: List of files. Required for JobInputHttp. Maximum of 4000
characters each.
:type files: list[str]
:param start: Defines a point on the timeline of the input media at which
processing will start. Defaults to the beginning of the input media.
:type start: ~azure.mgmt.media.models.ClipTime
:param end: Defines a point on the timeline of the input media at which
processing will end. Defaults to the end of the input media.
:type end: ~azure.mgmt.media.models.ClipTime
:param label: A label that is assigned to a JobInputClip, that is used to
satisfy a reference used in the Transform. For example, a Transform can be
authored so as to take an image file with the label 'xyz' and apply it as
Expand All @@ -43,6 +49,8 @@ class JobInputHttp(JobInputClip):
_attribute_map = {
'odatatype': {'key': '@odata\\.type', 'type': 'str'},
'files': {'key': 'files', 'type': '[str]'},
'start': {'key': 'start', 'type': 'ClipTime'},
'end': {'key': 'end', 'type': 'ClipTime'},
'label': {'key': 'label', 'type': 'str'},
'base_uri': {'key': 'baseUri', 'type': 'str'},
}
Expand Down
12 changes: 10 additions & 2 deletions azure-mgmt-media/azure/mgmt/media/models/job_input_http_py3.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,12 @@ class JobInputHttp(JobInputClip):
:param files: List of files. Required for JobInputHttp. Maximum of 4000
characters each.
:type files: list[str]
:param start: Defines a point on the timeline of the input media at which
processing will start. Defaults to the beginning of the input media.
:type start: ~azure.mgmt.media.models.ClipTime
:param end: Defines a point on the timeline of the input media at which
processing will end. Defaults to the end of the input media.
:type end: ~azure.mgmt.media.models.ClipTime
:param label: A label that is assigned to a JobInputClip, that is used to
satisfy a reference used in the Transform. For example, a Transform can be
authored so as to take an image file with the label 'xyz' and apply it as
Expand All @@ -43,11 +49,13 @@ class JobInputHttp(JobInputClip):
_attribute_map = {
'odatatype': {'key': '@odata\\.type', 'type': 'str'},
'files': {'key': 'files', 'type': '[str]'},
'start': {'key': 'start', 'type': 'ClipTime'},
'end': {'key': 'end', 'type': 'ClipTime'},
'label': {'key': 'label', 'type': 'str'},
'base_uri': {'key': 'baseUri', 'type': 'str'},
}

def __init__(self, *, files=None, label: str=None, base_uri: str=None, **kwargs) -> None:
super(JobInputHttp, self).__init__(files=files, label=label, **kwargs)
def __init__(self, *, files=None, start=None, end=None, label: str=None, base_uri: str=None, **kwargs) -> None:
super(JobInputHttp, self).__init__(files=files, start=start, end=end, label=label, **kwargs)
self.base_uri = base_uri
self.odatatype = '#Microsoft.Media.JobInputHttp'
15 changes: 10 additions & 5 deletions azure-mgmt-media/azure/mgmt/media/models/video_analyzer_preset.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,16 @@ class VideoAnalyzerPreset(AudioAnalyzerPreset):
clearly discernable speech. If automatic detection fails to find the
language, transcription would fallback to 'en-US'."
:type audio_language: str
:param insights_to_extract: The type of insights to be extracted. If not
set then based on the content the type will selected. If the content is
audio only then only audio insights are extracted and if it is video only.
Possible values include: 'AudioInsightsOnly', 'VideoInsightsOnly',
'AllInsights'
:param insights_to_extract: Defines the type of insights that you want the
service to generate. The allowed values are 'AudioInsightsOnly',
'VideoInsightsOnly', and 'AllInsights'. The default is AllInsights. If you
set this to AllInsights and the input is audio only, then only audio
insights are generated. Similarly if the input is video only, then only
video insights are generated. It is recommended that you not use
AudioInsightsOnly if you expect some of your inputs to be video only; or
use VideoInsightsOnly if you expect some of your inputs to be audio only.
Your Jobs in such conditions would error out. Possible values include:
'AudioInsightsOnly', 'VideoInsightsOnly', 'AllInsights'
:type insights_to_extract: str or ~azure.mgmt.media.models.InsightsType
"""

Expand Down
Loading