From 297b7526f051e08f3a430b50daadd356ba74c6e2 Mon Sep 17 00:00:00 2001 From: hivyas <61890270+hivyas@users.noreply.github.com> Date: Wed, 6 Jan 2021 16:04:18 -0600 Subject: [PATCH] [Media] New required property and descriptions (#12292) * minor changes to swagger * reverting sdk definitions file * adding nodename to required to correct constructors and adding descriptions * setting modelAsString to true * adding missed description --- .../preview/2.0.0/LiveVideoAnalytics.json | 11 ++++-- .../LiveVideoAnalyticsSdkDefinitions.json | 39 ++++++++++++------- 2 files changed, 33 insertions(+), 17 deletions(-) diff --git a/specification/mediaservices/data-plane/LiveVideoAnalytics.Edge/preview/2.0.0/LiveVideoAnalytics.json b/specification/mediaservices/data-plane/LiveVideoAnalytics.Edge/preview/2.0.0/LiveVideoAnalytics.json index 37df0ab6315f..6f2768c34dda 100644 --- a/specification/mediaservices/data-plane/LiveVideoAnalytics.Edge/preview/2.0.0/LiveVideoAnalytics.json +++ b/specification/mediaservices/data-plane/LiveVideoAnalytics.Edge/preview/2.0.0/LiveVideoAnalytics.json @@ -88,7 +88,7 @@ "description": "The media graph instance is transitioning into the inactive state." } ], - "modelAsString": false + "modelAsString": true } } }, @@ -265,7 +265,7 @@ "description": "A boolean value that is either true or false." } ], - "modelAsString": false + "modelAsString": true } }, "description": { @@ -569,6 +569,9 @@ }, "MediaGraphNodeInput": { "type": "object", + "required": [ + "nodeName" + ], "properties": { "nodeName": { "type": "string", @@ -601,7 +604,7 @@ "description": "The stream's MIME type or subtype." } ], - "modelAsString": false + "modelAsString": true } }, "operator": { @@ -623,7 +626,7 @@ "description": "A media type is not the same type or a subtype." } ], - "modelAsString": false + "modelAsString": true } }, "value": { diff --git a/specification/mediaservices/data-plane/LiveVideoAnalytics.Edge/preview/2.0.0/LiveVideoAnalyticsSdkDefinitions.json b/specification/mediaservices/data-plane/LiveVideoAnalytics.Edge/preview/2.0.0/LiveVideoAnalyticsSdkDefinitions.json index 1c4e79356c1f..147d26469752 100644 --- a/specification/mediaservices/data-plane/LiveVideoAnalytics.Edge/preview/2.0.0/LiveVideoAnalyticsSdkDefinitions.json +++ b/specification/mediaservices/data-plane/LiveVideoAnalytics.Edge/preview/2.0.0/LiveVideoAnalyticsSdkDefinitions.json @@ -45,7 +45,8 @@ } } }, - "discriminator": "methodName" + "discriminator": "methodName", + "description": "Base Class for Method Requests." }, "MediaGraphTopologySetRequest": { "type": "object", @@ -62,7 +63,8 @@ "graph": { "$ref": "./LiveVideoAnalytics.json#/definitions/MediaGraphTopology" } - } + }, + "description": "Represents the MediaGraphTopologySetRequest." }, "MediaGraphTopologySetRequestBody": { "type": "object", @@ -73,7 +75,8 @@ { "$ref": "./LiveVideoAnalytics.json#/definitions/MediaGraphTopology" } - ] + ], + "description": "Represents the MediaGraphTopologySetRequest body." }, "MediaGraphInstanceSetRequest": { "type": "object", @@ -90,7 +93,8 @@ "instance": { "$ref": "./LiveVideoAnalytics.json#/definitions/MediaGraphInstance" } - } + }, + "description": "Represents the MediaGraphInstanceSetRequest." }, "MediaGraphInstanceSetRequestBody": { "type": "object", @@ -101,7 +105,8 @@ { "$ref": "./LiveVideoAnalytics.json#/definitions/MediaGraphInstance" } - ] + ], + "description": "Represents the MediaGraphInstanceSetRequest body." }, "ItemNonSetRequestBase": { "type": "object", @@ -127,7 +132,8 @@ { "$ref": "#/definitions/MethodRequest" } - ] + ], + "description": "Represents the MediaGraphTopologyListRequest." }, "MediaGraphTopologyGetRequest": { "type": "object", @@ -136,7 +142,8 @@ { "$ref": "#/definitions/ItemNonSetRequestBase" } - ] + ], + "description": "Represents the MediaGraphTopologyGetRequest." }, "MediaGraphTopologyDeleteRequest": { "type": "object", @@ -145,7 +152,8 @@ { "$ref": "#/definitions/ItemNonSetRequestBase" } - ] + ], + "description": "Represents the MediaGraphTopologyDeleteRequest." }, "MediaGraphInstanceListRequest": { "type": "object", @@ -154,7 +162,8 @@ { "$ref": "#/definitions/MethodRequest" } - ] + ], + "description": "Represents the MediaGraphInstanceListRequest." }, "MediaGraphInstanceGetRequest": { "type": "object", @@ -163,7 +172,8 @@ { "$ref": "#/definitions/ItemNonSetRequestBase" } - ] + ], + "description": "Represents the MediaGraphInstanceGetRequest." }, "MediaGraphInstanceActivateRequest": { "type": "object", @@ -172,7 +182,8 @@ { "$ref": "#/definitions/ItemNonSetRequestBase" } - ] + ], + "description": "Represents the MediaGraphInstanceActivateRequest." }, "MediaGraphInstanceDeActivateRequest": { "type": "object", @@ -181,7 +192,8 @@ { "$ref": "#/definitions/ItemNonSetRequestBase" } - ] + ], + "description": "Represents the MediaGraphInstanceDeactivateRequest." }, "MediaGraphInstanceDeleteRequest": { "type": "object", @@ -190,7 +202,8 @@ { "$ref": "#/definitions/ItemNonSetRequestBase" } - ] + ], + "description": "Represents the MediaGraphInstanceDeleteRequest." } } }