From 8b8d71700fc72e2f4bff167d6f46f5be815f3ae6 Mon Sep 17 00:00:00 2001 From: brianbl Date: Wed, 18 Sep 2019 06:53:42 -0700 Subject: [PATCH 1/3] Initial 2019-09-01-preview for LVA --- .../preview/2019-09-01-preview/Common.json | 80 ++ .../2019-09-01-preview/MediaGraphs.json | 773 ++++++++++++++++++ .../examples/media-graph-create.json | 65 ++ .../examples/media-graph-delete.json | 12 + .../media-graph-get-by-name-failure.json | 19 + .../media-graph-get-by-name-success.json | 39 + .../examples/media-graph-get-by-name.json | 39 + .../examples/media-graph-list-all.json | 94 +++ .../examples/media-graph-start-async.json | 12 + .../examples/media-graph-start.json | 12 + .../examples/media-graph-stop-async.json | 12 + .../examples/media-graph-stop.json | 12 + .../examples/operation-result-get.json | 15 + .../examples/operation-status-get.json | 18 + .../mediaservices/resource-manager/readme.md | 17 + 15 files changed, 1219 insertions(+) create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/Common.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/MediaGraphs.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-create.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-delete.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-failure.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-success.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-list-all.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start-async.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop-async.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/operation-result-get.json create mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/operation-status-get.json diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/Common.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/Common.json new file mode 100644 index 000000000000..bea6dd7c7650 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/Common.json @@ -0,0 +1,80 @@ +{ + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "version": "2018-07-01" + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "paths": {}, + "definitions": { + "Resource": { + "description": "The core properties of ARM resources.", + "properties": { + "id": { + "readOnly": true, + "type": "string", + "description": "Fully qualified resource ID for the resource." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the resource." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The type of the resource." + } + }, + "x-ms-azure-resource": true + }, + "TrackedResource": { + "description": "The resource model definition for a ARM tracked resource.", + "properties": { + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "x-ms-mutability": [ + "read", + "create", + "update" + ], + "description": "Resource tags." + }, + "location": { + "type": "string", + "x-ms-mutability": [ + "read", + "create" + ], + "description": "The Azure Region of the resource." + } + }, + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + }, + "ProxyResource": { + "description": "The resource model definition for a ARM proxy resource.", + "allOf": [ + { + "$ref": "#/definitions/Resource" + } + ] + } + } +} \ No newline at end of file diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/MediaGraphs.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/MediaGraphs.json new file mode 100644 index 000000000000..0e1487265017 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/MediaGraphs.json @@ -0,0 +1,773 @@ +{ + "schemes": [ + "https" + ], + "swagger": "2.0", + "info": { + "title": "Azure Media Services", + "description": "This Swagger was generated by the API Framework.", + "version": "2019-09-01-preview" + }, + "host": "management.azure.com", + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + } + }, + "definitions": { + "MediaGraphProperties": { + "properties": { + "description": { + "type": "string", + "description": "Media Graph description" + }, + "state": { + "type": "string", + "enum": [ + "Running", + "Starting", + "Stopped", + "Stopping" + ], + "x-ms-enum": { + "name": "MediaGraphState", + "values": [ + { + "value": "Running", + "description": "Media Graph is Running" + }, + { + "value": "Starting", + "description": "Media Graph is Starting" + }, + { + "value": "Stopped", + "description": "Media Graph has Stopped" + }, + { + "value": "Stopping", + "description": "Media Graph is Stopping" + } + ], + "modelAsString": true + }, + "description": "Media Graph state", + "readOnly": true, + "x-nullable": false + }, + "created": { + "type": "string", + "format": "date-time", + "description": "Date the Media Graph was created", + "readOnly": true, + "x-nullable": false + }, + "lastModified": { + "type": "string", + "format": "date-time", + "description": "Date the Media Graph was last modified", + "readOnly": true, + "x-nullable": false + }, + "sources": { + "type": "array", + "items": { + "$ref": "#/definitions/MediaGraphSource" + }, + "description": "Media Graph sources" + }, + "sinks": { + "type": "array", + "items": { + "$ref": "#/definitions/MediaGraphSink" + }, + "description": "Media Graph sinks" + } + }, + "type": "object", + "required": [ + "sources", + "sinks" + ], + "description": "Class for Media Graph properties" + }, + "MediaGraphSource": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + }, + "name": { + "type": "string", + "description": "Source name" + } + }, + "type": "object", + "required": [ + "@odata.type", + "name" + ], + "description": "Media source" + }, + "MediaGraphSink": { + "discriminator": "@odata.type", + "properties": { + "@odata.type": { + "type": "string", + "description": "The discriminator for derived types." + }, + "name": { + "type": "string", + "description": "Sink name" + }, + "inputs": { + "type": "array", + "items": { + "type": "string" + }, + "description": "Sink inputs" + } + }, + "type": "object", + "required": [ + "@odata.type", + "name", + "inputs" + ], + "description": "Media Sink" + }, + "MediaGraphRtspSource": { + "x-ms-discriminator-value": "#Microsoft.Media.MediaGraphRtspSource", + "allOf": [ + { + "$ref": "#/definitions/MediaGraphSource" + } + ], + "properties": { + "rtspUrl": { + "type": "string", + "description": "RTSP URL" + }, + "credentials": { + "$ref": "#/definitions/MediaGraphUserCredentials", + "description": "RTSP Credentials" + } + }, + "type": "object", + "required": [ + "rtspUrl", + "credentials" + ], + "description": "RTSP source" + }, + "MediaGraphUserCredentials": { + "properties": { + "username": { + "type": "string", + "description": "User name" + }, + "password": { + "type": "string", + "description": "Password credential" + } + }, + "type": "object", + "required": [ + "username", + "password" + ], + "description": "Credentials to authenticate to Media Graph sources" + }, + "MediaGraphAssetSink": { + "x-ms-discriminator-value": "#Microsoft.Media.MediaGraphAssetSink", + "allOf": [ + { + "$ref": "#/definitions/MediaGraphSink" + } + ], + "properties": { + "assetName": { + "type": "string", + "description": "Asset name" + } + }, + "type": "object", + "required": [ + "assetName" + ], + "description": "Asset sink" + }, + "MediaGraph": { + "allOf": [ + { + "$ref": "./Common.json#/definitions/ProxyResource" + } + ], + "properties": { + "properties": { + "$ref": "#/definitions/MediaGraphProperties", + "x-ms-client-flatten": true + } + }, + "type": "object", + "description": "The Media Graph." + }, + "MediaGraphOperationError": { + "properties": { + "code": { + "type": "string", + "description": "The operation error code" + }, + "message": { + "type": "string", + "description": "The operation error message" + } + }, + "type": "object", + "description": "The operation error" + }, + "MediaGraphOperationStatus": { + "properties": { + "name": { + "type": "string", + "description": "The name of the Media Graph operation" + }, + "status": { + "type": "string", + "description": "The status of the Media Graph operation" + }, + "error": { + "$ref": "#/definitions/MediaGraphOperationError", + "description": "The error for the Media Graph operation" + } + }, + "type": "object", + "required": [ + "name" + ], + "description": "The status of the Media Graph operation" + }, + "MediaGraphOperationResult": { + "properties": {}, + "type": "object", + "description": "The result of the Media Graph operation" + }, + "ODataError": { + "properties": { + "code": { + "type": "string", + "description": "A language-independent error name." + }, + "message": { + "type": "string", + "description": "The error message." + }, + "target": { + "type": "string", + "description": "The target of the error (for example, the name of the property in error)." + }, + "details": { + "type": "array", + "items": { + "$ref": "#/definitions/ODataError" + }, + "description": "The error details." + } + }, + "type": "object", + "description": "Information about an error." + }, + "ApiError": { + "properties": { + "error": { + "$ref": "#/definitions/ODataError", + "description": "The error properties." + } + }, + "type": "object", + "description": "The API error." + }, + "MediaGraphCollection": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/MediaGraph" + }, + "description": "A collection of MediaGraph items." + }, + "@odata.nextLink": { + "type": "string", + "description": "A link to the next page of the collection (when the collection contains too many results to return in one response)." + } + }, + "type": "object", + "description": "A collection of MediaGraph items." + } + }, + "paths": { + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/mediaGraphs": { + "get": { + "summary": "List Media Graphs", + "description": "Lists Media Graphs in the Media Services account", + "operationId": "MediaGraphs_List", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MediaGraphCollection" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "$top", + "in": "query", + "required": false, + "type": "integer", + "description": "Specifies a non-negative integer n that limits the number of items returned from a collection. The service returns the number of available items up to but not greater than the specified value n." + } + ], + "x-ms-pageable": { + "nextLinkName": "@odata.nextLink" + }, + "x-ms-examples": { + "List all Media Graphs": { + "$ref": "examples/media-graph-list-all.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/mediaGraphs/{mediaGraphName}": { + "get": { + "summary": "Get a Media Graph", + "description": "Get the details of a Media Graph in the Media Services account", + "operationId": "MediaGraphs_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MediaGraph" + } + }, + "404": { + "description": "NotFound" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "mediaGraphName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Graph name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get a Media Graph that exists by name": { + "$ref": "examples/media-graph-get-by-name-success.json" + }, + "Get a Media Graph that does not exist by name": { + "$ref": "examples/media-graph-get-by-name-failure.json" + } + } + }, + "put": { + "summary": "Create or update a Media Graph", + "description": "Create or update a Media Graph in the Media Services account", + "operationId": "MediaGraphs_CreateOrUpdate", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MediaGraph" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/MediaGraph" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "mediaGraphName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Graph name." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/MediaGraph" + }, + "description": "The request parameters" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Create or update a Media Graph": { + "$ref": "examples/media-graph-create.json" + } + } + }, + "delete": { + "summary": "Delete a Media Graph", + "description": "Deletes a Media Graph in the Media Services account", + "operationId": "MediaGraphs_Delete", + "responses": { + "200": { + "description": "OK" + }, + "204": { + "description": "NoContent" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "mediaGraphName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Graph name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Delete a Media Graph": { + "$ref": "examples/media-graph-delete.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/mediaGraphs/{mediaGraphName}/start": { + "post": { + "summary": "Start a Media Graph", + "description": "Start a Media Graph in the Media Services account", + "operationId": "MediaGraphs_Start", + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "mediaGraphName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Graph name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Start Media Graph which completes synchronously": { + "$ref": "examples/media-graph-start.json" + }, + "Start MediaGraph which completes asynchronously": { + "$ref": "examples/media-graph-start-async.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/mediaGraphs/{mediaGraphName}/stop": { + "post": { + "summary": "Stop a Media Graph", + "description": "Stop a Media Graph in the Media Services account", + "operationId": "MediaGraphs_Stop", + "responses": { + "200": { + "description": "OK" + }, + "202": { + "description": "Accepted" + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "mediaGraphName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Graph name." + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-long-running-operation": true, + "x-ms-examples": { + "Stop Media Graph which completes synchronously": { + "$ref": "examples/media-graph-stop.json" + }, + "Stop MediaGraph which completes asynchronously": { + "$ref": "examples/media-graph-stop-async.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/mediaGraphs/{mediaGraphName}/operationsStatus/{operationId}": { + "get": { + "summary": "Get the operation status", + "description": "Get the operation status of a Media Graph in the media services account", + "operationId": "OperationsStatus_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MediaGraphOperationStatus" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "mediaGraphName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Graph name." + }, + { + "name": "operationId", + "in": "path", + "required": true, + "type": "string", + "description": "The operation ID" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get the operation status": { + "$ref": "examples/operation-status-get.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Media/mediaServices/{accountName}/mediaGraphs/{mediaGraphName}/operationResults/{operationId}": { + "get": { + "summary": "Get the operation result", + "description": "Get the operation result of a Media Graph in the Media Services account", + "operationId": "OperationResults_Get", + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/MediaGraphOperationResult" + } + }, + "default": { + "description": "Detailed error information.", + "schema": { + "$ref": "#/definitions/ApiError" + } + } + }, + "parameters": [ + { + "$ref": "#/parameters/SubscriptionId" + }, + { + "$ref": "#/parameters/ResourceGroupName" + }, + { + "$ref": "#/parameters/MediaServicesAccountName" + }, + { + "name": "mediaGraphName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Graph name." + }, + { + "name": "operationId", + "in": "path", + "required": true, + "type": "string", + "description": "The operation ID" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "x-ms-examples": { + "Get the operation result": { + "$ref": "examples/operation-result-get.json" + } + } + } + } + }, + "parameters": { + "SubscriptionId": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The unique identifier for a Microsoft Azure subscription." + }, + "ResourceGroupName": { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group within the Azure subscription.", + "x-ms-parameter-location": "method" + }, + "MediaServicesAccountName": { + "name": "accountName", + "in": "path", + "required": true, + "type": "string", + "description": "The Media Services account name.", + "x-ms-parameter-location": "method" + }, + "ApiVersion": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The Version of the API to be used with the client request." + } + } +} \ No newline at end of file diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-create.json new file mode 100644 index 000000000000..664fbb1b3e90 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-create.json @@ -0,0 +1,65 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "mediaGraphName": "SampleMediaGraph", + "api-version": "2019-09-01-preview", + "parameters": { + "properties": { + "description": "updated description", + "sources": [ + { + "@odata.type": "#Microsoft.Media.MediaGraphRtspSource", + "name": "rtspSource", + "rtspUrl": "rtsp://contoso.com:554/stream1", + "credentials": { + "username": "exampleusername", + "password": "examplepassword" + } + } + ], + "sinks": [ + { + "@odata.type": "#Microsoft.Media.MediaGraphAssetSink", + "name": "AssetSink", + "inputs": [ + "rtspSource" + ], + "assetName": "SampleAsset" + } + ] + } + } + }, + "responses": { + "200": { + "body": { + "name": "SampleMediaGraph", + "properties": { + "description": "updated description", + "state": "Stopped", + "created": "2019-09-01T00:00:00Z", + "lastModified": "2019-09-01T00:00:00Z", + "sources": [ + { + "@odata.type": "#Microsoft.Media.MediaGraphRtspSource", + "name": "rtspSource", + "rtspUrl": "rtsp://contoso.com:554/stream1" + } + ], + "sinks": [ + { + "@odata.type": "#Microsoft.Media.MediaGraphAssetSink", + "name": "AssetSink", + "inputs": [ + "rtspSource" + ], + "assetName": "SampleAsset" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-delete.json new file mode 100644 index 000000000000..9f1f8cd0e3d6 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-delete.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "mediaGraphName": "SampleMediaGraph", + "api-version": "2019-09-01-preview" + }, + "responses": { + "200": {} + } +} \ No newline at end of file diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-failure.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-failure.json new file mode 100644 index 000000000000..9c60dca4de3a --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-failure.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "mediaGraphName": "SampleMediaGraph2", + "api-version": "2019-09-01-preview" + }, + "responses": { + "404": { + "body": { + "error": { + "code": "NotFound", + "message": "The requested resource was not found." + } + } + } + } +} \ No newline at end of file diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-success.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-success.json new file mode 100644 index 000000000000..7f27dfde5ec0 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-success.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "mediaGraphName": "SampleMediaGraph1", + "api-version": "2019-09-01-preview" + }, + "responses": { + "200": { + "body": { + "name": "SampleMediaGraph1", + "properties": { + "description": "", + "state": "Stopped", + "created": "2019-09-01T00:00:00Z", + "lastModified": "2019-09-01T00:00:00Z", + "sources": [ + { + "@odata.type": "#Microsoft.Media.MediaGraphRtspSource", + "name": "RTSPSource1", + "rtspUrl": "rtsp://contoso.com:554/stream1" + } + ], + "sinks": [ + { + "@odata.type": "#Microsoft.Media.MediaGraphAssetSink", + "name": "AssetSink1", + "inputs": [ + "RTSPSource1" + ], + "assetName": "Sample Asset1" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name.json new file mode 100644 index 000000000000..463ce9e077f5 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "mediaGraphName": "SampleMediaGraph", + "api-version": "2019-09-01-preview" + }, + "responses": { + "200": { + "body": { + "name": "SampleMediaGraph", + "properties": { + "description": "", + "state": "Stopped", + "dateCreated": "2019-09-01T00:00:00Z", + "dateModified": "2019-09-01T00:00:00Z", + "sources": [ + { + "@odata.type": "#Microsoft.Media.MediaGraphRtspSource", + "name": "RTSPSource1", + "rtspUrl": "rtsp://contoso.com:554/stream1" + } + ], + "sinks": [ + { + "@odata.type": "#Microsoft.Media.MediaGraphAssetSink", + "name": "AssetSink1", + "inputs": [ + "RTSPSource1" + ], + "assetName": "Sample Asset1" + } + ] + } + } + } + } +} \ No newline at end of file diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-list-all.json new file mode 100644 index 000000000000..e2439e8ad10d --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-list-all.json @@ -0,0 +1,94 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "api-version": "2019-09-01-preview" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "SampleMediaGraph0", + "properties": { + "description": "", + "state": "Stopped", + "created": "2019-09-01T00:00:00Z", + "lastModified": "2019-09-01T00:00:00Z", + "sources": [ + { + "@odata.type": "#Microsoft.Media.MediaGraphRtspSource", + "name": "RTSPSource0", + "rtspUrl": "rtsp://contoso.com:554/stream0" + } + ], + "sinks": [ + { + "@odata.type": "#Microsoft.Media.MediaGraphAssetSink", + "name": "AssetSink0", + "inputs": [ + "RTSPSource0" + ], + "assetName": "Sample Asset0" + } + ] + } + }, + { + "name": "SampleMediaGraph1", + "properties": { + "description": "", + "state": "Stopped", + "created": "2019-09-01T00:00:00Z", + "lastModified": "2019-09-01T00:00:00Z", + "sources": [ + { + "@odata.type": "#Microsoft.Media.MediaGraphRtspSource", + "name": "RTSPSource1", + "rtspUrl": "rtsp://contoso.com:554/stream1" + } + ], + "sinks": [ + { + "@odata.type": "#Microsoft.Media.MediaGraphAssetSink", + "name": "AssetSink1", + "inputs": [ + "RTSPSource1" + ], + "assetName": "Sample Asset1" + } + ] + } + }, + { + "name": "SampleMediaGraph2", + "properties": { + "description": "", + "state": "Stopped", + "created": "2019-09-01T00:00:00Z", + "lastModified": "2019-09-01T00:00:00Z", + "sources": [ + { + "@odata.type": "#Microsoft.Media.MediaGraphRtspSource", + "name": "RTSPSource2", + "rtspUrl": "rtsp://contoso.com:554/stream2" + } + ], + "sinks": [ + { + "@odata.type": "#Microsoft.Media.MediaGraphAssetSink", + "name": "AssetSink2", + "inputs": [ + "RTSPSource2" + ], + "assetName": "Sample Asset2" + } + ] + } + } + ] + } + } + } +} \ No newline at end of file diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start-async.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start-async.json new file mode 100644 index 000000000000..560493b93937 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start-async.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "mediaGraphName": "SampleMediaGraph1", + "api-version": "2019-09-01-preview" + }, + "responses": { + "202": {} + } +} \ No newline at end of file diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start.json new file mode 100644 index 000000000000..9f1f8cd0e3d6 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "mediaGraphName": "SampleMediaGraph", + "api-version": "2019-09-01-preview" + }, + "responses": { + "200": {} + } +} \ No newline at end of file diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop-async.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop-async.json new file mode 100644 index 000000000000..560493b93937 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop-async.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "mediaGraphName": "SampleMediaGraph1", + "api-version": "2019-09-01-preview" + }, + "responses": { + "202": {} + } +} \ No newline at end of file diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop.json new file mode 100644 index 000000000000..9f1f8cd0e3d6 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "mediaGraphName": "SampleMediaGraph", + "api-version": "2019-09-01-preview" + }, + "responses": { + "200": {} + } +} \ No newline at end of file diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/operation-result-get.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/operation-result-get.json new file mode 100644 index 000000000000..3f66d89ed4a5 --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/operation-result-get.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "mediaGraphName": "SampleMediaGraph", + "operationId": "7877d0da-ae9b-4c5b-a1fa-c9ece3ef5d11", + "api-version": "2019-09-01-preview" + }, + "responses": { + "200": { + "body": {} + } + } +} \ No newline at end of file diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/operation-status-get.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/operation-status-get.json new file mode 100644 index 000000000000..378213db244c --- /dev/null +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/operation-status-get.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "subscriptionId": "00000000-0000-0000-0000-000000000000", + "resourceGroupName": "contoso", + "accountName": "contosomedia", + "mediaGraphName": "SampleMediaGraph", + "operationId": "7877d0da-ae9b-4c5b-a1fa-c9ece3ef5d11", + "api-version": "2019-09-01-preview" + }, + "responses": { + "200": { + "body": { + "name": "7877d0da-ae9b-4c5b-a1fa-c9ece3ef5d11", + "status": "Succeeded" + } + } + } +} \ No newline at end of file diff --git a/specification/mediaservices/resource-manager/readme.md b/specification/mediaservices/resource-manager/readme.md index cacd66745375..5d7867a7b61e 100644 --- a/specification/mediaservices/resource-manager/readme.md +++ b/specification/mediaservices/resource-manager/readme.md @@ -30,6 +30,23 @@ tag: package-2018-07 opt-in-extensible-enums: true ``` +### Tag: package-2019-09-preview + +These settings apply only when `--tag=package-2019-09-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2019-09-preview' +input-file: + - Microsoft.Media/stable/2018-07-01/AccountFilters.json + - Microsoft.Media/stable/2018-07-01/Accounts.json + - Microsoft.Media/stable/2018-07-01/AssetsAndAssetFilters.json + - Microsoft.Media/stable/2018-07-01/ContentKeyPolicies.json + - Microsoft.Media/stable/2018-07-01/Encoding.json + - Microsoft.Media/preview/2019-09-01-preview/MediaGraphs.json + - Microsoft.Media/stable/2018-07-01/StreamingPoliciesAndStreamingLocators.json + - Microsoft.Media/stable/2018-07-01/streamingservice.json +``` + + ### Tag: package-2019-05-preview These settings apply only when `--tag=package-2019-05-preview` is specified on the command line. From 2e1c75ca895ae907275c3712217ee75ad8b42920 Mon Sep 17 00:00:00 2001 From: brianbl Date: Wed, 18 Sep 2019 07:22:02 -0700 Subject: [PATCH 2/3] Add missing line feeds at eof. --- .../Microsoft.Media/preview/2019-09-01-preview/Common.json | 2 +- .../Microsoft.Media/preview/2019-09-01-preview/MediaGraphs.json | 2 +- .../preview/2019-09-01-preview/examples/media-graph-create.json | 2 +- .../preview/2019-09-01-preview/examples/media-graph-delete.json | 2 +- .../examples/media-graph-get-by-name-failure.json | 2 +- .../examples/media-graph-get-by-name-success.json | 2 +- .../2019-09-01-preview/examples/media-graph-get-by-name.json | 2 +- .../2019-09-01-preview/examples/media-graph-list-all.json | 2 +- .../2019-09-01-preview/examples/media-graph-start-async.json | 2 +- .../preview/2019-09-01-preview/examples/media-graph-start.json | 2 +- .../2019-09-01-preview/examples/media-graph-stop-async.json | 2 +- .../preview/2019-09-01-preview/examples/media-graph-stop.json | 2 +- .../2019-09-01-preview/examples/operation-result-get.json | 2 +- .../2019-09-01-preview/examples/operation-status-get.json | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/Common.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/Common.json index bea6dd7c7650..8ffd3bd1f71a 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/Common.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/Common.json @@ -77,4 +77,4 @@ ] } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/MediaGraphs.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/MediaGraphs.json index 0e1487265017..f5604ad74331 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/MediaGraphs.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/MediaGraphs.json @@ -770,4 +770,4 @@ "description": "The Version of the API to be used with the client request." } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-create.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-create.json index 664fbb1b3e90..a09d494e78fe 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-create.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-create.json @@ -62,4 +62,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-delete.json index 9f1f8cd0e3d6..982ec58b03a1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-delete.json @@ -9,4 +9,4 @@ "responses": { "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-failure.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-failure.json index 9c60dca4de3a..de7bd249fe19 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-failure.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-failure.json @@ -16,4 +16,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-success.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-success.json index 7f27dfde5ec0..36bd8469347f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-success.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-success.json @@ -36,4 +36,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name.json index 463ce9e077f5..53e30600b5d3 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name.json @@ -36,4 +36,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-list-all.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-list-all.json index e2439e8ad10d..acb0a13f999b 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-list-all.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-list-all.json @@ -91,4 +91,4 @@ } } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start-async.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start-async.json index 560493b93937..78e279ab6a8d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start-async.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start-async.json @@ -9,4 +9,4 @@ "responses": { "202": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start.json index 9f1f8cd0e3d6..982ec58b03a1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start.json @@ -9,4 +9,4 @@ "responses": { "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop-async.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop-async.json index 560493b93937..78e279ab6a8d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop-async.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop-async.json @@ -9,4 +9,4 @@ "responses": { "202": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop.json index 9f1f8cd0e3d6..982ec58b03a1 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop.json @@ -9,4 +9,4 @@ "responses": { "200": {} } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/operation-result-get.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/operation-result-get.json index 3f66d89ed4a5..7a528e212c6f 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/operation-result-get.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/operation-result-get.json @@ -12,4 +12,4 @@ "body": {} } } -} \ No newline at end of file +} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/operation-status-get.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/operation-status-get.json index 378213db244c..1e3ee9bda64d 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/operation-status-get.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/operation-status-get.json @@ -15,4 +15,4 @@ } } } -} \ No newline at end of file +} From ae35d5e5415ae13c6fb749ff6109a213b4e284c4 Mon Sep 17 00:00:00 2001 From: brianbl Date: Thu, 19 Sep 2019 09:43:12 -0700 Subject: [PATCH 3/3] Remove required property for credentials and update examples. --- .../2019-09-01-preview/MediaGraphs.json | 26 +++---------- .../examples/media-graph-delete.json | 1 + .../media-graph-get-by-name-failure.json | 19 --------- .../media-graph-get-by-name-success.json | 39 ------------------- .../examples/media-graph-get-by-name.json | 9 +++-- .../examples/media-graph-start-async.json | 12 ------ .../examples/media-graph-start.json | 1 + .../examples/media-graph-stop-async.json | 12 ------ .../examples/media-graph-stop.json | 1 + 9 files changed, 13 insertions(+), 107 deletions(-) delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-failure.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-success.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start-async.json delete mode 100644 specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop-async.json diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/MediaGraphs.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/MediaGraphs.json index f5604ad74331..947796666ecd 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/MediaGraphs.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/MediaGraphs.json @@ -168,8 +168,7 @@ }, "type": "object", "required": [ - "rtspUrl", - "credentials" + "rtspUrl" ], "description": "RTSP source" }, @@ -413,11 +412,8 @@ } ], "x-ms-examples": { - "Get a Media Graph that exists by name": { - "$ref": "examples/media-graph-get-by-name-success.json" - }, - "Get a Media Graph that does not exist by name": { - "$ref": "examples/media-graph-get-by-name-failure.json" + "Get a Media Graph by name": { + "$ref": "examples/media-graph-get-by-name.json" } } }, @@ -432,12 +428,6 @@ "$ref": "#/definitions/MediaGraph" } }, - "201": { - "description": "Created", - "schema": { - "$ref": "#/definitions/MediaGraph" - } - }, "default": { "description": "Detailed error information.", "schema": { @@ -569,11 +559,8 @@ ], "x-ms-long-running-operation": true, "x-ms-examples": { - "Start Media Graph which completes synchronously": { + "Start Media Graph": { "$ref": "examples/media-graph-start.json" - }, - "Start MediaGraph which completes asynchronously": { - "$ref": "examples/media-graph-start-async.json" } } } @@ -620,11 +607,8 @@ ], "x-ms-long-running-operation": true, "x-ms-examples": { - "Stop Media Graph which completes synchronously": { + "Stop Media Graph": { "$ref": "examples/media-graph-stop.json" - }, - "Stop MediaGraph which completes asynchronously": { - "$ref": "examples/media-graph-stop-async.json" } } } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-delete.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-delete.json index 982ec58b03a1..70f175487496 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-delete.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-delete.json @@ -7,6 +7,7 @@ "api-version": "2019-09-01-preview" }, "responses": { + "204": {}, "200": {} } } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-failure.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-failure.json deleted file mode 100644 index de7bd249fe19..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-failure.json +++ /dev/null @@ -1,19 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph2", - "api-version": "2019-09-01-preview" - }, - "responses": { - "404": { - "body": { - "error": { - "code": "NotFound", - "message": "The requested resource was not found." - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-success.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-success.json deleted file mode 100644 index 36bd8469347f..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name-success.json +++ /dev/null @@ -1,39 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph1", - "api-version": "2019-09-01-preview" - }, - "responses": { - "200": { - "body": { - "name": "SampleMediaGraph1", - "properties": { - "description": "", - "state": "Stopped", - "created": "2019-09-01T00:00:00Z", - "lastModified": "2019-09-01T00:00:00Z", - "sources": [ - { - "@odata.type": "#Microsoft.Media.MediaGraphRtspSource", - "name": "RTSPSource1", - "rtspUrl": "rtsp://contoso.com:554/stream1" - } - ], - "sinks": [ - { - "@odata.type": "#Microsoft.Media.MediaGraphAssetSink", - "name": "AssetSink1", - "inputs": [ - "RTSPSource1" - ], - "assetName": "Sample Asset1" - } - ] - } - } - } - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name.json index 53e30600b5d3..371fc45ce350 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-get-by-name.json @@ -3,18 +3,19 @@ "subscriptionId": "00000000-0000-0000-0000-000000000000", "resourceGroupName": "contoso", "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph", + "mediaGraphName": "SampleMediaGraph1", "api-version": "2019-09-01-preview" }, "responses": { + "404": {}, "200": { "body": { - "name": "SampleMediaGraph", + "name": "SampleMediaGraph1", "properties": { "description": "", "state": "Stopped", - "dateCreated": "2019-09-01T00:00:00Z", - "dateModified": "2019-09-01T00:00:00Z", + "created": "2019-09-01T00:00:00Z", + "lastModified": "2019-09-01T00:00:00Z", "sources": [ { "@odata.type": "#Microsoft.Media.MediaGraphRtspSource", diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start-async.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start-async.json deleted file mode 100644 index 78e279ab6a8d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start-async.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph1", - "api-version": "2019-09-01-preview" - }, - "responses": { - "202": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start.json index 982ec58b03a1..10c0783ddff3 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-start.json @@ -7,6 +7,7 @@ "api-version": "2019-09-01-preview" }, "responses": { + "202": {}, "200": {} } } diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop-async.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop-async.json deleted file mode 100644 index 78e279ab6a8d..000000000000 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop-async.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "parameters": { - "subscriptionId": "00000000-0000-0000-0000-000000000000", - "resourceGroupName": "contoso", - "accountName": "contosomedia", - "mediaGraphName": "SampleMediaGraph1", - "api-version": "2019-09-01-preview" - }, - "responses": { - "202": {} - } -} diff --git a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop.json b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop.json index 982ec58b03a1..10c0783ddff3 100644 --- a/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop.json +++ b/specification/mediaservices/resource-manager/Microsoft.Media/preview/2019-09-01-preview/examples/media-graph-stop.json @@ -7,6 +7,7 @@ "api-version": "2019-09-01-preview" }, "responses": { + "202": {}, "200": {} } }