Skip to content

Commit 2f35196

Browse files
authored
Removed OnvifDeviceGetRequestBody and OnVifDeviceDiscoverRequestBody (#16371)
* Removed OnvifDeviceGetRequestBody and OnVifDeviceDiscoverRequestBody * adding required to discoverduration * removing assetsink * making discoveryDuration optional
1 parent abf7b7e commit 2f35196

File tree

2 files changed

+6
-74
lines changed

2 files changed

+6
-74
lines changed

specification/videoanalyzer/data-plane/VideoAnalyzer.Edge/preview/1.1.0/AzureVideoAnalyzer.json

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1705,43 +1705,6 @@
17051705
"description": "Defines a Spatial Analysis person line crossing operation. This requires the Azure Cognitive Services Spatial analysis module to be deployed alongside the Video Analyzer module, please see https://aka.ms/ava-spatial-analysis for more information.",
17061706
"x-ms-discriminator-value": "#Microsoft.VideoAnalyzer.SpatialAnalysisPersonLineCrossingOperation"
17071707
},
1708-
"AssetSink": {
1709-
"type": "object",
1710-
"properties": {
1711-
"assetContainerSasUrl": {
1712-
"type": "string",
1713-
"description": "An Azure Storage SAS URL which points to container, such as the one created for an Azure Media Services asset.",
1714-
"example": "https://azurestorage.com/mycontainer?sig=mysecretkey"
1715-
},
1716-
"segmentLength": {
1717-
"type": "string",
1718-
"example": "PT30S",
1719-
"description": "When writing media to an asset, wait until at least this duration of media has been accumulated on the Edge. Expressed in increments of 30 seconds, with a minimum of 30 seconds and a recommended maximum of 5 minutes."
1720-
},
1721-
"localMediaCachePath": {
1722-
"type": "string",
1723-
"description": "Path to a local file system directory for temporary caching of media before writing to an Asset. Used when the Edge device is temporarily disconnected from Azure.",
1724-
"example": "/var/lib/tmp/"
1725-
},
1726-
"localMediaCacheMaximumSizeMiB": {
1727-
"type": "string",
1728-
"description": "Maximum amount of disk space that can be used for temporary caching of media."
1729-
}
1730-
},
1731-
"required": [
1732-
"@type",
1733-
"assetContainerSasUrl",
1734-
"localMediaCachePath",
1735-
"localMediaCacheMaximumSizeMiB"
1736-
],
1737-
"allOf": [
1738-
{
1739-
"$ref": "#/definitions/SinkNodeBase"
1740-
}
1741-
],
1742-
"description": "Enables a pipeline topology to record media to an Azure Media Services asset for subsequent playback.",
1743-
"x-ms-discriminator-value": "#Microsoft.VideoAnalyzer.AssetSink"
1744-
},
17451708
"RemoteDeviceAdapter": {
17461709
"type": "object",
17471710
"required": [

specification/videoanalyzer/data-plane/VideoAnalyzer.Edge/preview/1.1.0/AzureVideoAnalyzerSdkDefinitions.json

Lines changed: 6 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@
4242
"x-ms-enum": {
4343
"name": "apiVersionEnum",
4444
"modelAsString": false
45-
}
45+
},
46+
"x-ms-client-default": "1.1"
4647
}
4748
},
4849
"discriminator": "methodName",
@@ -265,8 +266,9 @@
265266
],
266267
"description": "Deletes an existing remote device adapter."
267268
},
268-
"OnvifDeviceDiscoverRequestBody": {
269+
"OnvifDeviceDiscoverRequest": {
269270
"type": "object",
271+
"x-ms-discriminator-value": "onvifDeviceDiscover",
270272
"allOf": [
271273
{
272274
"$ref": "#/definitions/MethodRequest"
@@ -278,25 +280,11 @@
278280
"description": "The amount of time that the ONVIF device discovery will wait for supported device responses."
279281
}
280282
},
281-
"description": "OnvifDeviceDiscover request body."
282-
},
283-
"OnvifDeviceDiscoverRequest": {
284-
"type": "object",
285-
"x-ms-discriminator-value": "onvifDeviceDiscover",
286-
"allOf": [
287-
{
288-
"$ref": "#/definitions/MethodRequest"
289-
}
290-
],
291-
"properties": {
292-
"onvifDeviceDiscoverRequestBody": {
293-
"$ref": "#/definitions/OnvifDeviceDiscoverRequestBody"
294-
}
295-
},
296283
"description": "Lists all the discoverable ONVIF devices on the same subnet as the Edge Module."
297284
},
298-
"OnvifDeviceGetRequestBody": {
285+
"OnvifDeviceGetRequest": {
299286
"type": "object",
287+
"x-ms-discriminator-value": "onvifDeviceGet",
300288
"allOf": [
301289
{
302290
"$ref": "#/definitions/MethodRequest"
@@ -307,28 +295,9 @@
307295
],
308296
"properties": {
309297
"endpoint": {
310-
"description": "ONVIF device endpoint.",
311298
"$ref": "./AzureVideoAnalyzer.json#/definitions/EndpointBase"
312299
}
313300
},
314-
"description": "OnvifDeviceGet request body."
315-
},
316-
"OnvifDeviceGetRequest": {
317-
"type": "object",
318-
"x-ms-discriminator-value": "onvifDeviceGet",
319-
"allOf": [
320-
{
321-
"$ref": "#/definitions/MethodRequest"
322-
}
323-
],
324-
"required": [
325-
"onvifDeviceGetRequestBody"
326-
],
327-
"properties": {
328-
"onvifDeviceGetRequestBody": {
329-
"$ref": "#/definitions/OnvifDeviceGetRequestBody"
330-
}
331-
},
332301
"description": "Retrieves properties and media profiles of an ONVIF device."
333302
}
334303
}

0 commit comments

Comments
 (0)