Skip to content

Commit

Permalink
[Media] Updating swagger link for LVA sdk (Azure#16006)
Browse files Browse the repository at this point in the history
* added lva sdk package

* updating swagger link and regenerating

* removing old sdk folder

* updating changelog

* changing back to original version
  • Loading branch information
hivyas authored and rakshith91 committed Jan 8, 2021
1 parent c4d64f6 commit 7896298
Show file tree
Hide file tree
Showing 5 changed files with 74 additions and 79 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@
MediaGraphInstanceState,
MediaGraphMotionDetectionSensitivity,
MediaGraphOutputSelectorOperator,
MediaGraphOutputSelectorProperty,
MediaGraphParameterType,
MediaGraphRtspTransport,
)
Expand Down Expand Up @@ -198,6 +199,7 @@
'MediaGraphInstanceState',
'MediaGraphMotionDetectionSensitivity',
'MediaGraphOutputSelectorOperator',
'MediaGraphOutputSelectorProperty',
'MediaGraphParameterType',
'MediaGraphRtspTransport',
]
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ class MediaGraphOutputSelectorOperator(with_metaclass(_CaseInsensitiveEnumMeta,
IS_ENUM = "is" #: A media type is the same type or a subtype.
IS_NOT = "isNot" #: A media type is not the same type or a subtype.

class MediaGraphOutputSelectorProperty(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The stream property to compare with.
"""

MEDIA_TYPE = "mediaType" #: The stream's MIME type or subtype.

class MediaGraphParameterType(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
"""The type of the parameter.
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@


class MethodRequest(msrest.serialization.Model):
"""MethodRequest.
"""Base Class for Method Requests.
You probably want to use the sub-classes and not this class directly. Known
sub-classes are: MediaGraphInstanceListRequest, MediaGraphInstanceSetRequest, MediaGraphTopologyListRequest, MediaGraphTopologySetRequest, ItemNonSetRequestBase, MediaGraphInstanceSetRequestBody, MediaGraphTopologySetRequestBody.
Expand Down Expand Up @@ -842,22 +842,15 @@ def __init__(
class MediaGraphImageScale(msrest.serialization.Model):
"""The scaling mode for the image.
All required parameters must be populated in order to send to Azure.
:param mode: Required. Describes the modes for scaling an input video frame into an image,
before it is sent to an inference engine. Possible values include: "PreserveAspectRatio",
"Pad", "Stretch".
:param mode: Describes the modes for scaling an input video frame into an image, before it is
sent to an inference engine. Possible values include: "PreserveAspectRatio", "Pad", "Stretch".
:type mode: str or ~azure.media.analyticsedge.models.MediaGraphImageScaleMode
:param width: The desired output width of the image.
:type width: str
:param height: The desired output height of the image.
:type height: str
"""

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

_attribute_map = {
'mode': {'key': 'mode', 'type': 'str'},
'width': {'key': 'width', 'type': 'str'},
Expand All @@ -869,7 +862,7 @@ def __init__(
**kwargs
):
super(MediaGraphImageScale, self).__init__(**kwargs)
self.mode = kwargs['mode']
self.mode = kwargs.get('mode', None)
self.width = kwargs.get('width', None)
self.height = kwargs.get('height', None)

Expand Down Expand Up @@ -909,7 +902,7 @@ def __init__(


class MediaGraphInstanceActivateRequest(ItemNonSetRequestBase):
"""MediaGraphInstanceActivateRequest.
"""Represents the MediaGraphInstanceActivateRequest.
Variables are only populated by the server, and will be ignored when sending a request.
Expand Down Expand Up @@ -971,7 +964,7 @@ def __init__(


class MediaGraphInstanceDeActivateRequest(ItemNonSetRequestBase):
"""MediaGraphInstanceDeActivateRequest.
"""Represents the MediaGraphInstanceDeactivateRequest.
Variables are only populated by the server, and will be ignored when sending a request.
Expand Down Expand Up @@ -1008,7 +1001,7 @@ def __init__(


class MediaGraphInstanceDeleteRequest(ItemNonSetRequestBase):
"""MediaGraphInstanceDeleteRequest.
"""Represents the MediaGraphInstanceDeleteRequest.
Variables are only populated by the server, and will be ignored when sending a request.
Expand Down Expand Up @@ -1045,7 +1038,7 @@ def __init__(


class MediaGraphInstanceGetRequest(ItemNonSetRequestBase):
"""MediaGraphInstanceGetRequest.
"""Represents the MediaGraphInstanceGetRequest.
Variables are only populated by the server, and will be ignored when sending a request.
Expand Down Expand Up @@ -1082,7 +1075,7 @@ def __init__(


class MediaGraphInstanceListRequest(MethodRequest):
"""MediaGraphInstanceListRequest.
"""Represents the MediaGraphInstanceListRequest.
Variables are only populated by the server, and will be ignored when sending a request.
Expand Down Expand Up @@ -1148,7 +1141,7 @@ def __init__(


class MediaGraphInstanceSetRequest(MethodRequest):
"""MediaGraphInstanceSetRequest.
"""Represents the MediaGraphInstanceSetRequest.
Variables are only populated by the server, and will be ignored when sending a request.
Expand Down Expand Up @@ -1186,7 +1179,7 @@ def __init__(


class MediaGraphInstanceSetRequestBody(MediaGraphInstance, MethodRequest):
"""MediaGraphInstanceSetRequestBody.
"""Represents the MediaGraphInstanceSetRequest body.
Variables are only populated by the server, and will be ignored when sending a request.
Expand Down Expand Up @@ -1399,13 +1392,19 @@ def __init__(
class MediaGraphNodeInput(msrest.serialization.Model):
"""Represents the input to any node in a media graph.
:param node_name: The name of another node in the media graph, the output of which is used as
input to this node.
All required parameters must be populated in order to send to Azure.
:param node_name: Required. The name of another node in the media graph, the output of which is
used as input to this node.
:type node_name: str
:param output_selectors: Allows for the selection of particular streams from another node.
:type output_selectors: list[~azure.media.analyticsedge.models.MediaGraphOutputSelector]
"""

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

_attribute_map = {
'node_name': {'key': 'nodeName', 'type': 'str'},
'output_selectors': {'key': 'outputSelectors', 'type': '[MediaGraphOutputSelector]'},
Expand All @@ -1416,40 +1415,33 @@ def __init__(
**kwargs
):
super(MediaGraphNodeInput, self).__init__(**kwargs)
self.node_name = kwargs.get('node_name', None)
self.node_name = kwargs['node_name']
self.output_selectors = kwargs.get('output_selectors', None)


class MediaGraphOutputSelector(msrest.serialization.Model):
"""Allows for the selection of particular streams from another node.
Variables are only populated by the server, and will be ignored when sending a request.
:ivar property: The stream property to compare with. Default value: "mediaType".
:vartype property: str
:param property: The stream property to compare with. Possible values include: "mediaType".
:type property: str or ~azure.media.analyticsedge.models.MediaGraphOutputSelectorProperty
:param operator: The operator to compare streams by. Possible values include: "is", "isNot".
:type operator: str or ~azure.media.analyticsedge.models.MediaGraphOutputSelectorOperator
:param value: Value to compare against.
:type value: str
"""

_validation = {
'property': {'constant': True},
}

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

property = "mediaType"

def __init__(
self,
**kwargs
):
super(MediaGraphOutputSelector, self).__init__(**kwargs)
self.property = kwargs.get('property', None)
self.operator = kwargs.get('operator', None)
self.value = kwargs.get('value', None)

Expand Down Expand Up @@ -1826,7 +1818,7 @@ def __init__(


class MediaGraphTopologyDeleteRequest(ItemNonSetRequestBase):
"""MediaGraphTopologyDeleteRequest.
"""Represents the MediaGraphTopologyDeleteRequest.
Variables are only populated by the server, and will be ignored when sending a request.
Expand Down Expand Up @@ -1863,7 +1855,7 @@ def __init__(


class MediaGraphTopologyGetRequest(ItemNonSetRequestBase):
"""MediaGraphTopologyGetRequest.
"""Represents the MediaGraphTopologyGetRequest.
Variables are only populated by the server, and will be ignored when sending a request.
Expand Down Expand Up @@ -1900,7 +1892,7 @@ def __init__(


class MediaGraphTopologyListRequest(MethodRequest):
"""MediaGraphTopologyListRequest.
"""Represents the MediaGraphTopologyListRequest.
Variables are only populated by the server, and will be ignored when sending a request.
Expand Down Expand Up @@ -1970,7 +1962,7 @@ def __init__(


class MediaGraphTopologySetRequest(MethodRequest):
"""MediaGraphTopologySetRequest.
"""Represents the MediaGraphTopologySetRequest.
Variables are only populated by the server, and will be ignored when sending a request.
Expand Down Expand Up @@ -2008,7 +2000,7 @@ def __init__(


class MediaGraphTopologySetRequestBody(MediaGraphTopology, MethodRequest):
"""MediaGraphTopologySetRequestBody.
"""Represents the MediaGraphTopologySetRequest body.
Variables are only populated by the server, and will be ignored when sending a request.
Expand Down Expand Up @@ -2096,14 +2088,15 @@ class MediaGraphUsernamePasswordCredentials(MediaGraphCredentials):
:type type: str
:param username: Required. Username for a username/password pair.
:type username: str
:param password: Password for a username/password pair. Please use a parameter so that the
actual value is not returned on PUT or GET requests.
:param password: Required. Password for a username/password pair. Please use a parameter so
that the actual value is not returned on PUT or GET requests.
:type password: str
"""

_validation = {
'type': {'required': True},
'username': {'required': True},
'password': {'required': True},
}

_attribute_map = {
Expand All @@ -2119,4 +2112,4 @@ def __init__(
super(MediaGraphUsernamePasswordCredentials, self).__init__(**kwargs)
self.type = '#Microsoft.Media.MediaGraphUsernamePasswordCredentials' # type: str
self.username = kwargs['username']
self.password = kwargs.get('password', None)
self.password = kwargs['password']
Loading

0 comments on commit 7896298

Please sign in to comment.