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 @@ -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
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 specified 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'
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 specified 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'
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ class LiveEventEncodingType(str, Enum):
none = "None"
basic = "Basic"
standard = "Standard"
premium1080p = "Premium1080p"


class LiveEventResourceState(str, Enum):
Expand Down
42 changes: 42 additions & 0 deletions sdk/media/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
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
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class FilterTrackPropertyCondition(Model):
:param property: Required. The track property type. Possible values
include: 'Unknown', 'Type', 'Name', 'Language', 'FourCC', 'Bitrate'
:type property: str or ~azure.mgmt.media.models.FilterTrackPropertyType
:param value: Required. The track proprty value.
:param value: Required. The track property value.
:type value: str
:param operation: Required. The track property condition operation.
Possible values include: 'Equal', 'NotEqual'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class FilterTrackPropertyCondition(Model):
:param property: Required. The track property type. Possible values
include: 'Unknown', 'Type', 'Name', 'Language', 'FourCC', 'Bitrate'
:type property: str or ~azure.mgmt.media.models.FilterTrackPropertyType
:param value: Required. The track proprty value.
:param value: Required. The track property value.
:type value: str
:param operation: Required. The track property condition operation.
Possible values include: 'Equal', 'NotEqual'
Expand Down
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
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'
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'
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'
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
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'
Loading